@font-face{font-family:Noto;src:url('fonts/NotoSans-Regular.ttf')}@font-face{font-family:Noto;src:url('fonts/NotoSans-Bold.ttf');font-weight:700}
:root{color-scheme:dark;--bg:#051320;--panel:#0b2034;--border:#335770;--muted:#a5bccd;--text:#f1f7fc;--cyan:#1ddae1;--red:#ff6574;--yellow:#ffca63}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--bg);color:var(--text);font-family:Noto,Arial,sans-serif}button,select,input{font:inherit}button,select{color:var(--text);background:#102c43;border:1px solid #44657a;border-radius:6px;cursor:pointer}button{padding:6px 12px;white-space:nowrap}button:hover,select:hover{border-color:var(--cyan);background:#193c53}button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}button:disabled{opacity:.4;cursor:default}h1,h2,h3,p{margin:0}#dashboard{position:absolute;top:0;left:0;transform-origin:top left;padding:14px 16px 9px;display:grid;grid-template-rows:46px 44px 80px minmax(220px,1fr) 92px 84px;gap:10px;width:100vw;height:100dvh;background:radial-gradient(ellipse at 50% 0,#122b43 0,transparent 70%),var(--bg)}header,.brand,.header-actions,.control-set,.toolbar,.detail-heading,.timeline,.modal-head{display:flex;align-items:center}header{justify-content:space-between;gap:14px}.brand{gap:14px;min-width:0}.parking-icon{font-weight:700;color:white;border:2px solid var(--cyan);box-shadow:inset 0 0 14px #21d9df33;border-radius:8px;display:grid;place-items:center;flex:none;width:42px;height:42px;font-size:31px;line-height:1}h1{font-size:clamp(22px,2.3vw,32px);letter-spacing:.2px;white-space:nowrap}.divider{height:30px;border-left:1px solid #5f798d;margin:0 4px}.subtitle{color:#cad8e6;font-size:19px;white-space:nowrap}.header-actions{gap:8px}.experimental{font-size:12px;font-weight:700;letter-spacing:1.4px;border:1px solid #26778b;background:#09283a;color:#6ce6e9;padding:6px 10px;border-radius:5px}.quiet{background:transparent;color:var(--muted);padding:6px 9px;font-size:14px}.toolbar{justify-content:space-between;gap:16px;border-bottom:1px solid #28465c;padding-bottom:8px}.control-set{gap:10px}.label{font-size:14px;color:var(--muted)}.segmented{display:flex;gap:5px}.segmented button{font-size:14px;padding:6px 12px}.segmented button[aria-pressed=true]{background:var(--cyan);color:#05202c;border-color:var(--cyan);font-weight:700;box-shadow:0 0 14px #1ddae114}.max-badge{border:1px solid #297384;color:#7be2e4;border-radius:5px;padding:6px 10px;font-size:14px}.toggle{border:0;width:43px;height:25px;border-radius:20px;padding:3px;background:#516477;flex:none}.toggle span{display:block;width:19px;height:19px;border-radius:50%;background:#e9f8fc;box-shadow:0 1px 4px #0006;transition:transform .15s}.toggle[aria-checked=true]{background:#0cbdc8}.toggle[aria-checked=true] span{transform:translateX(18px)}#misuse-label{font-size:14px;min-width:26px}#products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:7px;padding:7px;border:1px solid var(--border);background:#0a2136;border-radius:8px}.product{display:flex;align-items:center;gap:9px;border:1px solid #34566f;background:linear-gradient(110deg,#112c43,#0c2235);border-radius:5px;padding:7px 10px;min-width:0;border-left:3px solid var(--product-color)}.product-name{font-size:14px;font-weight:700;line-height:1.25;flex:1;min-width:0}.product-destination{font-size:13px;color:var(--muted);width:88px}.product select{font-size:13px;width:112px;min-width:0;padding:5px 20px 5px 7px;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='m2 4 4 4 4-4' stroke='%23a5bccd' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 5px center}.product.off{background:#0b1d2e}.product.off .product-name{color:#c3d1de}main{display:flex;min-height:0;gap:10px}#garage-grid{display:flex;gap:10px;flex:1;min-width:0;min-height:0}.panel,.garage{background:linear-gradient(155deg,#10283f,#091c2e 65%);border:1px solid var(--border);border-radius:8px}.garage{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.garage-head{display:flex;justify-content:space-between;align-items:center;padding:12px 14px 8px;gap:8px}.garage-head h2{font-size:21px;display:flex;gap:10px;align-items:center;white-space:nowrap}.garage-head .parking-icon{font-size:23px;width:32px;height:32px;border-radius:6px}.collapse{padding:3px 9px;font-size:19px;background:#173449;color:#9fe6ec}.garage.collapsed{flex:0 0 52px;cursor:pointer}.garage.collapsed .garage-head{flex-direction:column;padding:12px 8px;height:100%;justify-content:flex-start;gap:14px}.garage.collapsed h2{writing-mode:vertical-rl;font-size:17px;letter-spacing:.3px;gap:12px}.garage.collapsed h2 .parking-icon{writing-mode:horizontal-tb;width:30px;height:30px;font-size:22px}.rail-count{writing-mode:vertical-rl;color:var(--muted);font-size:14px;margin-top:auto;margin-bottom:10px}.metrics{display:flex;justify-content:space-between;gap:12px;padding:0 14px;align-items:end}.metric-count{font-size:29px;font-weight:700;line-height:1.2}.metric-count small{font-size:16px;color:var(--muted);font-weight:400}.garage-status{font-size:14px;padding:4px 8px;border-radius:5px;color:#083331;background:#7ae2ca;font-weight:700}.garage-status.full{color:#332304;background:var(--yellow)}.garage-status.over{color:#ffd6dd;background:#692838}.meter{height:7px;background:#284354;border-radius:5px;overflow:hidden;margin:9px 14px 8px;flex:none}.meter-fill{height:100%;background:var(--cyan);border-radius:5px}.garage-meta{display:flex;justify-content:space-between;gap:8px;padding:0 14px 4px;font-size:13px;color:var(--muted)}.garage-meta .excess{color:var(--red);font-weight:700}.chart-box{flex:1;min-height:0;position:relative;margin:0 5px 3px}.chart{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}.summary{flex:0 0 228px;padding:14px;display:flex;flex-direction:column;min-height:0;gap:8px}.eyebrow{font-size:11px;letter-spacing:1.3px;color:#91b1c7;font-weight:700}.summary h2{font-size:17px}#shortage{padding:10px 7px;border:1px solid #a23f53;border-radius:6px;background:#58202d;color:#ffabb5;font-size:17px;text-align:center;line-height:1.3}#shortage strong{font-size:31px;color:#fff;display:block}#shortage.clear{background:#0b3b3c;border-color:#236a64;color:#a2e9d6}#shortage.clear strong{font-size:22px;color:#a2e9d6}.summary-lines{display:grid;gap:7px;padding-top:4px}.summary-lines>div,.peak-line{display:flex;justify-content:space-between;gap:8px;font-size:14px}.summary-lines span,.peak-line span{color:var(--muted)}.summary-lines strong{font-size:16px}.summary-bottom{margin-top:auto;border-top:1px solid #29475f;padding-top:10px;display:grid;gap:7px}.peak-line strong{color:var(--red)}.outline{background:#102c40;font-size:14px}.summary p{font-size:12px;line-height:1.4;color:#a5bccd}.product-detail{padding:9px 13px;display:grid;grid-template-rows:24px 19px 1fr;gap:7px;min-height:0}.detail-heading{gap:12px;justify-content:space-between}.detail-heading h2{font-size:16px;white-space:nowrap}.detail-heading h2 span{font-weight:400;color:var(--muted);font-size:13px;margin-left:6px}.small button{font-size:12px;padding:3px 8px}.detail-heading>strong{font-size:15px;white-space:nowrap;min-width:75px;text-align:right}#mix-bar{display:flex;border-radius:4px;overflow:hidden;background:#1b364b;min-height:18px}#mix-bar>span{height:100%;min-width:0;border-right:1px solid #06152580;cursor:help}#mix-bar .empty{font-size:12px;width:100%;text-align:center;color:var(--muted);padding:0 4px}#mix-legend{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,1fr);gap:3px 24px}.legend-item{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;line-height:1.2}.legend-item .dot{width:8px;height:8px;border-radius:2px;flex:none}.legend-item .name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#b5c9da}.legend-item strong{margin-left:auto;white-space:nowrap;font-size:13px}.legend-item .percentage{color:#89a6bd;font-weight:400;margin-left:4px}.timeline{padding:10px 13px;gap:12px}.time-readout{width:174px;flex:none;display:flex;flex-direction:column;gap:2px;border-right:1px solid #2d4c62}.time-readout strong{font-size:20px;color:#73e8e9}.time-readout>span:last-child{font-size:11px;color:#a5bccd}.slider-area{flex:1;min-width:0}.slider-top{display:flex;justify-content:space-between;font-size:12px;color:var(--muted)}.timeline-key{display:flex;gap:12px}.timeline-key span{display:flex;align-items:center;gap:5px}.timeline-key i{display:inline-block;width:9px;height:9px;border-radius:2px}.teal{background:var(--cyan)}.red{background:var(--red)}.range-wrap{position:relative;height:24px;display:flex;align-items:center;margin:2px 8px}#problem-track{position:absolute;left:0;right:0;top:9px;height:7px;border-radius:6px;overflow:hidden;display:flex}#problem-track span{height:100%;flex:1;background:#128a96}#problem-track span.problem{background:#f75e70}input[type=range]{position:relative;z-index:1;appearance:none;background:transparent;width:calc(100% + 18px);margin:0 -9px;cursor:pointer;height:24px}input[type=range]::-webkit-slider-runnable-track{height:7px;background:transparent}input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;background:#e9fdff;border:3px solid var(--cyan);border-radius:50%;margin-top:-6px;box-shadow:0 0 0 4px #1ddae126}input[type=range]::-moz-range-thumb{width:16px;height:16px;background:#e9fdff;border:3px solid var(--cyan);border-radius:50%}#time-ticks{display:flex;justify-content:space-between;font-size:11px;color:#98b4ca}.step{padding:7px 9px;font-size:13px}.no-garages{display:grid;place-content:center;text-align:center;gap:8px;flex:1;border:1px dashed #35546b;border-radius:8px;color:var(--muted);font-size:16px}.chart text{font-family:Noto,Arial,sans-serif}.chart .axis{fill:#9bb4ca;font-size:12px}.chart .day-label{fill:#e1edf7;font-size:13px;font-weight:700;cursor:pointer}.chart .day-label:hover{fill:var(--cyan)}.chart .peak{font-size:12px;font-weight:700;fill:#e4f7fd}.chart .peak-excess{font-size:11px;font-weight:700;fill:var(--red)}dialog{background:#10273c;color:var(--text);border:1px solid #467089;border-radius:12px;max-width:740px;width:90vw;max-height:90dvh;padding:24px;line-height:1.65;overflow:auto}dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}dialog p{margin-top:14px;font-size:15px;color:#bdd0df}.modal-head{justify-content:space-between}#error{position:fixed;inset:20%;background:#341d29;border:1px solid var(--red);padding:30px;z-index:5}#error[hidden]{display:none}
@media(min-width:1700px){#dashboard{grid-template-rows:54px 48px 80px minmax(250px,1fr) 104px 96px;gap:12px}.product-name{font-size:16px}.summary{flex-basis:260px}.detail-heading h2{font-size:18px}.legend-item{font-size:14px}.legend-item strong{font-size:14px}.small button{font-size:14px}.product-detail{grid-template-rows:28px 24px 1fr}.garage-head h2{font-size:23px}.metric-count{font-size:34px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Compact controls keep every panel inside the fitted viewport. */
.product-destination{width:65px;flex:none;font-size:12px}.product select{width:100px;font-size:12px}.product{gap:7px;padding:6px 8px}.product-name{font-size:13px}.summary{padding:12px;gap:6px}.summary-lines{gap:5px}.summary-lines>div,.peak-line{font-size:13px}.summary-lines strong{font-size:15px}.summary-bottom{gap:5px;padding-top:8px}.summary p{font-size:11px;line-height:1.3}#shortage{padding:7px}#shortage strong{font-size:28px}
@media(min-width:1700px){.product-name{font-size:16px}.product-destination{width:80px;font-size:14px}.product select{width:115px;font-size:14px}.summary{padding:14px;gap:8px}.summary-lines>div,.peak-line{font-size:14px}.summary-lines strong{font-size:16px}}

/* All eight product controls share one compact row; saved height belongs to the charts. */
#products{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:6px;padding:6px}
.product{display:grid;grid-template-columns:34px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 22px;gap:2px 6px;padding:5px 7px;min-height:0;align-items:center}
.product-name{grid-column:1/-1;font-size:13px;line-height:16px;align-self:center;min-width:0}
.product .toggle{width:34px;height:20px;padding:3px;grid-column:1;grid-row:2}
.product .toggle span{width:14px;height:14px}
.product .toggle[aria-checked=true] span{transform:translateX(14px)}
.product-destination{grid-column:2;grid-row:2;width:auto;font-size:12px}
.product select{grid-column:2;grid-row:2;width:100%;height:22px;font-size:11px;line-height:16px;padding:1px 15px 1px 4px;background-position:right 3px center}
@media(min-width:1700px){.product-name{font-size:14px;line-height:17px}.product select{font-size:13px}.product-destination{font-size:13px}}

/* The product legend is a single row as well, keeping the chart area dominant. */
#mix-legend{grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:0 12px;align-items:center}
.legend-item{font-size:12px;gap:5px;min-width:0}.legend-item .name{min-width:0}.legend-item strong{font-size:12px;flex:none}
@media(min-width:1700px){.legend-item{font-size:13px}.legend-item strong{font-size:13px}}

/* Keep occupancy beside the garage name, leaving height for the chart. */
.garage:not(.collapsed){container-type:inline-size}
.garage:not(.collapsed) .garage-head{padding:8px 12px 5px;gap:12px;flex:none}
.garage:not(.collapsed) .garage-head h2{font-size:20px;gap:8px;margin-right:auto}
.garage:not(.collapsed) .garage-head .parking-icon{width:28px;height:28px;font-size:21px}
.garage .metrics{padding:0;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap}
.garage .metric-count{font-size:27px}
.garage .metric-count small{font-size:14px}
.garage .garage-status{font-size:13px;padding:3px 7px}
.garage:not(.collapsed) .collapse{font-size:18px;padding:2px 8px}
.garage .meter{height:4px;margin:0 12px 4px}
.garage .garage-meta{padding:0 12px 0;font-size:12px;line-height:17px}
@container(max-width:480px){
 .garage-head .metrics{flex-direction:column;gap:2px;align-items:flex-end}
 .garage:not(.collapsed) .garage-head{gap:7px;padding:7px 9px 4px;align-items:flex-start}
 .garage:not(.collapsed) .garage-head h2{font-size:16px;gap:6px;padding-top:2px}
 .garage:not(.collapsed) .garage-head .parking-icon{width:24px;height:24px;font-size:18px}
 .garage .metric-count{font-size:21px}
 .garage .metric-count small{font-size:12px}
 .garage .garage-status{font-size:12px;padding:2px 5px}
 .garage .garage-meta{padding:0 9px;font-size:11px}
 .garage .meter{margin-left:9px;margin-right:9px}
}

/* Garage statistics live in the summary; chart cards only need a title. */
.garage:not(.collapsed) .garage-head{padding:6px 10px 2px;align-items:center}
.garage:not(.collapsed) .garage-head h2{padding-top:0}
#garage-summary{display:grid;gap:6px;margin:2px 0}
.garage-summary-card{padding:5px 7px;background:#0a1c2c;border:1px solid #2d4b61;border-radius:5px;min-width:0}
.garage-summary-heading,.garage-summary-status{display:flex;justify-content:space-between;align-items:center;gap:5px}
.garage-summary-heading h3{font-size:13px;white-space:nowrap}
.garage-summary-card .metric-count{font-size:19px;white-space:nowrap}
.garage-summary-card .metric-count small{font-size:11px}
.garage-summary-card .meter{height:3px;margin:3px 0}
.garage-summary-card .garage-status{font-size:11px;padding:1px 4px}
.garage-summary-status{font-size:11px;color:var(--muted);line-height:17px}
.summary{gap:5px}
.summary-bottom{padding-top:6px}
@media(min-width:1700px){.garage-summary-heading h3{font-size:14px}.garage-summary-card .metric-count{font-size:21px}.garage-summary-status,.garage-summary-card .garage-status{font-size:12px}}
/* Fit all three garage summaries even in the minimum-height dashboard. */
.summary{gap:3px}
#garage-summary{gap:4px;margin:1px 0}
.garage-summary-card{padding:3px 6px}
.garage-summary-heading{height:22px}
.garage-summary-card .metric-count{font-size:18px;line-height:22px}
.garage-summary-card .meter{height:2px;margin:2px 0}
.garage-summary-status{line-height:15px}
.garage-summary-card .garage-status{padding:0 4px;line-height:15px}
.summary-lines{gap:3px;padding-top:3px}
.summary-bottom{gap:3px;padding-top:4px}
#spare-note{display:none}
.summary-lines{gap:2px}
.summary-lines>div{line-height:18px}
