:root{--niner-green: #005035;--niner-green-dark: #00301F;--niner-green-light: #0B6B48;--niner-gold: #A49665;--niner-gold-light: #D8CB97;--niner-gold-muted: rgba(164, 150, 101, .15);--bg-primary: #F4F2EA;--bg-card: #FFFFFF;--bg-sunken: #FAF9F4;--text-primary: #17201B;--text-secondary: #5A635E;--text-on-dark: #FFFFFF;--border-color: #E3DFD2;--border-strong: #CFC9B6;--shadow-sm: 0 1px 2px rgba(23, 32, 27, .06), 0 1px 1px rgba(23, 32, 27, .04);--shadow-md: 0 8px 24px -12px rgba(0, 48, 31, .35);--radius-lg: 18px;--radius-md: 12px;--open-bg: #DCF2E3;--open-fg: #0B5A33;--open-strong: #1E8E4E;--filling-bg: #FBF0C7;--filling-fg: #6B4D00;--filling-strong: #D1A10F;--tight-bg: #FDE1CC;--tight-fg: #8A3A00;--tight-strong: #E06A12;--full-bg: #F8D7DC;--full-fg: #8E1A2C;--full-strong: #C7283F;--font-display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;--font-body: "Public Sans", system-ui, -apple-system, sans-serif;font-family:var(--font-body);line-height:1.5;font-weight:400;color:var(--text-primary);background-color:var(--bg-primary);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(1200px 500px at 100% -10%,rgba(164,150,101,.16),transparent 60%),radial-gradient(900px 420px at -10% 0%,rgba(0,80,53,.07),transparent 60%),var(--bg-primary)}button{font:inherit}:focus-visible{outline:3px solid var(--niner-gold);outline-offset:2px}a{color:var(--niner-green);text-decoration:none}a:hover{color:var(--niner-green-light)}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}#root{min-height:100vh;display:flex;flex-direction:column}.header{color:var(--text-on-dark);background:repeating-linear-gradient(115deg,rgba(255,255,255,.035) 0 2px,transparent 2px 46px),linear-gradient(135deg,var(--niner-green-dark) 0%,var(--niner-green) 70%,var(--niner-green-light) 100%);position:relative;box-shadow:var(--shadow-md)}.header:after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,var(--niner-gold) 0%,var(--niner-gold-light) 50%,var(--niner-gold) 100%)}.header-inner{max-width:1200px;margin:0 auto;padding:1.1rem 1.5rem 1.25rem;display:flex;align-items:center;justify-content:space-between;gap:1.25rem}.brand{display:flex;align-items:center;gap:.85rem;min-width:0}.brand-mark{display:grid;place-items:center;width:46px;height:46px;flex-shrink:0;border-radius:12px;background:var(--niner-gold);color:var(--niner-green-dark);font-family:var(--font-display);font-weight:800;font-size:1.6rem;box-shadow:inset 0 0 0 3px #ffffff59}.brand-text h1{margin:0;font-family:var(--font-display);font-size:1.6rem;font-weight:800;letter-spacing:-.02em;line-height:1.05}.brand-text p{margin:.2rem 0 0;font-size:.85rem;opacity:.82}.dashboard{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:1.5rem 1.5rem 2rem;display:flex;flex-direction:column;gap:1rem}.view-tabs{display:flex;gap:.3rem;padding:.3rem;border-radius:14px;background:#0000002e;border:1px solid rgba(255,255,255,.14)}.view-tab{display:inline-flex;align-items:center;gap:.45rem;min-height:42px;padding:.5rem .95rem;border:0;border-radius:10px;background:transparent;color:#ffffffd1;font-weight:600;font-size:.9rem;cursor:pointer;transition:background .15s ease,color .15s ease;-webkit-tap-highlight-color:transparent}.view-tab:hover{color:#fff;background:#ffffff14}.view-tab--active,.view-tab--active:hover{background:var(--bg-card);color:var(--niner-green);box-shadow:0 2px 6px #0000002e}.view-tab-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.panel,.controls-card,.capacity{background:var(--bg-card);border:1px solid var(--border-color);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm);padding:1.15rem 1.25rem}.panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:1rem}.panel-title{margin:0;font-family:var(--font-display);font-size:1.15rem;font-weight:800;letter-spacing:-.01em}.panel-copy{margin:.2rem 0 0;font-size:.85rem;color:var(--text-secondary)}.panel-badge{display:inline-flex;align-items:center;padding:.5rem .8rem;border-radius:999px;border:1px solid var(--border-color);background:var(--bg-sunken);color:var(--text-secondary);font-size:.76rem;font-weight:600;white-space:nowrap}.capacity-head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.capacity-title{margin:0;font-family:var(--font-display);font-size:1.65rem;font-weight:800;letter-spacing:-.02em;line-height:1.1}.capacity-sub{margin:.3rem 0 0;color:var(--text-secondary);font-size:.9rem}.freshness{display:inline-flex;align-items:center;gap:.5rem;padding:.45rem .8rem;border-radius:999px;background:var(--open-bg);color:var(--open-fg);font-size:.8rem;font-weight:600;white-space:nowrap}.freshness-dot{width:8px;height:8px;border-radius:50%;background:var(--open-strong);box-shadow:0 0 #1e8e4e80;animation:pulse 2.4s ease-out infinite}.freshness--stale{background:var(--tight-bg);color:var(--tight-fg)}.freshness--stale .freshness-dot{background:var(--tight-strong);animation:none}@keyframes pulse{0%{box-shadow:0 0 #1e8e4e73}70%{box-shadow:0 0 0 8px #1e8e4e00}to{box-shadow:0 0 #1e8e4e00}}.capacity-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem 1rem;margin:1.1rem 0 .9rem}.segmented{display:inline-flex;padding:3px;border-radius:12px;background:var(--bg-sunken);border:1px solid var(--border-color)}.segmented button{min-height:38px;padding:.4rem .85rem;border:0;border-radius:9px;background:transparent;color:var(--text-secondary);font-size:.84rem;font-weight:600;cursor:pointer}.segmented button[aria-pressed=true]{background:var(--bg-card);color:var(--niner-green);box-shadow:var(--shadow-sm)}.legend{display:flex;flex-wrap:wrap;gap:.4rem .9rem;margin:0;padding:0;list-style:none;font-size:.78rem}.legend-item{display:inline-flex;align-items:center;gap:.35rem}.legend-swatch{width:12px;height:12px;border-radius:4px;background:var(--lvl-bg);box-shadow:inset 0 0 0 2px var(--lvl-strong)}.legend-label{font-weight:700;color:var(--lvl-fg)}.legend-range{color:var(--text-secondary)}.lvl-open{--lvl-bg: var(--open-bg);--lvl-fg: var(--open-fg);--lvl-strong: var(--open-strong)}.lvl-filling{--lvl-bg: var(--filling-bg);--lvl-fg: var(--filling-fg);--lvl-strong: var(--filling-strong)}.lvl-tight{--lvl-bg: var(--tight-bg);--lvl-fg: var(--tight-fg);--lvl-strong: var(--tight-strong)}.lvl-full{--lvl-bg: var(--full-bg);--lvl-fg: var(--full-fg);--lvl-strong: var(--full-strong)}.lvl-none{--lvl-bg: var(--bg-sunken);--lvl-fg: var(--text-secondary);--lvl-strong: var(--border-strong)}.status-chip{display:inline-flex;align-items:baseline;gap:.45rem;padding:.3rem .65rem .3rem .55rem;border-radius:10px;background:var(--lvl-bg);color:var(--lvl-fg);border-left:4px solid var(--lvl-strong);white-space:nowrap}.status-chip-value{font-family:var(--font-display);font-weight:800;font-size:1.2rem;font-variant-numeric:tabular-nums;line-height:1.1}.status-chip-label{font-size:.68rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.status-chip--lg{flex-direction:column;align-items:flex-end;gap:0;padding:.35rem .7rem;border-left:0;border-bottom:4px solid var(--lvl-strong)}.status-chip--lg .status-chip-value{font-size:1.9rem}.forecast-cell{display:inline-block;min-width:3.6rem;padding:.32rem .45rem;border-radius:8px;background:var(--lvl-bg);color:var(--lvl-fg);font-weight:700;font-size:.88rem;font-variant-numeric:tabular-nums;text-align:center}.is-estimated{background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.55) 0 4px,transparent 4px 9px);font-style:italic}.trend{display:inline-flex;align-items:center;gap:.35rem;font-size:.82rem;font-weight:600;white-space:nowrap}.trend-icon{font-size:1rem;line-height:1}.trend--filling{color:var(--tight-fg)}.trend--emptying{color:var(--open-fg)}.trend--steady,.trend--none{color:var(--text-secondary)}.deck-name{display:flex;flex-direction:column;min-width:0}.deck-name-main{font-family:var(--font-display);font-weight:700;font-size:1.02rem;color:var(--text-primary);letter-spacing:-.01em}.deck-name-sub{font-size:.76rem;color:var(--text-secondary);font-weight:500}.cap-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--border-color);border-radius:var(--radius-md)}.cap-table{width:100%;border-collapse:separate;border-spacing:0}.cap-table th,.cap-table td{padding:.6rem .7rem;border-bottom:1px solid var(--border-color);text-align:left;vertical-align:middle}.cap-table thead th{background:var(--bg-sunken);color:var(--text-secondary);font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}.cap-table .num{text-align:center}.cap-table tbody tr{animation:rise .45s ease both}.cap-table tbody tr:hover{background:#a496650f}.cap-table tbody tr:last-child th,.cap-table tbody tr:last-child td{border-bottom:0}.cap-table tbody th{font-weight:inherit;min-width:190px}.cap-cards{display:none;margin:0;padding:0;list-style:none;flex-direction:column;gap:.65rem}.cap-card{border:1px solid var(--border-color);border-radius:var(--radius-md);padding:.8rem .85rem .7rem;background:var(--bg-card);animation:rise .45s ease both}.cap-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.cap-card-forecast{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.3rem;margin-top:.7rem}.cap-card-step{display:flex;flex-direction:column;align-items:stretch;gap:.2rem;text-align:center}.cap-card-step-label{font-size:.66rem;font-weight:700;letter-spacing:.04em;color:var(--text-secondary)}.cap-card-step .forecast-cell{min-width:0;padding:.35rem .1rem;font-size:.8rem}.cap-card-foot{margin-top:.55rem}.cap-table tbody tr:nth-child(2),.cap-card:nth-child(2){animation-delay:.04s}.cap-table tbody tr:nth-child(3),.cap-card:nth-child(3){animation-delay:.08s}.cap-table tbody tr:nth-child(4),.cap-card:nth-child(4){animation-delay:.12s}.cap-table tbody tr:nth-child(5),.cap-card:nth-child(5){animation-delay:.16s}.cap-table tbody tr:nth-child(6),.cap-card:nth-child(6){animation-delay:.2s}.cap-table tbody tr:nth-child(7),.cap-card:nth-child(7){animation-delay:.24s}.cap-table tbody tr:nth-child(8),.cap-card:nth-child(8){animation-delay:.28s}.cap-table tbody tr:nth-child(9),.cap-card:nth-child(9){animation-delay:.32s}.cap-table tbody tr:nth-child(n+10),.cap-card:nth-child(n+10){animation-delay:.36s}@keyframes rise{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.estimate-tag{display:inline-block;margin-left:.4rem;padding:.02rem .4rem;border-radius:999px;border:1px dashed currentColor;font-family:var(--font-body);font-size:.66rem;font-weight:700;letter-spacing:.03em;color:var(--text-secondary);vertical-align:middle}.sensor-issue-note{margin:.85rem 0 0;font-size:.82rem;color:var(--text-secondary)}.controls-card{display:flex;flex-direction:column;gap:1rem}.status-summary{display:flex;flex-wrap:wrap;gap:.75rem;align-items:stretch}.status-pill{min-width:170px;flex:1 1 210px;padding:.75rem .95rem;border-radius:var(--radius-md);border:1px solid rgba(164,150,101,.28);background:linear-gradient(180deg,#a4966521,#a496650d);display:flex;flex-direction:column;gap:.15rem}.status-pill-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-secondary)}.status-pill-value{font-family:var(--font-display);font-size:1rem;font-weight:700}.status-badge{display:inline-flex;align-items:center;gap:.45rem;margin-left:auto;min-height:44px;padding:.6rem .95rem;border-radius:999px;border:1px solid var(--border-color);background:var(--bg-card);color:var(--text-secondary);font-size:.82rem}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--open-strong);flex-shrink:0}.status-dot--error{background:var(--full-strong)}.deck-filter{display:flex;flex-direction:column;gap:.7rem}.deck-filter-header{display:flex;align-items:baseline;justify-content:space-between;gap:.75rem}.deck-filter-title{margin:0;font-family:var(--font-display);font-size:1rem;font-weight:700}.deck-filter-copy{margin:0;font-size:.8rem;color:var(--text-secondary)}.deck-toggles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.55rem}.deck-toggle{display:flex;align-items:center;gap:.55rem;width:100%;min-height:46px;padding:.7rem .85rem;border-radius:var(--radius-md);border:1px solid var(--border-color);background:var(--bg-card);font-size:.85rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease;-webkit-tap-highlight-color:transparent}.deck-toggle:hover{border-color:var(--niner-gold);box-shadow:var(--shadow-sm)}.deck-toggle:focus-within{outline:3px solid var(--niner-gold);outline-offset:2px}.deck-toggle--hidden{opacity:.5}.deck-toggle input[type=checkbox]{position:absolute;opacity:0;width:1px;height:1px}.deck-toggle-swatch{width:12px;height:12px;flex-shrink:0;border-radius:999px;border:2px solid}.deck-toggle-label{font-weight:600}.table-shell{overflow-x:auto;-webkit-overflow-scrolling:touch}.data-table{width:100%;border-collapse:separate;border-spacing:0;font-size:.85rem}.data-table th,.data-table td{padding:.7rem .8rem;border-bottom:1px solid var(--border-color);text-align:left;white-space:nowrap;font-variant-numeric:tabular-nums}.data-table thead th{position:sticky;top:0;z-index:1;background:var(--bg-sunken);color:var(--text-secondary);font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase}.data-table tbody th{position:sticky;left:0;z-index:1;background:var(--bg-card);font-weight:700}.data-table tbody tr:last-child th,.data-table tbody tr:last-child td{border-bottom:0}.panel--graph{overflow:hidden}.chart-scroll{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;padding-bottom:.35rem}.chart-container{position:relative;height:clamp(360px,60vh,560px);min-width:720px}.legend-help{display:flex;flex-wrap:wrap;align-items:center;gap:.85rem 1.1rem;margin-top:.85rem;padding-top:.85rem;border-top:1px solid var(--border-color);font-size:.74rem;color:var(--text-secondary)}.legend-help-item{display:flex;align-items:center;gap:.4rem}.legend-help-line{width:22px;height:0;border-top:2px solid var(--text-secondary)}.legend-help-line--dashed{border-top-style:dashed}.legend-help-line--now{border-top:1.5px dashed var(--niner-gold)}.analytics-layout{display:flex;flex-direction:column;gap:1rem}.analytics-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem}.analytics-card{display:flex;flex-direction:column;gap:.25rem;padding:.9rem;border-radius:var(--radius-md);border:1px solid rgba(0,80,53,.12);background:linear-gradient(180deg,#0050350f,#00503505)}.analytics-card-label{font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--text-secondary)}.analytics-card-value{font-family:var(--font-display);font-size:1.3rem;font-weight:800;font-variant-numeric:tabular-nums}.analytics-card-meta{font-size:.78rem;color:var(--text-secondary)}.analytics-state{min-height:260px}.loading-container{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem;padding:4rem 2rem}.loading-spinner{width:36px;height:36px;border:3px solid var(--border-color);border-top-color:var(--niner-green);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{font-size:.9rem;color:var(--text-secondary)}.error-banner{padding:.85rem 1rem;border-radius:var(--radius-md);border:1px solid #F3B5BF;background:var(--full-bg);color:var(--full-fg);font-size:.88rem}.empty-state{padding:4rem 2rem;text-align:center;color:var(--text-secondary)}.footer{max-width:1200px;width:100%;margin:0 auto;padding:1.25rem 1.5rem 1.75rem;text-align:center;font-size:.74rem;color:var(--text-secondary)}@media(max-width:760px){.cap-table-wrap{display:none}.cap-cards{display:flex}.header-inner{padding:.85rem 1rem 1rem}.brand-mark{width:38px;height:38px;font-size:1.3rem;border-radius:10px}.brand-text h1{font-size:1.3rem}.brand-text p{font-size:.76rem}.view-tabs{position:fixed;left:0;right:0;bottom:0;z-index:20;justify-content:space-around;gap:0;padding:.35rem .5rem calc(.35rem + env(safe-area-inset-bottom));border-radius:0;border:0;border-top:1px solid var(--border-color);background:#fffffff0;backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);box-shadow:0 -6px 20px -14px #00000059}.view-tab{flex:1;flex-direction:column;justify-content:center;gap:.15rem;min-height:52px;padding:.35rem .25rem;color:var(--text-secondary);font-size:.72rem}.view-tab:hover{background:transparent;color:var(--text-primary)}.view-tab--active,.view-tab--active:hover{background:#00503514;color:var(--niner-green);box-shadow:none}.view-tab-icon{width:22px;height:22px}.dashboard{padding:.9rem .75rem .5rem;gap:.8rem}.footer{padding:.75rem 1rem calc(5.25rem + env(safe-area-inset-bottom))}.panel,.controls-card,.capacity{padding:.95rem .9rem;border-radius:14px}.capacity-head{flex-direction:column;gap:.6rem}.capacity-title{font-size:1.35rem}.capacity-sub{font-size:.84rem}.capacity-toolbar{flex-direction:column;align-items:stretch}.segmented button{flex:1}.legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.panel-header,.deck-filter-header{flex-direction:column;align-items:flex-start}.status-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.status-pill{min-width:0}.status-badge{grid-column:1 / -1;margin-left:0;border-radius:var(--radius-md)}.deck-toggles{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-container{min-width:620px;height:clamp(320px,52vh,440px)}.analytics-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:380px){.brand-text p{display:none}.cap-card-forecast{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:.45rem}.legend{grid-template-columns:1fr}}
