
/* Layout: one full-height screen. Brand bar, the race filling the middle, a dock with Play/Pause and Settings. Deliberately a single night look. */
:root{
  color-scheme:dark;
  --bg:#0b1418; --panel:#13222a; --panel-2:#1a2d36; --fg:#eef4f2; --muted:#8fa6a8; --line:#24383f;
  --gold:#e8bf6a; --accent:#3fd0b6; --accent-ink:#04211c;
  --c1:#3fd0b6; --c2:#6aa8f0; --c3:#f08a5d; --c4:#b394ee; --c5:#e8bf6a; --c6:#62cc84; --c7:#ee7fae; --c8:#5fc3d8; --c9:#d1a37a; --c10:#8f9ff5;
  --display:"Bricolage Grotesque","Segoe UI",system-ui,sans-serif;
  --body:"IBM Plex Sans","Segoe UI",system-ui,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,Consolas,monospace;
}
*{box-sizing:border-box}
*{scrollbar-width:thin;scrollbar-color:#36535c transparent}
*::-webkit-scrollbar{width:8px;height:8px}
*::-webkit-scrollbar-thumb{background:#36535c;border:2px solid transparent;border-radius:999px;background-clip:padding-box}
*::-webkit-scrollbar-track{background:transparent}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--body);margin:0;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
.app{height:100%;max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:10px;
  padding-block:14px 12px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
header{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.brand{font-family:var(--display);font-weight:800;font-size:clamp(24px,5.4vw,36px);letter-spacing:-.02em;line-height:1;margin:0}
.brand span{color:var(--gold)}
.brandwrap{display:grid;gap:5px}
.lab{display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.lab-tile{width:40px;height:40px;flex:none;border-radius:11px;background:#1B5FD6;display:grid;place-items:center}
.lab-tile svg{width:28px;height:28px}
.lab-name{font-family:"Sora",var(--body);font-size:16px;line-height:1.1;letter-spacing:-.02em;color:var(--fg)}
.lab-name b{font-weight:700}.lab-name span{font-weight:400;color:#7CC4FF}
.lab a{display:block;margin-top:3px;color:var(--gold);text-decoration:none;font-family:var(--mono);font-size:12.5px;user-select:text}
.lab a:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.meta{font-size:12.5px;color:var(--muted);letter-spacing:.02em}
.meta b{color:var(--fg);font-weight:500}
.meta .hint{display:block;margin-top:3px;color:var(--gold);font-size:12px}
.stage{flex:1;min-height:340px;position:relative;border-radius:18px;background:
  radial-gradient(120% 80% at 100% 100%, rgba(232,191,106,.07), transparent 60%), var(--panel);
  border:1px solid var(--line);padding:6px 4px 4px;overflow:hidden}
.stage svg{display:block}
.err{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted);font-size:14px}
.bar-label{font-family:var(--body);font-weight:600;font-size:var(--fs);fill:var(--fg)}
.bar-label.in{fill:#071216}
.bar-value{font-family:var(--mono);font-weight:500;font-size:var(--fs);fill:var(--fg)}
.bar-count{font-family:var(--mono);font-size:calc(var(--fs) - .5px);fill:var(--muted)}
.axis text{font-family:var(--mono);font-size:10.5px;fill:var(--muted)}
.axis line{stroke:var(--line)} .axis path{display:none}
.halo{paint-order:stroke;stroke:var(--panel);stroke-width:5px;stroke-linejoin:round}
.t-month{font-family:var(--display);font-weight:800;fill:var(--fg);opacity:.22;text-anchor:end}
.t-date{font-family:var(--mono);font-size:12px;fill:var(--muted);text-anchor:end}
.t-total{font-family:var(--mono);font-weight:600;fill:var(--gold);text-anchor:end}
.t-aed{font-family:var(--mono);font-weight:500;fill:var(--fg);text-anchor:end}
.t-cap{font-family:var(--body);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;fill:var(--muted);text-anchor:end}
.dock{display:flex;align-items:center;gap:14px;padding:4px 2px 0}
.play{width:58px;height:58px;flex:none;border-radius:50%;border:0;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;cursor:pointer;
  box-shadow:0 6px 22px rgba(63,208,182,.28)}
.play svg{width:24px;height:24px}
.now{flex:1;min-width:0;display:grid;gap:7px}
.now .row{display:flex;justify-content:space-between;gap:10px;font-family:var(--mono);font-size:12.5px;color:var(--muted)}
.now .row b{color:var(--fg);font-weight:500;white-space:nowrap}
.now .row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
[hidden]{display:none!important}
@media (max-width:480px){#nowMode{display:none}}
.labfoot{display:none;align-items:center;justify-content:center;gap:8px;font-size:12.5px;color:var(--muted);padding-top:2px}
.labfoot .lab-name{font-size:13.5px}
.labfoot a{color:var(--gold);text-decoration:none;font-family:var(--mono);font-size:12.5px;user-select:text}
@media (max-width:600px){
  header{flex-wrap:nowrap;align-items:flex-start}
  .brandwrap{min-width:0}
  .brand{font-size:clamp(22px,6.6vw,30px)}
  .lab{padding:0;border:0;background:none}
  .lab > div:last-child{display:none}
  .lab-tile{width:38px;height:38px;border-radius:10px}
  .lab-tile svg{width:26px;height:26px}
  .labfoot{display:flex}
}
.track{height:4px;border-radius:2px;background:var(--line);overflow:hidden}
.track i{display:block;height:100%;width:0;background:var(--gold)}
.gear{width:46px;height:46px;flex:none;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--fg);display:grid;place-items:center;cursor:pointer}
.gear svg{width:22px;height:22px}
button:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
dialog{border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--fg);padding:20px;width:min(440px,calc(100% - 32px));max-height:calc(100% - 32px);overflow:auto}
dialog::backdrop{background:rgba(3,8,10,.6);backdrop-filter:blur(3px)}
dialog h2{font-family:var(--display);font-weight:700;font-size:22px;margin:0 0 4px}
dialog p{margin:0 0 16px;color:var(--muted);font-size:13px;line-height:1.5}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px}
.field{display:grid;gap:5px;min-width:0}
.field.wide{grid-column:1/-1}
.field label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:600}
.cmp{gap:8px}
.cmp-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.cmp input{font:inherit;font-size:15px;color:var(--fg);background:var(--panel-2);border:1px solid var(--line);border-radius:10px;padding:9px 10px;width:100%;min-width:0}
.cmp input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.cmp input.bad{border-color:var(--c3)}
.cmp-note{font-size:12px;color:var(--muted)}
.cmp-note.bad{color:var(--c3)}
.linkbtn{background:none;border:0;color:var(--gold);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:2px 0}
.now .row .left{display:flex;align-items:center;gap:8px;min-width:0}
.state{font-family:var(--body);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;padding:2px 8px;border-radius:999px;color:var(--gold);border:1px solid rgba(232,191,106,.45)}
.state.on{color:var(--accent);border-color:rgba(63,208,182,.45)}
.lbl,#chart rect{cursor:pointer}
dialog.det{width:min(640px,calc(100% - 24px));padding:18px 18px 14px}
.det-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.det-title{min-width:0}
.det-kind{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);font-weight:600}
.det h2{margin:2px 0 0;font-size:22px;line-height:1.15;text-wrap:balance}
.det-x{width:40px;height:40px;flex:none;border-radius:12px;border:1px solid var(--line);background:var(--panel-2);color:var(--fg);display:grid;place-items:center;cursor:pointer}
.det-x svg{width:18px;height:18px}
.det-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 12px}
@media (max-width:520px){.det-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.det-stat{background:var(--panel-2);border-radius:12px;padding:9px 11px;min-width:0}
.det-stat .k{font-size:10.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:600}
.det-stat .v{font-family:var(--mono);font-size:16px;font-weight:600;margin-top:2px;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.det-stat .v.gold{color:var(--gold)}
.det-stat .d{font-size:11.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.det-sub{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted);margin:6px 2px}
.det-sub span:first-child{color:var(--fg);font-weight:600}
.det-legend{display:flex;flex-wrap:wrap;gap:5px 12px;margin:6px 2px;font-size:11px;color:var(--muted)}
.det-legend label{cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:3px 0}
.det-legend input{margin:0;width:15px;height:15px;cursor:pointer}
.det-legend input:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.det-legend span{display:inline-flex;align-items:center;gap:4px}
.det-legend i{display:inline-block;width:9px;height:9px;border-radius:2px}
.det-tip{max-width:calc(100% - 8px);white-space:normal!important}
.det-chart{position:relative;background:var(--panel-2);border-radius:12px;padding:6px 4px 2px;touch-action:pan-y}
.det-chart svg{display:block;width:100%}
.det-chart text{font-family:var(--mono);font-size:10px;fill:var(--muted)}
.det-tip{position:absolute;top:6px;pointer-events:none;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:6px 9px;font-family:var(--mono);font-size:12px;white-space:nowrap;line-height:1.45}
.det-tip b{font-family:var(--body);font-weight:600}
.det-list{width:100%;min-width:0;overflow:hidden;border-radius:12px;border:1px solid var(--line)}
.det-grid{width:100%;min-width:0;height:420px;font-size:12px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.divider{stroke:var(--gold);stroke-dasharray:3 4;stroke-width:1;opacity:.6}
.div-label{font-family:var(--body);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;fill:var(--gold)}
rect.pick{stroke:var(--gold);stroke-width:2.5px}
select{font:inherit;font-size:15px;color:var(--fg);background:var(--panel-2);border:1px solid var(--line);border-radius:10px;padding:9px 10px;width:100%}
.dlg-actions{display:flex;gap:10px;justify-content:space-between;margin-top:20px}
.btn{font:inherit;font-weight:600;font-size:14px;border-radius:10px;padding:10px 16px;cursor:pointer;border:1px solid var(--line);background:var(--panel-2);color:var(--fg)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
@media (prefers-reduced-motion:reduce){.play{box-shadow:none}}
.filter-rail{position:fixed;left:0;top:90px;bottom:20px;z-index:20;display:flex;align-items:flex-start;pointer-events:none}
.filter-tab{pointer-events:auto;border:1px solid var(--line);border-left:0;border-radius:0 12px 12px 0;background:var(--panel-2);color:var(--accent);padding:12px 8px;cursor:pointer;display:grid;gap:10px;font:inherit}
.filter-tab span{writing-mode:vertical-rl;font-size:12px;letter-spacing:.08em}
.filter-panel{pointer-events:auto;width:min(360px,calc(100vw - 54px));max-height:100%;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:0 16px 16px 16px;background:var(--panel);box-shadow:12px 8px 36px #0006}
.filter-panel h2{font-family:var(--display);font-size:22px;margin:0 0 8px}
.filter-panel p{font-size:12px;line-height:1.5;color:var(--muted)}
.app{padding-left:max(52px,env(safe-area-inset-left,0px))}
.chart-controls{display:flex;align-items:center;gap:8px;margin:6px 2px;color:var(--muted);font-size:12px}
.chart-controls select{width:auto;max-width:75%;font-size:12px;padding:5px 8px}
.det-list,.filter-panel,dialog{scrollbar-width:thin;scrollbar-color:#3b5962 var(--panel)}
.det-list::-webkit-scrollbar,.filter-panel::-webkit-scrollbar,dialog::-webkit-scrollbar{width:6px;height:6px}
.det-list::-webkit-scrollbar-thumb,.filter-panel::-webkit-scrollbar-thumb,dialog::-webkit-scrollbar-thumb{background:#3b5962;border-radius:9px}
.det-list::-webkit-scrollbar-track,.filter-panel::-webkit-scrollbar-track,dialog::-webkit-scrollbar-track{background:var(--panel)}
.det-list::-webkit-scrollbar-button,.filter-panel::-webkit-scrollbar-button,dialog::-webkit-scrollbar-button{display:none}
.timeline{width:100%;margin:0;height:18px;accent-color:var(--gold);cursor:ew-resize;background:transparent}
.timeline:focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:8px}
.timeline-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:-5px}
.legend-toolbar{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;margin:6px 0 10px}
.legend-toolbar .det-legend{flex:1 1 240px;margin:0;gap:4px 12px}
.scale-option{display:flex;align-items:center;gap:4px;margin-left:auto;min-height:32px;color:var(--muted);font-size:12px}
.scale-option label{display:inline-flex;align-items:center;gap:7px;cursor:pointer;min-height:32px;white-space:nowrap}
.scale-option input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.scale-help{position:relative}
.scale-help summary{cursor:pointer;list-style:none;display:grid;place-items:center;width:32px;height:32px;color:var(--accent);border-radius:8px}
.scale-help summary::-webkit-details-marker{display:none}
.scale-help [role="tooltip"]{position:absolute;right:0;top:100%;z-index:5;width:min(280px,calc(100vw - 64px));padding:10px 12px;background:var(--bg);border:1px solid var(--line);border-radius:10px;box-shadow:0 6px 20px #0005;color:var(--fg);font-size:12px;line-height:1.5}
.scale-option input:focus-visible,.scale-help summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
@media(max-width:600px){.legend-toolbar{gap:4px 8px}.legend-toolbar .det-legend{flex-basis:100%;gap:2px 12px}.det-legend label{min-height:40px;font-size:12px}.det-legend input{width:18px;height:18px}.scale-option label,.scale-help summary{min-height:40px}.scale-help summary{width:40px}.det-sub{flex-wrap:wrap}.det-list{max-width:100%}.det-grid{height:300px;font-size:11px}.det .ag-header-cell-text{line-height:1.1}}
.chart-help{margin-left:auto;flex:none}
@media(hover:hover){.scale-help:not([open]):hover>span[role="tooltip"]{display:block;content-visibility:visible}}
.main-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 2px}
.main-controls .field{display:flex;align-items:center;gap:6px;min-width:0}
.main-controls label{font-size:11px;letter-spacing:0;text-transform:none;white-space:nowrap}
.main-controls select{width:auto;padding:5px 8px;font-size:12px;max-width:190px}
.recent-help{margin-left:auto}
@media(max-width:600px){.main-controls{gap:6px}.main-controls .field{flex:1 1 130px;display:grid;gap:3px}.main-controls select{max-width:none;width:100%;min-height:32px}.recent-help{align-self:flex-end}}
@media(max-width:600px){
  .main-controls .desktop-property,.filter-rail,#gear{display:none!important}
  .app{padding-left:max(12px,env(safe-area-inset-left,0px));padding-right:max(12px,env(safe-area-inset-right,0px))}
}

/* Filters belong to the chart layout, sharing its height and left edge. */
.chart-workspace{display:flex;flex:1;min-height:340px;min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--panel);overflow:hidden}
.chart-workspace .stage{min-width:0;border:0;border-radius:0}
.filter-rail{position:relative;inset:auto;z-index:auto;display:flex;align-items:stretch;flex:none;pointer-events:auto;border-right:1px solid var(--line)}
.filter-tab{align-self:flex-start;border:0;border-radius:0;padding:14px 8px;background:transparent}
.filter-panel{width:310px;max-width:calc(100vw - 85px);max-height:none;min-height:0;overflow:auto;padding:14px;border:0;border-radius:0;box-shadow:none}
.filter-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.filter-panel h2{font-size:17px;white-space:nowrap;margin:0}
.filter-heading .btn{padding:6px 10px;font-size:12px}
#pinFilters[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink)}
.panel-quick{display:grid;gap:10px;margin-bottom:14px}
.panel-quick label,.filter-panel .field>label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.filter-panel select{font-size:12px;padding:7px}
.filter-panel .dlg-actions{position:sticky;bottom:-14px;background:var(--panel);padding:12px 0;margin-top:10px}
#restart{width:100%;background:var(--accent);color:var(--accent-ink)}
.app{padding-left:max(16px,env(safe-area-inset-left,0px))}
.main-controls{flex-wrap:nowrap}
.main-controls .field{flex:1 1 0;overflow:hidden;display:flex}
.main-controls label{overflow:hidden;text-overflow:ellipsis;min-width:0;flex-shrink:1}
.main-controls select{min-width:65px;max-width:150px;flex:1}
button:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:800px){.main-controls .field{display:grid;gap:3px}.main-controls select{width:100%;max-width:none}.filter-panel{width:270px}}
@media(max-width:600px){.main-controls .desktop-property{display:grid!important}.filter-rail{display:flex!important}.chart-workspace:has(.filter-panel:not([hidden])){flex-direction:column}.filter-rail:has(.filter-panel:not([hidden])){max-height:360px;border-bottom:1px solid var(--line)}.filter-panel{width:100%;max-width:none}.chart-workspace .stage{min-height:340px}.chart-workspace:has(.filter-panel:not([hidden])){flex-shrink:0}.filter-panel .fields{grid-template-columns:1fr 1fr}}

/* Use the outer left gutter without reducing or covering the chart. */
.chart-workspace{position:relative;overflow:visible;flex-direction:column}
.chart-workspace .stage{border-radius:18px}
.filter-rail{border-right:0;min-height:0}
.filter-tab{display:flex;align-items:center;gap:8px;padding:10px 12px}
.filter-tab span{writing-mode:horizontal-tb;letter-spacing:0}
.filter-panel{width:100%;max-width:none;max-height:360px;border-bottom:1px solid var(--line)}
.filter-rail:has(.filter-panel:not([hidden])){max-height:360px}
.chart-workspace:has(.filter-panel:not([hidden])){flex-shrink:0}
#pinFilters{width:34px;height:34px;padding:6px;display:grid;place-items:center;flex:none}
#pinFilters svg{transform:rotate(35deg)}
#pinFilters[aria-pressed="true"] svg{transform:rotate(0deg);fill:currentColor;fill-opacity:.2}
@media(min-width:1800px){
  .chart-workspace{flex-direction:row}
  .filter-rail{position:absolute;right:100%;left:auto;top:0;bottom:0;flex-direction:row-reverse;align-items:stretch;max-height:none!important;border:1px solid var(--line);border-right:0;border-radius:14px 0 0 14px;background:var(--panel);overflow:hidden}
  .filter-tab{align-self:flex-start;display:grid;padding:14px 8px}
  .filter-tab span{writing-mode:vertical-rl;letter-spacing:.08em}
  .filter-panel{width:270px;max-width:none;max-height:none;border:0}
}
/* One continuous chart frame, with a divider at the drawer seam. */
.filter-rail{border-radius:18px 18px 0 0;overflow:hidden;border-bottom:1px solid var(--line)}
.filter-panel{border-bottom:0}
.chart-workspace .stage{border-radius:0 0 18px 18px}
@media(min-width:1800px){
  .chart-workspace{border-left:0;border-radius:0 18px 18px 0}
  .chart-workspace .stage{border-radius:0 18px 18px 0}
  .filter-rail{top:-1px;bottom:-1px;border:1px solid var(--line);border-radius:18px 0 0 18px}
}

/* The filter is always a vertical left drawer. Opening it never resizes the plot. */
.filter-rail{z-index:2;isolation:isolate}
.chart-workspace .stage{z-index:0}
.chart-workspace{flex-direction:row!important;overflow:hidden;border:1px solid var(--line);border-radius:18px}
.filter-rail{position:relative;inset:auto;flex-direction:row;align-items:stretch;flex:none;max-height:none!important;border:0;border-right:1px solid var(--line);border-radius:18px 0 0 18px;overflow:hidden;background:var(--panel)}
.filter-tab{display:grid;align-self:flex-start;width:36px;padding:14px 8px;gap:10px}
.filter-tab span{writing-mode:vertical-rl;letter-spacing:.08em}
.filter-panel{width:270px;max-width:none;max-height:none;border:0}
.chart-workspace .stage{border-radius:0 18px 18px 0;flex:1 1 0;width:100%;min-width:0}
@media(min-width:900px){
 .app{width:calc(100% - 286px);max-width:1200px;margin-left:max(286px,calc((100% - 1200px)/2));margin-right:auto}
 .chart-workspace{overflow:visible;border-left:0;border-radius:0 18px 18px 0}
 .chart-workspace .stage{flex:1;min-width:0}
 .filter-rail{position:absolute;right:100%;left:auto;top:-1px;bottom:-1px;border:1px solid var(--line);border-radius:18px 0 0 18px}
}

/* Mobile runs the filter as a full-frame sheet; controls never sit above chart bars. */
.filter-actions{display:flex;align-items:center;gap:8px}
.filter-close{display:none;width:38px;height:38px;padding:7px;place-items:center}
.atlas-nav{flex-wrap:nowrap;white-space:nowrap}
.atlas-location,.atlas-home{flex:none;white-space:nowrap}
.atlas-status{min-width:0;max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){
 .chart-workspace{position:relative;display:block;overflow:hidden;flex-direction:row}
 .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .chart-workspace .stage{position:absolute;inset:0;width:100%;height:100%;min-width:0;visibility:visible;pointer-events:auto}
 .filter-rail{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;flex-direction:column;align-items:stretch;border:0;border-radius:18px;background:transparent;overflow:hidden}
 .filter-tab{pointer-events:auto;display:flex;align-items:center;width:100%;min-height:44px;height:auto;align-self:stretch;flex:none;flex-direction:row;padding:10px 14px;gap:10px;border:0;border-radius:0;border-bottom:1px solid var(--line);background:var(--panel);text-align:left}
 .filter-tab span{writing-mode:horizontal-tb;letter-spacing:0}
 .filter-panel{width:100%;height:calc(100% - 45px);max-height:none;min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:14px}
 .filter-rail:has(.filter-panel:not([hidden])) .filter-tab{display:none}
 .filter-rail:has(.filter-panel:not([hidden])) .filter-panel{pointer-events:auto;position:absolute;inset:0;width:100%;height:100%;max-height:100%;z-index:2;border:0;border-radius:18px;overflow-y:auto;padding:14px}
 .chart-workspace:has(.filter-panel:not([hidden])) .stage{visibility:hidden;pointer-events:none}
 .filter-close{display:none}
 .filter-heading h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
 .filter-heading .filter-close{display:grid}
 .filter-panel #src{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5;margin:8px 0}
 .main-controls .field{min-width:0}
 .main-controls label{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .det .det-sub{flex-wrap:nowrap;align-items:center;min-width:0;white-space:nowrap}
 .det .det-sub>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .det .det-sub>span:last-child{flex:none;white-space:nowrap}
 .det .chart-help{flex:none}
 .legend-toolbar{flex-wrap:nowrap;align-items:center;gap:8px;min-width:0}
 .legend-toolbar .det-legend{flex:1 1 0;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:none}
 .legend-toolbar .det-legend::-webkit-scrollbar{display:none}
 .scale-option{flex:none;margin-left:0}
 .scale-option label{font-size:11px;gap:4px}
}
