/* Dropdate app shell + primitives. Depends on tokens.css. */

*, *::before, *::after { box-sizing: border-box; }

/* the hidden attribute must win over component display rules (e.g. .lens-switch) */
[hidden] { display: none !important; }

/* screen-reader-only + skip link (accessibility) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 50%; top: 8px; transform: translateX(-50%) translateY(-200%);
  background: var(--rose); color: #fff; padding: 8px 16px; border-radius: var(--r-md);
  z-index: 1000; font-weight: 600; transition: transform var(--dur) var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); }

/* loading skeletons */
@keyframes skel-shimmer { 0% { background-position: -460px 0; } 100% { background-position: 460px 0; } }
.skel, .skel-card {
  background: linear-gradient(90deg, var(--ink-750) 25%, var(--ink-700) 37%, var(--ink-750) 63%);
  background-size: 920px 100%; animation: skel-shimmer 1.3s ease-in-out infinite; border-radius: var(--r-sm);
}
.skel-wrap { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.skel { height: 14px; }
.skel-cards { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 680px; }
.skel-card { height: 84px; border-radius: var(--r-lg); }
@media (prefers-reduced-motion: reduce) { .skel, .skel-card { animation: none; } }

/* empty states */
.empty { text-align: center; padding: var(--sp-8) var(--sp-5); color: var(--text-mid); max-width: 460px; margin: var(--sp-6) auto; }
.empty-ic { font-size: 34px; opacity: 0.6; margin-bottom: var(--sp-3); }
.empty-title { font-weight: var(--fw-semibold); color: var(--text-hi); margin-bottom: var(--sp-2); }
.empty-hint { font-size: var(--fs-sm); color: var(--text-lo); }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh-normal);
  color: var(--text-hi);
  background: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--phase-mixing);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

h1, h2, h3 { font-family: var(--font-display); line-height: var(--lh-tight); margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
h2 { font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
h3 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
p { margin: 0 0 var(--sp-4); color: var(--text-mid); }

/* numerals: tabular + display face wherever a date or count is shown */
.num, time, .metric { font-family: var(--font-display); font-variant-numeric: tabular-nums; }

/* ============ app shell ============ */
.app {
  display: grid;
  grid-template-columns: var(--rail-w) 1fr;
  grid-template-rows: var(--header-h) 1fr;
  grid-template-areas: "rail header" "rail main";
  min-height: 100vh;
}
/* when signed out, the funnel pages take the whole frame */
.app[data-auth="out"] { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
.app[data-auth="out"] .rail { display: none; }

.header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-5);
  background: var(--ink-800);
  border-bottom: 1px solid var(--ink-600);
  position: sticky; top: 0; z-index: var(--z-nav);
}
.brand { display: flex; align-items: center; gap: var(--sp-2); font-family: var(--font-display); font-weight: var(--fw-bold); }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose-glow); }
.brand b { font-size: var(--fs-lg); letter-spacing: -0.01em; }

/* lens switcher placeholder (real projection logic lands in F1-B) */
.lens-switch { display: flex; gap: var(--sp-1); background: var(--ink-750); padding: 3px; border-radius: var(--r-pill); }
.lens-switch button {
  border: 0; background: transparent; color: var(--text-mid);
  font: inherit; font-size: var(--fs-sm); padding: 4px 12px; border-radius: var(--r-pill); cursor: pointer;
}
.lens-switch button[aria-pressed="true"] { background: var(--ink-600); color: var(--text-hi); }

.header .spacer { flex: 1; }

/* side rail (desktop nav) */
.rail {
  grid-area: rail;
  background: var(--ink-850);
  border-right: 1px solid var(--ink-600);
  padding: var(--sp-4) var(--sp-3);
  display: flex; flex-direction: column; gap: var(--sp-1);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.rail .group-label { color: var(--text-lo); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; padding: var(--sp-3) var(--sp-3) var(--sp-1); }
.nav-link {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3); border-radius: var(--r-md);
  color: var(--text-mid); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.nav-link:hover { background: var(--ink-750); color: var(--text-hi); }
.nav-link[aria-current="page"] { background: var(--ink-700); color: var(--text-hi); }
.nav-link .ic { width: 18px; text-align: center; opacity: 0.85; }

/* main view mount */
.main { grid-area: main; padding: var(--sp-6); max-width: var(--content-max); width: 100%; }
.app[data-auth="out"] .main { max-width: none; padding: 0; }

/* mobile bottom bar (hidden on desktop) */
.bottombar { display: none; }

/* ============ primitives ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  padding: var(--sp-2) var(--sp-5); border-radius: var(--r-md);
  border: 1px solid transparent; cursor: pointer; transition: all var(--dur-fast) var(--ease);
}
.btn-primary { background: var(--rose); color: white; }
.btn-primary:hover { background: var(--rose-dim); }
.btn-ghost { background: transparent; border-color: var(--ink-600); color: var(--text-hi); }
.btn-ghost:hover { background: var(--ink-750); }

.card {
  background: var(--ink-750); border: 1px solid var(--ink-600);
  border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--shadow-1);
}
.card + .card { margin-top: var(--sp-4); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: var(--fw-medium);
  padding: 2px 10px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--phase, var(--ink-500)) 18%, transparent);
  color: var(--phase, var(--text-mid));
  border: 1px solid color-mix(in srgb, var(--phase, var(--ink-500)) 35%, transparent);
}

.avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-inverse);
  background: var(--phase-creative);
}

/* progress fill */
.progress { height: 8px; border-radius: var(--r-pill); background: var(--ink-700); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: var(--phase, var(--phase-promo)); transition: width var(--dur) var(--ease); }

/* HUD shell */
.hud {
  display: flex; align-items: center; gap: var(--sp-5);
  background: var(--ink-800); border: 1px solid var(--ink-600);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
}
.hud .score { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-bold); line-height: 1; }
.hud[data-risk="high"] .score { color: var(--rose); text-shadow: 0 0 24px var(--rose-glow); }

/* drawer */
.drawer-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: var(--z-drawer);
}
.drawer-scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--ink-800); border-left: 1px solid var(--ink-600);
  transform: translateX(100%); transition: transform var(--dur) var(--ease);
  z-index: var(--z-drawer); padding: var(--sp-5); overflow-y: auto;
}
.drawer-scrim[data-open="true"] .drawer { transform: translateX(0); }

/* toast */
.toast-host { position: fixed; bottom: var(--sp-5); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; gap: var(--sp-2); }
.toast { background: var(--ink-700); border: 1px solid var(--ink-600); color: var(--text-hi); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-md); box-shadow: var(--shadow-pop); font-size: var(--fs-sm); }

/* the SVG lane primitive base (Dropline reuses) */
.lane { fill: var(--ink-750); }
.lane-block { rx: 6; }
.dropline-axis { stroke: var(--rose); stroke-width: 2; filter: drop-shadow(0 0 6px var(--rose-glow)); }

/* stub page (F0 only) */
.stub { display: grid; place-items: center; min-height: 50vh; text-align: center; }
.stub .badge { font-size: var(--fs-xs); color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--sp-3); }
.stub .links { margin-top: var(--sp-5); display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

.muted { color: var(--text-lo); }
.center { text-align: center; }

/* ============ responsive: mobile ============ */
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; grid-template-areas: "header" "main"; }
  .rail { display: none; }
  .main { padding: var(--sp-4) var(--sp-4) calc(var(--bottombar-h) + var(--sp-5)); }
  .lens-switch { display: none; }

  .bottombar {
    display: flex; justify-content: space-around; align-items: center;
    position: fixed; bottom: 0; left: 0; right: 0; height: var(--bottombar-h);
    background: var(--ink-800); border-top: 1px solid var(--ink-600); z-index: var(--z-nav);
  }
  .app[data-auth="out"] .bottombar { display: none; }
  .bottombar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--text-lo); font-size: 10px; padding: var(--sp-2); flex: 1;
  }
  .bottombar a[aria-current="page"] { color: var(--text-hi); }
  .bottombar .ic { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* ============================================================
   F1-A  marketing + auth funnel
   ============================================================ */
.funnel { max-width: 1040px; margin: 0 auto; padding: var(--sp-8) var(--sp-5) var(--sp-10); }
.funnel-narrow { max-width: 460px; }

/* ---- hero ---- */
.hero { text-align: center; padding: var(--sp-10) 0 var(--sp-8); position: relative; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-sm); color: var(--text-mid);
  background: var(--ink-750); border: 1px solid var(--ink-600);
  padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: var(--sp-5);
}
.hero .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 8px var(--rose-glow); }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, var(--fs-3xl)); letter-spacing: -0.02em;
  max-width: 14ch; margin: 0 auto var(--sp-4);
}
.hero h1 .accent { color: var(--rose); }
.hero .sub { font-size: var(--fs-lg); color: var(--text-mid); max-width: 52ch; margin: 0 auto var(--sp-6); }
.hero .cta-row { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.hero .micro { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-lo); }

/* the example sentence -> plan, the product's whole pitch in one card */
.sentence-demo {
  margin: var(--sp-8) auto 0; max-width: 760px;
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--ink-600); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-2);
}
.sentence-demo .typed {
  font-family: var(--font-mono); font-size: var(--fs-md); color: var(--text-hi);
  background: var(--ink-900); border: 1px solid var(--ink-600); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); margin-bottom: var(--sp-4);
}
.sentence-demo .typed::before { content: "› "; color: var(--rose); }

/* ---- feature grid ---- */
.section-head { text-align: center; margin: var(--sp-10) 0 var(--sp-6); }
.section-head h2 { font-size: var(--fs-2xl); }
.section-head p { color: var(--text-mid); max-width: 56ch; margin: var(--sp-2) auto 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.feature {
  background: var(--ink-750); border: 1px solid var(--ink-600);
  border-radius: var(--r-lg); padding: var(--sp-5);
}
.feature .ic { font-size: 22px; display: block; margin-bottom: var(--sp-3); }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.feature p { color: var(--text-mid); margin: 0; font-size: var(--fs-sm); }

/* ---- pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); align-items: start; }
.price {
  background: var(--ink-750); border: 1px solid var(--ink-600);
  border-radius: var(--r-lg); padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3);
}
.price.featured { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose-dim), var(--shadow-2); }
.price .name { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.price .amount { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
.price .amount small { font-size: var(--fs-sm); color: var(--text-lo); font-weight: var(--fw-normal); }
.price ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.price li { font-size: var(--fs-sm); color: var(--text-mid); display: flex; gap: var(--sp-2); }
.price li::before { content: "✓"; color: var(--phase-promo); font-weight: var(--fw-bold); }
.price li.off { color: var(--text-lo); }
.price li.off::before { content: "–"; color: var(--text-lo); }
.price .btn { margin-top: auto; }
.price-note { text-align: center; color: var(--text-lo); font-size: var(--fs-sm); margin-top: var(--sp-5); }

/* ---- auth forms ---- */
.auth-card {
  background: var(--ink-750); border: 1px solid var(--ink-600);
  border-radius: var(--r-lg); padding: var(--sp-6); margin-top: var(--sp-10);
}
.auth-card h1 { font-size: var(--fs-xl); text-align: center; }
.auth-card .lede { text-align: center; color: var(--text-mid); margin-bottom: var(--sp-5); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.field label { font-size: var(--fs-sm); color: var(--text-mid); }
.field input {
  font: inherit; color: var(--text-hi); background: var(--ink-900);
  border: 1px solid var(--ink-600); border-radius: var(--r-md); padding: var(--sp-3) var(--sp-4);
}
.field input:focus-visible { outline: 2px solid var(--phase-mixing); outline-offset: 1px; }
.auth-card .btn { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0; color: var(--text-lo); font-size: var(--fs-sm); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--ink-600); }
.auth-alt { text-align: center; margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-lo); }
.auth-alt a { color: var(--text-hi); text-decoration: underline; }

.sent-state { text-align: center; }
.sent-state .big { font-size: 40px; margin-bottom: var(--sp-3); }

/* footer */
.funnel-footer { border-top: 1px solid var(--ink-600); margin-top: var(--sp-10); padding-top: var(--sp-5); text-align: center; color: var(--text-lo); font-size: var(--fs-sm); }

@media (max-width: 760px) {
  .feature-grid, .price-grid { grid-template-columns: 1fr; }
  .funnel { padding: var(--sp-5) var(--sp-4) var(--sp-8); }
}

/* ============================================================
   F1-B  app surfaces
   ============================================================ */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: var(--fs-xl); }
.page-head .crumb { font-size: var(--fs-xs); color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.page-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* segmented lens control */
.seg { display: inline-flex; gap: 3px; background: var(--ink-750); padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--ink-600); }
.seg button { border: 0; background: transparent; color: var(--text-mid); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); padding: 5px 14px; border-radius: var(--r-pill); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink-600); color: var(--text-hi); }

/* HUD row */
.canvas-top { display: flex; gap: var(--sp-4); align-items: stretch; margin-bottom: var(--sp-4); flex-wrap: wrap; }
.canvas-top .hud { flex: 1; min-width: 280px; }

/* dropline */
.dropline-wrap { background: var(--ink-850); border: 1px solid var(--ink-600); border-radius: var(--r-lg); padding: var(--sp-4); overflow-x: auto; }
.dropline-wrap svg { display: block; width: 100%; min-width: 640px; height: auto; }
.legend { display: flex; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--text-mid); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.block-hit { cursor: pointer; }
.block-hit:hover { filter: brightness(1.15); }

/* history / activity items */
.hist-list, .feed-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.hist-item, .feed-item {
  background: var(--ink-750); border: 1px solid var(--ink-600); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); display: flex; gap: var(--sp-3); align-items: flex-start;
}
.feed-item .meta, .hist-item .meta { flex: 1; }
.feed-item .who { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.feed-item .what { color: var(--text-mid); font-size: var(--fs-sm); }
.feed-item time, .hist-item time { color: var(--text-lo); font-size: var(--fs-xs); white-space: nowrap; }
.evt-actor-ai { color: var(--phase-creative); }

/* filters */
.filter-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.chip {
  border: 1px solid var(--ink-600); background: var(--ink-750); color: var(--text-mid);
  font: inherit; font-size: var(--fs-sm); padding: 4px 12px; border-radius: var(--r-pill); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink-600); color: var(--text-hi); border-color: var(--ink-500); }

/* today list */
.today-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 640px; }
.today-item {
  background: var(--ink-750); border: 1px solid var(--ink-600); border-radius: var(--r-lg);
  padding: var(--sp-4); display: flex; gap: var(--sp-3); align-items: center;
}
.today-item .body { flex: 1; }
.today-item .title { font-weight: var(--fw-semibold); }
.today-item .sub { color: var(--text-lo); font-size: var(--fs-sm); }
.today-item .pct { font-family: var(--font-display); font-weight: var(--fw-bold); font-size: var(--fs-lg); }
.today-item[data-risk="high"] .pct { color: var(--rose); }

/* composer */
.composer { max-width: 720px; }
.composer textarea {
  width: 100%; min-height: 92px; font: inherit; color: var(--text-hi);
  background: var(--ink-900); border: 1px solid var(--ink-600); border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); resize: vertical;
}
.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: var(--sp-4) 0; }
.examples { margin-top: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }
.examples button { text-align: left; }

/* members / settings */
.member-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-bottom: 1px solid var(--ink-700); }
.member-row:last-child { border-bottom: 0; }
.member-row .name { font-weight: var(--fw-medium); }
.role-pill { font-size: var(--fs-xs); padding: 2px 10px; border-radius: var(--r-pill); border: 1px solid var(--ink-500); color: var(--text-mid); }
.role-pill.owner { color: var(--phase-master); border-color: var(--phase-master); }

/* usage meters (billing/admin) */
.meter { margin-bottom: var(--sp-4); }
.meter .lbl { display: flex; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 6px; }
.meter .lbl .val { color: var(--text-lo); }
.bar { height: 8px; border-radius: var(--r-pill); background: var(--ink-700); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--phase-mixing); border-radius: inherit; }
.bar.warn > i { background: var(--warn); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* ============================================================
   F1-C  future-phase shells
   ============================================================ */

/* ---- the Mixdown ---- */
.mix-toolbar { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.mix-list { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 760px; }
.bounce {
  background: var(--ink-750); border: 1px solid var(--ink-600); border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4); display: flex; gap: var(--sp-3); align-items: center;
}
.bounce.playing { border-color: var(--phase-mixing); box-shadow: 0 0 0 1px var(--phase-mixing); }
.play-btn {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--rose); color: #fff; font-size: 16px; display: grid; place-items: center;
}
.play-btn.alt { background: var(--ink-600); }
.bounce .body { flex: 1; min-width: 0; }
.bounce .title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.bounce .sub { color: var(--text-lo); font-size: var(--fs-xs); }
.wave { width: 100%; height: 40px; display: block; margin-top: 6px; }
.wave .pk { fill: var(--ink-500); }
.wave .pk.on { fill: var(--phase-mixing); }
.bounce time { color: var(--text-lo); font-size: var(--fs-xs); white-space: nowrap; }

/* ---- forecast card ---- */
.forecast { max-width: 640px; }
.fc-card {
  background: linear-gradient(180deg, var(--ink-800), var(--ink-850));
  border: 1px solid var(--ink-600); border-radius: var(--r-lg); padding: var(--sp-6); text-align: center;
}
.fc-odds { font-family: var(--font-display); font-size: 4rem; font-weight: var(--fw-bold); line-height: 1; }
.fc-date { font-size: var(--fs-xl); margin-top: var(--sp-2); }
.fc-date .pred { color: var(--rose); font-weight: var(--fw-bold); }
.fc-conf { color: var(--text-lo); font-size: var(--fs-sm); margin-top: var(--sp-2); }
.fc-strip { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.fc-strip .box { flex: 1; background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--r-md); padding: var(--sp-4); text-align: left; }
.fc-strip .box .k { font-size: var(--fs-xs); color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.06em; }
.fc-strip .box.storm { border-color: var(--rose); }
.fc-action { margin-top: var(--sp-5); background: var(--ink-800); border: 1px solid var(--phase-promo); border-radius: var(--r-md); padding: var(--sp-4); text-align: left; }

/* ---- time machine ---- */
.tm { max-width: 820px; }
.tm-controls { background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--r-lg); padding: var(--sp-5); margin-bottom: var(--sp-4); }
.tm-date { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); text-align: center; }
.tm-range { width: 100%; margin: var(--sp-4) 0 0; accent-color: var(--rose); }
.tm-ends { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--text-lo); }
.tm-rows { display: flex; flex-direction: column; gap: var(--sp-3); }
.tm-row { display: grid; grid-template-columns: 160px 1fr 48px; gap: var(--sp-3); align-items: center; }
.tm-row .nm { font-size: var(--fs-sm); }
.tm-row .pc { text-align: right; font-family: var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-mid); }

/* ---- public drop page (bare) ---- */
.drop-public { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: var(--sp-6); }
.drop-public .inner { max-width: 560px; }
.drop-public .label { color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-sm); }
.drop-public h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: var(--sp-3) 0; }
.count { display: flex; gap: var(--sp-4); justify-content: center; margin: var(--sp-6) 0; }
.count .unit { background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5); min-width: 84px; }
.count .n { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--rose); }
.count .u { font-size: var(--fs-xs); color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; }
.drop-public .when { color: var(--text-mid); }
.milestones { margin-top: var(--sp-6); text-align: left; display: inline-block; }
.milestones .ms { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; color: var(--text-mid); font-size: var(--fs-sm); }
.milestones .ms .dot2 { width: 8px; height: 8px; border-radius: 50%; background: var(--phase-promo); }

/* ---- public drop page, richer ---- */
.drop2 { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: var(--sp-8) var(--sp-5) var(--sp-10);
  background:
    radial-gradient(1100px 480px at 50% -8%, rgba(244,63,94,0.16), transparent 60%),
    radial-gradient(900px 420px at 50% 0%, rgba(139,92,246,0.12), transparent 55%);
}
.drop2 .shell { width: 100%; max-width: 760px; }
/* bare chrome (public drop page): hide the app header entirely and reclaim its row */
.app[data-chrome="bare"] .header { display: none; }
.app[data-chrome="bare"] { grid-template-rows: 1fr; grid-template-areas: "main"; }
.app[data-chrome="bare"] .main { padding: 0; max-width: none; }
.drop2 .topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-8); }
.drop2 .brand2 { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: var(--fw-bold); }
.drop2 .brand2 .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px var(--rose-glow); }
.drop2 .priv { font-size: var(--fs-xs); color: var(--text-lo); }

.drop-hero { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: center; }
.cover { position: relative; width: 220px; height: 220px; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(145deg, #1a2030, #0d1422); border: 1px solid var(--ink-600); box-shadow: var(--shadow-2);
  display: grid; place-items: center; }
.cover svg { width: 100%; height: 100%; }
.drop-hero .eyebrow2 { color: var(--rose); text-transform: uppercase; letter-spacing: 0.14em; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.drop-hero h1 { font-size: clamp(2rem, 5vw, var(--fs-3xl)); margin: var(--sp-2) 0 4px; line-height: 1.05; }
.drop-hero .artist { color: var(--text-mid); font-size: var(--fs-lg); margin-bottom: var(--sp-4); }
.drop-hero .when2 { color: var(--text-mid); margin-bottom: var(--sp-4); }
.drop-hero .when2 b { color: var(--rose); }
.drop-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

.count2 { display: flex; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-4); }
.count2 .unit { flex: 1; background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--r-md); padding: var(--sp-4); text-align: center; }
.count2 .n { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--text-hi); }
.count2 .u { font-size: var(--fs-xs); color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.08em; }

.drop-section { background: var(--ink-850); border: 1px solid var(--ink-600); border-radius: var(--r-lg); padding: var(--sp-5); margin-top: var(--sp-4); }
.drop-section h3 { font-size: var(--fs-md); margin-bottom: var(--sp-4); color: var(--text-mid); text-transform: uppercase; letter-spacing: 0.06em; }
.trk { display: grid; grid-template-columns: 24px 1fr 120px 44px; gap: var(--sp-3); align-items: center; padding: var(--sp-2) 0; }
.trk + .trk { border-top: 1px solid var(--ink-700); }
.trk .idx { color: var(--text-lo); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.trk .nm { font-weight: var(--fw-medium); }
.trk .pc { text-align: right; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.tl { display: flex; flex-direction: column; }
.tl .row { display: grid; grid-template-columns: 70px 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; align-items: baseline; }
.tl .row .d { color: var(--rose); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.tl .row .ev { color: var(--text-mid); font-size: var(--fs-sm); }
.drop2 .foot { text-align: center; color: var(--text-lo); font-size: var(--fs-sm); margin-top: var(--sp-8); }
.drop2 .foot b { color: var(--text-mid); }

@media (max-width: 680px) {
  .drop-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .cover { width: 180px; height: 180px; }
  .drop-cta { justify-content: center; }
  .trk { grid-template-columns: 20px 1fr 60px; }
  .trk .bar { display: none; }

  /* forecast strip stacks; time-machine rows tighten */
  .fc-strip { flex-direction: column; }
  .fc-odds { font-size: 3rem; }
  .tm-row { grid-template-columns: 110px 1fr 40px; }
  .count2 { flex-wrap: wrap; }
  .count2 .unit { min-width: 84px; }
  .page-head h1 { font-size: var(--fs-lg); }
}
