:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e0d3;
  --surface: #fffdf8;
  --surface-cool: #eef4f1;
  --surface-blue: #edf3f5;
  --ink: #26312f;
  --muted: #6f7470;
  --line: #d8d2c7;
  --spruce: #285f56;
  --spruce-dark: #1e4742;
  --coral: #bd5b49;
  --coral-dark: #934438;
  --gold: #b17d2f;
  --gold-soft: #f5e7c9;
  --blue: #587f91;
  --danger: #a3453e;
  --shadow: 0 14px 34px rgba(50, 44, 35, .08);
  --radius: 8px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper) url("assets/backgrounds/paper-texture.webp") repeat; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #d99a81; outline-offset: 2px; }

.shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(105, 94, 76, .18); background: rgba(255, 253, 248, .96); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0; color: var(--ink); background: transparent; border: 0; text-align: left; }
.brand-mark { position: relative; width: 34px; height: 38px; flex: 0 0 auto; display: block; background: var(--coral); border: 2px solid #fff; box-shadow: 4px 4px 0 var(--spruce); transform: rotate(-2deg); }
.brand-mark::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.75); }
.brand-mark i { position: absolute; left: 15px; top: -5px; width: 2px; height: 46px; background: rgba(255,255,255,.55); transform: rotate(8deg); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-family: "Songti SC", "STSong", serif; font-size: 21px; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; color: var(--spruce-dark); border: 1px solid #c8d8d2; border-radius: 999px; background: var(--surface-cool); font-size: 12px; font-weight: 600; }
.privacy-pill b { width: 7px; height: 7px; border-radius: 50%; background: var(--spruce); box-shadow: 0 0 0 3px #d7e6df; }

.main { max-width: 1240px; margin: 0 auto; padding: 46px 24px 76px; }
.eyebrow { color: var(--coral-dark); font-size: 13px; font-weight: 800; letter-spacing: .06em; }
h1, h2 { font-family: "Songti SC", "STSong", "Noto Serif SC", serif; font-weight: 700; }
h1 { margin: 13px 0 15px; max-width: 860px; font-size: clamp(38px, 5vw, 66px); line-height: 1.16; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; letter-spacing: 0; }
h3 { margin: 0; font-size: 19px; letter-spacing: 0; }
p { line-height: 1.75; }
.lead { max-width: 690px; color: var(--muted); font-size: 18px; }

.btn { min-height: 44px; border: 0; border-radius: 7px; padding: 11px 18px; background: var(--spruce); color: #fff; font-weight: 700; box-shadow: 0 5px 14px rgba(40,95,86,.15); transition: background .16s, transform .16s, box-shadow .16s; }
.btn:hover { background: var(--spruce-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(40,95,86,.2); }
.btn.coral { background: var(--coral); box-shadow: 0 6px 18px rgba(189,91,73,.24); }
.btn.coral:hover { background: var(--coral-dark); }
.btn.secondary { color: var(--spruce-dark); background: var(--surface-cool); box-shadow: none; }
.btn.secondary:hover { background: #dce9e3; }
.btn.ghost { color: var(--spruce-dark); background: transparent; border: 1px solid #bfcac5; box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.6); }
.btn.danger { color: var(--danger); background: #f7e5e2; box-shadow: none; }
.btn.small { min-height: 36px; padding: 8px 12px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .45; transform: none; box-shadow: none; }
.action-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }

.welcome-hero { position: relative; width: min(100vw, 1440px); min-height: min(610px, calc(100vh - 145px)); margin: -46px 0 0 50%; transform: translateX(-50%); display: flex; align-items: center; overflow: hidden; background: #234b47 url("assets/archive-table.webp") center/cover no-repeat; color: #fffdf8; }
.welcome-hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 58%; background: rgba(26,60,56,.78); }
.welcome-copy { position: relative; z-index: 1; width: min(690px, 52%); margin-left: max(24px, calc((100vw - 1240px) / 2)); padding: 58px 34px 54px 0; }
.welcome-copy .eyebrow { color: #f0c96f; }
.welcome-copy h1 { max-width: 650px; margin-top: 17px; font-size: clamp(46px, 6vw, 76px); line-height: 1.12; }
.welcome-copy .lead { max-width: 620px; color: #e8eee9; }
.welcome-copy blockquote { margin: 45px 0 0; padding-left: 18px; border-left: 2px solid #f0c96f; color: #f4dfbd; font-family: "Songti SC", "STSong", serif; font-size: 18px; }
.hero-caption { position: absolute; z-index: 2; right: max(24px, calc((100vw - 1240px) / 2)); bottom: 28px; display: grid; gap: 4px; max-width: 330px; padding: 14px 16px; background: rgba(255,253,248,.9); color: var(--ink); border-left: 4px solid var(--coral); }
.hero-caption span { color: var(--muted); font-size: 12px; }
.hero-caption strong { font-family: "Songti SC", "STSong", serif; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 38px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step { min-height: 138px; display: flex; gap: 18px; padding: 26px 24px; border-right: 1px solid var(--line); background: transparent; }
.step:last-child { border-right: 0; }
.step-number { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: var(--coral); border-radius: 50%; font-weight: 800; font-size: 12px; }
.step:nth-child(2) .step-number { background: var(--gold); }
.step:nth-child(3) .step-number { background: var(--blue); }
.step p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.card { background-color: var(--surface); background-image: url("assets/backgrounds/paper-texture.webp"); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(61,52,40,.05); }
.form-shell { max-width: 780px; margin: 0 auto; }
.form-shell > .eyebrow { display: inline-block; padding-bottom: 7px; border-bottom: 2px solid var(--coral); }
.editorial-page { position: relative; max-width: 1180px; min-height: 720px; padding-left: 400px; }
.editorial-page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 350px; min-height: 680px; border-radius: var(--radius); background-color: var(--spruce-dark); background-position: center; background-size: cover; box-shadow: var(--shadow); }
.editorial-page::after { content: ""; position: absolute; top: 22px; bottom: 22px; left: 22px; width: 306px; border: 1px solid rgba(255,255,255,.52); border-radius: 4px; pointer-events: none; }
.identity-editorial::before { background-image: url("assets/backgrounds/identity-books.webp"); background-position: center 46%; }
.project-editorial::before { background-image: url("assets/backgrounds/project-together.webp"); background-position: center 45%; }
.topic-editorial::before { background-image: url("assets/backgrounds/topic-notebook-vertical.webp"); background-position: center 52%; }
.invitation-editorial::before { background-image: url("assets/backgrounds/invitation-letter.webp"); background-position: center 48%; }
.activation-editorial::before { background-image: url("assets/backgrounds/activation-camera.webp"); background-position: center 48%; }
.editorial-page h1 { max-width: 700px; }
.editorial-page .form-card { margin-top: 26px; border-top: 1px solid var(--line); border-left: 4px solid var(--coral); background: rgba(255,253,248,.94); box-shadow: 0 18px 42px rgba(61,52,40,.09); }
.topic-editorial .form-card { border-left-color: var(--gold); }
.invitation-editorial .form-card { border-left-color: var(--blue); }
.activation-editorial .form-card { border-left-color: var(--spruce); }
.topic-editorial .option-grid { counter-reset: topic; }
.topic-editorial .option { position: relative; padding-left: 54px; }
.topic-editorial .option::before { counter-increment: topic; content: counter(topic); position: absolute; left: 17px; top: 17px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: var(--coral-dark); background: #f6dfd6; font-size: 12px; font-weight: 800; }
.topic-editorial .option.selected::after { content: "✓"; position: absolute; right: 13px; top: 13px; color: #fff; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--spruce); font-weight: 800; }
.invitation-editorial .invite-question { position: relative; padding: 20px 22px 20px 40px; border-top: 1px solid #d9c8a8; border-bottom: 1px solid #d9c8a8; background: #fffaf0; }
.invitation-editorial .invite-question::before { content: "“"; position: absolute; left: 10px; top: 3px; color: var(--gold); font-family: "Songti SC", serif; font-size: 48px; line-height: 1; }
.completion-editorial .form-card { min-height: 180px; display: flex; flex-direction: column; justify-content: center; }
.progress { display: flex; gap: 8px; margin: 26px 0 34px; }
.progress span { height: 5px; flex: 1; background: #d9d3c8; border-radius: 10px; }
.progress span.active { background: var(--coral); }
.form-card { margin-top: 28px; padding: clamp(24px, 5vw, 50px); border-top: 4px solid var(--gold); }
.field { display: grid; gap: 9px; margin: 20px 0; }
.field label { font-weight: 700; }
.field small { color: var(--muted); }
input, select, textarea { width: 100%; padding: 13px 14px; border: 1px solid #c9c2b7; border-radius: 6px; background: #fffefa; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: #a9a095; }
input:focus, select:focus, textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(189,91,73,.11); }
textarea { min-height: 144px; resize: vertical; line-height: 1.68; }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.option { min-height: 92px; text-align: left; padding: 17px; color: var(--ink); background: #fffefa; border: 1px solid var(--line); border-radius: 7px; transition: border-color .15s, background .15s, transform .15s; }
.option:hover { border-color: #d49a83; transform: translateY(-1px); }
.option strong, .option span { display: block; }
.option span { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.option.selected { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(189,91,73,.14); background: #fff8f4; }

.dashboard-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.visual-header { position: relative; min-height: 270px; align-items: flex-end; overflow: hidden; padding: 34px; border: 0; border-radius: var(--radius); background-color: var(--spruce-dark); background-position: center; background-size: cover; color: #fff; box-shadow: var(--shadow); }
.visual-header::before { content: ""; position: absolute; inset: 0; background: rgba(25, 47, 44, .64); }
.visual-header > * { position: relative; z-index: 1; }
.visual-header h1, .visual-header h2 { max-width: 780px; color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.24); }
.visual-header .eyebrow, .visual-header .topic-label { color: #f3ce77; }
.visual-header .lead, .visual-header .subject p { color: #e5ece8; }
.visual-header .btn.ghost { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(22,42,39,.25); }
.visual-header .btn.ghost:hover { background: rgba(255,255,255,.14); }
.visual-dashboard { background-image: url("assets/backgrounds/dashboard-together.webp"); background-position: center 44%; }
.visual-collaboration { background-image: url("assets/backgrounds/collaboration-together.webp"); background-position: center 48%; }
.visual-story { background-image: url("assets/backgrounds/story-notebook.webp"); background-position: center 54%; }
.visual-archive { background-image: url("assets/backgrounds/archive-camera.webp"); background-position: center 52%; }
.visual-interview { min-height: 190px; background-image: url("assets/backgrounds/interview-voice.webp"); background-position: center 47%; }
.visual-interview::before { background: rgba(28, 47, 45, .58); }
.photo-page { position: relative; padding-top: 230px; }
.photo-page::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 200px; border-radius: var(--radius); background-color: var(--spruce-dark); background-position: center; background-size: cover; box-shadow: var(--shadow); }
.story-photo-page::before { background-image: url("assets/backgrounds/story-notebook.webp"); background-position: center 56%; }
.film-photo-page::before { background-image: url("assets/backgrounds/film-cinema.webp"); background-position: center 52%; }
.archive-photo-page::before { background-image: url("assets/backgrounds/archive-camera.webp"); background-position: center 52%; }
.subject { display: flex; align-items: center; gap: 16px; }
.avatar { width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; border: 5px solid #f1d7ce; font-family: "Songti SC", "STSong", serif; font-weight: 700; font-size: 25px; }
.subject p { margin: 5px 0 0; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.55fr .9fr; gap: 22px; margin-top: 30px; }
.card { padding: 26px; }
.next-card { position: relative; overflow: hidden; background: var(--spruce-dark); color: #fff; border: 0; box-shadow: var(--shadow); }
.next-card::after { content: "记"; position: absolute; right: 22px; bottom: -34px; color: rgba(255,255,255,.07); font-family: "Songti SC", serif; font-size: 170px; }
.next-card > * { position: relative; z-index: 1; }
.next-card p { color: #cfe0d9; }
.next-card .btn { background: var(--coral); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { min-height: 116px; padding: 18px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line); }
.stat:nth-child(2n) { background: var(--surface-blue); }
.stat strong { display: block; font-family: "Songti SC", serif; font-size: 34px; color: var(--coral-dark); }
.stat span { color: var(--muted); font-size: 13px; }
.archive-preview { margin-top: 22px; }
.entry { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.entry:last-child { border-bottom: 0; }
.entry-mark { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: #77541f; font-family: "Songti SC", serif; font-weight: 700; }
.entry h4 { margin: 0 0 5px; font-size: 16px; }
.entry p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.interview { max-width: 900px; margin: 0 auto; }
.interview-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.topic-label { color: var(--coral-dark); font-weight: 800; font-size: 13px; }
.conversation { min-height: 390px; max-height: 55vh; overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 6px #faf7f1; }
.message { display: flex; margin: 17px 0; }
.message.ai { justify-content: flex-start; }
.message.user { justify-content: flex-end; }
.bubble { max-width: 78%; padding: 14px 16px; border-radius: 8px; line-height: 1.68; }
.message.ai .bubble { background: var(--surface-cool); border-left: 3px solid var(--spruce); }
.message.user .bubble { background: #f3d9cf; color: #482d29; border-right: 3px solid var(--coral); }
.composer { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.composer textarea { min-height: 110px; border: 0; padding: 0; background: transparent; box-shadow: none; }
.composer textarea:focus-visible { outline: 0; }
.composer-footer { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 13px; }

.review { max-width: 940px; margin: 0 auto; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.review-item { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--coral); border-radius: var(--radius); box-shadow: 0 10px 26px rgba(61,52,40,.05); }
.review-item:nth-child(2n) { border-top-color: var(--gold); }
.review-item .source { margin: 10px 0 14px; color: var(--muted); font-size: 12px; }
.review-item input, .review-item textarea { margin-top: 8px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.status-chip { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; color: var(--spruce-dark); background: #dfece6; font-size: 12px; font-weight: 700; }
.empty { padding: 44px 16px; color: var(--muted); text-align: center; border: 1px dashed #c7bfb3; background: rgba(255,255,255,.38); }
.empty::before { content: ""; display: block; width: 46px; height: 3px; margin: 0 auto 16px; background: var(--coral); box-shadow: 13px 7px 0 var(--gold); transform: rotate(-2deg); }
.notice { margin-top: 22px; padding: 15px 17px; color: #624a27; background: #fbefda; border-left: 4px solid var(--gold); line-height: 1.6; font-size: 14px; }
.global-notice { max-width: 900px; margin: 0 auto 24px; }
.footer-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.story-media { margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background-color: rgba(255,253,248,.94); background-image: url("assets/backgrounds/paper-texture.webp"); box-shadow: var(--shadow); }
.story-media-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.story-media-head .eyebrow { margin-bottom: 5px; }
.story-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.story-media-item { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.story-media-item img, .story-media-item video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #273d3a; }
.story-media-meta { display: grid; gap: 5px; padding: 13px 46px 14px 14px; }
.story-media-meta strong { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.story-media-meta span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.media-delete { position: absolute; right: 9px; bottom: 10px; margin: 0; }
.media-upload-panel { display: grid; grid-template-columns: .78fr 1.22fr; gap: 24px; margin: 18px 0; padding: 22px; border: 1px dashed #b9aea0; border-radius: var(--radius); background: rgba(255,255,255,.48); }
.media-upload-intro { padding: 4px 4px 4px 0; border-right: 1px solid var(--line); }
.media-upload-intro h3 { margin-top: 6px; font-family: "Songti SC", serif; font-size: 22px; }
.media-upload-intro p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.media-upload-panel .field:first-child { margin-top: 0; }
.media-upload-panel input[type="file"] { padding: 10px; background: var(--surface); }
.media-upload-panel input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 11px; border: 0; border-radius: 5px; background: var(--surface-cool); color: var(--spruce-dark); font-weight: 700; cursor: pointer; }
.media-upload-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.media-upload-actions .hint { max-width: 360px; }

.audio-review { margin: 16px 0; padding: 20px; border: 1px solid #d9bf8f; border-left: 4px solid var(--gold); border-radius: var(--radius); background: #fff9ee; }
.audio-review h3 { color: #8b6122; }
.audio-review > p { margin: 8px 0 16px; color: var(--muted); font-size: 14px; }
.audio-asset { display: grid; gap: 12px; padding: 16px; border: 1px solid #ead8b9; border-radius: 7px; background: #fff; }
.audio-asset audio { width: 100%; }
.audio-tag { display: inline-block; margin-right: 8px; padding: 2px 6px; border-radius: 4px; background: #dce9e4; color: var(--spruce-dark); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.transcript-failed { border-color: #d99c92; border-left-color: var(--danger); background: #fff7f5; }

.collab-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-top: 30px; }
.collab-grid .card:first-child { border-top: 4px solid var(--coral); }
.collab-grid .card:last-child { border-top: 4px solid var(--blue); }
.invite-question { margin: 0 0 18px; color: var(--spruce-dark); font-family: "Songti SC", serif; font-size: 22px; line-height: 1.55; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; color: var(--ink); line-height: 1.5; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--coral); }
.share-result { display: grid; gap: 9px; margin-top: 18px; padding: 14px; border-left: 3px solid var(--blue); background: var(--surface-blue); }
.share-result input { font-size: 13px; }
.contribution { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contribution:last-child { border-bottom: 0; }
.contribution h4 { margin: 10px 0 6px; }
.contribution p { margin: 0 0 8px; color: var(--muted); }
.contribution .review-actions { align-self: flex-start; justify-content: flex-end; }

.story-editor { margin-top: 28px; padding: clamp(22px, 4vw, 38px); border-top: 4px solid var(--gold); }
.story-chapter { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 7px; background: #fffdf8; }
.story-chapter:nth-child(even) { border-left-color: var(--coral); }
.chapter-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.icon-btn { width: 34px; height: 34px; margin-left: 5px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--spruce-dark); font-weight: 700; }
.icon-btn:hover { background: var(--surface-cool); }
.danger-icon { color: var(--danger); }
.chapter-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.chapter-sources span { padding: 4px 8px; border-radius: 4px; background: var(--gold-soft); color: #6b512f; }

.film-card, .film-preview { margin-top: 28px; padding: clamp(22px, 4vw, 38px); border-top: 4px solid var(--blue); }
.film-preview { display: grid; gap: 18px; }
.film-preview video { width: 100%; max-height: 440px; background: var(--spruce-dark); border-radius: 6px; }
.ai-suggestions { margin: 16px 0; padding: 20px; border: 1px solid #b9d1c7; border-left: 4px solid var(--spruce); border-radius: var(--radius); background: var(--surface-cool); }
.ai-suggestions > p, .ai-suggestions article small { color: var(--muted); font-size: 13px; }
.ai-suggestions article { margin-top: 12px; padding: 14px; border-left: 3px solid var(--coral); background: var(--surface); }
.ai-suggestions article p { margin: 8px 0; }
.uncertainty-note { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--gold); background: #fff8e8; color: #63491f; }
.uncertainty-note strong { font-size: 13px; }
.uncertainty-note p { margin: 5px 0 0; font-size: 13px; }

@media (max-width: 900px) {
  .welcome-hero::after { width: 72%; }
  .welcome-copy { width: 66%; }
  .hero-caption { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .editorial-page { min-height: 0; padding-left: 0; padding-top: 310px; }
  .editorial-page::before { top: 0; bottom: auto; width: 100%; height: 275px; min-height: 0; }
  .editorial-page::after { top: 20px; left: 20px; bottom: auto; width: calc(100% - 40px); height: 235px; }
}

@media (max-width: 760px) {
  .topbar { height: 66px; padding: 0 16px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 29px; height: 33px; }
  .privacy-pill { max-width: 152px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .main { padding: 32px 16px 56px; }
  .editorial-page { padding-top: 248px; }
  .editorial-page::before { height: 216px; }
  .editorial-page::after { top: 16px; left: 16px; width: calc(100% - 32px); height: 184px; }
  .editorial-page .form-card { margin-top: 22px; }
  h1 { font-size: 38px; }
  .welcome-hero { min-height: calc(100vh - 118px); margin-top: -32px; background-position: 62% center; align-items: flex-end; }
  .welcome-hero::after { width: 100%; background: rgba(25,57,53,.76); }
  .welcome-copy { width: 100%; margin: 0; padding: 44px 20px 52px; }
  .welcome-copy h1 { font-size: 46px; }
  .welcome-copy .lead { font-size: 16px; }
  .welcome-copy blockquote { margin-top: 32px; }
  .steps, .hero-grid, .review-grid, .collab-grid { grid-template-columns: 1fr; }
  .steps { margin-top: 26px; }
  .step { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
  .option-grid { grid-template-columns: 1fr; }
  .dashboard-header { flex-direction: column; }
  .conversation { min-height: 360px; padding: 17px; }
  .story-media-grid, .media-upload-panel { grid-template-columns: 1fr; }
  .story-media-head, .media-upload-actions { align-items: stretch; flex-direction: column; }
  .media-upload-intro { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .media-upload-actions .btn { width: 100%; }
  .bubble { max-width: 91%; }
  .composer-footer { align-items: stretch; flex-direction: column; }
  .composer-footer .action-row { width: 100%; margin: 0; }
  .composer-footer .btn { flex: 1; }
  .contribution { flex-direction: column; }
  .contribution .review-actions { justify-content: flex-start; }
  .story-chapter { padding: 16px; }
}

@media (max-width: 430px) {
  .privacy-pill { width: 38px; height: 38px; justify-content: center; padding: 0; color: transparent; }
  .privacy-pill b { flex: 0 0 auto; }
  .welcome-copy h1 { font-size: 39px; }
  .action-row .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .card { padding: 20px; }
}
