:root {
  --ink: #172536;
  --muted: #66788a;
  --navy: #18324b;
  --navy-2: #224866;
  --blue-soft: #eaf3f8;
  --cream: #f6f4ef;
  --paper: #ffffff;
  --orange: #f1874f;
  --orange-dark: #cb6431;
  --green: #2e866d;
  --yellow: #b97716;
  --red: #bb4e4e;
  --border: #dfe7ec;
  --shadow: 0 16px 40px rgba(35, 54, 72, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 2%, rgba(224, 237, 242, .75), transparent 28rem),
    var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--navy-2); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 244px 1fr; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 20px;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(38, 76, 105, .94), rgba(17, 43, 65, .98)),
    var(--navy);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 28px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, #f5a06c, #d96738);
  font: 700 22px Georgia, serif; box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 16px; letter-spacing: .06em; }
.brand span { margin-top: 3px; color: #bfcfda; font-size: 12px; }

.nav { display: grid; gap: 5px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; border: 0; border-radius: 12px;
  padding: 12px 14px; color: #c9d6df; background: transparent; text-align: left;
  transition: .18s ease;
}
.nav-item span { width: 22px; color: #8eacbf; text-align: center; font-size: 18px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 var(--orange); }
.nav-item.active span { color: #ffb081; }

.sidebar-foot {
  margin-top: auto; padding: 14px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; background: rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-foot small, .sidebar-foot strong { display: block; }
.sidebar-foot small { color: #9fb4c2; font-size: 11px; }
.sidebar-foot strong { margin-top: 2px; font-size: 13px; }
.storage-dot { width: 9px; height: 9px; border-radius: 50%; background: #57c99a; box-shadow: 0 0 0 5px rgba(87,201,154,.12); }

.main { min-width: 0; padding: 0 34px 56px; }
.topbar {
  min-height: 112px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; border-bottom: 1px solid rgba(203, 213, 219, .85);
}
.topbar h1 { margin: 4px 0 0; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; }
.topbar p, .eyebrow { margin: 0; color: var(--orange-dark); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: end; gap: 12px; }
.project-select-wrap { display: grid; gap: 5px; }
.project-select-wrap span { color: var(--muted); font-size: 11px; }

select, input, textarea {
  width: 100%; border: 1px solid #cfdae1; border-radius: 11px;
  padding: 10px 12px; color: var(--ink); background: #fff; outline: none;
  transition: border .15s, box-shadow .15s;
}
select, input, textarea, .topbar > *, .hero-grid > *, .generator-controls > * { min-width: 0; }
select:focus, input:focus, textarea:focus { border-color: #5e8ca9; box-shadow: 0 0 0 3px rgba(72,123,155,.12); }
textarea { min-height: 112px; resize: vertical; line-height: 1.7; }

.primary-button, .ghost-button, .danger-button, .small-button {
  border: 0; border-radius: 11px; padding: 10px 15px; font-weight: 700;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.primary-button { color: #fff; background: var(--navy-2); box-shadow: 0 7px 16px rgba(27,65,93,.16); }
.primary-button:hover { transform: translateY(-1px); background: #285675; }
.primary-button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.ghost-button { color: var(--navy); background: #edf2f5; }
.danger-button { color: #fff; background: var(--red); }
.small-button { padding: 7px 10px; color: var(--navy); background: var(--blue-soft); font-size: 12px; }
.icon-button { border: 0; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); background: #eef3f5; font-size: 20px; }
.mobile-only { display: none; }

.view { display: none; padding-top: 28px; }
.view.active { display: block; animation: rise .24s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

.loading-card { margin-top: 28px; min-height: 240px; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); }
.loading-card.hidden { display: none; }
.spinner { width: 32px; height: 32px; border: 3px solid #dbe4e9; border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  position: relative; overflow: hidden;
  padding: 30px; border-radius: 24px; color: #fff;
  background:
    linear-gradient(120deg, rgba(27,61,87,.98), rgba(43,85,112,.91)),
    var(--navy);
  box-shadow: var(--shadow);
}
.hero::after {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 260px; height: 260px; border-radius: 50%;
  border: 55px solid rgba(255,255,255,.05);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; }
.hero h2 { max-width: 720px; margin: 8px 0 10px; font-size: clamp(23px, 3vw, 36px); line-height: 1.25; }
.hero p { max-width: 720px; margin: 0; color: #cddbe4; line-height: 1.75; }
.hero-action { min-width: 170px; padding: 18px; border-radius: 17px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); }
.hero-action span, .hero-action strong { display: block; }
.hero-action span { color: #bcd0dc; font-size: 12px; }
.hero-action strong { margin: 7px 0 14px; font-size: 24px; }
.hero-action button { width: 100%; background: var(--orange); }

.generator-card {
  margin-top: 18px; padding: 22px; border: 1px solid #d9e4ea; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(238,247,250,.95));
  box-shadow: 0 10px 30px rgba(36,55,68,.06);
}
.voice-card {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  margin-top: 18px; padding: 19px 22px; border: 1px solid #ead9c9; border-radius: 18px;
  background: #fff8f2; box-shadow: 0 8px 24px rgba(76,54,38,.05);
}
.voice-card.ready { border-color: #cfe7dc; background: #f1f8f5; }
.voice-card h2 { margin: 4px 0 5px; font-size: 20px; }
.voice-card p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.voice-card-action { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; }
.generator-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.generator-heading h2 { margin: 5px 0 6px; font-size: 21px; }
.generator-heading p:not(.eyebrow) { max-width: 820px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.generation-job {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  margin-top: 15px; padding: 13px 15px; border: 1px solid #cfe1e8; border-radius: 13px;
  background: rgba(232,245,248,.78);
}
.generation-job.failed { border-color: #f0c9bd; background: #fff4ef; }
.generation-job strong, .generation-job span { display: block; }
.generation-job span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.generation-job p { margin: 7px 0 0; color: #9b4938; font-size: 12px; line-height: 1.55; }
.generation-results { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.generator-controls {
  display: grid; grid-template-columns: 1.2fr .8fr .9fr .55fr;
  gap: 11px; align-items: end; margin-top: 17px;
}
.generator-controls label { display: grid; gap: 6px; }
.generator-controls label > span { color: var(--muted); font-size: 11px; font-weight: 700; }
.generator-topic { grid-column: 1 / span 2; }
.generator-extra { grid-column: 3; }
.generator-button { min-height: 42px; }
.generator-note { margin: 11px 0 0; color: #778995; font-size: 11px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 26px; }
.stat-card {
  padding: 19px; border: 1px solid rgba(215,225,231,.9); border-radius: var(--radius);
  background: rgba(255,255,255,.88); box-shadow: 0 8px 25px rgba(38,54,65,.05);
}
.stat-card span, .stat-card strong, .stat-card small { display: block; }
.stat-card span { color: var(--muted); font-size: 12px; }
.stat-card strong { margin: 7px 0 3px; font-size: 28px; }
.stat-card small { color: #91a0aa; }

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 4px 0 15px; }
.section-head h2 { margin: 3px 0 0; font-size: 21px; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-actions { display: flex; gap: 8px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 18px; }
.card {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,.93); box-shadow: 0 9px 30px rgba(36,55,68,.055);
}
.card + .card { margin-top: 14px; }
.card h3 { margin: 0 0 7px; font-size: 17px; }
.card p { color: var(--muted); line-height: 1.65; }

.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.flow-step {
  position: relative; min-height: 105px; padding: 16px; border: 1px solid var(--border);
  border-radius: 15px; background: #fff;
}
.flow-step::after { content: "›"; position: absolute; right: -10px; top: 35px; color: #a9bac5; font-size: 25px; z-index: 2; }
.flow-step:last-child::after { display: none; }
.flow-step b, .flow-step span { display: block; }
.flow-step b { margin-bottom: 7px; font-size: 13px; }
.flow-step span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.flow-step.done { background: #eff8f4; border-color: #cfe7dc; }
.flow-step.active { color: #fff; background: var(--navy-2); border-color: var(--navy-2); }
.flow-step.active span { color: #c9dce7; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 700; }
.badge.wait { color: #8f5a10; background: #fff1d7; }
.badge.ready { color: #216f58; background: #e3f4ed; }
.badge.info { color: #295f7e; background: #e6f1f7; }
.badge.danger { color: #9a3d3d; background: #fae9e9; }

.list { display: grid; gap: 10px; }
.list-row {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center;
  padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.list-row h4 { margin: 0 0 4px; font-size: 14px; }
.list-row p { margin: 0; color: var(--muted); font-size: 12px; }

.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-card { position: relative; overflow: hidden; }
.account-card::before { content: ""; position: absolute; width: 6px; inset: 0 auto 0 0; background: var(--orange); }
.account-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }

.script-box {
  padding: 24px; border-radius: 16px; background: #f4f0e8; border: 1px solid #e5ded0;
  font-size: 16px; line-height: 2; white-space: pre-wrap;
}
.truth-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.truth-list li { padding: 10px 12px; border-radius: 11px; background: #fff8ea; color: #715326; font-size: 13px; }
.fact-check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.fact-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); }
.fact-check input:checked + span { color: #7c887f; text-decoration: line-through; }
.fact-progress { margin: 12px 0 0; font-size: 11px; }
.voice-review-card { border-left: 4px solid var(--orange); }
.ai-rationale strong { color: var(--navy); }

.progress-bar { overflow: hidden; height: 9px; border-radius: 999px; background: #e7edf0; }
.progress-bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), #f4b06e); }
.progress-copy { display: flex; justify-content: space-between; margin: 7px 0 14px; color: var(--muted); font-size: 12px; }

.shooting-answer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center;
  padding: 25px 28px; border: 1px solid #cadce6; border-left: 6px solid var(--orange);
  border-radius: 19px; background: linear-gradient(120deg, #fff, #f1f8fb); box-shadow: var(--shadow);
}
.shooting-answer span { color: var(--orange-dark); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.shooting-answer h3 { margin: 7px 0 10px; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.35; }
.shooting-answer p { margin: 0; color: var(--muted); line-height: 1.7; }
.shooting-answer p strong { color: var(--ink); }
.shooting-meta { display: grid; grid-template-columns: repeat(3, minmax(88px, 1fr)); gap: 8px; }
.shooting-meta span { min-width: 105px; padding: 13px; border-radius: 12px; background: #fff; border: 1px solid var(--border); letter-spacing: 0; }
.shooting-meta small, .shooting-meta strong { display: block; }
.shooting-meta small { color: var(--muted); font-size: 10px; }
.shooting-meta strong { margin-top: 5px; color: var(--navy); font-size: 13px; }
.viewer-impression {
  margin: 10px 0 0; padding: 12px 16px; border-radius: 12px;
  color: #4a6374; background: #eaf3f8; font-size: 13px; line-height: 1.7;
}
.viewer-impression strong { color: var(--navy); }
.thinking-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin-top: 10px; padding: 13px 16px; border-radius: 13px; background: #edf5f8;
}
.thinking-strip p { margin: 0; color: #506b7d; font-size: 12px; line-height: 1.65; }
.thinking-strip strong { color: var(--navy); }
.progress-card { margin-top: 14px; padding: 18px 22px; }
.progress-card p { margin-bottom: 0; }
.shooting-plan-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; margin-top: 14px; }
.shooting-plan-grid .card { margin: 0; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 15px; }
.card-heading h3 { margin-top: 5px; }
.card-heading p:not(.eyebrow) { margin: 6px 0 0; font-size: 12px; }
.prep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.prep-group { padding: 13px; border: 1px solid #e4e9ec; border-radius: 13px; background: #f9faf9; }
.prep-group h4 { margin: 0 0 9px; color: var(--navy); font-size: 13px; }
.check-item { display: flex; align-items: flex-start; gap: 8px; margin-top: 7px; color: #526474; font-size: 12px; line-height: 1.5; cursor: pointer; }
.check-item input { flex: 0 0 auto; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--green); }
.check-item input:checked + span { color: #85929b; text-decoration: line-through; }
.shooting-order { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: shoot-order; }
.shooting-order li { position: relative; min-height: 30px; padding: 3px 0 3px 38px; color: #526474; font-size: 12px; line-height: 1.55; counter-increment: shoot-order; }
.shooting-order li::before {
  content: counter(shoot-order); position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px;
  color: #fff; background: var(--navy-2); font-weight: 800;
}
.must-keep { margin-top: 14px; padding: 15px 18px; border-radius: 13px; color: #73511e; background: #fff6df; font-size: 12px; }
.must-keep ol { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 9px 0 0; padding-left: 20px; }
.muted-copy { color: var(--muted); font-size: 12px; }

.segmented-note { margin-top: 14px; padding: 13px 16px; border-radius: 12px; color: #764d2f; background: #fff0e7; font-size: 12px; line-height: 1.65; }
.shot-group { margin-top: 15px; }
.compact-group { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: rgba(255,255,255,.65); }
.shot-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 17px; border-bottom: 1px solid var(--border); background: #fff; }
.shot-group-heading > div { display: flex; align-items: center; gap: 11px; }
.shot-group-heading > div > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; color: #fff; background: var(--orange); font-weight: 900; }
.evidence-group .shot-group-heading > div > span { background: var(--navy-2); }
.shot-group-heading h3, .shot-group-heading p { margin: 0; }
.shot-group-heading h3 { margin-top: 3px; font-size: 16px; }
.shot-group-heading > p { color: var(--muted); font-size: 11px; }
.must-keep.compact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px; padding: 10px 13px; }
.must-keep.compact span::before { content: "✓"; margin-right: 5px; color: var(--orange-dark); font-weight: 900; }
.shot-table { display: grid; gap: 8px; }
.compact-group .shot-table { padding: 9px; }
.shot-row {
  display: grid; grid-template-columns: 54px minmax(135px,.42fr) minmax(360px,1.35fr) minmax(190px,.58fr) 105px;
  gap: 11px; align-items: center; padding: 12px 13px;
  border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.shot-row.talking { border-left: 3px solid var(--orange); }
.shot-row.evidence { border-left: 3px solid var(--navy-2); }
.shot-code { display: grid; place-items: center; width: 48px; height: 36px; border-radius: 10px; color: #fff; background: var(--navy-2); font-weight: 800; font-size: 12px; }
.shot-row h4, .shot-row p { margin: 0; }
.shot-row h4 { font-size: 13px; }
.shot-row p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.shot-summary .badge { margin-top: 6px; }
.shot-spoken { color: var(--ink) !important; font-size: 13px !important; line-height: 1.65 !important; }
.shot-cue { margin-top: 5px !important; color: #7a6758 !important; font-size: 11px !important; }
.shot-cue b, .shot-spoken b { color: var(--orange-dark); }
.evidence .shot-spoken b { color: #376c89; }
.shot-meta { display: grid; gap: 5px; }
.shot-meta span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.shot-meta b { display: block; margin-bottom: 1px; color: #78909f; font-size: 9px; letter-spacing: .05em; }
.shot-action { display: grid; justify-items: end; gap: 5px; }
.shot-action small { overflow: hidden; width: 100%; color: var(--muted); font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.upload-label {
  position: relative; display: inline-flex; justify-content: center;
  border-radius: 10px; padding: 8px 10px; color: var(--navy); background: var(--blue-soft); font-size: 12px; font-weight: 700;
}
.upload-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-label.disabled { cursor: not-allowed; opacity: .58; }
.upload-label.disabled input { cursor: not-allowed; }

.asset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.asset-card { padding: 0; overflow: hidden; }
.asset-preview { aspect-ratio: 16/10; display: grid; place-items: center; background: #e8eef1; color: #71818c; }
.asset-preview video { width: 100%; height: 100%; object-fit: cover; background: #111; }
.asset-body { padding: 15px; }
.asset-body h4 { overflow: hidden; margin: 0 0 5px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.asset-body p { margin: 0; font-size: 11px; }
.asset-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }

.empty {
  padding: 42px 20px; border: 1px dashed #c6d2da; border-radius: var(--radius);
  color: var(--muted); background: rgba(255,255,255,.5); text-align: center;
}
.empty strong { display: block; margin-bottom: 6px; color: var(--ink); }
.compact-empty { margin: 0; padding: 24px 18px; }

.video-frame { overflow: hidden; border-radius: 14px; background: #111; }
.video-frame video { display: block; width: 100%; max-height: 560px; }

.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }
.job-card { display: grid; gap: 12px; }
.job-line { display: flex; justify-content: space-between; gap: 15px; align-items: center; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 15px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 14px; border-bottom: 1px solid #edf1f3; text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #f7f9fa; font-size: 11px; }
tr:last-child td { border-bottom: 0; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metric-box { padding: 17px; border-radius: 14px; color: #fff; background: var(--navy-2); }
.metric-box:nth-child(2) { background: #2f706a; }
.metric-box:nth-child(3) { background: #996936; }
.metric-box:nth-child(4) { background: #744f70; }
.metric-box span, .metric-box strong { display: block; }
.metric-box span { opacity: .75; font-size: 11px; }
.metric-box strong { margin-top: 6px; font-size: 25px; }

dialog { width: min(680px, calc(100vw - 28px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(15,32,46,.28); }
dialog.wide { width: min(1060px, calc(100vw - 28px)); }
dialog::backdrop { background: rgba(13,30,43,.56); backdrop-filter: blur(3px); }
.modal-card { margin: 0; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.modal-head h2 { margin: 4px 0 0; }
.modal-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; max-height: 65vh; overflow-y: auto; padding: 22px 24px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.full { grid-column: 1 / -1; }
.form-field label { color: var(--muted); font-size: 12px; font-weight: 700; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px 22px; }
.calibration-intro, .editor-warning { padding: 14px 16px; border-radius: 12px; color: #674d39; background: #fff3e9; font-size: 12px; line-height: 1.65; }
.calibration-intro p { margin: 4px 0 0; }
.confirm-profile { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; border: 1px solid #cfe7dc; border-radius: 12px; background: #f1f8f5; font-size: 12px; line-height: 1.55; cursor: pointer; }
.confirm-profile input, .inline-check input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--green); }
.shot-editor-list { display: grid; gap: 12px; }
.editor-shot { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fafcfd; }
.editor-shot summary { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: #f2f6f8; cursor: pointer; }
.editor-shot summary span { color: var(--muted); font-size: 11px; }
.editor-shot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 15px; }
.editor-shot-grid .full { grid-column: 1 / -1; }
.inline-check { display: flex; align-items: center; gap: 8px; padding-top: 26px; color: var(--muted); font-size: 12px; }
.render-notes { padding: 12px 14px; border-radius: 11px; color: #765128; background: #fff4df; font-size: 12px; line-height: 1.6; }
.review-history { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.review-history h4 { margin: 0 0 9px; }
.review-history p { padding: 9px 0; border-bottom: 1px solid #edf1f3; font-size: 11px; }

.toast {
  position: fixed; right: 28px; bottom: 28px; z-index: 50;
  max-width: 360px; padding: 13px 16px; border-radius: 12px;
  color: #fff; background: #1f3e55; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--red); }

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid, .review-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .shooting-answer, .shooting-plan-grid { grid-template-columns: 1fr; }
  .shooting-meta { grid-template-columns: repeat(3, 1fr); }
  .generator-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generator-topic, .generator-extra { grid-column: 1 / -1; }
  .shot-row { grid-template-columns: 50px 145px minmax(260px, 1fr) 105px; }
  .shot-meta { grid-column: 3; }
  .shot-action { grid-column: 4; grid-row: 1 / span 2; }
}

@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -260px; width: 244px; transition: left .2s; }
  .sidebar.open { left: 0; box-shadow: 14px 0 40px rgba(0,0,0,.18); }
  .main { padding: 0 17px 40px; }
  .mobile-only { display: inline-grid; place-items: center; }
  .topbar { min-height: 96px; gap: 12px; }
  .topbar-actions .project-select-wrap { display: none; }
  .topbar-actions .primary-button { padding: 10px 12px; font-size: 12px; }
  .account-grid, .asset-grid { grid-template-columns: 1fr; }
  .shot-row { grid-template-columns: 48px minmax(120px,.35fr) minmax(0,1fr) 100px; align-items: start; }
  .shot-meta { grid-column: 3; }
  .shot-action { grid-column: 4; grid-row: 1 / span 2; align-self: center; }
  .prep-grid { grid-template-columns: 1fr; }
  .shot-group-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  body { overflow-x: hidden; }
  .main { width: 100%; overflow: hidden; }
  .topbar h1 { font-size: 23px; }
  .topbar-actions .primary-button { width: 42px; padding: 10px; overflow: hidden; color: transparent; font-size: 0; white-space: nowrap; }
  .topbar-actions .primary-button::after { content: "＋"; color: #fff; font-size: 20px; }
  .hero { padding: 22px; }
  .hero p, .hero h2 { overflow-wrap: anywhere; }
  .hero-grid { grid-template-columns: 1fr; }
  .voice-card { align-items: stretch; flex-direction: column; }
  .voice-card-action { justify-content: space-between; }
  .stats-grid, .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .modal-body { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .full, .editor-shot-grid .full { grid-column: auto; }
  .editor-shot-grid { grid-template-columns: 1fr; }
  .shooting-answer { padding: 20px; }
  .shooting-meta { grid-template-columns: 1fr; }
  .generator-heading { display: grid; }
  .generation-job { align-items: stretch; flex-direction: column; }
  .generation-results { justify-content: flex-start; }
  .generator-controls, .thinking-strip { grid-template-columns: 1fr; }
  .generator-topic, .generator-extra { grid-column: auto; }
  .shooting-meta span { min-width: 0; }
  .card-heading { align-items: flex-start; flex-direction: column; }
  .must-keep ol { display: grid; }
  .must-keep.compact { display: grid; }
  .shot-row { grid-template-columns: 44px 1fr; }
  .shot-summary, .shot-copy, .shot-meta, .shot-action { grid-column: 2; }
  .shot-action { grid-row: auto; justify-items: start; align-self: auto; }
  .shot-action small { text-align: left; }
}
