:root {
  color-scheme: light;
  --graphite-950: #181817;
  --graphite-900: #22211f;
  --graphite-800: #302e2b;
  --platinum-50: #fbfaf6;
  --platinum-100: #f1eee7;
  --platinum-200: #e5e0d6;
  --platinum-300: #cfc8bb;
  --ink: #22211f;
  --muted: #6c6962;
  --quiet: #918b80;
  --orange: #ed6b32;
  --orange-deep: #c94f1c;
  --green: #3d8b65;
  --red: #b94f3a;
  --blue: #3c7194;
  --shadow: 0 24px 70px rgba(29, 27, 24, .13);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--platinum-100); }
body { min-height: 100%; margin: 0; background: radial-gradient(circle at 75% 8%, rgba(237, 107, 50, .08), transparent 30%), var(--platinum-100); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a, summary, label[for] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; padding: 26px 18px 18px; border-right: 1px solid #47443f; background: var(--graphite-900); color: var(--platinum-100); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; color: var(--platinum-100); font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; }
.brand small { display: block; margin-top: 5px; color: var(--orange); font-size: 8px; letter-spacing: .08em; }
.brand-mark { display: block; width: 34px; height: 34px; overflow: hidden; border: 1px solid #514d47; background: var(--platinum-100); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.new-project { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 38px; padding: 12px; border: 1px solid #514d47; border-radius: 5px; background: transparent; color: var(--platinum-100); font-size: 12px; font-weight: 750; text-align: left; }
.new-project:hover { border-color: var(--orange); color: #ff9d6e; }
.new-project span { font-size: 19px; font-weight: 400; }
.profile-button { display: grid; gap: 4px; width: 100%; margin-top: 10px; padding: 13px 12px; border: 1px solid #4a4742; border-radius: 5px; background: #292825; color: var(--platinum-100); text-align: left; }
.profile-button > span { color: #aaa59a; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.profile-button strong { overflow: hidden; color: #fffaf4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-button small { color: #aaa59a; font-size: 9px; }
.profile-button:hover { border-color: var(--orange); }
.tool-navigation { display: grid; gap: 7px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #45423d; }
.tool-link { display: grid; min-height: 54px; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 5px; color: #bdb8ad; text-decoration: none; transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease; }
.tool-link:hover { border-color: #5a554e; color: #fffaf4; transform: translateX(2px); }
.tool-link.active { border-color: #5a554e; background: #2b2a27; color: #fffaf4; box-shadow: inset 2px 0 0 var(--orange); }
.tool-link > span:last-child, .tool-link strong, .tool-link small { display: block; min-width: 0; }
.tool-link strong { font-size: 11px; }
.tool-link small { margin-top: 4px; overflow: hidden; color: #918c83; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tool-glyph { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #5a554e; color: #d6d0c5; font: 800 10px/1 Georgia, serif; }
.tool-link.active .tool-glyph { border-color: var(--orange); color: #ff9d6e; }
.video-glyph { font-size: 9px; }
.ppt-glyph { font-size: 14px; }
.poster-glyph { font-size: 11px; font-weight: 900; }
.project-progress { margin-top: 30px; }
.project-progress > p { margin: 0 0 11px 9px; color: #aaa59a; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.progress-track { overflow: hidden; border: 1px solid #45423d; border-radius: 5px; background: #292825; }
.progress-step { display: grid; min-height: 44px; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 9px 10px; border-top: 1px solid #45423d; color: #bdb8ad; }
.progress-step:first-child { border-top: 0; }
.progress-step span, .progress-step em { color: #8f8a80; font-size: 9px; font-style: normal; font-weight: 800; }
.progress-step strong { font-size: 11px; }
.progress-step.active { color: #fffaf4; box-shadow: inset 2px 0 0 var(--orange); background: rgba(237, 107, 50, .12); }
.progress-step.active span, .progress-step.active em { color: #ff9d6e; }
.progress-step.complete span, .progress-step.complete em { color: #83c59f; }
.sidebar-spacer { flex: 1; min-height: 32px; }
.workflow-note { display: flex; gap: 9px; align-items: flex-start; padding: 14px 8px; border-top: 1px solid #45423d; }
.workflow-mark { flex: 0 0 auto; width: 29px; height: 29px; object-fit: cover; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(61, 139, 101, .16); }
.workflow-note strong, .workflow-note small { display: block; }
.workflow-note strong { font-size: 11px; }
.workflow-note small { margin-top: 4px; color: #bdb8ad; font-size: 10px; line-height: 1.35; }
.site-link { display: flex; justify-content: space-between; padding: 9px 8px; color: #bdb8ad; font-size: 11px; text-decoration: none; }
.site-link:hover { color: #ff9d6e; }

.workspace { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 318px; grid-template-rows: auto 1fr; }
.workspace-header { position: sticky; top: 0; z-index: 15; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; min-height: 74px; padding: 0 32px; border-bottom: 1px solid var(--platinum-300); background: rgba(241, 238, 231, .94); backdrop-filter: blur(12px); }
.crumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.crumb .status-dot { margin: 0; }
.crumb span:not(.status-dot) { color: var(--quiet); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.page-language-settings { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 340px; margin-top: 18px; }
.page-language-control { display: grid; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.page-language-control select { min-height: 46px; padding: 0 42px 0 14px; border: 1px solid var(--platinum-300); border-radius: 4px; background: rgba(255, 254, 250, .82); color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.page-language-control select:focus-visible { outline: 2px solid var(--orange-deep); outline-offset: 2px; }
.icon-button, .exit-link { border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: none; }
.icon-button:hover, .exit-link:hover { color: var(--orange-deep); }
.mobile-nav-toggle { display: none; align-items: center; gap: 6px; min-height: 34px; padding: 0 9px; border: 1px solid var(--platinum-300); border-radius: 4px; background: rgba(255, 254, 250, .72); color: var(--ink); font-size: 11px; font-weight: 800; }
.mobile-nav-toggle span:first-child { color: var(--orange-deep); font-size: 15px; line-height: 1; }
.nav-scrim { display: none; }
.profile-header-button { display: none; }
.account-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 4px 9px 4px 4px; border: 1px solid var(--platinum-300); border-radius: 4px; background: rgba(255, 254, 250, .6); color: var(--ink); font-size: 11px; font-weight: 800; }
.account-button:hover { border-color: var(--orange); color: var(--orange-deep); }
.account-avatar { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--graphite-900); color: var(--platinum-50); font-size: 10px; }

.conversation { min-width: 0; padding: clamp(28px, 5vw, 70px) clamp(22px, 6vw, 92px) 60px; }
.thread { width: min(760px, 100%); margin: 0 auto; }
.message { display: grid; gap: 13px; margin: 0 0 26px; animation: appear .35s ease both; }
.message.assistant { grid-template-columns: 28px minmax(0, 1fr); }
.message.user { margin-left: 41px; padding: 13px 15px; border-left: 2px solid var(--orange); background: rgba(237, 107, 50, .08); }
.message-mark { display: grid; overflow: hidden; place-items: center; width: 28px; height: 28px; border: 1px solid var(--orange); background: var(--platinum-50); }
.message-mark img { width: 100%; height: 100%; object-fit: cover; }
.message-label { margin: 1px 0 6px; color: var(--orange-deep); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.message-copy { max-width: 640px; margin: 0; color: var(--ink); font: 500 clamp(17px, 1.55vw, 21px)/1.55 "Noto Serif SC", "Songti SC", serif; overflow-wrap: anywhere; }
.message.user .message-copy { font-family: inherit; font-size: 13px; line-height: 1.55; }

.composer { width: min(760px, 100%); margin: 38px auto 0; padding: 22px; border: 1px solid var(--platinum-300); border-radius: 8px; background: rgba(251, 250, 246, .96); box-shadow: var(--shadow); }
.composer-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--platinum-300); }
.composer-heading span { color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.composer-heading strong { font: 600 clamp(18px, 2vw, 24px)/1.2 "Noto Serif SC", "Songti SC", serif; }
.workflow-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; padding: 4px; border: 1px solid var(--platinum-300); border-radius: 6px; background: #eee9df; }
.workflow-mode { display: grid; gap: 3px; padding: 11px 13px; border: 1px solid transparent; border-radius: 4px; background: transparent; color: var(--muted); text-align: left; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.workflow-mode:hover { color: var(--ink); }
.workflow-mode.active { border-color: var(--orange); background: #fffefa; color: var(--ink); box-shadow: 0 4px 14px rgba(74, 64, 52, .08); }
.workflow-mode strong { font-size: 12px; }
.workflow-mode small { color: var(--quiet); font-size: 9px; line-height: 1.4; }
.workflow-mode[disabled] { cursor: not-allowed; opacity: .55; }
.presenter-mode-panel { margin-top: 14px; padding: 15px; border: 1px solid var(--platinum-300); border-radius: 6px; background: rgba(244, 240, 232, .78); }
.presenter-mode-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.presenter-mode-heading div { display: grid; gap: 3px; }
.presenter-mode-heading span { color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.presenter-mode-heading strong { font-size: 13px; }
.presenter-mode-heading small { max-width: 310px; color: var(--quiet); font-size: 9px; line-height: 1.4; text-align: right; }
.presenter-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.presenter-mode { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--platinum-300); border-radius: 4px; background: #fffefa; color: var(--muted); text-align: left; }
.presenter-mode.active { border-color: var(--orange); color: var(--ink); box-shadow: inset 3px 0 0 var(--orange); }
.presenter-mode strong { font-size: 12px; }
.presenter-mode small { color: var(--quiet); font-size: 9px; line-height: 1.4; }
.presenter-mode[disabled] { cursor: not-allowed; opacity: .55; }
.custom-presenter-upload { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr); gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--platinum-300); }
.presenter-upload-card { min-height: 142px; padding: 16px; }
.presenter-upload-copy { align-self: center; }
.presenter-upload-copy .file-name { text-align: left; white-space: normal; }
.presenter-consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.presenter-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--orange); }
.digital-human-settings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.digital-human-settings label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.digital-human-settings select { min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--panel); color: var(--text); font: inherit; letter-spacing: 0; }
@media (max-width: 720px) { .digital-human-settings { grid-template-columns: 1fr; } }
.source-grid { display: grid; grid-template-columns: minmax(210px, .85fr) minmax(280px, 1.15fr); gap: 18px; padding-top: 20px; }
.source-primary, .source-details { min-width: 0; }
.upload-card { display: grid; min-height: 218px; place-items: center; align-content: center; gap: 8px; padding: 22px; border: 1px dashed #a49d90; border-radius: 6px; background: linear-gradient(145deg, #f6f2e9, #ece7dd); color: var(--ink); text-align: center; cursor: pointer; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.upload-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.upload-card.has-file { border-style: solid; border-color: var(--green); background: #eef4ef; }
.upload-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.upload-plus { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--orange); border-radius: 50%; color: var(--orange-deep); font-size: 22px; }
.upload-card strong { font-size: 14px; }
.upload-card small, .file-name { color: var(--muted); font-size: 10px; }
.file-name { margin: 9px 0 0; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.source-details label { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; color: var(--graphite-800); font-size: 12px; font-weight: 750; }
.source-details label:not(:first-child) { margin-top: 17px; }
.source-details label small { color: var(--quiet); font-size: 9px; font-weight: 500; }
.source-details input, .source-details textarea, .profile-dialog input, .profile-dialog textarea, .profile-dialog select { width: 100%; padding: 11px 12px; border: 1px solid var(--platinum-300); border-radius: 4px; background: #fffefa; color: var(--ink); font-size: 13px; line-height: 1.45; }
.source-details textarea, .profile-dialog textarea { resize: vertical; }
.source-details input::placeholder, .source-details textarea::placeholder, .profile-dialog input::placeholder, .profile-dialog textarea::placeholder { color: #928c82; }
.field-status { margin: 7px 0 0; padding-left: 9px; border-left: 2px solid var(--blue); color: var(--muted); font-size: 10px; line-height: 1.45; }
.field-status.success { border-color: var(--green); color: #3b7256; }
.field-status.warning { border-color: var(--orange); color: #8a4a2c; }
.field-status.pending { animation: pulse 1.3s ease-in-out infinite; }
.profile-inline { margin-top: 18px; border: 1px solid var(--platinum-300); border-radius: 5px; background: #f4f0e8; }
.profile-inline summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 12px 13px; cursor: pointer; list-style: none; }
.profile-inline summary::-webkit-details-marker { display: none; }
.profile-inline summary span, .profile-inline summary em { color: var(--quiet); font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .06em; }
.profile-inline summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-inline[open] summary { border-bottom: 1px solid var(--platinum-300); }
.profile-inline-body { padding: 13px; }
.profile-inline-body p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.form-error { margin: 15px 0 0; padding: 10px 12px; border-left: 2px solid var(--red); background: rgba(185, 79, 58, .08); color: var(--red); font-size: 12px; line-height: 1.5; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; }
.composer-actions > p { max-width: 330px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.primary-button, .secondary-button { padding: 11px 15px; border-radius: 4px; font-size: 12px; font-weight: 800; }
.primary-button { min-width: 188px; border: 1px solid var(--orange); background: var(--orange); color: #fffaf4; }
.primary-button:hover { border-color: var(--orange-deep); background: var(--orange-deep); }
.primary-button[disabled] { cursor: wait; opacity: .6; }
.primary-button span { padding-left: 14px; }
.secondary-button { border: 1px solid var(--platinum-300); background: transparent; color: var(--ink); }
.secondary-button:hover { border-color: var(--orange); color: var(--orange-deep); }

.brief-panel { grid-column: 2; grid-row: 2; min-width: 0; padding: 30px 22px; border-left: 1px solid var(--platinum-300); background: rgba(229, 224, 214, .78); }
.brief-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .09em; }
.brief-heading button { display: none; border: 0; background: transparent; color: var(--muted); }
.asset-frame { display: grid; overflow: hidden; min-height: 168px; place-items: center; border: 1px dashed #a69f92; background: #f7f4ed; }
.asset-empty { color: var(--quiet); text-align: center; }
.asset-empty span { display: inline-grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--quiet); border-radius: 50%; font-size: 18px; }
.asset-empty p { margin: 8px 0 0; font-size: 11px; }
.asset-frame img { width: 100%; height: 190px; object-fit: contain; background: #ebe6dc; }
.asset-caption { margin: 9px 0 22px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.brief-summary { margin: 0; }
.brief-summary > div { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--platinum-300); }
.brief-summary dt { color: var(--quiet); font-size: 9px; font-weight: 850; letter-spacing: .07em; }
.brief-summary dd { margin: 0; color: #403d38; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.truth-note { margin-top: 23px; padding: 13px; border-left: 2px solid var(--orange); background: rgba(237, 107, 50, .08); }
.truth-note strong { color: var(--orange-deep); font-size: 10px; }
.truth-note p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.concept-gate, .job-status { width: min(760px, 100%); margin: 38px auto 0; padding: 22px; border: 1px solid var(--platinum-300); border-radius: 8px; background: rgba(251, 250, 246, .97); box-shadow: var(--shadow); animation: appear .35s ease both; }
.concept-gate { border-top: 3px solid var(--orange); }
.concept-kicker { margin: 0; color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.concept-gate h2 { margin: 8px 0 18px; font: 600 22px/1.25 "Noto Serif SC", "Songti SC", serif; }
.concept-options { display: grid; gap: 9px; }
.concept-choice { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 5px 14px; padding: 15px; border: 1px solid var(--platinum-300); border-radius: 5px; background: #fffefa; color: var(--ink); text-align: left; transition: border-color .2s ease, transform .2s ease; }
.concept-choice:hover { border-color: var(--orange); transform: translateX(3px); }
.concept-choice.is-selected { border-color: var(--orange); background: rgba(237, 107, 50, .08); box-shadow: inset 3px 0 0 var(--orange); }
.concept-choice small { grid-row: 1 / span 2; color: var(--orange-deep); font-size: 9px; font-weight: 850; }
.concept-choice strong { font-size: 14px; }
.concept-choice span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.concept-choice[disabled] { cursor: wait; opacity: .6; }
.concept-confirm-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--platinum-300); }
.concept-selection-copy { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.concept-confirm { flex: 0 0 auto; }

.job-status { border-top: 3px solid var(--blue); }
.job-status.status-completed { border-top-color: var(--green); }
.job-status.status-failed, .job-status.status-stalled { border-top-color: var(--red); }
.job-status-heading { display: flex; align-items: center; gap: 9px; }
.status-orb { width: 9px; height: 9px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(60, 113, 148, .12); }
.status-completed .status-orb { background: var(--green); box-shadow: 0 0 0 4px rgba(61, 139, 101, .12); }
.status-failed .status-orb, .status-stalled .status-orb { background: var(--red); box-shadow: 0 0 0 4px rgba(185, 79, 58, .12); }
.job-status-heading strong { font: 600 20px/1.2 "Noto Serif SC", "Songti SC", serif; }
.job-status-copy { margin: 10px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.approved-concept { display: grid; gap: 5px; margin: 15px 0; padding: 14px; border-left: 2px solid var(--orange); background: rgba(237, 107, 50, .07); }
.approved-concept small { color: var(--orange-deep); font-size: 9px; font-weight: 850; }
.approved-concept strong { font-size: 14px; }
.approved-concept p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.result-media { margin: 16px 0 0; }
.result-media img, .result-media video { display: block; width: 100%; max-height: 620px; border: 1px solid var(--platinum-300); border-radius: 5px; background: var(--graphite-950); object-fit: contain; }
.result-media figcaption { margin-top: 7px; color: var(--quiet); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.result-download { display: inline-flex; margin-top: 14px; padding: 10px 13px; border: 1px solid var(--orange); border-radius: 4px; color: var(--orange-deep); font-size: 11px; font-weight: 800; text-decoration: none; }
.result-download:hover { background: var(--orange); color: #fffaf4; }
.status-error { padding: 12px; border-left: 2px solid var(--red); background: rgba(185, 79, 58, .08); color: #7d392d; font-size: 11px; line-height: 1.5; }
.status-action { margin-top: 15px; }
.result-variants { display: grid; gap: 18px; margin-top: 18px; }
.result-variant { padding: 16px; border: 1px solid var(--platinum-300); border-radius: 6px; background: #fffefa; }
.result-variant-kicker { display: block; color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.result-variant-title { display: block; margin-top: 6px; font-size: 15px; }

.profile-dialog { width: min(610px, calc(100vw - 28px)); max-height: min(760px, calc(100vh - 28px)); padding: 0; overflow: auto; border: 1px solid #514d47; border-radius: 8px; background: var(--platinum-50); color: var(--ink); box-shadow: 0 30px 100px rgba(0, 0, 0, .35); }
.profile-dialog::backdrop { background: rgba(18, 18, 17, .72); backdrop-filter: blur(5px); }
.profile-dialog form { padding: 24px; }
.profile-dialog-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--platinum-300); }
.profile-dialog-heading span { color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.profile-dialog-heading h2 { margin: 5px 0 7px; font: 600 27px/1.15 "Noto Serif SC", "Songti SC", serif; }
.profile-dialog-heading p { max-width: 450px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.dialog-close { align-self: start; width: 31px; height: 31px; border: 1px solid var(--platinum-300); border-radius: 50%; background: transparent; color: var(--muted); }
.profile-dialog label { display: block; margin: 16px 0 7px; color: var(--graphite-800); font-size: 11px; font-weight: 800; }
.profile-dialog label small { color: var(--quiet); font-weight: 500; }
.custom-profile-field { margin-top: 8px; }
.profile-dialog-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--platinum-300); }

.auth-dialog { width: min(458px, calc(100vw - 28px)); padding: 0; border: 1px solid #514d47; border-radius: 8px; background: var(--platinum-50); color: var(--ink); box-shadow: 0 30px 100px rgba(0, 0, 0, .35); }
.auth-dialog::backdrop { background: rgba(18, 18, 17, .72); backdrop-filter: blur(5px); }
.auth-dialog form { padding: 24px; }
.auth-dialog-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--platinum-300); }
.auth-dialog-heading span, .auth-kicker { color: var(--orange-deep); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.auth-dialog-heading h2 { margin: 5px 0 7px; font: 600 27px/1.15 "Noto Serif SC", "Songti SC", serif; }
.auth-dialog-heading p { max-width: 350px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 19px 0; }
.auth-method { min-height: 38px; border: 1px solid var(--platinum-300); border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; }
.auth-method.active { border-color: var(--orange); background: rgba(237, 107, 50, .08); color: var(--orange-deep); }
.auth-step label { display: block; margin: 0 0 8px; color: var(--graphite-800); font-size: 11px; font-weight: 800; }
.auth-destination-row { display: flex; border: 1px solid var(--platinum-300); border-radius: 4px; background: #fffefa; }
.country-code { display: grid; flex: 0 0 auto; min-width: 54px; place-items: center; border-right: 1px solid var(--platinum-300); color: var(--muted); font-size: 12px; font-weight: 750; }
.auth-destination-row input, .auth-code { width: 100%; border: 0; background: transparent; color: var(--ink); font-size: 14px; outline: 0; }
.auth-destination-row input { padding: 12px; }
.auth-code { padding: 13px; border: 1px solid var(--platinum-300); border-radius: 4px; background: #fffefa; letter-spacing: .32em; text-align: center; }
.auth-hint, .auth-sent { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.auth-consent { display: flex !important; align-items: flex-start; gap: 8px; margin-top: 17px !important; color: var(--muted) !important; font-size: 10px !important; font-weight: 500 !important; line-height: 1.45; }
.auth-consent input { margin: 1px 0 0; accent-color: var(--orange); }
.auth-error { margin: 13px 0 0; padding: 9px 10px; border-left: 2px solid var(--red); background: rgba(185, 79, 58, .08); color: var(--red); font-size: 11px; line-height: 1.45; }
.auth-submit { width: 100%; margin-top: 18px; }
.auth-code-actions, .auth-account-actions { display: flex; gap: 10px; margin-top: 18px; }
.auth-code-actions > *, .auth-account-actions > * { flex: 1; min-width: 0; }
.auth-account { display: grid; gap: 5px; padding: 10px 0 0; }
.auth-account strong { font: 600 23px/1.25 "Noto Serif SC", "Songti SC", serif; }
.auth-account span { color: var(--muted); font-size: 12px; }

/* Authentication is retained for the paid release but intentionally hidden during the open beta. */
body[data-login-enabled="false"] .account-button,
body[data-login-enabled="false"] .auth-dialog { display: none; }

@keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 50% { opacity: .48; } }

@media (max-width: 1180px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 40; inset: 0 auto 0 0; width: min(284px, 88vw); overflow-y: auto; border-right: 1px solid #47443f; box-shadow: 18px 0 42px rgba(0, 0, 0, .28); transform: translateX(-104%); transition: transform .22s ease; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-scrim { position: fixed; z-index: 35; inset: 0; border: 0; background: rgba(24, 24, 23, .48); }
  body.nav-open .nav-scrim { display: block; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .mobile-nav-toggle { display: inline-flex; }
  .brief-panel { position: fixed; z-index: 20; inset: 0 0 0 auto; width: min(350px, 92vw); padding-top: 90px; border-left: 1px solid var(--platinum-300); box-shadow: var(--shadow); transform: translateX(103%); transition: transform .22s ease; }
  .brief-panel.open { transform: translateX(0); }
  .brief-heading button { display: block; }
  .icon-button { display: block; }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { display: flex; }
  .workspace-header { min-height: 62px; padding: 0 16px; }
  .crumb { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-actions { gap: 10px; }
  .account-button { padding-right: 6px; }
  .profile-header-button { display: block; }
  .conversation { padding: 28px 14px 42px; }
  .message-copy { font-size: 17px; }
  .composer { margin-top: 28px; padding: 16px; }
  .composer-heading { display: grid; }
  .workflow-mode-switch { grid-template-columns: 1fr; }
  .presenter-mode-heading { display: grid; }
  .presenter-mode-heading small { text-align: left; }
  .presenter-mode-options, .custom-presenter-upload { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .upload-card { min-height: 165px; }
  .profile-inline summary { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-inline summary span { grid-column: 1 / -1; }
  .composer-actions { align-items: stretch; flex-direction: column; }
  .composer-actions > p { max-width: none; }
  .primary-button { width: 100%; }
  .concept-gate, .job-status { padding: 16px; }
  .concept-choice { grid-template-columns: 1fr; }
  .concept-choice small { grid-row: auto; }
  .concept-confirm-row { align-items: stretch; flex-direction: column; }
  .concept-confirm { width: 100%; }
  .brief-panel { width: 100%; padding: 78px 18px 28px; }
  .profile-dialog form { padding: 18px; }
  .profile-dialog-actions { flex-direction: column-reverse; }
  .profile-dialog-actions .secondary-button, .profile-dialog-actions .primary-button { width: 100%; }
  .auth-dialog form { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.concept-detail {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-muted, #6b6258);
  font-size: 0.82rem;
  line-height: 1.4;
}

.quality-summary {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(35, 31, 27, 0.14);
  background: rgba(247, 242, 234, 0.72);
}

.quality-summary p {
  margin: 0.35rem 0 0;
}

.storyboard-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}
