/* ShotFlick website — black & gold (tokens = app lib/core/ui.dart) — Made by Comfort Earning */
:root {
  --bg: #09090b; --sf: #131317; --sf2: #1a1a20; --sf3: #22222a;
  --gold: #f5c542; --goldHi: #ffd65c; --goldLo: #f0b72e; --ink: #161105;
  --text: #f7f5ef; --muted: #9c998f; --dim: #66645e;
  --ok: #3dd68c; --info: #6fa8ff; --warn: #ffb020; --bad: #ff5a5a; --badSoft: #ff8a8a;
  --line: rgba(255, 255, 255, .07); --line2: rgba(255, 255, 255, .13);
  --grad: linear-gradient(180deg, var(--goldHi), var(--goldLo));
  --r: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
body {
  font-family: Poppins, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.45;
  min-height: 100vh; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ""; position: fixed; left: -20vw; right: -20vw; top: -260px; height: 520px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(245, 197, 66, .13), transparent);
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--gold); }
img, video, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- shell */
#app { position: relative; z-index: 1; min-height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.side { display: none; }
.main { flex: 1; min-width: 0; padding: 0 16px 104px; }
body.flow .main { padding-bottom: 24px; }
.page { max-width: 520px; margin: 0 auto; padding-top: 10px; }
.page.wide { max-width: 1080px; }
.mockbar {
  position: sticky; top: 0; z-index: 40; text-align: center; font-size: 11px; letter-spacing: 1.5px; color: var(--ink);
  background: repeating-linear-gradient(135deg, var(--gold) 0 12px, var(--goldLo) 12px 24px); padding: 3px 16px; font-weight: 700;
}
.mockbar a { color: var(--ink); }
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: rgba(9, 9, 11, .94);
  border-top: 1px solid var(--line); backdrop-filter: blur(12px); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
body.flow .bottomnav { display: none; }
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; color: var(--dim);
  font-size: 11.5px; font-weight: 500; padding: 6px 0; border-radius: 14px;
}
.bottomnav a.on { color: var(--gold); }
@media (min-width: 900px) {
  .side {
    display: flex; flex-direction: column; gap: 4px; width: 236px; flex: none; position: sticky; top: 0; height: 100vh;
    padding: 22px 14px; border-right: 1px solid var(--line); background: rgba(12, 12, 15, .7);
  }
  .side .brand { margin: 0 8px 22px; }
  .side a {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; color: var(--muted); text-decoration: none; font-weight: 500;
  }
  .side a:hover { background: var(--sf); color: var(--text); }
  .side a.on { background: rgba(245, 197, 66, .1); color: var(--gold); }
  .side .grow { flex: 1; }
  .bottomnav { display: none; }
  .main { padding: 0 32px 40px; }
  body.flow .side { display: none; }
}

/* ---------------------------------------------------------------- type */
h1, .h1 { font-size: 29px; font-weight: 700; line-height: 1.1; letter-spacing: -.5px; margin: 0; }
h2, .h2 { font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; margin: 0; }
h3 { font-size: 15px; font-weight: 600; margin: 0; }
p { margin: 0; }
.cap { font-size: 10.5px; font-weight: 600; color: var(--gold); letter-spacing: 2.6px; text-transform: uppercase; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.small { font-size: 12px; }
.dim { color: var(--dim); }
.t-gold { color: var(--gold); } .t-ok { color: var(--ok); } .t-bad { color: var(--badSoft); } .t-warn { color: var(--warn); } .t-info { color: var(--info); }
.num { font-variant-numeric: tabular-nums; }
.wrap-any { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- layout utils */
.row { display: flex; align-items: center; min-width: 0; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; min-width: 0; }
.gap { gap: 10px; } .gap6 { gap: 6px; } .gap16 { gap: 16px; }
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.center { text-align: center; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt22 { margin-top: 22px; } .mt30 { margin-top: 30px; }
.stack > * + * { margin-top: 12px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) {
  .two { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; }
  .two.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sticky-col { position: sticky; top: 16px; }
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; color: var(--ink); flex: none;
  background: linear-gradient(135deg, var(--goldHi), var(--gold) 55%, #9c7a1c); box-shadow: 0 8px 24px rgba(245, 197, 66, .3);
}
.brand .kick { font-size: 9.5px; letter-spacing: 3px; color: var(--gold); }
.brand .bn { font-weight: 700; font-size: 16px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 20px; border-radius: 18px;
  border: 1px solid transparent; font-size: 15.5px; font-weight: 700; cursor: pointer; width: 100%; text-decoration: none;
  transition: transform .08s ease, filter .15s ease, opacity .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none;
}
.btn span { overflow: hidden; text-overflow: ellipsis; }
.btn:active:not([disabled]) { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--grad); color: var(--ink); box-shadow: 0 12px 28px rgba(245, 197, 66, .25); }
.btn-gold:hover:not([disabled]) { filter: brightness(1.05); }
.btn-ghost { background: var(--sf); color: var(--text); border-color: var(--line2); font-weight: 600; }
.btn-ghost:hover:not([disabled]) { border-color: rgba(245, 197, 66, .45); }
.btn-danger { background: var(--sf); color: var(--badSoft); border-color: rgba(255, 90, 90, .45); font-weight: 600; }
.btn-sm { height: 40px; border-radius: 13px; font-size: 13.5px; padding: 0 14px; width: auto; }
.btn-auto { width: auto; }
.btns { display: flex; gap: 10px; }
.btns > * { flex: 1; }
.sqbtn {
  width: 40px; height: 40px; flex: none; border-radius: 13px; background: var(--sf); border: 1px solid var(--line); color: var(--text);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.sqbtn:hover:not([disabled]) { border-color: rgba(245, 197, 66, .4); }
.sqbtn[disabled] { color: var(--dim); cursor: not-allowed; }
.sq-space { width: 40px; flex: none; }
.ic { display: inline-flex; line-height: 0; flex: none; }
.ic.chev { transform: rotate(180deg); color: var(--dim); }
.linkbtn { background: none; border: 0; color: var(--gold); font-weight: 600; cursor: pointer; padding: 8px 10px; border-radius: 10px; display: inline-flex; gap: 6px; align-items: center; }
.playbtn {
  width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--grad); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none;
  box-shadow: 0 10px 24px rgba(245, 197, 66, .3);
}

/* ---------------------------------------------------------------- pills, cards */
.pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--line2); color: var(--muted); white-space: nowrap;
}
.tone-gold { color: var(--gold); background: rgba(245, 197, 66, .12); border-color: rgba(245, 197, 66, .45); }
.tone-ok { color: var(--ok); background: rgba(61, 214, 140, .12); border-color: rgba(61, 214, 140, .45); }
.tone-warn { color: var(--warn); background: rgba(255, 176, 32, .12); border-color: rgba(255, 176, 32, .45); }
.tone-info { color: var(--info); background: rgba(111, 168, 255, .12); border-color: rgba(111, 168, 255, .45); }
.tone-bad { color: var(--badSoft); background: rgba(255, 90, 90, .12); border-color: rgba(255, 90, 90, .45); }
.tone-solid { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.card {
  background: linear-gradient(180deg, #16161b, #111115); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0;
}
.card.gold {
  background: linear-gradient(180deg, #1c1910, #121114); border-color: rgba(245, 197, 66, .55); box-shadow: 0 14px 30px rgba(245, 197, 66, .08);
}
.card.tap { cursor: pointer; transition: border-color .15s; }
.card.tap:hover { border-color: rgba(245, 197, 66, .4); }
.card.flat { padding: 2px 16px; }
.icontile {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--gold);
  background: rgba(245, 197, 66, .12); border: 1px solid rgba(245, 197, 66, .32);
}
.icontile.solid { background: var(--grad); color: var(--ink); border: 0; }
.hr { height: 1px; background: var(--line); margin: 12px 0; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: var(--ink); background: var(--grad); flex: none;
  border: 3px solid rgba(245, 197, 66, .25); background-clip: padding-box;
}

/* ---------------------------------------------------------------- topbar / steps */
.topbar { display: flex; align-items: center; gap: 8px; height: 56px; }
.tb-mid { flex: 1; text-align: center; min-width: 0; }
.tb-title { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-cap { font-size: 9.5px; font-weight: 600; color: var(--gold); letter-spacing: 2.4px; text-transform: uppercase; }
.stepchip { font-size: 11.5px; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: var(--sf); border: 1px solid var(--line); white-space: nowrap; }
.stepchip b { color: var(--gold); }
.stepbars { display: flex; gap: 5px; margin: 2px 0 14px; }
.stepbars i { flex: 1; height: 3.5px; border-radius: 2px; background: var(--sf3); }
.stepbars i.on { background: linear-gradient(90deg, var(--gold), var(--goldHi)); }

/* ---------------------------------------------------------------- key/value, forms */
.kv { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv:last-child { border-bottom: 0; }
.kv .k { flex: 1; color: var(--muted); font-size: 13px; min-width: 0; }
.kv .v { font-size: 13px; font-weight: 600; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 62%; }
.kv.link { cursor: pointer; }
.kv.link:hover .k { color: var(--text); }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.f-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.f-hint { font-size: 11.5px; color: var(--dim); }
.input, .field input, .field textarea, .field select {
  width: 100%; background: var(--sf); border: 1px solid var(--line2); border-radius: 14px; padding: 13px 14px; outline: none; min-width: 0;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus, .field select:focus, .input:focus { border-color: rgba(245, 197, 66, .7); }
.errbox { color: var(--badSoft); background: rgba(255, 90, 90, .08); border: 1px solid rgba(255, 90, 90, .35); border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.infobox { color: var(--text); background: rgba(111, 168, 255, .07); border: 1px solid rgba(111, 168, 255, .3); border-radius: 14px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.infobox .ic { color: var(--info); margin-top: 1px; }
.warnbox { color: var(--text); background: rgba(255, 176, 32, .07); border: 1px solid rgba(255, 176, 32, .35); border-radius: 14px; padding: 10px 12px; font-size: 13px; display: flex; gap: 10px; align-items: flex-start; }
.warnbox .ic { color: var(--warn); margin-top: 1px; }
.seg { display: flex; padding: 4px; background: var(--sf); border: 1px solid var(--line); border-radius: 15px; gap: 2px; }
.seg button { flex: 1; border: 0; background: none; color: var(--muted); padding: 9px 6px; border-radius: 11px; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--grad); color: var(--ink); }
.switch { width: 46px; height: 27px; border-radius: 999px; border: 0; padding: 3px; background: #2a2a31; cursor: pointer; flex: none; display: flex; }
.switch i { width: 21px; height: 21px; border-radius: 50%; background: #6c6a64; transition: transform .16s; }
.switch.on { background: var(--grad); }
.switch.on i { background: var(--ink); transform: translateX(19px); }

/* ---------------------------------------------------------------- progress */
.pbar { height: 8px; border-radius: 99px; background: var(--sf3); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--goldLo), var(--goldHi)); border-radius: 99px; transition: width .2s; }
.ring { position: relative; width: 190px; height: 190px; margin: 6px auto 0; }
.ring svg { transform: rotate(-90deg); }
.ring .rc { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .pct { font-size: 44px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.ring .lab { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stages { list-style: none; margin: 0; padding: 6px 16px; }
.stages li { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.stages .dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700;
  border: 1.5px solid var(--sf3); color: var(--dim);
}
.stages li.done .dot { background: var(--ok); border-color: var(--ok); color: #06140c; }
.stages li.now .dot { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 5px rgba(245, 197, 66, .12); }
.stages li.now .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.stages li .sl { font-weight: 600; font-size: 14.5px; }
.stages li.todo .sl { color: var(--dim); }
.stages li.now .sl { color: var(--gold); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(245, 197, 66, .25); border-top-color: var(--gold); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- overlays */
.overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .18s;
}
.overlay.in { opacity: 1; }
.overlay.out { opacity: 0; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, #19191e, #0e0e11); border-top: 1px solid rgba(245, 197, 66, .3); border-radius: 30px 30px 0 0;
  transform: translateY(24px); transition: transform .18s;
}
.sheet.wide { max-width: 720px; }
.overlay.in .sheet { transform: none; }
.sheet .handle { width: 44px; height: 5px; border-radius: 3px; background: #3a3a42; margin: 0 auto 14px; }
.overlay.as-dialog { align-items: center; padding: 16px; }
.overlay.as-dialog .sheet { border-radius: 26px; border: 1px solid var(--line2); max-width: 420px; }
.overlay.as-dialog .handle { display: none; }
@media (min-width: 900px) {
  .overlay { align-items: center; padding: 16px; }
  .sheet { border-radius: 26px; border: 1px solid var(--line2); }
  .sheet .handle { display: none; }
}
.confirm { text-align: center; }
.confirm .cf-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin: 8px auto 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line2); color: var(--warn); }
.confirm p { margin: 6px 0 18px; }
.confirm .btn + .btn { margin-top: 10px; }
#toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--sf2); border: 1px solid var(--line2);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-size: 13px; transition: opacity .3s, transform .3s;
}
.toast .ic { color: var(--gold); }
.toast.bad { background: #3a1416; border-color: rgba(255, 90, 90, .5); }
.toast.bad .ic { color: var(--badSoft); }
.toast.ok { background: #10301f; border-color: rgba(61, 214, 140, .5); }
.toast.ok .ic { color: var(--ok); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------------------------------------------------------------- home / lists */
.hero { position: relative; overflow: hidden; padding: 22px 20px; }
.hero h1 { font-size: 27px; margin-top: 8px; }
.hero .muted { margin: 8px 0 18px; font-size: 14px; max-width: 34ch; }
.hero .btn { width: auto; min-width: 190px; }
.hero .glowdot { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245, 197, 66, .22), transparent); pointer-events: none; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(245, 197, 66, .5); color: var(--gold); font-weight: 700; background: rgba(245, 197, 66, .06); text-decoration: none; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { padding: 16px; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; cursor: pointer; }
.tile h3 { font-size: 17px; }
.sect { display: flex; align-items: flex-end; justify-content: space-between; margin: 24px 0 10px; gap: 10px; }
.sect h3 { font-size: 16px; }
.vrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.vrow:last-child { border-bottom: 0; }
.vthumb { width: 52px; height: 70px; border-radius: 11px; flex: none; background: linear-gradient(160deg, #26231a, #121114); border: 1px solid var(--line2); display: grid; place-items: center; color: var(--gold); overflow: hidden; }
.vthumb img { width: 100%; height: 100%; object-fit: cover; }
.vrow .vt { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vrow .vm { color: var(--muted); font-size: 12.5px; }
.empty { text-align: center; padding: 30px 12px; color: var(--muted); }
.empty .icontile { margin: 0 auto 10px; }
.ledger .lrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ledger .lrow:last-child { border-bottom: 0; }
.ledger .amt { font-weight: 700; white-space: nowrap; }
.bigbal { font-size: 40px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(90deg, var(--goldHi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }

/* ---------------------------------------------------------------- pick */
.drop {
  border: 1.5px dashed rgba(245, 197, 66, .45); border-radius: 22px; padding: 30px 18px; text-align: center; background: rgba(245, 197, 66, .03);
  cursor: pointer; transition: background .15s, border-color .15s;
}
.drop.over { background: rgba(245, 197, 66, .1); border-color: var(--gold); }
.drop .icontile { margin: 0 auto 12px; width: 58px; height: 58px; border-radius: 18px; }
.choice { display: flex; gap: 14px; align-items: center; padding: 16px; cursor: pointer; }
.choice + .choice { margin-top: 12px; }
.choice .ct { font-weight: 700; font-size: 16px; }

/* ---------------------------------------------------------------- video + trim */
.stage { background: #000; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; height: min(46vh, 520px); position: relative; }
.stage video { height: 100%; width: 100%; object-fit: contain; display: block; cursor: pointer; background: #000; }
@media (min-width: 900px) { .stage { height: min(68vh, 640px); } }
.stage .ph { color: var(--muted); padding: 20px; text-align: center; }
.times { display: flex; justify-content: space-between; font-size: 13px; margin: 10px 2px 6px; }
.times b { font-weight: 700; }
.wave { display: block; width: 100%; height: 46px; cursor: pointer; touch-action: none; }
.statline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; margin: 8px 0 10px; }
.statline b { color: var(--gold); }
.statline .rm b { color: var(--badSoft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; padding-bottom: 6px; }
.chipbox { max-height: 38vh; overflow: auto; padding-right: 4px; overscroll-behavior: contain; }
@media (min-width: 900px) { .chipbox { max-height: calc(100vh - 360px); } }
.chip {
  border: 1px solid var(--line2); background: var(--sf); color: var(--text); padding: 6px 11px; border-radius: 12px; font-size: 15px; cursor: pointer;
  user-select: none; -webkit-user-select: none; touch-action: manipulation; line-height: 1.3; -webkit-touch-callout: none;
}
.chip:hover { border-color: rgba(245, 197, 66, .45); }
.chip.pause { color: var(--ok); border-style: dashed; border-color: rgba(61, 214, 140, .5); font-size: 13px; }
.chip.cut { color: var(--badSoft); text-decoration: line-through; border-color: rgba(255, 90, 90, .5); background: rgba(255, 90, 90, .08); border-style: solid; }
.chip.sug { color: var(--warn); border-color: rgba(255, 176, 32, .6); background: rgba(255, 176, 32, .08); }
.chip.sug.cut { text-decoration: line-through; }
.chip.filler { border-bottom: 2px dotted var(--warn); }
.chip.nudged { box-shadow: inset 0 -2px 0 var(--info); }
.chip.active { background: var(--grad); color: var(--ink); border-color: transparent; text-decoration: none; }
.chip.active.cut { background: linear-gradient(180deg, #ff9a9a, #ff6b6b); color: #2a0707; text-decoration: line-through; }
.hint { color: var(--muted); font-size: 12px; text-align: center; margin: 8px 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ctabar { position: sticky; bottom: 0; z-index: 20; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(9, 9, 11, 0), var(--bg) 30%); display: flex; gap: 10px; align-items: center; }
.ctabar .btn { flex: 1; }
.nudge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.nudge-box { background: var(--sf); border: 1px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; }
.nudge-box .nv { font-weight: 700; font-size: 17px; margin: 4px 0 10px; }
.nudge-box .btns .btn { height: 44px; border-radius: 13px; font-size: 14px; }

/* ---------------------------------------------------------------- timeline */
.tl-wrap { position: relative; border-radius: 14px; overflow: hidden; background: #0f0f13; border: 1px solid var(--line); }
.tl-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-color: #3a3a42 transparent; }
.tl-canvas { position: sticky; left: 0; display: block; height: 150px; }
.tl-spacer { height: 1px; }
.tl-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.tl-tools .grow { min-width: 60px; }
.zoom { width: 120px; accent-color: var(--gold); }
.parts { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 8px; }
.part { flex: none; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--sf); cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.part.on { border-color: var(--gold); color: var(--gold); background: rgba(245, 197, 66, .08); }

/* ---------------------------------------------------------------- choose / style */
.plan { position: relative; cursor: pointer; }
.plan .price { font-size: 22px; font-weight: 800; }
.plan.sel .price { color: var(--gold); }
.plan .badge { position: absolute; right: 14px; top: -11px; }
.feat { display: flex; flex-wrap: wrap; gap: 6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12px; }
.checks span { display: flex; gap: 6px; align-items: flex-start; }
.checks .ic { color: var(--gold); margin-top: 1px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.cmp th, .cmp td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--muted); }
.cmp .pro { background: rgba(245, 197, 66, .07); color: var(--gold); font-weight: 700; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.vtile { border-radius: 14px; border: 1.5px solid var(--line2); background: var(--sf); overflow: hidden; cursor: pointer; padding: 0; text-align: left; }
.vtile .vimg { aspect-ratio: 9 / 13; background: linear-gradient(160deg, #2b2616, #111); display: grid; place-items: center; color: var(--gold); position: relative; overflow: hidden; }
.vtile .vimg img, .vtile .vimg video { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.vtile .vn { padding: 7px 9px; font-size: 12.5px; font-weight: 600; }
.vtile.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 197, 66, .18); }
.vtile.on .vn { color: var(--gold); }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.asset { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line2); background: var(--sf); }
.asset img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.asset select { width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--sf2); padding: 6px; font-size: 12px; }
.asset .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 9px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.addasset { aspect-ratio: 1; border: 1.5px dashed rgba(245, 197, 66, .45); border-radius: 14px; display: grid; place-items: center; color: var(--gold); cursor: pointer; background: rgba(245, 197, 66, .03); text-align: center; font-size: 12px; padding: 8px; }

/* ---------------------------------------------------------------- ready */
.thumbs-fb { display: flex; gap: 10px; }
.thumbs-fb button { flex: 1; height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--sf); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; }
.thumbs-fb button.on { border-color: var(--gold); color: var(--gold); background: rgba(245, 197, 66, .08); }

/* ---------------------------------------------------------------- admin */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat .sv { font-size: 24px; font-weight: 800; margin-top: 4px; }
.stat .sk { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #0f0f13; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--sf); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 6px 0 14px; }
.tabs button { flex: none; border: 1px solid var(--line2); background: var(--sf); color: var(--muted); padding: 9px 14px; border-radius: 12px; font-weight: 600; cursor: pointer; }
.tabs button.on { color: var(--ink); background: var(--grad); border-color: transparent; }
.codebox { font-family: ui-monospace, Consolas, monospace; background: var(--sf2); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; overflow-wrap: anywhere; font-size: 12.5px; }
