:root{font-family:Inter,"Segoe UI",Arial,sans-serif;color:#eef2fa;background:#0b0f18;color-scheme:dark}
*{box-sizing:border-box}body{margin:0}a{color:#c5baff;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}[hidden]{display:none!important}
.shell{max-width:1200px;margin:auto;padding:24px}.app-header{display:flex;justify-content:space-between;align-items:center;font-size:13px}.brand{font-size:14px;font-weight:800;letter-spacing:.17em}.intro{padding:18px 0 24px}.intro h1{font-size:38px;letter-spacing:-.04em;margin:8px 0 12px}.intro p{color:#a9b5ca;margin:0}.eyebrow{font-size:10px;letter-spacing:.17em;color:#baacff!important;font-weight:700}
.panel{background:#151e2f;border:1px solid #303b50;border-radius:16px;padding:24px}h2{font-size:20px;margin:0 0 12px}h3{margin:0 0 12px;font-size:18px}.upload{display:flex;justify-content:space-between;gap:24px;align-items:center}.upload p,.upload small{color:#a9b5ca;font-size:13px}.upload small{font-size:11px}.upload-actions{display:flex;gap:10px;flex-shrink:0}.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 16px;border-radius:10px;border:1px solid #45516a;font-size:13px;font-weight:650;text-align:center;position:relative;touch-action:manipulation}.primary{color:#17112e;background:#b4a4ff;border-color:transparent}.secondary{color:#e4e9f6;background:#242d40}.button input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}button:focus-visible,a:focus-visible,label:focus-within,input:focus-visible,select:focus-visible{outline:3px solid #cabbff;outline-offset:3px}
#status{font-size:13px;line-height:1.6;color:#b4c4d8;white-space:pre-line}#status.error{color:#ffabb8}.toolbar{display:flex;flex-wrap:wrap;gap:18px;align-items:end;margin:24px 0 14px}.toolbar label,#studyActions label{display:flex;flex-direction:column;font-size:11px;gap:7px;color:#bcc7da}.toolbar input,.toolbar select,#studyActions input{background:#0f1624;color:#fff;border:1px solid #45516a;border-radius:8px;min-height:42px;padding:8px 12px;max-width:100%;width:250px}.exports{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}#studyActions{display:flex;align-items:end;gap:14px;margin:16px 0}.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}.feature-grid p{font-size:13px;color:#a9b5ca;line-height:1.7}.feature-grid b{display:block;color:white;font-size:15px}.empty{margin-top:30px}
.report{color:#233047;background:white;border-radius:14px;padding:28px;margin:22px 0;color-scheme:light}.report h2{font-size:24px}.report p{font-size:12px;line-height:1.65}.report small{font-size:11px}.report .muted{color:#5c687b}.report .source{overflow-wrap:anywhere}.report .metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin:22px 0}.metric{border-left:3px solid #c6bee8;padding:0 0 0 12px}.metric span{display:block;font-size:10px;color:#5c687b;margin-bottom:7px}.metric strong{font-size:21px;font-weight:650;white-space:nowrap}.metric small{font-size:10px;font-weight:400}.chart-card{margin:22px 0;break-inside:avoid}.chart-card svg{width:100%;display:block;height:auto}.legend{display:flex;gap:18px;font-size:11px;color:#5c687b;margin:8px 0 4px;flex-wrap:wrap}.legend span:before{content:"";display:inline-block;width:18px;height:3px;margin-right:6px;vertical-align:middle;background:var(--key)}.warning{background:#fff4db;border-left:3px solid #d3a043;padding:12px 16px;color:#694e1f}.warning p{margin:4px 0}.report table{border-collapse:collapse;width:100%;font-size:12px;margin:12px 0}.report th{background:#edf0f6;color:#536071;text-align:left;font-size:11px}.report th,.report td{padding:10px 12px;border-bottom:1px solid #e3e8f1}.report td:not(:first-child){font-variant-numeric:tabular-nums}.scroll-table{overflow:auto}.report details{margin:18px 0;font-size:12px}.report summary{cursor:pointer;font-weight:600}.report li{font-size:12px;line-height:1.7}.report a{color:#4f3d9a;text-decoration:underline}.sample-tag{color:#8d5e0c;background:#fff0ce;padding:5px 9px;border-radius:4px;font-size:11px;display:inline-block;margin-bottom:12px}.signal{color:#b02d49;font-weight:600}.report-title{font-size:25px;margin-bottom:7px}.comparison{margin-bottom:24px}.print-only,#printReport{display:none}.report .notes{border-top:1px solid #e2e7ef;margin-top:18px;padding-top:10px}.report .notes p{font-size:10px}.report .unit-list{max-height:220px;overflow:auto}.report footer{color:#5c687b;font-size:10px}body>footer{font-size:11px;color:#9aa8bf}
@media(max-width:800px){.shell{padding:18px}.intro h1{font-size:30px}.upload{flex-direction:column;align-items:stretch}.upload-actions{flex-wrap:wrap}.toolbar{padding:18px}.exports{margin:0}.toolbar label,.toolbar input,.toolbar select{width:100%}.feature-grid{grid-template-columns:1fr 1fr}.report{padding:18px}.report .metrics{grid-template-columns:repeat(3,1fr);gap:16px}.metric strong{font-size:19px}.report th,.report td{padding:8px;white-space:nowrap}#studyActions{align-items:center;flex-wrap:wrap}#studyActions input{width:100%}.chart-card{overflow-x:auto}.chart-card svg{min-width:650px}}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white!important;color:#233047}body>.app-header,body>main,body>footer{display:none!important}#printReport{display:block}.report{padding:0;margin:0;border:0;border-radius:0}.report-title{font-size:22px}.print-study{break-before:page}.spc-page{break-before:page}.report .metrics{margin:12px 0}.chart-card{margin:12px 0;overflow:visible}.chart-card svg{min-width:0;max-height:250px}.report p{font-size:10px;line-height:1.45}.report h3{font-size:14px}.warning{padding:7px 12px}.report details{display:none}.report table{font-size:10px}.report th,.report td{padding:6px 9px}.screen-only{display:none}.print-only{display:block}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
