/*
  MidasClip Studio
  IDEA     A gilded editing suite: the calm of a professional editing app, finished like an engraved certificate.
  COLOUR   Near-black royal green canvas, champagne-gold foil used only where it means something (the action,
           the finished clip, the step you're on), ivory text, one jade "live" light for work in progress.
  TYPE     Gloock for titles and big numbers (engraved, high contrast); Figtree for everything you read or press.
  LAYOUT   A slim side rail like an editor's bin; the stage on the right. Phones: a top bar, one column.
  BOLD     The clip covers: vertical, gold-rimmed, revealed one by one. Everything else stays quiet.
*/

@font-face { font-family: "Gloock"; src: url("fonts/gloock.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --canvas: #08110e;
  --rail: #0a1511;
  --surface: #0f1d18;
  --surface-2: #13241e;
  --field: #08130f;
  --hair: rgba(205, 176, 122, 0.17);
  --hair-soft: rgba(239, 233, 220, 0.08);
  --ink: #efe9dc;
  --soft: #cdc6b6;
  --muted: #8e9b94;
  --gold: #cdb07a;
  --gold-l: #efe0b8;
  --gold-d: #7f663a;
  --on-gold: #13201b;
  --jade: #7cc8a6;
  --rose: #f0a493;
  --foil: linear-gradient(100deg, #8a7046 0%, #c4a670 18%, #f1e3bd 33%, #caad76 47%, #85693c 64%, #d1b682 82%, #9a7d4c 100%);
  --rim: linear-gradient(150deg, rgba(241, 227, 189, 0.9), rgba(138, 112, 70, 0.55) 35%, rgba(205, 176, 122, 0.25) 60%, rgba(241, 227, 189, 0.7));
  --serif: "Gloock", Georgia, "Times New Roman", serif;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --rail-w: 248px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.55 var(--sans);
  background:
    radial-gradient(900px 520px at 78% -160px, rgba(42, 92, 74, 0.38), transparent 70%),
    radial-gradient(700px 500px at -10% 110%, rgba(205, 176, 122, 0.05), transparent 70%),
    var(--canvas);
  background-attachment: fixed;
}
/* fine film grain over everything: the "printed" finish */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img, svg, video { display: block; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-synthesis: none; letter-spacing: -0.01em; line-height: 1.05; margin: 0; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.boot { color: var(--muted); text-align: center; padding: 30vh 20px 0; margin: 0; }

/* ---------- shared bits ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; text-decoration: none; letter-spacing: -0.01em; color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: background-position 0.6s ease, background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-gold {
  color: var(--on-gold); background: var(--foil); background-size: 220% 100%; background-position: 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 12px 28px -16px rgba(205, 176, 122, 0.75);
}
.btn-gold:hover { background-position: 100% 0; }
.btn-gold:disabled { opacity: 0.38; cursor: not-allowed; box-shadow: none; }
.btn-line { color: var(--gold-l); background: rgba(205, 176, 122, 0.04); border: 1px solid rgba(205, 176, 122, 0.45); }
.btn-line:hover { background: rgba(205, 176, 122, 0.1); border-color: var(--gold); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-wide { width: 100%; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 600; gap: 7px; }
.btn-small svg { width: 16px; height: 16px; }
.btn[hidden] { display: none; }

.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer; flex: none;
  background: transparent; border: 1px solid var(--hair); color: var(--soft);
}
.icon-btn:hover { color: var(--gold-l); border-color: rgba(205, 176, 122, 0.5); background: rgba(205, 176, 122, 0.06); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.text-btn { background: none; border: 0; padding: 4px 0; color: var(--gold); font: 600 15px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(205, 176, 122, 0.45); }
.text-btn:hover { color: var(--gold-l); }

.msg { margin: 12px 0 0; font-size: 15px; }
.msg:empty { display: none; }
.msg.ok { color: var(--gold-l); }
.msg.err { color: var(--rose); }
.fine { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.fine a { color: var(--soft); }

.state {
  margin: 0; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--soft); border: 1px solid var(--hair-soft); background: rgba(8, 19, 15, 0.6);
}
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.state.done { color: var(--gold-l); border-color: rgba(205, 176, 122, 0.45); }
.state.live { color: var(--jade); border-color: rgba(124, 200, 166, 0.35); }
.state.failed { color: var(--rose); border-color: rgba(240, 164, 147, 0.35); }
@media (prefers-reduced-motion: no-preference) { .state.live::before { animation: beat 1.6s ease-in-out infinite; } }
@keyframes beat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }

/* ---------- sign in ---------- */

.gate { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 100vh; }
.gate-art {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: 36px clamp(28px, 4vw, 56px) 48px; border-right: 1px solid var(--hair);
  background:
    repeating-radial-gradient(circle at 72% 44%, transparent 0 27px, rgba(205, 176, 122, 0.05) 27px 28px),
    radial-gradient(700px 520px at 70% 40%, rgba(46, 104, 82, 0.55), transparent 70%),
    linear-gradient(180deg, #0c1a15, #07100d);
}
.gate-art .brand { position: relative; z-index: 1; }
.reel { position: relative; height: min(56vh, 520px); margin: 24px 0; }
.reel-card { position: absolute; top: 50%; left: 52%; margin: 0; width: clamp(140px, 15vw, 210px); aspect-ratio: 9 / 16; }
.reel-face {
  position: absolute; inset: 0; overflow: hidden; border-radius: 22px; border: 1px solid transparent;
  background: linear-gradient(170deg, #1f4034, #08140f 82%) padding-box, var(--rim) border-box;
  box-shadow: 0 40px 70px -30px #000;
}
.reel-person { position: absolute; left: -22%; bottom: -10%; width: 144%; height: auto; }
.reel-len { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); }
.reel-face p { position: absolute; left: 6%; right: 6%; bottom: 13%; margin: 0; text-align: center; font: 900 clamp(15px, 1.5vw, 20px)/1.12 var(--sans); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.6); }
.reel-face b { color: var(--gold-l); font-weight: 900; }
.c1 { transform: translate(-138%, -46%) rotate(-9deg); }
.c2 { transform: translate(-50%, -54%); z-index: 2; }
.c3 { transform: translate(38%, -46%) rotate(9deg); }
.gate-line {
  position: relative; z-index: 1; margin: 0; font: 400 clamp(34px, 3.6vw, 52px)/1.02 var(--serif); letter-spacing: -0.01em;
  background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .reel-card { animation: deal 1s var(--ease) both; }
  .c1 { animation-delay: 0.15s; } .c2 { animation-delay: 0.3s; } .c3 { animation-delay: 0.45s; }
  .gate-line { animation: sheen 2.2s 0.4s ease-out both; }
}
@keyframes deal { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

.gate-panel { display: grid; place-items: center; padding: 48px clamp(24px, 5vw, 64px); }
.gate-box { width: min(100%, 420px); }
.gate-box h1 { font-size: clamp(36px, 3.4vw, 46px); }
.lead { color: var(--soft); font-size: 17px; margin: 14px 0 0; }
#google { margin-top: 32px; min-height: 54px; }
#google .g { width: 24px; height: 24px; background: #fff; border-radius: 50%; padding: 3px; }
.or { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--hair-soft); }
.email-form { margin-top: 18px; }
.email-form label { display: block; font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.email-row { display: flex; gap: 10px; }
.email-row input { flex: 1; }
#not-invited .btn { margin-top: 26px; }

input[type="email"], input[type="text"], select {
  min-height: 48px; padding: 0 16px; border-radius: 12px; width: 100%;
  border: 1px solid #284438; background: var(--field); color: var(--ink); font: 16px var(--sans);
}
input::placeholder { color: #6f8077; }
input:hover, select:hover { border-color: #35574a; }
select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }

@media (max-width: 860px) {
  .gate { grid-template-columns: minmax(0, 1fr); }
  .gate-art { border-right: 0; border-bottom: 1px solid var(--hair); padding: 22px 20px 26px; }
  .reel { height: 250px; margin: 10px 0 6px; }
  .reel-card { width: 118px; }
  .reel-face { border-radius: 16px; }
  .reel-face p { font-size: 13px; }
  .gate-line { font-size: 30px; }
  .gate-panel { padding: 32px 20px 48px; place-items: start center; }
  .email-row { flex-direction: column; }
}

/* ---------- studio frame ---------- */

.studio { min-height: 100vh; }
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 10; display: flex; flex-direction: column;
  padding: 26px 16px 18px; background: linear-gradient(180deg, rgba(12, 25, 20, 0.96), rgba(8, 17, 14, 0.96)); border-right: 1px solid var(--hair);
}
.rail .brand { padding: 0 10px; }
.rail-nav { display: grid; gap: 4px; margin-top: 36px; }
.rail-nav a, .rail-link {
  position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 12px;
  color: var(--soft); text-decoration: none; font-weight: 600; font-size: 15px;
}
.rail-nav svg, .rail-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rail-nav a:hover, .rail-link:hover { color: var(--ink); background: rgba(239, 233, 220, 0.04); }
.rail-nav a.on { color: var(--gold-l); background: linear-gradient(90deg, rgba(205, 176, 122, 0.13), rgba(205, 176, 122, 0.02)); }
.rail-nav a.on::before { content: ""; position: absolute; left: -16px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--foil); }
.pill-count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; color: var(--soft); background: rgba(239, 233, 220, 0.07); }
.rail-foot { margin-top: auto; display: grid; gap: 6px; }
.beta-note { margin: 0 12px 10px; padding-top: 14px; border-top: 1px solid var(--hair-soft); color: var(--muted); font-size: 13px; line-height: 1.45; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0 10px; margin-top: 8px; border-top: 1px solid var(--hair-soft); }
.initial {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 400 18px/1 var(--serif); color: var(--on-gold);
  background: radial-gradient(circle at 34% 28%, #f6ead0, #cdb07a 50%, #7f663a); box-shadow: inset 0 0 0 1px rgba(60, 44, 18, 0.35);
}
.me-text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.me-text strong { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-text strong:empty { display: none; }

.stage { margin-left: var(--rail-w); padding: 46px clamp(24px, 4vw, 60px) 96px; max-width: calc(var(--rail-w) + 1240px); }
.view-head { margin-bottom: 30px; }
.view-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.view-head h1 { font-size: clamp(38px, 4vw, 52px); }
.view-head p { color: var(--muted); margin: 12px 0 0; max-width: 62ch; font-size: 16px; }
@media (prefers-reduced-motion: no-preference) { .view:not([hidden]) { animation: fade 0.35s ease both; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- new video ---------- */

.new-grid { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 26px; align-items: start; }
.drop {
  position: relative; min-height: 468px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 48px 28px; border-radius: 22px; cursor: pointer; border: 1px dashed rgba(205, 176, 122, 0.38);
  background: radial-gradient(520px 260px at 50% 0%, rgba(205, 176, 122, 0.08), transparent 70%), rgba(10, 21, 17, 0.7);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.drop::before, .drop::after {
  content: ""; position: absolute; left: 28px; right: 28px; height: 6px; border-radius: 2px; opacity: 0.6;
  background: repeating-linear-gradient(90deg, rgba(205, 176, 122, 0.28) 0 12px, transparent 12px 24px);
}
.drop::before { top: 18px; }
.drop::after { bottom: 18px; }
.drop:hover, .drop.over { border-color: var(--gold); border-style: solid; box-shadow: 0 0 0 4px rgba(205, 176, 122, 0.08), 0 30px 60px -40px rgba(205, 176, 122, 0.5); }
.drop:has(input:focus-visible) { outline: 2px solid var(--gold-l); outline-offset: 3px; }
.drop-icon {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; color: var(--gold-l);
  border: 1px solid transparent; background: linear-gradient(var(--surface-2), var(--surface-2)) padding-box, var(--rim) border-box;
}
.drop-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-big { font: 400 clamp(28px, 3vw, 38px)/1.1 var(--serif); margin: 0; }
.drop-small { color: var(--soft); margin: 10px 0 0; font-size: 17px; }
.drop-specs { color: var(--muted); margin: 20px 0 0; font-size: 14px; }
.link-like { color: var(--gold-l); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.preview {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px;
  border-radius: 22px; border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(19, 36, 30, 0.8), rgba(10, 21, 17, 0.8));
}
.phone {
  position: relative; width: 244px; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #000;
  border: 1px solid transparent; background: linear-gradient(#000, #000) padding-box, var(--rim) border-box;
  box-shadow: 0 0 0 7px #050a08, 0 0 0 8px rgba(205, 176, 122, 0.22), 0 40px 70px -30px #000;
}
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.pv-tag { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); color: var(--gold-l); }
.pv-cap {
  position: absolute; left: 6%; right: 6%; top: 66%; margin: 0; text-align: center; color: #fff;
  font: 900 21px/1.12 var(--sans); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.9), 0 0 2px #000, 0 0 12px rgba(0, 0, 0, 0.6);
}
.pv-cap b { font-weight: 900; }
.pv-cap i { font-style: normal; }
.phone[data-style="royal"] .pv-cap b { color: var(--gold-l); display: inline-block; transform: scale(1.08); }
.phone[data-style="bold"] .pv-cap { text-transform: uppercase; font-size: 18px; letter-spacing: 0.02em; }
.phone[data-style="bold"] .pv-cap b { background: var(--gold); color: var(--on-gold); padding: 1px 6px 2px; border-radius: 5px; text-shadow: none; }
.phone[data-style="clean"] .pv-cap { font-weight: 800; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.phone[data-style="clean"] .pv-cap i { opacity: 0.45; }
.pv-name { font-weight: 700; font-size: 18px; margin: 0; overflow-wrap: anywhere; }
.pv-meta { color: var(--muted); margin: 4px 0 0; }
.pv-note { color: var(--soft); margin: 18px 0 14px; max-width: 34ch; }

.settings {
  position: sticky; top: 24px; padding: 24px; border-radius: 22px; border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(19, 36, 30, 0.9), rgba(12, 24, 19, 0.9));
}
fieldset { border: 0; margin: 0; padding: 0; }
legend, .field > label { display: block; padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--soft); }
.optional { color: var(--muted); font-weight: 400; }
.styles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.styles legend { grid-column: 1 / -1; }
.style-card { position: relative; display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 7px 12px 7px 7px; border-radius: 14px; cursor: pointer; border: 1px solid var(--hair-soft); background: rgba(8, 19, 15, 0.7); }
.style-card input { position: absolute; opacity: 0; pointer-events: none; }
.style-card:hover { border-color: rgba(205, 176, 122, 0.35); }
.style-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 10px 24px -16px rgba(205, 176, 122, 0.6); }
.style-card:has(input:focus-visible) { outline: 2px solid var(--gold-l); outline-offset: 3px; }
.sample {
  grid-row: 1 / span 2; display: block; height: 50px; line-height: 50px; border-radius: 9px; overflow: hidden; text-align: center; white-space: nowrap;
  background: radial-gradient(80px 50px at 50% 110%, rgba(205, 176, 122, 0.12), transparent), linear-gradient(170deg, #1d3a31, #08140f 85%);
  font: 900 13px/50px var(--sans); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}
.sample b { font-weight: 900; }
.sample.royal b { color: var(--gold-l); }
.sample.bold { font-size: 11px; letter-spacing: 0.02em; }
.sample.bold b { background: var(--gold); color: var(--on-gold); padding: 1px 4px; border-radius: 3px; text-shadow: none; }
.sample.clean { font-weight: 800; text-shadow: none; }
.sample.clean i { font-style: normal; opacity: 0.45; }
.style-name { font-weight: 700; font-size: 15px; align-self: end; }
.style-note { color: var(--muted); font-size: 13px; line-height: 1.3; align-self: start; }
.style-card:has(input:checked) .style-name { color: var(--gold-l); }

.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.seg legend { grid-column: 1 / -1; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; border-radius: 12px; border: 1px solid var(--hair-soft); background: rgba(8, 19, 15, 0.7); font-weight: 700; font-size: 14px; line-height: 1.2; }
.seg small { color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 3px; }
.seg label:hover span { border-color: rgba(205, 176, 122, 0.35); }
.seg input:checked + span { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; color: var(--gold-l); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 3px; }
.field { margin-top: 22px; }
#start, #d-save { margin-top: 26px; min-height: 54px; font-size: 17px; }

.uploading { max-width: 720px; padding: 30px; border-radius: 22px; border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(19, 36, 30, 0.9), rgba(12, 24, 19, 0.9)); }
.up-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.up-name { margin: 0; font-weight: 700; font-size: 18px; overflow-wrap: anywhere; }
.meter { position: relative; height: 10px; margin-top: 20px; border-radius: 999px; background: #07120e; border: 1px solid var(--hair-soft); overflow: hidden; }
.meter span { position: relative; display: block; height: 100%; width: 0; border-radius: inherit; background: var(--foil); background-size: 220% 100%; transition: width 0.4s ease; overflow: hidden; }
.up-line { margin: 14px 0 0; color: var(--soft); }
.up-line .num { font: 400 30px/1 var(--serif); color: var(--ink); margin-right: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .meter span::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 248, 228, 0.6), transparent); transform: translateX(-100%); animation: sweep 1.6s ease-in-out infinite; }
}
@keyframes sweep { to { transform: translateX(100%); } }

/* ---------- library ---------- */

.projects { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair-soft); }
.project { border-bottom: 1px solid var(--hair-soft); }
.project-link {
  display: grid; grid-template-columns: 140px minmax(0, 1fr) auto 20px; align-items: center; gap: 26px;
  padding: 18px 14px; margin: 0 -14px; border-radius: 16px; text-decoration: none; color: inherit; transition: background-color 0.2s ease;
}
.project-link:hover { background: rgba(239, 233, 220, 0.03); }
.project-link:hover .chev { color: var(--gold); transform: translateX(3px); }
.chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease, stroke 0.2s ease; }
.project-link:hover .chev { stroke: var(--gold); }
.project-what { display: flex; flex-direction: column; gap: 4px; }
.project-name { font-weight: 700; font-size: 17px; overflow-wrap: anywhere; }
.project-meta { color: var(--muted); font-size: 14px; }
.project-msg { color: var(--soft); font-size: 15px; }
.project-msg:empty { display: none; }

/* a fan of the clip covers, or a frame showing the video's state */
.fan { position: relative; height: 112px; }
.fan i {
  position: absolute; top: 50%; left: 50%; width: 60px; aspect-ratio: 9 / 16; border-radius: 9px; overflow: hidden;
  border: 1px solid transparent; background: linear-gradient(170deg, #1d3a31, #08140f) padding-box, var(--rim) border-box; box-shadow: 0 14px 22px -12px #000;
  transition: transform 0.35s var(--ease);
}
.fan i img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.fan i:nth-child(1) { transform: translate(-50%, -50%); z-index: 3; }
.fan i:nth-child(2) { transform: translate(-112%, -46%) rotate(-10deg); z-index: 2; }
.fan i:nth-child(3) { transform: translate(12%, -46%) rotate(10deg); z-index: 1; }
.project-link:hover .fan i:nth-child(2) { transform: translate(-128%, -48%) rotate(-14deg); }
.project-link:hover .fan i:nth-child(3) { transform: translate(28%, -48%) rotate(14deg); }
.fan.solo i { display: grid; place-items: center; }
.fan.solo i::after { content: ""; position: absolute; inset: 0; }
.fan.live i::after { background: linear-gradient(180deg, transparent 0 40%, rgba(124, 200, 166, 0.25) 50%, transparent 60%); background-size: 100% 260%; }
@media (prefers-reduced-motion: no-preference) { .fan.live i::after { animation: scan 2.2s linear infinite; } }
@keyframes scan { from { background-position: 0 100%; } to { background-position: 0 0; } }
.fan.solo svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fan.failed i { opacity: 0.55; }

.empty { margin-top: 10px; padding: 48px 32px; border-radius: 22px; border: 1px dashed rgba(205, 176, 122, 0.3); text-align: center; }
.empty-big { font: 400 30px/1.1 var(--serif); margin: 0; }
.empty p:not(.empty-big) { color: var(--muted); margin: 10px 0 22px; }

/* ---------- one video ---------- */

.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back:hover { color: var(--gold-l); }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.p-head h1 { font-size: clamp(32px, 3.6vw, 46px); overflow-wrap: anywhere; }
.p-meta { color: var(--muted); margin: 10px 0 0; }

.making {
  position: relative; margin-top: 30px; padding: 30px 32px 26px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(19, 36, 30, 0.85), rgba(10, 21, 17, 0.85));
}
.making::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--foil); opacity: 0.7; }
.making-top { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.making-pct { margin: 0; font: 400 clamp(52px, 6vw, 72px)/0.9 var(--serif); background: var(--foil); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.making-msg { margin: 0; color: var(--soft); font-size: 18px; }
.timeline { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 12px; padding-right: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }
.timeline li::before { content: ""; position: absolute; top: 9px; left: 20px; right: 0; height: 2px; border-radius: 2px; background: rgba(239, 233, 220, 0.08); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: linear-gradient(90deg, var(--gold), rgba(205, 176, 122, 0.55)); }
.timeline .dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(239, 233, 220, 0.16); background: var(--surface); }
.timeline li.done { color: var(--soft); }
.timeline li.done .dot { border: 0; background: var(--foil); background-size: 200% 100%; }
.timeline li.done .dot::after { content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px; border: solid var(--on-gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.timeline li.now { color: var(--gold-l); }
.timeline li.now .dot { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(205, 176, 122, 0.14); }
.timeline li.now .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--gold-l); }
@media (prefers-reduced-motion: no-preference) { .timeline li.now .dot { animation: ring 1.8s ease-in-out infinite; } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 4px rgba(205, 176, 122, 0.18); } 50% { box-shadow: 0 0 0 9px rgba(205, 176, 122, 0.04); } }
.making .fine { margin-top: 24px; }

.p-problem { margin-top: 26px; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(240, 164, 147, 0.3); background: rgba(240, 164, 147, 0.05); }
.p-problem p { margin: 0; color: var(--soft); font-size: 17px; }
.p-problem-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.p-problem-actions:empty { display: none; }

.p-clips { margin-top: 36px; }
.p-clips-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.p-clips-head h2 { font-size: 30px; }
.p-clips-head p { color: var(--muted); margin: 0; }
.gallery { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 34px 24px; }
.tile { all: unset; display: flex; flex-direction: column; width: 100%; cursor: pointer; }
.tile-frame {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  border: 1px solid transparent; background: linear-gradient(170deg, #1d3a31, #08140f 85%) padding-box, var(--rim) border-box;
  box-shadow: 0 26px 44px -26px #000; transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.tile-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 19px; }
.tile .len:empty { display: none; }
.tile .len, .tile-score { position: absolute; z-index: 1; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; }
.tile .len { left: 10px; bottom: 10px; background: rgba(0, 0, 0, 0.62); color: #fff; }
.tile-score { right: 10px; top: 10px; color: var(--on-gold); background: var(--foil); background-size: 200% 100%; }
.tile-score:empty { display: none; }
.tile-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; opacity: 0; transition: opacity 0.2s ease, transform 0.3s var(--ease);
  background: rgba(8, 20, 16, 0.55); border: 1px solid rgba(239, 224, 184, 0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transform: scale(0.9);
}
.tile-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 12px 0 12px 19px; border-color: transparent transparent transparent var(--gold-l); }
.tile:hover .tile-frame, .tile:focus-visible .tile-frame { transform: translateY(-5px); box-shadow: 0 36px 56px -28px #000, 0 0 0 1px rgba(241, 227, 189, 0.5); }
.tile:hover .tile-play, .tile:focus-visible .tile-play { opacity: 1; transform: none; }
.tile:focus-visible { outline: none; }
.tile:focus-visible .tile-frame { outline: 2px solid var(--gold-l); outline-offset: 4px; }
.tile-title { margin-top: 14px; font-size: 16px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-why { margin-top: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-why:empty { display: none; }
@media (hover: none) { .tile-play { opacity: 1; transform: none; } }

/* a clip still being made */
.tile-li.pending .tile { cursor: default; }
.tile-li.pending .tile-frame { background: linear-gradient(170deg, #14291f, #08140f 85%) padding-box, linear-gradient(150deg, rgba(205, 176, 122, 0.3), rgba(205, 176, 122, 0.08)) border-box; }
.tile-li.pending .tile-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(239, 224, 184, 0.08) 50%, transparent 70%); background-size: 250% 100%; }
@media (prefers-reduced-motion: no-preference) { .tile-li.pending .tile-frame::after { animation: shimmer 1.8s linear infinite; } }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tile-li.pending .tile-title { color: var(--muted); font-weight: 600; }
.tile-li.pending .tile-frame::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 2px solid rgba(205, 176, 122, 0.16); border-top-color: var(--gold);
}
@media (prefers-reduced-motion: no-preference) { .tile-li.pending .tile-frame::before { animation: spin 1.1s linear infinite; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* the one reveal: clips rise in, one after another */
@media (prefers-reduced-motion: no-preference) {
  .tile-li.reveal { animation: rise 0.8s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ---------- clip viewer ---------- */

.viewer {
  --vh: min(92vh, 860px);
  width: min(1120px, 95vw); max-width: none; height: var(--vh); max-height: none; padding: 0; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #11221c, #0a1511); border: 1px solid rgba(205, 176, 122, 0.4); border-radius: 26px; box-shadow: 0 50px 110px -30px #000;
}
.viewer::backdrop { background: rgba(3, 8, 6, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (prefers-reduced-motion: no-preference) { .viewer[open] { animation: pop 0.35s var(--ease) both; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.v-body { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 100%; }
.v-stage { position: relative; display: grid; place-items: center; padding: 24px 74px; background: radial-gradient(400px 500px at 50% 40%, rgba(42, 92, 74, 0.25), transparent 70%), #040907; border-right: 1px solid var(--hair-soft); }
.v-frame { height: min(calc(var(--vh) - 48px), 780px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid transparent; background: linear-gradient(#000, #000) padding-box, var(--rim) border-box; }
.v-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; border-radius: 17px; }
.v-nav { position: absolute; top: 50%; margin-top: -23px; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; background: rgba(239, 233, 220, 0.05); border: 1px solid rgba(205, 176, 122, 0.4); color: var(--gold-l); }
.v-nav:hover { background: rgba(205, 176, 122, 0.14); }
.v-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-prev { left: 15px; }
.v-next { right: 15px; }
.v-info { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 34px 34px 28px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(205, 176, 122, 0.3) transparent; }
.v-close { position: absolute; top: 18px; right: 18px; }
.v-meta { margin: 0; color: var(--muted); font-size: 14px; padding-right: 50px; }
.v-info h2 { font-size: clamp(28px, 2.8vw, 38px); margin-top: 10px; padding-right: 16px; }
.v-desc { color: var(--soft); margin: 14px 0 0; }
.v-desc:empty { display: none; }
.v-tags { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.v-tags li { font-size: 13px; font-weight: 600; color: var(--gold-l); padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(205, 176, 122, 0.3); background: rgba(205, 176, 122, 0.05); }
#v-dl-video { margin-top: 26px; min-height: 52px; }

.thumb-block { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 22px; padding: 16px; border-radius: 18px; border: 1px solid var(--hair); background: rgba(8, 19, 15, 0.55); }
.thumb-img { width: 96px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; border: 1px solid transparent; background: linear-gradient(#000, #000) padding-box, var(--rim) border-box; }
.thumb-title { margin: 0; font-weight: 700; font-size: 16px; }
.thumb-note { margin: 4px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.thumb-text .btn { align-self: flex-start; }

.files { list-style: none; padding: 0; margin: 12px 0 0; }
.files li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--hair-soft); }
.file-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font: 700 14px/1 var(--sans); color: var(--gold); border: 1px solid var(--hair); background: rgba(8, 19, 15, 0.6); }
.file-what { display: flex; flex-direction: column; }
.file-what strong { font-weight: 700; }
.file-what small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.note { margin-top: 24px; padding: 20px 20px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(205, 176, 122, 0.07), rgba(205, 176, 122, 0.02)); border: 1px solid rgba(205, 176, 122, 0.22); }
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note h3 { font-size: 22px; }
.score { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--gold-l); }
.score .bar { width: 64px; height: 5px; border-radius: 999px; background: rgba(239, 233, 220, 0.1); overflow: hidden; }
.score .bar span { display: block; height: 100%; background: var(--foil); }
.hook { position: relative; margin: 16px 0 0; padding-left: 34px; }
.hook svg { position: absolute; left: 0; top: 2px; width: 22px; height: 22px; fill: var(--gold); opacity: 0.85; }
.hook p { margin: 0; font: 400 19px/1.35 var(--serif); color: var(--ink); }
.note-text { margin: 12px 0 0; color: var(--soft); font-size: 15px; }
.note-text:empty { display: none; }
.note-text strong { display: block; font-size: 12px; font-weight: 700; color: var(--gold); letter-spacing: 0.02em; margin-bottom: 2px; }
.v-keep { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.v-keep:empty { display: none; }

/* ---------- smaller screens ---------- */

@media (max-width: 1180px) {
  .new-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .preview { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .pv-note { margin-inline: auto; }
}
@media (max-width: 960px) {
  .rail { position: sticky; top: 0; inset: 0 0 auto 0; width: auto; height: 64px; flex-direction: row; align-items: center; gap: 8px; padding: 0 14px; border-right: 0; border-bottom: 1px solid var(--hair); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); background: rgba(9, 19, 15, 0.9); }
  .rail .brand { padding: 0; font-size: 20px; margin-right: auto; }
  .rail .brand svg { width: 26px; height: 26px; }
  .rail-nav { display: flex; margin: 0; gap: 2px; }
  .rail-nav a { height: 40px; padding: 0 12px; font-size: 14px; }
  .rail-nav a.on::before { left: 12px; right: 12px; top: auto; bottom: -12px; width: auto; height: 2px; border-radius: 2px; }
  .pill-count { display: none; }
  .rail-foot { margin: 0; display: flex; align-items: center; gap: 4px; }
  .beta-note, .rail-link span, .me-text { display: none; }
  .rail-link { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .me { margin: 0; padding: 0; border: 0; gap: 6px; }
  .initial { width: 32px; height: 32px; font-size: 16px; }
  .stage { margin-left: 0; padding: 28px 20px 80px; }
  .new-grid { grid-template-columns: minmax(0, 1fr); }
  .settings { position: static; }
  .drop { min-height: 320px; }
  .project-link { grid-template-columns: 96px minmax(0, 1fr) 20px; gap: 16px; }
  .project-link .state { grid-column: 2; grid-row: 2; justify-self: start; margin-top: -4px; }
  .project-link .chev { grid-column: 3; grid-row: 1 / span 2; }
  .project-link .fan { grid-row: 1 / span 2; }
  .fan { height: 92px; }
  .fan i { width: 46px; border-radius: 7px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .timeline li { flex-direction: row; align-items: center; padding: 0 0 16px; }
  .timeline li::before { top: 22px; bottom: -2px; left: 9px; right: auto; width: 2px; height: auto; }
  .timeline li.done::before { background: linear-gradient(180deg, var(--gold), rgba(205, 176, 122, 0.55)); }
}
@media (max-width: 760px) {
  .viewer { --vh: 100dvh; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .v-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; height: 100%; overflow-y: auto; }
  .v-stage { padding: 14px 58px; border-right: 0; border-bottom: 1px solid var(--hair-soft); }
  .v-frame { height: min(60dvh, 560px); }
  .v-nav { width: 40px; height: 40px; margin-top: -20px; }
  .v-prev { left: 9px; }
  .v-next { right: 9px; }
  .v-info { padding: 22px 20px 32px; overflow: visible; }
  .v-close { position: fixed; top: 14px; right: 14px; z-index: 2; background: rgba(8, 20, 16, 0.85); }
}
@media (max-width: 560px) {
  .rail-nav a span { display: none; }
  .rail-nav a { width: 42px; padding: 0; justify-content: center; }
  .rail-nav a.on::before { left: 8px; right: 8px; }
  .view-head h1 { font-size: 36px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .tile-frame { border-radius: 16px; }
  .tile-frame img { border-radius: 15px; }
  .tile-why { display: none; }
  .phone { width: 210px; }
  .preview { padding: 22px 16px; }
  .p-head { flex-direction: column; gap: 12px; }
  .making { padding: 24px 20px; }
  .thumb-block { grid-template-columns: 78px minmax(0, 1fr); }
  .thumb-img { width: 78px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .tile-frame, .tile-play, .fan i, .chev, .drop, .meter span { transition: none; }
}

/* =====================================================================
   Studio additions: home, plan & usage, settings, help, coming soon, post kit
   ===================================================================== */

/* rail: more places to go; the rail scrolls on short screens */
.rail { overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-nav.main-nav { margin-top: 32px; }
.rail-soon { margin-top: 22px; }
.rail-group { margin: 0 12px 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.soon-nav { margin-top: 0; gap: 1px; }
.soon-nav a { height: 38px; font-size: 14px; font-weight: 500; color: var(--muted); }
.soon-nav svg { width: 17px; height: 17px; }
.rail-foot { padding-top: 18px; }
.foot-nav { margin-top: 0; gap: 1px; }
.foot-nav a { height: 40px; font-size: 14.5px; }
.beta-note { margin-top: 8px; }

.soon { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--gold); padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(205, 176, 122, 0.35); }

/* ---------- home ---------- */
.home-top { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; }
.continue { border-radius: 22px; border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(19, 36, 30, 0.85), rgba(10, 21, 17, 0.85)); min-height: 190px; display: flex; }
.c-link { flex: 1; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 22px 26px; text-decoration: none; border-radius: inherit; }
.c-link:hover { background: rgba(205, 176, 122, 0.04); }
.c-link .fan { height: 140px; }
.c-what { display: flex; flex-direction: column; gap: 4px; }
.c-kicker { font-size: 13px; font-weight: 700; color: var(--jade); }
.c-name { font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--serif); overflow-wrap: anywhere; }
.c-text { color: var(--muted); font-size: 15px; }
.c-bar { display: block; height: 5px; border-radius: 5px; background: rgba(239, 233, 220, 0.08); margin-top: 10px; overflow: hidden; }
.c-bar span { display: block; height: 100%; border-radius: inherit; background: var(--foil); transition: width 0.6s ease; }
.c-pct { font: 400 40px/1 var(--serif); color: var(--gold-l); }
.c-open { font-weight: 700; color: var(--gold-l); padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(205, 176, 122, 0.45); }
.continue.first { flex-direction: column; align-items: flex-start; justify-content: center; padding: 26px 28px; }
.continue.first h2 { font-size: clamp(28px, 2.8vw, 36px); margin: 6px 0 8px; }
.continue.first .c-text { max-width: 52ch; margin: 0 0 18px; }
.quick {
  position: relative; border-radius: 22px; cursor: pointer; border: 1px dashed rgba(205, 176, 122, 0.38); padding: 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(360px 180px at 50% 0%, rgba(205, 176, 122, 0.08), transparent 70%), rgba(10, 21, 17, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.quick:hover, .quick.over { border-color: var(--gold); border-style: solid; box-shadow: 0 0 0 4px rgba(205, 176, 122, 0.08); }
.quick:has(input:focus-visible) { outline: 2px solid var(--gold-l); outline-offset: 3px; }
.quick .drop-icon { width: 56px; height: 56px; margin-bottom: 14px; }
.quick .drop-icon svg { width: 22px; height: 22px; }
.quick-big { font: 400 26px/1.1 var(--serif); margin: 0; }
.quick-small { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0 0; border-radius: 20px; border: 1px solid var(--hair-soft); background: rgba(10, 21, 17, 0.6); }
.stats > div { padding: 20px 22px; border-left: 1px solid var(--hair-soft); }
.stats > div:first-child { border-left: 0; }
.stats dt { font-size: 14px; font-weight: 700; color: var(--soft); }
.stats dd { margin: 6px 0 2px; font: 400 44px/1 var(--serif); color: var(--ink); }
.stats small { color: var(--muted); font-size: 13px; }

.home-block { margin-top: 38px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.block-head h2 { font-size: 28px; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.recent-tile { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.recent-frame { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; border: 1px solid transparent; background: linear-gradient(#0a1411, #0a1411) padding-box, var(--rim) border-box; }
.recent-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.recent-tile:hover .recent-frame img { transform: scale(1.03); }
.recent-frame .len { position: absolute; left: 8px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.62); color: #fff; }
.recent-title { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.home-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 36px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tips li { padding: 14px 0; border-top: 1px solid var(--hair-soft); color: var(--muted); font-size: 15px; }
.tips li:last-child { border-bottom: 1px solid var(--hair-soft); }
.tips strong { color: var(--ink); font-weight: 700; display: block; margin-bottom: 2px; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.soon-list a { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--hair-soft); text-decoration: none; background: rgba(10, 21, 17, 0.6); }
.soon-list a:hover { border-color: rgba(205, 176, 122, 0.35); }
.soon-list svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.soon-list span { display: flex; flex-direction: column; }
.soon-list strong { font-size: 15px; }
.soon-list small { color: var(--muted); font-size: 13px; }

/* ---------- plan & usage ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.plan-card { position: relative; padding: 28px; border-radius: 22px; background: linear-gradient(160deg, #15271f, #0d1915); }
.plan-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: var(--rim); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-name { margin: 0; font-weight: 700; color: var(--gold); }
.plan-price { margin: 6px 0 18px; font: 400 52px/1 var(--serif); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--soft); font-size: 15px; }
.plan-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--gold-l); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.usage { padding: 26px; border-radius: 22px; border: 1px solid var(--hair-soft); background: rgba(10, 21, 17, 0.6); }
.use-row + .use-row { margin-top: 20px; }
.use-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--soft); }
.use-top .num { color: var(--ink); font-weight: 700; }
.use-bar { display: block; height: 8px; border-radius: 8px; margin-top: 8px; background: rgba(239, 233, 220, 0.08); overflow: hidden; }
.use-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--foil); transition: width 0.5s ease; }
.use-bar span.full { background: var(--rose); }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--hair-soft); }
.totals dt { font-size: 13px; color: var(--muted); }
.totals dd { margin: 4px 0 0; font: 400 32px/1 var(--serif); }
.paid-note { margin-top: 26px; padding: 24px 26px; border-radius: 22px; border: 1px dashed rgba(205, 176, 122, 0.3); }
.paid-note h2 { font-size: 26px; margin-top: 12px; }
.paid-note p { color: var(--muted); max-width: 66ch; margin: 8px 0 0; }

/* ---------- settings ---------- */
.set-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 22px; align-items: start; }
.set-form { position: static; }
.account { padding: 24px; border-radius: 22px; border: 1px solid var(--hair-soft); background: rgba(10, 21, 17, 0.6); }
.account h2 { font-size: 26px; }
.acct { margin: 16px 0 20px; display: grid; gap: 0; }
.acct > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair-soft); }
.acct dt { color: var(--muted); font-size: 14px; }
.acct dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- help ---------- */
.help-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.help-faq details { border-bottom: 1px solid var(--hair-soft); }
.help-faq details:first-child { border-top: 1px solid var(--hair-soft); }
.help-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-size: 17px; font-weight: 600; }
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease; }
.help-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.help-faq details p { color: var(--soft); margin: 0; padding: 0 20px 20px 0; max-width: 66ch; }
.contact { position: sticky; top: 24px; padding: 26px; border-radius: 22px; border: 1px solid var(--hair); background: linear-gradient(180deg, rgba(19, 36, 30, 0.9), rgba(12, 24, 19, 0.9)); }
.contact .drop-icon { width: 54px; height: 54px; margin-bottom: 16px; }
.contact .drop-icon svg { width: 22px; height: 22px; }
.contact h2 { font-size: 26px; }
.contact > p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.contact .contact-mail { margin-top: 18px; font: 400 24px/1.2 var(--serif); color: var(--gold-l); overflow-wrap: anywhere; user-select: all; }
.contact-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- coming soon pages ---------- */
.soon-page { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; min-height: 60vh; }
.soon-copy h1 { font-size: clamp(42px, 4.6vw, 62px); margin-top: 16px; }
.soon-lead { color: var(--soft); font-size: 19px; max-width: 46ch; margin: 16px 0 22px; }
.soon-points { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.soon-points li { position: relative; padding-left: 26px; color: var(--soft); }
.soon-points li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--foil); }
.soon-art { display: grid; place-items: center; min-height: 380px; border-radius: 28px; border: 1px solid var(--hair-soft); background: radial-gradient(400px 300px at 50% 40%, rgba(205, 176, 122, 0.1), transparent 70%), rgba(10, 21, 17, 0.6); }
.sa-phone { position: relative; width: 190px; aspect-ratio: 9 / 16; border-radius: 26px; background: linear-gradient(170deg, #1d3a30, #0b1612 70%); box-shadow: 0 0 0 6px #050a08, 0 0 0 7px rgba(205, 176, 122, 0.25), 0 30px 50px -24px #000; }
.sa-cap { position: absolute; left: 8%; right: 8%; top: 62%; margin: 0; text-align: center; color: #fff; font: 900 19px/1.15 var(--sans); text-shadow: 0 2px 0 #000, 0 0 3px #000; }
.sa-cap b { color: var(--gold-l); }
.sa-edit { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; text-decoration: underline wavy var(--rose); text-underline-offset: 4px; }
.sa-pop { position: absolute; left: 50%; top: 76%; transform: translateX(-10%); padding: 6px 12px; border-radius: 10px; background: var(--ink); color: #13201b; font-weight: 800; font-size: 14px; box-shadow: 0 10px 20px -8px #000; }
.sa-covers { display: flex; gap: 14px; align-items: center; }
.sa-covers i { width: 92px; aspect-ratio: 9 / 16; border-radius: 12px; background: linear-gradient(180deg, #2b4a3f, #0d1915 60%), #0d1915; box-shadow: inset 0 -40px 30px -10px rgba(0, 0, 0, 0.6); border: 1px solid var(--hair-soft); position: relative; }
.sa-covers i::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 18%; height: 8px; border-radius: 4px; background: rgba(239, 233, 220, 0.7); box-shadow: 0 -14px 0 -2px var(--gold); }
.sa-covers i.on { width: 116px; border: 2px solid var(--gold); box-shadow: 0 20px 40px -16px rgba(205, 176, 122, 0.5); }
.sa-brand { display: flex; gap: 14px; align-items: center; }
.sa-brand .sw { width: 54px; height: 54px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px rgba(239, 233, 220, 0.08); }
.sa-aa { font: 400 64px/1 var(--serif); color: var(--gold-l); margin-left: 10px; }
.sa-cal { display: grid; grid-template-columns: repeat(7, 34px); gap: 8px; }
.sa-cal i { height: 34px; border-radius: 8px; border: 1px solid var(--hair-soft); background: rgba(239, 233, 220, 0.03); }
.sa-cal i.on { background: var(--foil); border-color: transparent; box-shadow: 0 8px 18px -8px rgba(205, 176, 122, 0.6); }

/* ---------- viewer: download all + post kit ---------- */
.file-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.post-kit { margin-top: 24px; }
.post-kit h3 { font-size: 22px; }
.pk-tabs { display: flex; gap: 4px; margin-top: 12px; padding: 4px; border-radius: 12px; background: rgba(8, 19, 15, 0.8); border: 1px solid var(--hair-soft); }
.pk-tabs button { flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 600 13.5px var(--sans); cursor: pointer; }
.pk-tabs button:hover { color: var(--ink); }
.pk-tabs button[aria-selected="true"] { background: rgba(205, 176, 122, 0.14); color: var(--gold-l); }
.pk-panel { margin-top: 14px; }
.pk-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.pk-checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--soft); }
.pk-checks svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pk-checks li.ok svg { stroke: var(--jade); }
.pk-checks li.warn svg { stroke: var(--rose); }
.pk-field { padding: 14px; border-radius: 14px; border: 1px solid var(--hair-soft); background: rgba(8, 19, 15, 0.6); }
.pk-field + .pk-field { margin-top: 10px; }
.pk-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pk-label { font-weight: 700; color: var(--soft); }
.pk-count { color: var(--muted); }
.pk-count.over { color: var(--rose); }
.pk-text { margin: 8px 0 12px; font-size: 14.5px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 150px; overflow-y: auto; }
.pk-tip { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }

/* ---------- additions on smaller screens ---------- */
@media (max-width: 1180px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .quick { min-height: 150px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--hair-soft); }
  .home-two, .plan-grid, .set-grid, .help-grid { grid-template-columns: minmax(0, 1fr); }
  .contact { position: static; }
}
@media (max-width: 960px) {
  .rail { flex-wrap: wrap; height: auto; padding: 10px 14px 0; row-gap: 6px; overflow: visible; }
  .rail .brand { order: 1; }
  .rail-foot { order: 2; padding-top: 0; }
  .rail-nav.main-nav { order: 3; width: 100%; margin: 0 -4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px; }
  .rail-nav.main-nav::-webkit-scrollbar { display: none; }
  .rail-nav.main-nav a { flex: none; }
  .rail-nav.main-nav a.on::before { bottom: 0; }
  .rail-soon { display: none; }
  .foot-nav { display: flex; flex-direction: row; gap: 2px; }
  .foot-nav a { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .foot-nav a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .foot-nav a.on::before { display: none; }
  .soon-page { grid-template-columns: minmax(0, 1fr); }
  .soon-art { min-height: 300px; }
  .c-link { grid-template-columns: 88px minmax(0, 1fr); padding: 18px; gap: 16px; }
  .c-link .fan { height: 110px; }
  .c-pct, .c-open { grid-column: 2; justify-self: start; }
  .c-pct { font-size: 30px; }
}
@media (max-width: 560px) {
  .stats dd { font-size: 34px; }
  .stats > div { padding: 16px; }
  .totals dd { font-size: 26px; }
  .acct > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .recent { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-tabs button { font-size: 12.5px; }
}
@media (max-width: 560px) {
  /* the phone header has a full-width row for the main places, so they keep their names */
  .rail-nav.main-nav a { width: auto; padding: 0 12px; }
  .rail-nav.main-nav a span:not(.pill-count) { display: inline; }
  .rail-nav.main-nav a.on::before { left: 12px; right: 12px; }
}

/* sign-in art: real vertical films in the gilded cards */
.reel-face video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-face::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent 22%, transparent 70%, rgba(6, 13, 11, 0.45)); pointer-events: none; }
.reel-len { z-index: 1; }
.gate-foot { position: relative; z-index: 1; }
.gate-credit { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
/* the video being made: how long ago it was uploaded */
.making-time { flex-basis: 100%; margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.making-time:empty { display: none; }
/* clips still being made: a clearer spinner */
.tile-li.pending .tile-frame::before { width: 54px; height: 54px; margin: -27px 0 0 -27px; border-width: 3px; border-color: rgba(205, 176, 122, 0.18); border-top-color: var(--gold-l); }

/* home: the latest-video card gets the room it needs on laptop screens */
.home-top { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.c-name { font-size: clamp(22px, 1.9vw, 28px); overflow-wrap: normal; word-break: normal; }
@media (max-width: 1320px) { .home-top { grid-template-columns: minmax(0, 1fr); } .quick { min-height: 140px; } }
.c-link { grid-template-columns: 150px minmax(0, 1fr) auto; }
.c-link .fan { margin-left: 12px; }
@media (max-width: 960px) { .c-link { grid-template-columns: 104px minmax(0, 1fr); } .c-link .fan { margin-left: 8px; } }



/* ===================== v3.7: recovery, rename, roadmap, clearer limits ===================== */

/* sign-in: where the email link went */
.sent { margin-top: 18px; padding: 20px 22px; border-radius: 18px; border: 1px solid rgba(124, 200, 166, 0.35); background: rgba(124, 200, 166, 0.06); }
.sent h2 { font-size: 26px; outline: none; }
.sent p { margin: 8px 0 0; color: var(--soft); font-size: 16px; }
.sent strong { color: var(--ink); overflow-wrap: anywhere; }
.sent-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 16px; }
.gate-new strong { color: var(--soft); }

/* home: first visit and the next step */
.c-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.c-static:hover { background: none; }
.c-static .c-acts { margin-top: 14px; }
.c-kicker.bad { color: var(--rose); }

/* one video: rename */
.p-name-row { display: flex; align-items: center; gap: 12px; }
.p-rename { width: 38px; height: 38px; flex: none; }
.rename { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rename input { flex: 1 1 280px; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--gold); background: var(--field); color: var(--ink); font: 400 24px var(--serif); }
.rename input:focus { outline: none; box-shadow: 0 0 0 3px rgba(205, 176, 122, 0.2); }
#p-rename-msg:empty { display: none; }

/* one video: what went wrong and what to do */
.p-problem-title { font: 400 26px/1.15 var(--serif); color: var(--ink) !important; margin-bottom: 6px !important; }
.p-problem-ref { margin-top: 10px !important; font-size: 14.5px !important; color: var(--muted) !important; white-space: pre-line; }
.p-problem-ref:empty { display: none; }
.p-problem .text-btn { align-self: center; margin-left: 4px; }
.p-problem .btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; }
.p-problem.soft { border-color: var(--hair); background: rgba(205, 176, 122, 0.04); }
.p-problem .msg { margin-top: 12px; }
.p-problem .msg:empty { display: none; }
.c-retry svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; }

/* new video: filled-in settings, same-file warning, the spelling field, retention */
.prefill { margin: 0 0 18px; padding: 12px 16px; border-radius: 14px; border: 1px solid rgba(124, 200, 166, 0.35); background: rgba(124, 200, 166, 0.06); color: var(--soft); font-size: 15px; }
.field-help { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.seg-help { flex-basis: 100%; margin-top: 10px; }
.dup { margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(240, 164, 147, 0.35); background: rgba(240, 164, 147, 0.06); }
.dup p { margin: 0 0 6px; color: var(--soft); font-size: 15px; }
.keep-note { margin-top: 12px; }

/* clips: where the moment is, and why it was picked */
.tile-from { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--gold); }
.tile-from:empty { display: none; }
.v-why-short { margin: 12px 0 0; padding-left: 12px; border-left: 2px solid var(--gold); color: var(--soft); font-size: 15px; }
.v-check { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(205, 176, 122, 0.3); background: rgba(205, 176, 122, 0.06); color: var(--soft); font-size: 14.5px; }
.score-help { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* roadmap */
.road { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.road-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--hair-soft); background: rgba(10, 21, 17, 0.6); text-decoration: none; }
.road-item:hover { border-color: rgba(205, 176, 122, 0.35); }
.road-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(205, 176, 122, 0.08); }
.road-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.road-what { display: flex; flex-direction: column; gap: 2px; }
.road-what strong { font-size: 17px; }
.road-what span { color: var(--muted); font-size: 14.5px; }
.road-when { font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); }
.road-when.next { color: var(--on-gold); background: var(--foil); border-color: transparent; }
.road-on { grid-column: 2 / -1; font-size: 13px; color: var(--jade); }

/* plan: what each limit means */
.use-note { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.use-note:empty { display: none; }

@media (max-width: 860px) {
  .road-item { grid-template-columns: 40px minmax(0, 1fr); }
  .road-when { grid-column: 2; justify-self: start; }
}
