:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f8fafc;color:#0f172a;--border: #dbe3ea;--muted: #64748b;--panel: #ffffff;--teal: #0f766e;--teal-dark: #115e59;--red: #dc2626;--blue: #2563eb;--amber: #d97706;--shadow: 0 10px 30px rgba(15, 23, 42, .08)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}button:disabled,.disabled{cursor:not-allowed;opacity:.55}code{background:#eef2f7;border-radius:4px;padding:.1rem .3rem}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--border);background:#ffffffeb;padding:0 1.25rem;position:sticky;top:0;z-index:20;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.topbar h1,.screen-header h2,.step-title,.panel h3,.folder-box h3{margin:0;line-height:1.15}.eyebrow{margin:0 0 .25rem;color:var(--teal);text-transform:uppercase;letter-spacing:0;font-weight:700;font-size:.74rem}.topbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.status-pill{display:inline-flex;align-items:center;gap:.35rem;border:1px solid var(--border);background:#f8fafc;color:var(--muted);border-radius:999px;padding:.35rem .6rem;font-size:.78rem}.status-pill.ready{color:var(--teal-dark);border-color:#99f6e4;background:#f0fdfa}.status-pill.error{color:var(--red);border-color:#fecaca;background:#fef2f2}.layout{display:grid;grid-template-columns:230px minmax(0,1fr);flex:1}.sidebar{border-right:1px solid var(--border);background:#fff;padding:1rem;display:flex;flex-direction:column;gap:.5rem}.sidebar-nav{display:flex;flex-direction:column;gap:.5rem}.sidebar button{display:flex;align-items:center;gap:.6rem;border:1px solid transparent;background:transparent;color:#334155;padding:.75rem;border-radius:6px;text-align:left}.sidebar button.active{border-color:#99f6e4;color:var(--teal-dark);background:#f0fdfa}.sidebar-github{margin-top:auto;display:flex;align-items:center;gap:.5rem;color:#334155;text-decoration:none;border-top:1px solid var(--border);padding-top:.8rem;font-size:.86rem;overflow-wrap:anywhere}.sidebar-github:hover{color:var(--teal-dark)}.content{padding:1rem;overflow:auto}.screen{display:flex;flex-direction:column;gap:1.25rem}.step-section{display:flex;flex-direction:column;gap:.75rem}.step-title{font-size:1.15rem;font-weight:700;color:#0f172a}.step-body{padding:1rem}.feature-set-panel{display:flex;flex-direction:column;gap:.85rem}.feature-set-controls{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.75rem}.feature-set-controls .field-label{flex:1 1 240px}.feature-set-description{margin:0;color:var(--muted);line-height:1.45}.step-placeholder{padding:1rem;color:var(--muted)}.step-placeholder p{margin:0}.privacy-note{display:block;margin-top:.45rem;color:var(--muted);font-size:.82rem}.screen-header,.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.screen-header p,.panel-header p,.folder-box p{color:var(--muted);margin:.35rem 0 0}.panel,.upload-zone,.image-card,.folder-box,.progress-card,.alert{background:var(--panel);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.setup-panel{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(320px,1.2fr);gap:1rem;padding:1rem;margin-bottom:1rem}.setup-panel.compact{grid-template-columns:minmax(220px,.55fr) minmax(360px,1.45fr);padding:.75rem 1rem;align-items:center}.setup-panel.compact h2{margin:0;font-size:1rem}.setup-panel.compact .eyebrow{margin-bottom:.15rem}.backend-summary{display:inline-flex;align-items:center;gap:.45rem;margin-top:.55rem;color:var(--muted);font-size:.88rem}.backend-summary strong{color:var(--teal-dark);background:#f0fdfa;border:1px solid #99f6e4;border-radius:999px;padding:.18rem .5rem;font-size:.78rem}.backend-summary strong.warn{color:#92400e;background:#fffbeb;border-color:#fde68a}.worker-list{display:flex;flex-direction:column;gap:.75rem}.setup-panel.compact .worker-list{gap:.45rem}.worker-row{display:grid;grid-template-columns:150px minmax(160px,1fr);gap:.75rem;align-items:center}.setup-panel.compact .worker-row{grid-template-columns:150px minmax(150px,1fr) minmax(180px,.9fr)}.worker-row small{grid-column:2;color:var(--muted)}.setup-panel.compact .worker-row small{grid-column:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.download-progress{grid-column:2 / -1;display:flex;flex-direction:column;gap:.25rem;padding:.35rem .5rem;border:1px solid #dbeafe;background:#eff6ff;border-radius:6px}.download-progress div{display:flex;align-items:center;justify-content:space-between;gap:.75rem;color:#1e3a8a;font-size:.82rem}.download-progress small{grid-column:auto;color:#475569;white-space:nowrap}.gpu-warning{grid-column:1 / -1;align-items:flex-start;line-height:1.4;margin-top:.25rem}progress{width:100%;height:.65rem;accent-color:var(--teal)}.field-label{display:flex;flex-direction:column;gap:.35rem;color:#334155;font-weight:650;min-width:220px}select{border:1px solid var(--border);background:#fff;border-radius:6px;padding:.55rem .65rem;color:#0f172a}.upload-zone{min-height:178px;border-style:dashed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.55rem;color:var(--muted)}.upload-zone strong{color:#0f172a}.upload-zone input,.hidden{display:none}.button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid var(--border);background:#fff;color:#0f172a;border-radius:6px;min-height:2.35rem;padding:.48rem .75rem;text-decoration:none}.button.primary{color:#fff;border-color:var(--teal);background:var(--teal)}.button.danger{color:var(--red);border-color:#fecaca}.button-row{display:flex;flex-wrap:wrap;gap:.5rem}.icon-button{width:2.15rem;height:2.15rem;padding:0}.alert{display:flex;align-items:center;gap:.6rem;border-color:#fed7aa;color:#9a3412;background:#fff7ed;padding:.8rem}.info-notice{align-items:flex-start;border-color:#bfdbfe;color:#1e3a8a;background:#eff6ff;margin-bottom:1rem;line-height:1.45}.info-notice p{margin:0}.info-notice a{color:#1d4ed8;font-weight:650}.progress-card{display:flex;align-items:center;gap:.6rem;padding:.9rem;color:var(--teal-dark)}.run-progress-card{align-items:flex-start}.run-progress-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:.3rem}.run-progress-copy strong{color:#0f172a}.run-progress-copy span{color:var(--muted);overflow-wrap:anywhere}.run-progress-copy .substage{display:inline-flex;align-items:center;gap:.35rem;color:var(--teal-dark);font-weight:650}.run-progress-copy progress{margin-top:.15rem}.batch-run-panel{padding:1rem}.batch-current-progress{margin-top:1rem;box-shadow:none}.resume-alert{align-items:flex-start;margin-bottom:.85rem;line-height:1.4}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.image-card{min-height:260px;overflow:hidden}.image-card-header{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 .75rem;border-bottom:1px solid var(--border)}.image-card h3{font-size:.95rem}.floating-actions{display:flex;gap:.35rem}.image-button{display:block;width:100%;height:260px;border:0;background:#f1f5f9;padding:0}.image-button img{width:100%;height:100%;object-fit:contain;display:block}.image-placeholder{height:260px;display:flex;align-items:center;justify-content:center;gap:.45rem;color:var(--muted);background:#f8fafc}.biomarkers-panel{padding:1rem}.biomarkers-panel .panel-header p{margin:0}.about-panel{padding:1rem}.about-panel h3{margin:0 0 .65rem}.about-copy{color:#334155;line-height:1.55;max-width:920px}.about-copy p{margin:0 0 .75rem}.about-copy p:last-child{margin-bottom:0}.about-copy a{color:var(--teal-dark);font-weight:650}.table-wrap{max-height:520px;overflow:auto;border:1px solid var(--border);border-radius:6px;margin-top:.85rem}.table-wrap.compact{max-height:360px}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;border-bottom:1px solid var(--border);padding:.65rem .75rem;vertical-align:middle}th{position:sticky;top:0;background:#f8fafc;z-index:1;color:#334155}.empty{color:var(--muted);text-align:center}.folder-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.folder-box{padding:1rem;display:flex;flex-direction:column;gap:.65rem}.folder-title{display:inline-flex;align-items:center;gap:.5rem}.folder-title svg{color:var(--teal-dark);flex:0 0 auto}.folder-box small,.current-file{color:var(--muted)}.current-file{display:flex;align-items:center;gap:.45rem}details{margin-top:1rem}summary{cursor:pointer;color:var(--teal-dark);font-weight:650}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a9e;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:50}.modal{position:relative;width:min(1080px,96vw);max-height:94vh;overflow:auto;background:#fff;border-radius:8px;padding:1rem;box-shadow:0 24px 60px #0f172a52}.modal .close{position:absolute;top:.75rem;right:.75rem}.modal h3{margin:0 2.5rem .75rem 0}.modal-image-wrap{position:relative}.modal img{width:100%;max-height:78vh;object-fit:contain;background:#f8fafc;display:block}.modal-download{position:absolute;top:.65rem;right:.65rem;background:#ffffffeb;box-shadow:0 4px 14px #0f172a2e}.modal-download:hover{background:#fff;border-color:#99f6e4;color:var(--teal-dark)}.plot-image{image-rendering:auto;aspect-ratio:1 / 1}.unsupported-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.25rem;background:#f8fafc}.unsupported-card{width:min(440px,100%);padding:1.75rem 1.5rem;text-align:center;display:flex;flex-direction:column;align-items:center}.unsupported-icon{width:3.25rem;height:3.25rem;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:var(--teal-dark);background:#f0fdfa;border:1px solid #99f6e4;margin-bottom:1rem}.unsupported-card h1{margin:.15rem 0 0;font-size:1.55rem;line-height:1.2}.unsupported-copy{margin:.85rem 0 0;color:#334155;line-height:1.55}.unsupported-hint{margin:.85rem 0 0;color:var(--muted);font-size:.92rem}@media(max-width:980px){.topbar{height:auto;align-items:flex-start;flex-direction:column;padding:.85rem}.layout{grid-template-columns:1fr}.sidebar{flex-direction:row;border-right:0;border-bottom:1px solid var(--border);overflow-x:auto}.sidebar-nav{flex-direction:row}.sidebar-github{margin-top:0;border-top:0;border-left:1px solid var(--border);padding-top:0;padding-left:.8rem;white-space:nowrap}.setup-panel,.image-grid,.folder-row{grid-template-columns:1fr}.screen-header,.panel-header{flex-direction:column}.field-label{width:100%}}
