:root{color-scheme:light;--bg:#f5f7fb;--panel:#ffffff;--line:#dfe6ef;--text:#182942;--muted:#607087;--accent:#315ed5;--deep:#eaf0ff;--route-low:#eef3fa;--route-high:#4d7ce4;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,a,input{touch-action:manipulation}button{font:inherit;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{border:0}a{color:inherit;text-decoration:none}.topbar{height:82px;margin:0 5%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;gap:12px;align-items:center;font-size:24px;font-weight:700;letter-spacing:.03em}.brand-mark{font-size:36px;line-height:1;color:var(--accent);transform:rotate(90deg)}.brand-note{font-size:12px;letter-spacing:.15em;color:var(--muted);font-weight:500;border-left:1px solid var(--line);padding-left:14px}.privacy{font-size:13px;color:var(--muted)}main{max-width:1380px;margin:auto;padding:48px 5% 24px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:34px;gap:24px}.eyebrow{font-size:12px;letter-spacing:.18em;color:var(--accent);margin:0 0 16px}h1{font-size:clamp(27px,2.75vw,40px);font-weight:550;letter-spacing:-.03em;margin:0 0 14px;line-height:1.4}h1 span{color:var(--accent)}.intro-note,.section-description{color:var(--muted);font-size:14px;line-height:1.7;margin:0}.model-badge{display:flex;flex-direction:column;gap:10px;border-left:1px solid var(--line);padding:10px 0 10px 28px;white-space:nowrap}.badge-label{color:var(--accent);font-size:12px;letter-spacing:.12em}.model-badge strong{font-size:24px;font-weight:500}.model-badge small{font-size:13px;color:var(--muted)}.model-badge>span:last-child{font-size:12px;color:var(--muted)}.workspace{display:grid;grid-template-columns:.9fr 1.1fr;gap:22px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 4px 20px #203b6205}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}h2{font-size:18px;font-weight:550;margin:0;display:flex;align-items:center;gap:12px}.step{font-size:12px;letter-spacing:.08em;color:var(--muted)}.muted{color:var(--muted);font-size:12px}.tabs{display:flex;background:#f0f3f9;padding:5px;gap:3px;border-radius:9px;margin-bottom:20px}.tabs button{flex:1;background:none;color:var(--muted);font-size:14px;padding:11px 5px;border-radius:6px}.tabs button[aria-selected=true]{background:#ffffff;color:var(--accent)}.demo-card{padding:19px;border:1px solid #d8e3f9;border-radius:10px;background:linear-gradient(130deg,#f1f5ff,#f8faff);margin-bottom:18px}.demo-top{display:flex;justify-content:space-between;gap:8px;align-items:center}.demo-top strong{font-size:16px;font-weight:550}.demo-card p{font-size:14px;line-height:1.7;color:#526580;margin:10px 0}.chip,.tag{font-size:12px;border:1px solid #cddbf4;color:var(--accent);border-radius:5px;padding:4px 7px;white-space:nowrap}.sample-meta{font-size:12px;color:var(--muted)}.primary{display:flex;align-items:center;justify-content:space-between;flex:1;padding:15px 19px;border-radius:9px;background:var(--accent);color:#ffffff;font-weight:650}.primary span{font-size:21px}.secondary{padding:9px 13px;border-radius:7px;background:#f6f8fc;color:#344969;font-size:14px;border:1px solid #d9e2ef}.action-row{display:flex;gap:10px;margin-top:22px}#status{font-size:13px;color:var(--muted);margin-top:15px;line-height:1.6;min-height:21px}progress{width:100%;height:5px;accent-color:var(--accent);margin-top:10px}.error{font-size:14px;line-height:1.6;padding:12px;border-radius:8px;background:#fff1f2;color:#a52c40}.hint{font-size:12px;color:var(--muted);line-height:1.6}#selection-area{margin:12px 0}#selection-area label{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--accent);height:24px}.section-description{margin-bottom:18px}.routing-grid{display:grid;grid-template-columns:55px repeat(var(--expert-count,12),minmax(26px,1fr));gap:5px;margin:16px 0}.grid-heading{font-size:12px;text-align:center;color:var(--muted);padding:3px 0 8px}.row-heading{font-size:12px;color:var(--muted);display:flex;align-items:center}.route-cell{height:20px;background:#eef3fa;border-radius:3px;border:1px solid transparent;position:relative;padding:0}.route-cell.selected{border-color:var(--accent)}.route-cell.selected:after{content:"";width:4px;height:4px;background:#315ed5;border-radius:50%;position:absolute;top:6px;left:calc(50% - 2px)}.route-cell.active{outline:2px solid var(--text);outline-offset:1px}.legend{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.legend-gradient{height:6px;width:60px;border-radius:2px;background:linear-gradient(90deg,var(--route-low),var(--route-high))}.selected-legend{margin-left:auto}.route-detail{font-size:13px;line-height:1.7;color:var(--muted);border-top:1px solid var(--line);margin-top:18px;padding-top:14px;min-height:64px}.route-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.results-panel{margin-top:22px}.empty-result{display:flex;align-items:center;flex-direction:column;padding:15px 0 24px;color:var(--muted)}.empty-icon{font-size:48px;color:#a4b8d8}.empty-result p{font-size:16px;margin:5px 0 10px}.empty-result>span:last-child{font-size:13px}.technical{margin-top:20px;border-bottom:1px solid var(--line);padding:14px 0 20px;color:var(--muted);font-size:14px}.technical summary{cursor:pointer}.technical>div{padding:15px 0;font-size:13px;line-height:1.9}footer{display:flex;justify-content:space-between;padding-top:24px;font-size:12px;color:#66778e}audio{width:100%;height:36px;margin:10px 0}.upload-zone{border:1px dashed #bccde5;border-radius:10px;padding:28px 16px;text-align:center;color:var(--muted);font-size:14px}.upload-zone input{max-width:100%;margin:16px 0}.record-zone{text-align:center;padding:16px}.record-zone p{color:var(--muted);font-size:14px}meter{width:100%;height:14px}.audio-track{display:grid;grid-template-columns:140px 1fr 38px;gap:15px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.audio-track:last-child{border-bottom:0}.track-name{font-size:14px;display:flex;align-items:center;gap:10px}.track-color{width:3px;height:30px;border-radius:2px}.wave-wrap{position:relative;min-width:0}.wave{width:100%;height:56px;display:block;cursor:pointer}.track-controls{display:flex;align-items:center;gap:10px}.play-button{background:#edf2ff;color:var(--text);border-radius:50%;width:34px;height:34px;flex-shrink:0;font-size:14px}.track-time{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.download{font-size:20px;color:var(--muted);text-align:center}.track-controls input{max-width:75px;margin-left:auto}.prob-row{display:flex;align-items:center;gap:8px;margin:5px 0;font-size:12px}.prob-row span:first-child{width:135px}.prob-bar{height:5px;background:var(--accent);border-radius:2px}.prob-row b{font-weight:500;margin-left:auto}#input-player .audio-track{grid-template-columns:1fr}#input-player .track-name,#input-player .download{display:none}.timing{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:13px;margin-top:10px}.timing strong{color:var(--accent);font-size:17px;font-weight:500}
@media(max-width:900px){.workspace{grid-template-columns:1fr}.intro{align-items:flex-start}.model-badge{display:none}.topbar{height:65px}.panel{padding:20px}main{padding-top:30px}.audio-track{grid-template-columns:105px 1fr 30px}.privacy{font-size:12px}h1 span{display:block}}@media(max-width:480px){.topbar{margin:0 5%}.brand-note{display:none}.privacy{font-size:12px;max-width:170px;text-align:right}.panel{padding:18px 15px}.section-head{align-items:flex-start}#input-badge{font-size:12px}h2{font-size:16px}.audio-track{grid-template-columns:1fr 30px;gap:8px}.track-name{grid-column:1/-1}.track-color{height:14px}.track-controls input{max-width:55px}.routing-grid{grid-template-columns:44px repeat(var(--expert-count,12),minmax(26px,1fr))}.demo-top{align-items:flex-start}.demo-top strong{font-size:15px}footer{gap:18px;line-height:1.7}.selected-legend{margin-left:0}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}[hidden]{display:none!important}

.legend{flex-wrap:wrap}.file-picker{display:inline-block;margin:16px 0;cursor:pointer}.download{background:transparent;border:1px solid var(--line);border-radius:6px}.sample-meta{overflow-wrap:anywhere}

/* Routing tabs share the same model run. */
.routing-panel{min-width:0}
.routing-tabs{display:flex;gap:5px;padding:6px 6px 0;margin:0 -8px 22px;background:#f0f3f9;border-bottom:1px solid #dbe4f2;border-radius:11px 11px 0 0}
.routing-tabs [role=tab]{position:relative;flex:1;min-width:0;padding:14px 10px;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:9px 9px 0 0;font-size:14px;line-height:1.4}
.routing-tabs [role=tab]:hover{color:var(--text);background:#e8eef9}
.routing-tabs [aria-selected=true]{color:var(--accent);background:var(--panel);border-color:#dbe4f2;border-bottom-color:var(--panel);margin-bottom:-1px;font-weight:600}
.routing-tabs [aria-selected=true]:before{content:"";position:absolute;left:16px;right:16px;top:0;height:2px;background:var(--accent);border-radius:2px}
.routing-tabs button:focus-visible{outline-offset:-5px}
.tf-empty{min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;color:var(--muted);padding:30px 16px}
.tf-empty strong{font-size:16px;color:var(--text);font-weight:500}
.tf-empty p{font-size:14px;line-height:1.7;max-width:320px;margin:0}
/* Always-visible model and run parameters. */
.runtime-summary{margin:4px 0 24px;padding:20px;border:1px solid #dce5f2;border-radius:12px;background:linear-gradient(125deg,#ffffff,#f8faff 70%)}
.runtime-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}
.runtime-heading h3{margin:0;font-size:15px;font-weight:550;color:#243855}
.runtime-heading button{font-size:12px;padding:7px 10px}
.runtime-placeholder{margin:0;font-size:14px;line-height:1.7;color:var(--muted)}
.runtime-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:0}
.runtime-metric{min-width:0;padding-right:10px;border-right:1px solid #e1e8f2}
.runtime-metric:last-child{border-right:0}
.runtime-metric dt{font-size:12px;line-height:1.5;color:#5c6e88}
.runtime-metric dd{margin:8px 0 5px;font-size:27px;line-height:1.15;font-weight:550;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
.runtime-metric small{font-size:13px;font-weight:400;margin-left:5px;color:#5c6e88}
.runtime-metric .metric-help{font-size:12px;line-height:1.5;font-weight:400;color:var(--muted);white-space:normal;margin:0}
.runtime-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid #e1e8f2}
.runtime-stages{display:flex;flex-wrap:wrap;gap:12px 26px;margin:0}
.runtime-stages>div{display:flex;gap:8px;align-items:baseline}
.runtime-stages dt{font-size:12px;color:var(--muted)}
.runtime-stages dd{font-size:13px;font-variant-numeric:tabular-nums;margin:0;color:var(--text)}
.runtime-cache{font-size:12px;color:#315ed5;padding:5px 9px;background:#edf2ff;border-radius:5px;white-space:nowrap}
.runtime-model{display:flex;gap:8px 20px;flex-wrap:wrap;margin:17px 0 0;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.runtime-model strong{color:#344969;font-weight:500}
.runtime-note{margin:8px 0 0}
@media(max-width:1100px){.runtime-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 14px}.runtime-metric:nth-child(3n){border-right:0}.runtime-bottom{align-items:flex-start;flex-wrap:wrap}}
@media(max-width:600px){.runtime-summary{padding:16px 13px}.runtime-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}.runtime-metric:nth-child(3n){border-right:1px solid #e1e8f2}.runtime-metric:nth-child(2n){border-right:0}.runtime-metric dd{font-size:26px}.runtime-heading{align-items:flex-start}.runtime-heading button{max-width:110px}.runtime-stages{gap:10px;width:100%}.runtime-stages>div{justify-content:space-between;width:100%}.routing-tabs{margin-left:0;margin-right:0}.routing-tabs [role=tab]{font-size:13px;padding:13px 7px}.tf-card{padding:14px 10px}.tf-card-heading{align-items:flex-start}.tf-card h3{font-size:13px}.tf-axis{font-size:12px}.tf-legend{gap:12px}.tf-chart{grid-template-columns:22px minmax(0,1fr);column-gap:5px}}

/* Keep runtime information beside routing, directly below the audio input. */
.input-column{display:flex;flex-direction:column;gap:22px;min-width:0}
.input-column .runtime-summary{margin:0;padding:20px}
.input-column .runtime-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 12px}
.input-column .runtime-metric:nth-child(3n){border-right:0}
.input-column .runtime-metric dd:not(.metric-help){font-size:25px}
.input-column .runtime-bottom{flex-wrap:wrap;gap:14px}
.input-column .runtime-stages{gap:9px 18px}
.input-column .runtime-model{gap:6px 14px}
.tf-layer-picker{display:flex;gap:6px;margin:0 0 22px}
.tf-layer-picker button{flex:1;padding:9px 0;border-radius:7px;background:#f4f7fc;color:var(--muted);border:1px solid #dce4f0;font-size:13px}
.tf-layer-picker button:hover{color:var(--text);border-color:#8da8e9}
.tf-layer-picker button[aria-pressed=true]{background:#315ed5;color:#ffffff;border-color:#315ed5;font-weight:650}
.spectrogram-view{min-width:0}
.spec-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:18px}
.spec-heading h3{font-size:15px;font-weight:550;margin:0}
.spec-heading>span{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.spec-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;font-size:12px;color:#526580;margin-bottom:10px}
.spec-legend>span{display:inline-flex;align-items:center;gap:5px}
.spec-legend .spec-legend-name{min-width:110px;color:var(--muted)}
.spec-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
.spec-grid{display:grid;grid-template-columns:30px minmax(0,1fr) 34px;grid-template-rows:20px 350px 22px 20px;gap:8px;margin-top:22px;font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.spec-hz{grid-column:1;grid-row:1;align-self:end}
.spec-frame-axis{grid-column:2;grid-row:1;display:flex;justify-content:space-between;align-items:end;gap:5px}
.spec-frequency-axis{grid-column:1;grid-row:2;display:flex;flex-direction:column;justify-content:space-between;text-align:right;padding-right:4px}
.spec-main{grid-column:2;grid-row:2;background:#000004}
.spec-band-wrap{grid-column:3;grid-row:2;position:relative}
.spec-band-wrap canvas{position:absolute;inset:0}
.spec-grid canvas{display:block;width:100%;height:100%;min-width:0;image-rendering:pixelated;cursor:crosshair;border-radius:2px}
.spec-grid canvas:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.spec-time-label{grid-column:1;grid-row:3;align-self:center}
#time-route-strip{grid-column:2;grid-row:3}
.spec-band-label{grid-column:3;grid-row:3;align-self:center;text-align:center}
.spec-time-axis{grid-column:2;grid-row:4;display:flex;justify-content:space-between;gap:5px}
.spec-scale{display:flex;align-items:center;gap:8px;margin:12px 0 18px;font-size:11px;color:var(--muted);flex-wrap:wrap}
.spec-scale i{display:block;width:80px;height:6px;border-radius:2px;background:linear-gradient(90deg,#000004,#57106e,#cb4149,#f0b00f,#fcffa4)}
.spec-scale>span:last-child{margin-left:auto}
.spec-inspection{font-size:12px;line-height:1.8;color:#405576;border-top:1px solid var(--line);padding-top:14px;margin:0 0 14px;min-height:58px;font-variant-numeric:tabular-nums}
.spec-note{margin:0}
@media(max-width:1100px) and (min-width:901px){.spec-legend .spec-legend-name{width:100%}.spec-heading{align-items:flex-start;flex-direction:column}.input-column .runtime-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.input-column .runtime-metric:nth-child(3n){border-right:1px solid #e1e8f2}.input-column .runtime-metric:nth-child(2n){border-right:0}}
@media(max-width:600px){.input-column .runtime-summary{padding:18px 15px}.input-column .runtime-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.input-column .runtime-metric:nth-child(3n){border-right:1px solid #e1e8f2}.input-column .runtime-metric:nth-child(2n){border-right:0}.spec-grid{grid-template-columns:25px minmax(0,1fr) 30px;grid-template-rows:20px 260px 22px 20px;gap:6px;font-size:10px}.spec-legend{gap:8px 12px}.spec-legend .spec-legend-name{width:100%}.spec-heading{align-items:flex-start;flex-direction:column;gap:6px}.spec-scale>span:last-child{width:100%;margin-left:0}.spec-frame-axis>span:nth-child(2){display:none}.spec-inspection{min-height:80px}}

.selection-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.selection-heading button{padding:5px 9px;font-size:12px}.selection-value{font-size:13px;color:var(--accent);margin:12px 0 5px;font-variant-numeric:tabular-nums}.range-row{display:grid;grid-template-columns:40px minmax(0,1fr);align-items:center;gap:10px}.range-row input{min-width:0;margin:5px 0}#selection-area .range-row label{display:block;font-size:12px}

/* Completed audio takes priority above the routing workspace. */
.results-panel{margin:0 0 26px;border-color:#c4d4f3;border-top:3px solid var(--accent);background:linear-gradient(120deg,#ffffff,#ffffff 65%);box-shadow:0 10px 34px #263d6410;scroll-margin-top:20px}
.results-kicker{margin:0 0 9px;font-size:11px;letter-spacing:.16em;color:var(--accent)}
.results-panel h2{font-size:26px;font-weight:600;letter-spacing:-.025em}
.results-panel .section-head{align-items:center;margin-bottom:14px}
.results-meta{display:flex;flex-direction:column;align-items:flex-end;gap:10px;text-align:right}
.results-panel .section-description{max-width:850px;margin-bottom:22px}
.results-panel #results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.results-panel .audio-track{grid-template-columns:minmax(0,1fr) 34px;gap:16px 8px;padding:17px 14px;min-width:0;border:1px solid #dbe4f0;border-top:3px solid var(--track-color);border-radius:10px;background:#ffffff}
.results-panel .audio-track:first-child{background:#f7f9fc;border-color:#dbe4f0;border-top-color:var(--track-color)}
.results-panel .track-name{grid-column:1;grid-row:1;font-weight:600;font-size:15px;gap:8px}
.results-panel .track-color{height:15px}
.results-panel .wave-wrap{grid-column:1/-1;grid-row:2}
.results-panel .download{grid-column:2;grid-row:1;width:32px;height:32px;font-size:18px}
.results-panel .track-controls{gap:8px;margin-top:8px}
.results-panel .play-button{width:40px;height:40px;background:var(--accent);color:#ffffff;font-size:16px}
.results-panel .track-time{font-size:11px;white-space:nowrap}
.results-panel .track-controls input{min-width:30px;max-width:66px;flex:1}
.results-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px}
.results-navigation>div{display:flex;gap:10px;flex-wrap:wrap;flex-shrink:0}
.results-navigation a{display:inline-block;font-size:13px}
#audio-input-panel,#expert-routing-panel{scroll-margin-top:20px}
@media(max-width:1200px){.results-panel #results{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.results-panel .section-head{align-items:flex-start;flex-direction:column;gap:14px}.results-meta{align-items:flex-start;text-align:left;gap:8px}.results-panel h2{font-size:23px}.results-panel #results{grid-template-columns:1fr}.results-panel .audio-track{padding:14px}.results-panel .track-controls input{max-width:95px}.results-navigation{align-items:flex-start;flex-direction:column}.results-navigation>div{gap:8px}.results-navigation a{font-size:12px}}

.routing-grid-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#c4d4f3 #ffffff;padding:3px}
.prob-row span:first-child{flex-shrink:0}

/* Light-theme interaction states and readable categorical audio colors. */
.primary:hover:not(:disabled){background:#244ebc}
.secondary:hover:not(:disabled),.download:hover{background:#eaf0fc;border-color:#b8cbef;color:#244ebc}
.tabs button[aria-selected=true]{box-shadow:0 2px 6px #2846740d;font-weight:600}
.chip,.tag{background:#eff4ff}
.play-button{color:var(--accent)}
.results-panel .play-button{background:color-mix(in srgb,var(--track-color) 10%,white);color:var(--track-color)}
.results-panel .play-button:hover{background:color-mix(in srgb,var(--track-color) 18%,white)}
.results-panel .track-controls input{accent-color:var(--track-color)}
.prob-row span:first-child{width:155px}
.spec-legend i{box-shadow:inset 0 0 0 1px #18294212}
::selection{background:#dbe6ff;color:#182942}
