:root{--navy:#0f1f33;--page-bg:#eef2f6;--card-bg:#fff;--border:#d9e0e7;--text:#1c2b3a;--muted:#5b6b7b;--teal:#13808a;--cyan:#5cc8dc;--orange:#e9a23b;--grey-dot:#c5ccd3}*{box-sizing:border-box}body{color:var(--text);background:var(--page-bg);margin:0;font-family:system-ui,Segoe UI,Roboto,sans-serif}h1,h2,p{margin:0}.page{padding:28px 32px 48px}.y-title{color:var(--muted);margin:0 0 8px;font-size:14px}.page-header{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px;display:flex}h1{color:var(--navy);margin-bottom:8px;font-size:44px}.intro{max-width:640px;color:var(--muted);line-height:1.5}.filters{flex-shrink:0;gap:16px;display:flex}.filter-box{border:1px solid var(--border);min-height:48px;color:var(--text);background:#fff;border-radius:10px;align-items:center;gap:10px;padding:0 16px;font-size:16px;display:flex}.switch{cursor:pointer}.switch input{display:none}.switch-track{background:#ccd4dc;border-radius:999px;width:44px;height:24px;position:relative}.switch-track:after{content:"";background:#fff;border-radius:50%;width:18px;height:18px;position:absolute;top:3px;left:3px}.switch input:checked+.switch-track{background:var(--teal)}.switch input:checked+.switch-track:after{left:23px}.grid{grid-template-columns:1.7fr 1fr;gap:24px;display:grid}.card{background:var(--card-bg);border:1px solid var(--border);border-radius:16px;padding:24px 28px}.card-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;display:flex}h2{color:var(--navy);font-size:22px}.card-header.stacked{flex-direction:column;align-items:flex-start;gap:2px}.muted{color:var(--muted)}.legend{color:var(--muted);align-items:center;gap:6px;font-size:15px;display:flex}.dot-key{background:var(--grey-dot);border-radius:50%;width:12px;height:12px;margin-left:10px}.dot-key.selected{background:var(--orange);border:1px solid #333}.chart{height:290px;display:flex}.y-axis{width:44px;color:var(--muted);flex-direction:column;justify-content:space-between;font-size:14px;display:flex}.y-axis span{align-items:center;height:0;display:flex}.plot-area{background:repeating-linear-gradient(#e3e8ed 0 1px,#0000 1px 25%);border-bottom:2px solid #9aa6b2;flex:1;position:relative}.scatter-canvas{pointer-events:none;width:100%;height:100%;position:absolute;inset:0}.selection-box{z-index:1;border:2px dashed var(--teal);background:#5cc8dc26;width:13.3%;position:absolute;top:0;bottom:0;left:0}.selection-label{width:300px;color:var(--muted);background:#ffffffe6;border-radius:6px;flex-direction:column;padding:4px 8px;font-size:15px;display:flex;position:absolute;top:8px;left:calc(100% + 12px)}.selection-label strong{color:var(--text)}.selection-box.flip .selection-label{text-align:right}.empty-message{color:var(--muted);text-align:center}.plot-area .empty-message{position:absolute;top:50%;left:0;right:0}.slider-row,.x-axis,.axis-title{margin-left:44px}.slider-row input{width:100%;accent-color:var(--teal);margin:8px 0 0}.x-axis{color:var(--muted);justify-content:space-between;font-size:14px;display:flex}.x-axis span{white-space:nowrap;justify-content:center;width:0;display:flex}.x-axis span:last-child{justify-content:flex-end}.axis-title{text-align:center;color:var(--muted);margin-top:6px;font-size:14px}.map{background:#e3e8ed;border-radius:10px;height:340px;overflow:hidden}.map-error{border:2px dashed var(--border);color:var(--muted);justify-content:center;align-items:center;display:flex}.popup{color:var(--text);flex-direction:column;gap:2px;font-family:system-ui,Segoe UI,Roboto,sans-serif;font-size:14px;display:flex}.popup strong{color:var(--navy)}.popup-spilling{color:#8a4f00;margin-top:4px;font-weight:700}.popup-hint{color:var(--muted);margin-top:6px;font-size:13px}.link-button{color:var(--teal);cursor:pointer;background:0 0;border:none;font-size:16px;font-weight:600;text-decoration:underline}.ranking{border-collapse:collapse;width:100%;font-size:16px}.ranking th{text-align:left;color:var(--muted);border-bottom:1px solid var(--border);padding:8px 8px 12px;font-weight:400}.ranking td{border-bottom:1px solid #edf0f3;padding:14px 8px}.ranking td:nth-child(n+3){white-space:nowrap}.pipes{color:var(--muted);font-size:13px;display:block}.ranking tr.top-row{background:#fdf3e6}.bar{vertical-align:middle;background:#e6ebef;border-radius:3px;width:120px;height:6px;margin-left:10px;display:inline-block}.bar-fill{background:var(--teal);border-radius:3px;height:100%;display:block}.badge{white-space:nowrap;border-radius:999px;padding:4px 14px;font-size:15px;font-weight:600;display:inline-block}.badge-spilling{background:var(--orange);color:var(--navy)}.badge-ok{border:1.5px solid var(--teal);color:var(--teal)}.card-dark{background:var(--navy);color:#fff;flex-direction:column;justify-content:space-between;gap:24px;display:flex}.stat{align-items:center;gap:24px;display:flex}.gauge{border:3px solid #c9d3dd;border-radius:15px;flex-shrink:0;width:30px;height:110px;position:relative}.gauge-fill{background:var(--cyan);border-radius:10px;height:0;max-height:calc(100% - 6px);position:absolute;bottom:3px;left:3px;right:3px}@media (prefers-reduced-motion:no-preference){.gauge-fill{transition:height .6s ease-out}.selection-box{transition:width .1s linear}}.stat-label{font-size:18px}.stat-number{color:var(--cyan);font-size:84px;font-weight:800;line-height:1}.stat-number.is-empty{color:#4b5d72}.stat-text{font-size:19px;line-height:1.4}.stat-buttons{gap:14px;display:flex}.button-primary,.button-outline{cursor:pointer;border-radius:10px;padding:14px 24px;font-size:18px;font-weight:600;text-decoration:none}.button-primary{background:var(--cyan);color:var(--navy)}.button-outline{color:#fff;background:0 0;border:1px solid #6f8193}@media (max-width:1100px){.page-header{flex-wrap:wrap}.filters{flex-wrap:wrap;flex-shrink:1}.grid{grid-template-columns:1fr}.card{min-width:0;overflow-x:auto}.stat-number{font-size:60px}}.footer{background:var(--navy);color:#c9d3dd;padding:28px 0;font-size:15px}.footer-inner{padding:0 32px}.footer p{margin:0}.footer p+p{margin-top:4px}@media (max-width:700px){.footer-inner{padding:0 16px}.page{padding-left:16px;padding-right:16px}h1{font-size:32px}.card{padding:20px 16px}.card-header,.legend,.stat-buttons{flex-wrap:wrap}.selection-label{width:170px;font-size:13px}.x-axis span:nth-child(2n){visibility:hidden}.ranking{font-size:14px}.ranking th:first-child,.ranking td:first-child,.ranking th:nth-child(3),.ranking td:nth-child(3){display:none}.ranking td{padding:12px 6px}.badge{padding:3px 8px;font-size:13px}.bar{display:none}.stat-number{font-size:48px}}.plot-area{cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none}.selection-box.is-hidden{display:none}.brush-box{z-index:2;pointer-events:none;background:#e9a23b24;border:2px dashed #b06f0f;display:none;position:absolute}.brush-box.is-visible{display:block}.brush-label{width:max-content;max-width:380px;color:var(--muted);background:#ffffffeb;border-radius:6px;flex-direction:column;padding:4px 8px;font-size:14px;display:flex;position:absolute;bottom:calc(100% + 6px);left:0}.brush-label strong{color:var(--text)}.brush-label:empty,.brush-label strong:empty+span{display:none}.brush-box.label-below .brush-label{top:calc(100% + 6px);bottom:auto}.brush-box.label-right .brush-label{text-align:right;left:auto;right:0}
