:root {
  color-scheme: light;
  --bg: #eeeae3;
  --surface: #fcf9f3;
  --ink: #29251f;
  --muted: #685e51;
  --line: #dfd5c8;
  --accent: #efbc72;
  --deep: #302820;
  --soft: #f3e8d7;
  --focus: #956123;
  --danger: #a32e25;
  --radius: 19px;
  font: 14px/1.55 'Aptos', 'Segoe UI', 'Microsoft YaHei UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a, .upload { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
small, .footnote { color: var(--muted); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .44; }
:focus-visible { outline: 2px solid #477438; outline-offset: 3px; }
button, .upload { transition: background .16s, border-color .16s, transform .16s; }
button:active:not(:disabled) { transform: scale(.97); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 68px; padding: 0 clamp(16px,4vw,62px); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand, .top-actions, .top-nav { display: flex; align-items: center; gap: 12px; }
.brand { justify-self: start; font-size: 19px; letter-spacing: -.045em; white-space: nowrap; }
.brand strong span { color: var(--muted); font-weight: 500; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; background: var(--deep); display: flex; align-items: center; justify-content: center; gap: 2px; }
.brand-mark i { width: 2px; height: 9px; background: var(--accent); border-radius: 4px; }
.brand-mark i:nth-child(2n) { height: 14px; }
.brand-mark i:nth-child(3) { height: 19px; }
.top-nav { gap: 5px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.top-nav a, .text-button { padding: 5px 13px; font-size: 13px; border-radius: 6px; white-space: nowrap; }
.top-nav a { background: var(--soft); font-weight: 700; }
.text-button { background: none; color: var(--ink); border: 0; }
.text-button:hover:not(:disabled) { background: var(--soft); }
.top-actions { justify-self: end; }
#connection { display: flex; gap: 7px; align-items: center; font-size: 12px; }
#connection::before, .eyebrow > span { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #83ab64; flex: none; }
#connection[data-state='pending']::before { background: #b08132; }
#connection[data-state='offline']::before { background: #c45348; }
main { width: min(1560px,100%); margin: auto; padding: 0 clamp(16px,4vw,62px); }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 29px 0 23px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #446049; font-size: 11px; letter-spacing: .15em; font-weight: 750; }
h1 { font-size: clamp(27px,3.4vw,48px); line-height: 1.17; letter-spacing: -.055em; margin: 6px 0 8px; }
.intro p { color: var(--muted); }
.desk { display: grid; grid-template-columns: minmax(192px,.9fr) minmax(0,3fr) minmax(220px,1.03fr); align-items: stretch; gap: 14px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 12px #26372b07; }
.setup, .stage, .conductor { padding: 17px; }
.setup { display: flex; flex-direction: column; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.panel-heading h2, .review-heading h3 { font-size: 15px; font-weight: 750; }
.count { border-radius: 6px; background: var(--soft); color: #3e5740; padding: 3px 7px; font-size: 11px; white-space: nowrap; }
.upload { display: flex; align-items: center; padding: 12px 9px; gap: 9px; border: 1px dashed #a5b39d; border-radius: 11px; background: #f5f8f0; cursor: pointer; overflow-wrap: anywhere; }
.upload:hover, .upload[data-drag='true'] { background: #e9f4db; border-color: #739364; }
.upload:has(+ input:disabled) { opacity: .55; cursor: default; }
.upload small { display: block; font-size: 11px; }
.upload-mark { flex: none; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; background: #e2edda; color: var(--deep); font-size: 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; clip-path: inset(50%); overflow: hidden; }
.upload:has(+ input:focus-visible) { outline: 2px solid #477438; outline-offset: 3px; }
.steps { margin-top: 23px; padding-top: 16px; border-top: 1px solid var(--line); }
.steps h3 { font-size: 12px; color: var(--muted); }
.steps ol { display: grid; gap: 13px; list-style: none; padding: 12px 0; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.steps li span { text-align: center; width: 20px; line-height: 20px; background: var(--soft); border-radius: 50%; color: #405a43; }
.setup-footer { font-size: 11px; color: var(--muted); margin-top: auto; padding-top: 16px; }
#slides { display: grid; align-content: start; gap: 5px; max-height: 284px; overflow: auto; margin-top: 12px; }
#slides button { text-align: left; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#slides button[aria-current='page'] { background: #e7f0df; border-color: #b8cdb0; color: #2e492f; }
.stage-top { margin-bottom: 10px; }
.stage-top small { display: block; margin-top: 2px; font-size: 11px; }
.icon-button, .quiet, .primary, .stop { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 12px; background: var(--surface); color: var(--ink); font-weight: 650; }
.icon-button { width: 36px; padding: 0; font-size: 17px; }
.quiet:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--soft); border-color: #bdcdb6; }
.primary { background: var(--accent); border-color: #a8cc73; color: #1c341d; }
.primary:hover:not(:disabled) { background: #d7f4a4; }
.stop { background: #a9362e; color: #fdfaf8; border-color: #a9362e; }
.stop:hover { background: #8b2a24; }
.rec-icon { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; }
.stop-icon { width: 8px; height: 8px; background: currentColor; border-radius: 2px; }
.screen { position: relative; isolation: isolate; min-height: 340px; max-height: 482px; overflow: auto; display: grid; align-items: center; border-radius: 13px; background: radial-gradient(ellipse at 52% 24%,#375843 0%,#1d3527 48%,#14281e 100%); color: #f4f7ec; }
.screen::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(#d5f3cf31 1px,transparent 1px) 0 0 / 20px 20px; mask-image: linear-gradient(#18241e 40%,transparent); }
.stage-empty { text-align: center; padding: 25px 14px 29px; }
.stage-empty h3 { font-size: clamp(19px,2vw,27px); letter-spacing: -.04em; margin-top: 11px; }
.stage-empty p { color: #c3d2c4; font-size: 13px; margin: 4px 0 15px; }
.stage-art { width: 225px; height: 155px; position: relative; margin: auto; }
.paper { position: absolute; width: 150px; height: 103px; border-radius: 12px; left: 36px; top: 25px; }
.paper-back { transform: translate(-22px,0) rotate(-14deg); border: 1px solid #829d81; background: #516d55; }
.paper-mid { transform: translate(25px,1px) rotate(12deg); border: 1px solid #abc392; background: #9ab086; }
.paper-front { transform: rotate(-5deg); border: 1px solid #e8f3e2; background: #f0f5e9; padding: 12px; text-align: left; box-shadow: 0 13px 25px #0c1d1560; }
.paper-tag { display: block; width: 24px; height: 6px; border-radius: 3px; background: #739463; }
.paper-line { width: 67px; height: 5px; border-radius: 4px; margin-top: 6px; background: #c0d1b9; }
.paper-line.short { width: 49px; }
.art-bars { display: flex; align-items: center; gap: 4px; height: 33px; overflow: hidden; }
.art-bars i { width: 4px; height: 8px; border-radius: 4px; background: #699159; }
.art-bars i:nth-child(3n) { height: 20px; }
.art-bars i:nth-child(4n) { height: 27px; }
.art-bars i:nth-child(5n) { height: 14px; }
.art-chip { position: absolute; top: 108px; right: 7px; display: flex; gap: 7px; align-items: center; color: #e6f3df; background: #243d2e; border: 1px solid #769174; border-radius: 7px; padding: 5px 8px; font: 700 10px/1.2 'Segoe UI',sans-serif; letter-spacing: .12em; }
.art-chip i { width: 6px; height: 6px; border-radius: 50%; background: #c5ec87; }
.slide-sheet { position: relative; margin: clamp(14px,4vw,43px); padding: clamp(19px,4vw,44px); min-height: 235px; background: #f7f9ef; color: var(--ink); border-radius: 10px; overflow-wrap: anywhere; box-shadow: 0 18px 35px #0e1f1680; }
.slide-sheet h3 { line-height: 1.2; font-size: clamp(23px,3vw,38px); margin: 10px 0; }
.slide-sheet p { white-space: pre-wrap; color: var(--muted); }
.toolbar, .paging, .recording { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.toolbar { justify-content: space-between; margin-top: 13px; }
.keyboard { font-size: 11px; color: var(--muted); }
kbd { display: inline-block; padding: 1px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: inherit; }
.message { margin-top: 8px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.message:empty { display: none; }
.message[data-error='true'] { color: var(--danger); }
.recording { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
audio { max-width: 100%; height: 39px; }
.timer { padding: 13px 12px; border-radius: 12px; background: #eef3e9; }
.timer-label { color: var(--muted); font-size: 12px; }
#clock { display: block; font-size: clamp(35px,4vw,56px); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.075em; line-height: 1.05; color: var(--deep); margin: 4px 0 10px; }
#clock[data-over='true'], #timer-card[data-over='true'] #remaining { color: var(--danger); }
progress { display: block; width: 100%; height: 5px; appearance: none; border: 0; border-radius: 8px; background: #dbe6d5; overflow: hidden; }
progress::-webkit-progress-bar { background: #dbe6d5; }
progress::-webkit-progress-value { background: #668d53; }
progress::-moz-progress-bar { background: #668d53; }
.timer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: 8px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.settings label { display: block; font-size: 12px; font-weight: 700; margin: 14px 0 5px; }
.settings input, select, textarea { width: 100%; min-width: 0; padding: 8px 9px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf5; color: var(--ink); }
.number-field { display: flex; align-items: center; gap: 7px; }
.number-field span { white-space: nowrap; color: var(--muted); font-size: 12px; }
.presets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.presets button { padding: 3px 6px; min-height: 27px; font-size: 11px; }
.presets button[aria-pressed='true'] { background: var(--soft); border-color: #afc5a3; }
.privacy { display: flex; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.privacy strong { color: var(--ink); }
.privacy > span { color: #4f744e; font-size: 17px; line-height: 1; }
.report { margin-top: 19px; padding: clamp(15px,2.6vw,31px); }
.report-head, .review-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; }
.report-head h2 { font-size: clamp(23px,3vw,34px); letter-spacing: -.04em; }
#summary { color: var(--muted); font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 17px 0; border: 1px solid var(--line); border-radius: 12px; background: #f5f8f1; }
.metrics > div { padding: 12px; }
.metrics > div + div { border-left: 1px solid var(--line); }
.metrics dt { font-size: 11px; color: var(--muted); }
.metrics dd { font-size: clamp(17px,2vw,28px); font-weight: 750; font-variant-numeric: tabular-nums; }
.ai-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid #cdddbc; border-radius: 10px; background: var(--soft); margin-bottom: 17px; }
.ai-panel .message { width: 100%; margin-top: 0; }
.review-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); gap: 18px; }
.review-heading { margin-bottom: 10px; }
.filter, .footnote { font-size: 12px; color: var(--muted); }
.filter input { accent-color: #477438; }
.row { border-top: 1px solid var(--line); padding: 9px 0; overflow-wrap: anywhere; }
.row summary { cursor: pointer; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 3px 10px; list-style: none; }
.row summary::-webkit-details-marker { display: none; }
.row-title { font-weight: 750; }
.row-title::before { content: '›'; display: inline-block; margin-right: 6px; }
.row[open] .row-title::before { transform: rotate(90deg); }
.row-meta { font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.row-status { padding: 2px 6px; border-radius: 5px; background: var(--soft); color: #37553a; font-size: 11px; }
.row[data-review='true'] .row-status { background: #f4ead9; color: #79501f; }
.row meter { grid-column: 1 / -1; width: 100%; height: 7px; accent-color: #7a9d6c; }
.row p, .clips { margin-top: 8px; font-size: 12px; }
.clips { padding-left: 18px; }
.ai-note { padding: 7px; border-radius: 6px; background: var(--soft); }
.script-panel label { font-weight: 750; margin-right: 8px; }
textarea { display: block; margin-top: 9px; resize: vertical; min-height: 190px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; font-size: 11px; color: var(--muted); }
.stage-actions { display: flex; align-items: center; gap: 12px; }
#focus-clock { display: none; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
#stage:fullscreen #focus-clock { display: block; }
#focus-clock[data-over='true'] { color: var(--danger); }
#timer-card[data-recording='true'] { box-shadow: inset 0 0 0 1px #9eb98d; }
#stage:fullscreen { overflow: auto; padding: clamp(12px,3vw,44px); }
#stage:fullscreen .screen { min-height: 62dvh; }
dialog { max-width: min(460px,calc(100% - 26px)); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); padding: 20px; }
dialog::backdrop { background: #18241e80; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
dialog ol { padding: 10px 0 10px 22px; }
dialog li { margin-bottom: 6px; }
@media(max-width: 1100px) { .desk { grid-template-columns: minmax(165px,.8fr) minmax(0,2.5fr) minmax(185px,.94fr); } .setup,.stage,.conductor { padding: 12px; } .keyboard { display: none; } }
@media(max-width: 850px) { .desk { grid-template-columns: minmax(0,1fr) minmax(185px,.4fr); } .setup { grid-column: 1 / -1; } .steps { display: none; } #slides { grid-auto-flow: column; grid-auto-columns: minmax(110px,170px); overflow: auto; } .setup-footer { padding-top: 8px; } }
@media(max-width: 570px) { .top { grid-template-columns: 1fr auto; gap: 7px; padding: 8px 13px; } .top-nav { display: none; } #connection { max-width: 112px; } .intro { align-items: start; flex-direction: column; } .desk,.review-grid { grid-template-columns: 1fr; } .setup { grid-column: auto; } .screen { min-height: 305px; } .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .metrics > div:nth-child(3) { border-left: 0; } .metrics > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
/* Warm control-room surfaces and the session timeline. */
body { background: radial-gradient(ellipse at 75% 0%, #f8f1e5 0%, transparent 55%), var(--bg); }
.top { background: #2c2621; color: #fff4e3; border-color: #494039; }
.top .icon-button, .top-nav { border-color: #65584b; }
.top .icon-button, .top-nav a, .text-button:hover:not(:disabled) { background: #463a2d; color: #fff4e3; }
.brand-mark { background: #544333; }
.brand strong span, #connection { color: #e3cdb1; }
.top .text-button { color: #f5e8d6; }
:focus-visible, .upload:has(+ input:focus-visible) { outline-color: var(--focus); }
.top :focus-visible { outline-color: var(--accent); }
.eyebrow, .count { color: #75501f; }
.eyebrow > span { background: #b57c34; }
.panel { box-shadow: 0 6px 20px #5d46300b; }
.screen { background: radial-gradient(ellipse at 63% 12%, #594533, #332b25 57%, #24201d); }
.screen::before { background-image: radial-gradient(#edcb9e44 1px, transparent 1px); }
.stage-empty p { color: #e2ccb4; }
@media (min-width: 1150px) {
  .stage-empty { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 19px; align-items: center; padding: 30px 24px; }
  .stage-prompt { grid-column: 1; grid-row: 1; text-align: left; padding-left: 6px; }
  .stage-art { grid-column: 2; grid-row: 1; justify-self: center; transform: scale(1.07); }
  .stage-empty h3 { margin-top: 0; }
}
.paper-back { background: #72573e; border-color: #9d7d5d; }
.paper-mid { background: #c09060; border-color: #e0ba90; }
.paper-front, .slide-sheet { background: #fff3df; border-color: #fff2d9; }
.paper-tag, .art-bars i { background: #a26b33; }
.paper-line { background: #dfc5a4; }
.art-chip { background: #3b2f24; border-color: #987451; color: #fff5e6; }
.art-chip i { background: var(--accent); }
.upload, .timer, .metrics, .settings input, select, textarea { background: #f7efe2; }
.upload { border-color: #bc9971; }
.upload:hover, .upload[data-drag='true'], .upload-mark { background: #f6e2c3; border-color: #a47742; }
.primary { color: #362515; border-color: #c89451; }
.primary:hover:not(:disabled) { background: #fbd29c; }
#slides button[aria-current='page'], .presets button[aria-pressed='true'], .ai-panel, .quiet:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: var(--soft); border-color: #d6b990; color: var(--deep); }
.top .icon-button:hover:not(:disabled) { background: #624831; color: #fff4e3; }
.progress, progress, progress::-webkit-progress-bar { background: #e8d7c1; }
progress::-webkit-progress-value { background: #a66a30; }
progress::-moz-progress-bar { background: #a66a30; }
#timer-card[data-recording='true'] { box-shadow: inset 0 0 0 1px #c49159; }
.privacy > span { color: #8d612b; }
.timeline { margin-top: 14px; padding: 13px 17px; }
.timeline-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.timeline-head h2 { font-size: 15px; }
.timeline-head p, .timeline-ruler { color: var(--muted); font-size: 11px; }
.timeline-ruler { display: flex; justify-content: space-between; margin-top: 10px; font-variant-numeric: tabular-nums; }
.timeline #timeline-progress { margin-top: 4px; }
.timeline-events { display: flex; flex-wrap: wrap; padding: 0; gap: 5px; margin-top: 8px; list-style: none; }
.timeline-events li { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: min(100%, 230px); padding: 3px 7px; background: var(--soft); border-radius: 5px; color: var(--ink); font-size: 11px; }
.timeline-events time { font-weight: 700; font-variant-numeric: tabular-nums; color: #78501f; }
.timeline-events li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-events .timeline-idle { background: transparent; color: var(--muted); padding-left: 0; }
@media(prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 340px) {
  .top { column-gap: 4px; padding-inline: 9px; }
  .brand, .top-actions { gap: 6px; }
  .brand { font-size: 17px; }
  .stage-empty { min-width: 0; padding-inline: 6px; }
  .stage-art { max-width: 100%; }
}
