Skip to content

Show it a video you love. Get a new video in the same style. An AI crew (Claude Code or Codex) plans, builds and reviews it with you.

52.5 KB
Raw Blame
/* ReelMimic — design system
   iOS materials & grouped lists, one indigo accent, an aurora gradient reserved for "AI is working". */

:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang TC', 'Noto Sans TC', 'Segoe UI Variable Text', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang TC', 'Noto Sans TC', 'Segoe UI Variable Display', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;

  --bg: #F2F2F5;
  --bg-glow: rgba(120, 110, 255, .10);
  --surface: #FFFFFF;
  --surface-2: #F7F7FA;
  --elevated: rgba(255, 255, 255, .78);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .07);
  --sep: rgba(60, 60, 67, .13);
  --sep-strong: rgba(60, 60, 67, .22);
  --label: #1C1C1E;
  --label-2: rgba(60, 60, 67, .68);
  --label-3: rgba(60, 60, 67, .42);
  --label-4: rgba(60, 60, 67, .22);

  --accent: #5B57F0;
  --accent-soft: rgba(91, 87, 240, .10);
  --accent-ink: #4A45D8;
  --green: #2FB457; --green-soft: rgba(47, 180, 87, .12);
  --orange: #F08A00; --orange-soft: rgba(255, 159, 10, .14);
  --red: #F0453A; --red-soft: rgba(255, 59, 48, .10);
  --teal: #1AA6B7;

  --aurora-1: #7A6BFF; --aurora-2: #E86BD2; --aurora-3: #FF9D5C; --aurora-4: #49C6FF;
  --aurora: linear-gradient(115deg, var(--aurora-1), var(--aurora-2) 45%, var(--aurora-3) 80%);

  --r-xl: 28px; --r-lg: 22px; --r: 16px; --r-sm: 12px; --r-xs: 9px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .03);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -6px rgba(20, 20, 50, .10);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 60px -12px rgba(30, 25, 80, .22);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --ease: cubic-bezier(.25, .1, .25, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090C; --bg-glow: rgba(120, 100, 255, .16);
    --surface: #151519; --surface-2: #1C1C22; --elevated: rgba(28, 28, 34, .72);
    --fill: rgba(120, 120, 128, .22); --fill-2: rgba(120, 120, 128, .12);
    --sep: rgba(255, 255, 255, .08); --sep-strong: rgba(255, 255, 255, .15);
    --label: #F4F4F6; --label-2: rgba(235, 235, 245, .64); --label-3: rgba(235, 235, 245, .38); --label-4: rgba(235, 235, 245, .18);
    --accent: #7C78FF; --accent-soft: rgba(124, 120, 255, .16); --accent-ink: #A29FFF;
    --green: #3DD06A; --green-soft: rgba(61, 208, 106, .14); --orange: #FFA83A; --orange-soft: rgba(255, 168, 58, .14);
    --red: #FF6259; --red-soft: rgba(255, 98, 89, .13);
    --shadow-1: 0 0 0 1px rgba(255, 255, 255, .04); --shadow-2: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 30px -8px rgba(0, 0, 0, .6);
    --shadow-3: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 70px -10px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090C; --bg-glow: rgba(120, 100, 255, .16);
  --surface: #151519; --surface-2: #1C1C22; --elevated: rgba(28, 28, 34, .72);
  --fill: rgba(120, 120, 128, .22); --fill-2: rgba(120, 120, 128, .12);
  --sep: rgba(255, 255, 255, .08); --sep-strong: rgba(255, 255, 255, .15);
  --label: #F4F4F6; --label-2: rgba(235, 235, 245, .64); --label-3: rgba(235, 235, 245, .38); --label-4: rgba(235, 235, 245, .18);
  --accent: #7C78FF; --accent-soft: rgba(124, 120, 255, .16); --accent-ink: #A29FFF;
  --green: #3DD06A; --green-soft: rgba(61, 208, 106, .14); --orange: #FFA83A; --orange-soft: rgba(255, 168, 58, .14);
  --red: #FF6259; --red-soft: rgba(255, 98, 89, .13);
  --shadow-1: 0 0 0 1px rgba(255, 255, 255, .04); --shadow-2: 0 0 0 1px rgba(255, 255, 255, .05), 0 12px 30px -8px rgba(0, 0, 0, .6);
  --shadow-3: 0 0 0 1px rgba(255, 255, 255, .06), 0 30px 70px -10px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body, #root { margin: 0; min-height: 100%; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--label); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  background-image: radial-gradient(900px 480px at 85% -120px, var(--bg-glow), transparent 70%), radial-gradient(700px 380px at -10% 10%, rgba(255, 140, 180, .06), transparent 70%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
input, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.022em; }
.mono { font-family: var(--mono); font-size: .88em; }
.muted { color: var(--label-2); } .faint { color: var(--label-3); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ico { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -.14em; }

/* ---------- navigation bar (material) ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: .5px solid var(--sep);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 650; font-size: 16.5px; letter-spacing: -.02em; }
.brand-mark { width: 26px; height: 26px; }
.nav .sp { flex: 1; }
.agents-cap { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 99px; background: var(--fill-2); font-size: 12.5px; }
.agents-cap span { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; color: var(--label-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--label-4); flex: none; }
.dot.on { background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.dot.warn { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); }
.dot.bad { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.dot.live { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px transparent; } }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--label-2); transition: background .2s, color .2s, transform .3s var(--spring); font-size: 17px; }
.icon-btn:hover { background: var(--fill); color: var(--label); }
.icon-btn:active { transform: scale(.92); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 99px;
  font-size: 14.5px; font-weight: 560; background: var(--fill); color: var(--label); white-space: nowrap;
  transition: transform .35s var(--spring), background .2s, opacity .2s, box-shadow .2s;
}
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--fill) 100%, var(--label) 6%); }
.btn:active:not(:disabled) { transform: scale(.96); }
.btn:disabled { opacity: .4; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 90%, #000); }
.btn.plain { background: none; color: var(--accent-ink); padding: 0 10px; }
.btn.plain:hover:not(:disabled) { background: var(--accent-soft); }
.btn.danger { color: var(--red); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 16px; }

/* ---------- status capsule ---------- */
.cap { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 12.5px; font-weight: 560; background: var(--fill-2); color: var(--label-2); white-space: nowrap; }
.cap.ok { background: var(--green-soft); color: var(--green); }
.cap.warn { background: var(--orange-soft); color: var(--orange); }
.cap.bad { background: var(--red-soft); color: var(--red); }
.cap.live { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- layout ---------- */
.page { max-width: 1340px; margin: 0 auto; padding: 28px 28px 80px; }
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-2); padding: 22px; }
.card + .card, .stack > * + * { margin-top: 16px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.card-h h2 { font-size: 19px; font-weight: 680; }
.card-h .sp { flex: 1; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--label-3); }
.sub-h { font-size: 13px; font-weight: 600; color: var(--label-2); margin: 20px 0 10px; letter-spacing: -.005em; }
.fade-in { animation: fadeUp .5s var(--spring) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---------- home ---------- */
.home { max-width: 860px; margin: 0 auto; padding: 72px 24px 100px; }
.hero { text-align: center; margin-bottom: 34px; }
.hero .orb { margin: 0 auto 26px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.08; font-weight: 720; letter-spacing: -.035em; }
.hero h1 .grad { background: var(--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 16px auto 0; max-width: 560px; font-size: 17px; color: var(--label-2); line-height: 1.6; }

.composer {
  position: relative; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-3); padding: 12px;
  transition: box-shadow .3s var(--ease), transform .4s var(--spring);
}
.composer::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--aurora); opacity: 0; transition: opacity .4s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.composer:focus-within::before, .composer.drag::before { opacity: .9; }
.composer.drag { transform: scale(1.01); }
.ref-slot { display: grid; grid-template-columns: 148px 1fr; gap: 14px; align-items: center; padding: 8px; border-radius: 18px; background: var(--surface-2); margin-bottom: 4px; }
.ref-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--fill); display: grid; place-items: center; color: var(--label-3); font-size: 22px; }
.ref-thumb video, .ref-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-meta { min-width: 0; display: grid; gap: 2px; }
.ref-meta b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-empty { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1.5px dashed var(--sep-strong); color: var(--label-2); cursor: pointer; transition: background .2s, border-color .2s; margin-bottom: 4px; }
.ref-empty:hover { background: var(--fill-2); border-color: var(--accent); }
.ref-empty .big-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 21px; flex: none; }
.ref-empty b { color: var(--label); font-weight: 600; display: block; }
.link-in { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--surface-2); margin-bottom: 4px; color: var(--label-3); }
.link-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 14.5px; color: var(--label); }
.composer textarea { display: block; width: 100%; min-height: 96px; max-height: 280px; resize: none; border: 0; outline: 0; background: none; padding: 12px 10px 6px; font-size: 16.5px; line-height: 1.55; color: var(--label); }
.composer textarea::placeholder { color: var(--label-3); }
.comp-bar { display: flex; align-items: center; gap: 6px; padding: 4px 2px 0; flex-wrap: wrap; }
.tool-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; color: var(--label-2); transition: background .2s, color .2s; }
.tool-chip:hover { background: var(--fill-2); color: var(--label); }
.tool-chip.on { background: var(--accent-soft); color: var(--accent-ink); }
.tool-chip .n { font-size: 11.5px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; padding: 0 5px; }
.send { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--label); color: var(--surface); transition: transform .35s var(--spring), opacity .2s, background .3s; }
.send:disabled { background: var(--fill); color: var(--label-3); }
.send:not(:disabled):hover { transform: scale(1.06); }
.send:not(:disabled):active { transform: scale(.94); }
.send .spin-ring { width: 18px; height: 18px; }

.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 11px; background: var(--fill); font-size: 13px; font-weight: 560; }
.seg button { position: relative; z-index: 1; height: 28px; padding: 0 12px; border-radius: 8px; color: var(--label-2); transition: color .25s; white-space: nowrap; }
.seg button.on { color: var(--label); }
.seg button:disabled { opacity: .4; }
.seg .short { display: none; }
@media (max-width: 720px) { .seg .short { display: inline; } }
.seg .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 8px; background: var(--surface); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); transition: transform .45s var(--spring), width .45s var(--spring); }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.suggest button { padding: 8px 14px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 13.5px; color: var(--label-2); transition: transform .35s var(--spring), color .2s, box-shadow .2s; }
.suggest button:hover { color: var(--label); box-shadow: var(--shadow-2); transform: translateY(-1px); }

.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 56px 0 64px; }
.how div { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.how i { font-style: normal; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 16px; margin-bottom: 10px; }
.how b { display: block; font-size: 14px; font-weight: 620; margin-bottom: 2px; }
.how span { font-size: 12.5px; color: var(--label-2); line-height: 1.5; }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.section-title h2 { font-size: 22px; font-weight: 700; }
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pcard { display: block; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; transition: transform .45s var(--spring), box-shadow .3s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.pcard:active { transform: scale(.98); }
.pcard .th { aspect-ratio: 16 / 9; background: var(--fill) center / cover no-repeat; position: relative; }
.pcard .th .cap { position: absolute; left: 10px; bottom: 10px; background: var(--elevated); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pcard .meta { padding: 12px 14px 14px; }
.pcard .meta b { display: block; font-weight: 620; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- AI orb ---------- */
.orb { position: relative; width: var(--s, 56px); height: var(--s, 56px); border-radius: 50%; flex: none; isolation: isolate; }
.orb::before, .orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.orb::before { background: conic-gradient(from 0deg, var(--aurora-1), var(--aurora-4), var(--aurora-2), var(--aurora-3), var(--aurora-1)); animation: spin 9s linear infinite; filter: saturate(1.1); }
.orb::after { background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 42%), radial-gradient(circle at 70% 80%, rgba(255, 255, 255, .25), transparent 50%); }
.orb i { position: absolute; inset: -30%; border-radius: 50%; background: conic-gradient(from 90deg, var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-4), var(--aurora-1)); filter: blur(calc(var(--s, 56px) * .32)); opacity: .45; z-index: -1; animation: spin 14s linear infinite reverse; }
.orb.live::before { animation-duration: 2.4s; }
.orb.live { animation: breathe 2.4s var(--ease) infinite; }
.orb.live i { opacity: .75; animation-duration: 4s; }
.orb.idle i { opacity: .25; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.07); } }

.spin-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .75s linear infinite; display: inline-block; flex: none; opacity: .8; }

/* shimmering text: "the model is working" */
.shimmer {
  background: linear-gradient(100deg, var(--label-3) 20%, var(--label) 42%, var(--label-3) 64%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ---------- project header & progress ---------- */
.p-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent-ink); font-size: 15px; margin-bottom: 8px; }
.back:hover { opacity: .75; }
.p-head h1 { font-size: 30px; font-weight: 720; letter-spacing: -.03em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-head .brief-line { margin-top: 6px; font-size: 14px; color: var(--label-2); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 26px; }
.progress > div { display: grid; gap: 8px; }
.progress .bar { height: 5px; border-radius: 99px; background: var(--fill); overflow: hidden; position: relative; }
.progress .bar i { position: absolute; inset: 0; border-radius: inherit; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--spring); }
.progress .done .bar i { transform: scaleX(1); }
.progress .cur .bar i { transform: scaleX(1); background: linear-gradient(90deg, var(--aurora-1), var(--aurora-2), var(--aurora-3), var(--aurora-1)) 0 0 / 300% 100%; animation: flow 2.4s linear infinite; }
.progress .cur.idle .bar i { animation: none; background: var(--orange); }
@keyframes flow { to { background-position: -300% 0; } }
.progress label { font-size: 12.5px; color: var(--label-3); display: flex; align-items: center; gap: 6px; font-weight: 520; }
.progress .done label { color: var(--label-2); }
.progress .cur label { color: var(--label); font-weight: 620; }

.proj { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
.proj > * { min-width: 0; }

/* live banner */
.livebar {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); margin-bottom: 16px; position: relative; overflow: hidden;
}
.livebar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--aurora-1), var(--aurora-2), var(--aurora-3), transparent) 0 0 / 200% 100%; animation: flow 2s linear infinite; }
.livebar b { font-weight: 620; font-size: 15px; }
.livebar .elapsed { font-variant-numeric: tabular-nums; color: var(--label-3); font-size: 13px; }

.banner { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-lg); margin-bottom: 16px; }
.banner.warn { background: color-mix(in srgb, var(--orange) 9%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent); }
.banner.bad { background: color-mix(in srgb, var(--red) 7%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--red) 22%, transparent); }
.banner .b-ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; font-size: 18px; }
.banner.warn .b-ico { background: var(--orange-soft); color: var(--orange); }
.banner.bad .b-ico { background: var(--red-soft); color: var(--red); }
.banner h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; }
.banner pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12px; color: var(--label-2); margin: 8px 0 12px; max-height: 160px; overflow: auto; }

/* ---------- grouped list (iOS settings style) ---------- */
.list { border-radius: var(--r); background: var(--surface-2); overflow: hidden; }
.list > .li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; position: relative; }
.list > .li + .li::before { content: ''; position: absolute; top: 0; left: 14px; right: 0; height: .5px; background: var(--sep); }
.li .li-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; font-size: 15px; background: var(--fill); color: var(--label-2); }
.li .li-ico.ok { background: var(--green-soft); color: var(--green); }
.li .li-ico.warn { background: var(--orange-soft); color: var(--orange); }
.li .li-ico.accent { background: var(--accent-soft); color: var(--accent-ink); }
.li .t { font-weight: 560; }
.li .d { font-size: 13px; color: var(--label-2); margin-top: 1px; }
.li.click { cursor: pointer; transition: background .15s; }
.li.click:hover { background: var(--fill-2); }
.chev { color: var(--label-4); transition: transform .35s var(--spring); }
.chev.open { transform: rotate(90deg); }

/* ---------- analysis ---------- */
.widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.widget { padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.widget .v { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.widget .k { font-size: 12px; color: var(--label-2); margin-top: 2px; }
.widget.warn .v { color: var(--orange); }
.route { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--surface-2); margin-top: 14px; }
.ring { position: relative; width: 64px; height: 64px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.route .name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.route ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--label-2); }
.sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot-img { width: 100%; border-radius: var(--r-sm); cursor: zoom-in; background: var(--fill); transition: transform .4s var(--spring), box-shadow .3s; }
.shot-img:hover { transform: scale(1.01); box-shadow: var(--shadow-2); }

/* ---------- plan ---------- */
.logline { font-family: var(--font-display); font-size: 22px; line-height: 1.45; font-weight: 600; letter-spacing: -.02em; margin: 2px 0 16px; }
.metas { display: flex; flex-wrap: wrap; gap: 6px; }
.swatches { display: flex; gap: 0; }
.swatches span { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--surface); margin-right: -7px; transition: transform .35s var(--spring); }
.swatches:hover span { margin-right: 4px; }
.swatches span:hover { transform: translateY(-3px); }
.look { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.look p { margin: 6px 0 0; font-size: 14px; color: var(--label-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: var(--fill-2); color: var(--label-2); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cast > div { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: var(--surface-2); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; font-size: 16px; }

.tl { display: flex; height: 44px; gap: 3px; margin-bottom: 14px; }
.tl button { position: relative; border-radius: 8px; min-width: 0; overflow: hidden; font-size: 12px; font-weight: 650; color: rgba(0, 0, 0, .62); transition: transform .35s var(--spring), filter .2s, box-shadow .2s; }
.tl button:hover { filter: brightness(1.05); transform: translateY(-2px); }
.tl button.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent); }
.tl-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--label-3); margin: -8px 0 12px; font-variant-numeric: tabular-nums; }
.shot-li .sid { width: 42px; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.shot-li .sid small { display: block; font-size: 11px; font-weight: 500; color: var(--label-3); font-variant-numeric: tabular-nums; }
.shot-body { padding: 0 14px 16px 68px; animation: fadeUp .35s var(--spring) both; }
.kv { display: grid; grid-template-columns: 72px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--label-3); }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.asset { border-radius: var(--r); background: var(--surface-2); overflow: hidden; font-size: 12.5px; }
.asset .pv { aspect-ratio: 16 / 10; background: var(--fill) center / cover no-repeat; display: grid; place-items: center; color: var(--label-3); font-size: 22px; }
.asset .pv audio { width: 92%; height: 32px; }
.asset .b { padding: 10px 12px 12px; display: grid; gap: 3px; }
.asset .b b { font-weight: 600; font-size: 13px; }

.approve-bar {
  position: sticky; bottom: 20px; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border-radius: 22px; margin-top: 18px;
  background: var(--elevated); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-3);
  animation: fadeUp .6s var(--spring) both;
}
.approve-bar b { font-weight: 640; }

/* lyrics */
.lyr { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.lyr td { padding: 9px 10px; border-top: .5px solid var(--sep); }
.lyr tr:first-child td { border-top: 0; }
.lyr .tc { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--label-3); width: 1%; font-size: 13px; }
.meter { width: 64px; height: 5px; border-radius: 9px; background: var(--fill); overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.lyr tr.low .meter i { background: var(--orange); }
.field-area { width: 100%; min-height: 130px; border: 0; outline: 0; resize: vertical; padding: 14px; border-radius: var(--r); background: var(--surface-2); font-size: 15px; line-height: 1.7; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s; }
.field-area:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* pipeline */
.phases { display: flex; align-items: center; gap: 0; margin-bottom: 6px; overflow-x: auto; }
.phase { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--label-3); white-space: nowrap; font-weight: 540; }
.phase .pi { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); font-size: 13px; transition: .4s var(--spring); }
.phase.done { color: var(--label-2); }
.phase.done .pi { background: var(--green); color: #fff; }
.phase.cur { color: var(--label); font-weight: 640; }
.phase.cur .pi { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px var(--accent-soft); }
.phase-line { flex: 1; min-width: 18px; height: 2px; margin: 0 10px; border-radius: 2px; background: var(--fill); }
.phase-line.done { background: var(--green); }
.chunks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.chunk { padding: 14px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 6px; position: relative; overflow: hidden; transition: box-shadow .3s; }
.chunk .ch-h { display: flex; align-items: center; gap: 8px; }
.chunk .ch-h b { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.chunk.passed { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--green) 50%, transparent); }
.chunk.failed, .chunk.error { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--red) 50%, transparent); }
.chunk.fixing, .chunk.needs_user { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--orange) 50%, transparent); }
.chunk.building::after, .chunk.reviewing::after, .chunk.fixing::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--aurora-1), var(--aurora-2), transparent) 0 0 / 200% 100%; animation: flow 1.8s linear infinite; }
.issues { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.issues li { display: flex; gap: 10px; font-size: 13.5px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); }
.issues li .tagc { flex: none; font-weight: 650; font-size: 12px; padding: 2px 7px; border-radius: 6px; background: var(--fill); height: fit-content; }

/* result */
.player { border-radius: var(--r); overflow: hidden; background: #000; box-shadow: var(--shadow-2); }
.player video { width: 100%; display: block; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 18px; margin-top: 14px; }
.score { display: grid; gap: 5px; }
.score .row { justify-content: space-between; font-size: 13px; color: var(--label-2); }
.score .row b { color: var(--label); font-variant-numeric: tabular-nums; }
.score .pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; }
.score .pips i { height: 5px; border-radius: 3px; background: var(--fill); }
.score .pips i.on { background: var(--green); }
.score .bar { height: 5px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.score .bar i { display: block; height: 100%; border-radius: 3px; background: var(--label-2); }   /* similarity, not good or bad: neutral */
.critique.measured { margin-top: 14px; }
.score.low .pips i.on { background: var(--orange); }
.critique { margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--surface-2); }

/* ---------- conversation ---------- */
.convo { position: sticky; top: 76px; height: calc(100vh - 96px); display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; }
.convo-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: .5px solid var(--sep); }
.convo-h b { font-weight: 640; display: block; font-size: 15px; }
.convo-h .sub { font-size: 12.5px; color: var(--label-3); display: flex; align-items: center; gap: 6px; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.msgs::-webkit-scrollbar { width: 8px; } .msgs::-webkit-scrollbar-thumb { background: var(--fill); border-radius: 8px; border: 2px solid var(--surface); }
.m { animation: fadeUp .45s var(--spring) both; }
.m-user { align-self: flex-end; max-width: 86%; padding: 10px 14px; border-radius: 20px 20px 6px 20px; background: var(--accent); color: #fff; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.m-user .meta { font-size: 11.5px; opacity: .75; margin-bottom: 2px; }
.m-ai { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.m-ai .who { font-size: 13px; font-weight: 620; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.m-ai .who .role { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--fill-2); color: var(--label-2); }
.avatar-ai { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #fff; }
.avatar-ai.critic { background: linear-gradient(135deg, #1AA6B7, #3E7BFA); }
.avatar-ai.builder { background: linear-gradient(135deg, #FF9D5C, #F0453A); }
.m-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 92%; font-size: 12.5px; color: var(--label-2); padding: 5px 12px; border-radius: 99px; background: var(--fill-2); text-align: center; }
.m-brief { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); font-size: 13.5px; color: var(--label-2); }
.m-brief .eyebrow { margin-bottom: 4px; }

/* thinking block */
.think { margin-bottom: 8px; }
.think-h { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 8px; margin-left: -8px; border-radius: 9px; font-size: 13.5px; color: var(--label-2); transition: background .2s; max-width: 100%; }
.think-h:hover { background: var(--fill-2); }
.think-h .spark { color: var(--accent-ink); font-size: 14px; }
.think-h .n { color: var(--label-3); font-variant-numeric: tabular-nums; }
.think-body { position: relative; margin: 6px 0 4px 2px; padding-left: 18px; display: grid; gap: 9px; animation: fadeUp .35s var(--spring) both; }
.think-body::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; border-radius: 2px; background: var(--sep-strong); }
.step { position: relative; font-size: 13px; line-height: 1.45; min-width: 0; }
.step::before { content: ''; position: absolute; left: -17px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--label-3); }
.step.live::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); animation: pulse 1.4s infinite; }
.step.err::before { box-shadow: inset 0 0 0 1.5px var(--red); }
.step .verb { font-weight: 600; color: var(--label); margin-right: 6px; }
.step .det { font-family: var(--mono); font-size: 11.5px; color: var(--label-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; margin-top: 1px; }
.step.thought { color: var(--label-2); font-style: italic; }
.step.thought .txt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.step.err { color: var(--red); }
.step .thumbs { display: flex; gap: 6px; margin-top: 6px; }
.step .thumbs img { height: 54px; width: auto; border-radius: 7px; cursor: zoom-in; box-shadow: var(--shadow-1); }
.more-steps { font-size: 12.5px; color: var(--accent-ink); justify-self: start; }
.livecard { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); animation: fadeUp .45s var(--spring) both; }
.livecard + .livecard { margin-top: -8px; }
.livecard .lc-h { display: flex; align-items: center; gap: 10px; }
.livecard .lc-h b { font-size: 13.5px; font-weight: 620; }
.livecard .elapsed { margin-left: auto; font-size: 12px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.livecard .think-body { margin-top: 10px; }

.md { font-size: 14.5px; line-height: 1.65; word-break: break-word; }
.md p { margin: 0 0 8px; } .md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: 4px 0 8px; padding-left: 20px; } .md li { margin: 2px 0; }
.md h2, .md h3, .md h4 { font-size: 15px; font-weight: 650; margin: 12px 0 4px; }
.md code { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--fill-2); }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; margin: 8px 0; display: block; overflow-x: auto; }
.md td, .md th { border-bottom: .5px solid var(--sep); padding: 6px 8px; text-align: left; vertical-align: top; }
.md th { font-weight: 600; color: var(--label-2); }
.md blockquote { margin: 6px 0; padding: 2px 12px; border-left: 3px solid var(--sep-strong); color: var(--label-2); }
.md b { font-weight: 650; }

.compose { padding: 10px 12px 12px; border-top: .5px solid var(--sep); }
.compose-box { border-radius: 20px; background: var(--surface-2); padding: 4px 4px 4px 14px; display: flex; align-items: flex-end; gap: 6px; transition: box-shadow .2s; }
.compose-box:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.compose-box textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; padding: 9px 0; max-height: 160px; font-size: 14.5px; line-height: 1.5; color: var(--label); }
.compose-box textarea::placeholder { color: var(--label-3); }
.compose-box .send { width: 34px; height: 34px; font-size: 16px; margin-bottom: 2px; }
.ctx-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 8px; font-weight: 560; }
.ctx-tag button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; }
.ctx-tag button:hover { background: var(--accent-soft); }
.compose .hint { font-size: 11.5px; color: var(--label-3); margin-top: 6px; padding-left: 6px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 32px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); cursor: zoom-out; animation: fade .3s var(--ease) both; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); animation: pop .5s var(--spring) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }

.skeleton { border-radius: var(--r-lg); background: linear-gradient(100deg, var(--fill-2) 30%, var(--fill) 50%, var(--fill-2) 70%) 0 0 / 250% 100%; animation: shimmer 1.6s linear infinite; }

@media (max-width: 1120px) {
  .proj { grid-template-columns: 1fr; }
  .convo { position: relative; top: 0; height: 640px; }
}
@media (max-width: 720px) {
  .page { padding: 18px 16px 60px; }
  .home { padding: 40px 16px 80px; }
  .nav { padding: 0 16px; }
  .agents-cap .lbl { display: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .look, .sheets { grid-template-columns: 1fr; }
  .progress label span { display: none; }
  .progress .cur label span { display: inline; white-space: nowrap; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15.5px; }
  .ref-empty { padding: 12px; gap: 12px; }
  .ref-empty .small { display: none; }
  .comp-bar { flex-wrap: nowrap; }
  .seg button { padding: 0 9px; font-size: 12.5px; }
  .seg .long { display: none; }
  .tool-chip { padding: 0 8px; gap: 4px; }
  .comp-bar .lbl-wide { display: none; }
  .comp-bar { gap: 2px; }
  .card { padding: 18px 16px; border-radius: 20px; }
  .livebar .small { display: none; }
  .p-head h1 { font-size: 26px; }
  .ref-slot { grid-template-columns: 110px 1fr; }
  .scroller { grid-auto-columns: 82%; }
  .shot-body { padding-left: 14px; }
  .approve-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* video review: notes pinned to time */
.scrub { position: relative; height: 22px; margin: 12px 2px 4px; cursor: pointer; }
.scrub::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--fill); }
.scrub-fill { position: absolute; left: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--label-3); pointer-events: none; }
.mk { position: absolute; top: 3px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); box-shadow: 0 0 0 2px var(--surface), var(--shadow-1); transition: transform .35s var(--spring); }
.mk:hover, .mk.on { transform: rotate(-45deg) scale(1.25); }
.mk.critic { background: var(--orange); width: 10px; height: 10px; margin-left: -5px; top: 6px; border-radius: 50%; transform: none; }
.mk.critic:hover { transform: scale(1.3); }
.mk.pin { background: var(--label); animation: pulse 1.4s infinite; }
.note-in { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: var(--surface-2); cursor: text; transition: box-shadow .2s; }
.note-in:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.note-in textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; padding: 5px 0; font-size: 14.5px; line-height: 1.5; color: var(--label); max-height: 200px; }
.note-in textarea::placeholder { color: var(--label-3); }
.tc-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 9px; background: var(--fill); font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--label-2); font-variant-numeric: tabular-nums; transition: background .2s, color .2s; }
.note-in.pinned .tc-chip { background: var(--accent); color: #fff; }
.note-in .btn { flex: none; }
.notes { margin-top: 16px; }
.li.note { align-items: flex-start; transition: background .25s; }
.li.note.on { background: var(--accent-soft); }
.note-thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--fill); display: grid; place-items: center; color: var(--label-3); }
.note-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.note-thumb span { position: absolute; left: 4px; bottom: 4px; font-family: var(--mono); font-size: 11px; font-weight: 600; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 5px; border-radius: 5px; }
.note-text { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; font-size: 14.5px; line-height: 1.55; color: var(--label); padding: 4px 0; min-height: 54px; }
.issues li.seekable { cursor: pointer; transition: background .2s; }
.issues li.seekable:hover { background: var(--fill-2); }

/* live step timer + raw log */
.step-t { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.convo-h .seg { font-size: 12px; }
.convo-h .seg button { height: 26px; padding: 0 10px; }
.logview { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lg-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: .5px solid var(--sep); }
.lg-bar select, .lg-bar input { height: 32px; border: 0; outline: 0; border-radius: 9px; background: var(--fill-2); padding: 0 10px; font-size: 13px; color: var(--label); }
.lg-bar input { flex: 1; min-width: 0; }
.lg-bar input:focus, .lg-bar select:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
/* the native option list doesn't inherit the translucent fill: give it a solid surface so text stays readable in both themes */
.lg-bar select option { background: var(--surface); color: var(--label); }
.lg-body { flex: 1; overflow: auto; padding: 6px 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.55; }
.lg-row { display: grid; grid-template-columns: 58px 74px 1fr; gap: 8px; padding: 3px 12px; border-left: 2px solid transparent; }
.lg-row:hover { background: var(--fill-2); }
.lg-row.error { border-left-color: var(--red); background: var(--red-soft); }
.lg-row.turn { border-left-color: var(--accent); margin-top: 6px; }
.lg-ts { color: var(--label-3); font-variant-numeric: tabular-nums; }
.lg-who { color: var(--label-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font); font-size: 11.5px; }
.lg-msg { min-width: 0; word-break: break-all; white-space: pre-wrap; color: var(--label); }
.lg-tool { color: var(--accent-ink); font-weight: 600; }
.lg-err { color: var(--red); }
.lg-think { color: var(--label-2); font-style: italic; }
.lg-turn { color: var(--accent-ink); font-weight: 700; font-family: var(--font); }
.lg-foot { padding: 8px 12px; border-top: .5px solid var(--sep); }
.lg-foot a { color: var(--accent-ink); }

/* project tabs */
.tabs { position: sticky; top: 64px; z-index: 6; display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; border-radius: 16px; background: var(--elevated); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); box-shadow: var(--shadow-2); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 1; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 560; color: var(--label-2); transition: background .25s, color .25s, transform .35s var(--spring); }
.tabs button:hover { color: var(--label); }
.tabs button:active { transform: scale(.97); }
.tabs button.on { background: var(--surface); color: var(--label); box-shadow: 0 2px 8px rgba(0, 0, 0, .08), 0 0 0 .5px var(--sep); }
.tabs .tb { font-size: 11px; font-weight: 650; padding: 1px 7px; border-radius: 99px; background: var(--fill); color: var(--label-2); font-variant-numeric: tabular-nums; }
.tabs .tb.warn { background: var(--orange-soft); color: var(--orange); }
.needs-thumbs { display: flex; gap: 8px; margin: 12px 0 2px; overflow-x: auto; }
.needs-thumbs img { height: 92px; border-radius: 10px; cursor: zoom-in; box-shadow: var(--shadow-1); }
.card.empty { display: flex; gap: 14px; align-items: center; }
@media (max-width: 720px) { .tabs { top: 60px; } .tabs button { padding: 0 10px; font-size: 13px; } }

.pcard .th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.pcard:hover .th video { opacity: 1; }
.pcard .th .cap { z-index: 1; }
.card .scroller { grid-auto-columns: minmax(320px, 64%); }

.issues li > span:last-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.issues li.open > span:last-child { -webkit-line-clamp: unset; display: block; }
.livebar b.shimmer { background: linear-gradient(100deg, var(--label) 30%, var(--accent-ink) 50%, var(--label) 70%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; }

/* chat attachments */
.compose-box { padding-left: 4px; }
.compose-box.drag { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.att-btn { width: 32px; height: 32px; font-size: 16px; margin-bottom: 3px; flex: none; }
.att-tray { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.att-chip { position: relative; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 .5px var(--sep-strong); animation: pop .35s var(--spring) both; }
.att-chip img { width: 100%; height: 100%; object-fit: cover; }
.att-ext { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; color: var(--label-2); text-transform: uppercase; }
.att-chip button { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(0, 0, 0, .6); color: #fff; }
.m-att { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.m-att img { max-width: 180px; max-height: 140px; border-radius: 12px; cursor: zoom-in; display: block; }
.m-att .att-file { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 13px; }

/* language menu */
.lang { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--label-2); transition: background .2s, color .2s; }
.lang-btn:hover { background: var(--fill); color: var(--label); }
.lang-menu { position: absolute; right: 0; top: 42px; z-index: 30; min-width: 168px; padding: 6px; border-radius: 14px; background: var(--elevated); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-3); animation: pop .3s var(--spring) both; transform-origin: top right; }
.lang-menu button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--label); text-align: left; }
.lang-menu button:hover { background: var(--fill-2); }
.lang-menu button.on { color: var(--accent-ink); font-weight: 600; }

/* shown when the site was rebuilt while this tab stayed open */
.update-pill { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100;
  border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-3); animation: fade .3s var(--ease) both; }
.update-pill:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* review/fix round limits: header button + popover, composer panel */
.p-head-r { display: flex; align-items: center; gap: 8px; }
.rd-wrap { position: relative; }
.rd-pop { position: absolute; right: 0; top: 42px; z-index: 30; width: min(340px, calc(100vw - 32px)); padding: 14px 16px 12px; border-radius: 16px; background: var(--elevated); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px); box-shadow: var(--shadow-3); animation: pop .3s var(--spring) both; transform-origin: top right; }
.rounds { display: grid; gap: 2px; }
.rd-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--sep); }
.rd-row b { font-size: 14px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 99px; background: var(--fill-2); }
.stepper .icon-btn { width: 30px; height: 30px; font-size: 15px; }
.stepper .icon-btn:hover:not(:disabled) { background: var(--fill); color: var(--label); }
.stepper .icon-btn:disabled { opacity: .3; cursor: default; }
.stepper .num { min-width: 26px; text-align: center; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stepper .num.custom { color: var(--accent-ink); }
.rd-note { padding-top: 8px; line-height: 1.5; }
.comp-rounds { margin: 10px 6px 4px; padding: 6px 14px 10px; border-radius: 14px; background: var(--fill-2); }
.comp-rounds .rd-row:last-of-type { border-bottom: 0; }
.q-pick { display: grid; gap: 6px; }
.q-opt { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--sep); background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.q-opt:hover:not(:disabled) { background: var(--fill-2); }
.q-opt.on { border-color: var(--accent); background: var(--fill-2); }
.q-opt:disabled { opacity: .6; cursor: default; }
.q-opt .row { gap: 8px; margin-bottom: 2px; }
.q-opt b { font-size: 14px; font-weight: 600; }
.q-time { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* required inputs: at the top of the page while the plan is being written / reviewed */
.card.req-top { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--orange, #FF9F0A) 55%, transparent), var(--shadow-2); }
.req-li { flex-wrap: wrap; row-gap: 8px; }
.req-li.waived .t { color: var(--label-3); text-decoration: line-through; }
.req-act { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.req-files { margin-top: 3px; word-break: break-all; }
.upload { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upload label.btn { cursor: pointer; }
.up-msg { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) { .req-act { width: 100%; justify-content: flex-start; padding-left: 46px; } }
.rd-foot { display: flex; align-items: flex-end; gap: 10px; }
.rd-foot .rd-note { flex: 1; }
.rd-foot .btn { flex: none; }