:root{color-scheme:dark;--header:52px;--left:220px;--right:278px;--footer:26px;--bg:#292b2e;--side:#34363a;--surface:#3c3f43;--soft:#26282b;--hover:#484c51;--text:#eeece8;--secondary:#bfc2c5;--muted:#93989e;--border:#202225;--line:#51555b;--accent:#ff9848;--accent-hover:#ffb16f;--accent-soft:#ff98481b;--accent-line:#bd783f;--accent-ink:#222426;--wave:#9a9fa5;--wave-progress:#ff9848;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-synthesis:none}
:root[data-theme=light]{color-scheme:light;--bg:#bfc3c7;--side:#d0d3d7;--surface:#e2e4e6;--soft:#cbd0d4;--hover:#bec4ca;--text:#202428;--secondary:#4c535a;--muted:#626b74;--border:#969da4;--line:#b0b7be;--accent:#bb5a12;--accent-hover:#d76b1b;--accent-soft:#bb5a121a;--accent-line:#bd783f;--accent-ink:#fff;--wave:#707980;--wave-progress:#bf641d}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:13px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:inherit;text-decoration:none}button,input,select{accent-color:var(--accent)}button,a,select{transition:background .12s,color .12s,border-color .12s}button:disabled{opacity:.35;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[role=slider]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}[hidden]{display:none!important}input[type=checkbox]{width:15px;height:15px;cursor:pointer;vertical-align:middle;margin:0}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.icon{width:18px;height:18px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}h1,h2,p{margin:0}h1{font-size:18px;font-weight:600;letter-spacing:.3px}h2{font-size:13px;font-weight:600}.eyebrow{font-size:9px;letter-spacing:1.5px;color:var(--muted);font-weight:600}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;padding:6px 11px;border:1px solid var(--border);border-radius:3px;font-size:12px;font-weight:500;white-space:nowrap}.button .icon{width:15px;height:15px}.primary{background:var(--accent);color:var(--accent-ink);border-color:transparent;font-weight:650}.primary:hover:not(:disabled){background:var(--accent-hover)}.secondary{background:var(--surface)}.secondary:hover:not(:disabled){background:var(--hover);border-color:var(--line)}.compact{min-height:28px;padding:4px 8px;font-size:11px}.compact .icon{width:14px;height:14px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;padding:5px;background:transparent;border:1px solid transparent;border-radius:3px;color:var(--secondary)}.icon-button:hover:not(:disabled){background:var(--hover);color:var(--text);border-color:var(--line)}.icon-button .icon{width:16px;height:16px}.icon-button.small{width:24px;height:24px}.icon-button.small .icon{width:13px;height:13px}.icon-button[aria-pressed=true]{background:var(--accent);color:var(--accent-ink)}.text-button{border:0;background:none;padding:0;color:var(--secondary);font-size:inherit;line-height:1.6}.text-button:hover:not(:disabled){color:var(--accent)}
.topbar{position:fixed;inset:0 0 auto;height:var(--header);z-index:50;background:var(--side);border-bottom:2px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 12px;box-shadow:0 2px 6px #0002}.topbar-left,.topbar-right{display:flex;align-items:center;gap:8px;flex-shrink:0}.topbar-logo{height:25px;width:28px;object-fit:contain}.app-title{font-size:11px;letter-spacing:1px;margin-left:3px;color:var(--secondary)}.project-header{display:flex;align-items:center;gap:9px;min-width:0}.project-header>span{font-size:9px;letter-spacing:1px;color:var(--muted)}.project-header input{width:210px;min-width:50px;max-width:28vw;background:transparent;border:1px solid transparent;border-radius:3px;padding:4px 6px;font-size:12px;color:var(--text);font-weight:550;text-overflow:ellipsis}.project-header input:hover{border-color:var(--line)}.project-header input:focus{background:var(--soft);border-color:var(--accent)}.project-header small{font-size:9px;color:var(--muted);white-space:nowrap;min-width:40px}.project-header small.saving{color:var(--accent)}#export-sidebar-toggle[aria-expanded=true]{border-color:var(--accent-line);color:var(--accent)}.sidebar{position:fixed;inset:var(--header) auto var(--footer) 0;width:var(--left);z-index:35;background:var(--side);border-right:2px solid var(--border);padding:16px 11px 12px;display:flex;flex-direction:column;transition:transform .18s ease,visibility .18s ease}.brand{display:flex;gap:10px;align-items:center;padding:0 5px 15px}.brand-logo{width:39px;height:39px;object-fit:contain}.brand>span:not(.version){font-size:14px;font-weight:700;letter-spacing:1px;line-height:1.15}.brand small{display:block;font-size:7px;letter-spacing:1.5px;font-weight:500;color:var(--muted);margin-top:5px}.version{font-size:9px;color:var(--muted);margin-left:auto;border:1px solid var(--line);padding:0 4px;align-self:center}.new-project{display:flex;align-items:center;gap:9px;min-height:34px;border:1px solid var(--accent-line);border-radius:3px;background:var(--accent-soft);color:var(--text);padding:8px 10px;text-align:left;font-size:12px}.new-project .icon{color:var(--accent);width:16px;height:16px}.new-project:hover{background:var(--hover)}.key-hint{margin-left:auto;font-size:9px;color:var(--muted)}.nav-label{font-size:9px;color:var(--muted);letter-spacing:.8px;margin:22px 0 8px;padding:0 8px;font-weight:600}.nav-item{width:100%;border:1px solid transparent;background:none;text-align:left;display:flex;align-items:center;gap:9px;padding:7px 9px;font-size:11px;color:var(--secondary);border-radius:2px;margin-bottom:2px}.nav-item .icon{width:15px;height:15px}.nav-item:hover{background:var(--hover);border-color:var(--line)}.sidebar-project{display:flex;align-items:center;gap:9px;background:var(--soft);border:1px solid var(--border);padding:9px;color:var(--accent)}.sidebar-project .icon{width:15px;height:15px}.sidebar-project div{min-width:0}.sidebar-project strong{display:block;font-size:11px;color:var(--text);font-weight:550;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sidebar-project span{display:block;font-size:9px;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:153px}.project-list{overflow:auto;min-height:50px;flex:1;scrollbar-width:thin;scrollbar-color:var(--line) transparent}.project-item{display:block;width:100%;background:none;border:1px solid transparent;border-left:3px solid transparent;border-radius:2px;padding:8px 8px 8px 9px;text-align:left;margin-bottom:3px}.project-item:hover{background:var(--hover)}.project-item.active{background:var(--accent-soft);border-left-color:var(--accent)}.project-item strong{display:block;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-item small{display:block;font-size:9px;color:var(--muted);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-bottom{margin-top:auto;padding-top:14px}.privacy-note{display:flex;gap:8px;border-top:1px solid var(--line);padding:12px 6px;color:var(--muted)}.privacy-note .icon{width:13px;height:13px;margin-top:2px}.privacy-note strong{font-size:9px;font-weight:500}.privacy-note p{font-size:9px;line-height:1.6;margin-top:4px}.theme-toggle{display:flex;align-items:center;gap:9px;background:none;border:0;width:100%;font-size:10px;padding:6px;color:var(--secondary)}.theme-toggle .icon{width:14px;height:14px}
main{margin-left:var(--left);margin-right:var(--right);padding-top:var(--header);min-height:100vh;transition:margin .18s ease}.workspace{padding:20px 18px 44px;max-width:none;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.page-heading>div:first-child{display:flex;align-items:baseline;gap:13px;flex-wrap:wrap}.workspace-actions{display:flex;align-items:center;gap:14px}.local-status{display:flex;align-items:center;gap:6px;font-size:8px;font-weight:600;letter-spacing:1px;color:var(--muted);white-space:nowrap}.local-status i{width:4px;height:4px;background:var(--accent);border-radius:50%}.editor-grid{display:block}.editing-column{min-width:0}.card{border:1px solid var(--border);border-radius:3px;background:var(--surface);box-shadow:0 1px 0 #ffffff08;overflow:hidden}.card-heading{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--border)}.card-heading h2{display:flex;align-items:center;gap:7px}.card-heading p{font-size:10px;color:var(--muted);margin-top:3px}.history-actions{display:flex;gap:2px}.badge,.count-pill{display:inline-block;background:var(--soft);border:1px solid var(--line);border-radius:2px;font-size:9px;font-weight:500;line-height:17px;padding:0 5px;color:var(--secondary);white-space:nowrap}.badge:not(.muted){color:var(--accent);border-color:var(--accent-line);background:var(--accent-soft)}.count-pill{min-width:21px;text-align:center}.dropzone{display:flex;align-items:center;gap:15px;background:var(--soft);border:1px dashed var(--line);border-radius:3px;min-height:90px;padding:19px;margin-bottom:15px}.drop-icon{width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--line);background:var(--side);color:var(--accent);border-radius:3px}.drop-icon .icon{width:23px;height:23px}.drop-copy{flex:1}.drop-copy h2{font-size:13px;margin-bottom:5px}.drop-copy p{font-size:10px;color:var(--muted)}.demo-button{font-size:10px;white-space:nowrap}.loading-indicator{display:grid;place-items:center;min-width:50px}.spinner{width:19px;height:19px;border-radius:50%;border:2px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.file-strip{display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid var(--border);background:var(--side);border-radius:3px;margin-bottom:15px}.file-symbol{display:grid;place-items:center;width:30px;height:32px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent-line)}.file-description{min-width:0;flex:1}.file-description strong{display:block;font-size:11px;font-weight:550;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.file-description span{font-size:9px;color:var(--muted)}
.wave-surface{height:clamp(250px,36vh,410px);position:relative;background:var(--soft);border-bottom:1px solid var(--border);isolation:isolate;overflow:hidden}.wave-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:25px;pointer-events:none;z-index:2;background:var(--soft)}.wave-placeholder svg{width:76%;max-width:540px;height:75px;stroke:var(--wave);stroke-width:2;stroke-linecap:round;opacity:.35}.wave-placeholder span{font-size:10px;color:var(--muted);letter-spacing:.5px}#timeline{position:relative;height:27px;border-bottom:1px solid var(--line);overflow:hidden;background:var(--side);pointer-events:none}#timeline span{position:absolute;top:6px;font-size:9px;color:var(--secondary);font-variant-numeric:tabular-nums;white-space:nowrap}#timeline span:after{content:"";position:absolute;width:1px;height:6px;background:var(--line);top:15px;left:0}#waveform{position:relative;height:calc(100% - 27px);background-image:linear-gradient(to right,#ffffff04 1px,transparent 1px),linear-gradient(to bottom,#ffffff04 1px,transparent 1px);background-size:70px 100%,100% 25%}#waveform ::part(scroll){scrollbar-width:thin;scrollbar-color:var(--line) var(--soft)}#waveform ::part(region){border:1px solid var(--accent);border-radius:1px;overflow:visible!important}#waveform ::part(region-content){font-size:9px;background:var(--accent);color:var(--accent-ink);padding:1px 5px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;margin-left:2px;pointer-events:none;max-height:19px;font-weight:600}#waveform ::part(region-handle){width:8px!important;border-color:var(--accent)!important}#waveform ::part(region-handle-left):after,#waveform ::part(region-handle-right):after{content:"";position:absolute;top:43%;height:25px;width:3px;background:var(--accent)}#waveform ::part(region-handle-left):after{left:-2px}#waveform ::part(region-handle-right):after{right:-2px}.overview{height:31px;position:relative;overflow:hidden;background:var(--soft);border-bottom:1px solid var(--border)}#minimap-interact{position:absolute;inset:0;z-index:10;cursor:grab;touch-action:none}#minimap-interact:active{cursor:grabbing}.transport{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;background:var(--side);border-bottom:1px solid var(--border)}.play-controls,.transport-right{display:flex;align-items:center;gap:10px}.play-button{display:grid;place-items:center;width:34px;height:30px;border:1px solid var(--border);border-radius:2px;background:var(--soft);color:var(--text)}.play-button .icon{width:14px;height:14px;fill:currentColor;stroke-width:1.8}.play-button.is-playing{background:var(--accent);color:var(--accent-ink)}.play-button.is-playing .icon{fill:none;stroke-width:3}.play-button:hover:not(:disabled){border-color:var(--accent)}.time-display{display:flex;align-items:baseline;gap:9px;font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:var(--muted);font-size:11px}.time-display strong{color:var(--text);font-weight:500;font-size:14px}.volume-control{display:flex;align-items:center;gap:8px;color:var(--muted)}.volume-control .icon{width:15px;height:15px}.volume-control input{width:64px}input[type=range]{appearance:none;height:3px;border:0;background:var(--line);border-radius:0;cursor:pointer;margin:0;vertical-align:middle}input[type=range]::-webkit-slider-thumb{appearance:none;width:8px;height:12px;border-radius:1px;background:var(--accent)}input[type=range]::-moz-range-thumb{width:8px;height:12px;border:0;border-radius:1px;background:var(--accent)}.waveform-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;color:var(--muted);font-size:9px;background:var(--side)}.waveform-footer>span{display:flex;align-items:center;gap:6px}.hint-dot{width:4px;height:4px;background:var(--accent);flex-shrink:0}.zoom-controls{display:flex;align-items:center;gap:7px}.zoom-controls input{width:80px}
.clips-card{margin-top:15px}.clip-tools{display:flex;gap:6px;align-items:center;flex-shrink:0}.clips-empty{padding:29px 15px;display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center}.empty-scissors{color:var(--muted);margin-bottom:2px}.empty-scissors .icon{width:23px;height:23px}.clips-empty strong{font-size:12px;font-weight:500}.clips-empty p{font-size:11px;color:var(--muted)}.clip-table-wrap{overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}table{width:100%;border-collapse:collapse;table-layout:fixed;min-width:510px}th{font-size:10px;font-weight:500;text-align:left;color:var(--muted);background:var(--side);padding:8px 7px;border-bottom:1px solid var(--border);white-space:nowrap}th span{font-size:8px;margin-left:3px;color:var(--muted)}.check-cell{width:37px;padding-left:13px}th:nth-child(3),th:nth-child(4){width:87px}th:nth-child(5){width:74px}th:nth-child(6){width:71px}td{padding:7px;border-bottom:1px solid var(--border);font-size:11px;font-variant-numeric:tabular-nums}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--hover)}tbody tr.selected-row{background:var(--accent-soft)}td input[type=text],td input[type=number]{width:100%;min-width:0;background:transparent;border:1px solid transparent;border-radius:2px;padding:5px 4px;color:var(--text);font-size:11px;outline:none}td input[type=number]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;appearance:textfield}td input[type=number]::-webkit-inner-spin-button{appearance:none}td input:hover{border-color:var(--line)}td input:focus{background:var(--soft);border-color:var(--accent)}.clip-duration{font-size:10px;color:var(--secondary);white-space:nowrap}.clip-actions{display:flex;gap:1px;justify-content:flex-end}.clip-actions .icon-button{width:25px;height:26px}.clip-actions .icon{width:13px;height:13px}.clip-actions .delete-clip:hover{color:#ff8d80}.actions-heading{text-align:right;padding-right:16px}.clips-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding:8px 13px;font-size:10px;color:var(--muted);background:var(--side)}.keyboard-tips{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:9px;color:var(--muted);padding:12px 2px}.keyboard-tips>span{display:flex;align-items:center;gap:5px}kbd{font-family:inherit;font-size:8px;line-height:1.8;border:1px solid var(--line);border-radius:2px;padding:0 4px;background:var(--soft);color:var(--secondary)}.keyboard-tips .text-button{margin-left:auto;font-size:9px}
.export-panel{position:fixed;inset:var(--header) 0 var(--footer) auto;width:var(--right);overflow-y:auto;overflow-x:hidden;z-index:35;border:0;border-left:2px solid var(--border);border-radius:0;background:var(--side);padding:18px 16px;scrollbar-width:thin;scrollbar-color:var(--line) transparent;transition:transform .18s ease,visibility .18s ease}.export-title{display:flex;align-items:center;gap:8px}.export-title h2{font-size:13px}.export-title>.icon-button{margin-left:auto}.export-symbol{color:var(--accent);display:grid;place-items:center}.export-symbol .icon{width:15px;height:15px}.panel-description{font-size:10px;color:var(--muted);margin:8px 0 21px}.format-field{border:0;margin:0;padding:0}.format-field legend,.field>span{font-size:11px;font-weight:500;color:var(--secondary);display:block;margin-bottom:7px}.format-options{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.format-choice{position:relative;cursor:pointer}.format-choice input{position:absolute;opacity:0;width:1px;height:1px}.format-choice>span{display:flex;align-items:center;flex-direction:column;padding:11px 4px 8px;border:1px solid var(--border);border-radius:2px;background:var(--surface)}.format-choice strong{font-size:12px;font-weight:600;letter-spacing:.5px}.format-choice small{font-size:9px;color:var(--muted);margin-top:2px}.format-choice:has(input:checked)>span{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.format-choice input:checked+span small{color:var(--accent-ink);opacity:.8}.format-choice input:focus-visible+span{outline:2px solid var(--text);outline-offset:2px}.format-description{font-size:10px;color:var(--muted);line-height:1.7;min-height:38px;margin:10px 0 4px}.field{display:block;margin-top:17px}.field select,.field input{display:block;width:100%;background:var(--soft);border:1px solid var(--border);border-radius:2px;min-height:33px;padding:7px 9px;color:var(--text);font-size:11px}.field select{cursor:pointer;padding-right:22px}.field input:focus{border-color:var(--accent);outline:none}.optional-label{font-size:9px;font-weight:400;color:var(--muted);margin-left:4px}.export-divider{border-top:1px solid var(--line);margin:23px 0 17px}.export-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;font-size:10px}.export-summary>span{color:var(--muted)}.export-summary strong{text-align:right;font-weight:500;font-variant-numeric:tabular-nums}.export-button{width:100%;min-height:35px;margin-top:21px;font-size:12px}.export-footnote{font-size:9px;text-align:center;color:var(--muted);margin-top:10px;line-height:1.7}.export-progress{margin-top:19px;font-size:10px}.export-progress>div{display:flex;align-items:center;justify-content:space-between;gap:6px}.export-progress strong{color:var(--accent);font-size:10px;font-weight:500}progress{width:100%;height:5px;appearance:none;border:0;background:var(--soft);margin:8px 0;border-radius:0}progress::-webkit-progress-bar{background:var(--soft)}progress::-webkit-progress-value{background:var(--accent)}progress::-moz-progress-bar{background:var(--accent)}.export-progress .text-button{display:block;margin-left:auto;font-size:10px}.export-result{background:var(--soft);border:1px solid var(--line);border-left:2px solid var(--accent);padding:10px;font-size:10px;margin-top:17px}.export-result a{display:block;color:var(--accent);text-decoration:underline;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.page-footer{position:fixed;inset:auto 0 0;height:var(--footer);z-index:45;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px;background:var(--side);border-top:1px solid var(--border);font-size:9px;color:var(--muted);letter-spacing:.4px}
:root[data-sidebar=collapsed] .sidebar{transform:translateX(-100%);visibility:hidden;pointer-events:none}:root[data-sidebar=collapsed] main{margin-left:0}:root[data-sidebar=collapsed] #sidebar-toggle .icon{transform:scaleX(-1)}:root[data-export-sidebar=collapsed] .export-panel{transform:translateX(100%);visibility:hidden;pointer-events:none}:root[data-export-sidebar=collapsed] main{margin-right:0}.panel-scrim{display:none}.toast{position:fixed;bottom:40px;left:50%;transform:translateX(-50%);background:var(--text);color:var(--bg);border:1px solid var(--border);border-radius:3px;padding:10px 16px;font-size:12px;z-index:100;max-width:calc(100vw - 30px);text-align:center;box-shadow:0 5px 22px #0004}.toast.error{background:#903f36;color:#fff}.error-banner{font-size:12px;line-height:1.6;color:#ffb3a4;border:1px solid #b86d5a;background:#b86d5a15;padding:10px 12px;margin:0 0 14px;border-radius:2px;overflow-wrap:anywhere}.drag-overlay{position:fixed;inset:8px;border:2px dashed var(--accent);background:var(--soft);opacity:.96;z-index:80;display:grid;place-items:center;text-align:center;pointer-events:none}.drag-overlay .icon{width:38px;height:38px;color:var(--accent);margin-bottom:18px}.drag-overlay h2{font-size:23px}.drag-overlay p{font-size:12px;color:var(--muted);margin-top:7px}
dialog{width:calc(100% - 30px);max-width:520px;max-height:calc(100vh - 40px);overflow:auto;border:1px solid var(--line);border-top:3px solid var(--accent);border-radius:4px;background:var(--side);color:var(--text);padding:23px;box-shadow:0 22px 90px #0008}dialog::backdrop{background:#0008;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-heading h2{font-size:18px;font-weight:550;margin-top:4px}.dialog-description{font-size:11px;color:var(--muted);line-height:1.8;margin-top:16px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.dialog-actions .button{min-width:76px}.form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:11px}.rename-preview{border:1px solid var(--border);background:var(--soft);padding:13px;margin-top:20px}.rename-preview>span{font-size:10px;color:var(--muted)}.rename-preview ol{padding:0;margin:10px 0 0;list-style:none}.rename-preview li{font-size:12px;font-family:ui-monospace,SFMono-Regular,Consolas,"Microsoft YaHei",monospace;padding:4px 0;color:var(--accent);overflow-wrap:anywhere}.rename-preview p{font-size:10px;color:var(--muted);margin-top:6px}.form-error{font-size:11px;color:#ffb3a4;margin-top:12px}.guide-steps{padding-left:20px;font-size:12px;margin:23px 0}.guide-steps li{padding-left:5px;margin-bottom:16px}.guide-steps li::marker{color:var(--accent)}.guide-steps strong{font-weight:550}.guide-steps p{color:var(--secondary);font-size:11px;line-height:1.7;margin-top:4px}.shortcut-list{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:10px;border-top:1px solid var(--line);padding-top:16px;color:var(--secondary)}.shortcut-list kbd{text-align:center;font-size:9px}.guide-note{font-size:10px;color:var(--muted);line-height:1.7;margin-top:18px}
@media(min-width:1650px){:root{--left:238px;--right:294px}.workspace{padding:24px 25px 46px}.wave-surface{height:42vh;max-height:520px}.card-heading{padding:15px 18px}.field select{font-size:12px}.project-header input{width:260px}}
@media(max-width:1160px){:root{--left:195px;--right:252px}.app-title{display:none}.topbar{gap:8px}.topbar-left,.topbar-right{gap:5px}.project-header{gap:5px}.project-header input{width:170px}.project-header>span{display:none}.workspace{padding-left:12px;padding-right:12px}.page-heading .eyebrow{display:none}.local-status{display:none}.card-heading{padding:11px}.card-heading p{font-size:9px}.clip-tools .button{font-size:10px;gap:4px;padding:4px 6px}.export-panel{padding:15px 13px}.sidebar{padding-left:8px;padding-right:8px}.brand>span:not(.version){font-size:12px}.brand small{font-size:6px}.brand-logo{width:34px;height:34px}.volume-control input{width:45px}.waveform-footer{font-size:8px}.zoom-controls{gap:3px}.zoom-controls input{width:58px}}
@media(max-width:900px){:root{--left:235px;--right:278px}:root main{margin-left:0;margin-right:0}.sidebar,.export-panel{box-shadow:0 8px 30px #0005}.sidebar{z-index:42}.export-panel{z-index:42}.panel-scrim{position:fixed;inset:var(--header) 0 var(--footer);z-index:40;display:block;background:#0006;border:0}.topbar{padding:0 10px}.project-header input{width:160px;max-width:30vw}.project-header small{display:none}.workspace{padding:18px 15px 40px}.page-heading .eyebrow{display:inline}.local-status{display:flex}.card-heading p{font-size:10px}.clip-tools .button{font-size:11px;padding:4px 8px}.waveform-footer{font-size:9px}.zoom-controls input{width:75px}.volume-control input{width:60px}.export-panel .field select{font-size:12px}.export-summary{font-size:11px}.sidebar .brand>span:not(.version){font-size:14px}.sidebar .brand small{font-size:7px}}
@media(max-width:560px){:root{--header:48px;--footer:24px}.topbar{gap:5px;padding:0 7px}.topbar-left{gap:3px}.topbar-logo{width:22px;height:23px}.topbar .icon-button{width:26px;height:27px}.project-header input{width:110px;max-width:29vw;font-size:11px;padding-left:3px;padding-right:3px}.topbar-right{gap:3px}.topbar-right .button{padding:4px 5px;min-height:27px}.topbar-right .button span,#help-button{display:none}.topbar-right .button .icon{width:15px;height:15px}.workspace{padding:14px 10px 36px}.page-heading{margin-bottom:12px}.page-heading>div:first-child{gap:7px}.page-heading h1{font-size:16px}.page-heading .eyebrow{font-size:7px;letter-spacing:1px}.page-heading .button{font-size:10px;padding:5px 8px;min-height:29px}.workspace-actions{gap:0}.local-status{display:none}.dropzone{padding:15px 13px;gap:10px;flex-wrap:wrap;min-height:118px;margin-bottom:12px}.drop-icon{width:32px;height:34px}.drop-copy{flex:1;min-width:calc(100% - 50px)}.drop-copy h2{font-size:12px}.drop-copy p{font-size:9px}.dropzone .demo-button{margin-left:42px}.dropzone .primary{margin-left:auto;font-size:10px;min-height:28px}.file-strip{padding:8px;gap:8px;margin-bottom:12px}.file-description strong{font-size:10px}.file-description span{font-size:8px}.file-strip .badge{display:none}.file-symbol{width:27px;height:29px}.card-heading{padding:10px;gap:6px}.card-heading h2{font-size:12px}.card-heading p{font-size:8px}.history-actions .icon-button{width:25px}.wave-surface{height:270px;min-height:0}.transport{padding:9px 7px;gap:6px}.play-controls{gap:5px}.transport .icon-button{width:24px}.time-display{gap:5px;font-size:9px}.time-display strong{font-size:11px}.volume-control{display:none}.waveform-footer{padding:5px 8px;font-size:8px;gap:6px}.waveform-footer>span{max-width:calc(100% - 130px)}.zoom-controls input{width:43px}.zoom-controls{gap:0}.clips-card{margin-top:12px}.clips-card .card-heading{align-items:flex-start;flex-wrap:wrap}.clip-tools{gap:5px;margin-left:auto}.clip-tools .button{font-size:9px;padding:3px 5px;min-height:26px}.clip-tools .icon{width:12px;height:12px}.clips-empty{padding:25px 12px}.clips-empty p{font-size:10px}.keyboard-tips{gap:9px;font-size:8px}.keyboard-tips>span:nth-child(2){display:none}.keyboard-tips .text-button{font-size:8px}.page-footer{font-size:7px;padding:0 8px;letter-spacing:0}.export-panel{padding:16px}.form-grid{grid-template-columns:1fr 1fr}.form-grid .field:last-child{grid-column:1/-1}.form-grid .field:last-child select{max-width:none}.toast{font-size:11px}.dialog-heading h2{font-size:17px}dialog{padding:20px}.shortcut-list{font-size:9px}.shortcut-list kbd{font-size:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}.spinner{animation-duration:1.5s}}
:root[data-project-busy=true] .editing-column{pointer-events:none;opacity:.6}

.history-actions{align-items:center}
.workspace-intro{margin:-6px 0 14px;color:var(--secondary);font-size:12px}
.quick-guide{margin-top:20px;padding:12px 2px 0;border-top:1px solid var(--line);color:var(--secondary);font-size:12px}
.quick-guide h2{margin:0 0 5px;color:var(--text);font-size:13px}
.quick-guide p{margin:4px 0}
#session-status{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.visitor-counter{display:flex;align-items:center;gap:7px;margin-left:auto;white-space:nowrap;font-family:ui-monospace,monospace}
.visitor-counter img{display:block;object-fit:contain}
.footer-version{white-space:nowrap}
#btn-auto-split{margin-right:5px}
.author-cat{
  position:fixed;right:8px;bottom:calc(var(--footer) + 4px);z-index:70;
  width:clamp(95px,10vw,146px);pointer-events:none;
  transform:translateX(var(--cat-dock-offset,0px));transition:transform .32s cubic-bezier(.2,.7,.25,1);
}
.cat-figure{position:relative;display:block;transform-origin:49% 30%;transition:transform .25s ease,opacity .25s ease}
.cat-art{position:relative;display:block;transform-origin:50% 77%;animation:cutter-cat-idle 4.5s ease-in-out infinite}
.cat-figure img{
  position:relative;display:block;width:100%;height:auto;
  clip-path:inset(22% 32% 19% 26%);pointer-events:auto;cursor:grab;touch-action:none;
}
.cat-tail{
  position:absolute;right:5%;bottom:36%;width:44%;height:auto;
  transform-origin:6% 72%;animation:cutter-tail-sway 4.2s ease-in-out infinite;
}
.cat-controls{position:absolute;top:0;right:4px;z-index:1;display:flex;gap:3px;transition:opacity .2s ease}
.cat-hint,.cat-dock-button,.cat-edge-tab{
  border:1px solid var(--accent-line);border-radius:5px 5px 5px 2px;
  background:var(--side);color:var(--text);pointer-events:auto;
}
.cat-hint{display:grid;grid-auto-flow:column;align-items:center;gap:3px;padding:4px 6px;white-space:nowrap;font-size:11px;font-weight:600}
.cat-dock-button{display:grid;place-items:center;width:28px;min-height:28px;padding:0}
.cat-dock-button .icon{width:14px;height:14px}
.cat-hint span{color:var(--accent)}
.cat-hint:hover,.cat-dock-button:hover,.cat-edge-tab:hover{background:var(--hover);border-color:var(--accent)}
.author-cat.is-listening .cat-art{animation:cutter-cat-bop 1.05s ease-in-out infinite}
.author-cat.is-dragging .cat-figure{transform:translateY(8px) rotate(var(--cat-tilt,0deg)) scale(.96,1.1);transition-duration:.12s}
.author-cat.is-dragging .cat-art{animation:none}
.author-cat.is-dragging img{cursor:grabbing}
.author-cat.is-listening:not(.is-dragging):not([data-dock]) .cat-figure::after{
  content:"♫";position:absolute;top:34%;right:14%;color:var(--accent);font-size:16px;
  animation:cutter-cat-note 2.1s ease-out infinite;
}
.cat-edge-tab{
  position:absolute;right:0;bottom:18%;display:flex;align-items:center;justify-content:center;
  gap:2px;min-width:38px;min-height:36px;padding:2px 4px;visibility:hidden;opacity:0;
  transition:opacity .25s ease;box-shadow:0 2px 8px #0004;
}
.cat-edge-tab:focus-visible{outline-offset:-3px}
.cat-edge-tab span{color:var(--accent)}
.author-cat[data-dock=left]{--cat-dock-direction:-1}
.author-cat[data-dock=right]{--cat-dock-direction:1}
.author-cat[data-edge=left] .cat-edge-tab{left:0;right:auto;flex-direction:row-reverse}
.author-cat[data-edge=left] .cat-edge-tab span{transform:scaleX(-1)}
.author-cat[data-dock] .cat-figure{transform:translateX(calc(var(--cat-dock-direction) * 75%)) scale(.72);opacity:0}
.author-cat[data-dock] .cat-controls{opacity:0}
.author-cat[data-dock] .cat-edge-tab{visibility:visible;opacity:1}
.author-cat[data-dock] .cat-art,.author-cat[data-dock] .cat-tail{animation-play-state:paused}
:root[data-focus-active=true] .author-cat{display:none}
@media(min-width:901px){
  :root[data-export-sidebar=expanded] .author-cat{right:calc(var(--right) + 8px)}
}
@media(max-width:560px){
  .workspace-intro{margin-top:-3px;font-size:11px}
  .visitor-counter img{width:83px;height:18px}
  .visitor-counter + .footer-version{display:none}
  #btn-auto-split{gap:4px;padding-inline:6px;font-size:10px}
  #btn-auto-split .icon{width:12px;height:12px}
}
@media(prefers-reduced-motion:reduce){
  .cat-art,.cat-tail,.author-cat.is-listening .cat-figure::after{animation:none!important}
  .author-cat.is-dragging .cat-figure{transform:none}
}
@keyframes cutter-tail-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(4.5deg)}}
@keyframes cutter-cat-idle{0%,100%{transform:none}45%{transform:translateY(-3px) scale(1.015,1.035)}70%{transform:rotate(1deg)}}
@keyframes cutter-cat-bop{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes cutter-cat-note{0%{transform:translateY(8px);opacity:0}30%{opacity:1}100%{transform:translateY(-22px);opacity:0}}

/* Project deletion remains visible for mouse, keyboard and touch users. */
.project-row{position:relative;margin-bottom:3px}.project-row .project-item{margin-bottom:0;padding-right:38px;min-height:51px}.project-delete.icon-button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:30px;height:30px;color:var(--muted)}.project-delete.icon-button:hover:not(:disabled),.project-delete.icon-button:focus-visible{color:#fff;background:#a94438;border-color:#cf776b}.button.danger{background:#ad4438;border-color:#c5685c;color:#fff}.button.danger:hover:not(:disabled){background:#c45447}.delete-project-name{margin-top:20px;padding:12px;background:var(--soft);border:1px solid var(--line);font-size:14px;font-weight:600;overflow-wrap:anywhere}
