/* Price Watch. One stylesheet, no build step.
   Restrained palette: warm paper neutrals, one ink-blue accent, status colours always paired with a label. */

:root {
  color-scheme: light;
  --bg: oklch(0.975 0.006 85);
  --surface: oklch(0.995 0.003 85);
  --surface-2: oklch(0.953 0.008 85);
  --line: oklch(0.895 0.009 85);
  --line-strong: oklch(0.79 0.012 85);
  --text: oklch(0.25 0.015 265);
  --text-2: oklch(0.45 0.015 265);
  --accent: oklch(0.49 0.17 262);
  --accent-strong: oklch(0.42 0.17 262);
  --accent-soft: oklch(0.945 0.03 262);
  --on-accent: oklch(0.99 0.004 85);
  --good: oklch(0.42 0.12 150);
  --good-soft: oklch(0.94 0.05 150);
  --warn: oklch(0.45 0.1 70);
  --warn-soft: oklch(0.945 0.06 90);
  --bad: oklch(0.49 0.18 27);
  --bad-soft: oklch(0.945 0.035 27);
  --focus: oklch(0.55 0.2 262);
  --shadow: 0 4px 16px oklch(0.25 0.015 265 / 0.12);
  /* chart: data colour from a colour-blind-validated palette, chrome one step off the surface */
  --series: #257de0;
  --grid: oklch(0.925 0.007 85);
  --axis: oklch(0.8 0.01 85);

  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: oklch(0.17 0.008 265);
    --surface: oklch(0.21 0.01 265);
    --surface-2: oklch(0.25 0.012 265);
    --line: oklch(0.3 0.012 265);
    --line-strong: oklch(0.42 0.014 265);
    --text: oklch(0.93 0.006 85);
    --text-2: oklch(0.72 0.01 265);
    --accent: oklch(0.74 0.12 262);
    --accent-strong: oklch(0.8 0.11 262);
    --accent-soft: oklch(0.3 0.06 262);
    --on-accent: oklch(0.18 0.02 262);
    --good: oklch(0.8 0.14 150);
    --good-soft: oklch(0.29 0.055 150);
    --warn: oklch(0.83 0.12 85);
    --warn-soft: oklch(0.3 0.05 85);
    --bad: oklch(0.78 0.13 27);
    --bad-soft: oklch(0.3 0.07 27);
    --focus: oklch(0.78 0.14 262);
    --shadow: 0 4px 16px oklch(0 0 0 / 0.45);
    --series: #338ced;
    --grid: oklch(0.27 0.01 265);
    --axis: oklch(0.38 0.012 265);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 0.9375rem/1.5 var(--font);
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: 1.5rem; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 1.0625rem; line-height: 1.35; font-weight: 650; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
code, .mono { font-family: var(--mono); font-size: 0.875em; }
code { background: var(--surface-2); padding: 0.1em 0.3em; border-radius: 4px; overflow-wrap: anywhere; }
strong { font-weight: 650; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 0.5rem; top: -3rem; background: var(--surface); padding: 0.5rem 0.75rem; border-radius: var(--radius); z-index: 20; }
.skip-link:focus { top: 0.5rem; }

.muted { color: var(--text-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.price { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sub { display: block; color: var(--text-2); font-size: 0.8125rem; font-weight: 400; overflow-wrap: anywhere; }
.error-text { color: var(--bad); }

/* ---------------------------------------------------------------- top bar */

.topbar { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.topbar-inner {
  max-width: 72rem; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; gap: 1.5rem; min-height: 3.25rem; flex-wrap: wrap;
}
.brand { font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; gap: 0.25rem; flex: 1; flex-wrap: wrap; }
.nav a {
  color: var(--text-2); text-decoration: none; padding: 0.375rem 0.625rem; border-radius: var(--radius); font-weight: 550;
}
.nav a:hover { color: var(--text); background: var(--line); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.topbar-end { display: flex; align-items: center; gap: 0.5rem; }
.account-link { color: var(--text-2); font-size: 0.8125rem; text-decoration: none; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link:hover, .account-link[aria-current="page"] { color: var(--text); text-decoration: underline; }
@media (max-width: 44rem) {
  .topbar-inner { gap: 0 1rem; padding-top: 0.375rem; }
  .brand { flex: 1; }
  .nav { order: 3; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -0.5rem; padding: 0.25rem 0.5rem 0.5rem; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  .account-link { max-width: 9rem; }
}

/* ---------------------------------------------------------------- page scaffolding */

.page { max-width: 72rem; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.page-medium { max-width: 56rem; }
.page-narrow { max-width: 24rem; }
.page > * + * { margin-top: 1rem; }

.crumbs { font-size: 0.8125rem; color: var(--text-2); }
.crumbs + h1, .crumbs + .page-head { margin-top: 0.25rem; }
.lead { color: var(--text-2); max-width: 68ch; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.page-head h1 { display: flex; align-items: center; gap: 0.625rem; flex-wrap: wrap; }
.page-meta { color: var(--text-2); margin-top: 0.25rem; max-width: 70ch; }
.actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: flex-start; }
.actions-center { margin-top: 1.25rem; }

.section { margin-top: 2.75rem; }
.section > * + * { margin-top: 0.75rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.25rem 1.5rem; flex-wrap: wrap; }
.section-head .muted { font-size: 0.8125rem; }

.empty { max-width: 40rem; padding: 2.5rem 0 1rem; }
.empty h1, .empty h2 { font-size: 1.25rem; }
.empty > * + * { margin-top: 0.75rem; }
.empty p { color: var(--text-2); max-width: 62ch; }

.pulse {
  display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent);
  margin-right: 0.5rem; animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  min-height: 2.25rem; padding: 0 0.875rem;
  font: inherit; font-weight: 550; line-height: 1.2; text-decoration: none; white-space: nowrap;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out;
}
.btn:hover { background: var(--surface-2); color: var(--text); }
.btn:active { background: var(--line); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent); }
.btn-primary:active { background: var(--accent-strong); }
.btn-quiet { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-quiet:hover { background: var(--line); color: var(--text); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: var(--on-accent); }
.btn-danger-solid:hover { background: var(--bad); color: var(--on-accent); filter: brightness(0.92); }
.btn-sm { min-height: 1.875rem; padding: 0 0.625rem; font-size: 0.8125rem; }
.btn-block { width: 100%; }
.inline-form { display: inline-flex; margin: 0; }

/* Inline confirmation: a small panel under the button, not a modal. */
.confirm { position: relative; display: inline-block; }
.confirm > summary { list-style: none; }
.confirm > summary::-webkit-details-marker { display: none; }
.confirm-body {
  position: absolute; right: 0; top: calc(100% + 0.375rem); z-index: 10; width: 17rem;
  display: grid; gap: 0.625rem; padding: 0.875rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  text-align: left; white-space: normal; font-weight: 400;
}
.confirm-body label { font-size: 0.8125rem; font-weight: 600; }

/* ---------------------------------------------------------------- notices and chips */

.notice {
  padding: 0.625rem 0.875rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); max-width: 80ch;
}
.notice > * + * { margin-top: 0.375rem; }
.notice-ok { background: var(--good-soft); border-color: color-mix(in oklch, var(--good) 35%, var(--good-soft)); }
.notice-info { background: var(--accent-soft); border-color: color-mix(in oklch, var(--accent) 35%, var(--accent-soft)); }
.notice-warn { background: var(--warn-soft); border-color: color-mix(in oklch, var(--warn) 40%, var(--warn-soft)); }
.notice-error { background: var(--bad-soft); border-color: color-mix(in oklch, var(--bad) 40%, var(--bad-soft)); }
.problem-list { padding-left: 1.125rem; list-style: disc; }
.problem-list li + li { margin-top: 0.125rem; }

.chip {
  display: inline-flex; align-items: center; gap: 0.375rem; vertical-align: middle;
  padding: 0.0625rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2);
}
.chip::before { content: ""; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: currentColor; }
.chip-good { background: var(--good-soft); color: var(--good); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-info { background: var(--accent-soft); color: var(--accent); }

.stock { white-space: nowrap; }
.stock-no { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.stock-unknown { color: var(--text-2); }

.delta { display: inline-block; margin-left: 0.375rem; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.delta-down { color: var(--good); }
.delta-up { color: var(--text-2); }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 0.625rem 0.75rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { font-size: 0.8125rem; font-weight: 600; color: var(--text-2); white-space: nowrap; border-bottom-color: var(--line-strong); padding-top: 0.375rem; padding-bottom: 0.375rem; }
.table tbody th { font-weight: 600; }
.table th.num, .table td.num { text-align: right; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tr.is-paused > * { color: var(--text-2); }
.table tr.is-paused .row-link { color: var(--text-2); }
.table-compact th, .table-compact td { padding-top: 0.3125rem; padding-bottom: 0.3125rem; }
.table-compact { max-width: 26rem; }
.table-foot { font-size: 0.8125rem; margin-top: 0.625rem; }

.cell-name { min-width: 12rem; }
.cell-name .chip { margin-left: 0.25rem; }
.row-link, .row-title { font-weight: 650; color: var(--text); text-decoration: none; }
.row-link:hover { color: var(--accent); text-decoration: underline; }
.cell-actions { white-space: nowrap; text-align: right; }
.cell-actions > * { margin-left: 0.25rem; vertical-align: top; }
.watches td { white-space: nowrap; }
.watches .sub { white-space: normal; }

.spark { display: block; overflow: visible; }
.spark path { fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark circle { fill: var(--series); stroke: var(--bg); stroke-width: 1.5; }

@media (max-width: 44rem) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; }
  .table-stack tr { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .table-stack th, .table-stack td { padding: 0.1875rem 0; border: 0; text-align: left; white-space: normal; }
  .table-stack td.num { text-align: left; }
  .table-stack td[data-label] { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; align-items: baseline; }
  .table-stack td[data-label]::before { content: attr(data-label); color: var(--text-2); font-size: 0.8125rem; font-weight: 400; }
  .table-stack td[data-label] > * { grid-column: 2; justify-self: start; }
  .table-stack .cell-actions { text-align: left; padding-top: 0.5rem; }
  .table-stack .cell-actions > * { margin: 0 0.25rem 0.25rem 0; }
  .confirm-body { right: auto; left: 0; }
}

/* ---------------------------------------------------------------- key facts */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 2rem; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 1.25rem; }
.facts dt { font-size: 0.8125rem; color: var(--text-2); }
.facts dd { margin-top: 0.125rem; }
.fact-value { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; }
@media (max-width: 52rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 26rem) { .facts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- feeds (alerts) */

.feed { border-top: 1px solid var(--line); }
.feed li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) auto; gap: 0.25rem 1rem; align-items: baseline; padding: 0.5625rem 0; border-bottom: 1px solid var(--line); }
.feed li > .chip { justify-self: start; }
.feed-main { min-width: 0; overflow-wrap: anywhere; }
.feed-time { font-size: 0.8125rem; white-space: nowrap; }
.feed-full li { padding: 0.75rem 0; }
.day { margin-top: 2rem; }
.day-title { font-size: 0.8125rem; color: var(--text-2); font-weight: 600; margin-bottom: 0.5rem; }
.deliveries { margin-top: 0.125rem; }
.delivery-failed { color: var(--bad); }
.delivery-pending { color: var(--warn); }
.pager { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 36rem) {
  .feed li { grid-template-columns: minmax(0, 1fr) auto; }
  .feed li > .chip { grid-column: 1 / -1; justify-self: start; }
}

/* ---------------------------------------------------------------- pickers (presets, channel types) */

.choices { border-top: 1px solid var(--line); margin-top: 1.25rem; }
.choice {
  display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 0.125rem 1.5rem; align-items: baseline;
  padding: 0.875rem 2rem 0.875rem 0.75rem; margin: 0 -0.75rem; border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none; position: relative; border-radius: var(--radius);
  transition: background-color 150ms ease-out;
}
.choice::after { content: "›"; position: absolute; right: 0.875rem; top: 50%; translate: 0 -55%; color: var(--text-2); font-size: 1.25rem; }
.choice:hover { background: var(--accent-soft); color: var(--text); }
.choice:hover::after { color: var(--accent); }
.choice-title { font-weight: 650; }
.choice-text { color: var(--text-2); }
.choice-example { grid-column: 2; color: var(--text-2); font-size: 0.8125rem; }
.choices-compact .choice { padding-top: 0.5625rem; padding-bottom: 0.5625rem; }
@media (max-width: 40rem) { .choice { grid-template-columns: 1fr; } .choice-example { grid-column: 1; } }

/* ---------------------------------------------------------------- forms */

.form { margin-top: 1.5rem; }
.form-section { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1rem 2.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.form-aside p { color: var(--text-2); font-size: 0.8125rem; margin-top: 0.375rem; }
.form-body > * + * { margin-top: 1rem; }
.form-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.stack > * + * { margin-top: 1rem; }
.stack .form-actions { border-top: 0; padding-top: 0.25rem; }
.form-narrow { max-width: 26rem; }
@media (max-width: 46rem) { .form-section { grid-template-columns: 1fr; } }

.field label, .options legend { display: block; font-weight: 600; margin-bottom: 0.3125rem; }
.optional { font-weight: 400; color: var(--text-2); font-size: 0.8125rem; margin-left: 0.25rem; }
.hint { color: var(--text-2); font-size: 0.8125rem; margin-top: 0.3125rem; max-width: 68ch; }
.error { color: var(--bad); font-size: 0.8125rem; font-weight: 600; margin-top: 0.3125rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; align-items: start; }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; min-height: 2.25rem; padding: 0.375rem 0.625rem;
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  transition: border-color 150ms ease-out;
}
input.mono, textarea.mono { font-family: var(--mono); font-size: 0.8125rem; }
textarea { resize: vertical; line-height: 1.45; display: block; }
input:hover, select:hover, textarea:hover { border-color: var(--text-2); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: var(--focus); }
input::placeholder, textarea::placeholder { color: var(--text-2); opacity: 0.75; }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--bad); }
input:disabled { opacity: 0.55; }

.control.with-suffix { display: flex; }
.control.with-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; min-width: 0; }
.suffix {
  display: inline-flex; align-items: center; padding: 0 0.625rem; white-space: nowrap;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
}

.check { display: flex; gap: 0.625rem; align-items: flex-start; cursor: pointer; }
.check input { width: 1rem; height: 1rem; margin: 0.25rem 0 0; accent-color: var(--accent); flex: none; }
.check .hint { display: block; margin-top: 0; }
.check-label { font-weight: 600; }
.check:has(input:disabled) { cursor: default; color: var(--text-2); }

.options { border: 0; padding: 0; margin: 0; min-width: 0; }
.options > * + * { margin-top: 0.5rem; }
.options-nested { margin-left: 1.625rem; display: grid; gap: 0.375rem; }

.site-list > li { padding: 0.625rem 0; border-bottom: 1px solid var(--line); }
.site-list > li:first-child { padding-top: 0; }
.site-url { margin: 0.25rem 0 0 1.625rem; }

.more > summary { color: var(--accent); cursor: pointer; font-size: 0.8125rem; font-weight: 550; width: fit-content; }
.more > summary:hover { color: var(--accent-strong); }
.more[open] > summary { margin-bottom: 0.75rem; }
.more > * + * { margin-top: 1rem; }
.more-inline[open] > summary { margin-bottom: 0.25rem; }

.danger-zone { padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- login */

.login { padding-top: 12vh; }
.login > * + * { margin-top: 1rem; }
.login-brand { font-size: 1.375rem; }
.login-lead { color: var(--text-2); margin-top: 0.25rem; }
.login-foot { margin-top: 1.5rem; }

/* ---------------------------------------------------------------- charts */

.chart { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.75rem 0.5rem 0.25rem; }
.linechart { display: block; width: 100%; height: auto; overflow: visible; }
.linechart [hidden] { display: none; } /* the hidden attribute alone does nothing inside SVG */
.chart-medium, .chart-narrow { display: none; }
@media (max-width: 62rem) { .chart-wide { display: none; } .chart-medium { display: block; } }
@media (max-width: 36rem) { .chart-medium { display: none; } .chart-narrow { display: block; } }

.linechart .grid line { stroke: var(--grid); stroke-width: 1; }
.linechart .axis { stroke: var(--axis); stroke-width: 1; }
.linechart .tick-labels text { fill: var(--text-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.linechart .series { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.linechart .series-dot { fill: var(--series); }
.linechart .end-dot, .linechart .hover-dot { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.linechart .end-label { fill: var(--text); font-size: 12px; font-weight: 650; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
/* Reference lines are annotations, not data: neutral ink, told apart by dash and by their label. */
.linechart .ref { stroke: var(--text-2); stroke-width: 1; }
.linechart .ref-usual { stroke-dasharray: 7 4; }
.linechart .ref-alert { stroke-dasharray: 2 3; }
.linechart .ref-label { fill: var(--text-2); font-size: 11px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.linechart .crosshair { stroke: var(--axis); stroke-width: 1; }
.linechart .hit { fill: transparent; cursor: crosshair; }
.linechart .hit:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; white-space: nowrap;
  display: grid; gap: 0; padding: 0.3125rem 0.5625rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 0.8125rem; line-height: 1.35;
}
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-variant-numeric: tabular-nums; }
.chart-tip span { color: var(--text-2); }
