:root{--editor-bg: #1e1e1e;--sidebar-bg: #252526;--tabbar-bg: #333333;--accent: #007acc;--text: #d4d4d4;--text-muted: #858585;--border: #3c3c3c;--success: #4ec9b0;--warning: #cca700;--error: #f14c4c;--input-bg: #3c3c3c;--series-1: #3987e5;--series-2: #d95926;--series-3: #199e70;--series-4: #c98500;--series-5: #d55181;--series-6: #008300;--series-7: #9085e9;--series-8: #e66767;--series-other: #858585;--series-unassigned: #8a8a86}:root[data-theme=light],[data-theme=light]{--editor-bg: #ffffff;--sidebar-bg: #f3f3f3;--tabbar-bg: #ececec;--accent: #007acc;--text: #333333;--text-muted: #6e6e6e;--border: #e0e0e0;--success: #16794f;--warning: #9a6700;--error: #b3261e;--input-bg: #ffffff;--series-1: #2a78d6;--series-2: #eb6834;--series-3: #1baf7a;--series-4: #eda100;--series-5: #e87ba4;--series-6: #008300;--series-7: #4a3aa7;--series-8: #e34948;--series-other: #9a9a96;--series-unassigned: #9a9994}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--editor-bg);color:var(--text);font-family:-apple-system,Segoe UI,system-ui,sans-serif;font-size:13px}.mono{font-family:SF Mono,Cascadia Code,Consolas,Roboto Mono,monospace;font-variant-numeric:tabular-nums}button{font-family:inherit;font-size:inherit;background:var(--input-bg);color:var(--text);border:1px solid var(--border);border-radius:3px;padding:5px 10px;cursor:pointer}button:hover{border-color:var(--accent)}button.primary{background:var(--accent);color:#fff;border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}input,select,textarea{font-family:inherit;font-size:inherit;background:var(--input-bg);color:var(--text);border:1px solid var(--border);border-radius:3px;padding:4px 6px}table{border-collapse:collapse;width:100%}th,td{border-bottom:1px solid var(--border);padding:6px 8px;text-align:left;white-space:nowrap}th{color:var(--text-muted);font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.03em}tr:hover td{background:#ffffff08}:root[data-theme=light] tr:hover td,[data-theme=light] tr:hover td{background:#00000008}a{color:var(--accent)}.app-shell{color:var(--text);background:var(--editor-bg);display:flex;height:100vh;width:100vw;overflow:hidden}.activity-bar{width:48px;flex-shrink:0;background:var(--sidebar-bg);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding-top:8px;gap:4px}.activity-bar button{width:36px;height:36px;padding:0;border:none;background:transparent;border-radius:4px;font-size:16px;color:var(--text-muted)}.activity-bar button.active{color:var(--text);border-left:2px solid var(--accent);background:#ffffff0d}.main-column{flex:1;display:flex;flex-direction:column;min-width:0}.tab-bar{background:var(--tabbar-bg);display:flex;flex-wrap:wrap;align-items:center;border-bottom:1px solid var(--border);padding:0 8px;gap:2px;flex-shrink:0}.tab-bar .tab{padding:8px 14px;color:var(--text-muted);border-bottom:2px solid transparent;cursor:pointer;font-size:13px}.tab-bar .tab.active{color:var(--text);border-bottom-color:var(--accent)}.content{flex:1;overflow:auto;padding:20px;background:var(--editor-bg)}.status-bar{background:var(--accent);color:#fff;font-size:11px;padding:3px 12px;display:flex;justify-content:space-between;flex-shrink:0}.card{background:var(--sidebar-bg);border:1px solid var(--border);border-radius:4px;padding:14px;margin-bottom:16px}.flag{border-left:3px solid var(--warning);background:#cca70014;padding:8px 10px;margin-bottom:6px;font-size:12px;border-radius:2px}.flag.error{border-left-color:var(--error);background:#f14c4c14}.delta-positive{color:var(--success)}.delta-negative{color:var(--error)}.provisional-badge{color:var(--warning);font-size:10px;margin-left:4px}.prospective{font-style:italic;opacity:.75}.field-row{display:flex;gap:12px;margin-bottom:10px;align-items:center;flex-wrap:wrap}.field-row label{font-size:12px;color:var(--text-muted);min-width:130px}.login-screen{height:100vh;display:flex;align-items:center;justify-content:center;background:var(--editor-bg)}.login-box{background:var(--sidebar-bg);border:1px solid var(--border);border-radius:6px;padding:32px;width:320px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:10}.modal{background:var(--sidebar-bg);border:1px solid var(--border);border-radius:6px;width:640px;max-width:90vw;max-height:85vh;overflow:auto;padding:20px}.exam-layout{display:flex;gap:16px;align-items:flex-start}.exam-tree{width:280px;flex-shrink:0;position:sticky;top:0;max-height:calc(100vh - 160px);overflow:auto}.exam-detail{flex:1;min-width:0}.tree-facility{margin-bottom:6px}.tree-facility-name{font-weight:600;cursor:pointer;padding:3px 0}.tree-count{color:var(--text-muted);font-weight:400;font-size:11px}.tree-bin{display:flex;align-items:center;gap:6px;padding:3px 6px 3px 18px;cursor:pointer;border-radius:3px}.tree-bin:hover{background:#ffffff0a}.tree-bin.selected{background:#007acc40}.retired-group{opacity:.6}.retired-badge{font-size:10px;margin-left:8px;padding:1px 6px;border-radius:8px;border:1px solid var(--text-muted);color:var(--text-muted);vertical-align:middle}.prov-badge{font-size:10px;padding:1px 6px;border-radius:8px;border:1px solid currentColor;white-space:nowrap}.prov-continuous{color:var(--success)}.prov-periodic_sampled{color:var(--accent)}.prov-manual_estimate{color:var(--warning)}.age-note{font-size:11px;color:var(--text-muted)}.stale-note{font-size:11px;color:var(--warning)}.history-row td{font-size:12px;color:var(--text-muted)}.dist-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.dist-cell{display:flex;flex-direction:column;gap:2px;font-size:11px}.dist-cell input{width:100%}.dist-hour{color:var(--text-muted)}.dist-source{font-size:10px}.src-imported{color:var(--success)}.src-manual{color:var(--warning)}.src-edited{color:var(--accent)}.check-ok{color:var(--success)}.check-bad{color:var(--error)}.recon-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.recon-num{font-size:22px;font-weight:600}.recon-label{font-size:11px;color:var(--text-muted)}.unassigned-row td{color:var(--warning);border-top:1px dashed var(--border)}.total-row td{border-top:2px solid var(--border)}.grid-layout{display:flex;gap:12px;align-items:flex-start}.grid-sidebar{width:250px;flex-shrink:0;position:sticky;top:0;max-height:calc(100vh - 110px);overflow:auto}.grid-main{flex:1;min-width:0}.grid-drilldown{width:clamp(300px,28vw,420px);flex-shrink:0;overflow-x:hidden;position:sticky;top:0;max-height:calc(100vh - 110px);overflow:auto}.seg-toggle{display:inline-flex}.seg-toggle button{border-radius:0}.seg-toggle button:first-child{border-radius:3px 0 0 3px}.seg-toggle button:last-child{border-radius:0 3px 3px 0}.sidebar-section{margin-top:10px}.sidebar-item{display:flex;align-items:center;gap:6px;padding:2px 0;font-size:12px}.sidebar-bin{padding-left:20px}.swatch{display:inline-block;width:10px;height:10px;border-radius:2px;flex-shrink:0;vertical-align:middle}.swatch-hatched,.comp-seg-hatched{background:repeating-linear-gradient(45deg,var(--series-unassigned) 0 2px,transparent 2px 4px);box-shadow:inset 0 0 0 1px var(--series-unassigned)}.legend-row{display:flex;flex-wrap:wrap;gap:4px 10px;margin-bottom:8px}.legend-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--text-muted)}.grid-toolbar{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap}.hour-grid{display:grid;gap:2px}.hour-grid-head{font-weight:600;font-size:12px;padding:4px 6px;position:sticky;top:-20px;background:var(--editor-bg);z-index:1}.hour-grid-label{font-size:11px;color:var(--text-muted);padding:6px 4px;text-align:right}.hour-cell{background:var(--sidebar-bg);border:1px solid transparent;border-radius:3px;padding:4px 6px;text-align:left;display:flex;flex-direction:column;gap:3px;min-height:30px;width:100%;color:var(--text)}.hour-cell:hover{border-color:var(--border)}.hour-cell.selected{border-color:var(--accent)}.hour-cell-empty{background:repeating-linear-gradient(135deg,transparent 0 6px,rgba(128,128,128,.1) 6px 8px)}.hour-grid-day .hour-cell{min-height:42px}.hour-cell-top{display:flex;justify-content:space-between;font-size:11px}.unit{color:var(--text-muted);font-size:10px}.cell-flag{color:var(--warning)}.comp-bar{display:flex;gap:2px;height:6px}.comp-seg{min-width:2px;height:100%}.comp-seg:first-child{border-radius:3px 0 0 3px}.comp-seg:last-child{border-radius:0 3px 3px 0}.comp-seg:only-child{border-radius:3px}.cell-numbers{display:flex;flex-wrap:wrap;gap:2px 8px;font-size:10px;color:var(--text-muted)}.cell-number{display:inline-flex;align-items:center;gap:3px}.grid-tooltip{position:fixed;z-index:20;background:var(--sidebar-bg);border:1px solid var(--border);border-radius:4px;padding:8px 10px;font-size:12px;pointer-events:none;min-width:240px;box-shadow:0 4px 12px #00000059}.tooltip-item{display:flex;gap:6px;align-items:center}.drill-h{margin:14px 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.split-chip{display:inline-flex;align-items:center;gap:3px;margin-right:8px}.hour-cell.in-selection{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background-color:#007acc1f}.context-menu{position:fixed;z-index:30;background:var(--sidebar-bg);border:1px solid var(--border);border-radius:4px;padding:4px 0;min-width:290px;box-shadow:0 6px 18px #0006}.context-head{font-size:11px;color:var(--text-muted);padding:6px 12px 8px;border-bottom:1px solid var(--border);margin-bottom:4px}.context-note{font-size:12px;padding:6px 12px;color:var(--warning)}.context-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:none;border-radius:0;background:transparent;padding:5px 12px}.context-item:hover:not(:disabled){background:#007acc40}.context-sep{height:1px;background:var(--border);margin:4px 0}.undo-bar{display:flex;align-items:center;gap:8px;border-left-color:var(--success);background:#4ec9b014}.drill-table td{white-space:normal}.drill-bins{display:flex;flex-direction:column}.drill-bin{padding:6px 0;border-bottom:1px solid var(--border)}.drill-bin-head{display:flex;align-items:center;gap:6px}.drill-bin-name{flex:1;min-width:0;overflow-wrap:anywhere}.drill-bin-head button{padding:2px 8px;flex-shrink:0}.drill-bin-split{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12px;margin:3px 0 0 16px}.split-chip{white-space:nowrap}.button-link{display:inline-block;background:var(--accent);color:#fff;border-radius:3px;padding:5px 12px;text-decoration:none}.report-stamp{font-size:12px;color:var(--text-muted);border-left:3px solid var(--accent);padding:4px 10px;margin:0 0 12px}.report-stamp strong{color:var(--text)}.chart-card svg{display:block}.chart-grid{stroke:var(--border);stroke-width:1}.chart-baseline{stroke:var(--text-muted);stroke-width:1}.chart-axis{fill:var(--text-muted);font-size:10px;font-family:SF Mono,Cascadia Code,Consolas,Roboto Mono,monospace}.chart-cluster-label{font-size:11px;color:var(--text);text-align:center;line-height:1.2;overflow:hidden;padding:0 2px}.chart-cluster-label.is-unassigned{color:var(--warning)}.context-subhead{font-size:11px;color:var(--text-muted);padding:2px 12px 4px}.context-bins{max-height:220px;overflow-y:auto}.comp-bar-targetable{height:8px}.comp-bar-targetable .comp-seg:hover{filter:brightness(1.25)}.drill-bin{cursor:context-menu}.clickable-row{cursor:pointer}.clickable-row:hover td{background:var(--hover-bg, rgba(127, 127, 127, .08))}.focused-row td{background:#007acc24}.focused-row td:first-child{box-shadow:inset 3px 0 #007acc}.chart-focus-bar{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:13px}.chart-unit{font-size:10px;color:var(--text-muted);margin:2px 0 -4px}.link-button{background:none;border:none;padding:0;color:var(--accent, #3794ff);cursor:pointer;text-decoration:underline;font-size:inherit}
