:root {
  color-scheme: light;
  --paper: #f6f6f1; --panel: #fdfdf9; --ink: #252b25; --muted: #667064;
  --line: #d6d9ce; --soft: #eeefe8; --accent: #d4512c; --focus: #a84020;
  --mono: "Consolas", "Liberation Mono", monospace;
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: transparent; }
button:hover:not(:disabled) { background-color: #e9ece2; }
button:disabled { opacity: .38; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
svg.ico { width: 18px; height: 18px; display: block; flex: none; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
h1,h2,h3,p { margin: 0; }
.topbar { height: 62px; border-bottom: 1px solid var(--line); background: var(--panel); display:flex; align-items:center; gap:14px; padding:0 clamp(18px,3.2vw,60px); }
.brand { display:flex; align-items:center; gap:9px; font-size:19px; font-weight:720; letter-spacing:-1px; }
.brandmark { width:31px; height:31px; border-radius:7px; color:#fff9e8; background:#364537; }
.brandmark svg { width:23px; height:23px; }
.navline { height:20px; width:1px; background:var(--line); margin:0 7px; }
.crumb,.tools-link,.current { font-size:13px; }
.crumb,.tools-link { color:var(--muted); }
.tools-link:hover { text-decoration:underline; }
.top-account { margin-left:auto; display:flex; align-items:center; gap:12px; }
.top-account .btn { white-space:nowrap; }
.top-account .btn:hover { background:var(--soft); }
.top-status { color:var(--muted); font-size:12px; display:flex; align-items:center; gap:8px; }
.top-status:before { content:""; width:6px; height:6px; border-radius:50%; background:#738575; }
.mobile-chat { display:none; }
.project-line #start-own { padding:2px 6px; margin-left:2px; border:1px solid var(--line); color:#4d6449; background:var(--panel); border-radius:4px; font-size:11px; }
#assistant-busy { margin:0 12px; padding:8px; border-left:2px solid var(--accent); font-size:12px; line-height:1.45; }
#cancel-command { display:block; margin-top:5px; padding:0; text-decoration:underline; color:var(--muted); }
.shell { max-width:1800px; margin:auto; padding:0 clamp(16px,3.2vw,60px) 14px; }
.workspace-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:29px 0 24px; }
.editor-quota { margin:-7px 0 12px; color:var(--muted); font-size:12px; }
.editor-quota summary { width:fit-content; cursor:pointer; }
.quota-info { max-width:780px; margin:7px 0 0; padding:10px 12px; background:var(--panel); border:1px solid var(--line); border-radius:7px; line-height:1.5; }
.quota-info p + p,.quota-actions { margin-top:5px; }
.quota-actions { display:flex; flex-wrap:wrap; align-items:center; gap:5px 12px; }
.quota-actions a,.quota-actions button { padding:0; color:var(--focus); text-decoration:underline; font-size:inherit; }
.quota-actions label { display:flex; align-items:baseline; gap:5px; cursor:pointer; }
.quota-actions input { margin:0; accent-color:var(--accent); }
#quota-notice { color:var(--focus); }
h1 { font-size:clamp(31px,3.0vw,49px); font-weight:560; letter-spacing:-.065em; line-height:1.12; }
.project-line { display:flex; align-items:center; gap:6px; padding-top:8px; color:var(--muted); }
.project-line svg { width:15px; height:15px; }
.project-line > :last-child svg { width:12px; height:12px; }
.project-line input { field-sizing:content; width:auto; max-width:min(350px,40vw); min-width:88px; text-overflow:ellipsis; border:0; background:transparent; color:var(--muted); font-size:13px; }
.project-actions, .btn, .source-actions button, .project-actions button, .timeline-head h2, .panel-heading { display:flex; align-items:center; }
.project-actions { gap:8px; }
.btn { border:1px solid #c7cbbf; border-radius:7px; padding:9px 13px; gap:8px; justify-content:center; background:var(--panel); font-size:13px; font-weight:600; min-height:38px; }
.btn.export,.send { background:var(--accent); color:white; border-color:var(--accent); }
.btn.export:hover:not(:disabled),.send:hover:not(:disabled) { background:#ba4421; }
.menu-wrap { position:relative; }
.menu { position:absolute; top:calc(100% + 5px); right:0; padding:5px; min-width:205px; z-index:8; background:var(--panel); box-shadow:0 6px 25px #29322222; border:1px solid var(--line); border-radius:8px; }
.menu button { padding:10px 12px; width:100%; border-radius:4px; text-align:left; font-size:13px; }
.workspace { display:grid; grid-template-columns:minmax(178px,.82fr) minmax(320px,2.1fr) minmax(255px,1fr); grid-template-rows:auto auto; align-items:stretch; gap:13px; }
.panel { min-width:0; background:var(--panel); border:1px solid var(--line); border-radius:11px; overflow:hidden; }
.panel-heading,.timeline-head h2 { margin:0; gap:8px; font-size:15px; font-weight:620; letter-spacing:-.025em; }
.panel-heading { min-height:51px; border-bottom:1px solid var(--line); padding:0 16px; }
.panel-heading > [data-icon], .timeline-head h2 > [data-icon] { color:#586450; }
.count { margin-left:auto; border:1px solid var(--line); border-radius:5px; padding:2px 6px; color:var(--muted); font:11px var(--mono); }
.library { display:flex; flex-direction:column; }
.library-inner { padding:15px 13px; }
.primary-import { width:100%; background:var(--soft); border-color:#bdc5b5; }
#upload.first-upload { background:#384d39; border-color:#384d39; color:white; }
#upload.first-upload:hover { background:#2c402e; }
#try-demo { width:100%; margin-top:7px; }
#listen-demo { width:100%; margin-bottom:7px; }
.source-actions { margin:7px 0 22px; display:flex; gap:6px; }
.source-actions button { gap:5px; justify-content:center; flex:1 1 0; border:1px solid var(--line); border-radius:6px; padding:7px 2px; font-size:12px; }
.source-actions svg { width:14px; height:14px; }
.small-label { margin:0 0 8px 2px; text-transform:uppercase; font:10px var(--mono); letter-spacing:.1em; color:var(--muted); }
.files { max-height:200px; overflow:auto; }
.file-item { display:flex; width:100%; align-items:center; gap:8px; padding:8px 5px; border-radius:5px; font-size:13px; text-align:left; }
.file-item[aria-pressed=true],.file-item.selected { background:#eef0e7; }
.file-item small,.file-meta { color:var(--muted); font:10px var(--mono); }
.library-foot { display:flex; gap:7px; align-items:center; padding:11px 15px; border-top:1px solid var(--line); color:var(--muted); font:11px var(--mono); margin-top:auto; }
.library-foot svg { width:14px; height:14px; }
.inspector { --monitor-height:232px; display:flex; flex-direction:column; align-self:start; }
.monitor-tabs { display:flex; gap:15px; padding:0 17px; border-bottom:1px solid var(--line); }
.monitor-tabs button { display:flex; gap:6px; align-items:center; padding:0 0; min-height:50px; border-bottom:2px solid transparent; font-size:13px; font-weight:560; color:var(--muted); }
.monitor-tabs button[aria-selected=true] { color:var(--ink); border-color:var(--accent); }
.monitor-tabs button svg { width:16px; height:16px; }
.wave-view { padding:13px 13px 0; display:flex; }
.monitor { flex:1; min-width:0; position:relative; overflow:hidden; border-radius:6px; color:#edeee3; background-color:#242c29; background-image:linear-gradient(0deg,#b6c5a809 1px,transparent 1px),linear-gradient(90deg,#b6c5a80a 1px,transparent 1px); background-size:24px 24px; height:var(--monitor-height); display:flex; flex-direction:column; padding:17px 17px 12px; }
.monitor-head,.monitor-scale { display:flex; align-items:center; justify-content:space-between; gap:9px; color:#abb3a6; font:9px var(--mono); letter-spacing:.09em; }
.monitor-tag { display:inline-flex; align-items:center; gap:7px; color:#cad4c2; }
.monitor-tag i { width:6px; height:6px; border-radius:2px; background:#b8c79e; }
.clock { font:clamp(36px,3.6vw,63px)/1 var(--mono); letter-spacing:-.085em; margin-top:16px; }
.clock small { font-size:.55em; letter-spacing:-.04em; color:#a8b0a1; }
.wave-hit { position:relative; cursor:crosshair; margin:4px 0; min-height:75px; flex:1; overflow:hidden; }
.wave-hit canvas { width:100%; height:100%; position:absolute; inset:0; display:block; }
#wave-cursor,.track-cursor { position:absolute; width:1px; top:0; bottom:0; pointer-events:none; }
#wave-cursor { background:#fff0cd99; }
.monitor-scale { font-size:9px; letter-spacing:0; }
.transport { min-height:59px; padding:0 16px; display:grid; align-items:center; grid-template-columns:1fr auto 1fr; }
.transport-time { color:#757f70; font:11px var(--mono); }
#time { color:var(--ink); }
.transport-keys,.edit-tools { display:flex; align-items:center; gap:5px; }
.icon-btn { width:30px; height:30px; border-radius:5px; display:inline-grid; place-items:center; }
.icon-btn svg { width:16px; height:16px; }
.play-btn { width:34px; height:34px; display:grid; place-items:center; background:#303a2e; color:#fff; border-radius:50%; }
.play-btn:hover:not(:disabled) { background:#53624c; }
.play-btn svg { width:15px; height:15px; fill:currentColor; }
.transport-end { justify-self:end; color:var(--muted); }
.text-view { padding:12px; height:calc(var(--monitor-height) + 13px); display:flex; flex-direction:column; min-height:0; }
.searchbox { display:flex; gap:7px; align-items:center; border:1px solid var(--line); border-radius:5px; padding:6px 9px; font-size:13px; }
.searchbox input { background:transparent; border:0; min-width:0; width:100%; }
.captions { overflow:auto; flex:1; }
.caption-row { border-bottom:1px solid var(--line); padding:9px 0; font-size:13px; }
/* The monitor and timeline size the grid rows. History scrolls inside their combined height. */
.panel.assistant { grid-column:3; grid-row:1 / 3; contain:size; min-height:0; display:flex; flex-direction:column; }
.assistant .panel-heading { gap:10px; }
.assistant-mark { color:#d45c32 !important; }
.chat-body { flex:1 1 0px; min-height:0; overflow-y:auto; overscroll-behavior-y:contain; padding:21px 16px 12px; }
.welcome p { font-size:13px; line-height:1.55; color:var(--muted); }
#quick-command { align-self:flex-start; margin:0 10px; min-height:32px; padding:6px 10px; font-size:12px; font-weight:500; background:#f2f4eb; }
#command-examples { margin:0 10px; border-top:1px solid var(--line); max-height:45%; overflow-y:auto; overscroll-behavior-y:contain; }
#command-examples summary { position:sticky; top:0; z-index:1; background:var(--panel); display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 4px; font-size:12px; font-weight:600; cursor:pointer; list-style:none; }
#command-examples summary::-webkit-details-marker { display:none; }
#command-examples summary svg { width:14px; height:14px; color:var(--muted); }
#command-examples[open] summary svg { transform:rotate(180deg); }
#cinema-demos { display:grid; gap:5px; margin:7px 0; }
#cinema-demos:empty { display:none; }
#cinema-demos button { display:flex; align-items:center; gap:8px; min-height:35px; text-align:left; padding:7px 9px; font-size:12px; font-weight:600; border:1px solid #d7baa2; border-radius:6px; background:#f8eadd; }
#cinema-demos button span { color:#935637; font-size:10px; }
#suggestions { display:grid; gap:5px; margin:7px 0 2px; }
#suggestions :is(button,a) { display:flex; align-items:center; gap:8px; background:#f7f7f2; border:1px solid var(--line); border-radius:6px; min-height:33px; text-align:left; padding:7px 9px; font-size:12px; }
#suggestions a { color:inherit; text-decoration:none; }
#suggestions :is(button,a) span:last-child { margin-left:auto; color:var(--muted); }
#suggestions svg { width:14px; height:14px; flex-shrink:0; }
#messages { display:grid; gap:10px; }
.assistant .panel-heading { display:flex; align-items:center; gap:8px; justify-content:space-between; }
.assistant .panel-heading h2 { display:flex; align-items:center; gap:8px; margin:0; font:inherit; }
#open-chat-history { font-size:11px; padding:4px 7px; }
.chat-speaker { display:block; margin-bottom:4px; color:#565c50; font-size:11px; }
#chat-history-dialog { width:min(610px,92vw); max-height:88dvh; padding:16px; }
#chat-history-dialog header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
#chat-history-dialog h2 { margin:0; font-size:19px; }
#history-messages { display:grid; gap:10px; max-height:66dvh; overflow-y:auto; overscroll-behavior:contain; padding:0 4px; }
.bubble { font-size:13px; line-height:1.5; overflow-wrap:anywhere; white-space:pre-line; padding:9px 11px; border-radius:8px; background:var(--soft); }
.bubble.user { margin-left:12%; background:#f6e7d9; }
.bubble a { color:#80512d; text-decoration:underline; }
.edit-result-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:9px; }
.edit-result-actions button { padding:5px 10px; min-height:32px; border:1px solid var(--line); border-radius:6px; background:white; color:inherit; font:inherit; cursor:pointer; }
.edit-result-actions button:disabled { opacity:.5; cursor:default; }
.composer { margin:10px; border:1px solid #b9c0b2; border-radius:8px; padding:9px; background:white; }
.composer:focus-within { border-color:#9a9e8e; }
#youtube-topic-reply { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:5px; font-size:12px; color:var(--muted); }
#video-range-options { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.composer textarea,.dialog-actions textarea { resize:vertical; border:0; outline:0; width:100%; padding:3px; font-size:13px; max-height:150px; min-height:40px; }
.compose-tools { display:flex; justify-content:space-between; align-items:center; }
.dictate { display:inline-flex; align-items:center; gap:4px; color:var(--muted); padding:4px; border-radius:4px; font-size:12px; }
.dictate svg { width:15px; height:15px; }
.send { width:30px; height:30px; display:grid; place-items:center; border-radius:6px; }
.timeline { grid-column:1 / 3; }
.timeline-head,.timeline-foot { display:flex; gap:10px; justify-content:space-between; align-items:center; }
.timeline-head { min-height:51px; padding:0 14px; border-bottom:1px solid var(--line); }
.edit-tools i { height:16px; width:1px; background:var(--line); margin:0 3px; }
.track-layout { display:grid; grid-template-columns:96px minmax(0,1fr); }
.track-names { border-right:1px solid var(--line); background:#f5f6ef; }
.track-names div { padding:0 12px; height:59px; display:flex; align-items:center; gap:7px; border-bottom:1px solid var(--line); font-size:12px; font-weight:550; }
.track-names div:last-child { height:calc(43px * var(--caption-rows,1)); }
.track-names .track-unit { height:27px; font:9px var(--mono); color:var(--muted); }
.track-names svg { width:14px; height:14px; }
.track-scroll { overflow-x:auto; }
#tracks { position:relative; min-width:100%; }
.ruler,.audio-track,.text-track { position:relative; border-bottom:1px solid var(--line); background-image:linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size:12.5% 100%; }
.ruler { height:27px; overflow:hidden; cursor:crosshair; font:10px var(--mono); color:var(--muted); background-color:#f7f8f3; }
.ruler > * { position:absolute; top:7px; }
.audio-track { height:59px; }
.text-track { height:calc(43px * var(--caption-rows,1)); }
.caption-lane { position:relative; height:43px; }
.audio-clip,.text-clip { position:absolute; overflow:hidden; border-radius:5px; text-align:left; white-space:nowrap; min-width:0; }
.clip-shell { position:absolute; top:5px; height:48px; container-type:inline-size; }
.clip-shell.is-selected,.clip-shell:focus-within { z-index:1; }
.clip-shell.is-resizing { z-index:2; }
.audio-clip { inset:0; width:100%; height:100%; border:1px solid #ba9776; background:#f4dbbf; font-size:11px; padding:3px min(13px,10%); }
.audio-clip.selected,.audio-clip[aria-pressed=true],.clip-shell.is-resizing .audio-clip { outline:2px solid #87432c; outline-offset:-2px; }
.clip-edge { position:absolute; top:0; bottom:0; width:min(12px,25%); display:grid; place-items:center; border-radius:4px; cursor:ew-resize; touch-action:none; user-select:none; }
.clip-edge[data-edge="left"] { left:0; }
.clip-edge[data-edge="right"] { right:0; }
.clip-edge::before { content:""; width:2px; height:15px; border-radius:2px; background:#625542; opacity:.45; }
.clip-shell:hover .clip-edge::before,.clip-shell.is-selected .clip-edge::before,.clip-edge:focus-visible::before { opacity:1; }
.clip-edge:hover,.clip-edge:focus-visible,.clip-shell.is-resizing .clip-edge:focus { background:#f8edd9; }
.clip-edge:focus-visible { outline-offset:-2px; }
.clip-edge[aria-disabled="true"] { opacity:.3; pointer-events:none; }
.clip-edge-room { position:absolute; top:0; width:1px; height:1px; pointer-events:none; }
.clip-edge-hint { position:fixed; z-index:20; max-width:calc(100vw - 12px); padding:5px 8px; border-radius:4px; background:#34392f; color:#fff; font:11px var(--mono); pointer-events:none; }
@media (pointer:coarse) { .clip-edge { width:min(22px,25%); } }
@container (max-width:32px) {
  .clip-edge { width:min(100%,16px); height:16px; }
  .clip-edge[data-edge="right"] { top:auto; }
  .clip-shell.is-selected .clip-edge,.clip-shell:focus-within .clip-edge { width:16px; }
  .clip-shell.at-start .clip-edge[data-edge="right"] { left:0; right:auto; }
  .clip-shell.at-end .clip-edge[data-edge="left"] { right:0; left:auto; }
  .clip-edge::before { height:9px; }
}
.text-clip { top:6px; padding:6px; height:28px; border:1px solid #c6ccae; background:#e9eddc; font-size:11px; text-overflow:ellipsis; }
.track-cursor { background:var(--accent); z-index:3; }
.track-cursor:before { content:""; position:absolute; width:9px; height:9px; background:var(--accent); top:0; left:-4px; clip-path:polygon(0 0,100% 0,100% 55%,50% 100%,0 55%); }
.timeline-foot { padding:9px 13px; min-height:36px; color:var(--muted); font:10px var(--mono); }
.timeline-foot label { display:inline-flex; align-items:center; gap:6px; }
.timeline-foot input { accent-color:#67755d; width:72px; }
.timeline-foot { flex-wrap:wrap; }
.timeline-foot label { margin-left:auto; }
.stem-button { display:inline-flex; align-items:center; gap:5px; border:1px solid var(--line); border-radius:5px; padding:5px 8px; color:var(--ink); background:var(--panel); font:12px/1.3 "Segoe UI",sans-serif; }
.stem-button svg { width:14px; height:14px; }
.track-layout.has-stems { grid-template-columns:154px minmax(0,1fr); }
.track-names .stem-label { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:2px; }
.stem-controls { display:flex; gap:4px; }
.stem-controls button { padding:2px 5px; border:1px solid var(--line); border-radius:4px; font-size:10px; line-height:1.25; }
.stem-controls button[aria-pressed=true] { background:#d8d9d2; }
.audio-track.lane-muted .audio-clip { opacity:.52; }
@media(max-width:540px) {
  .track-layout.has-stems { grid-template-columns:102px minmax(0,1fr); }
  .timeline-foot .stem-button { order:3; }
}
.work-status { padding:9px 1px; min-height:31px; color:#525f4b; font-size:13px; }
.work-status.error { color:#9d391c; }
.recording { color:#a42c14 !important; background:#fff0e8 !important; }
dialog { max-width:min(420px,92vw); width:100%; border:1px solid var(--line); border-radius:10px; padding:20px; background:var(--panel); }
dialog h2 { font-size:21px; margin:0 0 14px; }
dialog label { font-size:13px; }
dialog textarea { width:100%; margin:6px 0 15px; padding:8px; border:1px solid var(--line); }
dialog::backdrop { background:#15201965; }
.dialog-actions { display:flex; justify-content:flex-end; gap:8px; }
#continue-voice-dialog { max-height:88dvh; overflow:auto; }
#continue-voice-dialog p { margin:12px 0 5px; }
#continue-voice-dialog strong, #continue-voice-text { overflow-wrap:anywhere; }
#continue-voice-preview { width:100%; margin:7px 0; height:42px; }
#continue-voice-text { margin:0; padding:8px 12px; border-left:3px solid var(--line); white-space:pre-wrap; }
#continue-voice-dialog label { display:block; margin:16px 0; }
#voice-reference { display:block; width:100%; margin-top:4px; padding:6px; font:inherit; }
#dialogue-choices { margin:12px 0; border:1px solid var(--line); border-radius:8px; }
#dialogue-script, #dialogue-choices select, #change-voice-preset { width:100%; display:block; margin-top:4px; padding:6px; box-sizing:border-box; font:inherit; }
#dialogue-script { resize:vertical; min-height:6em; }
#dialogue-status { font-size:.88em; }
@media (min-width:1450px) { .inspector { --monitor-height:280px; } .chat-body { padding:23px; } }
@media (max-width:1000px) {
  .workspace { grid-template-columns: minmax(165px,.85fr) minmax(280px,1.7fr) minmax(220px,1fr); gap:8px; }
  .shell { padding-inline:12px; } .library-inner { padding-inline:9px; } .panel-heading { padding-inline:11px; }
  .chat-body { padding-inline:11px; } .monitor-tabs { gap:11px; padding-inline:12px; }
}
@media (max-width:800px) {
  .workspace { grid-template-columns: minmax(155px,.75fr) minmax(0,1.7fr); }
  .panel.assistant { grid-column:1/-1; grid-row:2; height:clamp(365px,60dvh,490px); }
  .panel.assistant:has(.welcome:not([hidden])):has(#command-examples:not([open])) { height:310px; }
  #suggestions { display:flex; flex-wrap:wrap; }
  .timeline { grid-column:1/-1; } .workspace-heading { padding:21px 0 17px; }
}
@media (max-width:720px) {
  .topbar .navline,.topbar .crumb,.topbar .current { display:none; }
}
@media (max-width:540px) {
  .topbar { height:auto; flex-wrap:wrap; gap:6px 8px; padding:8px 13px; }.brand { font-size:17px; }
  .top-account { order:1; flex-basis:100%; justify-content:space-between; }
  .tools-link { font-size:11px; } .top-status { font-size:11px; }
  .workspace-heading { align-items:flex-start; } h1 { font-size:29px; } .project-actions { gap:4px; } .project-actions .btn { font-size:12px; gap:4px; padding:6px; min-height:34px; }
  .project-actions .btn > [data-icon]:first-child { display:none; }
  .workspace { grid-template-columns:1fr; gap:10px; } .library,.inspector,.timeline,.panel.assistant { grid-column:1; grid-row:auto; }
  .library h2 { min-height:35px; } .library-inner { display:grid; grid-template-columns:1fr 1fr; padding:8px; gap:6px; align-items:center; }
  #try-demo, #listen-demo { margin:0; }
  .library-inner:has(:is(#try-demo, #listen-demo):not([hidden])) .source-actions { grid-column:1/-1; }
  .source-actions { margin:0; } .library .small-label,.library-foot { display:none; }
  .files { display:flex; gap:3px; overflow:auto; grid-column:1/-1; } .file-item { width:auto; flex-shrink:0; }
  .inspector { --monitor-height:200px; } .monitor-tabs button { min-height:42px; } .transport { min-height:49px; }
  .panel.assistant { grid-row:2; } .inspector { grid-row:3; } .timeline { grid-row:4; } .timeline-head { padding-inline:8px; } .timeline-head h2 { font-size:14px; }
  .edit-tools { gap:0; } .edit-tools .icon-btn { width:25px; } .track-layout { grid-template-columns:59px minmax(0,1fr); }
  .track-names div { padding:0 5px; gap:3px; font-size:10px; } .timeline-foot { font-size:9px; }
}
#play [data-icon=pause],#play[data-playing=true] [data-icon=play] { display:none; }
#play[data-playing=true] [data-icon=pause] { display:inline-flex; }
.file-info { flex:1; min-width:0; display:grid; gap:2px; }
.file-info strong,.clip-name { font-weight:560; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:block; }
.file-icon { display:flex; align-items:center; justify-content:center; gap:2px; height:32px; width:32px; padding:7px 4px; flex:none; border-radius:5px; background:#f2ddc6; color:#865a37; }
.file-icon i { width:2px; background:currentColor; }
.file-item[data-tone="1"] .file-icon { background:#e1e8d8; color:#5f7856; }
.file-item[data-tone="2"] .file-icon { background:#e9e2ef; color:#7e668d; }
.file-dot { width:5px; height:5px; border-radius:50%; }
.clip-wave { width:100%; height:22px; display:block; }
.audio-clip[data-tone="1"] { background:#dce8d8; border-color:#9db794; }
.audio-clip[data-tone="2"] { background:#e8e0ee; border-color:#b4a1bd; }
.ruler .tick { padding-left:4px; }
.caption-row { display:flex; align-items:center; gap:3px; }
.caption-track-name { margin:9px 0 0; color:var(--muted); font-size:11px; font-weight:600; }
.caption-main { display:flex; align-items:baseline; gap:8px; flex:1; text-align:left; font-size:12px; padding:3px 0; }
.caption-main time { font:10px var(--mono); color:var(--muted); }
.caption-actions { display:flex; }
.caption-actions button,.caption-retry { padding:4px 6px; border-radius:4px; font-size:13px; color:#4f664a; }
.caption-retry { border:1px solid var(--line); margin-left:auto; }
.empty-note { font-size:12px; line-height:1.45; padding:8px 3px; color:var(--muted); }
@media(max-width:540px) { .file-dot { display:none; } .file-icon { width:23px; height:24px; } .file-info { max-width:105px; } }
@media(max-width:540px) {
  .mobile-chat { display:block; margin-left:auto; font-size:12px; color:var(--focus); }
  .workspace-heading { display:grid; grid-template-columns:1fr; gap:10px; }
  .project-actions { justify-content:flex-start; }
  .project-actions .menu { left:0; right:auto; }
}
