:root{color:#18202b;background:#eef3f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--surface: #ffffff;--surface-soft: #f7faf9;--ink: #18202b;--muted: #64707d;--line: #dbe3e7;--primary: #0f766e;--primary-strong: #115e59;--accent: #2563eb;--danger: #b42318;--danger-bg: #fff4f2;--success: #15803d;--shadow: 0 18px 48px rgba(24, 32, 43, .1)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}.shell{width:min(1120px,calc(100vw - 32px));max-width:100%;min-width:0;min-height:100vh;margin:0 auto;padding:32px 0}.centered,.auth-shell{display:grid;place-items:center}.auth-panel,.panel{border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.auth-panel{width:min(430px,100%);display:grid;gap:24px;padding:32px}.brand-mark{width:52px;height:52px;display:grid;place-items:center;border-radius:8px;color:#fff;background:var(--primary)}.brand-mark.compact{width:42px;height:42px}.eyebrow{margin:0 0 6px;color:var(--accent);font-size:.76rem;font-weight:750;letter-spacing:0;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin-bottom:8px;color:var(--ink);font-size:clamp(1.9rem,4vw,2.8rem);line-height:1.08;letter-spacing:0}h2{margin-bottom:0;font-size:1.2rem;line-height:1.2;letter-spacing:0}h3{margin-bottom:0;color:var(--ink);font-size:1.05rem;line-height:1.2;letter-spacing:0}.auth-copy{margin-bottom:0;color:var(--muted);line-height:1.6}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.title-cluster{display:flex;align-items:center;gap:14px}.title-cluster h1{margin:0;font-size:clamp(1.6rem,3vw,2.2rem)}.account{min-width:0;display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:650}.account img{width:32px;height:32px;border-radius:50%}.account span{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,340px);gap:20px;align-items:start}.single-workspace{min-width:0;display:grid;gap:18px;justify-items:center}.user-workspace .single-workspace{justify-items:stretch}.user-workspace .screen-card{width:100%}.screen-card{width:min(760px,100%);min-width:0;display:grid;gap:22px;padding:30px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:var(--shadow)}.screen-heading{min-width:0;display:grid;justify-items:start;gap:8px}.screen-heading h2{font-size:clamp(1.55rem,4vw,2.25rem)}.screen-heading p:not(.eyebrow){margin:0;color:var(--muted);line-height:1.55;overflow-wrap:anywhere}.screen-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:8px;color:#fff;background:var(--primary)}.screen-icon.active{background:var(--accent)}.screen-icon.success{background:var(--success)}.screen-icon.danger{background:var(--danger)}.large-dropzone{min-height:250px}.hero-button{min-height:52px;font-size:1rem}.job-status-card.single{grid-template-columns:auto minmax(0,1fr) auto}.result-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.history-screen{gap:16px;max-height:calc(100vh - 64px);overflow:hidden;position:sticky;top:20px}.history-new-button{min-height:48px}.history-heading{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:14px}.history-heading h2{font-size:1.15rem}.compact-history-list{max-height:calc(100vh - 188px);overflow:auto}.compact-history-item{grid-template-columns:auto minmax(0,1fr)}.primary-stack,.workflow-column{min-width:0;display:grid;gap:20px}.panel{min-width:0;padding:24px}.start-panel,.job-panel,.results-panel,.upload-panel,.processing-panel{display:grid;gap:20px}.action-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}@media (min-width: 720px){.action-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr)}}.analysis-section,.stem-section,.midi-section{display:grid;gap:16px}.stem-section,.midi-section{padding-top:20px;border-top:1px solid var(--line)}.subsection-header{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:16px}.subsection-header>svg{flex:0 0 auto;color:var(--primary)}.history-panel{min-width:0;display:grid;gap:16px;max-height:calc(100vh - 64px);margin-top:0;overflow:auto;position:sticky;top:20px}.panel-header{min-width:0;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px}.panel-header>svg{flex:0 0 auto;color:var(--primary)}.dropzone{min-height:190px;display:grid;place-items:center;align-content:center;gap:10px;padding:22px;border:1.5px dashed #b9c7cd;border-radius:8px;background:var(--surface-soft);color:var(--muted);text-align:center}.dropzone input{position:absolute;width:1px;height:1px;opacity:0}.dropzone svg{color:var(--primary)}.dropzone.has-file{border-style:solid;border-color:#9cc9c3;background:#f5fbfa}.dropzone span{max-width:100%;color:var(--ink);font-weight:750;overflow-wrap:anywhere}.dropzone small{color:var(--muted);overflow-wrap:anywhere}.segmented-control{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}.segmented-control button{min-height:40px;border:0;border-radius:6px;color:var(--muted);background:transparent;font-weight:780}.segmented-control button.selected{color:var(--primary-strong);background:#fff;box-shadow:0 1px 5px #18202b1a}.pipeline-field{display:grid;gap:8px}.pipeline-field>span{color:var(--ink);font-size:.86rem;font-weight:820}.pipeline-selector button{min-width:0;min-height:58px;display:grid;align-content:center;justify-items:start;gap:3px;padding:8px 10px;text-align:left}.pipeline-selector strong,.pipeline-selector small{min-width:0;max-width:100%;overflow-wrap:anywhere}.pipeline-selector small{font-size:.76rem;font-weight:700}.pipeline-badge{min-width:0;display:inline-grid;gap:3px;justify-items:start;padding:8px 10px;border:1px solid #b7d7d3;border-radius:8px;color:var(--primary-strong);background:#f1faf8;line-height:1.2}.pipeline-badge.legacy{border-color:#c7d2fe;color:#3730a3;background:#f3f5ff}.pipeline-badge strong,.pipeline-badge small{min-width:0;max-width:100%;overflow-wrap:anywhere}.pipeline-badge strong{font-size:.8rem;font-weight:850}.pipeline-badge small{color:var(--muted);font-size:.74rem;font-weight:720}.pipeline-badge.compact{display:inline-flex;align-items:center;padding:5px 7px;border-radius:999px}.pipeline-badge.compact strong{white-space:nowrap}.pipeline-badge.compact small{display:none}.stem-upload-list{display:grid;gap:8px}.stem-grid-header{display:grid;grid-template-columns:minmax(220px,1fr) minmax(112px,.42fr) minmax(150px,.58fr);gap:12px;padding:0 12px 4px;color:var(--muted);font-size:.76rem;font-weight:820;text-transform:uppercase}.stem-upload{min-width:0;min-height:62px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(112px,.42fr) minmax(150px,.58fr);align-items:center;gap:12px;padding:11px 12px;border:1px dashed #b9c7cd;border-radius:8px;background:var(--surface-soft)}.stem-upload.ready,.stem-upload.generated,.stem-upload.selected{border-style:solid;border-color:#9cc9c3;background:#f5fbfa}.stem-upload.pending{border-color:#c4d3e9;background:#f4f7ff}.stem-upload.missing{border-color:#ead3c2;background:#fff8f3}.stem-upload.disabled{border-color:#d7dee2;background:#f3f6f7}.stem-upload input{position:absolute;width:1px;height:1px;opacity:0}.stem-upload-main{min-width:0;display:grid;cursor:pointer}.stem-upload-main span{min-width:0;display:grid;gap:4px}.stem-upload-main:has(input:disabled){cursor:default}.stem-upload strong,.stem-upload small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stem-upload strong{color:var(--ink);font-weight:800}.stem-upload small{color:var(--muted);font-size:.82rem;font-weight:680}.stem-upload em{min-width:62px;padding:6px 8px;border-radius:999px;color:var(--muted);background:#edf2f4;font-size:.76rem;font-style:normal;font-weight:820;text-align:center}.stem-upload.ready em,.stem-upload.generated em,.stem-upload.selected em{color:var(--primary-strong);background:#dff1ed}.stem-upload.pending em{color:#1d4ed8;background:#e8f0ff}.stem-upload.missing em{color:#9a3412;background:#ffedd5}.stem-result-cell{min-width:0;display:grid;justify-items:end;gap:4px}.stem-action-line{min-width:0;display:inline-flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.stem-result-cell small{max-width:100%;color:var(--muted);font-size:.76rem;font-weight:680;text-align:right}.stem-midi-cell.disabled em,.stem-midi-cell.empty em{color:var(--muted);background:#edf2f4}.stem-midi-cell.pending em{color:#1d4ed8;background:#e8f0ff}.stem-midi-cell.ready em,.stem-midi-cell.generated em{color:var(--primary-strong);background:#dff1ed}.stem-download{width:34px;min-width:34px;min-height:34px}.field{display:grid;gap:10px;color:var(--ink);font-weight:700}.range-row{display:grid;grid-template-columns:1fr 64px;align-items:center;gap:12px}input[type=range]{width:100%;accent-color:var(--primary)}output{color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}.primary-button,.secondary-button,.icon-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:0;border-radius:8px;font-weight:780}.primary-button{width:100%;color:#fff;background:var(--primary)}.primary-button:hover:not(:disabled){background:var(--primary-strong)}.secondary-button{color:var(--primary-strong);background:#e5f3f0}.secondary-button:hover:not(:disabled){background:#d5ebe7}.danger-button{color:var(--danger);background:var(--danger-bg)}.danger-button:hover:not(:disabled){background:#ffe5df}.rerun-button{width:100%}.source-action-row{display:grid;gap:10px}.source-action-row .secondary-button{width:100%}.icon-button{width:42px;min-width:42px;color:var(--muted);background:#edf2f4}.progress-block{display:grid;gap:8px}.progress-row{display:flex;justify-content:space-between;color:var(--muted);font-size:.9rem;font-weight:700}.progress-track{height:10px;overflow:hidden;border-radius:999px;background:#e6edf0}.progress-track div{height:100%;border-radius:inherit;background:var(--accent);transition:width .18s ease}.status-line{min-width:0;display:grid;gap:8px;padding:16px;border-radius:8px;background:var(--surface-soft)}.job-status-card{min-width:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft)}.job-status-card strong{min-width:0;color:var(--ink);line-height:1.45;overflow-wrap:anywhere}.job-status-card em{color:var(--muted);font-style:normal;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}.job-status-meta{min-width:0;display:inline-flex;align-items:center;justify-content:flex-end;gap:8px}.job-status-meta:empty{display:none}.status-line span,.detail-list span{color:var(--muted);font-size:.84rem;font-weight:750}.status-line strong,.detail-list strong{color:var(--ink);line-height:1.45;overflow-wrap:anywhere}.timing-panel{min-width:0;display:grid;gap:10px}.timing-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.timing-strip div{min-height:72px;display:grid;align-content:center;gap:6px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff}.timing-strip span,.stage-timing-list strong{color:var(--muted);font-size:.76rem;font-weight:780}.timing-strip strong{color:var(--ink);font-size:1.1rem;font-weight:850;font-variant-numeric:tabular-nums}.stage-timing-list{display:flex;flex-wrap:wrap;gap:8px}.stage-timing-list span{min-width:0;max-width:100%;display:inline-flex;align-items:center;gap:6px;padding:7px 9px;border-radius:999px;background:#edf2f4}.stage-timing-list em{min-width:0;color:var(--ink);font-size:.76rem;font-style:normal;font-weight:820;font-variant-numeric:tabular-nums}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:10px;margin:0}.metrics div{min-height:84px;display:grid;align-content:center;gap:8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}.metrics dt{color:var(--muted);font-size:.78rem;font-weight:750}.metrics dd{margin:0;color:var(--ink);font-size:1.2rem;font-weight:820;overflow-wrap:anywhere}.essential-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.detail-list{display:grid;gap:10px}.detail-list div{min-width:0;display:grid;gap:5px;padding-bottom:10px;border-bottom:1px solid var(--line)}.keyboard-result-card,.drum-diagnosis-card{min-width:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid #bfd9d5;border-radius:8px;background:#f5fbfa}.keyboard-result-card.internal-result-card{border-color:#a7d7d1;background:#f1faf8}.keyboard-result-card.legacy-result-card,.keyboard-result-card.legacy-klangio-result-card{border-color:#c7d2fe;background:#f3f5ff}.keyboard-result-card div,.drum-diagnosis-card div{min-width:0;display:grid;gap:5px}.keyboard-result-card span,.drum-diagnosis-card span{color:var(--muted);font-size:.76rem;font-weight:800;text-transform:uppercase}.keyboard-result-card strong,.drum-diagnosis-card strong{min-width:0;color:var(--ink);font-weight:850;overflow-wrap:anywhere}.keyboard-result-card p,.drum-diagnosis-card p{grid-column:1 / -1;margin:0;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}.text-button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid #9cc9c3;border-radius:8px;color:var(--primary-strong);background:#fff;font-weight:820}.text-button:hover:not(:disabled){background:#e5f3f0}.instrument-output-list{display:grid;gap:0;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#fff}.instrument-output-card{min-width:0;min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line);background:#fff}.instrument-output-card:last-child{border-bottom:0}.instrument-output-card>span:first-child{min-width:0;display:grid;gap:5px}.instrument-output-card strong,.instrument-output-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.instrument-output-card strong{color:var(--ink);font-weight:850}.instrument-output-card small{color:var(--muted);font-size:.84rem;font-weight:700}.instrument-actions{flex:0 0 auto;display:inline-flex;gap:8px}.advanced-panel{padding:0;overflow:hidden}.advanced-panel summary{min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;color:var(--ink);font-weight:850;cursor:pointer}.advanced-panel summary small{color:var(--muted);font-size:.84rem;font-weight:700}.advanced-stem-form{display:grid;gap:16px;padding:0 24px 24px}.stem-upload-list.compact{gap:8px}.chord-strip{display:flex;flex-wrap:wrap;gap:8px}.chord-strip span{min-width:48px;padding:8px 10px;border-radius:8px;color:#1f2937;background:#eef4ff;font-size:.9rem;font-weight:760;text-align:center}.result-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.result-row{width:100%;min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;text-align:left}.result-row span{min-width:0;display:grid;gap:4px}.result-row strong,.result-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-row small{color:var(--muted);font-size:.84rem;font-weight:700}.result-row svg{flex:0 0 auto;color:var(--primary)}.result-row-empty{color:var(--muted)}.history-list{display:grid;gap:10px}.history-item{width:100%;min-width:0;min-height:78px;display:grid;grid-template-columns:66px minmax(0,1fr) minmax(0,auto);align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);background:#fff;cursor:pointer;text-align:left}.history-item:hover,.history-item.selected{border-color:#9cc9c3;background:#f5fbfa}.history-title{min-width:0;display:grid;gap:4px}.history-title strong,.history-title small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-title small,.history-meta{color:var(--muted);font-size:.84rem;font-weight:700}.history-meta{grid-column:2;display:inline-flex;align-items:center;min-width:0;max-width:100%;gap:6px;overflow:hidden}.history-meta .pipeline-badge{flex:0 0 auto}.history-meta em{color:var(--ink);font-style:normal;font-variant-numeric:tabular-nums;white-space:nowrap}.history-clear-button{grid-column:3;grid-row:1 / span 2;width:34px;min-width:34px;min-height:34px}.status-pill{display:inline-flex;min-width:58px;justify-content:center;padding:7px 8px;border-radius:999px;font-size:.78rem;font-weight:820}.status-pill.queued,.status-pill.processing{color:#1d4ed8;background:#eef4ff}.status-pill.completed{color:var(--success);background:#effaf2}.status-pill.failed,.status-pill.cancelled{color:var(--danger);background:var(--danger-bg)}.empty-state{min-width:0;min-height:96px;display:grid;place-items:center;padding:18px;border:1px dashed #b9c7cd;border-radius:8px;color:var(--muted);background:var(--surface-soft);font-weight:750;text-align:center;overflow-wrap:anywhere}.notice{min-width:0;display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:8px;font-weight:680;line-height:1.45}.notice span{min-width:0;overflow-wrap:anywhere}.notice.danger{color:var(--danger);background:var(--danger-bg)}.notice.success{color:var(--success);background:#effaf2}.status-icon{color:var(--primary)}.status-icon.success{color:var(--success)}.status-icon.danger{color:var(--danger)}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 780px){.shell{width:min(100% - 24px,1120px);padding:20px 0}.topbar,.workspace{grid-template-columns:1fr}.topbar{display:grid}.account{justify-content:space-between}.history-panel,.history-screen{max-height:none;overflow:visible;position:static}.compact-history-list{max-height:none}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.timing-strip,.job-status-card,.job-status-card.single{grid-template-columns:1fr}.essential-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.keyboard-result-card,.drum-diagnosis-card{grid-template-columns:1fr}.stem-grid-header{display:none}.stem-upload{grid-template-columns:1fr;align-items:stretch}.stem-result-cell{justify-items:start}.stem-action-line{justify-content:flex-start}.stem-result-cell small{text-align:left}}@media (max-width: 460px){.auth-panel,.panel,.screen-card{padding:20px}.title-cluster{align-items:flex-start}.range-row{grid-template-columns:1fr}output{text-align:left}}
