/* Marketing Reporter — palette after play.co.za: charcoal surfaces, purple
   brand (#ac78e4 → #7262f2 gradient), amber/orange accents, Jost type.
   Dark by default, light under :root[data-theme="light"] (see theme.js).
   Layout: fixed 240px rail + scrolling main column (max 1120px);
   rail becomes a bottom tab bar under 820px. */
:root {
  --bg: oklch(22.7% .008 275);
  --surface: oklch(28.6% .009 277);
  --surface-2: oklch(31.6% .009 277);
  --surface-3: oklch(34.2% .009 277);
  --sidebar: oklch(20.5% .009 278);
  --border: oklch(1 0 0 / .08);
  --border-strong: oklch(1 0 0 / .16);
  --fg: oklch(96% .003 270);
  --muted: oklch(76% .005 258);
  --faint: oklch(68% .008 261);
  --primary: oklch(70% .19 298);
  --primary-soft: oklch(70% .19 298 / .16);
  --primary-fg: oklch(99% 0 0);
  --primary-solid: oklch(59% .21 290);
  --primary-grad: linear-gradient(oklch(67% .162 305), oklch(59% .208 283));
  --good: oklch(74% .16 155);
  --good-soft: oklch(74% .16 155 / .14);
  --bad: oklch(67% .2 22);
  --bad-soft: oklch(67% .2 22 / .12);
  --warn: oklch(83.2% .146 75);
  --warn-soft: oklch(83.2% .146 75 / .13);
  --info: oklch(72% .12 235);
  --info-soft: oklch(72% .12 235 / .15);
  /* --violet is the extra chart/series colour: play.co.za's orange, since purple is now the brand */
  --violet: oklch(72.5% .18 46);
  --violet-soft: oklch(72.5% .18 46 / .15);
  --neutral: oklch(62% .01 260);
  /* theme-dependent surfaces and effects (redefined for light below) */
  --topbar-bg: oklch(22.7% .008 275 / .85);
  --nav-bg: oklch(20.5% .009 278 / .96);
  --hover: oklch(1 0 0 / .04);
  --track: oklch(1 0 0 / .08);
  --grid: oklch(1 0 0 / .06);
  --sunken: oklch(25.2% .008 276);
  --inset: oklch(22.7% .008 275 / .55);
  --ig-fg: oklch(84% .1 300);
  --fb-fg: oklch(84% .09 235);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / .35);
  --shadow: 0 10px 30px oklch(0 0 0 / .45);
  --r: 16px;
  --r-sm: 12px;
  --font: "Jost", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
/* Light theme: same tokens, redefined. Text tokens keep at least 4.5:1 on
   --bg, --surface and --surface-2. */
:root[data-theme="light"] {
  --bg: oklch(97% .004 280);
  --surface: oklch(100% 0 0);
  --surface-2: oklch(96.2% .005 280);
  --surface-3: oklch(91.8% .006 280);
  --sidebar: oklch(98.4% .003 280);
  --border: oklch(0 0 0 / .1);
  --border-strong: oklch(0 0 0 / .2);
  --fg: oklch(21% .012 260);
  --muted: oklch(41% .012 260);
  --faint: oklch(49% .012 260);
  --primary: oklch(51% .22 290);
  --primary-soft: oklch(60% .2 290 / .13);
  --primary-fg: oklch(99% 0 0);
  --primary-solid: oklch(51% .22 290);
  --primary-grad: linear-gradient(oklch(58% .19 300), oklch(50% .22 284));
  --good: oklch(47% .13 155);
  --good-soft: oklch(60% .16 155 / .14);
  --bad: oklch(50% .2 25);
  --bad-soft: oklch(60% .2 25 / .11);
  --warn: oklch(49% .11 70);
  --warn-soft: oklch(75% .15 85 / .2);
  --info: oklch(48% .13 245);
  --info-soft: oklch(60% .13 245 / .13);
  --violet: oklch(55% .19 42);
  --violet-soft: oklch(62% .19 42 / .13);
  --neutral: oklch(64% .01 260);
  --topbar-bg: oklch(97% .004 280 / .88);
  --nav-bg: oklch(100% 0 0 / .96);
  --hover: oklch(0 0 0 / .04);
  --track: oklch(0 0 0 / .08);
  --grid: oklch(0 0 0 / .08);
  --sunken: oklch(94.6% .004 260);
  --inset: oklch(100% 0 0 / .7);
  --ig-fg: oklch(42% .17 300);
  --fb-fg: oklch(42% .13 245);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / .12);
  --shadow: 0 10px 30px oklch(0 0 0 / .16);
  color-scheme: light;
}
* { box-sizing: border-box }
html, body { margin: 0 }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; text-wrap: balance }
p { margin: 0 }
a { color: inherit; text-decoration: none }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px }
.i { width: 15px; height: 15px; flex: none }
[hidden] { display: none !important }
.tnum, .val, td, .num { font-variant-numeric: tabular-nums }

/* ---------- shell ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 40;
  background: var(--sidebar); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 12px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px }
.mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: var(--primary-grad);
  color: var(--primary-fg); font-weight: 700; font-size: 13px; letter-spacing: -.02em;
  display: grid; place-items: center;
}
.brand .nm { font-weight: 600; font-size: 16px; line-height: 1.15 }
.brand .sub { font-size: 12.5px; color: var(--faint); margin-top: 3px }
.nav { display: flex; flex-direction: column; gap: 2px }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--muted); font-weight: 500; font-size: 15px;
}
.nav a:hover { background: var(--hover); color: var(--fg) }
.nav a.active { background: var(--primary-soft); color: var(--fg) }
.nav a .i { width: 18px; height: 18px }
.nav a.active .i { color: var(--primary) }
.sidebar .foot { padding: 8px 10px 0; font-size: 12px; color: var(--faint) }
.fresh { margin-top: auto; padding: 12px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--muted) }
.fresh:empty { display: none }
.fresh .eyebrow { margin: 0 }
.fresh .f-row { display: flex; align-items: center; gap: 8px }
.fresh .f-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); flex: none }
.fresh .f-dot.old { background: var(--warn) }

.main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 10px 24px;
  background: var(--topbar-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .mob-brand { display: none; align-items: center; gap: 8px; font-weight: 650 }
.topbar .crumb { font-size: 14px; color: var(--muted); font-weight: 500 }
.topbar .sp { flex: 1 }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  display: grid; place-items: center;
}
.icon-btn:hover { color: var(--fg); border-color: var(--border-strong) }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface) }
.icon-btn.spin .i { animation: spin .8s linear }
@keyframes spin { to { transform: rotate(360deg) } }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); color: var(--fg);
  font-weight: 600; font-size: 14px; display: grid; place-items: center; border: 1px solid var(--border-strong);
}

.view { width: 100%; max-width: 1600px; margin: 0 auto; padding: 30px 32px 88px; flex: 1 }
.view.wide { max-width: none }
.page-h { margin-bottom: 24px }
.page-h h1 { font-size: 32px; font-weight: 600 }
.page-h p { margin-top: 6px; color: var(--muted); font-size: 16px; max-width: 70ch }

/* ---------- states ---------- */
.state { padding: 60px 20px; text-align: center; color: var(--muted) }
.state .i { width: 22px; height: 22px; margin-bottom: 10px; color: var(--faint) }
.state.error .i { color: var(--bad) }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r) }
@keyframes shimmer { to { background-position: -200% 0 } }

/* ---------- primitives ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); min-width: 0 }
.card + .card { margin-top: 18px }
.card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 22px; border-bottom: 1px solid var(--border) }
.card-head .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--primary) }
.card-head h3 { font-size: 17px }
.card-head .meta { font-size: 13px; color: var(--faint) }
.card-head .sp { flex: 1 }
.card-body { padding: 20px 22px }
.more { font-size: 14px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 4px }
.more:hover { color: var(--primary) }
.more .i { width: 12px; height: 12px }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px }
.eyebrow .i { width: 12px; height: 12px }
.note { font-size: 13px; color: var(--faint) }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap;
}
.chip .i { width: 12px; height: 12px }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent }
button.chip:hover { border-color: var(--border-strong) }
button.chip[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); border-color: transparent }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap }
.tag.ig { background: var(--violet-soft); color: var(--ig-fg) }
.tag.fb { background: var(--info-soft); color: var(--fb-fg) }
.tag.date { background: transparent; border: 1px solid var(--border); color: var(--faint) }
.pos { color: var(--good) } .neg { color: var(--bad) }
.call { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor }
.call.good { color: var(--good) } .call.bad { color: var(--bad) } .call.warn { color: var(--warn) }

.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; flex-wrap: wrap }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 8px; line-height: 1.2; min-height: 34px }
.seg button:hover { color: var(--fg) }
.seg button.on { background: var(--surface-3); color: var(--fg); box-shadow: var(--shadow-sm) }
.select, .search {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 14px; color: var(--fg); min-width: 0; border-radius: 10px;
}
.search { flex: 1 1 200px; max-width: 300px }
.search::placeholder { color: var(--faint) }
.btn {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--fg);
  border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong) }
.btn .i { width: 13px; height: 13px }
.btn.sm { padding: 5px 11px; font-size: 13px }
.btn.good { background: var(--good-soft); color: var(--good); border-color: transparent }
.btn.good:hover { border-color: var(--good) }
.btn.ghost { background: transparent }
.btn.primary { background: var(--primary-grad); color: var(--primary-fg); border-color: transparent }
.btn.primary:hover { filter: brightness(1.08); border-color: transparent }
.btn.block { width: 100%; justify-content: center }
.btn[disabled] { opacity: .5; cursor: default }

/* ---------- KPI tiles ---------- */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px 16px; min-width: 0 }
.kpi .lbl { font-size: 13px; color: var(--muted); font-weight: 500 }
.kpi .val { font-size: 26px; font-weight: 600; margin-top: 6px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.kpi .sub { font-size: 13px; color: var(--faint); margin-top: 3px }
.kpi .delta { font-size: 13px; font-weight: 600; margin-top: 3px }
.kpi .spark { margin-top: 8px }
svg.spark { display: block; width: 100%; height: 36px; overflow: visible }

/* ---------- post tiles ---------- */
.posts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px }
.post {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 9 / 13; max-width: 100%; border-radius: var(--r-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2); color: #fff;
}
.post .thumb { position: absolute; inset: 0 }
.post::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, oklch(0 0 0 / .85), oklch(0 0 0 / .1) 50%, oklch(0 0 0 / .3)) }
.post .post-title { position: absolute; z-index: 2; inset: 30px 8px auto; font-size: 12px; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; text-shadow: 0 1px 6px oklch(0 0 0 / .5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
.post .rank { position: absolute; z-index: 2; top: 6px; left: 6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 5px; background: oklch(0 0 0 / .6); font-size: 10px; font-weight: 700; display: grid; place-items: center }
.post .q { position: absolute; z-index: 2; top: 6px; right: 6px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; background: oklch(0 0 0 / .65) }
.post .body { position: relative; z-index: 2; padding: 8px; display: block }
.post .v { display: flex; align-items: baseline; gap: 4px; font-size: 13px; font-weight: 700 }
.post .v .i { width: 11px; height: 11px; align-self: center }
.post .v small { font-size: 9.5px; font-weight: 500; opacity: .7 }
.post .m { display: flex; gap: 5px; font-size: 9.5px; color: oklch(1 0 0 / .72); margin-top: 3px; white-space: nowrap; overflow: hidden }
.post .m b { font-weight: 700; padding: 0 3px; border-radius: 3px; background: oklch(1 0 0 / .15) }
.post .m .ser { overflow: hidden; text-overflow: ellipsis }
a.post:hover { border-color: var(--primary) }
/* Tiles sit on dark imagery in both themes, so their score colours stay the bright set. */
.post .pimg { --good: oklch(74% .16 155); --warn: oklch(82% .15 85); --bad: oklch(72% .19 22); --faint: oklch(75% .006 260) }
.posts-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px }

/* ---------- ranked rows ---------- */
.rows { display: grid; gap: 8px }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0 }
.row .rk { width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted) }
.row .nm { flex: 1; min-width: 0 }
.row .nm .t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.row .nm .s { font-size: 11px; color: var(--faint); margin-top: 2px }
.row .nm .s b { color: var(--muted); font-weight: 600 }
.row .stats { display: flex; gap: 16px; flex: none }
.row .st { text-align: right }
.row .st .k { font-size: 9.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em }
.row .st .v { font-size: 12.5px; font-weight: 600; margin-top: 1px }
.row .hero { text-align: right; flex: none; min-width: 64px }
.row .hero .v { font-size: 15px; font-weight: 700 }
.row .hero .k { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em }

.place { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--border) }
.place:last-child { border-bottom: 0 }
.place .t { font-size: 12.5px; font-weight: 600 }
.place .t small { color: var(--faint); font-weight: 500; margin-left: 4px }
.place .a { text-align: right; font-weight: 700; font-size: 13px }
.place .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden }
.place .bar i { display: block; height: 100%; background: var(--primary); border-radius: 3px }
.place .s { grid-column: 1 / -1; font-size: 11px; color: var(--faint) }

/* ---------- tables ---------- */
.tbl { overflow-x: auto }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px }
table.data th { text-align: right; font-size: 13px; color: var(--faint); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap }
table.data td { text-align: right; padding: 12px; border-bottom: 1px solid var(--border) }
table.data th:first-child, table.data td:first-child { text-align: left }
table.data td:first-child { font-weight: 600 }
table.data tr:last-child td { border-bottom: 0 }
table.data tbody tr:hover { background: var(--hover) }

/* ---------- overview blocks ---------- */
.review {
  margin: 16px 18px 4px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--bad-soft); border: 1px solid color-mix(in oklch, var(--bad) 30%, transparent);
}
.review .flag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--bad); display: flex; align-items: center; gap: 6px; margin-bottom: 8px }
.review .flag .i { width: 13px; height: 13px }
.review-item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 12px; border-radius: 8px; background: var(--inset) }
.review-item + .review-item { margin-top: 8px }
.review-item .ri-main { flex: 1 1 220px; min-width: 0 }
.review-item .t { font-size: 13px; font-weight: 600 }
.review-item .s { font-size: 11px; color: var(--muted); margin-top: 2px }
.review-item .since { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 10.5px; color: var(--faint) }
.review-item .since .i { width: 11px; height: 11px }
.review-item .acts { display: flex; gap: 6px; flex-wrap: wrap }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px }
.today { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border) }
.today:last-child { border-bottom: 0 }
.today .tx { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px }
.pair .box { border-radius: var(--r-sm); padding: 11px 13px; border: 1px solid var(--border) }
.pair .box.posting { background: var(--good-soft) }
.pair .box.shoot { background: var(--violet-soft) }
.pair .box .k { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700 }
.pair .box.posting .k { color: var(--good) } .pair .box.shoot .k { color: var(--violet) }
.pair .box .v { font-size: 24px; font-weight: 700; margin-top: 2px }
.line-item { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: 12.5px }
.line-item .k { display: flex; align-items: center; gap: 8px; color: var(--muted) }
.line-item .k i { width: 7px; height: 7px; border-radius: 50% }
.line-item .v { font-weight: 650; color: var(--muted) }
.month { margin-top: 12px; padding: 12px 13px; border-radius: var(--r-sm); background: var(--info-soft); border: 1px solid var(--border) }
.month .k { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--info) }
.month .v { font-size: 22px; font-weight: 700; margin-top: 2px }
.month .v small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px }
.progress { height: 6px; border-radius: 4px; background: var(--track); overflow: hidden; margin-top: 8px }
.progress i { display: block; height: 100%; background: var(--info); border-radius: 4px }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px }
.toolbar .sp { flex: 1 }

/* ---------- content board ---------- */
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--bad-soft); border: 1px solid color-mix(in oklch, var(--bad) 30%, transparent); font-size: 12.5px; color: var(--muted) }
.banner .i { color: var(--bad); margin-top: 1px }
.banner b { color: var(--fg) }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start }
.col { background: var(--sunken); border: 1px solid var(--border); border-radius: var(--r); padding: 10px; min-width: 0 }
.col-h { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px }
.col-h .lab { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px }
.col-h .ct { font-size: 11px; color: var(--faint); font-weight: 600 }
.lab.neutral { background: var(--track); color: var(--muted) }
.lab.info { background: var(--info-soft); color: var(--info) }
.lab.warn { background: var(--warn-soft); color: var(--warn) }
.lab.violet { background: var(--violet-soft); color: var(--violet) }
.lab.good { background: var(--good-soft); color: var(--good) }
.empty-col { font-size: 11.5px; color: var(--faint); text-align: center; padding: 18px 4px }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 10px 11px }
.kcard + .kcard { margin-top: 8px }
.kcard:hover { border-color: var(--border-strong) }
.kcard .kt { font-size: 12.5px; font-weight: 600; line-height: 1.3 }
.kcard .km { font-size: 10.5px; color: var(--faint); margin-top: 3px }
.kcard .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px }
.kcard .kf { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; font-size: 10.5px; color: var(--faint) }
.kcard .acts { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px }
.brief { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px }
.brief textarea { resize: vertical; min-height: 54px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 9px; padding: 8px 10px; font-size: 12px }
.brief textarea::placeholder { color: var(--faint) }
.brief .row-end { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--faint) }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px }
.cal .dow { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; text-align: center; padding-bottom: 2px }
.cal .day { min-height: 88px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: var(--surface); min-width: 0 }
.cal .day.out { opacity: .35 }
.cal .day.today { border-color: var(--primary) }
.cal .day .d { font-size: 11px; color: var(--faint); font-weight: 600 }
.cal .ev { display: block; margin-top: 4px; font-size: 10.5px; padding: 2px 6px; border-radius: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.cal-wrap { overflow-x: auto }
.cal-wrap .cal { min-width: 640px }

/* ---------- meta ---------- */
.tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 18px }
.tabs button { flex: none; border: 0; background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; padding: 12px 2px; min-height: 44px; border-bottom: 2px solid transparent; margin-bottom: -1px; display: flex; align-items: center; gap: 6px }
.tabs button:hover { color: var(--fg) }
.tabs button.on { color: var(--fg); border-bottom-color: var(--primary) }
.tabs .b { font-size: 10px; background: var(--bad-soft); color: var(--bad); border-radius: 999px; padding: 0 6px; font-weight: 700 }
.decision { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 11px 16px; margin: 4px 0 18px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border); font-size: 12px; color: var(--muted) }
.decision .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--faint) }
.decision b.cut { color: var(--bad) } .decision b.scale { color: var(--good) }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted) }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px }
.chart { width: 100%; overflow-x: auto }
.chart svg { display: block; width: 100%; min-width: 520px; height: auto }
.chart text { fill: var(--faint); font-size: 10px; font-family: var(--font) }
.chart .lbl-strong { fill: var(--fg); font-weight: 700 }
.chart .grid { stroke: var(--grid) }
.chart-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; margin-bottom: 12px; font-size: 11.5px; color: var(--muted) }
.chart-head b { color: var(--fg) }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: oklch(0 0 0 / .5) }
.drawer {
  position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  background: var(--surface); border-left: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.drawer header { display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--border) }
.drawer header h3 { font-size: 15px; flex: 1 }
.drawer .dbody { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px }
.drawer textarea { width: 100%; min-height: 120px; resize: vertical; background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px; font-size: 13px }
.drawer footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--border) }
.thread { display: flex; flex-direction: column; gap: 8px }
.thread .c { background: var(--surface-2); border-radius: 9px; padding: 8px 11px; font-size: 12.5px }
.thread .c small { display: block; color: var(--faint); font-size: 10.5px; margin-bottom: 2px }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 100;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px);
  padding: 10px 16px; border-radius: 10px; font-size: 13px; font-weight: 500;
  background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) }
.toast.good .i { color: var(--good) } .toast.warn .i { color: var(--warn) } .toast.bad .i { color: var(--bad) }

.bottom-nav { display: none }

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .posts { grid-template-columns: repeat(4, minmax(0, 1fr)) } }
@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr) }
  .kpis { --cols: 2 !important }
}
@media (max-width: 820px) {
  .sidebar { display: none }
  .main { margin-left: 0 }
  .topbar { padding: 10px 16px }
  .topbar .mob-brand { display: flex }
  .topbar .crumb { display: none }
  .view { padding: 20px 16px 96px }
  .row .stats { display: none }
  .review { margin-inline: 12px }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 50;
    background: var(--nav-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0; color: var(--faint); font-size: 10.5px; font-weight: 600 }
  .bottom-nav a .i { width: 19px; height: 19px }
  .bottom-nav a.active { color: var(--primary) }
}
@media (max-width: 560px) {
  .posts { grid-template-columns: repeat(3, minmax(0, 1fr)) }
  .card-head, .card-body { padding-inline: 14px }
}
@media (max-width: 400px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important } }

/* ===================== v2: shared additions ===================== */
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.split > .card + .card { margin-top: 0 }
.split + .card, .card + .split, .split + .split { margin-top: 18px }
.pf { display: inline-grid; place-items: center; min-width: 20px; height: 16px; padding: 0 4px; margin-right: 6px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .02em; vertical-align: 1px }
.pf.ig { background: var(--violet-soft); color: var(--ig-fg) }
.pf.fb { background: var(--info-soft); color: var(--fb-fg) }
.val-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px }
.spark-gap { height: 44px }
.field { display: flex; flex-direction: column; gap: 4px }
.field .eyebrow { margin: 0 }
.hl { color: var(--fg) }
.qbadge { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; min-width: 36px }
.qbadge.lg { font-size: 18px; min-width: 46px }
.tag.uncat { background: var(--warn-soft); color: var(--warn) }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent }

/* window picker */
.wp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.wp-range { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap }
.wp-range input { padding: 4px 8px }

/* social filters */
.filters { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; margin-bottom: 16px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border) }
.account-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.account-chips .chip[aria-pressed="false"] { opacity: .45 }
.account-chips .chip[aria-pressed="true"] { background: var(--surface-3); color: var(--fg); border-color: var(--border-strong) }
.tabs .note { margin-left: 2px }

/* insights */
.recap-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap }
.recap-title { font-size: 17px; margin: 10px 0 6px; max-width: 70ch }
.recap-sum { color: var(--muted); font-size: 13.5px; line-height: 1.55; max-width: 75ch }
.insight { padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border-left: 3px solid var(--border-strong) }
.insight + .insight { margin-top: 8px }
.insight.good { border-left-color: var(--good) }
.insight.warn { border-left-color: var(--warn) }
.insight.bad { border-left-color: var(--bad) }
.insight b { font-size: 13px }
.insight p { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.5 }
.insight .do { margin-top: 6px; font-size: 12.5px; color: var(--fg) }
.insight .do b { color: var(--primary) }
.insight-n { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start }
.insight-n .num-dot { width: 24px; height: 24px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 12px }

/* top posts */
.tops { display: flex; flex-direction: column; gap: 10px }
.top-row { display: flex; gap: 12px; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0 }
.top-row .nm { flex: 1; min-width: 0 }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 11px; color: var(--faint) }
.meta-line b { color: var(--fg); font-weight: 600 }
.cap { font-size: 12.5px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical }
.metrics { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12.5px; font-weight: 650; font-variant-numeric: tabular-nums }
.metrics small { display: block; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint) }

/* best day */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end }
.dcol { display: flex; flex-direction: column; align-items: center; gap: 6px }
.dcol .dq { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums }
.dcol .dbar { width: 100%; max-width: 38px; height: 110px; border-radius: 6px; background: var(--surface-2); display: flex; align-items: flex-end; overflow: hidden }
.dcol .dbar i { display: block; width: 100%; background: var(--surface-3); border-radius: 6px }
.dcol .dn { font-size: 11px; color: var(--faint); font-weight: 600; text-transform: uppercase }
.dcol.best .dbar i { background: var(--good) }
.dcol.best .dq, .dcol.best .dn { color: var(--good) }
.place .a small { font-weight: 700; margin-left: 6px }

/* pages tab */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px }
.acct { text-align: left; display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); color: inherit }
.acct:hover { border-color: var(--border-strong) }
.acct.on { border-color: var(--primary) }
.acct-h { display: flex; align-items: center; gap: 4px }
.acct-h .t { display: block; font-weight: 650 }
.acct-h .note { display: block }
.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums }
.acct-stats small, .stat-grid small { display: block; font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--faint) }
.acct-recent { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border) }

/* series tab */
.series-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.sg-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 12.5px; border-bottom: 1px solid var(--border) }
.sg-row.dormant { color: var(--faint) }
.sg .eyebrow .num { color: var(--muted); margin-left: 4px }
.rank-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px }
.rank-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0 }
.rc-head { display: flex; align-items: center; gap: 10px }
.rc-head .rk, .pf-row .rk { font-size: 11px; font-weight: 700; color: var(--faint); min-width: 24px }
.rc-head .t { font-weight: 650 }
.chips-row { display: flex; flex-wrap: wrap; gap: 4px }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums }
.campaign + .campaign { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border) }
.camp-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between }
.camp-head > div:first-child { flex: 1 1 260px }
.camp-head .t { font-weight: 650 }
.camp-head .progress { max-width: 320px; background: var(--surface-3) }
.camp-head .progress i { background: var(--primary) }
.camp-stats { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--muted) }
.camp-stats b { color: var(--fg) }
.camp-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 10px }
.cp { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 8px; background: var(--surface-2); min-width: 0 }
.cp .cap { margin: 0; -webkit-line-clamp: 1 }
.pf-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border) }
.pf-row .t { font-weight: 650; font-size: 13px }
.pf-row p { color: var(--muted); font-size: 12.5px; margin-top: 2px }
.call.info { color: var(--info) }

/* posts tab */
.posts-table td.post-cell { text-align: left; font-weight: 400; min-width: 320px; max-width: 520px; white-space: normal }
.posts-table td { vertical-align: top }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--faint) }
.pc-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 7px }
.edit-tag { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center }
.edit-tag .select { padding: 3px 7px; font-size: 11.5px }
.posts-table { min-width: 860px }

/* comments */
.stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-bottom: 10px; background: var(--surface-3) }
.stack i { display: block; height: 100% }

@media (max-width: 980px) { .split.even { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 560px) {
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .rank-cards { grid-template-columns: minmax(0, 1fr) }
  .pf-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pf-row .rk { display: none }
  .days { gap: 4px }
}
.linkish { all: unset; cursor: pointer; color: var(--primary); font-weight: 600 }
.linkish:hover { text-decoration: underline }
.linkish:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px }

/* ===================== v2: meta ===================== */
.period { display: inline-flex; align-items: center; gap: 8px }
.decision b.feed { color: var(--info) }
.rank-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px }
.desk { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.desk-col { min-width: 0 }
.desk-col .eyebrow .num { margin-left: 4px; color: var(--muted) }
.desk-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 12.5px; min-width: 0 }
.desk-item + .desk-item { margin-top: 6px }
.desk-item b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
table.heat td { text-align: center !important; font-weight: 600 !important; border: 2px solid var(--surface) }
table.heat th { text-align: center }
table.heat th:first-child, table.heat td:first-child { text-align: left !important; background: transparent }
tr.sub td { background: var(--surface-2); font-weight: 400 !important; font-size: 12px; padding-left: 28px }
tr.sub td:first-child { padding-left: 34px }
tr.expander .linkish { color: var(--fg); display: inline-flex; align-items: center; gap: 6px }
tr.expander .linkish .i { width: 12px; height: 12px; color: var(--faint) }
table.h2h td.win { color: var(--good); font-weight: 700 }
table.h2h { min-width: 360px }
.pair .box .note { margin-top: 2px }
.pair .box .k { color: var(--muted) }
@media (max-width: 980px) { .rank-grid { grid-template-columns: minmax(0, 1fr) } .desk { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 560px) { .desk { grid-template-columns: minmax(0, 1fr) } }

/* ===================== v2: content board ===================== */
.filter-row { margin-top: -6px }
#cFilterToggle { display: none }
.lab.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px }
.btn.quiet { opacity: .45 }
.btn.quiet:hover { opacity: 1 }
.places-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px }
.t-sub { font-size: 12px; color: var(--faint); margin: -4px 0 10px }
.t-sub b { color: var(--fg); font-weight: 650 }
.promo-weeks { display: flex; flex-direction: column; gap: 12px }
.promo-week { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; background: var(--surface-2) }
.promo-week.now { border-color: var(--good) }
.pw-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px }
.pw-segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px }
.pw-seg { min-width: 0 }
.promo { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 7px; background: var(--surface); font-size: 12.5px }
.promo + .promo { margin-top: 6px }
@media (max-width: 980px) { .pw-segs { grid-template-columns: repeat(2, minmax(0, 1fr)) } .places-grid { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 820px) {
  #cFilterToggle { display: inline-flex }
  .filter-row { display: none }
  .filter-row.open { display: flex }
}
@media (max-width: 560px) { .pw-segs { grid-template-columns: minmax(0, 1fr) } }

/* ===================== v3: creative sub-panels, account structure ===================== */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px }
.ad-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0 }
.ad-card .t { font-weight: 650; font-size: 13px; overflow-wrap: anywhere }
.ac-head { display: flex; flex-wrap: wrap; gap: 5px; align-items: center }
.ac-link { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px }
.ac-link .i { width: 13px; height: 13px; color: var(--good) }
.ac-link .neg .i { color: var(--bad) }
.watch-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 150px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border) }
.watch-row .t { font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.watch-row .rk { font-size: 11px; font-weight: 700; color: var(--faint) }
.ret { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 11px; color: var(--faint) }
.ret b { color: var(--fg) }
svg.curve { width: 150px; height: 44px; display: block }
.obj-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px }
.obj-card { padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); min-width: 0 }
.obj-card .t { font-weight: 650 }
@media (max-width: 980px) { .obj-grid { grid-template-columns: minmax(0, 1fr) } }
@media (max-width: 560px) { .watch-row { grid-template-columns: minmax(0, 1fr) } .watch-row .rk { display: none } }

/* ===================== v4: real images ===================== */
.post .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0 }
.post.has-img .post-title { display: none }
.post::after { z-index: 1 }
.ad-thumb { position: relative; flex: none; display: inline-block; border-radius: 7px; overflow: hidden; border: 1px solid var(--border); vertical-align: middle }
.ad-thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.ad-card .ac-top { display: flex; gap: 10px; align-items: flex-start }
.ad-card .ac-top > div { min-width: 0; flex: 1 }
.cell-thumb { display: flex; align-items: center; gap: 10px }
.cell-thumb > span:last-child { min-width: 0 }

/* ===================== v5: redesign ===================== */
/* Post tiles: image on top, details underneath where they are readable. */
.posts { gap: 16px }
.post { aspect-ratio: auto; justify-content: flex-start; gap: 8px; border: 0; background: transparent; color: var(--fg); overflow: visible; border-radius: 0 }
.post::after { display: none }
.post .pimg { position: relative; display: block; aspect-ratio: 9 / 13; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); color: #fff }
.post .pimg::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, oklch(0 0 0 / .5), transparent 32%) }
.post.has-img .pimg .post-title { display: none }
.post .pimg .post-title { inset: 34px 10px auto }
.post .rank, .post .q { font-size: 12px; height: 22px; min-width: 22px; padding: 0 6px; border-radius: 6px; top: 8px }
.post .rank { left: 8px } .post .q { right: 8px; display: grid; place-items: center }
.post .body { padding: 0 2px; z-index: auto }
.post .v { font-size: 16px; font-weight: 600; gap: 5px }
.post .v small { font-size: 12.5px; opacity: 1; color: var(--faint); font-weight: 400 }
.post .m { font-size: 12.5px; color: var(--faint); gap: 6px; margin-top: 2px }
.post .m b { background: var(--surface-3); color: var(--muted); padding: 0 5px; border-radius: 4px }
a.post:hover { border-color: transparent } a.post:hover .pimg { border-color: var(--primary) }
.meta-line { font-size: 13px }
.top-row { padding: 14px 16px; border-radius: 12px; gap: 14px }
.top-row .cap { font-size: 14.5px; margin: 4px 0 8px }
.qbadge { font-size: 15px; min-width: 42px }
