:root {
  color-scheme: dark;
  --bg: #262724;
  --bg-deep: #151613;
  --panel: #30312e;
  --panel-2: #393a36;
  --ink: #f7f5ef;
  --muted: #aaa9a2;
  --line: rgba(255,255,255,.13);
  --orange: #ff6534;
  --orange-2: #ff9a45;
  --danger: #ffb29a;
  --shadow: 0 28px 80px rgba(0,0,0,.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 70% 5%, rgba(255,101,52,.09), transparent 26%),
    radial-gradient(circle at 15% 80%, rgba(255,154,69,.05), transparent 28%),
    var(--bg);
}
body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px);
  background-size: 42px 42px;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.activation-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 70% 12%, rgba(255,101,52,.14), transparent 32%), #1b1c19; }
.activation-card { width: min(680px, 100%); padding: clamp(28px, 5vw, 54px); background: linear-gradient(145deg, rgba(52,53,49,.98), rgba(35,36,33,.98)); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; box-shadow: 0 35px 100px rgba(0,0,0,.48); }
.activation-brand { margin-bottom: 42px; }
.activation-card h2 { margin: 0 0 14px; font-size: clamp(30px, 5vw, 48px); line-height: 1.12; }
.activation-card > p:not(.eyebrow) { margin: 0; color: #c8c7c0; line-height: 1.7; }
.activation-form { margin-top: 32px; }
.activation-form label { display: block; margin-bottom: 9px; color: #dedcd5; font-size: 13px; font-weight: 700; }
.activation-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.activation-row input { min-width: 0; height: 52px; padding: 0 16px; color: var(--ink); letter-spacing: .07em; background: #1f201d; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; outline: none; }
.activation-row input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,101,52,.12); }
.activation-message { display: block; min-height: 22px; margin-top: 10px; color: var(--danger); font-size: 13px; }
.privacy-note { display: flex; gap: 10px; margin-top: 26px; padding: 15px 17px; color: #c4c3bc; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); border-radius: 12px; font-size: 13px; line-height: 1.6; }
.privacy-note strong { flex: 0 0 auto; color: var(--orange-2); }
.privacy-banner { margin-bottom: 14px; padding: 12px 15px; color: #d2d0c9; background: rgba(255,154,69,.055); border: 1px solid rgba(255,154,69,.2); border-radius: 12px; font-size: 13px; line-height: 1.6; }
.privacy-banner strong, .privacy-countdown { color: var(--orange-2); }
.privacy-countdown { margin: 5px 0 0; font-size: 12px; }

.topbar {
  position: relative;
  z-index: 2;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(28,29,26,.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; }
.brand em { display: block; color: var(--orange); font-size: 9px; font-style: normal; letter-spacing: .21em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #181815; background: var(--orange); border-radius: 8px; font-size: 20px; }
.product-nav { display: flex; align-items: center; gap: 5px; padding: 4px; background: rgba(16,17,15,.56); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.product-nav a { padding: 9px 14px; color: #9e9e97; border-radius: 8px; font-size: 12px; font-weight: 750; text-decoration: none; transition: .2s; }
.product-nav a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.product-nav a.active { color: #181815; background: var(--orange); box-shadow: 0 7px 18px rgba(255,103,59,.2); }
.nav-mobile { display: none; }
.stage-label { color: #8f8f88; font-size: 12px; letter-spacing: .08em; }

main { position: relative; z-index: 1; width: min(1680px, 94vw); margin: 0 auto; padding: 54px 0 44px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(28px, 4vw, 72px); align-items: center; max-width: 1540px; margin-bottom: 52px; }
.hero-text { min-width: 0; }
.speech-orbit { position: relative; width: 100%; max-width: 390px; aspect-ratio: 1.55; justify-self: end; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; transform: rotate(-7deg); }
.speech-orbit::before,.speech-orbit::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.speech-orbit::before { inset: 11%; border: 1px dashed rgba(255,103,59,.35); }
.speech-orbit::after { inset: 27%; border: 1px solid rgba(255,103,59,.42); box-shadow: 0 0 42px rgba(255,103,59,.06); }
.speech-orbit strong { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange); font-family: "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif; font-size: clamp(27px, 2.3vw, 38px); font-weight: 900; letter-spacing: -.05em; transform: rotate(7deg); }
.speech-orbit small { position: absolute; left: 50%; top: 64%; color: rgba(255,255,255,.25); font-size: 8px; letter-spacing: .2em; transform: translateX(-50%) rotate(7deg); }
.orbit-label { position: absolute; z-index: 2; padding: 6px 8px; color: #cbc9c1; background: #191a17; border: 1px solid rgba(255,255,255,.04); font-size: 12px; line-height: 1; transform: rotate(7deg); }
.orbit-understand { left: 25%; top: -1%; }
.orbit-interpret { right: -2%; top: 31%; }
.orbit-transition { right: 20%; bottom: -1%; }
.orbit-notes { left: -1%; bottom: 28%; }
.eyebrow { margin: 0 0 22px; color: var(--orange); font-size: 13px; font-weight: 850; letter-spacing: .22em; }
h1 { margin: 0; max-width: 1200px; font-family: "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: clamp(44px, 6vw, 88px); font-weight: 900; font-variation-settings: "wght" 900; line-height: 1.04; letter-spacing: -.055em; }
h1 span { color: var(--orange); font-weight: 900; }
.lead { max-width: 920px; margin: 24px 0 18px; color: #cdccc5; font-size: clamp(16px, 1.5vw, 21px); line-height: 1.75; }
.feature-row { display: flex; flex-wrap: wrap; gap: 13px 28px; color: #e4e2db; font-size: 14px; font-weight: 650; }
.feature-row span::first-letter { color: var(--orange); }

.process-shell { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 42px; align-items: start; }
.journey { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 0; padding: 9px 0; }
.journey-line { position: absolute; left: 3px; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.journey-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 10px; min-height: 102px; padding: 13px 0 13px 18px; color: inherit; text-align: left; appearance: none; background: transparent; border: 0; opacity: .42; transition: opacity .2s ease, background .2s ease; }
.journey-step:not(:disabled) { cursor: pointer; }
.journey-step:not(:disabled):hover { background: rgba(255,255,255,.035); border-radius: 10px; opacity: .82; }
.journey-step:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 10px; }
.journey-step:disabled { cursor: default; }
.journey-step::before { position: absolute; left: 0; top: 12px; bottom: 12px; width: 4px; content: ""; border-radius: 4px; background: transparent; }
.journey-step b { color: var(--orange); font-size: 13px; padding-top: 3px; }
.journey-copy { display: flex; flex-direction: column; gap: 7px; }
.journey-step strong { font-size: 17px; }
.journey-copy > span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.journey-step.active, .journey-step.done { opacity: 1; }
.journey-step.active::before { background: linear-gradient(var(--orange), var(--orange-2)); box-shadow: 0 0 22px rgba(255,101,52,.5); }
.journey-step.done b { color: #dfddd5; }
.stage-content { min-width: 0; }
.process-shell.editing-mode { grid-template-columns: 168px minmax(0, 1fr); gap: 24px; }
.editing-mode .journey { top: 88px; padding-top: 0; }
.editing-mode .journey-line { left: 2px; top: 20px; bottom: 20px; }
.editing-mode .journey-step { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; min-height: 74px; padding: 10px 8px 10px 15px; border-radius: 10px; }
.editing-mode .journey-step::before { top: 9px; bottom: 9px; width: 3px; }
.editing-mode .journey-step b { font-size: 11px; }
.editing-mode .journey-copy { gap: 4px; }
.editing-mode .journey-step strong { font-size: 14px; }
.editing-mode .journey-copy > span { font-size: 10px; }

.upload-view, .workspace-view { width: 100%; }
.upload-return-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 12px 15px; color: var(--muted); background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.upload-return-actions { display: flex; gap: 9px; }
.drop-zone {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  cursor: pointer;
  background: linear-gradient(145deg, rgba(18,19,17,.96), rgba(47,48,44,.96));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
  transition: .22s ease;
}
.select-file-button { margin-top: 6px; padding: 11px 20px; color: #1b1b18; background: var(--orange); border: 0; border-radius: 999px; font-size: 13px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.select-file-button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255,101,52,.28); }
.select-file-button:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 3px; }
.drop-zone.selecting .select-file-button { opacity: .72; }
.file-selection-hint { min-height: 18px; color: #aaa9a2 !important; font-size: 12px !important; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 30px 90px rgba(0,0,0,.45), 0 0 0 1px rgba(255,101,52,.2); }
.drop-zone strong { font-size: clamp(19px, 2vw, 25px); }
.upload-limit { color: var(--muted); font-size: 13px; }
.upload-icon { display: grid; place-items: center; width: 58px; height: 58px; color: var(--orange); border: 1px solid rgba(255,101,52,.42); border-radius: 50%; font-size: 31px; }
.upload-view.is-uploading .drop-zone { display: none; }
.upload-status { display: grid; gap: 20px; min-height: 270px; padding: 34px 38px; background: linear-gradient(135deg, #171815, #3b3c38); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: var(--shadow); }
.upload-status-head { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.upload-status-head > div:nth-child(2) { display: flex; flex-direction: column; gap: 7px; }
.upload-status-head strong { font-size: clamp(20px, 2vw, 28px); }
.upload-status-head span { color: var(--muted); }
.upload-status-head > b { font-size: 22px; }
.upload-status-track { height: 12px; overflow: hidden; background: #666762; border-radius: 999px; }
.upload-status-track > div { width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), #ffc06f); border-radius: inherit; box-shadow: 0 0 22px rgba(255,101,52,.48); transition: width .45s ease; }
.upload-status-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.upload-status-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 11px 9px; color: #777873; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; font-size: 11px; }
.upload-status-steps li i { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #666761; border-radius: 50%; font-style: normal; }
.upload-status-steps li.active { color: #fff; background: rgba(255,101,52,.11); border-color: rgba(255,101,52,.42); }
.upload-status-steps li.active i { color: #171713; background: var(--orange); border-color: var(--orange); box-shadow: 0 0 16px rgba(255,101,52,.45); }
.upload-status-steps li.done { color: #bbb9b2; }
.upload-status-steps li.done i { color: #171713; background: #d8d6cf; border-color: #d8d6cf; }
.upload-status-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.upload-status-actions span { color: var(--muted); font-size: 11px; }
.upload-status-actions button { padding: 9px 15px; color: #ddd9d1; background: transparent; border: 1px solid rgba(255,255,255,.22); border-radius: 9px; cursor: pointer; }
.upload-status-actions button:hover { color: #fff; border-color: rgba(255,101,52,.7); }

.settings-panel { margin-top: 18px; padding: 20px 24px; background: rgba(49,50,46,.72); border: 1px solid var(--line); border-radius: 18px; }
.settings-panel summary { cursor: pointer; color: #deddd7; font-weight: 700; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.settings-grid label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 12px; }
.settings-grid input, .settings-grid select { width: 100%; padding: 12px 13px; color: var(--ink); background: #22231f; border: 1px solid var(--line); border-radius: 10px; outline: 0; }
.settings-grid input::placeholder { color: #777872; opacity: 1; }
.settings-grid input:-webkit-autofill,
.settings-grid input:-webkit-autofill:hover,
.settings-grid input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #22231f inset;
  box-shadow: 0 0 0 1000px #22231f inset;
  border-color: var(--line);
  transition: background-color 9999s ease-out 0s;
}
.settings-grid input:-webkit-autofill:focus { border-color: var(--orange); }
.settings-grid input:focus, .settings-grid select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,101,52,.12); }

.workspace-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.file-name { margin: 0 0 5px; font-size: 20px; font-weight: 800; }
.status-text { margin: 0; color: var(--muted); }
.actions { display: flex; gap: 10px; }
.button { padding: 12px 19px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; transition: .18s ease; }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button:active:not(:disabled) { transform: translateY(1px) scale(.985); }
.button.processing { pointer-events: none; opacity: .78; }
.button.processing::before { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; content: ""; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: button-spin .7s linear infinite; }
@keyframes button-spin { to { transform: rotate(360deg); } }
.button.primary { color: #171713; background: linear-gradient(100deg, var(--orange), var(--orange-2)); box-shadow: 0 10px 28px rgba(255,101,52,.18); }
.button.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,101,52,.27); }
.button.secondary { color: var(--ink); background: #363733; border: 1px solid var(--line); }
.generation-prompt { display: grid; gap: 22px; padding: 28px 32px; background: linear-gradient(135deg, #171815, #3b3c38); border: 1px solid rgba(255,255,255,.18); border-radius: 24px; box-shadow: var(--shadow); }
.context-head, .context-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.context-head > div { display: flex; flex-direction: column; gap: 7px; }
.context-head strong { font-size: 22px; }
.context-head span, .context-footer > span { color: var(--muted); }
.slide-count-text { flex: 0 0 auto; padding: 7px 11px; color: #ffb18f !important; background: rgba(255,101,52,.09); border: 1px solid rgba(255,101,52,.25); border-radius: 999px; font-size: 12px; }
.context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.context-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.context-actions { display: flex; gap: 10px; }
.generation-prompt .button span { color: #171713; }
.generation-prompt.is-generating > .context-head,
.generation-prompt.is-generating > .context-grid,
.generation-prompt.is-generating > .context-footer { display: none; }
.inline-progress { display: grid; gap: 18px; min-height: 300px; padding: 8px 4px; }
.inline-progress-head { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.inline-progress-head > div:nth-child(2) { display: flex; flex-direction: column; gap: 7px; }
.inline-progress-head strong { font-size: clamp(20px, 2vw, 28px); }
.inline-progress-head span { color: var(--muted); }
.inline-progress-head > b { color: #fff; font-size: 22px; }
.inline-progress-track { height: 12px; overflow: hidden; background: #666762; border-radius: 999px; }
.inline-progress-track > div { width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), #ffc06f); border-radius: inherit; box-shadow: 0 0 22px rgba(255,101,52,.48); transition: width .5s ease; }
.inline-progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.inline-progress-steps li { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 10px; color: #777873; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; font-size: 11px; transition: .2s ease; }
.inline-progress-steps li i { display: grid; place-items: center; flex: 0 0 21px; width: 21px; height: 21px; border: 1px solid #666761; border-radius: 50%; font-style: normal; }
.inline-progress-steps li.active { color: #fff; background: rgba(255,101,52,.11); border-color: rgba(255,101,52,.42); }
.inline-progress-steps li.active i { color: #171713; background: var(--orange); border-color: var(--orange); box-shadow: 0 0 16px rgba(255,101,52,.45); }
.inline-progress-steps li.done { color: #bbb9b2; }
.inline-progress-steps li.done i { color: #171713; background: #d8d6cf; border-color: #d8d6cf; }
.inline-current-task { display: flex; align-items: center; gap: 12px; padding: 15px 17px; background: #20211e; border: 1px solid var(--line); border-radius: 11px; }
.inline-current-task span { flex: 0 0 auto; color: var(--orange); font-size: 12px; }
.inline-current-task strong { overflow: hidden; color: #eeeae2; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.editor { display: block; height: auto; min-height: 0; overflow: visible; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.slide-nav { padding: 14px 9px; overflow-y: auto; background: #1d1e1a; border-right: 1px solid var(--line); }
.slide-tab { width: 100%; padding: 10px 4px; margin-bottom: 8px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; }
.slide-tab.active { color: var(--orange); background: rgba(255,101,52,.09); border-color: rgba(255,101,52,.32); font-weight: 800; }
.deck-scroll { min-width: 0; min-height: 0; height: auto; padding: 0; overflow: visible; }
.slide-card { margin: 0 0 24px; overflow: hidden; scroll-margin-top: 18px; background: #2d2e2a; border: 1px solid rgba(255,255,255,.11); border-radius: 16px; box-shadow: 0 16px 44px rgba(0,0,0,.18); }
.slide-card:last-child { margin-bottom: 0; }
.slide-card-head { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: #252622; border-bottom: 1px solid rgba(255,255,255,.09); }
.slide-card-head div { display: flex; align-items: center; gap: 12px; }
.slide-card-head b { color: var(--orange); font-size: 13px; letter-spacing: .08em; }
.slide-card-head strong { font-size: 15px; }
.slide-card-head > span { padding: 5px 9px; color: #bebdb6; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 999px; font-size: 10px; }
.slide-card-main { display: grid; grid-template-columns: minmax(560px, 1.08fr) minmax(500px, .92fr); min-height: 0; align-items: stretch; }
.page-visual { min-width: 0; display: flex; align-items: flex-start; background: #191a17; border-right: 1px solid rgba(255,255,255,.09); }
.preview-frame { position: sticky; top: 84px; width: 100%; display: grid; place-items: start center; padding: 18px; }
.preview-frame img { display: block; width: 100%; height: auto; object-fit: contain; background: white; border-radius: 3px; box-shadow: 0 12px 30px rgba(0,0,0,.38); }
.preview-fallback { padding: 30px; color: var(--muted); text-align: center; }
.speech-edit { min-width: 0; display: flex; flex-direction: column; padding: 18px; background: linear-gradient(145deg, #30312d, #2b2c28); }
.body-editor-pane { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.field-head, .transition-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-head { margin-bottom: 10px; }
.field-head strong { font-size: 16px; }
.field-head span, .transition-label span { color: var(--muted); font-size: 11px; }
.field-actions { display: flex; align-items: center; gap: 10px; }
.revision-toggle, .revision-close, .voice-input, .apply-revision { color: #eceae3; background: #242521; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.revision-toggle { padding: 7px 11px; color: #ffb18f; border-color: rgba(255,101,52,.38); font-size: 12px; }
.revision-toggle:hover, .voice-input:hover { border-color: var(--orange); }
.script-editor, .transition-editor { width: 100%; color: #eceae3; background: #282925; border: 1px solid var(--line); border-radius: 11px; outline: 0; line-height: 1.85; }
.script-editor:focus, .transition-editor:focus { border-color: rgba(255,101,52,.68); box-shadow: 0 0 0 3px rgba(255,101,52,.08); }
.script-editor { flex: 1; min-height: 360px; padding: 16px; resize: vertical; font-size: 14px; line-height: 1.8; }
.transition-box { margin-top: 10px; padding: 11px 12px; background: rgba(255,101,52,.045); border: 1px solid rgba(255,101,52,.2); border-radius: 10px; }
.transition-label { margin-bottom: 10px; }
.transition-label strong { color: #ff926b; font-size: 14px; }
.transition-editor { min-height: 64px; max-height: 92px; padding: 10px 11px; resize: vertical; font-size: 13px; line-height: 1.6; }
.ending-note { padding: 13px; color: var(--muted); background: rgba(255,255,255,.035); border-radius: 9px; font-size: 13px; }
.extension-prompts { margin-top: 10px; padding: 0; color: #d5d3cc; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 9px; font-size: 12px; }
.extension-prompts summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; color: #e1dfd8; cursor: pointer; list-style: none; font-weight: 700; }
.extension-prompts summary::-webkit-details-marker { display: none; }
.extension-prompts summary::after { content: "＋"; color: var(--orange-2); font-size: 15px; font-weight: 400; }
.extension-prompts[open] summary::after { content: "－"; }
.extension-prompts summary span { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 500; }
.extension-prompts ul { display: grid; gap: 6px; margin: 0; padding: 0 15px 13px 31px; line-height: 1.6; }
.revision-notice { margin-top: 12px; padding: 11px 13px; color: #d5d3cc; background: rgba(255,183,77,.06); border: 1px solid rgba(255,183,77,.2); border-radius: 8px; font-size: 12px; line-height: 1.6; }
.revision-panel { margin-top: 14px; padding: 16px; background: #22231f; border: 1px solid rgba(255,101,52,.34); border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,.2); }
.revision-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.revision-panel-head > div { display: flex; flex-direction: column; gap: 4px; }
.revision-panel-head strong { color: #fff; font-size: 14px; }
.revision-panel-head span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.revision-close { width: 30px; height: 30px; flex: 0 0 auto; color: var(--muted); font-size: 20px; line-height: 1; }
.revision-input { width: 100%; min-height: 108px; padding: 12px 13px; color: #eceae3; background: #2a2b27; border: 1px solid var(--line); border-radius: 9px; outline: 0; resize: vertical; line-height: 1.65; }
.revision-input:focus { border-color: rgba(255,101,52,.7); box-shadow: 0 0 0 3px rgba(255,101,52,.08); }
.revision-actions { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 11px; }
.voice-input, .apply-revision { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.apply-revision { color: #171713; background: var(--orange); border-color: var(--orange); font-weight: 800; }
.revision-status { overflow: hidden; color: var(--muted); font-size: 11px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.review-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding: 13px 15px; color: #d7d6d0; background: rgba(255,255,255,.025); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.review-notes strong { color: #ffb18f; }

.busy-layer { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 22px; background: rgba(17,18,16,.76); backdrop-filter: blur(11px); }
.busy-layer { -webkit-backdrop-filter: blur(11px); }
.busy-card { width: min(880px, 94vw); display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 18px 24px; padding: 48px 58px; background: linear-gradient(115deg, rgba(16,17,15,.98), rgba(58,59,55,.98)); border: 1px solid rgba(255,255,255,.25); border-radius: 28px; box-shadow: 0 34px 110px rgba(0,0,0,.62); }
.busy-copy { display: flex; flex-direction: column; gap: 8px; }
.busy-copy strong { font-size: clamp(20px, 2.2vw, 30px); }
.busy-copy span { color: #c1c0ba; }
.busy-steps { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin: 4px 0 2px; padding: 0; list-style: none; }
.busy-steps li { position: relative; display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 11px 10px; color: #777873; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; font-size: 11px; line-height: 1.35; transition: .2s ease; }
.busy-steps li i { display: grid; place-items: center; width: 20px; height: 20px; color: #8c8d87; border: 1px solid #666761; border-radius: 50%; font-size: 10px; font-style: normal; }
.busy-steps li.active { color: #fff; background: rgba(255,101,52,.11); border-color: rgba(255,101,52,.4); }
.busy-steps li.active i { color: #171713; background: var(--orange); border-color: var(--orange); box-shadow: 0 0 16px rgba(255,101,52,.45); }
.busy-steps li.done { color: #b5b4ad; }
.busy-steps li.done i { color: #171713; background: #d8d6cf; border-color: #d8d6cf; }
.signal { height: 35px; display: flex; align-items: end; justify-content: center; gap: 5px; }
.signal i { width: 7px; height: 15px; background: var(--orange); border-radius: 4px; animation: signal .8s ease-in-out infinite alternate; }
.signal i:nth-child(2) { height: 31px; animation-delay: .18s; }
.signal i:nth-child(3) { height: 21px; animation-delay: .35s; }
@keyframes signal { to { height: 8px; opacity: .5; } }
.progress-track { grid-column: 2; height: 10px; overflow: hidden; background: #777873; border-radius: 99px; }
.progress-fill { width: 12%; height: 100%; background: linear-gradient(90deg, var(--orange), #ffc06f); border-radius: inherit; transition: width .55s ease; box-shadow: 0 0 18px rgba(255,101,52,.45); }
.progress-number { grid-column: 3; color: #fff; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 30; transform: translateX(-50%); max-width: min(640px, 90vw); padding: 14px 20px; color: #fff; background: #151613; border: 1px solid rgba(255,101,52,.35); border-radius: 11px; box-shadow: var(--shadow); }

@media (min-width: 1061px) and (max-width: 1320px) {
  .process-shell.editing-mode { grid-template-columns: 1fr; gap: 18px; }
  .editing-mode .journey { position: relative; top: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .editing-mode .journey-line { left: 8%; right: 8%; top: 16px; bottom: auto; width: auto; height: 1px; }
  .editing-mode .journey-step { grid-template-columns: 1fr; min-height: 74px; padding: 0 7px; text-align: center; }
  .editing-mode .journey-step::before { left: 50%; top: 10px; bottom: auto; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #63635e; }
  .editing-mode .journey-step b { position: relative; z-index: 1; padding: 0; color: var(--bg); font-size: 0; }
  .editing-mode .journey-step.active::before { background: var(--orange); }
  .editing-mode .journey-copy { padding-top: 18px; }
  .editing-mode .journey-copy > span { display: none; }
  .slide-card-main { grid-template-columns: minmax(0, 1fr) minmax(430px, .9fr); }
}

@media (min-width: 1061px) {
  body:has(.process-shell.editing-mode) main { padding-top: 26px; }
  body:has(.process-shell.editing-mode) .hero-copy { display: none; }
  .editing-mode .workspace-head { position: sticky; top: 10px; z-index: 8; margin-bottom: 14px; padding: 12px 14px; background: rgba(34,35,31,.94); border: 1px solid rgba(255,255,255,.11); border-radius: 13px; box-shadow: 0 12px 32px rgba(0,0,0,.26); backdrop-filter: blur(14px); }
  .editing-mode .workspace-head { -webkit-backdrop-filter: blur(14px); }
  .editing-mode .file-name { max-width: 54vw; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
  .editing-mode .status-text { font-size: 12px; }
}

@media (max-width: 1060px) {
  main { width: min(94vw, 820px); }
  .hero-copy { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .speech-orbit { max-width: 280px; }
  .process-shell { grid-template-columns: 1fr; gap: 20px; }
  .process-shell.editing-mode { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .journey { position: relative; top: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
  .journey-line { left: 8%; right: 8%; top: 16px; bottom: auto; width: auto; height: 1px; }
  .journey-step { grid-template-columns: 1fr; min-height: 96px; padding: 0 7px; text-align: center; }
  .journey-step::before { left: 50%; top: 10px; bottom: auto; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #63635e; }
  .journey-step b { position: relative; z-index: 1; padding: 0; color: var(--bg); font-size: 0; }
  .journey-step.active::before { background: var(--orange); }
  .journey-copy { padding-top: 18px; }
  .journey-step strong { font-size: 14px; }
  .slide-card-main { grid-template-columns: 1fr; min-height: 0; }
  .page-visual { min-height: 390px; border-right: 0; border-bottom: 1px solid var(--line); }
  .preview-frame { min-height: 360px; }
}

@media (max-width: 640px) {
  input, select, textarea { font-size: 16px !important; }
  .button, .revision-toggle, .voice-input, .apply-revision { min-height: 44px; }
  .activation-row { grid-template-columns: 1fr; }
  .activation-row .button { width: 100%; }
  .privacy-note { flex-direction: column; }
  .topbar { height: 62px; padding: 0 4vw; }
  .brand { gap: 8px; font-size: 14px; }
  .brand em { display: none; }
  .brand-mark { width: 31px; height: 31px; font-size: 17px; }
  .product-nav { margin-left: auto; }
  .product-nav a { padding: 8px 11px; font-size: 11px; }
  .nav-desktop { display: none; }
  .nav-mobile { display: inline; }
  .stage-label { display: none; }
  main { width: 100%; padding: 26px 12px 34px; }
  .hero-copy { grid-template-columns: 1fr; gap: 18px; margin-bottom: 34px; }
  .speech-orbit { width: min(280px, 82vw); justify-self: center; margin-top: 8px; }
  .speech-orbit strong { font-size: 28px; }
  h1 { font-size: clamp(37px, 12vw, 55px); }
  .lead { font-size: 15px; }
  .feature-row { gap: 8px 14px; font-size: 12px; }
  .journey-step span { display: none; }
  .journey-step { min-height: 58px; }
  .drop-zone { min-height: 250px; padding: 25px; text-align: center; }
  .upload-status { min-height: 0; padding: 26px 22px; }
  .upload-status-head { grid-template-columns: 42px minmax(0, 1fr); }
  .upload-status-head > b { grid-column: 1 / -1; text-align: right; }
  .upload-status-steps { grid-template-columns: 1fr; gap: 5px; }
  .upload-status-actions { align-items: stretch; flex-direction: column; }
  .upload-status-actions button { width: 100%; }
  .settings-grid { grid-template-columns: 1fr; }
  body:has(.process-shell.editing-mode) .hero-copy { display: none; }
  body:has(.process-shell.editing-mode) main { padding-top: 14px; }
  .editing-mode .journey { margin-bottom: -4px; }
  .editing-mode .journey-step { min-height: 48px; padding-inline: 4px; }
  .editing-mode .journey-step strong { font-size: 12px; }
  .workspace-head { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 12px; }
  .workspace-head > div:first-child { min-width: 0; }
  .file-name { overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
  .status-text, .privacy-countdown { font-size: 11px; line-height: 1.5; }
  .actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .actions .button { min-width: 0; padding-inline: 8px; font-size: 12px; }
  .actions #downloadButton { grid-column: 1 / -1; }
  .context-head, .context-footer { align-items: stretch; flex-direction: column; }
  .context-grid { grid-template-columns: 1fr; }
  .context-actions { width: 100%; }
  .context-actions .button { flex: 1; padding-inline: 9px; }
  .upload-return-bar { align-items: stretch; flex-direction: column; }
  .upload-return-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .inline-progress { min-height: 0; }
  .inline-progress-head { grid-template-columns: 42px minmax(0, 1fr); }
  .inline-progress-head > b { grid-column: 1 / -1; text-align: right; }
  .inline-progress-steps { grid-template-columns: 1fr; gap: 5px; }
  .inline-progress-steps li { padding: 9px 10px; }
  .inline-current-task { align-items: flex-start; flex-direction: column; }
  .inline-current-task strong { white-space: normal; }
  .editor { display: block; height: auto; min-height: 0; }
  .deck-scroll { height: auto; max-height: none; padding: 0; overflow: visible; }
  .slide-card { margin-bottom: 16px; border-radius: 12px; }
  .slide-card-head { height: 44px; padding: 0 13px; }
  .slide-card-main { min-height: 0; }
  .preview-frame { position: relative; top: auto; min-height: 0; padding: 8px; }
  .page-visual { min-height: 0; }
  .preview-frame img { width: 100%; max-height: none; }
  .speech-edit { padding: 14px; }
  .script-editor { min-height: 250px; padding: 13px; line-height: 1.75; }
  .transition-box { margin-top: 8px; padding: 10px; }
  .transition-editor { min-height: 76px; max-height: 120px; }
  .field-head { align-items: flex-start; }
  .field-actions { flex-direction: column; align-items: flex-end; }
  .revision-actions { grid-template-columns: 1fr 1fr; }
  .revision-status { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .voice-input, .apply-revision { width: 100%; }
  .busy-card { grid-template-columns: 42px 1fr; gap: 16px; padding: 30px 24px; }
  .busy-steps { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 5px; }
  .busy-steps li { flex-direction: row; align-items: center; padding: 8px 10px; }
  .progress-track { grid-column: 1 / -1; }
  .progress-number { grid-column: 1 / -1; text-align: right; }
}
