/* Demoripple design tokens. Change colours here to re-theme the whole product. */
:root {
  --navy-950: #FFFFFF; --navy-900: #F2F3FF; --navy-800: #EEF0FF; --navy-700: #D9DCFB;
  --primary: #6366F1; --primary-600: #4F46E5; --primary-50: #F0F1FF; --primary-100: #DCDEFC;
  --berry: #EC4899; --amber: #F59E0B; --amber-50: #FEF3DC;
  --bg: #FAF8FF; --surface: #FFFFFF; --line: #E8E7F5; --line-strong: #D3D2E8;
  --ink: #0F172A; --ink-2: #334155; --muted: #64748B;
  --ok: #10B981; --ok-50: #E3F8F0; --warn: #B7791F; --warn-50: #FEF3DC; --bad: #EF4444; --bad-50: #FEECEC;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(99,102,241,.06), 0 2px 8px rgba(99,102,241,.06);
  --shadow-lg: 0 10px 30px rgba(99,102,241,.16);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Outfit", "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14.5px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--navy-950); color: var(--ink-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 22px; letter-spacing: -.01em; padding: 4px 8px 18px; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 10px 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 99px; color: var(--ink-2); font-weight: 500; }
.nav a:hover { background: var(--navy-800); text-decoration: none; color: var(--primary-600); }
.nav a.on { background: var(--primary-50); color: var(--primary-600); font-weight: 700; }
.nav .ico { width: 18px; text-align: center; opacity: .85; }
.side-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.env { border: 1px solid var(--line-strong); border-radius: 99px; padding: 1px 9px; }
.link { background: none; border: 0; color: var(--primary-600); cursor: pointer; padding: 0; font: inherit; } .link:hover { color: var(--berry); text-decoration: underline; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.top { height: 56px; display: flex; align-items: center; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
#crumbs { color: var(--muted); font-size: 13.5px; } #crumbs a { color: var(--muted); } #crumbs a:hover { color: var(--ink); } #crumbs b { color: var(--ink); font-weight: 600; } #crumbs .sep { margin: 0 8px; color: var(--line-strong); }
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; }
body.bare .shell { display: block; } body.bare .side, body.bare .top { display: none; } body.bare main { max-width: none; padding: 0; }

/* ---------- type ---------- */
h1 { font-family: var(--font-head); font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 4px; font-weight: 700; }
h2 { font-family: var(--font-head); font-size: 18px; letter-spacing: -.01em; margin: 0 0 6px; font-weight: 650; } h3 { font-size: 14px; margin: 0 0 6px; font-weight: 650; }
.sub { color: var(--muted); margin: 0 0 22px; } .sub.tight { margin: 0; } .small { font-size: 13px; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; } .pagehead .sub { margin: 0; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card > h2:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); } .g21 { grid-template-columns: 2fr 1fr; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .spread { justify-content: space-between; }
.empty { color: var(--muted); text-align: center; padding: 36px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.note { background: var(--primary-50); border: 1px solid var(--primary-100); color: var(--ink-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13.5px; }
.note.warn { background: var(--warn-50); border-color: #F5DFA6; } .note.bad { background: var(--bad-50); border-color: #F8C9C4; color: #7A1A12; }

/* ---------- forms ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 5px; color: var(--ink-2); }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink); transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: #98A1B8; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
textarea { resize: vertical; min-height: 84px; } textarea:disabled, input:disabled, select:disabled { background: #F2F4F9; color: var(--muted); cursor: not-allowed; }
input[type=color] { width: 100%; height: 40px; padding: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
input[type=file] { font-size: 13px; }
button, .btn { font: inherit; font-weight: 600; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 99px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; line-height: 1.3; transition: background .12s, border-color .12s, box-shadow .12s; }
button:hover:not(:disabled), .btn:hover { border-color: var(--primary); text-decoration: none; background: var(--primary-50); }
button.primary, .btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(99,102,241,.35); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
button.ghost { border-color: transparent; background: none; color: var(--ink-2); } button.ghost:hover:not(:disabled) { background: #EDF0F7; border-color: transparent; }
button:disabled { opacity: .5; cursor: not-allowed; }
.spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: sp .7s linear infinite; } @keyframes sp { to { transform: rotate(360deg); } }

/* ---------- pills, badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: #EEF0F6; color: var(--ink-2); margin-right: 6px; }
.pill.ok { background: var(--ok-50); color: var(--ok); } .pill.warn { background: var(--warn-50); color: var(--warn); } .pill.bad { background: var(--bad-50); color: var(--bad); } .pill.info { background: var(--primary-50); color: var(--primary-600); }
.badge { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #EEF0F6; color: var(--ink-2); }
.badge.intro, .badge.outro { background: var(--amber-50); color: var(--warn); } .badge.step { background: var(--primary-50); color: var(--primary-600); }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.proj { display: block; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .15s, border-color .15s, transform .15s; }
.proj:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-1px); text-decoration: none; }
.proj .logo-box { height: 120px; background: linear-gradient(180deg, #FAFBFE, #F1F4FA); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.proj .logo-box img { max-width: 62%; max-height: 62%; object-fit: contain; } .proj .meta { padding: 14px 16px; }
.avatar { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary-600); display: grid; place-items: center; font-weight: 700; font-size: 18px; }

/* ---------- tabs and stepper ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tab { padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; margin-bottom: -1px; } .tab:hover { color: var(--ink); } .tab.on { color: var(--primary-600); border-color: var(--primary); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; counter-reset: s; }
.st { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: inherit; cursor: pointer; }
.st:hover { text-decoration: none; border-color: var(--primary); }
.st .n { width: 28px; height: 28px; border-radius: 50%; background: #EEF0F6; color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.st b { display: block; font-size: 14px; line-height: 1.25; } .st small { color: var(--muted); font-size: 12.5px; }
.st.on { border-color: var(--primary); background: var(--primary-50); } .st.on .n { background: var(--primary); color: #fff; }
.st.done .n { background: var(--ok); color: #fff; } .st.locked { opacity: .55; cursor: not-allowed; pointer-events: none; }

/* ---------- upload, activity ---------- */
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 34px 22px; text-align: center; color: var(--muted); background: #FBFCFE; transition: all .12s; }
.drop.over { border-color: var(--primary); background: var(--primary-50); } .drop b { color: var(--ink); } .drop label { display: inline; color: var(--primary); cursor: pointer; font-weight: 600; }
.progress { height: 8px; background: #E8EBF4; border-radius: 99px; overflow: hidden; margin-top: 14px; } .progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--berry)); transition: width .2s; }
.activity { margin-top: 16px; padding: 14px 16px; background: #F4F4FF; border: 1px solid #DCDEFC; border-radius: var(--radius-sm); } .activity.err { background: #FFF1EF; border-color: #FFC9C2; } .activity.err .progress > i { background: #E5483A; }
.prog-top { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink); } .prog-top b { color: var(--primary); font-variant-numeric: tabular-nums; }
.activity .progress { margin-top: 10px; background: #DDE3FA; } .activity .progress > i { transition: width .6s ease; }
.vlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-top: 14px; }
.vcard { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; } .vcard:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px #6366F133; background: #F7F7FF; }
.vcard input { accent-color: var(--primary); } .vbody { flex: 1; display: grid; gap: 4px; } .vtop { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .vuse { font-size: 12.5px; color: #5A6480; line-height: 1.4; }
.pill.soft { background: #EEF1FF; color: var(--primary); }
.vplay { width: 34px; height: 34px; border-radius: 50%; padding: 0; flex: none; display: grid; place-items: center; }
.more { margin-top: 16px; } .more summary { cursor: pointer; font-weight: 600; color: var(--primary); }

/* ---------- script ---------- */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: block; border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; background: #fff; font-weight: 400; margin: 0; position: relative; }
.choice:hover { border-color: var(--primary-100); } .choice.on { border-color: var(--primary); background: var(--primary-50); }
.choice input { position: absolute; opacity: 0; } .choice b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 4px; } .choice span { color: var(--muted); font-size: 13.5px; }
.scriptbox { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #FBFCFE; padding: 18px 20px; max-height: 520px; overflow: auto; user-select: text; }
.scriptbox .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--primary-600); margin-top: 14px; display: block; } .scriptbox .tag:first-child { margin-top: 0; }
.scriptbox p { margin: 2px 0 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.meter { display: flex; gap: 6px; align-items: center; } .meter i { width: 26px; height: 8px; border-radius: 4px; background: var(--primary); } .meter i.off { background: #DDE1EC; }
.quote { border-left: 3px solid var(--amber); padding: 4px 12px; color: var(--ink-2); background: var(--amber-50); border-radius: 0 6px 6px 0; font-size: 13.5px; }

/* ---------- storyboard ---------- */
.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.scene { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.shot { aspect-ratio: 16/9; background: #0B1228 center/cover no-repeat; position: relative; display: grid; place-items: center; color: #fff; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.shot.card { background: #fff; color: var(--ink); text-align: center; padding: 20px; } .shot.card img { width: auto; height: auto; max-width: 58%; max-height: 44%; object-fit: contain; } .shot.card .t { font-weight: 700; font-size: 18px; margin-top: 12px; line-height: 1.25; }
.shot .num { position: absolute; top: 10px; left: 10px; background: rgba(11,18,40,.82); color: #fff; font-weight: 700; font-size: 12px; border-radius: 6px; padding: 2px 9px; }
.scene .body { padding: 14px 16px 16px; } .scene .body h3 { font-size: 15.5px; margin: 6px 0 6px; } .scene .body p { margin: 0; color: var(--ink-2); }
.scene .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- misc ---------- */
.crop-wrap { position: relative; display: inline-block; max-width: 100%; background: #000; line-height: 0; border-radius: 8px; overflow: hidden; } .crop-wrap img { max-width: 100%; display: block; }
.crop-box { position: absolute; border: 2px solid var(--amber); box-shadow: 0 0 0 9999px rgba(0,0,0,.55); pointer-events: none; }
.notes { font-size: 13px; color: var(--muted); padding-left: 18px; } .notes li { margin: 2px 0; }
video { width: 100%; border-radius: var(--radius-sm); background: #000; }
table.list { width: 100%; border-collapse: collapse; } table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFBFE; }
table.list td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } table.list tr:last-child td { border-bottom: 0; } table.list tr:hover td { background: #FAFBFE; }
.tablecard { padding: 0; overflow: hidden; }
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 50; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 380px; font-size: 14px; border-left: 4px solid var(--ok); } .toast.bad { border-left-color: var(--bad); }
.swatches { display: flex; gap: 6px; } .sw { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }


@media (max-width: 1000px) { .scenes, .choices, .g21 { grid-template-columns: 1fr; } .stepper { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .shell { grid-template-columns: 1fr; } .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 10px 14px; } .nav, .side-foot { display: none; } .logo { padding: 0; } main { padding: 20px 16px 48px; } .top { padding: 0 16px; } .g2, .g3, .g4 { grid-template-columns: 1fr; } .auth { grid-template-columns: 1fr; } .auth-art { display: none; } }

/* ---------- recorder ---------- */
.recbox { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #F7F8FF; margin-top: 14px; }
.recidle button, .reclive button { margin: 0 0 10px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #E5483A; display: inline-block; margin-right: 6px; }
.dot.live { animation: blink 1s infinite; } @keyframes blink { 50% { opacity: .25; } }
.reclive .mono { font: 600 15px ui-monospace, Consolas, monospace; margin-left: 6px; }
.recreview video { width: 100%; max-height: 360px; background: #000; border-radius: 10px; }
.or { text-align: center; margin: 14px 0; color: #7B849C; font-size: 13px; }

/* voice choice: a clear tick instead of a raw radio button */
.vcard input { position: absolute; opacity: 0; pointer-events: none; } .vcard { position: relative; }
.vcard .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #B8C0D8; flex: none; display: grid; place-items: center; background: #fff; }
.vcard:has(input:checked) .tick { background: var(--primary); border-color: var(--primary); } .vcard:has(input:checked) .tick::after { content: "✓"; color: #fff; font-size: 13px; font-weight: 700; line-height: 1; }
.vcard:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.vcard.rec { border-color: #FFD27A; } .pill.star { background: #FFF4DB; color: #8A5A00; }
.vh { margin: 20px 0 0; font-size: 14px; color: var(--ink); }

/* ---------- Demoripple layout (from the Stitch designs) ---------- */
body { background: radial-gradient(900px 500px at 100% 0%, #FBE9F5 0%, transparent 60%), var(--bg); }
.newbtn { display: flex; justify-content: center; margin: 0 0 14px; padding: 11px 14px; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--berry)); color: #fff !important; font-weight: 700; box-shadow: 0 6px 16px rgba(236,72,153,.28); }
.newbtn:hover { text-decoration: none; filter: brightness(1.05); }
.top { background: rgba(255,255,255,.8); backdrop-filter: blur(8px); }
button.wide, .btn.wide { width: 100%; justify-content: center; padding: 11px 16px; }
.chk { display: flex; gap: 8px; align-items: center; margin: 10px 0 16px; font-weight: 400; }

/* sign in: one centred card on a soft gradient */
.auth { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 32px; background: radial-gradient(700px 420px at 15% 10%, #E4E5FF 0%, transparent 60%), radial-gradient(600px 400px at 90% 90%, #FCE1F0 0%, transparent 60%), var(--bg); }
.auth-card { width: min(420px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }
.auth-card .logo { padding: 0 0 18px; }
.auth-card h1 { font-size: 26px; } .auth-card .sub { margin-bottom: 22px; }
.auth-points { list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: 13.5px; display: grid; gap: 6px; } .auth-points li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }

/* projects */
.pagehead h1 .pill { vertical-align: middle; margin-left: 8px; font-family: var(--font); font-size: 12px; }
.proj { border-radius: 20px; } .proj .logo-box { position: relative; background: linear-gradient(135deg, #EEF0FF, #FDEBF6); }
.chip { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: rgba(255,255,255,.9); color: var(--primary-600); } .chip.ok { color: var(--ok); }

/* step bar as pills */
.stepper { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 6px; gap: 6px; box-shadow: var(--shadow); }
.st { border: 0; box-shadow: none; border-radius: 99px; padding: 8px 14px; background: transparent; }
.st.on { background: var(--primary); color: #fff; } .st.on small { color: #E0E1FF; } .st.on .n { background: #fff; color: var(--primary-600); }
.st:hover { border: 0; background: var(--primary-50); } .st.on:hover { background: var(--primary); }

/* render page: choices on the left, render and result on the right */
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.split-side { position: sticky; top: 76px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .split-side { position: static; } }

.card, .scene, .scriptbox { border-radius: 20px; }
.vcard { border-radius: 16px; }

/* upload: record and upload side by side */
.twin { align-items: stretch; } .twin .card { margin: 0; display: flex; flex-direction: column; } .twin .recbox, .twin .drop { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 4px; }
.twin .drop { text-align: center; }
/* storyboard: narration as a speech bubble; script blocks as soft scene cards */
.scene .say { background: var(--primary-50); border-radius: 14px 14px 14px 4px; padding: 10px 14px; color: var(--ink-2); font-size: 14px; }
.scriptbox { background: #fff; padding: 12px; }
.scriptbox .tag { margin: 12px 0 0; padding: 10px 14px 0; background: var(--primary-50); border-radius: 14px 14px 0 0; } .scriptbox p { margin: 0 0 0; padding: 4px 14px 12px; background: var(--primary-50); border-radius: 0 0 14px 14px; }
.scriptbox .tag:first-child { margin-top: 0; }
.shot.card { border: 0; margin: 0; box-shadow: none; border-radius: 0; }

/* script review: observations the customer can turn into a change request */
.tips { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: #FFFBF1; padding: 12px 16px; }
.tips summary { cursor: pointer; font-weight: 700; color: #8A5A00; }
.tip { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); } .tip:first-of-type { margin-top: 10px; }
.tip button { flex: none; font-size: 12.5px; padding: 5px 12px; color: var(--primary-600); border: 1px solid var(--primary-100); }
.tips > .sub { margin-top: 8px; }

/* inline validation */
.ferr { color: var(--bad); font-size: 13px; font-weight: 500; margin-top: 6px; flex-basis: 100%; line-height: 1.4; }
.ferr::before { content: "! "; font-weight: 800; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-50); }
.drop.invalid, .choices.invalid { border-color: var(--bad); background: var(--bad-50); }

/* sign-in: Google button, divider, password fallback */
.sso { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 11px 16px; font-weight: 600; cursor: pointer; margin-top: 18px; }
.sso:hover { background: #F5F3FF; border-color: var(--primary-100); }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--ink-3, #6b7280); font-size: 12.5px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pwalt { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.pwalt summary { cursor: pointer; font-size: 13px; color: var(--primary-600); font-weight: 600; }

/* ---- Sign-in page: two columns, 8px rhythm, one left edge ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); place-content: normal; justify-items: stretch; gap: 0; padding: 0; background: #fff; }
.auth-main { display: grid; place-items: center; padding: 48px 32px; }
.auth-card { width: 100%; max-width: 400px; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.auth-card .logo { padding: 0 0 40px; }
.auth-card h1 { font-size: 28px; line-height: 1.2; margin: 0 0 8px; }
.auth-card .sub { color: #475569; font-size: 15px; line-height: 1.5; margin: 0 0 32px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text] { padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.auth-card input::placeholder { color: #64748B; }
.auth-card .sso { margin: 0; padding: 12px 16px; border-color: var(--line-strong); }
.auth-card .or { margin: 24px 0; color: #475569; }
.auth-card button.primary.wide { padding: 12px 16px; box-shadow: none; }
.auth-card #msent { margin: 16px 0 0; color: #475569; font-size: 13.5px; line-height: 1.5; }
.auth-card .pwalt { margin-top: 24px; padding-top: 16px; }
.auth-card .pwalt form, .auth-card .pwalt > label:first-of-type { margin-top: 16px; }
.auth-card .chk { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: -4px 0 16px; }
.auth-art { background: linear-gradient(160deg, #4F46E5 0%, #3730A3 100%); color: #fff; display: grid; align-items: center; padding: 64px; }
.auth-art-in { max-width: 440px; }
.auth-art h2 { font-family: var(--font-head); font-size: 34px; line-height: 1.2; font-weight: 700; margin: 0 0 32px; color: #fff; }
.auth-art .auth-points { color: #E0E7FF; font-size: 16px; line-height: 1.5; gap: 16px; }
.auth-art .auth-points li { display: flex; gap: 12px; align-items: flex-start; }
.auth-art .auth-points li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; font-size: 13px; margin: 0; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-main { padding: 32px 20px; } }

/* =====================================================================
   Design pass (2026-11-29): one indigo, neutral slate surfaces, 8px rhythm.
   Same system as the sign-in page. Later rules override earlier ones.
   ===================================================================== */
:root {
  --primary: #4F46E5; --primary-600: #4338CA; --primary-50: #EEF2FF; --primary-100: #E0E7FF;
  --bg: #F8FAFC; --surface: #FFFFFF; --line: #E2E8F0; --line-strong: #CBD5E1;
  --ink: #0F172A; --ink-2: #334155; --muted: #475569;
  --ok: #059669; --ok-50: #ECFDF5; --bad: #DC2626; --bad-50: #FEF2F2; --warn: #B45309; --warn-50: #FFFBEB;
  --radius: 12px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.05);
  --shadow-lg: 0 8px 24px rgba(15,23,42,.10);
  --navy-800: #F1F5F9;
}
body { background: var(--bg); font-size: 15px; }
::placeholder { color: #64748B !important; }

/* shell */
.side { padding: 24px 16px; }
.logo { padding: 0 8px 24px; }
.newbtn { background: var(--primary); box-shadow: none; padding: 12px 16px; margin: 0 0 16px; font-weight: 600; }
.newbtn:hover { background: var(--primary-600); filter: none; }
.nav { gap: 4px; }
.nav a { border-radius: 8px; padding: 10px 12px; }
.nav a:hover { background: #F1F5F9; color: var(--ink); }
.nav a.on { background: var(--primary-50); color: var(--primary-600); }
.nav .grp { margin: 24px 12px 8px; color: #475569; }
.side-foot { padding: 16px 8px 0; }
.top { background: #fff; backdrop-filter: none; padding: 0 32px; }
main { padding: 32px 32px 64px; }

/* type and page heads */
h1 { font-size: 28px; }
h2 { font-size: 18px; margin: 0 0 8px; }
.sub { margin: 0 0 24px; }
.pagehead { margin-bottom: 24px; align-items: center; }

/* surfaces */
.card { padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.grid { gap: 16px; align-items: start; }
.proj .logo-box { background: #F1F5F9; }
.proj:hover { transform: none; }
.proj .meta { padding: 16px; }
.empty { padding: 48px 24px; }

/* forms */
label { margin: 0 0 8px; color: var(--ink); }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea { padding: 10px 14px; border-radius: var(--radius-sm); }
input[type=file] { width: 100%; padding: 8px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: #F8FAFC; color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); border-radius: 99px; padding: 6px 14px; margin-right: 12px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--primary); background: var(--primary-50); }
input[type=color] { height: 44px; border-radius: var(--radius-sm); }
button.primary, .btn.primary { box-shadow: none; }
button.ghost:hover:not(:disabled) { background: #F1F5F9; }

/* pills and badges */
.pill { background: #F1F5F9; color: var(--ink-2); }
.pill.info, .pill.soft { background: var(--primary-50); color: var(--primary-600); }

/* tabs and stepper */
.tabs { gap: 8px; margin-bottom: 24px; }
.tab { padding: 12px 16px; color: var(--muted); }
.stepper { gap: 12px; margin-bottom: 24px; }
.st { border-radius: var(--radius); box-shadow: none; padding: 14px 16px; }
.st:hover { border-color: var(--line-strong); }
.st.on { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.st.on .n { background: var(--primary); color: #fff; }

/* upload, progress */
.drop { background: #F8FAFC; padding: 40px 24px; }
.progress > i { background: var(--primary); }
.activity { background: var(--primary-50); border-color: var(--primary-100); }
.activity .progress { background: var(--primary-100); }
.recbox { background: #F8FAFC; }

/* tables, toasts */
table.list th, table.list td { padding: 14px 16px; }
table.list th { background: #F8FAFC; color: #475569; }
table.list tr:hover td { background: #F8FAFC; }
.toast { border-radius: var(--radius-sm); }

@media (max-width: 860px) { main { padding: 24px 16px 48px; } .top { padding: 0 16px; } .stepper { grid-template-columns: 1fr; } }
.stepper { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.st { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.st.on { color: var(--ink); } .st.on small { color: var(--muted); }
.st:hover { border: 1px solid var(--line-strong); background: #fff; } .st.on:hover { background: #fff; border-color: var(--primary); }
.st.done .n { background: var(--ok); color: #fff; }
/* new-project row: input and button share one height */
.card .row > input[type=text] { flex: 1; min-width: 220px; }
.card .row > button { padding-top: 11px; padding-bottom: 11px; }
input[type=file] { height: 44px; display: flex; align-items: center; }

/* ---- Storyboard ---- */
.card, .scene, .scriptbox { border-radius: var(--radius); }
.side-foot { justify-content: flex-end; }
.scenes { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; align-items: stretch; }
.scene { box-shadow: var(--shadow); }
.scene .shot { border-bottom: 1px solid var(--line); background: #F1F5F9; }
.shot.card { background: #F8FAFC; border-bottom: 1px solid var(--line); }
.shot .num { top: 12px; left: 12px; width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--primary); display: grid; place-items: center; font-size: 13px; box-shadow: 0 0 0 3px #fff; }
.scene .body { padding: 20px; display: grid; gap: 12px; align-content: start; flex: 1; }
.scene .body h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.scene .meta { gap: 8px; }
.scene .say { background: none; border-radius: 0; border-left: 3px solid var(--primary-100); padding: 2px 0 2px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.scene .say::before { content: "Narration"; display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.badge { border-radius: 99px; padding: 3px 10px; }
.shot.card { background: #fff; }

/* ---- Knowledge ---- */
input[type=file][hidden] { display: none; }
.drop { padding: 40px 24px; line-height: 1.8; border-radius: var(--radius); }
.drop small { color: var(--muted); }
.klist { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.krow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.krow:last-child { border-bottom: 0; }
.krow button.ghost { padding: 6px 12px; color: var(--bad); }
.krow button.ghost:hover:not(:disabled) { background: var(--bad-50); }
.knone { padding: 12px 16px; background: #F8FAFC; }
.card .grid.g2 { margin-top: 24px; }
.card textarea { min-height: 112px; }
.card .row[style*="margin-top:18px"] { margin-top: 24px !important; }

/* ---- Review step (script and scenes), make-it-yours, first-run ---- */
.scenelist { display: grid; gap: 16px; }
.srow { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.srow:last-child { border-bottom: 0; padding-bottom: 0; }
.srow .shot { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.srow .shot .num { width: 24px; height: 24px; top: 8px; left: 8px; font-size: 12px; }
.srow .shot.card { padding: 8px; } .srow .shot.card .t { font-size: 12px; margin-top: 6px; }
.srow .shot.card img { max-height: 40%; }
.sbody .tag { margin: 0 0 4px; }
.sbody p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; }
.makeit { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.makeit > div:first-child { flex: 1; min-width: 260px; }
.welcome { background: var(--primary-50); border-color: var(--primary-100); }
.wsteps { list-style: none; counter-reset: w; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wsteps li { counter-increment: w; display: grid; gap: 2px; padding-left: 40px; position: relative; }
.wsteps li::before { content: counter(w); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.wsteps li span { color: var(--muted); font-size: 13.5px; }
.stepper { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .srow { grid-template-columns: 1fr; } .wsteps { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .stepper { grid-template-columns: 1fr; } }
.sbody .tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-600); margin: 0 0 4px; }
.wsteps li { align-content: start; }
[hidden] { display: none !important; }

/* ---- Phone menu, request access, voice summary, share link ---- */
.menubtn { display: none; margin-left: auto; padding: 8px 14px; font-size: 18px; line-height: 1; }
@media (max-width: 860px) {
  .menubtn { display: inline-flex; }
  .side { flex-wrap: wrap; }
  body.menu-open .nav, body.menu-open .side-foot { display: flex; width: 100%; }
  body.menu-open .nav { padding: 16px 0 8px; flex: none; }
  body.menu-open .side-foot { justify-content: flex-start; border-top: 1px solid var(--line); margin-top: 8px; }
}
.reqline { margin: 16px 0 0; }
#reqbox { margin-top: 16px; }
.vsum { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.sharebox { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sharebox input { flex: 1; min-width: 200px; padding: 8px 12px; font-size: 13px; }
.card .g3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.invite-pill { margin-bottom: 16px; font-size: 13px; padding: 4px 12px; }

.bggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.bgtile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.bgtile:hover { border-color: #C7CBEA; }
.bgtile input { position: absolute; opacity: 0; pointer-events: none; }
.bgtile:has(input:checked) { border-color: var(--primary, #4F46E5); box-shadow: 0 0 0 3px #E0E7FF; }
.bgtile:has(input:focus-visible) { outline: 2px solid var(--primary, #4F46E5); outline-offset: 2px; }
.bgimg { display: block; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: linear-gradient(90deg, #EEF0F6, #F7F8FC, #EEF0F6); }
.bgimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bgtile b { font-size: 14px; }
.bginfo { background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0 4px; }
.bgimg{position:relative}
.bgcard{position:absolute;right:6px;bottom:6px;width:34%;height:auto;aspect-ratio:16/9;border:1px solid #fff;border-radius:4px;box-shadow:0 1px 4px rgba(0,0,0,.35)}
.g5{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}

.legal-links{margin-top:10px;font-size:12px;opacity:.7}.legal-links a{color:inherit}
.accept{display:flex;gap:8px;align-items:flex-start;font-size:13px;margin:14px 0 6px;line-height:1.45}.accept input{margin-top:3px}.needs-accept{opacity:.55;cursor:not-allowed}
.danger{color:#b42318}.danger:hover{background:#fef3f2;border-color:#fda29b}
.plan{display:flex;gap:24px;align-items:flex-end;flex-wrap:wrap;margin:14px 0}

/* sign-in / invite pages: match the public landing page */
.auth-main { background: radial-gradient(700px 380px at 0% 0%, #EEF0FF 0%, transparent 60%), #FAF8FF; }
.auth-card h1 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
.auth-card .logo { font-family: var(--font-head); }
.auth-art { background: linear-gradient(150deg, #4F46E5 0%, #7C3AED 62%, #C026D3 100%); }
.auth-art h2 { font-size: 32px; margin: 30px 0 24px; }
.art-mock { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -26px rgba(20,16,80,.7); max-width: 420px; }
.art-mock .am-bar { display: flex; gap: 6px; padding: 10px 12px; background: #FBFAFF; border-bottom: 1px solid #E6E2F5; }
.art-mock .am-bar i { width: 9px; height: 9px; border-radius: 50%; background: #E3DFF3; }
.am-stage { position: relative; aspect-ratio: 16/10; padding: 16px; background: linear-gradient(160deg, #EEF0FF, #F9EEFB); }
.am-chip { position: absolute; right: 12px; top: 10px; display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px 4px 5px; font: 700 11px var(--font-head); color: #1E1B3A; box-shadow: 0 6px 14px -8px rgba(30,27,58,.5); }
.am-chip svg { width: 18px; height: 18px; }
.am-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 26px; }
.am-grid i { display: block; height: 40px; border-radius: 9px; background: #fff; box-shadow: 0 6px 14px -10px rgba(30,27,58,.5); }
.am-grid i.hot { background: linear-gradient(135deg, #DDE0FF, #F6DDF2); }
.am-line { position: absolute; left: 16px; right: 16px; top: 98px; width: calc(100% - 32px); height: 46px; }
.am-zoom { position: absolute; left: 38%; top: 30%; width: 30%; height: 26%; border: 2.5px solid #EC4899; border-radius: 10px; }
.am-cap { position: absolute; left: 14px; right: 14px; bottom: 12px; background: rgba(30,27,58,.92); color: #fff; border-radius: 9px; padding: 7px 11px; font-size: 12px; line-height: 1.35; }
.locked .kb-points { margin: 16px 0; color: var(--ink-2); }
.locked .kb-points li::before { background: #EEF0FF; color: var(--brand-d, #4F46E5); }

/* =====================================================================
   Still Water (2026-12-03): light mist surfaces, deep teal ink, one coral action colour,
   ripple rings that spread from whatever is selected. Later rules override earlier ones.
   ===================================================================== */
:root {
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --primary: #0E7C86; --primary-600: #0B6670; --primary-50: #E3F3F3; --primary-100: #BFE3E5;
  --berry: #FF7A59; --coral: #FF7A59; --coral-d: #F2643F; --amber: #D97706; --amber-50: #FEF3DC;
  --bg: #EEF7F7; --surface: #FFFFFF; --line: #D3E8E8; --line-strong: #BCD9DB;
  --ink: #0B3B45; --ink-2: #31606C; --muted: #4B7380;
  --ok: #0F8F6B; --ok-50: #DDF5EC; --bad: #C73E3E; --bad-50: #FDECEC; --warn: #A15C07; --warn-50: #FEF3DC;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(11,59,69,.06); --shadow-lg: 0 16px 40px rgba(11,59,69,.12);
  --navy-950: #FFFFFF; --navy-900: #F4FAFA; --navy-800: #E3F3F3; --navy-700: #D3E8E8;
  --grad: #FF7A59;
  --ring: 0 0 0 5px rgba(14,124,134,.10), 0 0 0 11px rgba(14,124,134,.05);
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--ink); font-size: 15px; }
body::before { content: ""; position: fixed; right: -180px; top: -220px; width: 760px; height: 760px; border-radius: 50%; pointer-events: none; z-index: -1;
  background: repeating-radial-gradient(circle, transparent 0 52px, rgba(14,124,134,.09) 52px 53.5px);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 68%); mask-image: radial-gradient(circle, #000 25%, transparent 68%); }
::placeholder { color: #6F929D !important; }
h1, h2 { color: var(--ink); }
h1 { font-family: var(--font-head); letter-spacing: -.025em; font-weight: 800; }
h2, h3 { font-family: var(--font-head); letter-spacing: -.01em; }
a { color: var(--primary); }

/* shell */
.side { background: #fff; border-right: 1px solid var(--line); backdrop-filter: none; }
.logo, .logo span { color: var(--ink); font-family: var(--font-head); }
.nav a { color: var(--muted); border-radius: 12px; font-weight: 600; }
.nav a:hover { background: var(--primary-50); color: var(--ink); }
.nav a.on { background: #DFF1F1; color: var(--ink); box-shadow: none; }
.nav .grp { color: #5E8793; font-family: var(--font); letter-spacing: .08em; font-weight: 700; }
.side-foot { border-top: 1px solid var(--line); color: var(--muted); }
.newbtn { background: var(--coral); color: var(--ink) !important; box-shadow: 0 8px 18px -8px rgba(242,100,63,.7); border-radius: 14px; font-weight: 800; }
.newbtn:hover { background: var(--coral-d); filter: none; }
.top { background: rgba(238,247,247,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top a, #crumbs a { color: var(--muted); } #crumbs { color: var(--ink-2); }

/* surfaces */
.card, .scene, .scriptbox, .empty, .tablecard, .proj { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: none; }
.empty { border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.note { background: var(--primary-50); border-color: var(--primary-100); color: var(--ink-2); }
.note.warn { background: var(--warn-50); border-color: #F3D9A2; color: #7A4A06; }
.note.bad { background: var(--bad-50); border-color: #F2B8B8; color: #8E2B2B; }
.welcome { background: linear-gradient(135deg, #E3F3F3, #F4FAFA); border-color: var(--primary-100); }

/* forms */
label { color: var(--ink-2); font-weight: 600; }
input[type=text], input[type=password], input[type=number], input[type=email], select, textarea { background: #fff; border-color: var(--line-strong); color: var(--ink); }
select option { background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,124,134,.18); outline: none; }
textarea:disabled, input:disabled, select:disabled { background: #F2F8F8; color: var(--muted); }
input[type=color] { background: #fff; }
button, .btn { background: #fff; color: var(--ink); border-color: var(--line-strong); font-weight: 600; }
button:hover:not(:disabled), .btn:hover { background: var(--primary-50); border-color: var(--primary); }
button.primary, .btn.primary { background: var(--coral); border-color: transparent; color: var(--ink); font-weight: 800; box-shadow: 0 8px 18px -8px rgba(242,100,63,.7); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--coral-d); border-color: transparent; filter: none; }
button.ghost { background: none; color: var(--ink-2); border-color: transparent; box-shadow: none; } button.ghost:hover:not(:disabled) { background: var(--primary-50); }
.danger { color: var(--bad); } .danger:hover { background: var(--bad-50); border-color: #F2B8B8; }
.sso { background: #fff; color: var(--ink); border-color: var(--line-strong); } .sso:hover { background: var(--primary-50); border-color: var(--primary); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(14,124,134,.45); outline-offset: 2px; }

/* pills and chips */
.pill { background: #E3F0F0; color: var(--ink-2); font-family: var(--font); font-weight: 700; font-size: 12px; }
.pill.ok { background: var(--ok-50); color: var(--ok); } .pill.warn { background: var(--warn-50); color: var(--warn); } .pill.bad { background: var(--bad-50); color: var(--bad); }
.pill.info, .pill.soft { background: var(--primary-50); color: var(--primary-600); border: 1px solid var(--primary-100); }
.chip { background: #fff; color: var(--primary-600); border: 1px solid var(--primary-100); font-family: var(--font); font-weight: 700; } .chip.ok { color: var(--ok); }
.badge { font-family: var(--font); }

/* stepper: the current step is ringed */
.st { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.st:hover, .st.on:hover { background: var(--primary-50); border-color: var(--line-strong); }
.st .n { background: #E3F0F0; color: var(--ink-2); font-family: var(--font); font-weight: 800; }
.st.on { background: #fff; border: 1.5px solid var(--primary); box-shadow: var(--ring); }
.st.on .n { background: var(--primary); color: #fff; }
.st.done .n { background: var(--ok); color: #fff; }
.st small, .st.on small { color: var(--muted); }

/* upload, progress, activity, recorder */
.drop { background: #F4FAFA; border-color: var(--line-strong); color: var(--muted); }
.drop.over { background: var(--primary-50); border-color: var(--primary); }
.drop b { color: var(--ink); } .drop label, .more summary, .pwalt summary { color: var(--primary); }
.progress { background: #DDEBEB; } .progress > i { background: var(--primary); box-shadow: 0 0 0 4px rgba(14,124,134,.12); }
.activity { background: var(--primary-50); border-color: var(--primary-100); } .activity .progress { background: #fff; }
.activity.err { background: var(--bad-50); border-color: #F2B8B8; }
.prog-top { color: var(--ink); } .prog-top b { color: var(--primary-600); font-family: var(--font); }
.recbox { background: #F4FAFA; border-color: var(--line); }

/* script and scenes: only changed lines are marked, in amber */
.scriptbox { background: #F7FBFB; }
.scriptbox p, .sbody p, .scene .say { color: var(--ink); }
.scriptbox .tag, .sbody .tag { color: var(--primary-600); font-family: var(--font); font-weight: 700; }
.scene .shot { background: #E3F0F0; border-bottom: 1px solid var(--line); }
.shot.card, .shot.card .t, .shot.card b { color: var(--ink); }
.shot .num { background: var(--primary); color: #fff; box-shadow: 0 0 0 3px #fff; font-family: var(--font); }
.srow { border-bottom-color: var(--line); } .srow .shot { border-color: var(--line); }
.quote { background: var(--amber-50); border-left-color: var(--amber); color: #7A4A06; }
.scene .say { border-left-color: var(--primary-100); }
.scene .say::before { color: #5E8793; font-family: var(--font); }

/* choices, lists, tiles: the picked one gets the ripple rings */
.choice, .vcard, .krow, .bgtile { background: #fff; border-color: var(--line); }
.choice:hover, .bgtile:hover { border-color: var(--primary); }
.choice.on, .vcard:has(input:checked) { background: #fff; border: 1.5px solid var(--primary); box-shadow: var(--ring); }
.choice b, .bgtile b { color: var(--ink); } .choice span { color: var(--muted); }
.bgtile:has(input:checked) { border: 1.5px solid var(--primary); box-shadow: var(--ring); }
.bgimg { background: #E3F0F0; }
.bginfo, .knone { background: #F4FAFA; border-color: var(--line); }
.klist { border-color: var(--line); } .krow { border-bottom-color: var(--line); }

/* tables, toasts, meter */
table.list th { background: #F2F8F8; color: var(--muted); font-family: var(--font); font-weight: 700; }
table.list td { border-bottom-color: var(--line); } table.list tr:hover td { background: #F7FBFB; }
.toast { background: var(--ink); color: #fff; border: 0; }
.meter i { background: var(--primary); box-shadow: none; } .meter i.off { background: #D3E3E3; }
.proj .logo-box { background: linear-gradient(135deg, #E3F3F3, #F4FAFA); }
video { background: #000; box-shadow: var(--shadow-lg); }

/* sign-in and invite pages */
.auth, .auth-main { background: var(--bg); }
.auth-card h1 { color: var(--ink); } .auth-card .sub, .auth-card .or, .auth-card #msent { color: var(--muted); }
.auth-card label { color: var(--ink-2); }
.auth-art { background: repeating-radial-gradient(circle at 84% 10%, transparent 0 50px, rgba(14,124,134,.11) 50px 51.5px), linear-gradient(160deg, #DFF1F1 0%, #EAF6F6 100%); color: var(--ink); border-left: 1px solid var(--line); }
.auth-art h2 { color: var(--ink); }
.auth-art .auth-points { color: var(--ink-2); }
.auth-art .auth-points li::before { background: var(--primary); color: #fff; }
.art-mock { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.art-mock .am-bar { background: #F7FBFB; border-bottom-color: var(--line); } .art-mock .am-bar i { background: #D3E8E8; }
.am-stage { background: linear-gradient(160deg, #E3F3F3, #F4FAFA); }
.am-chip { background: #fff; color: var(--ink); }
.am-grid i { background: #fff; box-shadow: 0 6px 14px -10px rgba(11,59,69,.5); } .am-grid i.hot { background: #DFF1F1; box-shadow: var(--ring); }
.am-zoom { border-color: var(--coral); box-shadow: none; }
.am-cap { background: rgba(11,59,69,.94); border: 0; }
.locked .kb-points li::before { background: var(--primary-50); color: var(--primary-600); }
.legal-links a { color: inherit; }

/* wordmark: the o is the ripple mark */
.wm { display: inline-flex; align-items: center; letter-spacing: -.04em; font-weight: 800; }
.wm-o { width: 1.05em; height: 1.05em; margin: 0 -.01em; flex: none; }

/* file pickers and colour wells */
input[type=file] { background: #fff; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; max-width: 100%; }
input[type=file]::file-selector-button { background: var(--primary-50); color: var(--ink); border: 1px solid var(--primary-100); border-radius: 8px; padding: 6px 12px; margin-right: 10px; cursor: pointer; font: inherit; font-weight: 600; }
input[type=file]::file-selector-button:hover { border-color: var(--primary); }

/* title and call-to-action fields */
.sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.sug-l { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chipb { background: var(--primary-50); color: var(--primary-600); border: 1px solid var(--primary-100); border-radius: 99px; padding: 6px 12px; font-size: 13px; min-height: 34px; font-weight: 600; }
.chipb:hover:not(:disabled) { background: #D5EDEE; }
.pv-l { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--primary-600); margin: 0 0 6px; }
.pv { display: block; width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 1px solid var(--line); background: #E3F0F0; margin-bottom: 14px; object-fit: cover; }

/* rewrite: only the scenes that changed are marked */
.srow.changed .sbody p { border-left: 3px solid var(--amber); padding-left: 12px; }
.pill.upd { font-family: var(--font); margin-top: 8px; background: var(--amber-50); color: var(--warn); border: 1px solid #F3D9A2; }

::selection { background: #BFE3E5; color: var(--ink); }
