:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#1e2e39;background:#f7f9fb;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}.app-shell{max-width:1680px;margin:auto;padding:30px clamp(16px,3.5vw,62px) 24px}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 2px 28px}.brand{display:flex;align-items:center;gap:14px}.brand-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#e4f3f0;color:#19826f;font-size:31px;font-weight:700}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:750;color:#6f8592;margin:0 0 5px}.brand h1{font-size:clamp(19px,2.1vw,29px);letter-spacing:-.04em;font-weight:750;line-height:1.12;margin:0}.h1-dot{color:#159d88}.header-state{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;color:#657a86}.state-circle,.status-dot{width:10px;height:10px;background:#b1bdc6;border-radius:50%;flex:none}.state-circle.processing,.status-dot.processing{background:#dda33e}.state-circle.done,.status-dot.done{background:#139a7f}.state-circle.error,.status-dot.error{background:#c95a5a}
.toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:22px}.upload-control{display:flex;align-items:center;gap:13px;padding:6px 18px 6px 7px;border:1px solid #cbd9e0;border-radius:17px;background:#fff;max-width:100%;cursor:pointer;box-shadow:0 3px 12px #1e34460b;transition:border-color .2s}.upload-control:hover{border-color:#40a797}.upload-symbol{font-size:19px;font-weight:800;color:#1b7d73;line-height:1}.upload-label{padding:13px 18px;border-radius:11px;background:#e8f4f0;white-space:nowrap;color:#186a60;font-size:14px;font-weight:750}.upload-filename{font-size:13px;overflow:hidden;max-width:360px;text-overflow:ellipsis;white-space:nowrap;color:#566b76}.toolbar-actions{display:flex;gap:11px}.refresh-button,.subtle-button,.mini-button{border:1px solid #d5dfe4;border-radius:13px;padding:12px 15px;background:#fff;color:#30515b;font-weight:700;cursor:pointer;transition:background .2s,transform .15s}.refresh-button:not(:disabled):hover,.subtle-button:hover,.mini-button:not(:disabled):hover{background:#e8f3f1}.refresh-button:active,.subtle-button:active{transform:scale(.98)}.refresh-button span{font-size:20px;vertical-align:-1px}.refresh-button:disabled,.mini-button:disabled{opacity:.4;cursor:not-allowed}.subtle-button{background:#edf1f4;color:#4f6370}
.status{display:flex;align-items:center;gap:13px;min-height:64px;border:1px solid #e2e9ef;background:#fff;border-radius:16px;padding:12px 18px;margin-bottom:20px;box-shadow:0 5px 18px #24445607}.status strong{font-size:13px}.status p{font-size:12px;color:#768994;margin:3px 0 0}.status .spinner{margin-left:auto;width:21px;height:21px;border:3px solid #dfece7;border-top-color:#249b87;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.workspace{display:grid;grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);gap:18px;align-items:stretch}.left-column{display:grid;grid-template-rows:auto auto auto auto;gap:18px;align-content:start}.panel{background:#fff;border-radius:21px;border:1px solid #e4ebef;box-shadow:0 7px 25px #263c4c0d;padding:22px 24px;min-width:0}.panel-heading{display:flex;align-items:start;justify-content:space-between;gap:13px;margin-bottom:17px}.panel h2{font-size:16px;letter-spacing:-.025em;margin:0;font-weight:750}.soft-pill{background:#f0f5f7;color:#667f8d;font-size:10px;font-weight:700;border-radius:30px;padding:7px 10px;white-space:nowrap}.stats-panel{min-height:202px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.metric{background:#f6f9fb;border:1px solid #ecf0f3;border-radius:14px;padding:14px 12px}.metric .metric-label{font-size:11px;font-weight:700;color:#687f8d}.metric .metric-value{font-size:23px;letter-spacing:-.05em;font-weight:770;margin-top:4px}.metric .metric-sub{font-size:11px;color:#8395a0;margin-top:3px}.metric .metric-value small{font-size:13px;color:#83929c;font-weight:500}.empty-inline,.muted{color:#91a0a9;font-size:13px;line-height:1.6}.empty-inline{grid-column:1/-1;padding:24px 4px;text-align:center}.stats-footnote{margin-top:13px;font-size:10.5px;color:#83949e}.compact-panel{padding-top:19px;padding-bottom:20px;min-height:112px}.compact-panel .panel-heading{margin-bottom:13px}.compact-content{display:flex;flex-wrap:wrap;gap:14px 22px}.detail{min-width:70px}.detail .detail-label{font-size:10.5px;color:#82929c;display:block;margin-bottom:5px}.detail .detail-value{font-size:13px;color:#2a414e;font-weight:730;overflow-wrap:anywhere}.detail.big .detail-value{font-size:22px;color:#278b7c;letter-spacing:-.04em}.detail.full{flex-basis:100%}.diagnosis-badge{background:#e8f4f0;border:1px solid #d7ece7;color:#187668;border-radius:10px;padding:10px 13px;font-size:13px;font-weight:700}
.chart-panel{display:flex;flex-direction:column;min-height:740px;padding:22px 24px}.chart-header{margin-bottom:20px}.tabs{display:flex;gap:7px;border-radius:11px;background:#f1f5f7;padding:5px;max-width:100%;margin-bottom:13px}.tab{flex:1;min-width:0;white-space:nowrap;border:0;background:transparent;border-radius:8px;padding:11px 8px;font-size:12px;font-weight:700;color:#647b88;cursor:pointer}.tab.active{background:#fff;color:#1d8071;box-shadow:0 1px 8px #37586816}.chart-canvas{height:310px;display:flex;align-items:center;justify-content:center;position:relative;background:#fbfcfd;border:1px solid #edf1f4;border-radius:16px;overflow:hidden}.chart-canvas img{max-width:100%;max-height:100%;object-fit:contain}.chart-empty{text-align:center;max-width:290px;padding:25px;color:#8599a5}.chart-empty .chart-icon{width:62px;height:62px;border-radius:20px;background:#eaf4f1;margin:0 auto 15px;color:#2b9f8f;font-size:48px;line-height:58px}.chart-empty strong{font-size:15px;color:#526b79}.chart-empty p{font-size:12px;line-height:1.65;margin-bottom:0}.chart-meta{font-size:11px;text-align:center;color:#788d97;padding:9px 0 0;min-height:26px}.chart-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:15px}.legend{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.legend-item{font-size:10.5px;font-weight:650;color:#718792;display:flex;align-items:center;gap:5px}.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block}.legend-dot.sis{background:#1f77b4}.legend-dot.dia{background:#ff7f0e}.legend-dot.pam{background:#2ca02c}.downloads{display:flex;gap:8px;flex-wrap:wrap}.mini-button{font-size:10.5px;padding:8px 10px;border-radius:9px}.comparison{border-top:1px solid #e7edf0;margin-top:22px;padding-top:20px}.comparison-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:11px}.comparison h3{font-size:13px;margin:0}.comparison-tag{font-size:10px;color:#7d929e;font-weight:700}.table-scroller{overflow:auto}table{border-collapse:collapse;width:100%;font-size:11.5px}th{font-size:10px;color:#8c9ba5;font-weight:700;text-align:left;padding:10px 8px;border-bottom:1px solid #e8ecef;white-space:nowrap}td{padding:10px 8px;border-bottom:1px solid #f0f3f5;color:#4a6370}td:not(:first-child),th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}.footer{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#9aa9b1;font-size:11px;margin-top:22px;padding:0 3px}
@media(max-width:1050px){.workspace{grid-template-columns:1fr}.chart-panel{min-height:680px}.chart-canvas{height:350px}}@media(max-width:560px){.app-shell{padding:18px 13px 25px}.topbar{align-items:flex-start}.brand-icon{width:38px;height:38px}.header-state{font-size:10px}.toolbar{align-items:stretch}.upload-control{width:100%}.upload-filename{max-width:calc(100vw - 222px)}.toolbar-actions{width:100%;justify-content:space-between}.panel{padding:18px 14px;border-radius:16px}.stats-panel .metrics{gap:7px}.metric{padding:11px 8px}.metric .metric-value{font-size:19px}.panel h2{font-size:14px}.chart-canvas{height:240px}.chart-bottom{gap:15px}.soft-pill{font-size:9px}.tab{font-size:11px;padding:9px 4px}}
