:root {
  --cream: #f2ece0;
  --paper: #fbf7ef;
  --indigo: #26386b;
  --indigo-2: #172447;
  --amber: #e8a33d;
  --sage: #6fa98b;
  --rust: #a64f3c;
  --muted: #6e6b65;
  --line: rgba(38, 56, 107, .18);
  --shadow: 0 18px 50px rgba(38, 56, 107, .12);
  --radius: 22px;
  --sans: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  --serif: "Gowun Batang", "AppleMyungjo", "Nanum Myeongjo", serif;
}
.integration-card { margin: 24px 0; padding: 22px; display: flex; justify-content: space-between; gap: 20px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.integration-card h2 { margin: 4px 0 8px; }
.integration-card p { color: var(--muted); }
* { box-sizing: border-box; }
html { background: var(--cream); color: var(--indigo-2); font-size: 18px; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; font-family: var(--sans); line-height: 1.65; background: radial-gradient(circle at 12% 8%, rgba(232,163,61,.12), transparent 30%), linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)), var(--cream); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(rgba(38,56,107,.18) .55px, transparent .55px); background-size: 6px 6px; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid rgba(232,163,61,.62); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 30; background: var(--indigo); color: white; padding: 12px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 4; max-width: 1440px; margin: auto; padding: 24px 42px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.45rem; letter-spacing: -.03em; }
.wordmark-mark { display: block; width: 38px; height: 34px; object-fit: contain; }
.top-nav { display: flex; gap: 28px; }
.top-nav a { text-decoration: none; font-size: .94rem; font-weight: 700; }
.page-shell { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 48px 42px 100px; }
.centered-shell { max-width: 760px; }
.stage-rail { position: relative; z-index: 2; max-width: 1196px; margin: 12px auto 12px; padding: 0 42px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stage-item { min-height: 76px; padding: 12px 16px; border-top: 3px solid var(--line); display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; color: var(--muted); }
.stage-item > span { grid-row: span 2; display: grid; place-items: center; align-self: start; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; font-weight: 800; }
.stage-item strong { font-size: .95rem; }.stage-item small { font-size: .76rem; }
.stage-item.is-current { border-color: var(--amber); color: var(--indigo); }.stage-item.is-current > span { background: var(--amber); border-color: var(--amber); }.stage-item.is-done { border-color: var(--sage); color: var(--indigo); }.stage-item.is-done > span { background: var(--sage); color: white; border-color: var(--sage); }
h1, h2 { overflow-wrap: anywhere; word-break: keep-all; font-family: var(--serif); color: var(--indigo); line-height: 1.25; letter-spacing: -.035em; }
h1 { font-size: clamp(2.2rem, 5vw, 4.4rem); margin: 0 0 22px; } h2 { font-size: 1.45rem; }
p { margin: 0 0 1em; }.eyebrow { color: var(--rust); font-weight: 800; font-size: 16px; letter-spacing: .09em; text-transform: uppercase; }.lede { font-size: 1.12rem; color: #4c4a46; max-width: 680px; }
.hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; min-height: 680px; }.hero-copy { padding-bottom: 80px; }.hero-copy h1 { max-width: 720px; }.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }.trust-row span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 700; }
.paper-card { position: relative; background: rgba(251,247,239,.94); border: 1px solid rgba(38,56,107,.12); border-radius: var(--radius); box-shadow: var(--shadow); }.paper-card::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(38,56,107,.055); border-radius: calc(var(--radius) - 6px); pointer-events: none; }
.intake-card { padding: 28px; }.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(38,56,107,.07); padding: 5px; border-radius: 14px; margin-bottom: 24px; }.mode-tab { min-height: 52px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 800; cursor: pointer; }.mode-tab.is-active { color: var(--indigo); background: var(--paper); box-shadow: 0 2px 10px rgba(38,56,107,.1); }.mode-panel { margin-bottom: 28px; }.chat-log { max-height: 290px; min-height: 180px; overflow: auto; padding: 8px 4px 18px; }.bubble { width: fit-content; max-width: 88%; padding: 13px 16px; border-radius: 16px; margin-bottom: 10px; font-size: .92rem; }.bubble-agent { background: rgba(111,169,139,.15); border-bottom-left-radius: 4px; }.bubble-user { margin-left: auto; background: var(--indigo); color: white; border-bottom-right-radius: 4px; }.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 10px; }.chat-compose label { grid-column: 1 / -1; }.chat-compose textarea { grid-row: 2 / span 2; }
label, .field-label { display: grid; gap: 7px; margin-bottom: 18px; font-size: .88rem; font-weight: 800; color: var(--indigo); }input, textarea, select { width: 100%; min-height: 54px; border: 1.5px solid rgba(38,56,107,.23); border-radius: 12px; padding: 12px 14px; color: var(--indigo-2); background: rgba(255,255,255,.72); }.field-help { font-size: .82rem; color: var(--muted); }.profile-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; padding: 12px 22px; border: 1px solid transparent; font-weight: 850; text-decoration: none; cursor: pointer; }.button:disabled { opacity: .62; cursor: not-allowed; }.button.is-loading { gap: 10px; }.button.is-loading::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .75s linear infinite; }.button-primary { color: white; background: var(--indigo); box-shadow: 0 4px 10px rgba(38,56,107,.18); }.button-primary:hover { background: var(--indigo-2); }.button-secondary { color: var(--indigo); background: transparent; border-color: rgba(38,56,107,.35); }.button-danger { color: white; background: var(--rust); }.button-wide { width: 100%; }.text-button, .text-link { display: inline-block; background: none; border: 0; color: var(--indigo); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.content-header { max-width: 850px; margin-bottom: 38px; }.content-header h1 { font-size: clamp(2rem,4vw,3.5rem); }.editor-layout, .review-layout, .result-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(320px,.7fr); gap: 28px; align-items: start; }.review-layout > * { min-width: 0; }.editor-card { padding: 34px; }.profile-card, .generate-card { padding: 28px; position: sticky; top: 20px; }.title-input { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }.title-input.compact { font-size: 1.25rem; }.essay-editor { font-family: var(--serif); font-size: 1.08rem; line-height: 1.9; resize: vertical; }.editor-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; margin-top: 8px; }.narrow-section { max-width: 860px; margin: auto; }.template-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 22px; border: 3px solid var(--amber); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); margin-bottom: 24px; cursor: pointer; }.template-card > input { position: absolute; opacity: 0; pointer-events: none; }.template-art { min-height: 290px; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; overflow: hidden; padding: 6px; background: var(--cream); border: 1px solid var(--line); }.template-art img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; }.template-copy { display: flex; flex-direction: column; justify-content: center; }.template-copy small { color: var(--rust); font-weight: 900; }.template-copy strong { font-family: var(--serif); font-size: 2rem; color: var(--indigo); }.template-copy span { color: var(--muted); margin: 12px 0; }.template-copy em { width: fit-content; font-style: normal; font-weight: 850; background: rgba(232,163,61,.25); padding: 7px 12px; border-radius: 999px; }
.triptych { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }.story-image { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 9px; box-shadow: 0 12px 30px rgba(38,56,107,.09); }.story-image:nth-child(2) { transform: translateY(18px); }.story-image img, .image-placeholder { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; background: var(--cream); }.story-image figcaption { display: flex; gap: 8px; align-items: center; padding: 12px 4px 4px; font-family: var(--serif); font-weight: 700; }.story-image figcaption span { font-family: var(--sans); color: var(--rust); font-size: .7rem; }.story-review { margin-top: 46px; padding: 28px 30px; border-top: 4px solid var(--amber); background: rgba(251,247,239,.82); box-shadow: 0 12px 30px rgba(38,56,107,.07); }.story-review .eyebrow { margin-bottom: 7px; }.story-review h2 { margin: 0 0 18px; }.story-review-body { white-space: pre-wrap; font-family: var(--serif); font-size: 1.02rem; line-height: 1.95; color: #343944; }.approval-note, .gentle-notice { display: flex; gap: 12px; padding: 16px; margin-top: 30px; background: rgba(111,169,139,.14); border-radius: 14px; }.approval-note > span { font-weight: 900; color: var(--sage); }.approval-note p, .gentle-notice p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }.consent-row { grid-template-columns: 24px 1fr; align-items: start; margin: 30px 0 32px; font-weight: 600; }.consent-row input { min-height: auto; width: 22px; height: 22px; margin-top: 3px; }
.progress-card { text-align: center; padding: 56px; }.making-mark { height: 150px; position: relative; margin-bottom: 14px; }.making-mark span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: breathe 3.6s ease-in-out infinite; }.making-mark span:nth-child(1) { width: 120px; height: 120px; left: calc(50% - 95px); top: 18px; background: var(--indigo); }.making-mark span:nth-child(2) { width: 86px; height: 86px; left: calc(50% - 5px); top: 0; background: var(--amber); animation-delay: -.9s; }.making-mark span:nth-child(3) { width: 92px; height: 92px; left: calc(50% - 5px); top: 60px; background: var(--sage); animation-delay: -1.8s; }.progress-card h1 { font-size: 2.7rem; }.progress-list { list-style: none; padding: 0; max-width: 460px; margin: 34px auto; text-align: left; }.progress-list li { position: relative; padding: 13px 10px 13px 44px; border-bottom: 1px solid var(--line); }.progress-list li::before { content: ""; position: absolute; left: 10px; top: 18px; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; }.progress-list li.is-done::before { background: var(--sage); border-color: var(--sage); }.progress-list li.is-active::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 6px rgba(232,163,61,.18); }
.auth-card { padding: 38px; }.auth-card h1 { font-size: 2.45rem; }.library-header, .admin-header { display: flex; justify-content: space-between; align-items: end; }.library-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }.library-card { overflow: hidden; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }.library-cover { min-height: 300px; padding: 26px; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--cream); border-bottom: 1px solid var(--line); }.library-cover span { font-size: .65rem; letter-spacing: .14em; }.library-cover strong { font-family: var(--serif); color: var(--indigo); font-size: 1.55rem; margin: 44px 0 18px; }.library-cover small { color: var(--muted); }.library-body { padding: 20px; }.status-pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: rgba(38,56,107,.09); font-size: .68rem; font-weight: 850; white-space: nowrap; }.status-problem, .status-failed, .status-rejected, .status-canceled { color: var(--rust); background: rgba(166,79,60,.12); }.status-notification_pending, .status-admin_review { background: rgba(232,163,61,.18); }.status-approved, .status-notification_sent, .status-complete, .status-completed, .status-notified { background: rgba(111,169,139,.18); }.result-layout { align-items: center; }.video-frame { aspect-ratio: 9/16; max-height: 72vh; margin: auto; background: var(--indigo-2); border: 10px solid var(--paper); box-shadow: var(--shadow); }.video-frame video { width: 100%; height: 100%; object-fit: contain; }.video-placeholder { height: 100%; color: var(--cream); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; }.video-placeholder span { font-size: .65rem; letter-spacing: .14em; }.video-placeholder strong { font-family: var(--serif); font-size: 1.7rem; margin: 60px 0; }.result-copy .button { margin-top: 12px; }
.admin-header h1 { font-size: 3rem; }.capacity { text-align: right; }.capacity span, .capacity strong { display: block; }.capacity strong { font-size: 1.6rem; color: var(--indigo); }.admin-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 24px 0 34px; }.admin-stats article { padding: 20px; border-top: 4px solid var(--amber); background: var(--paper); }.admin-stats span, .admin-stats strong { display: block; }.admin-stats strong { font-size: 2rem; color: var(--indigo); }.problem-note { color: var(--rust); }.empty-state { text-align: center; padding: 80px 30px; border: 1px dashed var(--line); border-radius: var(--radius); }.toast { position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--indigo-2); color: white; padding: 12px 18px; border-radius: 10px; transition: .2s ease; }.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.landing-shell { max-width: 1440px; padding-top: 22px; }
.landing-hero { min-height: 720px; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.7fr); gap: 84px; align-items: center; padding: 40px 0 100px; }.landing-hero > * { min-width: 0; }
.landing-copy h1 { max-width: 760px; font-size: clamp(3.2rem,7vw,6.4rem); line-height: 1.05; }.landing-copy .lede { max-width: 720px; font-size: 1.2rem; }
.landing-actions { display: flex; align-items: center; gap: 26px; margin: 36px 0; }.landing-actions .button { min-height: 60px; padding-inline: 30px; }
.landing-trust { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }.landing-trust span { display: flex; gap: 8px; align-items: center; }.landing-trust b { color: var(--rust); }
.hero-film { position: relative; width: min(100%,440px); justify-self: center; padding: 0; border: 10px solid var(--paper); background: var(--indigo); color: white; aspect-ratio: 9/16; overflow: hidden; box-shadow: 22px 28px 0 rgba(232,163,61,.18), var(--shadow); cursor: pointer; transform: rotate(2deg); }.hero-film img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }.hero-film:hover img { transform: scale(1.025); }.hero-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%,rgba(23,36,71,.86)); }
.film-play { position: absolute; z-index: 2; left: 28px; top: 28px; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--amber); color: var(--indigo-2); font-size: 1.15rem; box-shadow: 0 8px 22px rgba(0,0,0,.18); }.film-caption { position: absolute; z-index: 2; left: 28px; right: 28px; bottom: 30px; text-align: left; }.film-caption small,.film-caption strong { display: block; }.film-caption small { color: #f5c77e; letter-spacing: .15em; font-weight: 800; }.film-caption strong { margin-top: 7px; font-family: var(--serif); font-size: 1.7rem; }
.example-section { padding: 110px 0; border-top: 1px solid var(--line); scroll-margin-top: 20px; }.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }.section-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2.2rem,4vw,3.8rem); }.section-heading > p { max-width: 380px; color: var(--muted); }
.example-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }.example-card { display: grid; grid-template-columns: 180px 1fr; gap: 24px; min-height: 330px; padding: 14px; text-align: left; border: 1px solid var(--line); border-radius: 24px; color: inherit; background: rgba(251,247,239,.76); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }.example-card:hover { transform: translateY(-5px); border-color: var(--amber); box-shadow: var(--shadow); }
.example-poster { position: relative; display: block; overflow: hidden; border-radius: 14px; }.example-poster img { width: 100%; height: 100%; object-fit: cover; }.example-poster i { position: absolute; right: 14px; bottom: 14px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--indigo); background: var(--paper); font-style: normal; box-shadow: 0 5px 16px rgba(0,0,0,.18); }.example-copy { align-self: center; display: flex; flex-direction: column; }.example-copy small { color: var(--rust); font-weight: 850; }.example-copy strong { margin: 10px 0; font-family: var(--serif); font-size: 1.7rem; color: var(--indigo); line-height: 1.25; }.example-copy > span { color: var(--muted); font-size: .88rem; }.example-copy em { margin-top: 24px; color: var(--indigo); font-style: normal; font-weight: 850; }
.landing-how { padding: 110px 0 30px; border-top: 1px solid var(--line); }.how-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.how-grid li { min-height: 250px; padding: 28px; border-top: 4px solid var(--amber); background: rgba(251,247,239,.7); }.how-grid li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--indigo); color: white; font-weight: 900; }.how-grid strong { display: block; margin: 30px 0 8px; font-family: var(--serif); font-size: 1.35rem; color: var(--indigo); }.how-grid p { color: var(--muted); font-size: .88rem; }.landing-final { margin-top: 44px; padding: 38px; display: flex; align-items: center; justify-content: space-between; border-radius: 22px; background: var(--indigo); color: white; }.landing-final p { margin: 0; font-family: var(--serif); font-size: 1.7rem; }.landing-final .button { background: var(--amber); color: var(--indigo-2); }
.story-image-trigger { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }.story-image-trigger img { display: block; width: 100%; transition: transform .2s ease; }.story-image-trigger:hover img { transform: scale(1.02); }.story-image-trigger:focus-visible { outline: 4px solid rgba(232,163,61,.62); outline-offset: 3px; }
.image-dialog { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; overflow: visible; background: transparent; color: var(--indigo-2); }.image-dialog::backdrop { background: rgba(10,18,38,.78); backdrop-filter: blur(8px); }.dialog-image { margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.48); }.dialog-image img { display: block; width: 100%; max-height: 82dvh; object-fit: contain; background: var(--indigo-2); }.dialog-image figcaption { padding: 14px 20px; font-family: var(--serif); font-weight: 700; color: var(--indigo); text-align: center; }
.video-dialog { width: min(520px,50dvh,calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; overflow: visible; background: transparent; color: var(--indigo-2); }.video-dialog::backdrop,.confirm-dialog::backdrop { background: rgba(10,18,38,.78); backdrop-filter: blur(8px); }.dialog-video { width: 100%; aspect-ratio: 9/16; overflow: hidden; border-radius: 18px; background: #10172b; box-shadow: 0 30px 100px rgba(0,0,0,.48); }.dialog-video video { display: block; width: 100%; height: 100%; object-fit: contain; }.dialog-close { position: absolute; z-index: 3; right: 12px; top: 12px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(251,247,239,.94); color: var(--indigo); font-size: 1.7rem; cursor: pointer; box-shadow: 0 5px 18px rgba(0,0,0,.2); }
.question-shell { max-width: 960px; }.question-page { min-height: 650px; display: flex; flex-direction: column; justify-content: center; }.question-page h1 { max-width: 800px; font-size: clamp(2.15rem,4.2vw,3.65rem); line-height: 1.2; }.back-link { width: fit-content; margin-bottom: 46px; color: var(--muted); text-decoration: none; font-weight: 750; }.answer-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 34px; }.answer-card { min-height: 300px; display: flex; flex-direction: column; padding: 30px; border: 2px solid var(--line); border-radius: 22px; background: rgba(251,247,239,.8); text-decoration: none; transition: .2s ease; }.answer-card:hover { transform: translateY(-4px); border-color: var(--amber); box-shadow: var(--shadow); }.answer-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: white; background: var(--indigo); font-weight: 900; }.answer-icon.alt { background: var(--rust); }.answer-card strong { margin: 34px 0 8px; font-family: var(--serif); font-size: 1.55rem; color: var(--indigo); }.answer-card p { color: var(--muted); font-size: .88rem; }.answer-card em { margin-top: auto; color: var(--indigo); font-style: normal; font-weight: 850; }
.conversation-card,.question-form { margin-top: 32px; padding: 30px; border: 1px solid var(--line); border-radius: 22px; background: rgba(251,247,239,.88); box-shadow: var(--shadow); }.conversation-card .chat-log { max-height: 330px; }.conversation-card > .button { margin-top: 22px; }.conversation-card textarea { resize: vertical; }
.page-shell.question-shell:has(.question-page[data-mode="chat"]) { background: var(--paper); padding-top: 35px; padding-bottom: 0; min-height: calc(100dvh - 186px); }
.chat-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 5px 0 10px; border-bottom: 1px solid rgba(38,56,107,.1); position: sticky; top: 0; background: var(--paper); z-index: 10; }.chat-header .back-link { margin-bottom: 0; }.chat-header .back-link { font-size: 15px; }.chat-next-button { background: none; border: 0; padding: 0; color: var(--muted); font-size: 15px; font-weight: 750; cursor: pointer; }
.chat-log { max-height: none; padding: 8px 0 12px; flex: 1; }
.question-page[data-mode="chat"] .bubble { max-width: 88%; width: fit-content; margin-bottom: 14px; padding: 15px 20px; border-radius: 20px; font-size: 21px; line-height: 1.55; }.question-page[data-mode="chat"] .bubble-agent { background: rgba(111,169,139,.18); border-bottom-left-radius: 6px; color: var(--indigo-2); }.question-page[data-mode="chat"] .bubble-user { margin-left: auto; background: var(--indigo); color: #ffffff; border-bottom-right-radius: 6px; }
.chat-input-dock { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 24px; }.chat-input-dock .button-secondary { border-width: 2px; border-color: var(--indigo); }.chat-input-dock textarea { min-height: 68px; padding: 12px 14px; font-size: 20px; line-height: 1.5; resize: vertical; background: #ffffff; }.chat-input-dock .button { width: 100%; min-height: 60px; font-size: 17px; }
.question-page[data-mode="chat"] { padding-top: 0; padding-bottom: 0; min-height: calc(100dvh - 234px); justify-content: flex-start; }.question-page[data-mode="chat"] .back-link { margin-bottom: 0; }.profile-question { max-width: 860px; margin: auto; }.question-input { min-height: 74px; font-family: var(--serif); font-size: 1.55rem; padding-inline: 20px; }.question-form > .button { margin-top: 18px; min-height: 60px; }.choice-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.choice-button { margin: 0; cursor: pointer; }.choice-button input { position: absolute; opacity: 0; }.choice-button span { min-height: 66px; display: grid; place-items: center; padding: 12px; border: 2px solid var(--line); border-radius: 14px; background: white; font-size: 1.05rem; }.choice-button input:checked + span { color: var(--indigo); border-color: var(--amber); background: rgba(232,163,61,.16); box-shadow: 0 0 0 3px rgba(232,163,61,.1); }.choice-button input:focus-visible + span { outline: 4px solid rgba(232,163,61,.62); }.privacy-line { margin-top: 18px; text-align: center; color: var(--muted); font-size: .78rem; }
.editor-shell { max-width: 980px; }.centered-heading { margin-inline: auto; text-align: center; }.single-editor { max-width: 900px; margin: auto; }.editor-continue { margin-top: 28px; }.voice-ready { grid-column: 1/-1; padding-top: 8px; color: var(--muted); font-size: .8rem; }.confirm-dialog { width: min(560px,calc(100% - 32px)); padding: 38px; border: 0; border-radius: 24px; text-align: center; color: var(--indigo-2); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.4); }.confirm-mark { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: rgba(232,163,61,.22); color: var(--rust); font-size: 1.6rem; font-weight: 900; }.confirm-dialog h2 { font-size: 2rem; }.confirm-dialog > p { color: var(--muted); font-size: 1.2rem; }.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }.contact-question { max-width: 820px; margin: auto; }.contact-question .gentle-notice { margin-top: 20px; }.generate-actions { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }.generate-actions .gentle-notice { flex-direction: column; gap: 4px; margin-top: 0; }
.admin-list { min-width: 0; }.admin-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 14px; }.admin-list-heading h2 { margin: 0 0 2px; }.admin-list-heading p { margin: 0; color: var(--muted); font-size: .82rem; }.admin-list-heading > strong { color: var(--indigo); font-size: .9rem; }.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 12px 30px rgba(38,56,107,.06); }.admin-table { width: 100%; min-width: 980px; border-collapse: collapse; table-layout: fixed; }.admin-table th { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); color: var(--muted); background: rgba(38,56,107,.035); font-size: .7rem; letter-spacing: .03em; }.admin-table th:nth-child(1) { width: 120px; }.admin-table th:nth-child(2) { width: 28%; }.admin-table th:nth-child(3) { width: 100px; }.admin-table th:nth-child(4) { width: 145px; }.admin-table th:nth-child(5) { width: 130px; }.admin-table th:nth-child(6) { width: 115px; }.admin-table th:last-child { width: 78px; }.admin-table td { padding: 17px 16px; border-bottom: 1px solid rgba(38,56,107,.1); vertical-align: middle; font-size: .82rem; }.admin-table tbody tr:last-child td { border-bottom: 0; }.admin-table-row { cursor: pointer; transition: background .16s ease, box-shadow .16s ease; }.admin-table-row:hover { background: rgba(232,163,61,.075); }.admin-table-row:focus-visible { position: relative; outline: 3px solid rgba(232,163,61,.62); outline-offset: -3px; }.admin-table-row.has-issue { box-shadow: inset 4px 0 var(--rust); }.admin-table-title { display: block; overflow: hidden; color: var(--indigo); font-family: var(--serif); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }.admin-table-issue { display: block; margin-top: 3px; color: var(--rust); }.admin-table-phone { font-variant-numeric: tabular-nums; }.admin-table td:nth-child(5) small { display: block; color: var(--muted); font-size: .65rem; }.admin-detail-button { min-width: 50px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--indigo); background: transparent; font-weight: 800; cursor: pointer; }.admin-detail-button:hover { border-color: var(--amber); background: rgba(232,163,61,.12); }
.admin-dialog { width: min(1080px,calc(100% - 40px)); max-width: none; max-height: calc(100dvh - 40px); padding: 0; overflow-x: hidden; border: 0; border-radius: 22px; color: var(--indigo-2); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.4); }.admin-dialog::backdrop { background: rgba(10,18,38,.72); backdrop-filter: blur(6px); }.admin-dialog-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 24px 30px 20px; border-bottom: 1px solid var(--line); background: rgba(251,247,239,.97); }.admin-dialog-header h2 { margin: 8px 0 2px; font-size: 1.8rem; }.admin-dialog-header p { margin: 0; color: var(--muted); font-size: .82rem; }.admin-dialog-close { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--indigo); background: white; font-size: 1.55rem; line-height: 1; cursor: pointer; }.admin-dialog-summary { display: grid; grid-template-columns: 1fr 1fr 1.6fr; border-bottom: 1px solid var(--line); }.admin-dialog-summary > div { min-width: 0; padding: 16px 30px; border-right: 1px solid var(--line); }.admin-dialog-summary > div:last-child { border-right: 0; }.admin-dialog-summary span,.admin-dialog-summary strong { display: block; }.admin-dialog-summary span { color: var(--muted); font-size: .68rem; }.admin-dialog-summary strong { margin-top: 2px; font-size: .88rem; }.admin-id { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: monospace; }.admin-problem { margin: 22px 30px 0; padding: 16px 18px; border-radius: 12px; background: rgba(166,79,60,.1); }.admin-problem p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }.admin-dialog-body { display: grid; grid-template-columns: minmax(220px,300px) minmax(0,1fr); gap: 28px; padding: 28px 30px; }.admin-preview-column { min-width: 0; }.admin-video { display: block; width: 100%; max-height: 480px; aspect-ratio: 9/16; object-fit: contain; background: var(--indigo-2); border-radius: 10px; }.admin-video-empty { min-height: 320px; display: grid; place-items: center; padding: 24px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; background: var(--cream); }.admin-content-column { display: flex; min-width: 0; flex-direction: column; gap: 22px; }.admin-essay { min-height: 220px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }.admin-essay h3 { margin: 0 0 10px; color: var(--indigo); font-family: var(--serif); }.admin-essay p { margin: 0; white-space: pre-wrap; font-family: var(--serif); line-height: 1.85; }.admin-actions-panel { margin-top: auto; }.admin-actions-panel form,.notification-box { display: grid; gap: 9px; }.admin-review-actions { display: grid; grid-template-columns: minmax(140px,.5fr) 1.5fr; gap: 10px; align-items: start; }.admin-review-actions form:last-child { grid-template-columns: 1fr auto; }.notification-box textarea { min-height: 110px; font-size: .78rem; }.retry-actions { padding: 16px; border-radius: 14px; background: rgba(232,163,61,.12); }.retry-actions p { margin: 0 0 10px; color: var(--muted); font-size: .78rem; }.retry-actions .button { width: 100%; }.admin-log-sections { padding: 0 30px 30px; }.admin-log-sections details { border-top: 1px solid var(--line); }.admin-log-sections details:last-child { border-bottom: 1px solid var(--line); }.admin-log-sections summary { padding: 16px 4px; color: var(--indigo); font-weight: 850; cursor: pointer; }.admin-detail-content { padding: 0 4px 18px; color: var(--muted); font-size: .8rem; }.admin-detail-content p { margin: 0 0 6px; }.admin-detail-content pre { max-height: 420px; overflow: auto; margin: 8px 0 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--indigo-2); background: var(--cream); }.usage-list { margin: 12px 0 0; padding-left: 20px; }
@keyframes breathe { 0%,100% { transform: scale(.94); opacity: .82; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero-grid, .editor-layout, .review-layout, .result-layout { grid-template-columns: 1fr; }.hero-copy { padding: 0; }.profile-card, .generate-card { position: static; }.library-grid { grid-template-columns: repeat(2,1fr); }.admin-dialog-body { grid-template-columns: 220px minmax(0,1fr); }.triptych { gap: 8px; }.story-image { padding: 5px; }.story-image figcaption { font-size: .74rem; }.template-card { grid-template-columns: 190px 1fr; }.top-nav { gap: 14px; } }
@media (max-width: 620px) { html { font-size: 17px; }.site-header { padding: 18px 20px; }.page-shell { padding: 32px 20px 72px; }.top-nav a:first-child { display: none; }.stage-rail { padding: 0 20px; gap: 4px; }.stage-item { display: flex; min-height: auto; padding: 8px 2px; align-items: center; justify-content: center; gap: 6px; }.stage-item > span { width: 26px; height: 26px; font-size: .75rem; }.stage-item small { display: none; }.stage-item strong { font-size: .75rem; }.hero-grid { min-height: auto; gap: 28px; }.hero-copy h1 { font-size: 2.55rem; }.intake-card, .editor-card, .profile-card, .generate-card, .auth-card, .progress-card { padding: 22px; }.chat-compose { display: block; }.chat-compose .button { width: 100%; margin-top: 8px; }.profile-grid { grid-template-columns: 1fr; }.template-card { grid-template-columns: 1fr; }.template-art { min-height: 240px; }.triptych { overflow-x: auto; grid-template-columns: repeat(3, minmax(190px, 1fr)); padding-bottom: 18px; }.story-image:nth-child(2) { transform: none; }.story-review { margin-top: 28px; padding: 22px 20px; }.library-grid { grid-template-columns: 1fr; }.library-header, .admin-header { align-items: start; flex-direction: column; }.admin-stats { grid-template-columns: 1fr; }.admin-list-heading { align-items: start; flex-direction: column; gap: 4px; }.admin-dialog { width: calc(100% - 18px); max-height: calc(100dvh - 18px); }.admin-dialog-header { padding: 20px; }.admin-dialog-summary { grid-template-columns: 1fr 1fr; }.admin-dialog-summary > div { padding: 13px 20px; }.admin-dialog-summary > div:nth-child(2) { border-right: 0; }.admin-dialog-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }.admin-problem { margin: 18px 20px 0; }.admin-dialog-body { grid-template-columns: 1fr; padding: 20px; }.admin-video { width: min(100%,260px); margin: auto; }.admin-video-empty { min-height: 180px; }.admin-review-actions,.admin-review-actions form:last-child { grid-template-columns: 1fr; }.admin-log-sections { padding: 0 20px 24px; }.result-copy { text-align: center; }.video-frame { max-height: none; width: min(100%, 380px); } }
@media (max-width: 900px) { .landing-hero { grid-template-columns: 1fr; gap: 54px; }.hero-film { width: min(75vw,420px); }.example-grid { grid-template-columns: 1fr; }.section-heading { align-items: start; flex-direction: column; }.how-grid { grid-template-columns: 1fr; }.how-grid li { min-height: auto; }.landing-final { gap: 24px; } }
@media (max-width: 620px) { .landing-hero { min-height: auto; padding: 28px 0 70px; }.landing-copy h1 { font-size: 2.7rem; }.landing-actions { align-items: stretch; flex-direction: column; }.landing-actions .button { width: 100%; }.landing-trust { flex-direction: column; gap: 8px; }.hero-film { width: min(84vw,350px); }.example-section,.landing-how { padding: 74px 0; }.example-card { grid-template-columns: 112px minmax(0,1fr); min-height: 235px; gap: 16px; }.example-copy strong { font-size: 1.25rem; }.example-copy > span { font-size: .76rem; }.example-copy em { margin-top: 12px; }.landing-final { align-items: stretch; flex-direction: column; }.answer-cards { grid-template-columns: 1fr; }.answer-card { min-height: 250px; }.question-page { min-height: 580px; }.question-page h1 { font-size: 2.25rem; }.conversation-card,.question-form { padding: 20px; }.page-shell.question-shell:has(.question-page[data-mode="chat"]) { padding-top: 20px; min-height: calc(100dvh - 136px); }.question-page[data-mode="chat"] { min-height: calc(100dvh - 168px); }.question-page[data-mode="chat"] .bubble { font-size: 19px; padding: 13px 16px; }.chat-input-dock textarea { font-size: 19px; min-height: 62px; }.chat-input-dock .button { font-size: 16px; min-height: 56px; }.choice-list { grid-template-columns: 1fr; }.dialog-actions { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.voice-picker { margin-top: 24px; padding: 20px; background: #F7F1E4; border-radius: 12px; border: 1px solid #E5DBC8; }
.voice-picker .eyebrow { margin-bottom: 12px; }
.voice-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.voice-tabs button { flex: 1; padding: 10px 12px; font-size: 16px; border: 1px solid #D6CFC0; background: #fff; cursor: pointer; border-radius: 6px; }
.voice-tabs button[aria-selected="true"] { background: #26386b; color: #fff; }
.voice-cards { display: grid; gap: 4px; }
.voice-card { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; background: #FBF7EC; border: 1px solid #E5DBC8; border-radius: 10px; cursor: pointer; position: relative; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.voice-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.voice-select { width: 22px; height: 22px; border: 2px solid #C7BFAC; border-radius: 50%; display: inline-block; position: relative; transition: border-color 0.15s; flex-shrink: 0; background: #fff; }
.voice-card:has(input:checked) .voice-select { border-color: #26386b; background: #fff; }
.voice-card:has(input:checked) .voice-select::after { content: ""; position: absolute; top: 3px; left: 3px; right: 3px; bottom: 3px; background: #26386b; border-radius: 50%; }
.voice-card:has(input:checked) { border: 2px solid #26386b; padding: 7px 11px; background: #EEF1F8; box-shadow: 0 2px 8px rgba(38, 56, 107, 0.12); }
.voice-info { display: flex; align-items: baseline; gap: 6px; min-width: 0; flex-wrap: wrap; }
.voice-name { font-size: 18px; font-weight: 600; color: #6F6558; transition: color 0.15s, font-weight 0.15s; }
.voice-card:has(input:checked) .voice-name { color: #172447; font-weight: 800; }
.voice-recommended-badge { font-size: 14px; font-weight: 500; color: #26386b; font-style: normal; margin-left: 2px; }
.voice-sep { color: #C7BFAC; font-weight: 400; }
.voice-card:has(input:checked) .voice-sep { color: #26386b; }
.voice-desc { font-size: 16px; color: #9F9788; font-weight: 400; transition: color 0.15s; }
.voice-card:has(input:checked) .voice-desc { color: #172447; }
.voice-audio { display: none; }
.voice-play { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E5DBC8; background: #fff; color: #B8AE97; cursor: pointer; display: grid; place-items: center; padding: 0; flex-shrink: 0; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s; }
.voice-card:has(input:checked) .voice-play { border-color: #26386b; color: #26386b; }
.voice-play:hover { background: #F7F1E4; color: #26386b; }
.voice-play:active { transform: scale(0.96); }
.voice-play:focus-visible { outline: 2px solid #26386b; outline-offset: 2px; }
.voice-play.is-playing, .voice-card:has(input:checked) .voice-play.is-playing { background: #26386b; color: #fff; border-color: #26386b; }
.voice-play-icon { display: block; }
.voice-play-icon svg, .voice-play svg { display: block; }
.voice-cards[data-active-gender="female"] .voice-card[data-gender="male"],
.voice-cards[data-active-gender="male"] .voice-card[data-gender="female"] { display: none; }

.revision-note-input { margin-top: 20px; }
.revision-note-input textarea { width: 100%; padding: 10px; border: 1px solid #d6cfc0; border-radius: 6px; font-family: inherit; }
.revision-note-input .field-help { font-size: 13px; color: #6f6558; margin-top: 6px; }

.admin-preview-images .preview-image-row { display: flex; gap: 12px; }
.admin-preview-images figure { flex: 1; margin: 0; }
.admin-preview-images img { width: 100%; height: auto; border-radius: 6px; }
.admin-preview-images figcaption { font-size: 12px; color: #6f6558; margin-top: 4px; }
.admin-revision-note blockquote { background: #fdf6d3; border-left: 4px solid #e8a33d; padding: 12px; margin: 0; font-style: normal; }
.admin-selected-voice audio { width: 100%; margin-top: 8px; }
.admin-manual-upload input[type="file"] { display: block; margin: 8px 0; }
