:root {
  color-scheme: light;
  --accent: #7454dc;
  --accent-dark: #6343c6;
  --ink: #23242c;
  --muted: #727682;
  --stroke: #e2e4ea;
  --paper: #fff;
  --page: #f7f8fa;
  --gutter: clamp(32px, 5.05vw, 88px);
  --max-width: 1392px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
* {box-sizing:border-box}
body {margin:0;background:var(--page);color:var(--ink)}
button, input {font:inherit}
button, a, input { -webkit-tap-highlight-color:transparent }
button {cursor:pointer;color:inherit}
button {touch-action:manipulation}
button:focus-visible, a:focus-visible, input:focus-visible {outline:3px solid #ac90f9;outline-offset:3px}
button:disabled {cursor:default}
.icon-map {position:absolute;width:0;height:0;overflow:hidden}
.ic {width:20px;height:20px;display:inline-block;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;pointer-events:none}
.topbar {height:70px;border-bottom:1px solid var(--stroke);background:#fff}
.topbar-inner, .page {max-width:var(--max-width);width:calc(100% - var(--gutter) * 2);margin-inline:auto}
.topbar-inner {height:100%;display:flex;align-items:center}
.brand {display:inline-flex;gap:10px;align-items:center;text-decoration:none;color:#23232a}
.brand img {display:block;box-shadow:0 2px 5px #6c45d120;border-radius:10px}
.brand span {font-family:Inter,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif;font-size:26px;line-height:1;font-weight:730;letter-spacing:-1.45px}
.nav-divider {width:1px;height:24px;background:#e2e3e8;margin:0 29px 0 32px}
.main-nav {align-self:stretch;display:flex;align-items:stretch;gap:22px}
.nav-item {position:relative;display:flex;align-items:center;gap:8px;padding:2px 7px 0;border:0;background:none;font-size:15px;font-weight:550;color:#676a75;white-space:nowrap}
.nav-item .ic {width:17px;height:17px}
.nav-item.is-selected {color:var(--accent);font-weight:650}
.nav-item.is-selected::after {content:"";position:absolute;bottom:-1px;left:4px;right:4px;height:3px;border-radius:3px 3px 0 0;background:var(--accent)}
.help-btn {margin-left:auto;display:flex;align-items:center;gap:7px;background:none;border:0;padding:10px 0 10px 12px;color:#676a76;font-size:14px}
.help-btn .ic {width:18px;height:18px}
.nav-item:hover,.help-btn:hover,.subtle-btn:hover {color:var(--accent)}
.page {padding-block:clamp(32px,3.4vw,52px) 48px}
.page-heading {display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:27px}
.heading-copy {min-width:0}
.title-line {display:flex;align-items:center;gap:16px}
h1,h2,p {margin:0}
h1 {font-size:clamp(30px,2.65vw,39px);line-height:1.24;font-weight:720;letter-spacing:-1.5px}
.ready-state {display:inline-flex;align-items:center;gap:6px;padding:4px 9px;border-radius:20px;background:#eaf3ef;color:#39795f;font-size:12px;line-height:1.3;font-weight:550;white-space:nowrap}
.ready-state i {width:6px;height:6px;background:#4c9a73;border-radius:50%}
.ready-state[data-state="playing"] {background:#eee8ff;color:#6946ce}
.ready-state[data-state="playing"] i {background:#8462df}
.ready-state[data-state="paused"] {background:#eeeef1;color:#686a77}
.ready-state[data-state="paused"] i {background:#858797}
.script-meta {display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.5;color:#707480;margin-top:10px}
.script-meta .ic {width:16px;height:16px;color:#848892}
.script-meta #script-title {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.script-meta i {height:3px;width:3px;flex:none;border-radius:50%;background:#a4a5af;margin-inline:2px}
#char-meta {white-space:nowrap}
.heading-actions {display:flex;gap:10px;flex:none}
.button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:0 17px;border:1px solid transparent;border-radius:9px;white-space:nowrap;font-size:14px;font-weight:580;line-height:1;transition:background .16s,transform .16s}
.button .ic {width:17px;height:17px}
.secondary {background:white;border-color:#dadce3;box-shadow:0 1px 2px #23253106}
.secondary:hover {background:#faf9fe;border-color:#c4b7df}
.primary {background:var(--accent);color:white;box-shadow:0 2px 4px #5939c31a,inset 0 1px 0 #ffffff24}
.primary:hover,.play:hover {background:var(--accent-dark)}
.button:active,.play:active {transform:translateY(1px)}
.workspace-grid {display:grid;grid-template:"player outline" auto "settings focus" auto / minmax(0,2.18fr) minmax(270px,1fr);gap:20px}
.panel,.player-card {background:var(--paper);border:1px solid var(--stroke);border-radius:16px;box-shadow:0 2px 5px #1a193304}
.player-card {grid-area:player;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.screen {background:radial-gradient(ellipse at 97% 0%,#3b344b 0%,transparent 56%),linear-gradient(110deg,#1f2028 0%,#22212b 70%,#252331 100%);color:white;display:flex;flex-direction:column;min-height:337px;flex:1;position:relative;isolation:isolate}
.screen-toolbar,.screen-foot {display:flex;align-items:center;justify-content:space-between;flex:none;padding-inline:23px}
.screen-toolbar {min-height:62px;gap:10px}
.preview-context {display:flex;align-items:center;gap:12px;min-width:0}
.preview-context .preview-label {flex:none}
.preview-heading {min-width:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#c2bacf;font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.preview-label {font-weight:550;letter-spacing:.055em;display:inline-flex;align-items:center;gap:8px;font-size:12px;padding:5px 10px;border-radius:6px;color:#e5e3ef;background:#ffffff0a;border:1px solid #ffffff14;line-height:1.2}
.preview-light {width:6px;height:6px;background:#ba9cfa;border-radius:50%;box-shadow:0 0 7px #b98bff2b}
.screen-tools {display:flex;align-items:center;gap:3px;flex:none}
.screen-tool {width:35px;height:35px;border:0;display:grid;place-items:center;padding:0;background:transparent;color:#c2bfce;border-radius:7px}
.screen-tool:hover,.screen-tool[aria-pressed=true] {background:#ffffff14;color:#e6daff}
.screen-tool .ic {width:18px;height:18px}
.tool-separator {height:14px;width:1px;margin:0 3px;background:#ffffff20}
.read-frame {--guide-position:29%;margin:0 23px;position:relative;min-height:226px;flex:1}
.frame-corner {position:absolute;width:12px;height:12px;border:0 solid #bcb4cc42;z-index:1;pointer-events:none}
.frame-corner.tl {left:0;top:0;border-width:1px 0 0 1px;border-top-left-radius:3px}
.frame-corner.tr {right:0;top:0;border-width:1px 1px 0 0;border-top-right-radius:3px}
.frame-corner.br {right:0;bottom:0;border-width:0 1px 1px 0;border-bottom-right-radius:3px}
.frame-corner.bl {left:0;bottom:0;border-width:0 0 1px 1px;border-bottom-left-radius:3px}
#scroll-window {position:absolute;inset:0;overflow:hidden;overflow-anchor:none;scrollbar-width:none;mask-image:linear-gradient(to bottom,transparent,#000 10%,#000 82%,transparent)}
#scroll-window::-webkit-scrollbar {display:none}
#reading-text {padding-inline:clamp(30px,2.55vw,52px);font-size:var(--reading-font,34px);line-height:1.64;transform-origin:center}
.reading-section {position:relative;margin:0 0 .85em;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:590;letter-spacing:.015em;color:#73717e}
.reading-section.is-current {color:#f7f6fc}
.reading-section.is-next {color:#8e8a9b}
.reading-section.is-past {color:#777380}
.reading-section mark {background:transparent;color:inherit}
.reading-section.is-current mark {color:#c4a6ff}
#reading-text.is-mirrored {transform:scaleX(-1)}
.focus-cue {position:absolute;top:var(--guide-position);left:5px;transform:translateY(-50%);border-block:6px solid transparent;border-left:8px solid #b392ff;z-index:2;pointer-events:none;filter:drop-shadow(0 0 5px #ad8bff42)}
.screen-foot {height:44px}
.section-counter {display:flex;align-items:center;gap:7px;font:500 12px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;color:#9f9ba9;font-variant-numeric:tabular-nums}
.section-counter strong {font-weight:650;color:#d6c5ff}
.counter-line {width:15px;height:2px;border-radius:4px;margin-right:3px;background:#aa87f6}
.counter-slash {color:#64616f}.counter-unit {font:12px/1.4 -apple-system,sans-serif}
.space-hint {display:flex;align-items:center;gap:7px;color:#aeabba;font-size:12px}
.space-hint kbd {font:11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em;padding:2px 5px;border:1px solid #ffffff26;color:#bab5c5;border-radius:4px}
.transport {display:flex;align-items:center;gap:20px;flex:none;padding:15px 23px;background:white}
.transport-buttons,.timeline {display:flex;align-items:center}
.transport-buttons {gap:7px;flex:none}
.skip,.play {display:grid;place-items:center;border:0;padding:0;border-radius:50%}
.skip {width:33px;height:40px;background:none;color:#454651}
.skip:hover {color:var(--accent);background:#f7f5fc}
.skip:disabled {color:#b1b1bd;background:transparent}
.skip .ic {width:18px;height:18px}
.play {width:46px;height:46px;background:var(--accent);color:white;box-shadow:0 2px 4px #7251cf1f}
.play .ic {width:21px;height:21px}
.transport-divider {width:1px;height:25px;background:var(--stroke)}
.timeline {gap:12px;min-width:0;flex:1;font:500 12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#757985;font-variant-numeric:tabular-nums}
.time-now {color:#444551}
.slider {display:block;appearance:none;-webkit-appearance:none;height:25px;min-width:0;width:100%;margin:0;background:transparent;cursor:pointer;--fill:0%;--line:#dedee6;--thumb:14px}
.slider::-webkit-slider-runnable-track {height:4px;border-radius:8px;background:linear-gradient(to right,var(--accent) var(--fill),var(--line) var(--fill))}
.slider::-moz-range-track {height:4px;border-radius:8px;background:var(--line)}
.slider::-moz-range-progress {height:4px;background:var(--accent);border-radius:8px}
.slider::-webkit-slider-thumb {width:var(--thumb);height:var(--thumb);margin-top:calc((4px - var(--thumb)) / 2);border:2px solid white;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px #7959ce;appearance:none;-webkit-appearance:none}
.slider::-moz-range-thumb {width:calc(var(--thumb) - 4px);height:calc(var(--thumb) - 4px);border:2px solid white;border-radius:50%;background:var(--accent);box-shadow:0 0 0 1px #7959ce}
.slider.seek {--thumb:11px;--line:#e4e4eb}
.slider.seek::-webkit-slider-thumb {border:0;box-shadow:none}
.slider.seek::-moz-range-thumb {border:0;box-shadow:none}
.outline {grid-area:outline;min-width:0;padding:21px 17px 16px;display:flex;flex-direction:column}
.panel-head {display:flex;align-items:center;justify-content:space-between;gap:9px}
.panel-head h2 {font-size:18px;font-weight:680;letter-spacing:-.035em;display:flex;align-items:center;gap:9px}
.panel-head h2 .ic {width:19px;height:19px;color:#656975}
.outline .panel-head {padding:0 4px 17px;border-bottom:1px solid #eeeff2}
.count-badge {background:#f2f3f6;color:#6b6d7b;padding:3px 8px;border-radius:6px;font-size:12px;line-height:1.5}
.outline-list {display:flex;flex:1;flex-direction:column;justify-content:space-between;gap:3px;padding-top:12px;min-height:0;max-height:clamp(330px,32vh,430px);overflow:auto;scrollbar-width:thin;scrollbar-color:#d4cbe8 transparent}
.outline-row {display:flex;align-items:center;gap:11px;min-height:59px;padding:8px 10px;width:100%;text-align:left;border:1px solid transparent;border-radius:9px;background:transparent}
.outline-row:hover {background:#f6f6f9}
.outline-row.is-active {background:#f2edff;border-color:#e2d6fb}
.outline-number {display:grid;place-items:center;flex:none;width:30px;height:30px;background:#f0f1f5;border-radius:7px;color:#797c86;font:560 12px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:-.03em}
.is-active .outline-number {color:#7751c9;background:#e4d8ff}
.outline-text {display:flex;flex-direction:column;min-width:0;gap:4px}
.outline-title,.outline-snippet {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.outline-title {white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:15px;font-weight:610;color:#343540;overflow-wrap:anywhere}
.outline-row {flex:none}
.is-active .outline-title {color:#704cbd}
.outline-snippet {color:#757986;font-size:13px;line-height:1.5}
.outline-indicator {display:none;align-items:center;justify-content:end;gap:2px;height:15px;min-width:13px;margin-left:auto;color:var(--accent)}
.is-active .outline-indicator {display:flex}
.outline-indicator i {width:2px;border-radius:2px;height:6px;background:currentColor}
.outline-indicator i:nth-child(2) {height:13px}
.outline-indicator i:nth-child(3) {height:9px}
.settings {grid-area:settings;padding:21px 23px 17px}
.subtle-btn {display:inline-flex;align-items:center;gap:5px;font-size:13px;border:0;background:none;padding:4px 0 4px 7px;color:#777a86}
.subtle-btn .ic {width:15px;height:15px}
.settings-body {display:grid;grid-template-columns:1fr 1fr;column-gap:40px;margin-top:20px}
.setting {min-width:0;position:relative}
.setting+.setting::before {content:"";position:absolute;left:-20px;top:1px;bottom:1px;width:1px;background:var(--stroke)}
.setting-label {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:5px}
.setting-label label {font-size:14px;font-weight:550;display:flex;align-items:center;gap:7px}
.setting-label .ic {width:16px;height:16px;color:#777987}
.setting-label output {font:600 13px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;color:#6c4db3;background:#f4f0fc;border-radius:5px;padding:3px 7px}
.setting-label output small {font:500 11px/1.3 -apple-system,sans-serif;margin-left:3px}
.range-ends {display:flex;justify-content:space-between;color:#828592;font-size:12px;line-height:1.2}
.focus-card {grid-area:focus;position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;text-align:left;padding:20px 23px;border:1px solid #ded6f3;border-radius:16px;background:linear-gradient(115deg,#f1ecfb,#ede7fa 60%,#e6dcfc);color:#3c3152}
.focus-card::before,.focus-card::after {content:"";position:absolute;border:1px solid #c7b6e957;border-radius:50%;height:210px;width:210px;right:-27px;top:-33%;transform:rotate(-20deg) scaleX(.88);pointer-events:none;z-index:-1}
.focus-card::after {width:268px;height:268px;right:-55px;top:calc(-33% - 29px);border-color:#c7b6e93b}
.focus-card-copy {display:flex;align-items:flex-start;flex-direction:column;gap:6px;position:relative;z-index:1}
.focus-icon {color:#7356ad;display:grid;place-items:center;width:31px;height:31px;background:#ffffff88;border-radius:8px;border:1px solid #d9cdec;margin-bottom:3px}
.focus-icon .ic {width:16px;height:16px}
.focus-card-copy strong {font-size:20px;font-weight:680;letter-spacing:-.7px}
.focus-description {color:#746581;font-size:13px}
.focus-art {position:absolute;right:4%;bottom:1%;height:96%;width:40%;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:0}
.focus-art img {width:auto;height:96%;max-width:100%;object-fit:contain;transform:rotate(10deg);filter:drop-shadow(4px 10px 7px #66518d33);transition:transform .22s ease}
.focus-card:hover .focus-art img {transform:rotate(7deg) translateY(-2px)}
.help-dialog {border:1px solid var(--stroke);padding:26px;border-radius:17px;width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 16px 56px #211b3733}
.help-dialog::backdrop {background:#211e2b6b;backdrop-filter:blur(3px)}
.guide-heading,.shortcut-row {display:flex;align-items:center;justify-content:space-between}
.guide-heading h2 {font-size:22px}
.icon-button {border:0;border-radius:8px;background:#f4f3f7;display:grid;place-items:center;width:34px;height:34px}
.guide-step {padding-top:18px;margin-top:16px;border-top:1px solid var(--stroke);font-size:15px}
.guide-step p {margin-top:7px;color:#686775;font-size:14px;line-height:1.7}
.shortcut-row {font-size:14px;color:#686775;margin-top:13px}
.shortcut-row kbd {font:13px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;background:#f5f4f7;border:1px solid #e0dce6;border-radius:5px;padding:2px 7px}
body.focus-open {overflow:hidden}
.player-card.is-focused {position:fixed;inset:0;z-index:10;width:100%;height:100%;height:100dvh;border:0;border-radius:0;background:#22212b}
.is-focused .screen {min-height:0;padding:env(safe-area-inset-top) 0 0}
.is-focused .read-frame {--guide-position:40%;min-height:0;margin-inline:max(24px,6vw)}
.is-focused .transport {width:100%;padding-bottom:max(15px,env(safe-area-inset-bottom));background:#25242e;color:#e8e4f0}
.is-focused .transport .skip,.is-focused .time-now,.is-focused .timeline {color:#d5d0e0}
.is-focused .skip:disabled {color:#787481}
.is-focused .transport-divider {background:#494352}
.is-focused .seek {--line:#514b5a}
.is-focused .skip:hover {background:#ffffff12}
@media (min-width:1500px) { .screen {min-height:390px}.outline-list {max-height:390px}.outline-row {min-height:65px} }
@media (max-width:1030px) { :root {--gutter:28px}.workspace-grid {grid-template-columns:minmax(0,1.95fr) minmax(260px,1fr);gap:16px}.outline {padding-inline:12px}.settings-body {column-gap:30px}.setting+.setting::before {left:-15px} }
@media (max-width:850px) {
  :root {--gutter:24px}
  .workspace-grid {grid-template:"player" auto "settings" auto "outline" auto "focus" auto / minmax(0,1fr)}
  .outline-list {max-height:340px}
  .focus-card {min-height:125px}
  .focus-art {right:7%;width:25%}
  .focus-card::before,.focus-card::after {right:3%}
  .screen {min-height:335px}
  .page {padding-block:28px 32px}
}
@media (max-width:600px) {
  :root {--gutter:16px}
  .topbar {height:58px}
  .brand {gap:7px}
  .brand span {font-size:22px;letter-spacing:-1.2px}
  .brand img {width:29px;height:29px;border-radius:8px}
  .nav-divider {margin:0 12px 0 15px;height:19px}
  .main-nav {gap:7px}
  .nav-item {gap:5px;font-size:14px;padding-inline:6px}
  .nav-item .ic {display:none}
  .help-btn {width:38px;min-height:44px;justify-content:flex-end;padding-right:2px}
  .help-btn span {display:none}
  .page {padding-block:25px 28px}
  .page-heading {align-items:flex-start;flex-direction:column;gap:15px;margin-bottom:17px}
  .heading-copy {max-width:100%}
  h1 {font-size:29px;letter-spacing:-1px}
  .title-line {gap:12px}
  .ready-state {font-size:11px;padding:4px 8px}
  .script-meta {font-size:13px;gap:6px;margin-top:7px}
  .heading-actions {gap:8px}
  .button {padding:0 13px;min-height:40px;border-radius:8px}
  .workspace-grid {gap:14px;grid-template-areas:"player" "outline" "settings" "focus"}
  .player-card,.panel,.focus-card {border-radius:13px}
  .screen {min-height:clamp(303px,38svh,375px)}
  .screen-toolbar {min-height:48px;padding:0 14px}
  .preview-context {gap:8px}
  .preview-heading {font-size:12px}
  .screen-tool {height:44px;width:42px}
  .preview-label {font-size:11px;padding:4px 8px}
  .read-frame {margin-inline:12px;min-height:210px}
  #reading-text {line-height:1.6;padding-inline:22px}
  .reading-section {margin-bottom:.8em}
  .focus-cue {left:3px;border-block-width:5px;border-left-width:6px}
  .screen-foot {height:35px;padding-inline:15px}
  .space-hint {display:none}
  .transport {gap:10px;padding:10px 12px}
  .transport-buttons {gap:1px}.skip {width:40px;height:44px}.play {width:44px;height:44px}
  .transport-divider {height:19px}
  .timeline {gap:6px;font-size:11px}.slider {height:30px}
  .settings,.outline {padding:16px}
  .panel-head h2 {font-size:17px;gap:8px}
  .panel-head h2 .ic {width:17px;height:17px}
  .settings-body {margin-top:13px;gap:14px;grid-template-columns:1fr}
  .setting+.setting::before {display:none}
  .setting-label {margin:0}
  .range-ends {display:none}
  .setting {display:grid;grid-template-columns:1fr;align-items:center}
  .setting-label output {font-size:12px}
  .outline .panel-head {padding:0 0 12px}
  .outline-list {padding-top:8px}
  .outline-row {min-height:59px}
  .focus-card {padding:14px 18px;min-height:120px}
  .focus-icon {width:26px;height:26px;margin:0}
  .focus-art {width:33%}
  .is-focused .read-frame {margin-inline:12px}
}
@media (max-width:370px) { :root {--gutter:12px}.nav-divider {margin-inline:10px}.main-nav {gap:1px}.transport-divider {display:none}.timeline {gap:4px} }
@media (orientation:landscape) and (max-height:520px) {.is-focused .screen-toolbar {min-height:39px}.is-focused .screen-foot {height:26px}.is-focused .transport {padding-block:4px}.is-focused #reading-text {font-size:var(--reading-font)} }
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {transition:none!important} }
