/* Reel Lab · made by Coach Jaz (Jazmine de Luna), your AI Bestie · AI Empowered Club
   App chrome. Light by default (films beautifully on a laptop), dark on request. */
:root {
  --bg: #F3F0EA; --bg2: #ECE8E0; --panel: #FFFFFF; --panel2: #F9F7F3; --ink: #1A1815; --ink2: #47423B; --muted: #8B8479;
  --line: #E4DED3; --line2: #EEE9E1; --accent: #FF4B2B; --accent2: #FF7A3D; --accent-ink: #FFFFFF; --accent-soft: #FFEAE3;
  --good: #149A64; --good-soft: #E2F5EC; --violet: #6E56F8; --violet-soft: #EEEBFF;
  --shadow-sm: 0 1px 2px rgba(26,24,21,.06), 0 2px 8px rgba(26,24,21,.05);
  --shadow: 0 1px 2px rgba(26,24,21,.06), 0 10px 30px rgba(26,24,21,.08);
  --shadow-lg: 0 2px 6px rgba(26,24,21,.08), 0 30px 70px -18px rgba(26,24,21,.35);
  --display: "Instrument Serif", "Playfair Display", Georgia, serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E0E10; --bg2: #141417; --panel: #18181C; --panel2: #1E1E23; --ink: #F4F1EB; --ink2: #CFC9C0; --muted: #8F8A82;
  --line: #2B2B31; --line2: #222227; --accent: #FF6A4A; --accent2: #FF8D55; --accent-soft: rgba(255,106,74,.15);
  --good: #33D492; --good-soft: rgba(51,212,146,.13); --violet: #9B8AFF; --violet-soft: rgba(155,138,255,.15);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.8); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255,122,61,.10), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(110,86,248,.07), transparent 60%); background-attachment: fixed; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.media-pool { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; overflow: hidden; }

/* ---------------------------------------------------------------- header */
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: 66px; padding: 0 26px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line2); }
.brand { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; border-radius: 10px; align-self: center; position: relative; flex: none;
  background: conic-gradient(from 210deg, var(--accent), var(--accent2), #FFC93D, var(--violet), var(--accent)); box-shadow: 0 6px 16px -4px rgba(255,75,43,.55); }
.brand .mark::after { content: ""; position: absolute; left: 11px; top: 8.5px; border-left: 10px solid #fff; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
.brand b { font: 400 30px/1 var(--display); letter-spacing: -0.01em; }
.brand b em { font-style: italic; color: var(--accent); }
.brand i { font: italic 400 16px/1 var(--display); color: var(--muted); }
/* the maker's mark: black logo on the light theme, white on the dark one */
img.aec { display: block; }
img.aec.on-dark, :root[data-theme="dark"] img.aec.on-light { display: none; }
:root[data-theme="dark"] img.aec.on-dark { display: block; }
.maker { display: flex; align-items: center; gap: 7px; padding: 6px 8px 6px 14px; margin-left: 2px; border: 0; border-left: 1px solid var(--line); border-radius: 0 10px 10px 0; background: none; white-space: nowrap; }
.maker:hover { background: var(--panel); }
.maker:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.maker span { font: italic 400 15px/1 var(--display); color: var(--muted); }
.maker .aec { height: 24px; width: auto; }
.helpbtn { padding: 0 14px 0 6px; gap: 7px; }
.helpbtn .q { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 900; font-size: 15px; }
.reel-pick { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 12px; margin-left: 8px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-sm); max-width: 360px; }
.reel-pick:hover { border-color: var(--ink2); }
.reel-pick .rp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); flex: none; }
.reel-pick .rp-title { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel-pick .rp-meta { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reel-pick svg { width: 14px; height: 14px; opacity: .6; flex: none; }
.saved { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 550; white-space: nowrap; }
.saved .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.saved.ok .dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.saved.busy .dot { background: var(--accent2); animation: pulse 1s infinite; }
.saved b { color: var(--ink); font-weight: 700; }
@keyframes pulse { 50% { opacity: .35; } }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 650; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); color: var(--accent-ink); box-shadow: 0 8px 20px -6px rgba(255,75,43,.65), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.primary:hover { box-shadow: 0 12px 26px -6px rgba(255,75,43,.75), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.dark { background: var(--ink); color: var(--bg); }
.btn.ghost { background: var(--panel); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn.ghost:hover { border-color: var(--ink2); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.big { height: 52px; padding: 0 26px; font-size: 15.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 18px; height: 18px; }

.menu { position: fixed; z-index: 60; top: 60px; left: 210px; width: 380px; max-height: 70vh; overflow: auto; padding: 8px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.menu input { width: 100%; height: 40px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); margin-bottom: 6px; outline: none; }
.menu .grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.menu .it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; }
.menu .it:hover, .menu .it.on { background: var(--panel2); }
.menu .it .t { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu .it .m { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.menu .it .ok { color: var(--good); font-weight: 800; }
.menu .it .wide { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--line2); color: var(--muted); font-weight: 700; }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: minmax(330px, 31vw) minmax(0, 1fr); gap: 30px; padding: 22px 28px 0; max-width: 1760px; margin: 0 auto; }
.preview-col { position: sticky; top: 86px; align-self: start; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.pv-head { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; min-height: 26px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--ink2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.6s infinite; }
.trying { font-size: 12.5px; color: var(--violet); background: var(--violet-soft); padding: 4px 10px; border-radius: 999px; font-weight: 650; opacity: 0; transition: opacity .15s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.trying.on { opacity: 1; }
.pv-frame { position: relative; height: min(calc(100vh - 262px), 860px); min-height: 420px; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; background: #0b0b0c;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.06); isolation: isolate; }
.pv-host { position: absolute; inset: 0; }
.pv-frame .stage.raw .ov, .pv-frame .stage.raw .heads, .pv-frame .stage.raw .caps, .pv-frame .stage.raw .tr, .pv-frame .stage.raw .top, .pv-frame .stage.raw .behind { visibility: hidden; }
.pv-status { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; display: flex; justify-content: center; pointer-events: none; }
.pv-status span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 650; color: #fff;
  background: rgba(0,0,0,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pv-status .bar { width: 70px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.pv-status .bar i { display: block; height: 100%; background: #fff; border-radius: 2px; }
.pv-warn { position: absolute; top: 12px; left: 12px; z-index: 6; padding: 6px 11px; border-radius: 999px; background: #FFD23F; color: #2A2000; font-size: 12px; font-weight: 750; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.big-play { position: absolute; left: 50%; top: 50%; z-index: 4; width: 78px; height: 78px; margin: -39px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(255,255,255,.92); box-shadow: 0 16px 40px rgba(0,0,0,.35); transition: transform .15s, opacity .2s; }
.big-play svg { width: 28px; height: 28px; margin-left: 4px; fill: #111; }
.big-play:hover { transform: scale(1.06); }
.big-play.gone { opacity: 0; pointer-events: none; transform: scale(.85); }

.controls { display: flex; align-items: center; gap: 8px; width: 100%; flex-wrap: wrap; }
.ctl { height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 650; font-size: 13px; box-shadow: var(--shadow-sm); }
.ctl.play { min-width: 74px; background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 6px 16px -6px rgba(255,75,43,.7); }
.ctl.icon { width: 34px; padding: 0; display: grid; place-items: center; }
.ctl.icon svg { width: 16px; height: 16px; }
.time { font-variant-numeric: tabular-nums; color: var(--ink2); font-weight: 600; font-size: 13px; margin-left: 2px; }
.chip { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink2); font-size: 12.5px; font-weight: 650; }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.timeline { width: 100%; padding: 6px 0 2px; cursor: pointer; user-select: none; touch-action: none; }
.tl-track { position: relative; height: 30px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.tl-loop { position: absolute; top: 0; bottom: 0; background: var(--accent-soft); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.tl-hook { position: absolute; top: 0; bottom: 0; left: 0; background: repeating-linear-gradient(135deg, rgba(110,86,248,.12) 0 6px, transparent 6px 12px); }
.tl-marks i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-marks b { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; }
.tl-marks u { position: absolute; top: 3px; width: 0; height: 0; margin-left: -5px; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--accent); text-decoration: none; }
.tl-head { position: absolute; top: -2px; bottom: -2px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--panel); }
.pv-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; }
.link { border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 13px; }
.hint { color: var(--muted); font-size: 12px; }

/* ---------------------------------------------------------------- steps */
.steps-col { min-width: 0; display: flex; flex-direction: column; min-height: calc(100vh - 66px); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0 18px; }
.tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--ink2); font-weight: 650; }
.tab:hover { background: var(--panel); border-color: var(--line); }
.tab .n { font-size: 11.5px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.tab.on { background: var(--ink); color: var(--bg); }
.tab.on .n { color: color-mix(in srgb, var(--bg) 60%, transparent); }
.tab.done::after { content: ""; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.step-head { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.step-head .ttl { min-width: 0; flex: 1 1 380px; }
.step-head .kick { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.step-head h1 { margin: 0; font: 400 clamp(36px, 3.4vw, 54px)/1.02 var(--display); letter-spacing: -0.015em; }
.step-head h1 em { font-style: italic; color: var(--accent); }
.step-head p { margin: 10px 0 0; color: var(--ink2); font-size: 15px; max-width: 640px; }
.settings { display: flex; flex-direction: column; gap: 8px; }
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.seg .lbl { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 10px; }
.seg button { height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; font-weight: 650; font-size: 12.5px; color: var(--ink2); }
.seg button.on { background: var(--ink); color: var(--bg); }
.step-body { flex: 1; padding-bottom: 30px; }
.sec { margin-bottom: 30px; }
.sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font: 400 26px/1.1 var(--display); }
.sec h2 small { font: 600 12.5px var(--ui); color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; }

/* ---------------------------------------------------------------- cards */
.card { position: relative; display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); padding: 8px 8px 10px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card.taken { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.card.shuffle { box-shadow: 0 0 0 3px var(--violet), var(--shadow); transform: translateY(-4px) scale(1.01); }
.card .thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2a2a2e, #161618); cursor: pointer; isolation: isolate; }
.card .thumb .stagehost { position: absolute; inset: 0; }
.card .thumb::after { content: ""; position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; z-index: 3; }
.card .num { position: absolute; z-index: 4; top: 9px; left: 9px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: rgba(255,255,255,.94); color: #111; box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.card.taken .num { background: var(--accent); color: #fff; }
.card .badge { position: absolute; z-index: 4; bottom: 9px; right: 9px; padding: 4px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.card .badge.new { background: var(--violet); color: #fff; box-shadow: 0 4px 12px rgba(110,86,248,.5); }
.card .badge.need { background: rgba(0,0,0,.6); color: #fff; }
.card .badge.taken { background: var(--accent); color: #fff; }
.card .meta { padding: 10px 6px 0; }
.card .nmrow { display: flex; align-items: center; gap: 6px; }
.card .nm { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .ds { color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.35; }
.card .sw { display: flex; gap: 5px; margin-top: 9px; }
.card .sw i { flex: 1; height: 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.card .acts { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; padding: 10px 2px 0; margin-top: auto; }
.tgl { display: inline-flex; align-items: center; gap: 3px; height: 27px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 11.5px; font-weight: 700; color: var(--ink2); white-space: nowrap; letter-spacing: -0.005em; }
.tgl svg { width: 13px; height: 13px; }
.tgl.take[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.tgl.more[aria-pressed="true"] { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.tgl.note { flex: none; width: 26px; height: 26px; padding: 0; justify-content: center; border-color: transparent; color: var(--muted); }
.tgl.note:hover { border-color: var(--line); }
.tgl.note.has { color: var(--accent); border-color: var(--accent); }
.card .notebox { margin: 8px 2px 0; }
.card textarea, .field textarea { width: 100%; min-height: 58px; resize: vertical; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); outline: none; font-size: 12.5px; }
.card textarea:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card .inputs { display: grid; gap: 6px; margin-top: 8px; }
.card .inputs input[type=text], .field input[type=text] { width: 100%; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); outline: none; font-size: 13px; }
.card .inputs .row { display: flex; gap: 6px; align-items: center; }
.card .inputs input[type=color] { width: 36px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
.card .inputs label { font-size: 11.5px; color: var(--muted); font-weight: 650; }
.audio-tile { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; color: #fff;
  background: radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(160deg, var(--a1, #FF7A3D), var(--a2, #6E56F8)); }
.audio-tile .bars { display: flex; align-items: flex-end; gap: 4px; height: 64px; margin-bottom: 14px; }
.audio-tile .bars i { flex: 1; border-radius: 3px; background: rgba(255,255,255,.85); animation: eq 1.1s ease-in-out infinite; }
.audio-tile.off .bars i { animation: none; height: 6px !important; opacity: .5; }
.audio-tile b { font: 400 26px/1.05 var(--display); }
.audio-tile span { font-size: 12px; opacity: .85; margin-top: 4px; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.audio-tile .bars i { transform-origin: 50% 100%; }

/* ---------------------------------------------------------------- start + watch */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-bottom: 28px; }
.panel { border-radius: 22px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); padding: 20px 22px; }
.panel h3 { margin: 0 0 4px; font: 400 26px/1.1 var(--display); }
.panel .sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.fact { padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); }
.fact b { display: block; font: 400 28px/1 var(--display); }
.fact span { font-size: 11.5px; color: var(--muted); font-weight: 650; letter-spacing: .04em; }
.fact.ok b { color: var(--good); }
.src { margin-top: 12px; font-size: 12px; color: var(--muted); word-break: break-all; }
.src code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel2); padding: 1px 5px; border-radius: 5px; color: var(--ink2); }
.field { display: grid; gap: 5px; }
.field > span { font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.brandgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.colorrow { display: flex; gap: 8px; align-items: center; min-width: 0; }
.colorrow .logo-drop { min-width: 0; overflow: hidden; white-space: nowrap; }
.colorrow input[type=color] { width: 44px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: none; }
.logo-drop { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px dashed var(--line); background: var(--panel2); font-size: 12.5px; color: var(--muted); cursor: pointer; }
.logo-drop img { height: 22px; max-width: 90px; object-fit: contain; }
.field.wide { grid-column: 1 / -1; }
.field > span em { font-style: normal; font-weight: 600; color: var(--muted); opacity: .75; letter-spacing: 0; margin-left: 6px; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 12.5px; background: var(--panel2); border-color: var(--line); }
.btn.sm:hover { border-color: var(--accent); }
.cchips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cchip { display: grid; gap: 6px; padding: 5px 5px 7px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); min-width: 0; }
.cchip:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cchip input[type=color] { width: 100%; height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.cchip input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.cchip input[type=color]::-webkit-color-swatch { border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.cchip > div { display: grid; gap: 3px; padding: 0 3px; min-width: 0; }
.cchip small { font-size: 10px; font-weight: 750; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.field .cchip input.hex { flex: 1; min-width: 0; width: 100%; height: 18px; padding: 0; border: 0; background: none; box-shadow: none;
  font: 650 12.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); text-transform: uppercase; }
.field .cchip input.hex:focus { box-shadow: none; }
.summary { display: grid; gap: 8px; }
.srow { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); }
.srow .k { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.srow .v { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .v small { color: var(--muted); font-weight: 500; }
.srow .v .dots { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: -1px; }
.srow .v .dots i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.srow button { border: 0; background: none; color: var(--accent); font-weight: 700; font-size: 12.5px; }
.watch { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.notes-list { display: grid; gap: 6px; margin: 10px 0; }
.notes-list .nt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--panel2); font-size: 13px; }
.notes-list .nt b { color: var(--accent); font-variant-numeric: tabular-nums; cursor: pointer; }
.notes-list .nt span { flex: 1; }
.notes-list .nt button { border: 0; background: none; color: var(--muted); }
.sendbox { display: grid; gap: 10px; margin-top: 16px; }
.sendbox .btn { justify-content: center; white-space: normal; text-align: center; height: auto; min-height: 40px; padding-block: 9px; line-height: 1.3; }
.sendbox .btn.big { min-height: 52px; }
.empty { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- footer, toasts, modal, popover */
.step-foot { position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 0 18px;
  background: linear-gradient(to top, var(--bg) 70%, transparent); }
.step-foot .count { color: var(--muted); font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; }
.toasts { position: fixed; z-index: 80; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 650; box-shadow: var(--shadow-lg);
  animation: tin .3s cubic-bezier(.2,1.4,.4,1); pointer-events: auto; }
.toast.good::before { content: "✓"; color: var(--good); font-weight: 900; }
@keyframes tin { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.scrim { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgba(15,14,12,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 20px; }
.modal { width: min(560px, 100%); max-height: 86vh; overflow: auto; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 26px; }
.modal h2 { margin: 0 0 6px; font: 400 34px/1.05 var(--display); }
.modal h2 em { font-style: italic; color: var(--accent); }
.modal p { margin: 0 0 16px; color: var(--ink2); }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }
.modal pre { max-height: 240px; overflow: auto; padding: 12px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.pop { position: fixed; z-index: 75; width: 300px; padding: 14px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.pop b { display: block; margin-bottom: 8px; }
.pop textarea { width: 100%; min-height: 70px; padding: 9px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); outline: none; resize: vertical; }
.pop .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.pop .btn { height: 34px; padding: 0 14px; }
.blank { max-width: 640px; margin: 12vh auto; text-align: center; padding: 0 20px; }
.blank h1 { font: 400 54px/1 var(--display); margin: 0 0 12px; }
.blank h1 em { font-style: italic; color: var(--accent); }
.blank pre { text-align: left; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow: auto; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) { .hero, .watch { grid-template-columns: minmax(0, 1fr); } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; padding: 14px 16px 0; gap: 18px; }
  .preview-col { position: relative; top: 0; }
  .pv-frame { height: min(68vh, 640px); }
  .topbar { padding: 0 16px; gap: 10px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand i, .saved .txt, #copyBtn { display: none; }
  .reel-pick { margin-left: 0; max-width: 60vw; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .brandgrid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .step-foot .count { display: none; } .hint { display: none; }
  .step-foot { gap: 8px; } .step-foot .btn { padding: 0 14px; } #surpriseBtn .lbl { display: none; } #surpriseBtn { width: 44px; padding: 0; justify-content: center; }
  .srow { grid-template-columns: minmax(0, 1fr) auto; } .srow .k { grid-column: 1 / -1; } .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- vlog: 16:9 layout, Moments board, clip player */
.layout.wide { grid-template-columns: minmax(420px, 42vw) minmax(0, 1fr); }
.layout.wide .pv-frame { height: auto; width: 100%; min-height: 0; aspect-ratio: 16 / 9; border-radius: 22px; }
.layout.wide .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.layout.wide .card .thumb { aspect-ratio: 16 / 9; }
.clip-host { position: absolute; inset: 0; z-index: 3; display: none; background: #000; }
.clip-host video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.clip-host video.on { opacity: 1; }
.clip-cap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.clip-cap b { font-weight: 700; font-size: 14px; } .clip-cap span { font-size: 12px; opacity: .85; }
.seqctl { display: none; align-items: center; gap: 8px; width: 100%; }
body.moments-mode .clip-host { display: block; }
body.moments-mode .seqctl { display: flex; }
body.moments-mode .controls, body.moments-mode .timeline, body.moments-mode .pv-foot, body.moments-mode #bigPlay, body.moments-mode .pv-warn { display: none !important; }
.panel.notice { padding: 14px 18px; margin-bottom: 16px; background: var(--violet-soft); border-color: transparent; color: var(--ink2); font-size: 13.5px; }
.panel.notice b { color: var(--ink); } .panel.notice a { color: var(--violet); font-weight: 700; }
.seqbar { position: sticky; top: 74px; z-index: 15; margin-bottom: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.seqbar .row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.seqbar .sum { white-space: nowrap; } .seqbar .sum b { font-size: 15px; } .seqbar .sum .d { font: 400 22px/1 var(--display); margin-left: 6px; }
.seqbar .muted { color: var(--muted); font-size: 12.5px; }
.seqbar .meter { flex: 1; min-width: 120px; height: 8px; border-radius: 4px; background: var(--line2); overflow: hidden; }
.seqbar .meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.seqbar .btns { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.seqbar .btns .btn { height: 34px; padding: 0 13px; font-size: 13px; }
.seqbar .strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0 4px; min-height: 30px; scrollbar-width: thin; }
.seqbar .sitem { position: relative; flex: none; width: 78px; border-radius: 9px; overflow: hidden; background: #222; cursor: grab; aspect-ratio: 16 / 10; border: 2px solid transparent; }
.seqbar .sitem:hover { border-color: var(--accent); }
.seqbar .sitem.drag { opacity: .4; }
.seqbar .sitem img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.seqbar .sitem b { position: absolute; left: 4px; top: 3px; font-size: 10.5px; color: #fff; background: rgba(0,0,0,.55); border-radius: 5px; padding: 0 4px; }
.seqbar .sitem span { position: absolute; right: 4px; bottom: 3px; font-size: 10px; color: #fff; text-shadow: 0 1px 3px #000; }
.seqbar .sitem button { position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 10px; display: none; place-items: center; padding: 0; }
.seqbar .sitem:hover button { display: grid; }
.seqbar .cutst { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.seqbar .cutst .bar { width: 120px; height: 5px; border-radius: 3px; background: var(--line2); overflow: hidden; }
.seqbar .cutst .bar i { display: block; height: 100%; background: var(--good); }
.mfilters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.cliphead { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 8px; }
.cliphead b { font-size: 13px; font-weight: 750; } .cliphead span { color: var(--muted); font-size: 12px; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mcard { border-radius: 16px; background: var(--panel); border: 1px solid var(--line2); box-shadow: var(--shadow-sm); padding: 6px 6px 8px; transition: transform .15s, box-shadow .2s, border-color .2s; }
.mcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mcard.kept { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow-sm); }
.mthumb { position: relative; aspect-ratio: 16 / 9; border-radius: 11px; overflow: hidden; background: linear-gradient(135deg, #2a2a2e, #161618); cursor: pointer; }
.mthumb.tall { aspect-ratio: 9 / 12; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mthumb .dur, .mthumb .stars, .mthumb .cbadge, .mthumb .knum, .mthumb .fun { position: absolute; font-size: 11px; font-weight: 750; border-radius: 6px; padding: 2px 6px; }
.mthumb .dur { right: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; }
.mthumb .stars { left: 6px; bottom: 6px; color: #FFD23F; text-shadow: 0 1px 4px rgba(0,0,0,.8); letter-spacing: -1px; }
.mthumb .cbadge { right: 6px; top: 6px; background: var(--violet); color: #fff; }
.mthumb .knum { left: 6px; top: 6px; background: var(--accent); color: #fff; min-width: 22px; text-align: center; }
.mthumb .fun { left: 34px; top: 4px; font-size: 16px; padding: 0; }
.mcard:not(.kept) .mthumb .fun { left: 6px; }
.mmeta { padding: 7px 4px 0; }
.mmeta .mt { font-size: 12.5px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.mmeta .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.mmeta .chips i { font-style: normal; font-size: 10.5px; font-weight: 650; padding: 1px 6px; border-radius: 999px; background: var(--panel2); border: 1px solid var(--line2); color: var(--ink2); }
.macts { display: flex; gap: 4px; padding: 7px 2px 0; }
.macts .tgl.ico { width: 30px; padding: 0; justify-content: center; font-size: 13px; }
.macts .tgl.ico.on { background: var(--violet-soft); border-color: transparent; }
.medit { display: grid; gap: 6px; margin-top: 8px; }
.medit .trim { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); font-weight: 650; }
.medit .trim button { height: 24px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--line); background: var(--panel2); font-size: 11.5px; font-weight: 700; }
.medit input, .medit textarea { width: 100%; height: 30px; padding: 0 9px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-size: 12px; outline: none; }
.medit textarea { height: 48px; padding: 6px 9px; resize: vertical; }
.fmtpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.fmtpick button { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); }
.fmtpick button.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--panel); }
.fmtpick i { grid-row: 1 / 3; border-radius: 4px; background: var(--ink2); opacity: .8; }
.fmtpick .r169 { width: 40px; height: 23px; } .fmtpick .r916 { width: 18px; height: 32px; margin: 0 11px; }
.fmtpick b { font-size: 14px; } .fmtpick span { font-size: 12px; color: var(--muted); }
.gonext { display: flex; align-items: center; gap: 14px; margin: -6px 0 24px; } .gonext span { color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- Add footage */
.addbtn { height: 40px; }
.dropzone { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(15,14,12,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.dropzone .dz-in { width: min(640px, 100%); padding: 48px 32px; border-radius: 30px; text-align: center; background: var(--panel); border: 3px dashed var(--accent); box-shadow: var(--shadow-lg); }
.dropzone .dz-ic { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.dropzone .dz-ic svg { width: 38px; height: 38px; }
.dropzone h2 { margin: 0 0 8px; font: 400 44px/1 var(--display); } .dropzone h2 em { font-style: italic; color: var(--accent); }
.dropzone p { margin: 0; color: var(--ink2); font-size: 15px; }
.upl .what { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); margin: 6px 0 12px; }
.upl .what b { font: 400 24px/1 var(--display); } .upl .what span { color: var(--muted); font-size: 13px; }
.upl .what .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 20px; flex: none; }
.upl .files { display: grid; gap: 6px; max-height: 230px; overflow: auto; margin: 10px 0; }
.upl .f { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--panel2); font-size: 12.5px; }
.upl .f .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.upl .f .s { color: var(--muted); font-variant-numeric: tabular-nums; }
.upl .f .p { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.upl .f .p i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.upl .f.done .p i { background: var(--good); }
.upl .f.skip { opacity: .5; }
.upl .dest { font-size: 12px; color: var(--muted); margin-top: 4px; }
.upl .dest code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--panel2); padding: 1px 5px; border-radius: 5px; }
.upl .field input { width: 100%; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); outline: none; font-size: 14px; }
.blank .btn { margin-top: 18px; }
@media (max-width: 960px) { .addbtn { padding: 0 12px; } }
.layout .blank { grid-column: 1 / -1; }
body.blank-mode #copyBtn, body.blank-mode #sendBtn, body.blank-mode #saved { display: none; }


/* ---------------------------------------------------------------- How to use (the guide) */
.guide-scrim { z-index: 90; }
.guide { width: min(900px, 100%); min-width: 0; max-height: min(720px, 92vh); display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); border-radius: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; }
.g-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px 14px 24px; border-bottom: 1px solid var(--line2); }
.g-top .aec { height: 26px; width: auto; }
.g-name { flex: 1; padding-left: 14px; border-left: 1px solid var(--line); font: 400 22px/1 var(--display); }
.g-name em { font-style: italic; color: var(--accent); }
.g-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel2); font-size: 14px; color: var(--muted); }
.g-x:hover { color: var(--ink); border-color: var(--ink2); }
.g-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 0; }
.g-rail { display: grid; align-content: start; gap: 2px; padding: 16px 10px; border-right: 1px solid var(--line2); background: var(--panel2); overflow: auto; }
.g-tab { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: none; text-align: left; font-weight: 650; color: var(--ink2); }
.g-tab span { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--line2); color: var(--muted); }
.g-tab:hover { background: var(--panel); }
.g-tab.on { background: var(--panel); color: var(--ink); box-shadow: var(--shadow-sm); }
.g-tab.on span { background: var(--accent); color: #fff; }
.g-main { overflow: auto; padding: 26px 30px 22px; }
.g-slide.in { animation: gin .35s cubic-bezier(.2,.9,.3,1); }
@keyframes gin { from { opacity: 0; transform: translateX(14px); } }
.g-slide h2 { margin: 0 0 8px; font: 400 40px/1.02 var(--display); letter-spacing: -0.01em; }
.g-slide h2 em { font-style: italic; color: var(--accent); }
.g-lead { margin: 0 0 18px; font-size: 15.5px; color: var(--ink2); max-width: 560px; }
.g-small { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.g-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.g-list li { position: relative; padding: 11px 14px 11px 40px; border-radius: 14px; background: var(--panel2); border: 1px solid var(--line2); font-size: 14.5px; color: var(--ink2); }
.g-list li::before { content: ""; position: absolute; left: 16px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.g-list b { color: var(--ink); }
.g-tip { margin-top: 14px; padding: 11px 14px; border-radius: 14px; background: var(--violet-soft); color: var(--ink2); font-size: 13.5px; }
.g-tip b { color: var(--violet); }
.g-cta { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.g-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.g-flow div { position: relative; display: grid; justify-items: center; gap: 6px; padding: 18px 10px 16px; border-radius: 18px; background: var(--panel2); border: 1px solid var(--line2); text-align: center; }
.g-flow i { font-style: normal; font-size: 30px; line-height: 1; }
.g-flow b { position: absolute; left: 10px; top: 9px; font-size: 11px; color: var(--muted); }
.g-flow span { font-weight: 700; font-size: 13.5px; }
.g-split { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.g-card { border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.g-thumb { position: relative; height: 170px; display: grid; place-items: center; background: linear-gradient(160deg, #3a2f2a, #1c1714 70%); }
.g-thumb b { font: 900 26px/0.95 var(--ui); color: #fff; text-align: center; letter-spacing: -0.01em; }
.g-thumb b em { font-style: normal; color: #FFD23F; }
.g-thumb span { position: absolute; left: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #111; font-size: 12px; font-weight: 800; }
.g-meta { padding: 10px 12px 12px; display: grid; gap: 2px; }
.g-meta small { color: var(--muted); font-size: 11.5px; }
.g-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.g-acts span { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; }
.g-acts span.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.g-steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.g-step { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 1px; align-items: center; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel2); text-align: left; }
.g-step span { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-size: 12px; font-weight: 800; color: var(--accent); }
.g-step b { font-size: 14px; }
.g-step i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.3; }
.g-step:not(:disabled):hover { border-color: var(--accent); background: var(--panel); }
.g-step:not(:disabled):hover span { background: var(--accent); color: #fff; border-color: var(--accent); }
.g-check { display: grid; gap: 8px; }
.g-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--line2); background: var(--panel2); }
.g-row > i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--line2); color: var(--muted); }
.g-row.ok > i { background: var(--good-soft); color: var(--good); }
.g-row.todo > i { background: var(--accent-soft); color: var(--accent); }
.g-row.opt > i { background: var(--violet-soft); color: var(--violet); }
.guide :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.guide:focus { outline: none; }
.g-row div { display: grid; gap: 1px; min-width: 0; }
.g-row b { font-size: 14px; }
.g-row span { font-size: 12.5px; color: var(--muted); }
.g-row .btn { white-space: nowrap; }
.g-keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.g-keys div { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line2); }
.g-keys span { color: var(--ink2); font-size: 13.5px; }
kbd { min-width: 46px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--panel); font: 700 12px/1.2 var(--ui); text-align: center; }
.g-credit { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line2); display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.g-credit .aec { height: 30px; width: auto; }
.g-credit b { color: var(--ink); }
.g-foot { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line2); }
.g-dots { flex: 1; display: flex; justify-content: center; gap: 7px; }
.g-dot { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); transition: width .2s, background .2s; }
.g-dot.on { width: 24px; background: var(--accent); }
.g-short { display: none; }
.g-flash { animation: gflash 1.6s ease-out; }
@keyframes gflash { 0%, 30% { box-shadow: 0 0 0 4px var(--accent), var(--shadow); } 100% { box-shadow: 0 0 0 0 transparent, var(--shadow); } }

/* the strip that shows while the Reel Lab program is unreachable */
.lostbar { position: fixed; z-index: 85; left: 50%; top: 76px; transform: translateX(-50%); width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 14px 12px 18px; border-radius: 18px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); }
.lostbar span { flex: 1; min-width: 220px; font-size: 13px; opacity: .85; }
.lostbar code { padding: 1px 6px; border-radius: 6px; background: rgba(127,127,127,.25); }
.lostbar .btn.sm { background: var(--bg); color: var(--ink); border-color: transparent; }
.blank pre + .btn, .blank .btn + .btn { margin-top: 14px; }

@media (max-width: 1180px) { .maker span { display: none; } .maker { padding-left: 10px; } }
@media (max-width: 760px) {
  .g-body { grid-template-columns: minmax(0, 1fr); }
  .g-rail { display: none; }
  .g-main { padding: 20px 18px 16px; }
  .g-slide h2 { font-size: 32px; }
  .g-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-split { grid-template-columns: minmax(0, 1fr); }
  .g-split .g-card { max-width: 220px; }
  .g-row { grid-template-columns: auto minmax(0, 1fr); }
  .g-row .btn { grid-column: 2; justify-self: start; }
  .g-foot .btn { padding: 0 14px; }
  .guide { max-height: 94vh; border-radius: 22px; }
  .guide-scrim { padding: 12px; }
  .g-full { display: none; } .g-short { display: inline; }
  .g-dots { gap: 5px; } .g-dot.on { width: 16px; }
  .g-foot { padding: 12px 14px; gap: 8px; }
  .g-top { padding: 12px 12px 12px 16px; gap: 10px; } .g-name { font-size: 19px; padding-left: 10px; } .g-top .aec { height: 22px; }
}
@media (max-width: 960px) { .helpbtn .lbl { display: none; } .helpbtn { padding: 0 6px; } .maker .aec { height: 20px; } }


/* ---------------------------------------------------------------- share it, get 7 days free */
.share { display: grid; gap: 12px; }
.share-top { display: flex; align-items: center; gap: 14px; }
.share-gift { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; font-size: 28px; background: linear-gradient(140deg, var(--accent-soft), var(--violet-soft)); }
.share-kick { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.share h3 { margin: 2px 0 0; font: 400 32px/1.02 var(--display); }
.share h3 em { font-style: italic; color: var(--accent); }
.share p { margin: 0; color: var(--ink2); font-size: 14.5px; max-width: 620px; }
.share p b { color: var(--ink); }
.share .share-lead { color: var(--good); font-weight: 700; }
.share-tags { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.share-tags a { display: grid; gap: 1px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); color: inherit; text-decoration: none; }
.share-tags a:hover { border-color: var(--accent); }
.share-tags i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.share-tags b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.share-acts a.btn { text-decoration: none; }
.share-acts a.btn.ghost { color: var(--ink); }
.share-panel { margin-top: 18px; background: linear-gradient(160deg, var(--panel) 55%, color-mix(in srgb, var(--accent-soft) 70%, var(--panel))); }
.share-modal { position: relative; width: min(600px, 100%); }
.share-modal .g-x { position: absolute; right: 16px; top: 16px; }
.share-modal .g-credit { margin-top: 18px; }

/* ---------------------------------------------------------------- the web version (www.reellab.aiempoweredclub.com) */
body.web .tgl.more, body.web #copyBtn { display: none !important; }
.blank .blank-small { margin-top: 22px; font-size: 14px; color: var(--muted); }
.blank .blank-small a { color: var(--accent); font-weight: 700; }
.prompt-modal { width: min(720px, 100%); }
.prompt-modal pre { max-height: 300px; }
.how3 { margin: 0 0 14px; padding-left: 22px; color: var(--ink2); display: grid; gap: 4px; }
.how3 b { color: var(--ink); }
.music-add { display: inline-flex; cursor: pointer; }
.music-note { color: var(--muted); font-size: 13px; margin-left: 8px; }
.menu .it.rm { margin-top: 6px; border-top: 1px solid var(--line2); color: var(--accent); }
.menu .it.rm .t { font-weight: 650; }
