/* The browser owns appearance; changing the system setting updates these
   colors immediately without touching data, session or inspection state. */
:root {
  color-scheme: light dark;
  --ink: #16343d; --muted: #62747a; --bg: #f5f7f8;
  --surface: #ffffff; --subtle: #f0f4f5; --selected: #ffffff;
  --line: #e0e7e9; --line-soft: #edf1f2; --control-border: #bdcdd1;
  --input-bg: #fcfdfd; --hover: #edf4f3; --focus: #078f92;
  --teal: #007f78; --teal-light: #e8f5f2; --accent-ink: #006b64;
  --accent-border: #c5e4dc; --button-ink: #ffffff; --button-hover: #006860;
  --amber: #f5c65d; --peak: #9b7028;
  --range-fill: #00877f25; --range-stroke: #00877f60;
  --chart-grid: #e8edef; --crosshair: #5b7e86; --inspector: #f4f8f8;
  --online: #006d60; --online-bg: #e0f1e9; --status-dot: #0b9383;
  --status-halo: #0b938318; --offline-bg: #e6ebed; --offline-ink: #4f656c;
  --notice-bg: #fff5df; --notice-ink: #715013; --notice-border: #efdcae;
  --error: #a6392d; --shadow: #102e3718;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4eef2; --muted: #a5bbc3; --bg: #0c181e;
    --surface: #14252d; --subtle: #0f2028; --selected: #2a4651;
    --line: #304650; --line-soft: #263c46; --control-border: #506b77;
    --input-bg: #0f2028; --hover: #203943; --focus: #72e1d1;
    --teal: #65d8c8; --teal-light: #163c3b; --accent-ink: #83e5d6;
    --accent-border: #2e625b; --button-ink: #092b29; --button-hover: #8be6d9;
    --peak: #f0bc62; --range-fill: #65d8c829; --range-stroke: #65d8c880;
    --chart-grid: #2a404a; --crosshair: #a5bbc3; --inspector: #1b313b;
    --online: #8ee2c1; --online-bg: #183d33; --status-dot: #6ad3b1;
    --status-halo: #6ad3b122; --offline-bg: #293f49; --offline-ink: #bed0d7;
    --notice-bg: #332c1c; --notice-ink: #f4d49a; --notice-border: #766039;
    --error: #ffb7af; --shadow: #00000040;
  }
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.5; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
a { color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:disabled { opacity: .6; cursor: wait; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: var(--surface); padding: 12px; }
.skip-link:focus { top: 8px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1.2; letter-spacing: -.045em; font-weight: 650; }
h2 { font-size: 1.08rem; letter-spacing: -.025em; font-weight: 650; }
.muted { color: var(--muted); font-size: .875rem; }
.eyebrow { font-size: .75rem; letter-spacing: .12em; font-weight: 650; }
.startup { min-height: 100vh; display: grid; place-content: center; color: var(--muted); }
.brand { display: flex; align-items: center; text-decoration: none; font-weight: 750; font-size: 1.9rem; letter-spacing: -.06em; color: white; }
.brand-mark { display: grid; place-content: center; width: 35px; height: 35px; border-radius: 10px; background: var(--amber); color: #19363c; font-size: 1.6rem; margin-right: 10px; font-weight: 800; }
.brand-dot { color: var(--amber); }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { background: #102e37; color: #c2d3d8; padding: 27px 19px 20px; display: flex; flex-direction: column; min-width: 0; }
.sidebar .brand { padding-left: 8px; margin-bottom: 60px; }
.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 10px; margin-bottom: 15px; color: #96b2ba; }
.count { font-size: .75rem; border: 1px solid #3b555e; border-radius: 5px; padding: 0 6px; }
#pump-list { display: grid; gap: 8px; }
.pump-button { text-align: left; width: 100%; border: 1px solid transparent; border-radius: 10px; color: #c2d3d8; background: transparent; padding: 14px 12px; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; }
.pump-button:hover { background: #1a3d47; }
.pump-button[aria-current="true"] { color: white; background: #224650; border-color: #3c626b; }
.pump-button .pump-icon { grid-row: span 2; font-size: 1.3rem; color: var(--amber); }
.pump-button strong { font-size: .875rem; font-weight: 550; overflow-wrap: anywhere; }
.pump-button small { font-size: .75rem; color: #a4bdc3; margin-top: 3px; }
.sidebar-note { margin: auto 10px 25px; padding-top: 100px; font-size: .875rem; }
.sidebar-note strong { font-weight: 500; color: #e2edef; }
.sidebar-note p { color: #96b2ba; margin-top: 8px; line-height: 1.7; }
.note-line { display: block; width: 26px; height: 3px; background: var(--amber); margin-bottom: 18px; }
.sidebar-footer { display: flex; justify-content: space-between; border-top: 1px solid #294750; padding-top: 18px; font-size: .75rem; text-decoration: none; margin: 0 10px; color: #a4bdc3; }
.workspace-body { min-width: 0; }
.topbar { min-height: 86px; padding: 16px 36px; display: flex; justify-content: space-between; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); background: var(--surface); }
.property-control { display: grid; min-width: 0; max-width: 55%; }
.property-control label { color: var(--muted); font-size: .6875rem; letter-spacing: .12em; font-weight: 650; }
.property-control select { margin-left: -4px; max-width: 100%; padding: 2px 23px 2px 0; color: var(--ink); background: var(--surface); border: none; font-weight: 600; }
.mobile-brand, .mobile-pump { display: none; }
.account { position: relative; font-size: .875rem; }
.account > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; list-style: none; border: 1px solid var(--line); border-radius: 8px; }
.account > summary::-webkit-details-marker { display: none; }
.account-popover { position: absolute; z-index: 5; right: 0; top: calc(100% + 8px); background: var(--surface); padding: 16px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px var(--shadow); width: min(280px, 80vw); }
.account-popover .text-button { display: block; width: 100%; text-align: left; min-height: 44px; margin-top: 8px; }
#account-email { color: var(--muted); overflow-wrap: anywhere; }
.text-button { border: 0; background: none; padding: 8px 0; font-size: .875rem; white-space: nowrap; }
.text-button:hover { color: var(--teal); text-decoration: underline; }
main { max-width: 1560px; margin: auto; padding: 34px 36px 24px; }
.page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 26px; }
.page-heading .eyebrow { color: var(--teal); margin-bottom: 7px; }
.page-heading .muted { margin-top: 9px; }
.button { border-radius: 7px; padding: 10px 17px; min-height: 44px; font-size: .875rem; font-weight: 600; border: 1px solid transparent; display: inline-flex; justify-content: center; align-items: center; gap: 9px; }
.secondary { background: var(--surface); border-color: var(--control-border); }
.secondary:hover { background: var(--hover); }
.primary { color: var(--button-ink); background: var(--teal); }
.primary:hover { background: var(--button-hover); }
.notice { background: var(--notice-bg); color: var(--notice-ink); border: 1px solid var(--notice-border); border-radius: 8px; padding: 13px 17px; margin-bottom: 20px; font-size: .875rem; }
.status-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.status-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-title h2 { font-size: 1.1rem; }
.status-strip .muted { margin: 5px 0 0 20px; font-size: .8125rem; }
.state-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.state-dot.online { background: var(--status-dot); box-shadow: 0 0 0 4px var(--status-halo); }
.pill { font-size: .75rem; padding: 3px 9px; border-radius: 5px; background: var(--offline-bg); color: var(--offline-ink); }
.pill.online { color: var(--online); background: var(--online-bg); }
.policy-note { color: var(--muted); font-size: .8125rem; text-align: right; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.metric { border: 1px solid var(--line); border-radius: 11px; padding: 20px 21px 18px; background: var(--surface); }
.metric-label { color: var(--muted); font-size: .875rem; display: flex; justify-content: space-between; gap: 8px; }
.metric-value { font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.3; margin: 13px 0 5px; font-variant-numeric: tabular-nums; }
.unit { font-size: 1rem; font-weight: 400; margin-left: 6px; color: var(--muted); letter-spacing: 0; }
.metric > p:last-child { color: var(--muted); font-size: .75rem; }
.primary-metric { background: var(--teal-light); border-color: var(--accent-border); }
.primary-metric .metric-label, .primary-metric .metric-value, .primary-metric .unit { color: var(--accent-ink); }
.overview-grid { margin-bottom: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.panel-heading { padding: 22px 23px 0; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.panel-heading .muted { font-size: .75rem; margin-top: 4px; }
.segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; background: var(--subtle); border-radius: 7px; gap: 2px; }
.segmented button { border: none; background: none; border-radius: 5px; min-height: 44px; padding: 7px 14px; font-size: .8125rem; white-space: nowrap; color: var(--muted); }
.segmented button[aria-pressed="true"] { color: var(--accent-ink); background: var(--selected); box-shadow: 0 1px 4px var(--shadow); font-weight: 600; }
.chart-controls { margin: 14px 23px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.peak-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8125rem; cursor: pointer; min-height: 44px; padding: 0 8px; }
.peak-toggle input { accent-color: var(--teal); width: 16px; height: 16px; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; padding: 6px 23px 0; font-size: .75rem; color: var(--muted); }
.chart-legend span { display: inline-flex; gap: 7px; align-items: center; }
.legend-line, .legend-peak { display: inline-block; width: 16px; height: 3px; background: var(--teal); }
.legend-peak { background: var(--peak); }
.legend-range { display: inline-block; width: 16px; height: 10px; background: var(--range-fill); border: 1px solid var(--range-stroke); }
.resolution { color: var(--muted); font-size: .75rem; padding: 5px 8px; border-radius: 6px; background: var(--subtle); white-space: nowrap; }
#ranges { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 16px 23px 0; }
#ranges button { padding-inline: 4px; }
.chart { height: 258px; padding: 0 15px; display: grid; align-items: center; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text { font-size: 12px; fill: var(--muted); font-family: inherit; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart stop { stop-color: var(--teal); }
.chart .area { fill: url(#current-fill); }
.chart .current-range { fill: var(--range-fill); stroke: var(--range-stroke); stroke-width: .75; }
.chart .current-range-line { stroke: var(--range-stroke); stroke-width: 5; }
.chart .average-line { stroke: var(--teal); stroke-width: 2; fill: none; stroke-linejoin: round; }
.chart .peak-line { stroke: var(--peak); stroke-width: 1.3; stroke-dasharray: 4 4; fill: none; }
.chart .point { fill: var(--teal); }
.chart .crosshair { stroke: var(--crosshair); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .inspection-point { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.chart svg { touch-action: pan-y; }
.chart-inspector { margin: 12px 23px 0; padding: 12px 14px 3px; background: var(--inspector); border-radius: 7px; font-size: .8125rem; min-height: 70px; }
.chart-inspector output { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.reading-title { font-size: .75rem; color: var(--muted); }
.reading-value { font-size: 1.15rem; font-weight: 650; white-space: nowrap; }
.reading-detail { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); }
.chart-inspector input { display: block; width: 100%; accent-color: var(--teal); cursor: ew-resize; min-height: 44px; margin: 0; }
.history-navigation { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 8px 23px 0; flex-wrap: wrap; }
.history-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.history-stepper span { color: var(--muted); font-size: .8125rem; text-align: center; line-height: 1.35; }
.history-stepper button { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; min-width: 44px; min-height: 44px; font-size: 1.1rem; }
.history-navigation .text-button { color: var(--teal); font-size: .8125rem; min-height: 44px; padding-inline: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chart-empty { text-align: center; font-size: .875rem; color: var(--muted); padding: 30px; }
.chart-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 23px 20px; font-size: .75rem; color: var(--muted); }
.small-label { color: var(--muted); letter-spacing: .06em; font-size: .6875rem; }
.details { margin: 14px 23px 0; font-size: .8125rem; }
.details div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.details dt { color: var(--muted); }
.details dd { margin: 0; text-align: right; font-weight: 550; overflow-wrap: anywhere; }
.measurement-note { margin: 18px 23px 20px; font-size: .75rem; color: var(--muted); padding-left: 10px; border-left: 2px solid var(--line); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .8125rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
th { color: var(--muted); font-weight: 500; background: var(--subtle); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td, th { padding: 12px 23px; }
td { border-bottom: 1px solid var(--line-soft); }
tr:last-child td { border-bottom: none; }
td .muted { font-size: .75rem; display: block; }
.detail-panel, .readings-panel { margin-bottom: 14px; }
.readings-panel .panel-heading { padding-bottom: 19px; align-items: center; }
details.panel > summary { display: flex; justify-content: space-between; gap: 14px; padding: 18px 23px; font-size: .875rem; font-weight: 550; list-style: none; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::before { content: "+"; color: var(--teal); }
details.panel[open] > summary::before { content: "−"; }
details.panel > summary > span:first-child { margin-right: auto; }
.offline-content > p { padding: 0 23px 18px; max-width: 800px; font-size: .8125rem; }
.data-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .75rem; padding-top: 20px; }
.empty-state { text-align: center; padding: 80px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.empty-state p { max-width: 400px; margin: 9px auto; color: var(--muted); }
.empty-symbol { display: block; font-size: 2.8rem; color: var(--teal); margin-bottom: 18px; }
.signin { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.signin-story { background: #102e37; color: white; padding: 45px clamp(30px, 6vw, 90px); display: flex; flex-direction: column; justify-content: space-between; gap: 70px; }
.signin-story h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin: 23px 0; }
.signin-story p:not(.eyebrow) { color: #b9cdd3; max-width: 340px; font-size: 1.1rem; line-height: 1.8; }
.signin-story .eyebrow { color: var(--amber); }
.story-footer { font-size: .75rem; color: #a4bdc3; }
.signin-panel { padding: 45px 28px; display: grid; place-content: center; background: var(--surface); }
.signin-form { width: min(380px, 80vw); }
.signin-form .eyebrow { color: var(--teal); }
.signin-form h2 { font-size: 2rem; margin: 10px 0; }
.signin-form > .muted { margin-bottom: 30px; }
.signin-form label { display: block; font-size: .875rem; margin-bottom: 7px; }
.signin-form input { width: 100%; border: 1px solid var(--control-border); border-radius: 7px; padding: 12px; margin-bottom: 22px; background: var(--input-bg); color: var(--ink); }
.signin-form input::placeholder { color: var(--muted); opacity: 1; }
.signin-form button { width: 100%; justify-content: space-between; margin-top: 4px; }
.signin-footnote { font-size: .8125rem; color: var(--muted); margin-top: 25px; }
.form-error { color: var(--error); font-size: .875rem; margin-bottom: 15px; }
@media (min-width: 1600px) { .sidebar { padding-top: 30px; } main { padding-top: 44px; } }
@media (max-width: 1180px) { .workspace { grid-template-columns: 205px minmax(0, 1fr); } main { padding: 28px 24px; } .topbar { padding-inline: 24px; } .overview-grid { grid-template-columns: minmax(0, 1fr); } .detail-panel .details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; } .metric { padding: 18px 14px; } }
@media (max-width: 800px) {
  .workspace { display: block; }
  .sidebar { display: none; }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: max(10px, env(safe-area-inset-top)) 16px 6px; }
  .mobile-brand { display: flex; color: var(--ink); font-size: 1.5rem; }
  .mobile-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; font-size: 1.35rem; margin-right: 7px; }
  .account { grid-column: 2; grid-row: 1; }
  .account > summary { border: 0; padding-right: 0; }
  .property-control { grid-column: 1 / -1; max-width: 100%; }
  .property-control label { display: none; }
  .property-control select { font-size: 16px; min-height: 44px; width: 100%; margin: 0; font-weight: 500; color: var(--muted); }
  main { padding: 16px 14px max(24px, env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 12px; gap: 10px; }
  .page-heading > div { min-width: 0; flex: 1; }
  .page-heading .eyebrow, #selection-description { display: none; }
  .page-heading h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .mobile-pump { display: block; width: 100%; min-height: 44px; border: 0; background: transparent; font-size: 1.25rem; font-weight: 650; color: var(--ink); padding: 4px 20px 4px 0; text-overflow: ellipsis; }
  .page-heading .button { padding: 9px 11px; }
  .status-strip { display: block; margin-bottom: 16px; }
  .status-title { gap: 8px; }
  .status-title h2 { font-size: .95rem; }
  .status-strip .muted { margin-left: 17px; font-size: .75rem; }
  .policy-note { text-align: left; margin: 5px 0 0 17px; font-size: .75rem; }
  .panel { border-radius: 14px; }
  .panel-heading { padding: 16px 14px 0; gap: 8px; align-items: center; }
  .panel-heading h2 { font-size: 1rem; }
  .panel-heading .muted { margin-top: 2px; }
  .resolution { font-size: .6875rem; padding-inline: 6px; }
  #ranges { margin: 14px 12px 0; }
  .segmented button { min-height: 44px; padding-inline: 11px; font-size: .8125rem; }
  .history-navigation { margin: 6px 12px 0; gap: 0; }
  .history-stepper { width: 100%; flex-basis: 100%; }
  .history-stepper button { border: 0; background: transparent; font-size: 1.5rem; }
  .history-navigation .text-button { margin: 0 auto; }
  .chart { height: 250px; padding: 0 8px; }
  .chart-legend { padding: 5px 14px 0; gap: 14px; font-size: .6875rem; }
  .chart-controls { margin: 12px 12px 0; flex-wrap: nowrap; gap: 6px; }
  #series { flex: 1; display: grid; grid-template-columns: 1fr 1fr; }
  #series button { padding-inline: 7px; }
  .peak-toggle { font-size: .8125rem; padding: 0 4px; gap: 5px; }
  .peak-toggle input { width: 18px; height: 18px; }
  .chart-inspector { margin: 12px 12px 0; padding: 10px 10px 0; }
  .chart-caption { font-size: .6875rem; padding: 8px 14px 14px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
  .metric { padding: 14px; border-radius: 12px; }
  .metric-label { font-size: .75rem; }
  .metric-value { font-size: 1.85rem; margin: 8px 0 2px; }
  .metric > p:last-child { font-size: .6875rem; }
  .detail-panel .details { display: block; margin: 0 16px; }
  details.panel > summary { padding: 16px; min-height: 56px; gap: 10px; }
  .readings-panel .panel-heading { padding-bottom: 12px; }
  .readings-panel .table-scroll { overflow: visible; }
  .readings-panel table, .readings-panel tbody { display: block; }
  .readings-panel thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .readings-panel tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px; border-top: 1px solid var(--line); }
  .readings-panel td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; font-weight: 600; }
  .readings-panel td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .6875rem; font-weight: 400; margin-bottom: 2px; }
  .readings-panel td:nth-child(-n+2), .readings-panel td[colspan] { grid-column: 1 / -1; }
  .readings-panel td:nth-child(2)::before { display: inline; margin-right: 7px; }
  .readings-panel td .muted { font-size: .6875rem; font-weight: 400; }
  .data-footer { font-size: .6875rem; padding-top: 14px; }
  .signin { grid-template-columns: 1fr; align-content: start; min-height: 100svh; background: var(--surface); }
  .signin-story { padding: 20px 24px; gap: 0; }
  .signin-story > div, .story-footer { display: none; }
  .signin-story .brand { font-size: 1.65rem; }
  .signin-panel { padding: 32px 24px; display: block; }
  .signin-form { width: 100%; max-width: 430px; margin: auto; }
  .signin-form h2 { font-size: 1.75rem; }
  .signin-form .eyebrow { display: none; }
  .signin-form input { min-height: 48px; font-size: 16px; }
  .signin-form .button { min-height: 48px; }
}
@media (max-width: 360px) {
  main { padding-inline: 10px; }
  .topbar { padding-inline: 12px; }
  .resolution { font-size: .625rem; }
  .panel-heading { padding-inline: 12px; }
  .metric { padding: 12px; }
  .metric-value { font-size: 1.65rem; }
}

/* Keep the graph prominent; detailed measurements open on demand. */
.measurements-panel > summary {display:flex; justify-content:space-between; gap:12px; cursor:pointer; padding:20px 24px; font-weight:650; min-height:44px;}
.measurements-panel .metrics {padding:0 20px 20px; margin:0;}
.portfolio-open .sidebar {display:none;}
.workspace.portfolio-open {grid-template-columns:1fr;}
.portfolio-open .mobile-brand {display:flex;}
#back-to-fleet {margin:0 0 12px; min-height:44px;}
@media (max-width:800px) {
  .topbar:has(#workspace-choice:not([hidden])) {flex-wrap:wrap;}
  #workspace-choice {order:3; flex:1 0 100%; padding-top:8px;}
  #workspace-choice select {width:100%;}
  .measurements-panel > summary {padding:16px;}
  .measurements-panel .metrics {padding:0 12px 12px;}
}

.label-band {fill:var(--range-fill); pointer-events:none;}
.label-stem {stroke:var(--crosshair); stroke-dasharray:3 4; opacity:.55;}
.label-badge {fill:var(--surface); stroke:var(--teal); stroke-width:1.5;}
.chart .label-number {fill:var(--accent-ink); font-size:10px; font-weight:700;}
.curve-label-marker {cursor:pointer;}
.chart .empty-chart-label {fill:var(--muted); font-size:12px;}
#label-inspected-time {min-height:44px; text-align:left; margin-top:6px;}
