/**
 * Market Watch Stage E2 wireframe kit.
 * Core Magical Meta palette only. Annotations via data-wire + body.annotate.
 * Chrome styles come from home-e1.css (locked nav/footer).
 */
:root {
  --wf-bg: #0f0f0f;
  --wf-panel: #1a1a1a;
  --wf-box: #202020;
  --wf-box-2: #252525;
  --wf-line: #303030;
  --wf-text: #f0f0f0;
  --wf-muted: #9a9a9a;
  --wf-sec: #c0c0c0;
  --wf-brand: #00b337;
  --wf-pink: #e4007c;
  --wf-gold: #ffc107;
  --wf-anno: #00e045;
  --wf-gain: #00b337;
  --wf-loss: #e4007c;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--wf-bg);
  color: var(--wf-text);
}
a { color: var(--wf-brand); }

/* Critique bar */
.wf-top {
  position: sticky; top: 0; z-index: 60;
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center;
  padding: 0.55rem 1rem;
  background: rgba(15,15,15,.97);
  border-bottom: 1px solid var(--wf-line);
  font-size: 0.78rem;
}
.wf-top h1 { margin: 0; font-size: 0.92rem; color: var(--wf-brand); }
.wf-top .pick { margin-left: auto; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wf-top .pick a, .wf-top button {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--wf-line);
  border-radius: 4px;
  background: transparent;
  text-decoration: none;
  color: var(--wf-sec);
  font: inherit;
  cursor: pointer;
}
.wf-top .pick a.is-on, .wf-top .pick a:hover, .wf-top button:hover {
  border-color: var(--wf-brand);
  color: var(--wf-brand);
}
.wf-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wf-gold);
  border: 1px solid rgba(255,193,7,.45);
  padding: 0.12rem 0.35rem;
}

.wf-stage {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.75rem 1rem 2.5rem;
}
body.is-390 .wf-stage {
  max-width: 390px;
  padding: 0.5rem 0.55rem 2rem;
  border-left: 1px solid var(--wf-line);
  border-right: 1px solid var(--wf-line);
}
.wf-meta {
  color: var(--wf-muted);
  font-size: 0.84rem;
  margin: 0 0 0.85rem;
  max-width: 78ch;
  line-height: 1.45;
}
.wf-meta strong { color: var(--wf-gold); }

/* Annotations */
body.annotate [data-wire] {
  position: relative;
  outline: 1px dashed rgba(0, 224, 69, 0.45);
  outline-offset: -1px;
}
body.annotate [data-wire]::after {
  content: attr(data-wire);
  position: absolute;
  z-index: 40;
  top: 2px; left: 2px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(0, 179, 55, 0.92);
  color: #041208;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-block {
  background: var(--wf-box);
  border: 1px dashed var(--wf-line);
  border-radius: 8px;
  color: var(--wf-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem;
  min-height: 40px;
}
.wf-ph {
  display: inline-block;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  color: var(--wf-muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
}
.wf-h2 {
  margin: 1rem 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wf-sec);
}
.wf-note {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--wf-brand);
  background: var(--wf-panel);
  font-size: 0.82rem;
  color: var(--wf-sec);
}
.wf-note h3 { margin: 0 0 0.35rem; color: var(--wf-text); font-size: 0.92rem; }
.wf-note ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.wf-note li { margin: 0.2rem 0; }
.wf-locked {
  margin: 0.75rem 0;
  padding: 0.75rem 0.9rem;
  border: 2px solid rgba(255,193,7,.55);
  background: rgba(255,193,7,.08);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--wf-sec);
}
.wf-locked strong { color: var(--wf-gold); }
.wf-cut {
  border: 1px dashed rgba(228,0,124,.55) !important;
  background: rgba(228,0,124,.07) !important;
  position: relative;
}
.wf-cut::before {
  content: "CUT / DEPRECATE";
  position: absolute;
  top: 6px; right: 8px;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--wf-pink);
  z-index: 2;
}

/* Legacy top tabs (retired on shell wires; use .mw-sidebar / .mw-mobile-nav) */
.mw-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin: 0.65rem 0 0.85rem;
  padding: 0.25rem;
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
}
.mw-tabs a {
  text-decoration: none;
  color: var(--wf-sec);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}
.mw-tabs a.is-on {
  background: rgba(0,179,55,.16);
  color: var(--wf-brand);
  border: 1px solid rgba(0,179,55,.4);
}
body.is-390 .mw-tabs { justify-content: space-between; }
body.is-390 .mw-tabs a { flex: 1; text-align: center; padding: 0.45rem 0.2rem; font-size: 0.7rem; }

/* KPI strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
body.is-390 .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  min-height: 64px;
}
.kpi .lab { font-size: 0.62rem; color: var(--wf-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.kpi .val { font-size: 1.05rem; font-weight: 700; color: var(--wf-text); margin-top: 0.15rem; }
.kpi .sub { font-size: 0.68rem; color: var(--wf-sec); margin-top: 0.1rem; }
.kpi .val.gain { color: var(--wf-gain); }
.kpi .val.loss { color: var(--wf-loss); }

.fresh {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--wf-sec);
  margin-bottom: 0.45rem;
}
.fresh i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--wf-brand);
  display: inline-block;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.45rem 0 0.75rem;
}
.jump span {
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  color: var(--wf-sec);
  background: #151515;
}

/* Watchlist variants */
.watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.watch-head h2 { margin: 0; font-size: 0.95rem; color: var(--wf-text); }
.watch-head .slots {
  font-size: 0.72rem;
  color: var(--wf-gold);
  border: 1px solid rgba(255,193,7,.4);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.watch-head .slots.is-full { color: var(--wf-pink); border-color: rgba(228,0,124,.45); }

.ticker-rail {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.45rem;
  background: #121212;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.quote {
  flex: 0 0 auto;
  min-width: 148px;
  max-width: 170px;
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  cursor: pointer;
}
.quote .sym { font-size: 0.72rem; font-weight: 700; color: var(--wf-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quote .px { font-size: 0.95rem; font-weight: 700; margin-top: 0.1rem; }
.quote .chg { font-size: 0.68rem; }
.quote .chg.gain, .gain { color: var(--wf-gain); }
.quote .chg.loss, .loss { color: var(--wf-loss); }
.quote .meta { font-size: 0.6rem; color: var(--wf-muted); margin-top: 0.15rem; }

.watch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
body.is-390 .watch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.watch-card {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.watch-card .art {
  aspect-ratio: 5/7;
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted); font-size: 0.65rem; letter-spacing: 0.08em;
}
.watch-card .body { padding: 0.4rem 0.45rem 0.5rem; }
.watch-card .name { font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-card .px { font-size: 0.85rem; font-weight: 700; }
.watch-card .chg { font-size: 0.65rem; }

.hybrid-watch {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
body.is-390 .hybrid-watch { grid-template-columns: 1fr; }

/* Dashboard modules */
.mod {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.7rem;
}
.mod h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--wf-text);
  display: flex; align-items: center; gap: 0.4rem;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
body.is-390 .two-col { grid-template-columns: 1fr; }
.mover-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(48,48,48,.7);
  cursor: pointer;
}
.mover-row:last-child { border-bottom: 0; }
.mover-row .mover-body {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 0.45rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.thumb {
  width: 36px; height: 50px;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  border-radius: 3px;
}
.mover-row .nm { font-size: 0.78rem; font-weight: 600; }
.mover-row .st { font-size: 0.62rem; color: var(--wf-muted); }
.mover-row .px { font-size: 0.78rem; font-weight: 700; text-align: right; }
.mover-row .ch { font-size: 0.68rem; text-align: right; }
.mover-acts {
  display: grid;
  justify-items: end;
  gap: 0.1rem;
}
.ix-info {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,193,7,.55);
  background: rgba(255,193,7,.12);
  color: var(--wf-gold);
  font-size: 0.58rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.seller .art { position: relative; }
.seller .art .ix-info {
  position: absolute;
  top: 4px; right: 4px;
}

/* Interaction restore checklist (audit annotations) */
.wf-ix {
  margin: 0.55rem 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border: 1px dashed rgba(255,193,7,.4);
  background: rgba(255,193,7,.05);
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--wf-sec);
  line-height: 1.45;
}
.wf-ix strong { color: var(--wf-gold); }
.wf-ix ul { margin: 0.25rem 0 0; padding-left: 1.05rem; }
.wf-ix li { margin: 0.15rem 0; }
/* is-heat = Cards Rising: no accent border (match Volume / Momentum). Green lives in .kpi-go only.
   is-down ready for a falling KPI (loss/pink accent if needed). */
.kpi.is-heat { cursor: pointer; }
.kpi.is-down { cursor: pointer; border-color: rgba(228,0,124,.45); }
.expand-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.72rem;
  color: var(--wf-brand);
  margin: 0.35rem 0 0.55rem;
}
.pager-stub {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--wf-muted);
}
.pager-stub .wf-ph { cursor: default; }
.set-tile { position: relative; cursor: pointer; }
.set-tile .drawer-hint {
  font-size: 0.62rem;
  color: var(--wf-gold);
  margin-top: 0.35rem;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
body.is-390 .tier-grid { grid-template-columns: 1fr; }
.tier {
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  padding: 0.5rem;
  background: #151515;
}
.tier.high { border-color: rgba(54,171,129,.45); }
.tier.mid { border-color: rgba(250,166,26,.45); }
.tier.low { border-color: rgba(240,71,71,.45); }
.tier .t { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tier .c { font-size: 0.72rem; color: var(--wf-muted); margin: 0.2rem 0 0.4rem; }

.sellers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}
body.is-390 .sellers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seller {
  position: relative;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  padding: 0.4rem;
  text-align: center;
  cursor: pointer;
}
.seller .seller-body {
  display: block;
  text-decoration: none;
  color: inherit;
}
.seller .art {
  aspect-ratio: 5/7;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  margin-bottom: 0.3rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; color: var(--wf-muted);
}
.seller .ix-info {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  z-index: 1;
}
.seller .nm { font-size: 0.68rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seller .vol { font-size: 0.62rem; color: var(--wf-sec); }

.rarity-matrix {
  display: grid;
  grid-template-columns: 70px repeat(4, 1fr);
  gap: 2px;
  font-size: 0.65rem;
}
.rarity-matrix span {
  background: #151515;
  border: 1px solid var(--wf-line);
  padding: 0.4rem 0.3rem;
  text-align: center;
  color: var(--wf-sec);
}
.rarity-matrix .hd { color: var(--wf-muted); font-weight: 700; text-transform: uppercase; }
.rarity-matrix .cell { cursor: pointer; }
.rarity-matrix .cell:hover { border-color: var(--wf-brand); color: var(--wf-brand); }

.filters-drawer {
  border: 1px dashed var(--wf-line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  color: var(--wf-muted);
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
  background: #141414;
}

/* Cards layouts */
.cards-shell {
  display: grid;
  gap: 0.65rem;
}
.cards-a {
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 640px;
}
body.is-390 .cards-a { grid-template-columns: 1fr; }
.filter-rail {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  padding: 0.65rem;
}
.filter-rail h3 { margin: 0 0 0.5rem; font-size: 0.8rem; }
.filter-rail .grp { margin-bottom: 0.65rem; }
.filter-rail .lab { font-size: 0.62rem; color: var(--wf-muted); text-transform: uppercase; margin-bottom: 0.25rem; }
.filter-rail .chiprow { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.filter-rail .chip {
  font-size: 0.65rem;
  padding: 0.22rem 0.4rem;
  border: 1px solid var(--wf-line);
  border-radius: 4px;
  color: var(--wf-sec);
}
.filter-rail .chip.on {
  border-color: rgba(0,179,55,.5);
  color: var(--wf-brand);
  background: rgba(0,179,55,.1);
}

.results-head {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.intent-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.55rem; }
.intent {
  font-size: 0.68rem;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--wf-line);
  color: var(--wf-sec);
  background: #151515;
}
.intent.on {
  border-color: rgba(0,179,55,.5);
  color: var(--wf-brand);
  background: rgba(0,179,55,.12);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}
body.is-390 .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ci {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ci .art {
  aspect-ratio: 5/7;
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted); font-size: 0.6rem;
}
.ci .info-btn {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,179,55,.55);
  background: rgba(15,15,15,.85);
  color: var(--wf-brand);
  font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center;
}
.ci .body { padding: 0.4rem; }
.ci .nm { font-size: 0.72rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci .px { font-size: 0.82rem; font-weight: 700; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.table th {
  text-align: left;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wf-muted);
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid var(--wf-line);
  position: sticky; top: 0;
  background: #151515;
}
.table td {
  padding: 0.4rem 0.35rem;
  border-bottom: 1px solid rgba(48,48,48,.65);
  vertical-align: middle;
}
.table tr { cursor: pointer; }
.table tr:hover td { background: rgba(0,179,55,.05); }
.table .mini {
  width: 28px; height: 38px;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.modal-stub {
  border: 2px dashed rgba(255,193,7,.5);
  background: rgba(255,193,7,.06);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  color: var(--wf-sec);
  font-size: 0.8rem;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.modal-stub strong { color: var(--wf-gold); }

/* Sets */
.sets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
body.is-390 .sets-grid { grid-template-columns: 1fr; }
.set-tile {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.set-tile .cover {
  aspect-ratio: 16/7;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)),
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  display: flex; align-items: flex-end;
  padding: 0.65rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}
.set-tile .body { padding: 0.6rem 0.7rem 0.75rem; }
.set-tile .sub { font-size: 0.68rem; color: var(--wf-muted); margin-bottom: 0.4rem; }
.bar {
  height: 6px;
  border-radius: 999px;
  background: #2a2a2a;
  overflow: hidden;
  margin: 0.35rem 0;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--wf-brand);
  border-radius: 999px;
}
.preview {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.45rem;
}
.preview span {
  width: 28px; height: 38px;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  border-radius: 2px;
}
.set-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.7rem;
  color: var(--wf-sec);
}

.ledger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 0.7fr)) auto;
  gap: 0.45rem;
  align-items: center;
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}
body.is-390 .ledger-row {
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
.ledger-row .name { font-weight: 700; font-size: 0.85rem; }
.ledger-row .k { font-size: 0.62rem; color: var(--wf-muted); text-transform: uppercase; }
.ledger-row .v { font-size: 0.8rem; font-weight: 600; }

/* Sealed */
.sealed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
body.is-390 .sealed-grid { grid-template-columns: 1fr; }
.prod {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}
.prod .art {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted); font-size: 0.65rem;
}
.prod .type {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0,0,0,.75);
  border: 1px solid var(--wf-line);
  color: var(--wf-gold);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
}
.prod .body { padding: 0.55rem; }
.prod .nm { font-size: 0.78rem; font-weight: 600; }
.prod .px { font-size: 0.95rem; font-weight: 700; margin-top: 0.2rem; }

.catalog-list .row {
  display: grid;
  grid-template-columns: 48px 1fr auto auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--wf-line);
  cursor: pointer;
}
body.is-390 .catalog-list .row {
  grid-template-columns: 40px 1fr auto;
}
.catalog-list .art {
  width: 48px; height: 36px;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  align-items: center;
}

/* Soften e1 chrome when embedded in wireframes */
.e1-chrome-wrap { margin-bottom: 0.35rem; }
body.is-390 .e1-footer { max-width: 390px; margin: 0 auto; }

/* ── Discovery Dashboard (locked lean) ── */
.wf-superseded {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px dashed rgba(154,154,154,.55);
  background: rgba(154,154,154,.08);
  border-radius: 8px;
  font-size: 0.76rem;
  color: var(--wf-sec);
}
.wf-superseded strong { color: var(--wf-muted); }
.wf-superseded a { color: var(--wf-brand); }

.page-id {
  margin: 0.35rem 0 0.75rem;
}
.page-id .crumbs {
  font-size: 0.68rem;
  color: var(--wf-muted);
  margin-bottom: 0.35rem;
}
.page-id .crumbs a { color: var(--wf-sec); text-decoration: none; }
.page-id .crumbs a:hover { color: var(--wf-brand); }
.page-id .crumbs span { color: var(--wf-muted); margin: 0 0.25rem; }
.page-id .title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}
.page-id h1 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--wf-text);
}
body.is-390 .page-id h1 { font-size: 1.15rem; }
.page-id .meta-count {
  font-size: 0.68rem;
  color: var(--wf-muted);
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}
.page-id .sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--wf-sec);
  max-width: 62ch;
  line-height: 1.4;
}
.page-id .fresh-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  align-items: center;
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--wf-sec);
}
.page-id .coverage {
  color: var(--wf-muted);
}
.page-id .coverage em {
  font-style: normal;
  color: var(--wf-sec);
}

.personal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
  margin-bottom: 0.7rem;
  padding: 0.45rem 0.55rem;
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
}
.personal-strip .ps-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wf-muted);
  align-self: center;
  margin-right: 0.15rem;
  min-width: 7.5rem;
}
body.is-390 .personal-strip .ps-label { min-width: 100%; margin-bottom: 0.15rem; }
.ps-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 5.5rem;
  padding: 0.35rem 0.55rem;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.ps-chip:hover { border-color: rgba(0,179,55,.5); }
.ps-chip.is-on {
  border-color: rgba(0, 179, 55, 0.65);
  box-shadow: inset 0 0 0 1px rgba(0, 179, 55, 0.18);
}
.ps-chip .k { font-size: 0.6rem; color: var(--wf-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ps-chip .v { font-size: 0.95rem; font-weight: 700; color: var(--wf-text); }
.ps-chip .v span { font-size: 0.68rem; font-weight: 600; color: var(--wf-muted); }

/* MW topbar search (live #v2-search parity) */
.mw-topbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 0.45rem;
  padding: 0.45rem 0.55rem;
  background: #101010;
  border: 1px solid var(--wf-line);
  border-radius: 10px;
}
.mw-search {
  position: relative;
  flex: 1 1 240px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.35rem 0.55rem;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
}
.mw-search:focus-within {
  border-color: rgba(0, 179, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(0, 179, 55, 0.18);
}
.mw-search > .fa-search {
  color: var(--wf-muted);
  font-size: 0.78rem;
  flex-shrink: 0;
}
.mw-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--wf-text);
  font: inherit;
  font-size: 0.82rem;
}
.mw-search input::placeholder { color: var(--wf-muted); }
.mw-search-kbd {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--wf-muted);
  border: 1px solid var(--wf-line);
  border-radius: 4px;
  padding: 0.1rem 0.3rem;
  background: #101010;
}
.mw-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
body.is-390 .mw-topbar-right { display: none; }
.mw-topbar-pill {
  font-size: 0.65rem;
  font-weight: 650;
  color: var(--wf-sec);
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
  background: #151515;
}
.mw-currency-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--wf-muted);
  font-size: 0.72rem;
}
.mw-currency-picker i { font-size: 0.75rem; }
.mw-currency-picker select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: #151515;
  color: var(--wf-sec);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.32rem 1.4rem 0.32rem 0.45rem;
  min-height: 32px;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #9a9a9a 50%),
    linear-gradient(135deg, #9a9a9a 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% - 2px), calc(100% - 7px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.mw-currency-picker select:hover,
.mw-currency-picker select:focus {
  border-color: var(--wf-brand);
  color: var(--wf-brand);
  outline: none;
}
.mw-btn-refresh {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: #151515;
  color: var(--wf-sec);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 650;
  padding: 0.32rem 0.55rem;
  min-height: 32px;
  cursor: pointer;
}
.mw-btn-refresh:hover {
  border-color: var(--wf-brand);
  color: var(--wf-brand);
}
.mw-btn-refresh.is-busy,
.mw-btn-refresh:disabled {
  opacity: 0.7;
  cursor: wait;
}
.mw-refresh-label { white-space: nowrap; }
.more-menu-chrome-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.35rem;
}
.more-menu-chrome-row .mw-currency-picker,
.more-menu-chrome-row .mw-btn-refresh {
  flex: 1 1 auto;
}
.more-menu-chrome-row .mw-currency-picker select,
.more-menu-chrome-row .mw-btn-refresh {
  width: 100%;
  min-height: 40px;
  font-size: 0.78rem;
}
.more-menu-header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  text-align: center;
  min-width: 0;
}
.more-menu-header-logo {
  display: block;
  width: 100%;
  max-width: 148px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.more-menu-header-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--wf-sec, #c0c0c0);
  line-height: 1.25;
}
.mw-search-panel {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: calc(100% + 0.25rem);
  z-index: 40;
  padding: 0.45rem;
  background: #121212;
  border: 1px solid rgba(0, 179, 55, 0.4);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}
.mw-search-panel[hidden] { display: none !important; }
.mw-search-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 280px;
  overflow: auto;
}
.mw-search-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.3rem;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 7px;
}
.mw-search-body {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.mw-search-row .th {
  width: 28px;
  height: 36px;
  flex-shrink: 0;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  border-radius: 3px;
}
.mw-search-row .nm { font-size: 0.74rem; font-weight: 650; }
.mw-search-row .st { font-size: 0.6rem; color: var(--wf-muted); }
.mw-search-row .px { font-size: 0.74rem; font-weight: 700; margin-left: auto; }
.mw-search-row .chg { font-size: 0.68rem; font-weight: 700; min-width: 3.2rem; text-align: right; }
.mw-search-empty {
  font-size: 0.72rem;
  color: var(--wf-muted);
  line-height: 1.4;
  padding: 0.35rem 0.2rem;
}
.mw-search-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--wf-line);
  font-size: 0.65rem;
  color: var(--wf-muted);
}
.mw-search-all {
  color: var(--wf-brand);
  font-weight: 700;
  text-decoration: none;
}

/* Personal peeks (Watching / Alerts) */
.ps-peek {
  margin: 0.35rem 0 0.55rem;
  padding: 0.55rem 0.65rem;
  background: #121212;
  border: 1px solid rgba(0, 179, 55, 0.35);
  border-radius: 10px;
}
.ps-peek[hidden] { display: none !important; }
.ps-peek-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.ps-peek-head strong {
  font-size: 0.78rem;
  color: var(--wf-text);
}
.ps-peek-cap {
  font-size: 0.65rem;
  color: var(--wf-muted);
}
.ps-peek-cta {
  margin-left: auto;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 179, 55, 0.45);
  background: rgba(0, 179, 55, 0.12);
  color: var(--wf-brand);
  cursor: pointer;
}
.ps-peek-note,
.alert-plan {
  margin: 0.45rem 0 0;
  font-size: 0.68rem;
  color: var(--wf-muted);
  line-height: 1.45;
}
.alert-plan p { margin: 0.2rem 0; }
.alert-plan strong { color: var(--wf-sec); }

.watch-quote-strip {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--wf-line);
}
.watch-quote-strip .quote {
  position: relative;
  flex: 0 0 auto;
  min-width: 9.5rem;
  padding: 0;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  overflow: hidden;
}
.watch-quote-strip .quote-body {
  display: block;
  padding: 0.4rem 0.5rem 0.35rem;
  text-decoration: none;
  color: inherit;
}
.watch-quote-strip .quote .ix-info {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
}
.watch-quote-strip .sym { font-size: 0.68rem; font-weight: 700; max-width: 8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.watch-quote-strip .px { font-size: 0.78rem; font-weight: 700; }
.watch-quote-strip .chg { font-size: 0.68rem; font-weight: 700; }
.watch-quote-strip .meta { font-size: 0.58rem; color: var(--wf-muted); }

.watch-peek-list { display: flex; flex-direction: column; gap: 0.25rem; }

/* Gundam canary Watching: dense card grid (name / finish / price / age) */
.watch-peek-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  gap: 0.4rem;
}
.watch-peek-card {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 0;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  overflow: hidden;
}
.watch-peek-card .watch-peek-body {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.35rem 0.5rem;
  align-items: start;
  width: 100%;
  padding: 0.42rem 1.9rem 0.42rem 0.42rem;
  box-sizing: border-box;
}
.watch-peek-card .th {
  width: 36px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--wf-box-2);
  border: 1px solid var(--wf-line);
  border-radius: 4px;
}
.watch-peek-card .th--empty {
  display: block;
  border-style: dashed;
}
.watch-peek-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.watch-peek-card .nm {
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--wf-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.watch-peek-card .fin {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--wf-muted);
  line-height: 1.2;
}
.watch-peek-card .quote {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
  margin-top: 0.12rem;
}
.watch-peek-card .px {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wf-text);
  margin-left: 0;
}
.watch-peek-card .age {
  font-size: 0.58rem;
  color: var(--wf-muted);
  line-height: 1.2;
}
.watch-peek-card .watch-peek-rm {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  z-index: 1;
}

.watch-peek-row,
.tier-mini,
.rm-drawer-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.35rem;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 7px;
}
.watch-peek-body,
.tier-mini-body,
.rm-drawer-body,
.mover-body,
.seller-body {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.watch-peek-row .th,
.tier-mini .th,
.rm-drawer-row .th {
  width: 28px;
  height: 36px;
  flex-shrink: 0;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  border-radius: 3px;
}
.watch-peek-row .meta {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  flex: 1;
}
.watch-peek-row .nm,
.tier-mini .nm,
.rm-drawer-row .nm { font-size: 0.72rem; font-weight: 650; }
.watch-peek-row .st,
.watch-peek-row .fin,
.tier-mini .st,
.rm-drawer-row .st { font-size: 0.6rem; color: var(--wf-muted); }
.watch-peek-row .px,
.tier-mini .px,
.rm-drawer-row .px { font-size: 0.72rem; font-weight: 700; margin-left: auto; }
.watch-peek-row .chg,
.tier-mini .ch { font-size: 0.68rem; font-weight: 700; min-width: 3.2rem; text-align: right; }
.watch-peek-body {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
}
.watch-peek-rm {
  appearance: none;
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: #1a1a1a;
  color: #9a9a9a;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.watch-peek-rm:hover {
  color: #f0f0f0;
  border-color: rgba(0, 179, 55, 0.45);
}

.alert-peek-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.alert-peek-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  padding: 0.4rem 0.5rem;
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 7px;
  font-size: 0.72rem;
}
.alert-peek-item .badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wf-gold);
  border: 1px solid rgba(255, 193, 7, 0.4);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
}
.alert-peek-item .nm { font-weight: 700; }
.alert-peek-item .rule { color: var(--wf-brand); font-weight: 650; }
.alert-peek-item .st { color: var(--wf-muted); font-size: 0.65rem; }
.ps-prompt {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--wf-sec);
  padding: 0.25rem 0.35rem;
  border-left: 1px solid var(--wf-line);
  margin-left: 0.15rem;
}
body.is-390 .ps-prompt {
  flex-basis: 100%;
  border-left: 0;
  border-top: 1px solid var(--wf-line);
  margin-left: 0;
  margin-top: 0.2rem;
  padding-top: 0.45rem;
}
.ps-prompt a { color: var(--wf-brand); font-weight: 600; text-decoration: none; }

.market-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.7rem;
  padding: 0.5rem 0.6rem;
  background: #141414;
  border: 1px solid var(--wf-line);
  border-radius: 10px;
}
.market-controls .ctrl-lab {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--wf-muted);
  margin-right: 0.15rem;
}
.range-seg {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.15rem;
  background: #101010;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
}
.range-seg button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.32rem 0.55rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wf-sec);
  cursor: pointer;
}
.range-seg button.is-on {
  background: rgba(0,179,55,.18);
  color: var(--wf-brand);
}
.ctrl-select, .ctrl-adv, .ctrl-ms {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: var(--wf-panel);
  color: var(--wf-sec);
  cursor: pointer;
}
.ctrl-ms em {
  font-style: normal;
  font-weight: 700;
  color: var(--wf-brand);
  margin-left: 0.15rem;
}
.ctrl-ms.is-on {
  border-color: rgba(0, 179, 55, 0.45);
  background: rgba(0, 179, 55, 0.08);
}
.ctrl-overflow {
  font-size: 0.62rem;
  color: var(--wf-muted);
  padding: 0.2rem 0.35rem;
  border: 1px dashed var(--wf-line);
  border-radius: 6px;
}
.ctrl-count {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--wf-gold);
  margin-left: auto;
}
body.is-390 .ctrl-count { margin-left: 0; flex-basis: 100%; }
.ctrl-adv { margin-left: 0; }
body.is-390 .ctrl-adv { width: 100%; }
.ctrl-chips {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.15rem;
}
.ctrl-chip {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(0, 179, 55, 0.12);
  border: 1px solid rgba(0, 179, 55, 0.35);
  color: var(--wf-brand);
}
.ctrl-chip-clear {
  font: inherit;
  font-size: 0.62rem;
  padding: 0.18rem 0.4rem;
  border: 0;
  background: transparent;
  color: var(--wf-muted);
  cursor: pointer;
  text-decoration: underline;
}
.ctrl-note {
  flex-basis: 100%;
  font-size: 0.68rem;
  color: var(--wf-gold);
  margin-top: 0.1rem;
}
.adv-panel {
  flex-basis: 100%;
  width: 100%;
  max-width: none;
  margin-top: 0.2rem;
  padding: 0.3rem 0.45rem 0.25rem;
  border: 1px dashed var(--wf-line);
  border-radius: 6px;
  background: #121212;
  font-size: 0.72rem;
  color: var(--wf-muted);
  box-sizing: border-box;
}
.adv-panel[hidden] { display: none; }
.adv-panel > strong {
  display: block;
  color: var(--wf-sec);
  margin-bottom: 0.1rem;
  font-size: 0.74rem;
}
.adv-grid--3 {
  grid-template-columns: 1.15fr 0.7fr 1.15fr;
}
body.is-390 .adv-grid--3 { grid-template-columns: 1fr; }
.adv-hint {
  margin: 0 0 0.22rem;
  font-size: 0.66rem;
  line-height: 1.3;
  color: var(--wf-muted);
  max-width: 52rem;
}
.adv-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  background: rgba(0, 179, 55, 0.15);
  color: var(--wf-brand);
  vertical-align: middle;
}
.adv-badge--new {
  background: rgba(255, 193, 7, 0.15);
  color: var(--wf-gold);
}
.adv-list {
  margin: 0.25rem 0 0;
  padding-left: 1.05rem;
  font-size: 0.68rem;
  line-height: 1.45;
}
.adv-list code {
  font-size: 0.62rem;
  color: var(--wf-sec);
}
.trait-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 0.75rem;
  margin: 0;
  width: 100%;
  max-width: none;
  align-items: stretch;
}
.tg-lab {
  grid-column: 1 / -1;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wf-muted);
  margin: 0 0 0.08rem;
}
.trait-group > .tg-lab:not(:first-child) {
  margin-top: 0.55rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
/* Legacy chip style (wireframes / static examples). */
.tg-item {
  font-size: 0.62rem;
  padding: 0.18rem 0.4rem;
  border-radius: 4px;
  border: 1px solid var(--wf-line);
  background: #171717;
  color: var(--wf-sec);
}
.tg-item.is-only {
  border-color: rgba(0, 179, 55, 0.5);
  background: rgba(0, 179, 55, 0.12);
  color: var(--wf-brand);
}
.tg-item.is-omit,
.tg-item.is-no {
  border-color: rgba(228, 0, 124, 0.45);
  background: rgba(228, 0, 124, 0.1);
  color: var(--wf-pink);
}
/* Three-state trait filter: Any | Require | Exclude (list rows, not heavy pills) */
.trait-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-width: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 0.18rem 0.05rem;
}
/* Last row of 3-col Variants grid: no bottom hairline */
.trait-group > .trait-toggle:nth-last-child(-n+3) {
  border-bottom: none;
}
.trait-toggle.is-active .tt-label,
.trait-toggle.is-omit-active .tt-label {
  color: var(--wf-text);
  font-weight: 600;
}
.tt-label {
  font-size: 0.72rem;
  color: var(--wf-sec);
  white-space: nowrap;
  min-width: 0;
  flex: 0 1 auto;
}
.tt-label i {
  display: none;
}
.tt-btns {
  display: flex;
  gap: 1px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--wf-line);
  background: #0f0f0f;
}
.tt-btn {
  background: transparent;
  border: none;
  color: var(--wf-muted);
  font-size: 0.6rem;
  font-family: inherit;
  padding: 0.18rem 0.34rem;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  line-height: 1.2;
}
.tt-btn:hover {
  background: #1c1c1c;
  color: var(--wf-sec);
}
/* Any (default): quiet selected state, no green scream */
.tt-btn.is-on {
  background: #1a1a1a;
  color: var(--wf-sec);
  font-weight: 500;
}
/* Green / pink accent only when a constraint is active */
.tt-btn.tt-only.is-on {
  background: var(--wf-brand);
  color: #000;
  font-weight: 600;
}
.tt-btn.tt-omit.is-on {
  background: var(--wf-pink);
  color: #fff;
  font-weight: 600;
}
body.is-390 .adv-panel {
  max-width: none;
  padding: 0.28rem 0.35rem 0.22rem;
}
body.is-390 .trait-group {
  grid-template-columns: 1fr;
  gap: 0;
}
body.is-390 .trait-group > .trait-toggle:nth-last-child(-n+3) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
body.is-390 .trait-group > .trait-toggle:last-of-type {
  border-bottom: none;
}
body.is-390 .tt-btn {
  padding: 0.22rem 0.32rem;
  font-size: 0.58rem;
}
/* Mid desktop: 2 cols if 3 would crush Require/Exclude labels */
@media (max-width: 900px) {
  body:not(.is-390) .trait-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:not(.is-390) .trait-group > .trait-toggle:nth-last-child(-n+3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  body:not(.is-390) .trait-group > .trait-toggle:nth-last-child(-n+2) {
    border-bottom: none;
  }
}
.range-seg--overflow {
  margin-top: 0.15rem;
}

.pulse {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
}
body.is-390 .pulse { grid-template-columns: 1fr; }
.heat-hero {
  background: #151515;
  border: 1px solid rgba(250,166,26,.4);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  text-align: center;
}
.heat-hero:hover { border-color: rgba(250,166,26,.7); }
.heat-hero .score {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wf-gold);
}
.heat-hero .score span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wf-muted);
}
.heat-hero .state {
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wf-text);
}
.heat-hero .hint {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  color: var(--wf-muted);
}
.pulse-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}
body.is-390 .pulse-stats { grid-template-columns: 1fr; }
.pulse-stat {
  background: #151515;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
}
.pulse-stat .lab { font-size: 0.6rem; color: var(--wf-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.pulse-stat .val { font-size: 1rem; font-weight: 700; margin-top: 0.15rem; }
.pulse-stat .val.gain { color: var(--wf-gain); }
.pulse-note {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: var(--wf-muted);
  line-height: 1.4;
  margin: 0;
}
.mod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.mod-head h3 { margin: 0; }
.mod-head .view-all {
  font-size: 0.72rem;
  color: var(--wf-brand);
  text-decoration: none;
  font-weight: 600;
}
.range-chip {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wf-gold);
  border: 1px solid rgba(255,193,7,.4);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.sellers.is-discovery {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
body.is-390 .sellers.is-discovery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seller .vol strong { color: var(--wf-text); }

.mover-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}
.mover-tabs button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--wf-line);
  border-radius: 999px;
  background: #151515;
  color: var(--wf-sec);
  cursor: pointer;
}
.mover-tabs button.is-on {
  border-color: rgba(0,179,55,.5);
  color: var(--wf-brand);
  background: rgba(0,179,55,.12);
}
.mover-tab-panel[hidden] { display: none; }
.mover-row .why {
  font-size: 0.6rem;
  color: var(--wf-muted);
  margin-top: 0.1rem;
}

.depth-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}
body.is-390 .depth-row { grid-template-columns: 1fr; }
.depth-row > .mod { margin-bottom: 0; }

.tier .act, .tier .mov {
  font-size: 0.68rem;
  color: var(--wf-sec);
  margin-top: 0.15rem;
}
.tier .mov.gain { color: var(--wf-gain); }
.tier .mov.loss { color: var(--wf-loss); }
.tier { cursor: pointer; }
.tier:hover { border-color: var(--wf-brand); }

.rarity-viz {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}
body.is-390 .rarity-viz { grid-template-columns: 1fr; }
.rarity-donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background:
    conic-gradient(
      #00b337 0 28%,
      #ffc107 28% 52%,
      #e4007c 52% 68%,
      #6a6a6a 68% 100%
    );
  margin: 0 auto;
  position: relative;
}
.rarity-donut::after {
  content: "Share";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--wf-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--wf-muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rarity-legend {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.rarity-legend button {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 0.4rem;
  align-items: center;
  font: inherit;
  text-align: left;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: #151515;
  color: var(--wf-sec);
  cursor: pointer;
}
.rarity-legend button:hover { border-color: var(--wf-brand); color: var(--wf-brand); }
.rarity-legend i {
  width: 10px; height: 10px; border-radius: 2px;
  display: inline-block;
}
.rarity-legend .nm { font-size: 0.72rem; font-weight: 600; }
.rarity-legend .ct { font-size: 0.68rem; color: var(--wf-muted); }
.rarity-legend .mv { font-size: 0.68rem; font-weight: 700; }

/* ── SaaS hybrid dashboard ─────────────────────────────────────────────── */
.wf-stage--full {
  max-width: 1440px;
}
.saas-layer {
  margin-bottom: 0.85rem;
}
.saas-layer-lab {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--wf-gold);
  margin: 0 0 0.35rem;
}
.saas-note,
.mod-foot {
  margin: 0.4rem 0 0;
  font-size: 0.68rem;
  color: var(--wf-muted);
  line-height: 1.4;
}
.personal-strip--saas {
  align-items: stretch;
}
.ps-chip--sync {
  border-color: rgba(0, 179, 55, 0.45);
  box-shadow: inset 0 0 0 1px rgba(0, 179, 55, 0.12);
}
.ps-chip--sync .k::after {
  content: " · sync";
  color: var(--wf-brand);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.saas-anno-callout {
  margin: 0.55rem 0 0.15rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(255, 193, 7, 0.55);
  border-radius: 10px;
  background: rgba(255, 193, 7, 0.05);
}
.saas-anno-lab {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wf-gold);
  margin-bottom: 0.35rem;
}
.saas-anno-stub {
  display: grid;
  gap: 0.45rem;
}
.saas-anno-stub p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--wf-sec);
  line-height: 1.45;
}
.saas-anno-stub strong { color: var(--wf-gold); }
.saas-anno-stub code {
  font-size: 0.65rem;
  color: var(--wf-muted);
}
.saas-anno-fake-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--wf-line);
}
.saas-anno-fake-cta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--wf-line);
  color: var(--wf-text);
  background: #151515;
}
.saas-anno-fake-cta .fake-own {
  border-color: rgba(0, 179, 55, 0.45);
  color: var(--wf-brand);
}
.saas-anno-fake-cta .fake-own b {
  display: inline-grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 179, 55, 0.4);
  font-size: 0.65rem;
}
.saas-anno-fake-cta .fake-buy {
  margin-left: auto;
  background: rgba(0, 179, 55, 0.18);
  border-color: rgba(0, 179, 55, 0.45);
  color: #dfffea;
}
body.is-390 .saas-anno-fake-cta .fake-buy {
  margin-left: 0;
  width: 100%;
  justify-content: center;
}
.ps-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 180px;
  font-size: 0.68rem;
  color: var(--wf-sec);
  padding: 0.3rem 0.45rem;
  border: 1px dashed rgba(255,193,7,.35);
  border-radius: 8px;
  background: rgba(255,193,7,.04);
}
.ps-premium-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wf-gold);
  flex-shrink: 0;
}
.ps-premium a {
  color: var(--wf-gold);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
body.is-390 .ps-premium {
  flex-basis: 100%;
}
.ctrl-reset {
  font: inherit;
  font-size: 0.72rem;
  padding: 0.38rem 0.55rem;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  background: transparent;
  color: var(--wf-muted);
  cursor: pointer;
}
.ctrl-reset:hover {
  border-color: var(--wf-pink);
  color: var(--wf-pink);
}
.adv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
body.is-390 .adv-grid { grid-template-columns: 1fr; }
.adv-grid strong {
  display: block;
  color: var(--wf-sec);
  margin-bottom: 0.15rem;
}

.kpi-strip--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.35rem;
}
body.is-390 .kpi-strip--3 {
  grid-template-columns: 1fr;
}
.kpi.is-action {
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  position: relative;
}
.kpi.is-action:hover {
  border-color: rgba(0,179,55,.55);
}
.kpi-go {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--wf-brand);
  margin-left: 0.25rem;
}
.kpi-unit {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--wf-muted);
  margin-left: 0.1rem;
}
.kpi-mom-bar {
  display: flex;
  height: 10px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.4rem;
  background: #1a1a1a;
  border: 1px solid var(--wf-line);
  gap: 1px;
}
.kpi-mom-bar > span { min-width: 0; height: 100%; display: block; }
.kpi-trend {
  margin-top: 0.35rem;
  height: 22px;
  border-radius: 4px;
  background: #121212;
  border: 1px solid var(--wf-line);
  overflow: hidden;
}
.kpi-trend .spark {
  display: block;
  height: 100%;
  width: 100%;
  background:
    linear-gradient(180deg, transparent 40%, rgba(0,179,55,.18) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 8px,
      rgba(0,179,55,.55) 8px 10px,
      transparent 10px 18px,
      rgba(0,179,55,.35) 18px 20px
    );
  opacity: 0.85;
}

/* Desktop: Top Sellers ~2/3 + Price Tiers ~1/3 */
.disc-row--sellers-tiers {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: start;
}
body.is-390 .disc-row--sellers-tiers {
  grid-template-columns: 1fr;
}
.disc-row--sellers-tiers > .mod {
  margin-bottom: 0;
}
.sellers.is-saas {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
body.is-390 .sellers.is-saas {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1100px) {
  .sellers.is-saas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.tier-grid--stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tier-grid--stack .tier {
  margin: 0;
}

/* Price Tiers · desktop High | Mid | Low 3-col; mobile stacks */
.tier-grid--rich,
.tier-stack--rich,
.tier-3col--rich {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
body.is-390 .tier-grid--rich,
body.is-390 .tier-stack--rich,
body.is-390 .tier-3col--rich {
  grid-template-columns: 1fr;
}
.tier--rich {
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: default;
  min-width: 0;
  background: #121212;
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: none;
}
.tier--rich.high { border-color: #36ab81; }
.tier--rich.mid { border-color: #faa61a; }
.tier--rich.low { border-color: #f04747; }
.tier--rich .tier-head {
  cursor: pointer;
  padding: 0.65rem 0.75rem 0.2rem;
  background: transparent;
}
.tier--rich .tier-head .t {
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.tier--rich .tier-head .tier-range {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--wf-muted);
  margin-left: 0.35rem;
}
.tier--rich.high .tier-head .t { color: #36ab81; }
.tier--rich.mid .tier-head .t { color: #faa61a; }
.tier--rich.low .tier-head .t { color: #f04747; }
.tier--rich .tier-head:hover .t { color: var(--wf-brand); }
.tier--rich .tier-kpi-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  padding: 0 0.75rem 0.5rem;
  font-size: 0.72rem;
  color: var(--wf-muted);
  background: transparent;
}
.tier--rich .tier-kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
}
.tier--rich .tier-kpi strong {
  color: var(--wf-text, #f0f0f0);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}
.tier-lists {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.tier-list {
  padding: 0.5rem 0.65rem 0.65rem;
  border-top: 1px solid var(--wf-line);
  background: transparent;
}
.tier-list-lab {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
}
.tier-list-lab.gain { color: var(--wf-gain); }
.tier-list-lab.loss { color: var(--wf-loss); }
.tier-tmover-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
body.is-390 .tier-tmover-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
}
.tier-tmover {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0.55rem 0.45rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--wf-line);
  background: #151515;
  gap: 0.3rem;
  min-width: 0;
  position: relative;
}
.tier-tmover-hit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.tier-tmover .th {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  display: block;
  flex-shrink: 0;
}
.tier-tmover .tmover-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08rem;
  width: 100%;
  min-width: 0;
}
.tier-tmover .nm {
  font-size: 0.72rem;
  font-weight: 650;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tier-tmover .st {
  font-size: 0.58rem;
  color: var(--wf-muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tier-tmover .px {
  font-size: 0.8rem;
  font-weight: 700;
}
.tier-tmover .ch {
  font-size: 0.72rem;
  font-weight: 700;
}
.tier-tmover .tmover-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  width: 100%;
  margin-top: 0.1rem;
}
.tier-tmover .tmover-vol {
  font-size: 0.58rem;
  color: var(--wf-muted);
  white-space: nowrap;
}
/* Legacy compact mini rows (other wires) */
.tier-mini {
  padding: 0.22rem 0.28rem;
}
.tier-mini .nm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 7.5rem;
}
.mod-meta {
  font-size: 0.65rem;
  color: var(--wf-muted);
  font-weight: 500;
}
.mod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.45rem;
}
.mod-head h3 { margin: 0; }
.adv-decks-demote {
  margin-top: 0.65rem;
  padding-top: 0.45rem;
  border-top: 1px dashed var(--wf-line);
}
.adv-decks-demote a {
  color: var(--wf-brand);
  font-weight: 650;
  text-decoration: none;
}
.saas-anno-fake-cta .fake-alert {
  border-color: rgba(255, 193, 7, 0.45);
  color: var(--wf-gold);
}
.rm-drawer-acts {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  flex-shrink: 0;
}
.rm-drawer-row .rm-drawer-body {
  display: grid;
  grid-template-columns: 1.1rem 28px 1fr auto;
  gap: 0.35rem;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.rarity-viz--wide {
  grid-template-columns: 120px minmax(0, 1fr);
  max-width: 720px;
}
body.is-390 .rarity-viz--wide {
  grid-template-columns: 1fr;
}

/* ── MW app shell (live sidebar + mobile bottom nav) ───────────────────── */
/* Compact sticky tool rail (~210px). Ads = outer viewport gutters (not in-shell). */
.mw-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  margin: 0.65rem 0 1rem;
  align-items: start;
}
/* Legacy in-shell ad column: retired. Keep class harmless for old wires. */
.mw-shell--ads {
  grid-template-columns: minmax(0, 1fr);
}

/* Outer left/right skyscraper gutters beside centered shell (proto). */
.mw-viewport {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: center;
  gap: 0.55rem;
  align-items: start;
}
@media (min-width: 1780px) {
  .mw-viewport:not(.is-adfree) {
    grid-template-columns: 160px minmax(0, 1440px) 160px;
  }
}
.mw-viewport.is-adfree {
  grid-template-columns: minmax(0, 1520px);
}
.mw-ad-gutter {
  display: none;
  position: sticky;
  top: 0.65rem;
  align-self: start;
  width: 160px;
  min-height: 480px;
  border: 1px dashed rgba(0, 179, 55, 0.35);
  border-radius: 8px;
  background: rgba(0, 179, 55, 0.04);
  color: var(--wf-muted);
  font-size: 0.68rem;
  padding: 0.5rem;
  line-height: 1.35;
  box-sizing: border-box;
}
@media (min-width: 1780px) {
  .mw-viewport:not(.is-adfree) .mw-ad-gutter { display: block; }
}
.mw-viewport.is-adfree .mw-ad-gutter { display: none !important; }
.mw-ad-gutter strong {
  display: block;
  color: var(--wf-brand);
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}
.mw-ad-gutter .mw-ad-slot {
  margin-top: 0.45rem;
  min-height: 400px;
  border-radius: 6px;
  background: #151515;
  border: 1px solid var(--wf-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.45rem;
}
.mw-app {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  overflow: visible;
  background: #121212;
  min-height: 640px;
  position: relative;
}
.mw-sidebar {
  position: sticky;
  top: 0.65rem;
  align-self: start;
  max-height: calc(100vh - 1.1rem);
  overflow: auto;
  background: #0c0c0c;
  border-right: 1px solid var(--wf-line);
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0 0.55rem;
  min-height: 100%;
  width: 210px;
  z-index: 2;
}
/* In-shell .mw-ad-rail retired (use .mw-ad-gutter outside shell). */
.mw-ad-rail { display: none !important; }
.mw-sidebar-brand {
  padding: 1rem 0.85rem 0.85rem;
  border-bottom: 1px solid var(--wf-line);
  margin-bottom: 0.45rem;
  text-align: center;
}
.mw-sidebar-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
}
.mw-sidebar-brand-link:hover .brand-mark,
.mw-sidebar-brand-link:hover h2 { color: var(--wf-brand); }
.mw-sidebar-logo {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  flex-shrink: 0;
}
.mw-sidebar-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  min-width: 0;
  width: 100%;
  text-align: center;
}
/* Magical Meta lockup is global-header-only. Sidebar: game product title (h2) only. */
.mw-sidebar-brand .mw-sidebar-logo,
.mw-sidebar-brand .brand-mark,
html.mw-sidebar-game-title-only .mw-sidebar-logo,
html.mw-sidebar-game-title-only .mw-sidebar-brand .brand-mark {
  display: none !important;
}
.mw-sidebar-brand h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wf-sec);
  line-height: 1.25;
  text-align: center;
}
.mw-sidebar-nav {
  flex: 1;
  padding: 0.35rem 0.45rem;
}
.mw-sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mw-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--wf-sec);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.48rem 0.55rem;
  border-radius: 6px;
  border-left: 0;
  box-shadow: none;
}
.mw-sidebar-nav a i {
  width: 1.1rem;
  text-align: center;
  color: var(--wf-muted);
  font-size: 0.85rem;
}
.mw-sidebar-nav a:hover,
.mw-sidebar-nav a:focus-visible {
  background: rgba(0, 179, 55, 0.08);
  color: var(--wf-brand);
}
.mw-sidebar-nav a:hover i,
.mw-sidebar-nav a:focus-visible i { color: var(--wf-brand); }
.mw-sidebar-nav a:focus-visible {
  outline: 1px solid rgba(0, 179, 55, 0.45);
  outline-offset: 1px;
}
.mw-sidebar-nav a.is-on {
  background: rgba(0, 179, 55, 0.14);
  color: var(--wf-brand);
  border-left: 0;
  box-shadow: none;
}
.mw-sidebar-nav a.is-on i { color: var(--wf-brand); }
/* No left edge bar / glow on active rail items (owner feedback). */
.mw-sidebar-nav a.is-on::before,
.mw-sidebar-nav a.is-on::after {
  content: none !important;
  display: none !important;
}
.mw-sidebar-nav .nav-divider {
  height: 1px;
  background: var(--wf-line);
  margin: 0.4rem 0.35rem;
}
/* Quiet Tools group label above Magical Meta external links. */
.mw-sidebar-nav .nav-section {
  padding: 0.15rem 0.55rem 0.1rem;
  pointer-events: none;
}
.mw-sidebar-nav .nav-section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wf-muted);
  line-height: 1.2;
}
/* External tools: match primary nav type; external cue stays quiet. */
.mw-sidebar-nav a.nav-ext {
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
}
.mw-sidebar-nav a.nav-ext .ext {
  margin-left: auto;
  font-size: 0.55rem;
  line-height: 1;
  color: var(--wf-muted);
  font-style: normal;
  opacity: 0;
  transition: opacity 0.12s ease;
  flex-shrink: 0;
}
.mw-sidebar-nav a.nav-ext:hover .ext,
.mw-sidebar-nav a.nav-ext:focus-visible .ext {
  opacity: 0.7;
}
/* Mobile More sheet Tools: match sidebar rhythm; quieter external mark. */
.more-menu-sheet .more-menu-section .more-menu-link {
  justify-content: flex-start;
  gap: 0.55rem;
  font-weight: 600;
}
.more-menu-sheet .more-menu-link .more-menu-ext {
  margin-left: auto;
  font-size: 0.55rem;
  color: var(--wf-muted, #888);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.more-menu-sheet .more-menu-link:hover .more-menu-ext,
.more-menu-sheet .more-menu-link:focus-visible .more-menu-ext {
  opacity: 0.7;
}
.more-menu-sheet .more-menu-link:focus-visible {
  outline: 1px solid rgba(0, 179, 55, 0.45);
  outline-offset: 1px;
}
.mw-sidebar-foot {
  padding: 0.55rem 0.75rem 0.45rem;
  border-top: 1px solid var(--wf-line);
  font-size: 0.62rem;
  color: var(--wf-muted);
  line-height: 1.35;
  margin-top: auto;
}
/* Freshness strong: age class from proto (is-fresh / is-stale). Never always-green. */
.mw-sidebar-foot strong {
  font-weight: 600;
  color: var(--wf-sec);
}
.mw-sidebar-foot strong.is-fresh { color: var(--wf-brand); }
.mw-sidebar-foot strong.is-stale { color: var(--wf-gold); }
.mw-sidebar-foot strong.is-unknown { color: var(--wf-muted); }
.more-menu-last-updated strong.is-fresh { color: var(--wf-brand); }
.more-menu-last-updated strong.is-stale { color: var(--wf-gold); }
.more-menu-last-updated strong.is-unknown { color: var(--wf-muted); }
.mw-sidebar-foot .mw-sidebar-legal {
  margin-top: 0.35rem;
  font-size: 0.6rem;
}
.mw-sidebar-foot .mw-sidebar-legal a {
  color: var(--wf-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Sidebar foot owns social presence; site footer keeps brand columns. */
.mw-sidebar-social {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin: 0.4rem 0 0.15rem;
}
.mw-sidebar-social a {
  color: var(--wf-muted);
  font-size: 0.95rem;
  line-height: 1;
  text-decoration: none;
}
.mw-sidebar-social a:hover { color: var(--wf-brand); }
.mw-main .e1-footer-social { display: none; }
.mw-main {
  min-width: 0;
  padding: 0.7rem 0.85rem 1.1rem;
  background: var(--wf-bg);
  border-radius: 0 10px 10px 0;
}

/* Mid widths: icon-only compact rail (saves horizontal for content + optional right ads) */
@media (max-width: 1180px) and (min-width: 901px) {
  .mw-app { grid-template-columns: 64px minmax(0, 1fr); }
  .mw-sidebar { width: 64px; }
  .mw-sidebar-brand h2,
  .mw-sidebar-brand .brand-mark,
  .mw-sidebar-nav a span,
  .mw-sidebar-nav a .ext,
  .mw-sidebar-nav .nav-section,
  .mw-sidebar-foot .mw-sidebar-legal { display: none; }
  .mw-sidebar-social { justify-content: center; gap: 0.25rem; }
  .mw-sidebar-social a { font-size: 0.78rem; }
  .mw-sidebar-brand { padding: 0.45rem 0.25rem; text-align: center; }
  .mw-sidebar-brand-link { gap: 0; }
  .mw-sidebar-logo { max-width: 44px; }
  /* No Magical Meta mark in rail — keep a tiny game title instead of an empty brand slot. */
  html.mw-sidebar-game-title-only .mw-sidebar-brand h2 {
    display: block;
    font-size: 0.52rem;
    line-height: 1.15;
    letter-spacing: 0.01em;
    padding: 0 0.1rem;
  }
  .mw-sidebar-nav a {
    justify-content: center;
    padding: 0.55rem 0.35rem;
    gap: 0;
  }
  .mw-sidebar-foot { padding: 0.4rem 0.25rem; text-align: center; }
  .mw-shell--ads { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .mw-shell--ads { grid-template-columns: minmax(0, 1fr); }
}
.mw-main > .wf-locked,
.mw-main > .wf-ix {
  margin-top: 0;
}

/* Mobile: live collapses desktop sidebar; bottom tab bar replaces it */
body.is-390 .mw-shell,
body.is-390 .mw-shell--ads {
  grid-template-columns: 1fr;
  margin-bottom: 0.35rem;
}
body.is-390 .mw-ad-gutter { display: none !important; }
body.is-390 .mw-app {
  grid-template-columns: 1fr;
  border-radius: 8px;
  min-height: 0;
  overflow: hidden;
}
body.is-390 .mw-sidebar { display: none; }
body.is-390 .mw-main {
  padding: 0.55rem 0.5rem 4.5rem;
  border-radius: 8px;
}
.mw-mobile-nav {
  display: none;
}
/* Fixed to viewport (not sticky): critique uses document scroll + footer below nav in DOM. */
body.is-390 .mw-mobile-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 390px);
  z-index: 80;
  margin: 0;
  padding: 0.4rem 0.2rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
  background: rgba(12, 12, 12, 0.97);
  border-top: 1px solid var(--wf-line);
  gap: 2px;
}
body.is-390.is-stage-430 .mw-mobile-nav {
  width: min(100%, 430px);
}
/* Mobile More sheet: center over stage, stay inert when closed (no Magical Meta peek). */
body.is-390 .more-menu-overlay { z-index: 90; }
body.is-390 .more-menu-sheet {
  z-index: 91;
  max-width: 390px;
  left: 50%;
  right: auto;
  width: 100%;
  transform: translate(-50%, 100%);
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}
body.is-390 .more-menu-sheet.open,
body.is-390 .more-menu-sheet[aria-hidden="false"] {
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}
body.is-390.is-stage-430 .more-menu-sheet { max-width: 430px; }
.mw-mobile-nav a,
.mw-mobile-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--wf-muted);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.1rem;
  cursor: pointer;
}
.mw-mobile-nav a.is-on { color: var(--wf-brand); }
.mw-mobile-nav i { font-size: 0.95rem; }
.mw-mobile-nav .more-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
}
.mw-mobile-nav .more-mark img,
.mw-mobile-nav .more-mark-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Live rarity matrix: green heatmap data table (owner final). */
/* Desktop: full matrix. Mobile: sticky rarity + h-scroll (do not squash cols). */
.rarity-matrix-scroll {
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #121212;
}
.rarity-matrix-scroll--full {
  max-height: none;
  overflow-x: visible;
  overflow-y: visible;
}
.rarity-matrix.rm-live {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 0;
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
}
.rarity-matrix.rm-fullview {
  min-width: 0;
}
.rm-head {
  margin: 0 0 0.55rem;
}
.rm-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.25;
}
.rm-subtitle {
  margin: 0.2rem 0 0;
  font-size: 12.5px;
  color: var(--wf-muted);
  line-height: 1.35;
}
.rm-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.45rem;
}
.rm-controls--dense {
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.3rem;
}
.rm-metric-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12px;
  color: var(--wf-muted);
}
.rm-controls--dense .rm-metric-label {
  font-size: 11px;
}
.rm-metric-k {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
}
.rm-metric-select {
  font: inherit;
  font-size: 13px;
  color: #f0f0f0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
  cursor: pointer;
}
.rm-controls--dense .rm-metric-select {
  font-size: 12px;
  padding: 0.18rem 0.35rem;
}
.rm-heat-note {
  font-size: 11.5px;
  color: var(--wf-muted);
}
.rm-range-chip {
  margin-left: auto;
  cursor: help;
}
.rm-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.4rem;
  font-size: 11px;
  color: var(--wf-muted);
}
.rm-legend--inline {
  margin: 0;
  flex: 1 1 auto;
  min-width: 72px;
  max-width: 140px;
}
.rm-legend-bar {
  flex: 1;
  max-width: 160px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(10, 28, 22, 0.35) 0%,
    rgba(12, 90, 48, 0.55) 55%,
    rgba(16, 138, 70, 0.78) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rm-legend--inline .rm-legend-bar {
  max-width: none;
  height: 5px;
}
.rm-row--collapsed {
  display: none !important;
}
.rm-expand-wrap {
  display: flex;
  justify-content: center;
  padding: 0.28rem 0.35rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #121212;
}
.rm-expand-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #1a1a1a;
  color: var(--wf-brand, #00b337);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.rm-expand-btn:hover,
.rm-expand-btn:focus-visible {
  border-color: rgba(0, 179, 55, 0.45);
  outline: none;
}
.rm-sig-tip,
.rm-explore-hint {
  margin: 0 0 0.4rem;
  font-size: 11.5px;
  color: var(--wf-muted);
}
.rm-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.45rem;
}
.rm-tool-note {
  font-size: 0.65rem;
  color: var(--wf-sec);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(0, 179, 55, 0.08);
  border: 1px solid rgba(0, 179, 55, 0.25);
}
.rm-tool-note--muted {
  color: var(--wf-muted);
  background: #151515;
  border-color: var(--wf-line);
}
.rm-header-row,
.rm-row {
  display: grid;
  grid-template-columns: minmax(108px, 0.95fr) repeat(var(--rm-cols, 6), minmax(92px, 1fr));
  gap: 0;
  min-width: 0;
  width: 100%;
  background: transparent;
}
.rm-dense .rm-header-row,
.rm-dense .rm-row {
  grid-template-columns: minmax(52px, 72px) repeat(var(--rm-cols, 6), minmax(78px, 1fr));
}
.rm-header-row {
  position: sticky;
  top: 0;
  z-index: 3;
}
.rm-row--after-special {
  border-top: 2px solid rgba(255, 255, 255, 0.14);
}
.rm-row-label-head,
.rm-col-header {
  background: #1a1a1a;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 0.4rem 0.28rem;
  text-align: center;
  color: var(--wf-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.rm-dense .rm-row-label-head,
.rm-dense .rm-col-header {
  padding: 0.28rem 0.2rem;
  font-size: 10.5px;
}
.rm-row-label-head {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #1c1c1c;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.rm-row-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #121212;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 0.35rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 12.5px;
  font-weight: 700;
  min-width: 0;
  min-height: 48px;
}
.rm-dense .rm-row-label {
  padding: 0.18rem 0.3rem;
  min-height: 34px;
  font-size: 12px;
  gap: 0.15rem;
}
.rm-row-legend-single {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rm-sym {
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.rm-rarity-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  background: none;
  border: 0;
  padding: 0;
  box-shadow: none;
}
/* Foil finish chip (matrix foil rows; same treatment as proto Movers) */
.foil-chip {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #041208;
  background: linear-gradient(105deg, #c8d0ff, #ffffff 40%, #9ad8ff 70%, #e0b0ff);
  border-radius: 3px;
  padding: 0.08rem 0.28rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.rm-row-label .foil-chip {
  font-size: 0.48rem;
  padding: 0.05rem 0.22rem;
  align-self: center;
}
.rm-cell,
.rm-cell[role="button"] {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  padding: 0.4rem 0.28rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 48px;
  color: var(--wf-sec);
  font: inherit;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
  outline: none;
  margin: 0;
}
.rm-dense .rm-cell,
.rm-dense .rm-cell[role="button"] {
  padding: 0.2rem 0.16rem;
  min-height: 34px;
  gap: 0.06rem;
}
.rm-dense .rm-cell-price {
  font-size: 12.5px;
}
.rm-dense .rm-cell-count {
  font-size: 10px;
}
.rm-cell-clickable {
  cursor: pointer;
}
.rm-cell-clickable:hover,
.rm-cell-clickable:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.45);
  outline-offset: -1px;
}
.rm-cell-clickable.is-on {
  outline: 1px solid rgba(0, 179, 55, 0.7);
  outline-offset: -1px;
}
.rm-cell-price,
.rm-cell-count {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
}
.rm-cell-price {
  font-size: 15px;
  font-weight: 600;
  color: #f5f5f5;
  line-height: 1.15;
}
.rm-cell-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--wf-muted);
  line-height: 1.1;
}
.rm-cell-empty {
  color: #6b6b6b;
  font-size: 0.85rem;
  letter-spacing: 0;
  opacity: 0.45;
  pointer-events: none;
}
body.is-390 .rarity-matrix-scroll,
body.is-390 .rarity-matrix-scroll--full {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.is-390 .rarity-matrix.rm-live,
body.is-390 .rarity-matrix.rm-fullview {
  min-width: 720px;
  width: max-content;
}
body.is-390 .rm-row-label-head,
body.is-390 .rm-row-label {
  position: sticky;
  left: 0;
  z-index: 3;
  box-shadow: 6px 0 10px -8px rgba(0, 0, 0, 0.75);
}
body.is-390 .rm-row-label-head { z-index: 4; }
.rm-sub {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  color: var(--wf-muted);
}

/* Rarity cell → DrilldownDrawer peek (live right drawer) */
.rm-drawer-peek {
  margin-top: 0.65rem;
  border: 1px solid rgba(0, 179, 55, 0.35);
  border-radius: 8px;
  background: #141814;
  padding: 0.55rem 0.65rem 0.65rem;
}
.rm-drawer-peek[hidden] { display: none !important; }
.rm-drawer-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}
.rm-drawer-head h4 {
  margin: 0;
  font-size: 0.85rem;
  color: var(--wf-brand);
}
.rm-drawer-head .view-tog {
  display: inline-flex;
  gap: 0.2rem;
}
.rm-drawer-head .view-tog span {
  font-size: 0.62rem;
  padding: 0.18rem 0.4rem;
  border: 1px solid var(--wf-line);
  border-radius: 4px;
  color: var(--wf-muted);
}
.rm-drawer-head .view-tog span.is-on {
  border-color: var(--wf-brand);
  color: var(--wf-brand);
  background: rgba(0, 179, 55, 0.12);
}
.rm-drawer-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin-bottom: 0.45rem;
}
.rm-drawer-stats--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
body.is-390 .rm-drawer-stats,
body.is-390 .rm-drawer-stats--5 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rm-drawer-stats div {
  background: #101510;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
}
.rm-drawer-stats .k {
  display: block;
  font-size: 0.58rem;
  color: var(--wf-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rm-drawer-stats .v {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wf-text);
}
.rm-drawer-stats .v.gain { color: var(--wf-gain); }
.rm-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.rm-drawer-row {
  display: grid;
  grid-template-columns: 22px 36px minmax(0, 1fr) auto auto;
  gap: 0.4rem;
  align-items: center;
  background: #101510;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  padding: 0.3rem 0.4rem;
  font-size: 0.7rem;
}
.rm-drawer-row .rk { color: var(--wf-muted); font-weight: 700; text-align: center; }
.rm-drawer-row .th {
  width: 36px;
  aspect-ratio: 5/7;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  border-radius: 3px;
}
.rm-drawer-row .nm { font-weight: 600; color: var(--wf-text); }
.rm-drawer-row .st { font-size: 0.62rem; color: var(--wf-muted); }
.rm-drawer-row .px { font-weight: 700; }
.rm-drawer-row .buy {
  font-size: 0.62rem;
  font-weight: 700;
  color: #041208;
  background: var(--wf-brand);
  border: 0;
  border-radius: 4px;
  padding: 0.22rem 0.4rem;
  cursor: pointer;
}
.rm-drawer-row .ix-info {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--wf-line);
  background: #1a1a1a;
  color: var(--wf-sec);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}
.rm-drawer-note {
  margin: 0.4rem 0 0;
  font-size: 0.66rem;
  color: var(--wf-muted);
  line-height: 1.35;
}

/* ── Cards A/B/C (2026-11-01 layout options) ─────────────────────────────── */
.cards-page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  margin: 0.35rem 0 0.65rem;
}
.cards-page-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--wf-text);
}
.cards-page-head .count {
  font-size: 0.72rem;
  color: var(--wf-muted);
}
.cards-page-head .fresh {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--wf-brand);
}

.cv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.55rem;
  padding: 0.45rem 0.5rem;
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 8px;
}
.cv-toolbar .search {
  flex: 1 1 200px;
  min-width: 160px;
  background: #141414;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  color: var(--wf-sec);
  font-size: 0.75rem;
  padding: 0.4rem 0.55rem;
}
.cv-seg {
  display: inline-flex;
  border: 1px solid var(--wf-line);
  border-radius: 6px;
  overflow: hidden;
}
.cv-seg button {
  border: 0;
  background: transparent;
  color: var(--wf-sec);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.32rem 0.5rem;
  cursor: pointer;
}
.cv-seg button.on {
  background: rgba(0,179,55,.15);
  color: var(--wf-brand);
}
.cv-chipbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.55rem;
}
.cv-chipbar .chip {
  font-size: 0.65rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--wf-line);
  color: var(--wf-sec);
  background: #151515;
}
.cv-chipbar .chip.on {
  border-color: rgba(0,179,55,.5);
  color: var(--wf-brand);
  background: rgba(0,179,55,.1);
}
.cv-chipbar .chip .x {
  margin-left: 0.25rem;
  opacity: 0.65;
  cursor: pointer;
}

.mobile-strip {
  display: none;
  margin: 0.55rem 0 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(255,193,7,.4);
  background: rgba(255,193,7,.06);
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--wf-sec);
  line-height: 1.4;
}
.mobile-strip strong { color: var(--wf-gold); }
body.is-390 .mobile-strip { display: block; }

/* Dense catalog tiles (A) */
.ct-grid--dense {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}
body.is-390 .ct-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.3rem; }
.ct {
  position: relative;
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 7px;
  overflow: hidden;
}
.ct-body { display: block; text-decoration: none; color: inherit; }
.ct-art {
  aspect-ratio: 5/7;
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted); font-size: 0.55rem; letter-spacing: 0.04em;
}
.ct .ix-info {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,179,55,.55);
  background: rgba(15,15,15,.88);
  color: var(--wf-brand);
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}
.ct--dense .ct-meta { padding: 0.28rem 0.32rem 0.35rem; }
.ct--dense .ct-nm {
  font-size: 0.62rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}
.ct--dense .ct-pxrow {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.2rem;
}
.ct--dense .ct-px { font-size: 0.72rem; font-weight: 700; }
.ct--dense .ct-chg { font-size: 0.58rem; font-weight: 700; }
.ct-chg.gain, .feat-chg.gain, .clr-chg.gain { color: var(--wf-gain); }
.ct-chg.loss, .feat-chg.loss, .clr-chg.loss { color: var(--wf-loss); }

.pager-bar {
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--wf-muted);
}
.pager-bar .wf-ph { cursor: default; }

/* Discovery / gallery (B) */
.feat-band {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem 0.75rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #161616 100%);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
}
.feat-band .feat-head {
  display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline;
  margin-bottom: 0.55rem;
}
.feat-band .feat-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--wf-text);
}
.feat-band .feat-head span { font-size: 0.68rem; color: var(--wf-muted); }
.feat-band .feat-head a {
  margin-left: auto;
  font-size: 0.68rem;
  color: var(--wf-brand);
  text-decoration: none;
}
.feat-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
}
body.is-390 .feat-row {
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(140px, 70%);
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.feat {
  position: relative;
  background: #141414;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  overflow: hidden;
}
.feat-body { display: block; text-decoration: none; color: inherit; }
.feat-art {
  aspect-ratio: 5/7;
  max-height: 110px;
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted); font-size: 0.55rem;
}
.feat-meta { padding: 0.35rem 0.4rem 0.45rem; }
.feat-nm {
  font-size: 0.68rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.feat-sub { font-size: 0.58rem; color: var(--wf-muted); margin: 0.1rem 0 0.2rem; }
.feat-pxrow { display: flex; justify-content: space-between; gap: 0.25rem; }
.feat-px { font-size: 0.78rem; font-weight: 700; }
.feat-chg { font-size: 0.62rem; font-weight: 700; }
.feat .ix-info {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid rgba(0,179,55,.55);
  background: rgba(15,15,15,.88);
  color: var(--wf-brand); font-size: 0.62rem; font-weight: 700; cursor: pointer; z-index: 2;
}

.ct-grid--gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}
body.is-390 .ct-grid--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
.ct--gallery { border-radius: 10px; }
.ct--gallery .ct-meta { padding: 0.5rem 0.55rem 0.2rem; }
.ct--gallery .ct-nm {
  font-size: 0.78rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct--gallery .ct-sub { font-size: 0.62rem; color: var(--wf-muted); margin: 0.15rem 0 0.3rem; }
.ct--gallery .ct-px { font-size: 0.92rem; font-weight: 700; }
.ct--gallery .ct-chg { font-size: 0.68rem; font-weight: 700; }
.ct--gallery .ct-sold { font-size: 0.6rem; color: var(--wf-muted); margin-top: 0.2rem; }
.ct--gallery .ct-acts {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.35rem 0.55rem 0.5rem;
}
.ct--gallery .ct-buy {
  font-size: 0.65rem; font-weight: 700;
  color: #041208; background: var(--wf-brand);
  text-decoration: none; border-radius: 4px; padding: 0.22rem 0.5rem;
}
.ct--gallery .ix-info {
  position: static;
  width: 24px; height: 24px; border-radius: 6px;
}

/* Split explorer (C) */
.cards-split {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  gap: 0.65rem;
  min-height: 620px;
  align-items: start;
}
body.is-390 .cards-split { grid-template-columns: 1fr; }
.split-rail {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  padding: 0.65rem;
  position: sticky;
  top: 52px;
  max-height: calc(100vh - 70px);
  overflow: auto;
}
body.is-390 .split-rail { position: static; max-height: none; }
.split-rail h3 { margin: 0 0 0.5rem; font-size: 0.8rem; }
.split-rail .grp { margin-bottom: 0.7rem; }
.split-rail .lab {
  font-size: 0.62rem; color: var(--wf-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.25rem;
}
.split-rail .facet {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.72rem; color: var(--wf-sec);
  padding: 0.22rem 0.3rem; border-radius: 4px; cursor: pointer;
}
.split-rail .facet:hover, .split-rail .facet.on {
  background: rgba(0,179,55,.1); color: var(--wf-brand);
}
.split-rail .facet .n { color: var(--wf-muted); font-size: 0.62rem; }
.split-rail .chiprow { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.split-rail .chip {
  font-size: 0.65rem; padding: 0.22rem 0.4rem;
  border: 1px solid var(--wf-line); border-radius: 4px; color: var(--wf-sec);
}
.split-rail .chip.on {
  border-color: rgba(0,179,55,.5); color: var(--wf-brand); background: rgba(0,179,55,.1);
}

.split-results {
  background: var(--wf-panel);
  border: 1px solid var(--wf-line);
  border-radius: 10px;
  padding: 0.55rem;
  min-width: 0;
}
.split-results .results-head { margin-bottom: 0.45rem; }
.clr-list { display: flex; flex-direction: column; gap: 0.2rem; }
.clr {
  display: flex; align-items: center; gap: 0.35rem;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #141414;
  position: relative;
}
.clr.is-selected {
  border-color: rgba(0,179,55,.45);
  background: rgba(0,179,55,.07);
}
.clr-body {
  flex: 1; min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 64px 56px 40px;
  gap: 0.4rem;
  align-items: center;
  text-decoration: none; color: inherit;
  padding: 0.35rem 0.4rem;
}
body.is-390 .clr-body {
  grid-template-columns: 32px minmax(0, 1fr) 54px 48px;
}
body.is-390 .clr-sold { display: none; }
.clr-art {
  width: 36px; aspect-ratio: 5/7;
  background: var(--wf-box-2);
  border: 1px dashed var(--wf-line);
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.45rem; color: var(--wf-muted);
}
.clr-nm { font-size: 0.74rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clr-sub { font-size: 0.6rem; color: var(--wf-muted); }
.clr-px { font-size: 0.78rem; font-weight: 700; text-align: right; }
.clr-chg { font-size: 0.68rem; font-weight: 700; text-align: right; }
.clr-sold { font-size: 0.62rem; color: var(--wf-muted); text-align: right; }
.clr .ix-info {
  width: 22px; height: 22px; margin-right: 0.35rem; flex-shrink: 0;
  border-radius: 4px; border: 1px solid var(--wf-line);
  background: #1a1a1a; color: var(--wf-sec);
  font-size: 0.65rem; font-weight: 700; cursor: pointer;
}

.split-peek {
  background: var(--wf-panel);
  border: 2px solid rgba(255,193,7,.45);
  border-radius: 10px;
  padding: 0.75rem;
  position: sticky;
  top: 52px;
}
body.is-390 .split-peek { position: static; }
.split-peek .peek-art {
  aspect-ratio: 5/7;
  max-width: 140px;
  margin: 0 auto 0.65rem;
  background:
    repeating-linear-gradient(-45deg, #1c1c1c, #1c1c1c 8px, #222 8px, #222 16px);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--wf-muted); font-size: 0.65rem;
}
.split-peek h3 { margin: 0 0 0.2rem; font-size: 0.88rem; }
.split-peek .peek-sub { font-size: 0.68rem; color: var(--wf-muted); margin-bottom: 0.55rem; }
.split-peek .peek-px { font-size: 1.15rem; font-weight: 700; }
.split-peek .peek-chg { font-size: 0.78rem; font-weight: 700; margin-left: 0.35rem; }
.split-peek .peek-lock {
  margin-top: 0.75rem;
  padding: 0.55rem;
  border: 1px dashed rgba(255,193,7,.5);
  border-radius: 6px;
  font-size: 0.68rem;
  color: var(--wf-sec);
  line-height: 1.4;
}
.split-peek .peek-lock strong { color: var(--wf-gold); }
.split-peek .peek-cta {
  display: flex; gap: 0.35rem; margin-top: 0.65rem;
}
.split-peek .peek-cta a, .split-peek .peek-cta button {
  flex: 1;
  text-align: center;
  font-size: 0.7rem; font-weight: 700;
  padding: 0.4rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
}
.split-peek .peek-cta a {
  background: var(--wf-brand); color: #041208; border: 0;
}
.split-peek .peek-cta button {
  background: transparent; color: var(--wf-gold);
  border: 1px solid rgba(255,193,7,.55);
}

.live-recon {
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  background: #141414;
  border: 1px solid var(--wf-line);
  border-radius: 8px;
  font-size: 0.74rem;
  color: var(--wf-sec);
  line-height: 1.45;
}
.live-recon strong { color: var(--wf-text); }
.live-recon ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.live-recon li { margin: 0.15rem 0; }
