/* Decks on the web: the app's deck screens (DecksHallBody, DeckDetailView,
   DeckEditorView, DeckImportView) on top of /matches/rift.css. Same tokens,
   sharp corners, one border, no halos. Only what the deck screens add. */

.hero-eye { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font: 700 15px/1 var(--f-read); color: var(--gold); }
.back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(240,230,210,.28); color: var(--ink); flex: none; }
.back .chev { width: 13px; height: 13px; opacity: 1; }
.back:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.dk-title { display: flex; align-items: center; gap: 14px; font: 700 clamp(44px, 7vw, 68px)/.95 var(--f-title); color: var(--ink); text-shadow: 0 2px 18px rgba(2,5,11,.6); }
.dk-title > span:first-child { padding-top: 6px; }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 3px 7px 0; font: 700 14px/1 var(--f-title); letter-spacing: .5px; text-transform: uppercase; color: var(--ground-deep); background: var(--gold); }
.menu-r { left: auto; right: -10px; }
.dim { color: var(--dim); }
.gold { color: var(--gold); }
.dk-note { font: 600 14px/1.5 var(--f-read); color: var(--mute); max-width: 640px; margin-bottom: 16px; }
.dk-note.small { font-size: 12.5px; margin: 8px 0 0; }

/* -------------------------------------------------------------- your decks */
.dk-list { padding-top: 28px; }
.plates { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.plates.dim { margin-top: 14px; opacity: .65; }
.dk-arrange { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.dp-arr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.dp-move { display: flex; flex-direction: column; gap: 6px; }
.dp-move button { flex: 1; min-width: 44px; min-height: 44px; display: grid; place-items: center; background: rgba(12,26,51,.72);
  box-shadow: inset 0 0 0 1px rgba(200,170,110,.35); color: var(--control); border: 0; cursor: pointer; }
.dp-move button:disabled { opacity: .3; cursor: default; }
.dp-move button .chev { width: 12px; height: 12px; }
.dplate { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px 14px 14px;
  background: linear-gradient(180deg, rgba(12,26,51,.72), rgba(5,12,24,.72)); box-shadow: inset 0 0 0 1px rgba(200,170,110,.22); transition: box-shadow .12s; }
.dplate:hover { box-shadow: inset 0 0 0 1px rgba(200,170,110,.6); }
.dplate > .chev { width: 12px; height: 12px; color: var(--control); }
.dp-art { position: relative; display: block; width: 96px; height: 124px; overflow: hidden; background: #0b1424; box-shadow: 0 0 0 1px rgba(200,170,110,.7); }
.dp-art img { width: 100%; height: 100%; object-fit: cover; }
.dp-t { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dp-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dp-name b { font: 700 28px/1 var(--f-title); color: var(--ink); padding-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-ver { font: 700 15px/1.3 var(--f-read); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-ver .num { color: var(--gold-light); }
.dp-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.dp-sub { font: 700 13px/1.2 var(--f-read); color: var(--mute); }
.dk-archived { margin-top: 26px; }
.dk-empty { padding: 34px 0; max-width: 560px; display: flex; flex-direction: column; gap: 14px; color: var(--ink2); font: 600 15px/1.55 var(--f-read); }
.dk-lede { font: 700 26px/1.1 var(--f-title); color: var(--ink); }
.dk-doors { display: flex; align-items: center; gap: 24px; margin-top: 6px; }

/* counts and legality */
.counter { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.cnt { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.cnt b { font-size: 30px; line-height: 1; color: var(--ink); }
.cnt small { font: 700 15px/1 var(--f-read); color: var(--mute); }
.cnt.over b { color: var(--lost); }
.counter.sm .cnt b { font-size: 19px; } .counter.sm .cnt small { font-size: 13px; }
.lg-ok { display: inline-flex; align-items: center; gap: 8px; font: 700 14px/1.2 var(--f-read); color: var(--victory); }
.lg-no { font: 700 14px/1.2 var(--f-read); color: var(--ink2); }
.issues { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font: 600 14px/1.35 var(--f-read); color: var(--mute); }
.issues li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 9px 2px 1px; transform: rotate(45deg); border: 1.2px solid rgba(200,170,110,.9); }

/* -------------------------------------------------------------- deck page */
.dk-page { padding-top: 34px; }
.dk-sec { margin-bottom: 44px; }
.dk-sec .sec-acc { gap: 22px; }
.dk-facts { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin-bottom: 8px; }
.grp { margin-top: 26px; }
.grp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 1px solid rgba(200,170,110,.28); }
.grp-h h3 { font: 700 21px/1 var(--f-title); letter-spacing: .6px; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.grp-h .num { font-size: 16px; color: var(--ink2); } .grp-h .num small { font: 700 12px/1 var(--f-read); color: var(--mute); }
.cgrid { display: grid; gap: 14px 12px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.ctile { position: relative; margin: 0; cursor: pointer; min-width: 0; }
.cimg { display: block; width: 100%; aspect-ratio: 744 / 1039; object-fit: cover; background: #0b1424; box-shadow: 0 0 0 1px rgba(0,0,0,.6); border-radius: 4.5% / 3.2%; }
.cimg.none { display: grid; place-items: center; padding: 8px; text-align: center; } .cimg.none i { font: 700 13px/1.2 var(--f-read); font-style: normal; color: var(--mute); }
.ctile figcaption { margin-top: 6px; font: 700 13.5px/1.2 var(--f-read); color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cn { position: absolute; top: 6%; right: 6%; min-width: 30px; height: 30px; display: grid; place-items: center; padding: 0 6px; font-size: 17px; color: var(--ground-deep);
  background: linear-gradient(180deg, #F0E6D2, #C8AA6E); box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.dk-text { margin: 18px 0 0; padding: 18px 20px; background: rgba(2,5,11,.55); box-shadow: inset 0 0 0 1px rgba(200,170,110,.22); font: 600 14px/1.6 ui-monospace, Menlo, monospace; color: var(--ink2); white-space: pre-wrap; max-width: 560px; }

/* curve */
.curve { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; height: 170px; max-width: 560px; }
.cv-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.cv-n { font-size: 14px; color: var(--ink2); height: 16px; }
.cv-bars { position: relative; flex: 1; width: 100%; }
.cv-bar, .cv-ghost { position: absolute; left: 14%; right: 14%; bottom: 0; }
.cv-bar { background: linear-gradient(180deg, #D8B56E, #785A28); }
.cv-ghost { left: 4%; right: 4%; border: 1.2px dashed rgba(240,230,210,.38); border-bottom: 0; }
.cv-x { font: 700 13px/1 var(--f-read); color: var(--mute); }
.cv-key { display: inline-block; width: 16px; height: 9px; margin-right: 8px; border: 1.2px dashed rgba(240,230,210,.5); border-bottom: 0; }

/* version line */
.vline { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.vrow { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--hair); }
.vn { display: flex; flex-direction: column; gap: 4px; }
.vn .num { font-size: 22px; color: var(--mute); }
.vrow.now .vn .num { color: var(--gold-light); }
.vn small { font: 700 11px/1 var(--f-display); letter-spacing: 1.2px; color: var(--victory); }
.vt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vt > b { font: 800 16px/1.3 var(--f-read); color: var(--ink); }
.vsub { font: 700 13px/1 var(--f-read); color: var(--mute); }
.vdiff { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 700 13.5px/1.3 var(--f-read); }
.vdiff .won { color: var(--victory); } .vdiff .lost { color: #F08A98; }

/* ------------------------------------------------------------------ editor */
body[data-page="edit"] .topnav, body[data-page="new"] .topnav { position: relative; }
.ed-head { position: sticky; top: 0; z-index: 25; padding: 14px 0 0; background: linear-gradient(180deg, rgba(3,8,18,.97), rgba(3,8,18,.9)); border-bottom: 1px solid var(--hair); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ed-top { display: flex; align-items: center; gap: 22px; padding-bottom: 14px; flex-wrap: wrap; }
.ed-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ed-name h1 { font: 700 34px/1 var(--f-title); color: var(--ink); padding-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-acts { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.word.off { opacity: .35; pointer-events: none; }
.hextech.busy { opacity: .6; pointer-events: none; }
.ed-body { padding-top: 22px; padding-bottom: 80px; }
.ed-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; align-items: start; }
.ed-deck { position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; scrollbar-width: thin; }
.zones { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-bottom: 12px; }
.ed-search { margin-bottom: 14px; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.fsep { width: 1px; height: 18px; margin: 0 6px; background: var(--hair); }
.fchip { height: 30px; padding: 0 11px; font: 700 13.5px/1 var(--f-read); color: var(--control); box-shadow: inset 0 0 0 1px rgba(200,170,110,.28); }
.fchip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(200,170,110,.6); }
.fchip.on { color: var(--ground-deep); background: var(--gold); box-shadow: none; }
.pool-n { font: 700 13px/1 var(--f-read); color: var(--mute); margin: 4px 0 14px; }
.cgrid.pool { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.ctile.add .ct-hit { display: block; width: 100%; cursor: copy; }
.ctile.add .ct-hit:hover .cimg { box-shadow: 0 0 0 1.5px var(--gold-light); }
.ctile.add.has .cimg { box-shadow: 0 0 0 1.5px var(--gold); }
.ctile.add.full .ct-hit { cursor: not-allowed; }
.ctile.add.full .cimg { filter: brightness(.6); }
.ct-minus { position: absolute; top: 6%; left: 6%; width: 30px; height: 30px; display: grid; place-items: center; font: 900 20px/1 var(--f-num); color: var(--gold-light); background: rgba(2,5,11,.88); box-shadow: inset 0 0 0 1px rgba(200,170,110,.7); }
.ct-minus:hover { background: #2a0c12; }
.ct-ban { position: absolute; left: 0; right: 0; top: 44%; padding: 4px 0 2px; text-align: center; font: 700 14px/1 var(--f-title); letter-spacing: 1px; text-transform: uppercase; color: #fff; background: rgba(232,64,87,.85); pointer-events: none; }

.diffplate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 18px; background: rgba(9,20,40,.8); box-shadow: inset 0 0 0 1px rgba(200,170,110,.35); font: 700 14px/1.3 var(--f-read); color: var(--ink); }
.diffplate > span:first-child { flex: 1; min-width: 160px; }
.diffplate .will { color: var(--gold); white-space: nowrap; }
.diffplate .word { height: 24px; }
.ed-warn { margin: -8px 0 16px; padding: 10px 14px; font: 600 13.5px/1.45 var(--f-read); color: var(--ink2); box-shadow: inset 2px 0 0 var(--arcane); background: rgba(10,200,185,.06); }
.dsec { margin-bottom: 18px; }
.dsec .grp-h { margin-bottom: 4px; }
.dsec.empty .grp-h { border-bottom-color: var(--hair); }
.dsec.empty .grp-h h3 { color: var(--mute); }
.dsec .grp-h .word { height: 22px; font-size: 14px; }
.drows { list-style: none; margin: 0; padding: 0; }
.drow { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 38px; border-bottom: 1px solid rgba(240,230,210,.05); }
.drow:hover { background: rgba(240,230,210,.03); }
.dr-e { font-size: 13px; color: var(--mute); text-align: center; }
.dr-n { font: 700 14.5px/1.25 var(--f-read); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-n b { margin-left: 8px; font: 900 12px/1 var(--f-num); }
.dr-n b.won { color: var(--victory); } .dr-n b.lost { color: #F08A98; }
.dr-sub { font: 600 13px/1.4 var(--f-read); color: var(--mute); margin-top: 4px; }
.dr-sub.lost { color: #F08A98; } .dr-sub .word { height: 20px; font-size: 13px; }
.drow .word { height: 26px; font-size: 13px; }
.drow.gone .dr-n { color: var(--dim); text-decoration: line-through; }
.drow.gone .word { grid-column: 3 / 5; justify-self: end; }
.step { display: inline-flex; align-items: center; gap: 2px; }
.step button, .drow .x { width: 28px; height: 28px; display: grid; place-items: center; font: 900 17px/1 var(--f-num); color: var(--control); box-shadow: inset 0 0 0 1px rgba(200,170,110,.25); }
.step button:hover, .drow .x:hover { color: var(--gold-light); box-shadow: inset 0 0 0 1px rgba(200,170,110,.7); }
.step b { min-width: 24px; text-align: center; font-size: 15px; }
.legend-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 14px; align-items: start; }
.legend-row .cimg { width: 74px; }
.printings { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.printings .fchip { height: 24px; font-size: 12px; padding: 0 8px; }
.rsplit { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; font-size: 16px; }
.rsplit span { display: inline-flex; align-items: center; gap: 6px; }
.rsplit .pips { --pip: 16px; } .rsplit .pip { display: inline-block; }
.rsplit input { flex: 1; accent-color: #C8AA6E; }
.rsplit .pip, .dk-title .pip { position: relative; display: block; width: calc(var(--pip, 16px) * .8125); height: var(--pip, 16px); background: linear-gradient(180deg, #F0E6D2, #785A28); clip-path: polygon(0 0, 100% 0, 100% 62%, 50% 100%, 0 62%); }
.rsplit .pip img { position: absolute; inset: 1px; width: calc(100% - 2px); height: calc(100% - 2px); object-fit: cover; clip-path: inherit; }
.dsec.facts { margin-top: 26px; }

/* ------------------------------------------------------------------ sheets */
.rift-dialog.dk-import, .rift-dialog.dk-legend, .rift-dialog.dk-xlegend { width: min(720px, calc(100vw - 24px)); }
.rift-dialog.dk-card { width: min(760px, calc(100vw - 24px)); }
#sheet-body { max-height: calc(100vh - 40px); overflow: auto; background: linear-gradient(180deg, #0c1a33, #050c18); box-shadow: inset 0 0 0 1px rgba(200,170,110,.4); position: relative; }
.imp textarea { width: 100%; padding: 12px; resize: vertical; background: rgba(2,5,11,.6); border: 1px solid rgba(200,170,110,.35); color: var(--ink); font: 600 13px/1.5 ui-monospace, Menlo, monospace; outline: none; }
.imp textarea:focus { border-color: var(--gold-light); }
.imp-row { display: flex; align-items: center; gap: 22px; }
.imp .hint.lost, .hint.lost { color: #F08A98; }
.sites-h { margin: 18px 0 10px; }
.sites { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.site { display: flex; flex-direction: column; gap: 5px; padding: 11px 12px; text-align: left; box-shadow: inset 0 0 0 1px rgba(200,170,110,.28); }
.site:hover { box-shadow: inset 0 0 0 1px rgba(200,170,110,.7); background: rgba(240,230,210,.03); }
.site b { font: 700 18px/1 var(--f-title); color: var(--gold-light); padding-top: 2px; }
.site small { font: 600 12px/1.35 var(--f-read); color: var(--mute); }
.ipreview { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(200,170,110,.25); }
.ip-top { display: flex; gap: 14px; align-items: center; }
.ip-art { width: 70px; height: 92px; flex: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(200,170,110,.5); }
.ip-art img { width: 100%; height: 100%; object-fit: cover; }
.ip-name { font: 700 24px/1.05 var(--f-title); color: var(--ink); }
.ip-name.lost { color: var(--lost); }
.ipreview .lg-ok { margin-top: 12px; }
.ipreview .dlg-foot { padding: 18px 0 22px; }
.same { margin-top: 16px; padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(200,170,110,.35); }
.same > .dlg-eye { letter-spacing: .6px; text-transform: uppercase; font-size: 12px; margin-bottom: 4px; }
.same-row { padding: 10px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.same-row:first-of-type { border-top: 0; }
.sr-top { display: flex; align-items: baseline; gap: 8px; } .sr-top b:first-child { font: 800 16px/1.2 var(--f-read); color: var(--ink); } .sr-top .dim { margin-left: auto; font: 700 13px/1 var(--f-read); color: var(--mute); }
.lpick { list-style: none; margin: 0; padding: 4px 24px 24px; display: grid; gap: 2px 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lpick button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; font: 700 15px/1.1 var(--f-read); color: var(--control); }
.lpick button:hover { color: var(--ink); }
.cardsheet { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; padding: 28px; }
.cardsheet img { width: 100%; border-radius: 4.5% / 3.2%; }
.cardsheet h2 { margin-top: 8px; font: 700 30px/1 var(--f-title); }
.ctext { margin-top: 14px; font: 600 15px/1.55 var(--f-read); color: var(--ink2); white-space: pre-line; }
.pips { display: inline-flex; gap: calc(var(--pip) * .2); flex: none; }

/* ------------------------------------------------------------------- phone */
@media (max-width: 899px) {
  .ed-top { gap: 12px 16px; }
  .ed-name h1 { font-size: 28px; }
  .ed-top .counter { order: 3; width: 100%; gap: 14px; } .ed-top .counter .cnt b { font-size: 22px; } .ed-top .counter .cnt small { font-size: 13px; }
  .ed-deck { position: static; max-height: none; overflow: visible; }
  .cgrid.pool { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .cgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .ctile figcaption { font-size: 12px; }
  .cn, .ct-minus { width: 26px; min-width: 26px; height: 26px; font-size: 15px; }
  .zones { gap: 2px 18px; }
  .cardsheet { grid-template-columns: 1fr; padding: 22px; } .cardsheet img { max-width: 260px; }
}
@media (max-width: 520px) {
  .dplate { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .dp-art { width: 70px; height: 92px; }
  .dp-name b { font-size: 23px; }
  .dp-ver { white-space: normal; font-size: 14px; }
  .vrow { grid-template-columns: 46px minmax(0, 1fr); }
  .vrow > .word { grid-column: 2; justify-self: start; height: 28px; }
  .sites { grid-template-columns: 1fr 1fr; }
}
.import-help { margin: 4px 0 0; font: 400 14px/1.4 var(--f-read); color: var(--mute, rgba(240,230,210,.6)); } .import-help a { color: var(--gold); } .import-help a:hover { text-decoration: underline; }

/* ---------------------------------------------- your cards, pull list */
/* DeckCollectionSection and DeckPullListView. */
.yc-n { font: 800 14px/1 var(--f-num); color: var(--mute); }
.yc-n.won, .yc-head.won { color: var(--victory); }
.yc-bar { display: block; height: 3px; background: var(--hair); position: relative; margin: 2px 0 14px; max-width: 640px; }
.yc-bar i { position: absolute; inset: 0 auto 0 0; background: var(--gold); }
.yc-head { font: 700 20px/1.2 var(--f-title); color: var(--ink); margin: 0 0 6px; }
.yc-miss { font: 600 14px/1.5 var(--f-read); color: var(--ink2, #CFC8B8); max-width: 640px; margin: 0 0 6px; }
.yc-row { font: 600 14px/1.4 var(--f-read); color: var(--gold-light); margin: 2px 0; }
.yc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 600 14px/1 var(--f-read); color: var(--ink2, #CFC8B8); cursor: pointer; }
.yc-check input { accent-color: var(--gold); width: 16px; height: 16px; }
.yc-acts { display: flex; align-items: center; gap: 18px; margin-top: 12px; max-width: 640px; }
.yc-gap { flex: 1; }
.yc-cost { color: var(--gold-light); font-variant-numeric: tabular-nums; }
.yc-where { max-width: 640px; margin-top: 10px; }
.yc-w { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.yc-wn { width: 34px; flex: none; font: 700 13px/1 var(--f-num); color: var(--gold); } .yc-wn.short { color: var(--lost, #E0473C); }
.yc-wt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .yc-wt b { font: 600 15px/1.3 var(--f-read); color: var(--ink); }
.yc-wt i { font: 500 13px/1.35 var(--f-read); font-style: normal; color: var(--mute); }
dialog.dk-pull { width: min(620px, calc(100vw - 24px)); }
.pl-body { padding: 4px 24px 8px; max-height: 60vh; overflow: auto; }
.pl-grp { margin-bottom: 22px; }
.pl-gh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(200,170,110,.35); }
.pl-gh b { font: 700 20px/1.1 var(--f-title); color: var(--ink); }
.pl-gh span { font-size: 13px; color: var(--mute); }
.pl-page { margin: 10px 0 2px; font: 700 13px/1 var(--f-read); color: var(--gold); }
.pl-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 30px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 0;
  background: none; border: 0; border-bottom: 1px solid var(--hair); color: inherit; text-align: left; cursor: pointer; }
.pl-row .pl-art { width: 38px; height: auto; aspect-ratio: 744/1039; object-fit: cover; border-radius: 2px; }
.pl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pl-t b { font: 800 15px/1.2 var(--f-read); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-t span { font-size: 12.5px; color: var(--dim-c, #5B5A56); }
.pl-n { font: 800 20px/1 var(--f-num); color: var(--gold-light); }
.pl-box { width: 30px; height: 30px; border: 1.5px solid rgba(216,181,110,.45); position: relative; }
.pl-row.on .pl-art { filter: saturate(.2); }
.pl-row.on .pl-t b { color: var(--mute); text-decoration: line-through; }
.pl-row.on .pl-n { color: var(--dim-c, #5B5A56); }
.pl-row.on .pl-box { background: var(--gold); border-color: var(--gold); }
.pl-row.on .pl-box::after { content: ""; position: absolute; left: 9px; top: 4px; width: 8px; height: 14px; border: solid var(--ground, #030812); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.pl-foot { flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--hair); }
.pl-sum { display: flex; gap: 10px; font: 600 13px/1.3 var(--f-read); color: var(--mute); }
.pl-sum b { color: var(--gold-light); font-weight: 700; }

/* Missing, zone by zone, and Want these N (specs/deck-collection-check.md) */
.yc-side { font: 600 14px/1.4 var(--f-read); color: var(--ink2, #CFC8B8); margin: 0 0 6px; }
.yc-missing { max-width: 640px; margin-top: 10px; }
.yc-missing .mz + .mz { margin-top: 14px; }
.yc-missing .grp-h b { color: var(--mute); }
.mrow { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.mrow-n { width: 58px; flex: none; font: 700 13px/1 var(--f-num); color: var(--lost, #E0473C); }
.mrow b { font: 600 15px/1.3 var(--f-read); color: var(--ink); min-width: 0; }
.mrow-star { font-style: normal; font-size: 11px; color: var(--gold); }
.mwant { display: flex; align-items: center; gap: 14px; margin-top: 12px; min-height: 40px; }
.ip-fit { margin: 10px 0 4px; }
.ip-fitline { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0; font: 600 14px/1.3 var(--f-read); color: var(--ink2, #CFC8B8); font-variant-numeric: tabular-nums; text-align: left; }
.ip-fitline.won { color: var(--victory); }
.ip-fitline svg { width: 12px; height: 12px; color: var(--gold); }
.yc-missing .grp-h { margin-bottom: 4px; } .yc-missing .grp-h h3 { font-size: 16px; }
