/* PROS.CRTV Marketing — same "Cinematic Void" system as proscreative.pro */
@font-face { font-family: "Big Shoulders Display"; font-weight: 400; font-display: swap; src: url("/fonts/bigshoulders-400.woff2") format("woff2"); }
@font-face { font-family: "Jura"; font-weight: 300; font-display: swap; src: url("/fonts/jura-300.woff2") format("woff2"); }
@font-face { font-family: "Jura"; font-weight: 500; font-display: swap; src: url("/fonts/jura-500.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-weight: 700; font-display: swap; src: url("/fonts/bigshoulders-700.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url("/fonts/instrumentsans-400.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 700; font-display: swap; src: url("/fonts/instrumentsans-700.woff2") format("woff2"); }
@font-face { font-family: "Universe Display"; font-weight: 400; font-display: swap; src: url("/fonts/universe-display.woff2") format("woff2"); }

:root {
  --bg: #07070c; --panel: #0d0d15; --panel-2: #12121c; --fg: #f0ede8; --mid: #8a8a97; --dim: #1a1a24; --wire: #26263a;
  --gold: #c4a35a; --gold-soft: #d8bd82; --good: #6fcf97; --bad: #eb6f5f; --warn: #e3b341;
  --google: #6f9cf2; --meta: #a58bf0; --openai: #4fc3a1; --other: #8a8a97;
  --display: "Big Shoulders Display", Impact, sans-serif;
  --num: "Big Shoulders Display", Impact, sans-serif;
  --mono: "Jura", sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --sig: "Universe Display", "Big Shoulders Display", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--fg); font: 14px/1.5 var(--body); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(240, 237, 232, .035) .6px, transparent .6px); background-size: 40px 40px;
  min-height: 100vh;
}
body::before { content: ""; position: fixed; left: 0; top: 0; width: 2px; height: 100%; background: rgba(196, 163, 90, .22); z-index: 50; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) 64px; }

/* ── type ── */
.mono { font-family: var(--mono); font-weight: 300; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; color: var(--mid); }
.label { display: flex; align-items: center; gap: 10px; }
.label i { width: 5px; height: 5px; background: var(--gold); display: block; flex: none; box-shadow: 0 0 12px 1px rgba(196, 163, 90, .55); }
h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 19px; line-height: 1.1; }
.num { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 40; background: rgba(7, 7, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--wire); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { height: 20px; width: auto; display: block; }
.brand .mono { color: var(--gold); border-left: 1px solid var(--wire); padding-left: 14px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.sync-pill { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--wire); border-radius: 999px; font-size: 12px; color: var(--mid); white-space: nowrap; }
.sync-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.sync-pill.err .dot { background: var(--bad); }
.sync-pill:hover { border-color: var(--gold); color: var(--fg); }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--wire); border-radius: 50%; color: var(--mid); }
.icon-btn:hover { border-color: var(--gold); color: var(--fg); }
.icon-btn svg { width: 16px; height: 16px; }
.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── toolbar ── */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 0 20px; }
.title { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(32px, 4.2vw, 52px); line-height: .9; letter-spacing: -.005em; }
.title small { display: block; margin-top: 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--wire); border-radius: 999px; padding: 3px; background: var(--panel); overflow-x: auto; max-width: 100%; }
.seg button { padding: 6px 12px; border-radius: 999px; color: var(--mid); font-size: 13px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: color .2s, background .2s; }
.seg button:hover { color: var(--fg); }
.seg button.on { background: var(--gold); color: var(--bg); font-weight: 700; }
.seg button.on .dot { box-shadow: 0 0 0 1.5px var(--bg); }
input[type=date] { background: var(--panel); color: var(--fg); border: 1px solid var(--wire); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 13px; color-scheme: dark; }

/* ── cards ── */
.grid { display: grid; gap: 12px; }
.card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--wire); border-radius: 16px; padding: 18px; min-width: 0; position: relative; }
/* per-block period switcher: pushed to the right of the block header */
.range { margin-left: auto; }
/* header title with its note underneath, so the switcher always stays on the title's line */
.card-head .ttl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-head .ttl .mono { white-space: normal; }
summary.card-head { flex-wrap: nowrap; }
@media (max-width: 640px) { summary.card-head { flex-wrap: wrap; } }
.range button { white-space: nowrap; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section { margin-top: 12px; }
.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .value { font-size: clamp(28px, 3vw, 38px); line-height: 1; margin: 10px 0 8px; }
.cur { color: var(--gold); margin-right: .22em; }
.kpi .sub { color: var(--mid); font-size: 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpi.accent::after { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 1px; background: linear-gradient(90deg, var(--gold), rgba(196, 163, 90, 0)); }
.delta { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--dim); color: var(--mid); }
.delta.up { color: var(--good); background: rgba(111, 207, 151, .1); }
.delta.down { color: var(--bad); background: rgba(235, 111, 95, .1); }

.row-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 960px) { .row-main, .row-2 { grid-template-columns: 1fr; } }
.chart { position: relative; height: 190px; }
/* one small chart per platform, side by side: title + total, bars, per day · last day */
.trends { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; }
@media (max-width: 960px) { .trends { grid-template-columns: 1fr; } }
.trend { background: var(--dim); border: 1px solid var(--wire); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.trend h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 0; }
.trend h3 b { margin-left: auto; font-family: var(--num); font-size: 20px; }
.trend .dot { width: 8px; height: 8px; }
.trend .chart { height: 150px; margin-top: 8px; }
.trend .sub { color: var(--mid); font-size: 12px; margin-top: 6px; }

/* funnel in one row, left to right: each step is a plain column (no overlapping grid areas), so it reflows cleanly
   6 per row on wide screens, 3 on tablets (iPad portrait and landscape), 2 on phones */
.funnel.h { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.funnel.h .fstep { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.funnel.h .fstep .i { padding-top: 0; }
.funnel.h .fstep .t { font-size: 14px; }
.funnel.h .fstep .v { font-size: 30px; text-align: left; align-self: auto; }
.funnel.h .fstep .r { white-space: normal; order: 4; }
.funnel.h .fstep .i { order: 1; } .funnel.h .fstep .t { order: 2; } .funnel.h .fstep .v { order: 3; }
.funnel.h .fstep .d { order: 5; } .funnel.h .fstep .c { order: 6; }
.funnel.h .fstep .d, .funnel.h .fstep .c { font-size: 12px; overflow-wrap: anywhere; }
@media (max-width: 1280px) { .funnel.h { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .funnel.h { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* funnel */
.funnel { display: grid; gap: 8px; }
.fstep { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: center;
  padding: 12px 14px; background: var(--dim); border: 1px solid var(--wire); border-radius: 12px; }
.fstep .i { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--gold); grid-row: 1 / 4; align-self: start; padding-top: 4px; }
.fstep .t { grid-column: 2; font-weight: 700; font-size: 15px; line-height: 1.25; }
.fstep .d { grid-column: 2; color: #b4b4c0; font-size: 13px; line-height: 1.35; }
.fstep .c { grid-column: 2; color: var(--gold-soft); font-size: 12.5px; }
.fstep .v { grid-column: 3; grid-row: 1 / 3; font-family: var(--num); font-weight: 700; font-size: 28px; line-height: 1; text-align: right; align-self: end; }
.fstep .r { grid-column: 3; grid-row: 3; justify-self: end; font-size: 12px; line-height: 1.3; white-space: nowrap;
  color: var(--fg); background: var(--panel); border: 1px solid var(--wire); border-radius: 999px; padding: 2px 10px; }
.fstep .r b { color: var(--gold); }
.fstep .r.zero, .fstep .r.zero b { color: var(--mid); }
.tabs .dot { width: 7px; height: 7px; }

/* platforms */
.platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .platforms { grid-template-columns: 1fr; } }
.pf { cursor: pointer; transition: border-color .2s; }
.pf:hover { border-color: rgba(196, 163, 90, .45); }
.pf h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 18px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.pf .big { font-size: 30px; line-height: 1; }
.pf dl { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; margin-top: 14px; font-variant-numeric: tabular-nums; }
.pf dt { color: var(--mid); }
.pf dd { text-align: right; }
.pf .off { color: var(--mid); }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.dot.google { background: var(--google); } .dot.meta { background: var(--meta); }
.dot.openai { background: var(--openai); } .dot.other { background: var(--other); }

/* signals: compact list, one line per signal */
.signals { display: grid; gap: 2px; }
.signal { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--wire); }
.signal:last-child { border-bottom: 0; }
.signal .sev { width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.signal.bad .sev { background: var(--bad); }
.signal.good .sev { background: var(--good); }
.signal .txt { min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--mid); }
.signal .txt b { color: var(--fg); font-weight: 600; }
.signal .x { width: 22px; height: 22px; border-radius: 50%; color: var(--mid); font-size: 14px; line-height: 1; }
.signal .x:hover { color: var(--fg); background: var(--dim); }
.sig-more { font-size: 12px; color: var(--mid); padding: 8px 4px 0; text-align: left; }
.sig-more:hover { color: var(--fg); }
#sigCount { color: var(--mid); }

/* tables */
.tbl { overflow-x: auto; margin: 0 -18px -18px; padding: 0 18px 8px; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 10px; border-bottom: 1px solid var(--wire); text-align: right; white-space: nowrap; }
th:first-child, td:first-child, .l { text-align: left; }
th { font-family: var(--mono); font-weight: 300; letter-spacing: .12em; text-transform: uppercase; font-size: 10.5px; color: var(--mid); position: sticky; top: 0; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover, th.sorted { color: var(--gold); }
th.sorted::after { content: " ↓"; }
th.sorted.asc::after { content: " ↑"; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(240, 237, 232, .025); }
tr:last-child td { border-bottom: 0; }
td.name { white-space: normal; min-width: 240px; }
td.name .n { display: flex; gap: 10px; align-items: center; }
tfoot td { font-weight: 700; border-top: 1px solid var(--wire); border-bottom: 0; color: var(--fg); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; border: 1px solid var(--wire); color: var(--mid); }
.badge.live { color: var(--good); border-color: rgba(111, 207, 151, .4); }
.badge.bad { color: var(--bad); border-color: rgba(235, 111, 95, .4); }
.badge.gold { color: var(--gold); border-color: rgba(196, 163, 90, .45); }
.muted { color: var(--mid); }
.empty { color: var(--mid); padding: 22px 0; text-align: center; }
.note { color: var(--mid); font-size: 12px; margin-top: 12px; }
.tabs { display: inline-flex; gap: 2px; background: var(--dim); border-radius: 999px; padding: 3px; }
.tabs button { padding: 5px 11px; border-radius: 999px; color: var(--mid); font-size: 12px; }
.tabs button.on { background: var(--panel-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--wire); }

/* loading */
.loading .value, .loading .big { color: transparent; background: var(--dim); border-radius: 6px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

/* footer */
footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--wire); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: flex-end; }
footer .slogan { font-family: var(--sig); font-size: clamp(18px, 3.2vw, 36px); line-height: 1; }
.sync-list { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--mid); }
.sync-list .err { color: var(--bad); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; padding: 32px 28px; }
.login img { height: 22px; margin-bottom: 26px; }
.login input[type=password], .login input[type=email] { width: 100%; border: 1px solid var(--wire); background: var(--bg); color: var(--fg); border-radius: 10px; padding: 12px 14px; font: inherit; margin: 12px 0 0; }
.login button { margin-top: 16px; }
.login input:focus { outline: none; border-color: var(--gold); }
.login button { width: 100%; padding: 12px; border-radius: 10px; background: var(--gold); color: var(--bg); font-weight: 700; letter-spacing: .02em; }
.login button:hover { background: var(--gold-soft); }
.login .err { color: var(--bad); font-size: 13px; }

@media (max-width: 640px) {
  .brand .mono { display: none; }
  .sync-pill span { display: none; }
  .toolbar { padding-top: 20px; }
}

/* creatives */
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: var(--dim); border: 1px solid var(--wire); flex: none; display: block; }
.thumb.none { display: grid; place-items: center; color: var(--mid); font-family: var(--mono); font-size: 10px; }
.best { display: flex; gap: 16px; align-items: center; padding: 14px; margin-bottom: 14px; border-radius: 12px;
  border: 1px solid rgba(196, 163, 90, .45); background: linear-gradient(90deg, rgba(196, 163, 90, .09), rgba(196, 163, 90, 0) 70%); }
.best .thumb { width: 64px; height: 64px; }
.best .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.best .n { font-weight: 700; font-size: 15px; margin: 2px 0; }
.best .w { color: #b4b4c0; font-size: 13px; }
.rank { font-family: var(--mono); color: var(--gold); font-size: 11px; width: 22px; display: inline-block; }
.share { width: 70px; height: 4px; background: var(--dim); border-radius: 999px; overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 8px; }
.share i { display: block; height: 100%; background: var(--gold); }
.badge.best-b { color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 700; }
.lbl-BEST { color: var(--good); border-color: rgba(111, 207, 151, .4); }
.lbl-GOOD { color: var(--gold); border-color: rgba(196, 163, 90, .45); }
.lbl-LOW { color: var(--bad); border-color: rgba(235, 111, 95, .4); }
td.txt { white-space: normal; min-width: 260px; }

/* creative preview: bigger on hover, full view on click */
.thumb-btn { position: relative; padding: 0; border-radius: 8px; flex: none; }
.thumb-btn img.thumb { transition: transform .25s var(--ease), box-shadow .25s; transform-origin: left center; }
.thumb-btn:hover img.thumb, .thumb-btn:focus-visible img.thumb { transform: scale(1.8); position: relative; z-index: 20; box-shadow: 0 18px 50px rgba(0, 0, 0, .7); border-color: var(--gold); }
@media (hover: none) { .thumb-btn:hover img.thumb { transform: none; } }
.lightbox { margin: auto; max-width: min(920px, calc(100vw - 32px)); width: 100%; max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--wire);
  border-radius: 18px; background: var(--panel); color: var(--fg); overflow: auto; }
.lightbox::backdrop { background: rgba(7, 7, 12, .8); backdrop-filter: blur(6px); }
.lb-close { position: absolute; top: 12px; right: 12px; background: var(--panel); z-index: 2; }
.lb-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
@media (max-width: 720px) { .lb-body { grid-template-columns: 1fr; } }
.lb-info { padding: 26px 24px; display: grid; gap: 14px; align-content: start; }
.lb-info h3 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1; letter-spacing: .01em; padding-right: 36px; }
.lb-info dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-variant-numeric: tabular-nums; }
.lb-info dt { color: var(--mid); }
.lb-info dd { text-align: right; }
.btn-gold { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 10px; background: var(--gold); color: var(--bg); font-weight: 700; }
.btn-gold:hover { background: var(--gold-soft); }
.chip-link { text-align: center; padding: 10px 16px; border: 1px solid var(--wire); border-radius: 10px; color: var(--fg); }
.chip-link:hover { border-color: var(--gold); }
.lb-media { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px; background: #000; min-height: 0; }
.lb-frame { width: 100%; display: flex; justify-content: center; align-items: flex-start; min-height: 360px; }
.lb-frame .fit { position: relative; overflow: hidden; border-radius: 12px; }
.lb-frame .fit iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: top left; background: #000; }
.lb-formats { background: var(--dim); flex-wrap: wrap; justify-content: center; }
/* Google search result mock (light, as on google.com) */
.serp { width: 100%; max-width: 400px; background: #fff; color: #202124; border-radius: 14px; padding: 16px; font-family: Arial, sans-serif; text-align: left; }
.serp-top { font-size: 12px; margin-bottom: 10px; }
.serp-site { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.serp-site img, .serp-fav { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #f1f3f4; border: 1px solid #dadce0; }
.serp-name { font-size: 14px; }
.serp-url { font-size: 12px; color: #4d5156; }
.serp-body { display: flex; gap: 12px; align-items: flex-start; }
.serp-h { display: block; color: #1a0dab; font-size: 18px; line-height: 1.3; margin-bottom: 4px; }
.serp-d { font-size: 14px; line-height: 1.45; color: #4d5156; }
.serp-c { font-size: 13px; color: #4d5156; margin-top: 4px; }
.serp-img { width: 92px; height: 92px; border-radius: 8px; object-fit: cover; flex: none; }
.serp-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.serp-links span { font-size: 13px; color: #1a0dab; border: 1px solid #dadce0; border-radius: 999px; padding: 6px 12px; }
/* ChatGPT sponsored unit mock */
.gpt { width: 100%; max-width: 400px; background: #212121; color: #ececec; border-radius: 14px; padding: 18px; font-family: system-ui, sans-serif; text-align: left; }
.gpt-answer span { display: block; height: 9px; border-radius: 5px; background: #3a3a3a; margin-bottom: 8px; }
.gpt-ad { border: 1px solid #3a3a3a; border-radius: 12px; padding: 14px; margin-top: 14px; display: grid; gap: 8px; }
.gpt-ad img { width: 100%; border-radius: 8px; }
.gpt-tag { font-size: 11px; color: #9b9b9b; }
.gpt-t { font-weight: 700; }
.gpt-ad p { font-size: 14px; line-height: 1.45; color: #cfcfcf; }
.gpt-u { font-size: 12px; color: #9b9b9b; }
.thumb-btn::after { content: "▶"; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: 8px; background: var(--gold); color: var(--bg); pointer-events: none; }

/* collapsible cards */
details.fold > summary { list-style: none; cursor: pointer; margin-bottom: 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2::before { content: "▸"; display: inline-block; width: 18px; color: var(--gold); transition: transform .2s; }
details.fold[open] > summary h2::before { transform: rotate(90deg); }
details.fold { align-self: start; }

/* the hidden attribute must win over .grid / .card display rules */
[hidden] { display: none !important; }
tr.grp td { background: var(--dim); padding-top: 12px; }
tr.off td { opacity: .5; }
.fold-tabs { margin-bottom: 12px; flex-wrap: wrap; }
details.fold > summary h2::before { transition: transform .32s cubic-bezier(.23, 1, .32, 1); }
details.fold > summary + * { margin-top: 14px; } /* spacing lives in the content, so the closed height never changes */
details.fold > summary .ttl .mono { padding-left: 18px; } /* under the title, past the fold arrow */

/* cold email (Explee) */
.xstats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.xstats > div { border: 1px solid var(--wire); border-radius: 12px; padding: 12px 14px; min-width: 0; }
.xstats b { display: block; font-size: 24px; line-height: 1.1; margin-top: 6px; }
.xstats small { color: var(--mid); font-size: 11px; }
.xsub { font-size: 13px; font-weight: 600; color: var(--mid); margin: 18px 0 8px; }
@media (max-width: 720px) { .xstats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sig-card .chip-link { padding: 4px 10px; font-size: 11px; border-radius: 999px; margin-left: auto; }
