/* Crew — design tokens and components ported verbatim from
   "Crew Dashboard.dc.html" (Claude Design canvas export, 2026-09-03).
   This is a wiring job, not a design job: values match the source. */

/* PP Bitso Sans is declared in /fonts/fonts.css, served only behind the
   session (EXC-3). Without it, --font-display falls back to the system stack. */

:root {
  --bitso-iris:rgb(84,99,255); --bitso-iris-600:rgb(64,51,207); --bitso-iris-400:rgb(137,156,255);
  --bitso-iris-100:rgb(223,230,255); --bitso-indigo-deep:rgb(25,32,103); --bitso-neon:rgb(223,255,80);
  --ink-900:rgb(9,12,17); --ink-800:rgb(24,23,22); --ink-700:rgb(42,53,70); --ink-600:rgb(74,87,96); --ink-400:rgb(112,102,94);
  --neutral-000:#fff; --neutral-050:rgb(247,248,251); --neutral-075:rgb(245,242,240); --neutral-100:rgb(240,235,229);
  --neutral-150:rgb(238,241,246); --neutral-300:rgb(209,216,223); --neutral-400:rgb(200,204,208);
  --neutral-border-warm:rgb(222,213,202);
  --success-500:rgb(41,172,0); --success-100:rgba(41,172,0,0.1); --warning-100:rgb(255,239,165); --warning-500:rgb(194,144,0);
  --danger-500:rgb(214,40,40);
  --shadow-100:0px 1px 2px -1px rgba(42,37,35,0.10),0px 1px 3px 0px rgba(42,37,35,0.10);
  --shadow-200:0px 4px 8px -2px rgba(42,37,35,0.10),0px 2px 4px -1px rgba(42,37,35,0.06);
  /* r20.7.1: spacing steps, used first by Mi contenido's forms. */
  --space-6:6px; --space-8:8px; --space-12:12px; --space-14:14px; --space-16:16px;
  --font-display:"PP Bitso Sans","Space Grotesk",system-ui,sans-serif; --font-body:"Geist","Inter",system-ui,sans-serif;
  --fg-muted:rgb(74,87,96); --fg-body:rgb(42,53,70); --border-subtle:rgb(238,241,246); --border-default:rgb(222,213,202);
}

* { box-sizing:border-box; }
body { margin:0; background:var(--neutral-050); font-family:var(--font-body); color:var(--ink-900); -webkit-font-smoothing:antialiased; }
a { color:var(--bitso-iris); text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:3px; }
.ms { font-family:"Material Symbols Outlined"; font-weight:400; font-style:normal; line-height:1; display:inline-block; white-space:nowrap; direction:ltr; -webkit-font-feature-settings:"liga"; -webkit-font-smoothing:antialiased; }
button { font-family:inherit; }
@keyframes crewFadeIn { from { opacity:0; } to { opacity:1; } }

/* --- shell ------------------------------------------------------------- */
.shell { min-height:100vh; display:flex; background:var(--neutral-050); }
.sidebar { width:248px; flex:none; background:var(--neutral-000); border-right:1px solid var(--border-subtle); display:flex; flex-direction:column; padding-bottom:16px; min-height:100vh; }
.sidebar-brand { display:flex; align-items:center; gap:9px; padding:20px 24px 6px; }
.sidebar-brand .word { font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-0.01em; }
.nav { padding:14px 12px 6px; display:flex; flex-direction:column; gap:2px; flex:1; }
.nav-item { display:flex; align-items:center; gap:12px; padding:0 14px; height:44px; border-radius:12px; cursor:pointer; font-size:14px; font-weight:500; transition:background 120ms; color:var(--ink-900); }
.nav-item:hover { background:var(--neutral-050); text-decoration:none; }
.nav-item.active { background:var(--bitso-iris-100); color:var(--bitso-iris-600); }
.nav-item .ms { font-size:20px; }
.nav-item .grow { flex:1; }
.nav-dot { width:7px; height:7px; border-radius:50%; background:var(--bitso-iris); }
.code-card { margin:12px; padding:16px; border-radius:16px; background:var(--bitso-neon); }
.code-card h4 { font-family:var(--font-display); font-weight:700; font-size:15px; color:var(--ink-900); margin:0 0 4px; }
.code-card p { font-size:12px; color:var(--ink-800); margin:0 0 10px; }
.code-chip { display:flex; align-items:center; gap:8px; background:var(--ink-900); color:#fff; border-radius:10px; padding:9px 11px; font-size:12px; font-weight:500; border:0; width:100%; cursor:pointer; }
.code-chip .code { flex:1; letter-spacing:0.05em; text-align:left; }
.code-chip .ms { font-size:16px; }

.main { flex:1; min-width:0; display:flex; flex-direction:column; border-radius:32px 0 0 0; overflow:hidden; }
.topbar { height:76px; flex:none; background:var(--neutral-000); border-bottom:1px solid var(--border-subtle); display:flex; align-items:center; gap:12px; padding:0 32px; }
.topbar .crumb { display:flex; flex-direction:column; gap:1px; }
.topbar .crumb small { font-size:12px; color:var(--fg-muted); }
.topbar .crumb { min-width:0; }
.topbar .crumb-who { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.topbar .crumb strong { font-family:var(--font-display); font-weight:500; font-size:20px; letter-spacing:-0.005em; }
.topbar .right { margin-left:auto; display:flex; align-items:center; gap:12px; }
.pill-primary { display:flex; align-items:center; gap:8px; padding:9px 16px; border-radius:1000px; background:var(--bitso-iris); color:#fff; font-size:14px; font-weight:500; cursor:pointer; box-shadow:var(--shadow-100); border:0; }
.pill-primary .ms { font-size:18px; }
.vdiv { width:1px; height:26px; background:var(--border-subtle); }
.avatar { width:34px; height:34px; border-radius:1000px; background:var(--bitso-iris-100); color:var(--bitso-iris-600); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:500; }
.content { flex:1; overflow:auto; padding:26px 32px 64px; }
.stack { display:flex; flex-direction:column; gap:16px; max-width:1120px; animation:crewFadeIn 200ms ease; }

/* --- cards / KPIs ------------------------------------------------------- */
.card { background:var(--neutral-000); border:1px solid var(--border-subtle); border-radius:16px; padding:18px; }
.kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.kpi { background:var(--neutral-000); border:1px solid var(--border-subtle); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:9px; }
.kpi .label { font-size:13px; color:var(--fg-muted); }
.kpi .value { font-family:var(--font-display); font-weight:700; font-size:25px; letter-spacing:-0.01em; }
.kpi .delta { font-size:12px; color:var(--success-500); }
.kpi .note { font-size:12px; color:var(--fg-muted); }
/* Rev share is the strategic headline metric: its tile is the only filled,
   brand-iris card, so it reads as #1 against the plain white KPIs around it. */
.kpi-hero { background:var(--bitso-iris); border-color:var(--bitso-iris); box-shadow:var(--shadow-200); }
.kpi-hero .label { color:rgba(255,255,255,0.82); }
.kpi-hero .value { color:#fff; }
.kpi-hero .delta { color:var(--bitso-neon); }
.kpi-hero .note, .kpi-hero .formula { color:rgba(255,255,255,0.72); }
.kpi-hero .muestra { color:var(--bitso-neon); }
.formula { font-size:11px; color:var(--fg-muted); }

/* the "· muestra" mark lives INSIDE the figure, per the house invariant */
.muestra { font-size:11px; font-weight:500; color:var(--warning-500); white-space:nowrap; }

/* A value that is MISSING, not absent. A bare dash reads as "there is nothing
   here"; this reads as "this is still owed". Warning weight on purpose — not
   normal data, and not an error either, because nothing is broken. */
.pending {
  display:inline-block; font-size:11px; font-weight:600; line-height:16px;
  padding:1px 7px; border-radius:6px; white-space:nowrap;
  color:var(--warning-500); background:var(--warning-100);
}

/* Footnotes to a figure render subordinate to it: smaller, muted, italic. */
.kv em, .source-note em { font-style:italic; }
.kv em { display:inline-block; font-size:11px; color:var(--fg-muted); line-height:15px; margin-top:2px; }

/* --- hero ---------------------------------------------------------------- */
.hero { border-radius:24px; background:var(--bitso-indigo-deep); padding:28px; display:flex; gap:32px; align-items:center; flex-wrap:wrap; }
.hero h1 { font-family:var(--font-display); font-weight:700; font-size:30px; line-height:38px; letter-spacing:-0.02em; color:#fff; margin:0; }
.hero .actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.hero-code { display:flex; align-items:center; gap:10px; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); border-radius:12px; padding:11px 16px; cursor:pointer; }
.hero-code .code { font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:0.06em; color:var(--bitso-neon); }
.hero-code .ms { font-size:18px; color:rgba(255,255,255,0.7); }
/* r16 (B3): the referral card on a phone. The text column never forces the
   card wider than the screen, a long code or the "preparando" line wraps
   instead of running past the edge, and the card is tighter under 480 px. */
.hero-main { flex:1; display:flex; flex-direction:column; gap:14px; min-width:min(300px, 100%); }
.hero-code { max-width:100%; }
.hero-code .code { overflow-wrap:anywhere; min-width:0; }
@media (max-width:480px) {
  .hero { padding:22px 20px; }
  .hero h1 { font-size:25px; line-height:31px; }
}
.hero-btn { display:flex; align-items:center; gap:7px; padding:11px 18px; border-radius:12px; background:var(--bitso-neon); color:var(--ink-900); font-size:14px; font-weight:500; cursor:pointer; border:0; }

/* --- banners ------------------------------------------------------------- */
.banner { border-radius:12px; padding:12px 16px; font-size:13px; display:flex; gap:10px; align-items:flex-start; }
.banner .ms { font-size:18px; flex:none; margin-top:1px; }
.banner-warn { background:var(--warning-100); color:var(--ink-800); border:1px solid rgb(230,210,120); }
.banner-info { background:var(--bitso-iris-100); color:var(--bitso-iris-600); }

/* --- tables --------------------------------------------------------------- */
.table { width:100%; border-collapse:collapse; font-size:14px; }
.table th { text-align:left; font-size:12px; font-weight:500; color:var(--fg-muted); padding:10px 12px; border-bottom:1px solid var(--border-subtle); }
.table td { padding:12px; border-bottom:1px solid var(--border-subtle); }
.table tr:last-child td { border-bottom:0; }
.table .num { text-align:right; font-variant-numeric:tabular-nums; }
.status-pill { font-size:12px; font-weight:500; border-radius:4px; padding:3px 8px; width:fit-content; }
.status-green { color:var(--success-500); background:var(--success-100); }
.status-amber { color:var(--warning-500); background:var(--warning-100); }
.status-grey { color:var(--ink-600); background:var(--neutral-150); }

/* --- chips / segments ------------------------------------------------------ */
.chips { display:flex; gap:8px; flex-wrap:wrap; }
.chip { padding:7px 13px; border-radius:1000px; font-size:13px; font-weight:500; cursor:pointer; border:1px solid var(--border-subtle); background:var(--neutral-000); color:var(--ink-700); }
.chip.active { border-color:var(--ink-900); background:var(--ink-900); color:#fff; text-decoration:none; }
.chip:hover { text-decoration:none; }
.seg { display:flex; gap:2px; background:var(--neutral-150); border-radius:11px; padding:2px; width:fit-content; }
.seg a, .seg span { padding:6px 12px; border-radius:9px; font-size:13px; font-weight:500; cursor:pointer; color:var(--fg-muted); }
.seg .active { background:#fff; color:var(--ink-900); box-shadow:var(--shadow-100); }

/* --- charts (bars) --------------------------------------------------------- */
.bars { display:flex; align-items:flex-end; gap:6px; height:180px; }
.bars .bar { flex:1; border-radius:5px 5px 0 0; background:var(--bitso-iris-400); min-height:8px; }
.bars .bar.hot { background:var(--bitso-iris); }
.axis { display:flex; justify-content:space-between; font-size:11px; color:var(--fg-muted); margin-top:8px; }

/* --- news cards ------------------------------------------------------------- */
.news-card { background:var(--neutral-000); border:1px solid var(--border-subtle); border-radius:16px; padding:18px; display:flex; flex-direction:column; gap:10px; }
.news-card.in { border-color:var(--bitso-iris); }
.news-meta { font-size:12px; color:var(--fg-muted); display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.news-title { font-family:var(--font-display); font-weight:700; font-size:17px; letter-spacing:-0.01em; }
/* r20.1: the label before a Content Calendar row's Archetype focus. */
.news-focus { font-weight:400; color:var(--fg-muted); }
.badge-in { display:inline-flex; align-items:center; gap:5px; color:var(--success-500); font-size:12px; font-weight:500; }
.btn { padding:9px 16px; border-radius:1000px; font-size:13px; font-weight:500; cursor:pointer; border:1px solid var(--border-subtle); background:var(--neutral-000); color:var(--ink-900); }
.btn-dark { background:var(--ink-900); color:#fff; border-color:var(--ink-900); }
.two-col { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:16px; align-items:start; }
/* r20.1: with the 248 px sidebar beside it, the 320 px column only fits from ~1000 px (at 768 it stuck out 93 px). */
@media (max-width:1000px) { .two-col { grid-template-columns:minmax(0,1fr); } }
.cat-pill { font-size:12px; font-weight:500; color:var(--bitso-iris-600); background:var(--bitso-iris-100); border-radius:4px; padding:3px 8px; }

/* --- Bitso General featured (resources) ------------------------------------ */
.featured-general { display:flex; align-items:center; gap:18px; padding:22px 24px; border-radius:20px; background:var(--bitso-indigo-deep); color:#fff; box-shadow:var(--shadow-200); }
.featured-general:hover { text-decoration:none; }
.featured-general-icon { font-size:34px; color:var(--bitso-neon); flex:none; }
.featured-general-body { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.featured-general-eyebrow { font-size:11px; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; color:var(--bitso-neon); }
.featured-general-title { font-family:var(--font-display); font-weight:700; font-size:20px; letter-spacing:-0.01em; }
.featured-general-blurb { font-size:13px; line-height:1.5; color:rgba(255,255,255,0.82); }
.featured-general-cta { flex:none; display:inline-flex; align-items:center; gap:6px; padding:10px 18px; border-radius:1000px; background:var(--bitso-neon); color:var(--ink-900); font-size:14px; font-weight:500; white-space:nowrap; }
@media (max-width:640px) {
  .featured-general { flex-direction:column; align-items:flex-start; gap:14px; }
  .featured-general-cta { align-self:stretch; justify-content:center; }
}

/* --- product library (resources) ------------------------------------------- */
.product-list { display:flex; flex-direction:column; gap:12px; margin-top:14px; }
.product-card { border:1px solid var(--border-subtle); border-radius:14px; padding:16px 18px; display:flex; align-items:center; gap:18px; background:var(--neutral-050); }
/* A "new" product is set apart by colour, not just its badge: iris tint and a
   left accent so it reads as the one to look at first. */
.product-card.is-new { background:var(--bitso-iris-100); border-color:var(--bitso-iris-400); box-shadow:inset 3px 0 0 var(--bitso-iris); }
.product-body { flex:1; min-width:0; display:flex; flex-direction:column; gap:8px; }
.product-head { display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.product-icon { font-size:20px; color:var(--bitso-iris-600); }
.product-name { font-family:var(--font-display); font-weight:700; font-size:16px; letter-spacing:-0.005em; }
.product-blurb { font-size:13px; line-height:1.5; color:var(--fg-body); margin:0; }
.product-launched { font-size:12px; font-weight:500; color:var(--bitso-iris-600); display:flex; align-items:center; gap:5px; }
.product-action { flex:none; }
.product-link { white-space:nowrap; }
.product-link-pending { font-size:12px; color:var(--fg-muted); white-space:nowrap; }
.prod-badge { font-size:11px; font-weight:500; border-radius:1000px; padding:2px 9px; line-height:1.6; }
.prod-badge.live { color:var(--success-500); background:var(--success-100); }
.prod-badge.new { color:var(--bitso-iris-600); background:var(--bitso-iris-100); }
.prod-badge.exclusive { color:var(--ink-900); background:var(--bitso-neon); }
@media (max-width:640px) {
  .product-card { flex-direction:column; align-items:stretch; gap:12px; }
  .product-action { align-self:flex-start; }
}
/* On the iris-tinted "new" card, the "Nuevo" badge on its own tint disappears;
   give it a solid chip so it stays legible. */
.product-card.is-new .prod-badge.new { background:var(--bitso-iris); color:#fff; }

/* --- dual-axis funnel chart ------------------------------------------------- */
.dual-legend { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px; }
.legend-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 11px; border-radius:1000px; border:1px solid var(--border-subtle); background:var(--neutral-000); color:var(--ink-900); font-size:12px; font-weight:500; cursor:pointer; }
.legend-chip .legend-swatch { width:10px; height:10px; border-radius:3px; }
.legend-chip .legend-axis { font-size:10px; color:var(--fg-muted); text-transform:uppercase; letter-spacing:0.04em; }
.legend-chip.off { opacity:0.4; text-decoration:line-through; }
.legend-chip.off .legend-axis { text-decoration:none; }
.dual-chart { display:flex; align-items:stretch; gap:8px; height:210px; }
.dual-axis { display:flex; flex-direction:column; justify-content:space-between; font-size:11px; color:var(--fg-muted); flex:none; padding:2px 0; }
.dual-axis-left { text-align:right; min-width:26px; }
.dual-axis-right { text-align:left; min-width:30px; }
.dual-plot { flex:1; display:flex; align-items:flex-end; gap:10px; border-left:1px solid var(--border-subtle); border-right:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); padding:0 6px; }
.dual-group { flex:1; height:100%; display:flex; align-items:flex-end; justify-content:center; gap:2px; }
.dual-bar { flex:1; min-width:2px; border-radius:3px 3px 0 0; transition:height 140ms; }
.dual-xaxis { display:flex; justify-content:space-between; font-size:11px; color:var(--fg-muted); margin:6px 0 0; padding:0 42px 0 34px; }

/* single-axis variant reused by the two funnel charts (Volumen / Ganancias) */
.mini-legend { display:flex; gap:8px; flex-wrap:wrap; margin:10px 0 14px; }
.mini-chart { display:flex; align-items:stretch; gap:8px; height:200px; }
.mini-plot { flex:1; border-left:1px solid var(--border-subtle); border-bottom:1px solid var(--border-subtle); position:relative; }
.plot-draw { position:absolute; inset:0; display:flex; align-items:flex-end; gap:10px; padding:0 6px; }
.plot-overlay { position:absolute; inset:0; display:flex; gap:10px; padding:0 6px; }
.plot-col { flex:1; }
.mini-svg { width:100%; height:100%; display:block; }
.chart-tip { position:absolute; top:6px; transform:translateX(-50%); background:var(--ink-900); color:#fff; padding:8px 10px; border-radius:8px; font-size:12px; white-space:nowrap; pointer-events:none; box-shadow:var(--shadow-200); opacity:0; transition:opacity 100ms; z-index:5; }
.chart-tip.show { opacity:1; }
.chart-tip .tip-title { font-weight:700; margin-bottom:4px; }
.chart-tip .tip-row { display:flex; align-items:center; gap:6px; line-height:1.75; }
.chart-tip .tip-row b { margin-left:auto; padding-left:14px; }
.chart-tip .tip-swatch { width:9px; height:9px; border-radius:2px; flex:none; }

/* --- login ------------------------------------------------------------------ */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; background:var(--bitso-indigo-deep); padding:24px; }
.login-card { width:400px; max-width:100%; background:var(--neutral-000); border-radius:24px; padding:36px; box-shadow:var(--shadow-200); }
.login-card h1 { font-family:var(--font-display); font-weight:700; font-size:24px; margin:0 0 6px; }
.login-card .sub { font-size:13px; color:var(--fg-muted); margin:0 0 22px; }
.field { display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.field label { font-size:13px; font-weight:500; }
.field input { border:1px solid var(--neutral-300); border-radius:10px; padding:11px 13px; font-size:14px; font-family:inherit; }
.field input:focus { outline:2px solid var(--bitso-iris); border-color:transparent; }
.login-btn { width:100%; padding:12px; border-radius:12px; background:var(--bitso-iris); color:#fff; font-size:14px; font-weight:500; border:0; cursor:pointer; margin-top:6px; }
.login-error { background:rgba(214,40,40,0.08); color:var(--danger-500); border-radius:10px; padding:10px 13px; font-size:13px; margin-bottom:14px; }
.login-foot { font-size:11px; color:var(--fg-muted); margin-top:18px; line-height:1.5; }

/* --- share sheet -------------------------------------------------------------- */
.share-overlay { position:fixed; inset:0; background:rgba(9,12,17,0.45); display:flex; align-items:center; justify-content:center; z-index:60; animation:crewFadeIn 150ms ease; padding:24px; }
/* [hidden] alone loses to the display:flex above (author rule beats the UA
   sheet), so the modal would show on load and refuse to close. This wins. */
.share-overlay[hidden] { display:none; }
.share-sheet { width:480px; max-width:100%; max-height:90vh; overflow:auto; background:var(--neutral-000); border-radius:20px; padding:24px; box-shadow:var(--shadow-300, var(--shadow-200)); animation:crewSheetIn 180ms ease; }
@keyframes crewSheetIn { from { opacity:0; transform:translateY(16px) scale(0.99); } to { opacity:1; transform:translateY(0) scale(1); } }
.share-preview { margin-top:12px; background:var(--neutral-050); border:1px solid var(--border-subtle); border-radius:12px; padding:14px; font-size:13px; color:var(--ink-700); white-space:pre-wrap; line-height:1.5; }
.share-target { text-decoration:none; }
.share-target:hover { text-decoration:none; background:var(--neutral-050); }

/* --- misc -------------------------------------------------------------------- */
.section-caption { font-size:13px; color:var(--fg-muted); }
.kv { display:grid; grid-template-columns:180px 1fr; gap:10px 16px; font-size:14px; }
.kv .k { color:var(--fg-muted); font-size:13px; }
.source-note { font-size:11px; color:var(--fg-muted); }
.empty { display:flex; flex-direction:column; align-items:center; gap:8px; padding:36px; color:var(--fg-muted); font-size:13px; }
.empty .ms { font-size:28px; }

/* --- Novedades de Bitso (r4): the library's "new" card language, bigger. --- */
.launch-news { margin-bottom:16px; }
.launch-news-head { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:10px; }
.launch-news-title { font-family:var(--font-display); font-weight:700; font-size:16px; }
.launch-card { background:var(--bitso-iris-100); border:1px solid var(--bitso-iris-400); box-shadow:inset 4px 0 0 var(--bitso-iris); border-radius:14px; padding:18px 20px; display:flex; flex-direction:column; gap:10px; }
.launch-top { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.launch-icon { font-size:26px; color:var(--bitso-iris); }
.launch-name { font-family:var(--font-display); font-weight:700; font-size:24px; letter-spacing:-0.01em; }
.launch-card .prod-badge.new { background:var(--bitso-iris); color:#fff; animation:launch-pulse 2.4s ease-in-out infinite; }
.launch-date { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-display); font-weight:700; font-size:18px; color:var(--bitso-iris-600); }
.launch-date .ms { font-size:20px; }
.launch-what { margin:0; font-size:14px; color:var(--ink-900); }
.launch-embargo { display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; color:var(--ink-900); background:var(--bitso-neon); border-radius:10px; padding:9px 12px; }
.launch-embargo .ms { font-size:18px; }
.launch-actions { display:flex; gap:10px; flex-wrap:wrap; }
.launch-actions .btn .ms { font-size:15px; vertical-align:-3px; }
@keyframes launch-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(84,99,255,.45); } 50% { box-shadow:0 0 0 6px rgba(84,99,255,0); } }
@media (prefers-reduced-motion: reduce) { .launch-card .prod-badge.new { animation:none; } }
@media (max-width: 640px) { .launch-card { padding:16px; } .launch-name { font-size:20px; } .launch-actions .btn { flex:1 1 100%; text-align:center; } }
/* r20.6: the launch highlight on Resumen. Iris, not the hero's indigo, so it
   reads as its own thing above it. White text only (4.5:1 on iris); the neon
   is for the icon and the embargo pill, never for small text on blue. */
.launch-highlight { display:flex; align-items:center; gap:14px 18px; flex-wrap:wrap; background:var(--bitso-iris); color:#fff; border-radius:18px; padding:18px 20px; }
.launch-highlight-icon { font-size:32px; color:var(--bitso-neon); flex:none; }
.launch-highlight-body { flex:1 1 320px; min-width:0; display:flex; flex-direction:column; gap:8px; }
.launch-highlight-when { font-family:var(--font-display); font-weight:700; font-size:13px; letter-spacing:0.04em; text-transform:uppercase; }
.launch-highlight-line { margin:0; font-size:15px; line-height:22px; }
.launch-highlight-line strong { font-family:var(--font-display); font-size:20px; line-height:26px; letter-spacing:-0.01em; display:block; }
.launch-highlight .launch-embargo { align-self:flex-start; }
.launch-highlight-action .btn { display:inline-flex; align-items:center; gap:6px; font-size:14px; border-color:#fff; }
.launch-highlight-action .btn .ms { font-size:16px; }
.launch-highlight-pending { font-size:13px; }
@media (max-width: 640px) { .launch-highlight { padding:16px; } .launch-highlight-icon { display:none; } .launch-highlight-action { flex:1 1 100%; } .launch-highlight-action .btn { width:100%; justify-content:center; } }

/* --- Forms (r4): one Bitso style for every field and button -------------- */
input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="search"], input:not([type]), textarea, select {
  width:100%; box-sizing:border-box; font:inherit; font-size:14px; color:var(--ink-900);
  background:var(--neutral-000); border:1px solid var(--neutral-300); border-radius:12px; padding:11px 14px;
  transition:border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height:168px; line-height:1.5; resize:vertical; }
input::placeholder, textarea::placeholder { color:var(--fg-muted); opacity:.7; }
input:hover:not(:disabled), textarea:hover:not(:disabled), select:hover:not(:disabled) { border-color:var(--neutral-400); }
/* Focus is a ring AND a thicker edge, so it never rests on colour alone. */
input:focus-visible, textarea:focus-visible, select:focus-visible, .field input:focus {
  outline:2px solid var(--bitso-iris); outline-offset:2px; border-color:var(--bitso-iris);
}
input:disabled, textarea:disabled, select:disabled { background:var(--neutral-150); color:var(--fg-muted); cursor:not-allowed; }
input:user-invalid, textarea:user-invalid, input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color:var(--danger-500); box-shadow:0 0 0 1px var(--danger-500); }
.submission-form label, .field label { display:block; font-size:13px; font-weight:500; color:var(--fg-body); margin:12px 0 6px; }
.submission-form label:first-of-type { margin-top:0; }
.char-count { font-size:12px; color:var(--fg-muted); text-align:right; margin:6px 0 12px; font-variant-numeric:tabular-nums; }
.char-count.near { color:var(--danger-500); font-weight:500; }
.btn { transition:background .15s ease, border-color .15s ease, opacity .15s ease; }
.btn:hover:not(:disabled):not([aria-disabled="true"]) { border-color:var(--neutral-400); }
.btn-dark:hover:not(:disabled) { background:var(--bitso-indigo-deep); border-color:var(--bitso-indigo-deep); }
.btn:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; }
.btn:disabled { opacity:.55; cursor:not-allowed; }
.admin-form { display:flex; gap:8px; align-items:center; flex:1 1 320px; }
.admin-form input { flex:1; }
/* r20.7: one link per network. A row is the network, the link and its state
   (or the team's Confirmar); it wraps on a phone, the link breaks anywhere. */
.post-link-row { display:flex; gap:6px 10px; align-items:baseline; flex-wrap:wrap; margin:0 0 8px; }
.post-link-row a { overflow-wrap:anywhere; min-width:0; }
.post-link-net { font-size:13px; font-weight:600; color:var(--fg-body); min-width:72px; }
/* The intro line, then any verified links, then the fields. */
.post-links-intro { margin:var(--space-16) 0 var(--space-12); }
.post-links-form { margin-top:0; }
.post-link-row + .post-links-form, .post-links-legacy + .post-links-form { margin-top:var(--space-12); }
.post-links-form label { margin:var(--space-12) 0 var(--space-6); }
.post-links-form label .status-pill { margin-left:6px; vertical-align:1px; }
.post-links-form .btn { margin-top:var(--space-14); }
.post-links-help { margin:var(--space-8) 0 0; }
.post-links-legacy { margin:0 0 var(--space-8); }
/* r20.8: an item's link fields (views/partials/content-item.ejs). */
.links-item { margin:var(--space-8) 0 0; }
.links-pointer { margin:var(--space-6) 0 0; }
/* r20.8: Mi contenido in tabs. Pills in one row; two by two on a phone, so
   the page never scrolls sideways. The current tab is dark. */
.content-tabs { display:flex; gap:var(--space-8); flex-wrap:wrap; margin:var(--space-16) 0 var(--space-16); }
.content-tab { display:inline-flex; align-items:center; justify-content:center; gap:4px; padding:9px 16px; border-radius:1000px; border:1px solid var(--border-default); background:var(--neutral-000); color:var(--ink-900); font-size:14px; font-weight:500; text-decoration:none; white-space:nowrap; }
.content-tab:hover { border-color:var(--neutral-400); text-decoration:none; }
.content-tab:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; }
.content-tab[aria-current="page"] { background:var(--ink-900); border-color:var(--ink-900); color:#fff; }
.content-tab-count { font-variant-numeric:tabular-nums; opacity:.75; }
@media (max-width: 640px) { .content-tabs { display:grid; grid-template-columns:1fr 1fr; } .content-tab { padding:9px 8px; } }
.content-list-head { display:flex; align-items:flex-start; justify-content:space-between; gap:var(--space-12) var(--space-16); flex-wrap:wrap; margin-bottom:var(--space-6); }
.content-list-title { font-family:var(--font-display); font-weight:700; font-size:16px; margin-bottom:4px; }
.content-list-caption { margin:0; }
.kol-filter { display:flex; align-items:center; gap:var(--space-8); flex-wrap:wrap; margin:0; }
.kol-filter label { font-size:13px; font-weight:500; color:var(--fg-body); }
.kol-filter select { min-width:0; max-width:100%; }
@media (max-width: 640px) { .kol-filter { width:100%; } .kol-filter select { flex:1 1 0; } }
/* One text: title, state and date on a line that wraps; the body folds. */
.content-item { border-top:1px solid var(--border-subtle); padding:var(--space-14) 0; }
.content-item:last-of-type { padding-bottom:var(--space-6); }
.content-item-focus { background:var(--neutral-050); box-shadow:inset 3px 0 0 var(--bitso-iris); border-radius:0 10px 10px 0; padding-left:var(--space-14); padding-right:var(--space-8); }
.content-item-head { display:flex; gap:6px 10px; align-items:baseline; flex-wrap:wrap; }
.content-item-title { min-width:0; overflow-wrap:anywhere; }
.content-item-date { margin-left:auto; white-space:nowrap; }
.content-item-poster { margin:4px 0 0; }
.content-item-text { margin:var(--space-8) 0 0; }
.content-item-text > summary { cursor:pointer; font-size:13px; color:var(--bitso-iris-600); width:max-content; }
.content-item-text > summary:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; border-radius:4px; }
.content-item-text .submission-body { white-space:pre-wrap; overflow-wrap:anywhere; margin:var(--space-8) 0; }
.content-item-draft { margin:0 0 var(--space-8); overflow-wrap:anywhere; }
.content-item-legacy { margin:var(--space-8) 0 6px; overflow-wrap:anywhere; }
.content-item .post-link-row { margin-top:var(--space-8); }
.content-item .post-link-row + .post-link-row { margin-top:0; }
/* r20.8: "Por hacer" folded. The row is the <summary>: title, state, date,
   who posts it, and the action as a button; the fields open below, one text
   at a time. */
.content-item-summary { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-6) var(--space-12); cursor:pointer; list-style:none; }
.content-item-summary::-webkit-details-marker { display:none; }
.content-item-summary .content-item-head { flex:1 1 100%; }
.content-item-summary .content-item-poster { margin:0; }
.content-item-cta { margin-left:auto; }
.content-item-summary:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:4px; border-radius:6px; }
.content-item-fold[open] > .content-item-summary .content-item-cta { background:var(--neutral-000); color:var(--ink-900); border-color:var(--border-default); }
.content-item-fold[open] > .content-item-summary { margin-bottom:var(--space-6); }
@media (max-width: 640px) { .content-item-cta { flex:1 1 100%; text-align:center; } }
.content-empty a { font-weight:500; }
.pager { display:flex; justify-content:center; align-items:center; gap:var(--space-8); flex-wrap:wrap; padding:var(--space-14) 0 var(--space-4, 4px); border-top:1px solid var(--border-subtle); font-size:13px; color:var(--fg-muted); }
.pager a { font-weight:500; }
.pager-off { opacity:.45; }
.pager-where { font-variant-numeric:tabular-nums; }
#nuevo { scroll-margin-top:var(--space-16); }
.submission-form .draft-help { margin:var(--space-6) 0 0; }
.submission-form .submit-text { margin-top:var(--space-14); }
.admin-link-form { display:inline-flex; margin:0; }
/* The two review notes (2026-09-25): multi-line, label on top, counter under it. */
.admin-note-form { flex-direction:column; align-items:stretch; gap:0; }
.admin-note-form label { display:block; font-size:13px; font-weight:500; color:var(--fg-body); margin:0 0 6px; }
.admin-note-form textarea { min-height:112px; max-height:60vh; resize:none; } /* grows as you type (app.js), scrolls past 60vh */
.admin-note-form .char-count { margin:6px 0 8px; }
.admin-note-form .btn { align-self:flex-start; }
/* The review thread: the team's notes at body size, in their own box, apart
   from the partner's text. Line breaks as written. */
.review-thread { margin:12px 0; padding:12px 14px; border:1px solid var(--bitso-iris-100); border-radius:12px; background:var(--neutral-000); }
.review-thread-title { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; color:var(--bitso-iris-600); margin-bottom:8px; }
.review-thread-title .ms { font-size:18px; }
.review-note { border-left:3px solid var(--bitso-iris); padding:8px 12px; background:var(--neutral-050); border-radius:0 8px 8px 0; }
.review-note + .review-note { margin-top:8px; }
.review-note-changes { border-left-color:var(--warning-500); }
.review-note-ok { border-left-color:var(--success-500); }
.review-note-meta { font-size:12px; color:var(--fg-muted); margin-bottom:4px; }
.review-note-edited { font-style:italic; }
/* r15: Editar / Borrar on the admin's own notes (native <details>). */
.review-note-actions { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 14px; margin-top:6px; font-size:13px; }
.note-action > summary { display:inline-block; padding:4px 0; list-style:none; cursor:pointer; font-weight:600; color:var(--bitso-iris-600); border-radius:6px; }
.note-action > summary::-webkit-details-marker { display:none; }
.note-action > summary:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; }
.note-action[open] { flex-basis:100%; }
.note-action form { margin-top:8px; }
.note-delete > summary { color:var(--danger-500); }
.note-delete-form { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.review-note-body, .review-note-preview { font-size:14px; line-height:1.55; color:var(--ink-900); white-space:pre-wrap; overflow-wrap:anywhere; }
/* Folding (native <details>): the newest note shows 6 lines, the earlier 2. */
.review-note-fold > summary { list-style:none; cursor:pointer; border-radius:6px; }
.review-note-fold > summary::-webkit-details-marker { display:none; }
.review-note-fold > summary:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; }
.review-note-preview { display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.review-note-preview.clamp-6 { -webkit-line-clamp:6; line-clamp:6; }
.review-note-preview.clamp-2 { -webkit-line-clamp:2; line-clamp:2; }
.review-note-toggle { display:inline-block; margin-top:4px; font-size:13px; font-weight:600; color:var(--bitso-iris-600); }
.review-note-toggle::after { content:" ▾"; }
.review-note-fold[open] .review-note-toggle::after { content:" ▴"; }
.review-note-fold .when-open, .review-note-fold[open] .when-closed, .review-note-fold[open] .review-note-preview { display:none; }
.review-note-fold[open] .when-open { display:inline; }
.review-note-fold[open] > summary { margin-bottom:4px; }
/* app.js: "Ver menos" at the end of an open note; the summary's copy hides. */
.review-note-fold.js-fold[open] > summary { display:none; }
.review-note-less { display:inline-block; margin-top:6px; padding:4px 0; border:0; background:none; font:inherit; font-size:13px; font-weight:600; color:var(--bitso-iris-600); cursor:pointer; border-radius:6px; }
.review-note-less::after { content:" ▴"; }
.review-note-less:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; }
.review-note-fold .review-note-body:focus { outline:none; }
/* app.js: a folded note that turned out to fit is shown open, with no toggle. */
.review-note-fold.fits > summary { display:none; }
@media (max-width: 640px) {
  input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea { font-size:16px; } /* no zoom on iOS */
  .admin-form { flex-wrap:wrap; } .admin-form .btn { width:100%; }
}

/* --- Phone layout for the whole shell (r4) ------------------------------- */
/* The shell never had one: at 390px the 248px sidebar squeezed every screen.
   Below 760px the sidebar becomes a horizontally scrolling nav row on top, the
   sidebar code card hides (the topbar keeps "Comparte tu código"), and grids
   collapse to one column. CSS only. */
@media (max-width: 760px) {
  .shell { flex-direction:column; }
  .sidebar { width:auto; min-height:0; border-right:none; border-bottom:1px solid var(--border-subtle); padding-bottom:0; }
  .sidebar .nav { display:flex; flex-direction:row; gap:4px; overflow-x:auto; padding:0 12px 10px; -webkit-overflow-scrolling:touch; }
  .sidebar .nav-item { flex:none; white-space:nowrap; }
  .sidebar .code-card { display:none; }
  .main { border-radius:0; }
  .topbar { height:auto; min-height:60px; padding:10px 16px; flex-wrap:wrap; }
  .content { padding:16px 16px 48px; }
  .two-col { grid-template-columns:1fr; }
  .kpi-grid { grid-template-columns:1fr !important; }
  .table { display:block; overflow-x:auto; }
}

/* --- r5 ------------------------------------------------------------------ */
/* Pagos: Andie's four tiles. */
.pay-tiles { grid-template-columns:repeat(4,1fr); }
@media (max-width:1100px) { .pay-tiles { grid-template-columns:repeat(2,1fr); } }
.kpi .label strong { color:var(--ink-900); font-weight:700; font-size:14px; }
.kpi .caption { font-size:12px; color:var(--fg-muted); margin-top:-6px; }
.kpi-soft { background:var(--bitso-iris-100); border-color:var(--bitso-iris-400); }
.value-unmeasured { font-size:17px !important; font-weight:500 !important; color:var(--fg-muted); font-style:italic; }

/* The bell. */
.bell { position:relative; }
.bell-btn { position:relative; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%; border:1px solid transparent; background:transparent; color:var(--fg-muted); cursor:pointer; }
.bell-btn:hover { background:var(--neutral-050); }
.bell-btn:focus-visible { outline:2px solid var(--bitso-iris); outline-offset:2px; }
.bell-btn[aria-expanded="true"] { background:var(--bitso-iris-100); color:var(--bitso-iris-600); }
.bell-btn .ms { font-size:22px; }
.bell-badge { position:absolute; top:2px; right:1px; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--bitso-iris); color:#fff; font-size:11px; font-weight:700; line-height:17px; text-align:center; }
.bell-panel { position:absolute; right:0; top:calc(100% + 8px); width:280px; max-width:calc(100vw - 32px); background:var(--neutral-000); border:1px solid var(--border-subtle); border-radius:14px; box-shadow:var(--shadow-200); padding:14px 16px; z-index:50; font-size:13px; }
.bell-panel[hidden] { display:none; }
.bell-panel p { margin:0 0 10px; }
.bell-panel p:last-child { margin:0; }
.bell-panel .bell-title { font-weight:700; font-family:var(--font-display); }

/* Team mode: the admin pages are unmistakably the team's. */
.team-band { display:flex; align-items:center; gap:8px; padding:9px 32px; background:var(--ink-900); color:#fff; font-size:13px; }
.team-band .ms { font-size:18px; color:var(--bitso-neon); }
.nav-section { margin:18px 14px 6px; padding-top:14px; border-top:1px solid var(--border-subtle); font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--fg-muted); }
.nav-item.nav-team.active { background:var(--ink-900); color:#fff; }
.nav-badge { min-width:22px; height:20px; padding:0 6px; border-radius:10px; background:var(--bitso-iris); color:#fff; font-size:12px; font-weight:700; line-height:20px; text-align:center; }
.nav-item.nav-team.active .nav-badge { background:var(--bitso-neon); color:var(--ink-900); }

/* Admin: each submission leads with the Bitso user id. */
.admin-sub-head { display:flex; gap:16px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; }
.uid { display:flex; flex-direction:column; gap:2px; }
.uid-label { font-size:11px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase; color:var(--fg-muted); }
.uid-value { font-family:var(--font-display); font-weight:700; font-size:26px; letter-spacing:0.01em; font-variant-numeric:tabular-nums; }
.uid-missing { color:var(--warning-500); background:var(--warning-100); border-radius:8px; padding:0 10px; width:fit-content; font-size:22px; }
.uid-sub { font-size:13px; color:var(--fg-muted); }
.admin-sub-meta { display:flex; flex-direction:column; align-items:flex-end; gap:6px; }

@media (max-width:760px) {
  /* The panel spans the header instead of hanging off the bell, which sits
     mid-row on a phone and would push it off the left edge. */
  .topbar { position:relative; }
  .bell { position:static; }
  .bell-panel { left:16px; right:16px; width:auto; max-width:none; top:calc(100% - 4px); }
  .team-band { padding:9px 16px; }
  .nav-section { display:none; }
  .admin-sub-meta { align-items:flex-start; }
}

/* --- r6 ------------------------------------------------------------------ */
/* The empty referral screen: the funnel's structure, every stage unmeasured. */
.funnel-steps { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.funnel-steps li { display:flex; align-items:center; gap:14px; padding:12px 14px; border:1px solid var(--border-subtle); border-radius:12px; background:var(--neutral-050); }
.funnel-steps .step-num { flex:none; width:28px; height:28px; border-radius:50%; background:var(--bitso-iris-100); color:var(--bitso-iris-600); font-weight:700; display:flex; align-items:center; justify-content:center; }
.funnel-steps .step-body { flex:1; display:flex; flex-direction:column; gap:2px; }
.funnel-steps .step-what { font-size:13px; color:var(--fg-muted); }
.funnel-steps .value-unmeasured { font-size:13px !important; white-space:nowrap; }
@media (max-width:760px) { .funnel-steps li { flex-wrap:wrap; } .funnel-steps .step-body { flex:1 1 calc(100% - 42px); min-width:0; } .funnel-steps .value-unmeasured { margin-left:42px; } }
/* Preview as a partner: the band stays on screen. */
.preview-band { position:sticky; top:0; z-index:40; background:var(--bitso-indigo-deep); }
.preview-band a { color:var(--bitso-neon); margin-left:auto; font-weight:600; }
.partner-list { display:flex; flex-direction:column; gap:12px; }
.partner-row { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.partner-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ficha td { vertical-align:top; }
.ficha td:last-child { white-space:nowrap; }
.ficha code { font-size:12px; background:var(--neutral-050); padding:1px 5px; border-radius:4px; overflow-wrap:anywhere; }

/* 2026-09-24: test partners, the bell's pending list, the content flow. */
.badge-test { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.06em; color:var(--warning-500); background:var(--warning-100); border-radius:6px; padding:1px 7px; vertical-align:1px; }
.bell-list { list-style:none; margin:8px 0 12px; padding:0; display:flex; flex-direction:column; gap:8px; max-height:260px; overflow:auto; }
.bell-list li { display:flex; flex-direction:column; gap:1px; border-top:1px solid var(--line, #e5e5e5); padding-top:6px; }
.bell-uid { font-family:var(--font-display); font-weight:700; font-size:17px; }
.bell-uid.uid-missing { font-size:14px; padding:0 8px; }
.bell-kol { font-size:12px; color:var(--text-2, #555); overflow-wrap:anywhere; }
.submission-edit { margin-top:6px; }

.via-agency { font-size:12px; font-weight:600; color:var(--bitso-iris, #4f5bd5); background:var(--bitso-iris-100, #eef0ff); border-radius:6px; padding:1px 7px; white-space:nowrap; }

/* 2026-09-25: what waits on the partner. */
.action-banner { display:flex; align-items:center; gap:14px; flex-wrap:wrap; border-radius:14px; padding:16px 18px; font-size:15px; }
.action-banner .ms { font-size:28px; }
.action-banner .action-text { flex:1; min-width:220px; }
.action-ready { background:var(--success-100); border:2px solid var(--success-500); color:#0f5132; }
.action-ready .ms { color:var(--success-500); }
.action-fix { background:var(--warning-100, #fff4d6); border:2px solid var(--warning-500, #b7791f); color:#6b4a00; }
.action-fix .ms { color:var(--warning-500, #b7791f); }
.submission-ready { background:var(--success-100); border:2px solid var(--success-500) !important; border-radius:12px; padding:14px !important; margin:8px 0; }
.status-pill-lg { font-size:14px; padding:5px 12px; font-weight:700; }
.nav-dot-action { background:var(--success-500); }
.bell-list a { text-decoration:none; color:inherit; display:flex; flex-direction:column; gap:1px; }

.not-applicable, .value-na { color:var(--text-2, #666); font-weight:600; }
.value-na { font-size:16px; }

/* --- r16 ----------------------------------------------------------------- */
/* B8: how a staff surface names a partner (views/partials/identity.ejs). */
.identity { display:flex; flex-direction:column; gap:2px; min-width:0; }
.identity .id-name { font-family:var(--font-display); font-weight:700; font-size:20px; line-height:26px; overflow-wrap:anywhere; }
.identity .id-uid { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.identity .id-uid .uid-label { font-size:11px; }
.identity .uid-copy { padding:3px 10px; font-size:12px; display:inline-flex; align-items:center; gap:4px; }
.identity .uid-copy .ms { font-size:14px; }
.identity .id-kol { font-size:12px; color:var(--fg-muted); }
.identity-compact .id-name { font-size:14px; line-height:18px; }
.identity-compact .uid-value { font-size:16px; }
.identity-compact .uid-missing { font-size:13px; padding:0 6px; }
/* B6: the recent-previews list, paged. */
.table-wrap { overflow-x:auto; }
/* r20.1 (375 / 768 sweep): a long link or title wraps inside its card instead of
   pushing the page sideways; small tap targets get at least 24 px. */
.submission, .admin-sub { overflow-wrap:anywhere; }
.submission > div > strong, .admin-sub-head > * { min-width:0; }
details.versions > summary { padding:5px 0; }
.empty a { display:inline-block; padding:4px 0; }
.news-card .btn { white-space:nowrap; }
.pager { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:12px; }

/* r20.4: Tim's analytics block (PR #22). His tooltip is .an-tip here: .chart-tip
   is the demo funnel's (hidden until .show), and sharing it hid his. */
/* --- analytics dashboard ------------------------------------------------- */
.card-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
/* Chart controls navigate (they are links, so the filter state lives in the
   URL and a view is shareable). The fragment brings the reader back to the card
   they were reading; this keeps the title clear of the sticky topbar when it
   lands. Without it, toggling a series scrolls you to the top of the page. */
.card[id] { scroll-margin-top:84px; }
.card-title { font-family:var(--font-display); font-weight:700; font-size:16px; }
.filter-label { display:block; font-size:12px; color:var(--fg-muted); margin-bottom:5px; }
.filter-input { padding:7px 10px; border-radius:10px; border:1px solid var(--border-subtle);
                background:var(--neutral-000); font:inherit; font-size:13px; color:var(--ink-900); }
.filter-input:focus { outline:2px solid var(--bitso-iris); outline-offset:1px; }
/* The grain control is inside the filter form, so its options are radio
   labels rather than links — one submit applies dates and grain together. */
.seg label { padding:6px 12px; border-radius:9px; font-size:13px; font-weight:500;
             cursor:pointer; color:var(--fg-muted); }
.seg label.active { background:#fff; color:var(--ink-900); box-shadow:var(--shadow-100); }
.legend { display:flex; gap:18px; margin-top:12px; font-size:12px; color:var(--fg-muted);
          flex-wrap:wrap; align-items:center; }
.legend i, .swatch { display:inline-block; width:10px; height:10px; border-radius:3px;
                     margin-right:5px; vertical-align:-1px; }
.chip-sm { padding:5px 10px; font-size:12px; }
.hbar { height:8px; border-radius:4px; }
/* Invisible hover target spanning a whole period column, so the reader gets the
   full stack without having to land on one thin segment. `transparent` rather
   than `none`: a rect with fill:none does not receive pointer events at all. */
.hover-band { fill:transparent; cursor:crosshair; }
.hover-band:hover { fill:var(--ink-900); fill-opacity:0.04; }
.an-tip { position:fixed; z-index:50; pointer-events:none; background:var(--ink-900);
             color:#fff; border-radius:10px; padding:8px 10px; font-size:12px; line-height:1.45;
             box-shadow:var(--shadow-100); max-width:260px; }
.an-tip b { display:block; font-size:12px; margin-bottom:3px; }
.an-tip span { display:block; white-space:nowrap; opacity:0.85; }
