/* ==========================================================================
   Kumo dashboard styles
   Served from web/styles.css (copied from src/styles.css by generate.sh).
   Token + base rules used to live inline in <style>; chart component classes
   replace the per-element style.cssText strings the chart JS used to set.
   ========================================================================== */

:root {
  --bg-base:     #0b1020;
  --bg-surface:  #111827;
  --bg-raised:   #1a2235;
  --border:      #1f2937;
  --border-soft: rgba(255,255,255,0.06);

  --text-base:   #e5e7eb;
  --text-muted:  #9ca3af;
  --text-sub:    #9ca3af;

  --accent:      #cbb87f;   /* warm gold—ties to the About page */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  --radius: 10px;
  --radius-sm: 6px;

  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

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

body {
  font-family: var(--font-body);
  font-size: 14px;
  margin: 0;
  background-color: var(--bg-base);   /* solid navy fallback (the shorthand had reset this to transparent) */
  background-image: radial-gradient(135% 95% at 50% -25%, #0e2b2c 0%, var(--bg-base) 60%);
  color: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: var(--space-6);
}

h1 { margin: 0 0 var(--space-2) 0; font-family: var(--font-display); font-optical-sizing: auto; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.muted { color: var(--text-muted); margin-top: 0; font-size: 13px; line-height: 1.6; }

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}
.site-header .muted { margin-bottom: 0; }
.view-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(17, 24, 39, 0.72);
  box-shadow: inset 0 1px 0 var(--border-soft);
}
.view-switch__link {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.view-switch__link:hover { color: var(--text-base); text-decoration: none; }
.view-switch__link.is-active {
  color: var(--text-base);
  background: var(--bg-raised);
  box-shadow: 0 1px 5px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}
.view-switch__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The link class is reused on real <button>s (panel mode toggles); neutralize
   button defaults so they render identically to the anchor variant. */
button.view-switch__link {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
button.view-switch__link.is-active {
  background: var(--bg-raised);
  box-shadow: 0 1px 5px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.05);
}

.view-intro {
  position: relative;
  margin: 0 0 var(--space-4);
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid rgba(203, 184, 127, 0.2);
  border-radius: var(--radius);
  background: linear-gradient(115deg, rgba(203, 184, 127, 0.09), rgba(17, 24, 39, 0.88) 52%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.view-intro::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -75px;
  top: -105px;
  border: 1px solid rgba(203, 184, 127, 0.13);
  border-radius: 50%;
}
.view-intro__eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.view-intro h2 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.view-intro p { max-width: 700px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.65; }
.experimental-badge {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid rgba(203, 184, 127, 0.34);
  border-radius: 999px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.data-caveat {
  margin: 0 0 var(--space-3);
  padding: 10px 12px;
  border-left: 2px solid rgba(203, 184, 127, 0.55);
  color: var(--text-muted);
  background: rgba(17, 24, 39, 0.5);
  /* Full-sentence disclosure: 12px keeps it a quiet note below the 13px
     reading register without dropping to the 11px micro-label tier. */
  font-size: 12px;
  line-height: 1.6;
}

/* Coverage note (review-001 T2): mid-window harness onboarding — ramp-shaped
   growth is partly new coverage, not new work. Same quiet tier as the
   data caveat; data-derived, never hand-written. */
.coverage-note { margin: 10px 4px 0; font-size: 12px; color: var(--text-muted); line-height: 1.55; }

/* Coarse-pointer affordance for tap-to-pin hover cards (review-001 T4).
   Rendered only when (hover: none)/(pointer: coarse) match. */
.touch-hint { margin: 8px 4px 0; font-size: 11px; color: var(--text-muted); text-align: center; letter-spacing: 0.03em; }

/* Mode toggle (tokens panel): a compact segmented control, deliberately NOT
   the page-nav .view-switch — two identical tab rows at different altitudes
   read as navigation (review-001 UX F5). */
.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 39, 0.5);
}
.mode-toggle__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
}
.mode-toggle__btn.is-active {
  background: var(--bg-raised);
  color: var(--text-base);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.mode-toggle__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Legend items are buttons now (keyboard series isolation, review-001 UX
   F1). Button reset layered on the existing .legend-item flex rule. */
button.legend-item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 2px 4px;
  color: inherit;
  border-radius: 4px;
}
button.legend-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* Keyboard read path for chart canvases (arrow keys drive the hover card). */
canvas.chart-canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Computed findings (review-001 A4/A5/A7, docs/ai-panel-anatomy.md): the
   epilogue slot under the chart body. A quiet gold-ruled callout — same
   family as the .data-caveat (gold = derived data) but calmer: the caveat
   cautions, the finding reports. The figure leads in base ink. */
.stat-line {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 2px solid rgba(203, 184, 127, 0.35);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(203, 184, 127, 0.045);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.stat-line strong { color: var(--text-base); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Panel notes (fold disclosure, category headline, coverage): the tokens
   panel's epilogue under the legend — spaced as a group, not stacked text. */
.panel-notes { margin-top: 14px; }
.panel-notes p { margin: 5px 4px 0; }
.panel-notes p:first-child { margin-top: 0; }
.fold-note { font-size: 12px; color: var(--text-muted); }
.category-summary { font-size: 13px; color: var(--text-muted); }
.category-summary strong { color: var(--text-base); font-weight: 700; font-variant-numeric: tabular-nums; }

/* Chart | Table alternate views: panes swapped by the mode-toggle control;
   a bare <details> read as an undesigned browser widget. The table pane is
   a scroll container with a sticky header so long windows stay scannable. */
.view-pane.is-hidden { display: none; }
.view-pane--table {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(17, 24, 39, 0.5);
}
.view-pane--table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.view-pane--table th, .view-pane--table td {
  text-align: right;
  padding: 4px 10px;
  border-bottom: 1px solid var(--border-soft);
  color: #d1d5db;
  white-space: nowrap;
}
.view-pane--table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111827;
  color: var(--text-muted);
  font-weight: 600;
}
.view-pane--table th[scope="row"] { text-align: left; color: var(--text-base); font-weight: 600; }

/* Reduced motion (review-001 UX F7): kill entrance/stutter animations;
   Chart.js animations are disabled in JS via the same media query. */
@media (prefers-reduced-motion: reduce) {
  .panel, .skeleton, .skeleton-line, .skeleton-chart {
    animation: none !important;
    transition: none !important;
  }
}

/* Editorial bridge: panel headings in the display serif. Data values stay in
   the body sans + tabular-nums; gauges and chart palettes are untouched. */
.panel h2, .panel h3 { font-family: var(--font-display); font-optical-sizing: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin: var(--space-5) 0; }
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 1px 0 var(--border-soft);
}

.label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: 5px;
}

.value { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* Info-icon trigger (button) + tap-to-toggle tooltip. Revealed on hover
   (desktop), keyboard focus, and tap (aria-expanded). The tip is a real
   element (role=tooltip) for screen readers; width is viewport-capped so it
   never clips on mobile. */
.info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  font: inherit; font-size: 9px; font-style: normal; color: var(--text-muted);
  cursor: help; position: relative; user-select: none; flex-shrink: 0;
  padding: 0; margin: 0;
}
.info-icon:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.info-tip {
  position: fixed;            /* JS (placeTip) positions in viewport coords so it never overflows */
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 12px; font-style: normal; color: var(--text-base);
  z-index: 1000; pointer-events: none;
  width: max-content; max-width: min(300px, calc(100vw - 32px));
  white-space: normal; line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  visibility: hidden; opacity: 0; transition: opacity 0.12s;
}
/* Desktop hover/focus reveals the popover in place. Scoped to hover-capable
   pointers so touch devices (which synthesize mouseover/:hover on tap) never
   flash the in-button tip before the click portals it to <body>. */
@media (hover: hover) {
  .info-icon:hover .info-tip,
  .info-icon:focus-within .info-tip { visibility: visible; opacity: 1; }
}
/* Portaled popover (tap/click) is revealed by JS via .is-open (see tooltips.js). */
.info-tip.is-open { visibility: visible; opacity: 1; }

/* Backdrop scrim for the touch-device modal treatment of the tip (see
   tooltips.js). Base state is invisible + click-through; .show reveals it, but
   only on touch devices (the media query below) — on desktop the tip is an
   anchored hover tooltip with no scrim, so .show is a no-op there. The tip
   sits above it (z-index 1000 > 900). */
.tip-scrim {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  z-index: 900;
  opacity: 0; visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

/* Touch devices: the tip is centered as a small dialog (see placeTip in
   tooltips.js), so widen it a little and strengthen the shadow so it reads as
   elevated above the page rather than a corner-anchored hover tooltip. The
   scrim is revealed here too — making the centered popover read as a focused
   modal rather than a box floating in live content. */
@media (hover: none) and (pointer: coarse) {
  .info-tip {
    max-width: min(92vw, 380px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.6);
  }
  .tip-scrim.show { opacity: 1; visibility: visible; pointer-events: auto; }
}

.panel {
  position: relative;   /* establish positioning so :hover z-index can lift the panel
                           and its info-icon tooltips above sibling cards */
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.25), inset 0 1px 0 var(--border-soft);
  /* fill-mode "backwards" (not "both"): with a transform in the keyframes,
     "both"/"forwards" makes Chromium treat the panel as the containing block
     for position:fixed descendants even after the animation ends, which throws
     off the info-tip's viewport coordinates. "backwards" still staggers the
     reveal during animation-delay but reverts to the default style (no
     transform) afterwards, so the tip resolves against the viewport. */
  animation: fade-up 0.4s ease-out backwards;
}
.panel:hover { z-index: 10; }   /* hovered panel + tooltips clear their neighbors */
.panel:nth-child(2) { animation-delay: 80ms; }
.panel:nth-child(3) { animation-delay: 160ms; }
.panel:nth-child(4) { animation-delay: 240ms; }
.panel:nth-child(5) { animation-delay: 320ms; }
.panel:nth-child(6) { animation-delay: 400ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

footer {
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: 14px;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--text-muted);
}
/* In-content links (e.g. the "What's Always Free?" learn-more link): gold
   accent with a quiet underline that strengthens on hover — consistent with
   the About page. footer a below overrides for footer links. */
a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(203, 184, 127, 0.4);
}
a:hover { text-decoration-color: var(--accent); }
footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
.tagline { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
footer .back { font-style: italic; }

.skeleton { background: var(--bg-raised); border-radius: var(--radius-sm); animation: skeleton-pulse 1.5s ease-in-out infinite; }
.skeleton-line { height: 13px; margin-bottom: var(--space-2); border-radius: 4px; }
.skeleton-chart { height: 120px; margin-bottom: var(--space-3); border-radius: var(--radius-sm); }
@keyframes skeleton-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.2; } }

/* Tabular numbers for data values */
.mono { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Layout (template skeleton grids)
   ========================================================================== */
.row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gauges-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.yield-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }

/* ==========================================================================
   Panel chrome (shared across all chart panels)
   ========================================================================== */
.panel-title { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--text-base); }
.panel-title--gap { margin-bottom: 10px; }                 /* title with no subtitle directly under it */
.panel-subtitle { display: block; font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 12px; }
.panel-subtitle--flush { margin-bottom: 0; }
.eyebrow { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.section-label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin: 14px 0 10px; padding-top: 12px; border-top: 1px solid var(--border);
}
.empty-note { color: var(--text-muted); font-size: 13px; margin: 0; }
.empty-note--center { text-align: center; }

/* Hero figures (big numbers) */
.hero-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.hero-col { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.hero-value { font-size: 30px; font-weight: 700; color: var(--text-base); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* AI hero panels (review-001 T1): the money story leads the page as twin
   .panel cards in the Infrastructure tab's .row-2col layout, reusing that
   page's component grammar — hero-col → ctx-row (status tag · label · ⓘ) →
   hairline footer. Gold stays the color of derived/estimated data; billed
   actuals keep the neutral treatment. Deliberately AFTER .hero-value: the
   modifier must win the equal-specificity cascade. */
.agent-hero { display: flex; flex-direction: column; }
.agent-hero .ctx-row { flex-wrap: wrap; }
.agent-hero__value { color: var(--accent); }
.agent-tag { font-size: 12px; font-weight: 600; color: var(--text-base); }
.agent-tag--estimate { color: var(--accent); }
.agent-hero__sources {
  margin: auto 0 0;                 /* pins to the panel's bottom edge */
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--text-muted);
}
/* The pinned footer's auto top-margin collapses to 0 when the card's
   content fills its stretched height, making the divider underline the
   ctx-row. A margin-bottom on the preceding zone is a guaranteed minimum:
   flexbox's auto absorbs free space, never the reserved margin. */
.agent-hero .ctx-row { margin-bottom: 14px; }
.hero-unit { font-size: 12px; color: var(--text-muted); }

/* ==========================================================================
   Lists (Monthly Cost by-provider, Latest Update top services)
   ========================================================================== */
.list-stack { display: flex; flex-direction: column; gap: 9px; }
.list-row { display: flex; align-items: center; gap: 10px; }
.list-row__mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.list-row__name { font-size: 13px; color: var(--text-base); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row__sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }   /* bg set inline (data color) */

.badge {
  flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 2px 8px;
  border-radius: 5px; font-variant-numeric: tabular-nums;
}   /* background + color set inline (free vs paid) */

/* Free-tier context line under Monthly Cost */
.ctx-row { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.ctx-sep { opacity: 0.5; }
.free-tag { color: #22c55e; font-weight: 600; }
.metric-value { color: var(--text-base); font-variant-numeric: tabular-nums; font-weight: 600; }
.metric-label { font-size: 12px; color: var(--text-muted); }
.metric-icon { color: #6b7280; }

/* ==========================================================================
   Charts (trend + composition shared frame/legend)
   ========================================================================== */
.chart-frame { background: #111827; border: 1px solid #1f2937; border-radius: 8px; overflow: hidden; }
.chart-canvas-wrap { position: relative; height: 200px; padding: 10px 14px 6px; }
.chart-canvas { width: 100%; height: 100%; display: block; }
.chart-legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 24px; padding: 8px 14px 10px; }
.legend-item { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.legend-label { font-size: 13px; color: #d1d5db; }
.legend-bar { width: 12px; height: 4px; border-radius: 2px; flex-shrink: 0; }   /* bg set inline (series color) */
.chart-crosshair { position: absolute; top: 0; width: 1px; height: 100%; background: rgba(255,255,255,0.15); pointer-events: none; display: none; z-index: 30; }

/* Work-rhythm calendar heatmap (/ai, batch 3). A DOM grid, not Chart.js —
   cells are the keyboard/touch targets and the panel must render through a
   Chart.js CDN failure. Full-year strip scrolls horizontally on phones
   (native momentum) rather than collapsing to a shorter window: the year
   arc — retired harnesses, coverage growth, the late ramp — is the story. */
.rhythm-frame { position: relative; }   /* hover card anchors here (scrolls inside) */
.rhythm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding: 12px 14px 10px; }
.rhythm-months { position: relative; height: 16px; margin-left: 30px; margin-bottom: 4px; }
.rhythm-month { position: absolute; top: 0; font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; white-space: nowrap; }
.rhythm-body { display: flex; align-items: flex-start; }
.rhythm-weekdays { display: grid; grid-template-rows: repeat(7, 12px); row-gap: 2px; width: 26px; flex: none; margin-right: 4px; }
.rhythm-weekdays span { font-size: 9px; color: var(--text-muted); line-height: 12px; height: 12px; }
.rhythm-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; gap: 2px; }
.rhythm-grid:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.rhythm-cell { border-radius: 2px; position: relative; }
.rhythm-cell--empty { border: 1px solid rgba(255, 255, 255, 0.07); }   /* no telemetry ≠ zero */
.rhythm-cell--pad { visibility: hidden; }
.rhythm-cell.is-cursor { outline: 2px solid #f3f4f6; outline-offset: 1px; z-index: 5; }
.rhythm-scale { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px; padding: 12px 4px 0; font-size: 11px; color: var(--text-muted); }
.rhythm-swatch { width: 12px; height: 12px; border-radius: 2px; flex: none; }   /* bg set inline (ramp) */

/* Visually hidden, still in the accessibility tree (display:none is not):
   the screen-reader summary path for graphics-only panels (batch 4). */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }


/* composition chart sizing (was injected by composition.js) */
.kumo-comp-chart { position: relative; width: 100%; height: 260px; }
@media (max-width: 600px) { .kumo-comp-chart { height: 320px; } }

/* ==========================================================================
   Gauges (Free Tier Utilization)
   ========================================================================== */
.gauge-card { display: flex; flex-direction: column; align-items: center; }
.gauge-ring { position: relative; width: 120px; height: 120px; }
.gauge-pct { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 18px; font-weight: 700; color: #e5e7eb; pointer-events: none; }
.gauge-raw { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 6px; }
.gauge-name { font-weight: 700; font-size: 13px; color: #e5e7eb; text-align: center; margin-top: 4px; }
.gauge-status {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border-soft);
  font-size: 12px; font-weight: 600;
}   /* color set inline (green/amber/red by status) */

/* ==========================================================================
   Yield (Infrastructure)
   ========================================================================== */
.yield-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: 0 2px 12px rgba(0,0,0,0.2); }
.yield-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.yield-alias { font-size: 15px; font-weight: 700; color: var(--text-base); letter-spacing: -0.01em; }
.up-badge { font-size: 11px; font-weight: 600; color: #34d399; background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); border-radius: 999px; padding: 2px 8px; flex-shrink: 0; }
.yield-role { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; line-height: 1.4; }
.metric-row { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--border-soft); margin-top: auto; }
.metric-cell { display: flex; align-items: center; gap: 6px; }
.sample-badge { display: inline-block; margin: 0 0 12px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #fbbf24; background: rgba(251,191,36,0.12); border: 1px solid rgba(251,191,36,0.3); }

/* ==========================================================================
   Responsive — stack the two-column header row (Monthly Cost + Latest Data)
   on phones so neither card is clipped. 640px = common small breakpoint.
   ========================================================================== */
@media (max-width: 640px) {
  .site-header { flex-direction: column; gap: var(--space-3); }
  .view-switch { width: 100%; }
  .view-switch__link { flex: 1; text-align: center; }
  .row-2col { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Fleet verification strip (Panel 5) — a fleet-level fact from Uptime Kuma,
   ruled to read as a footnote to the instance cards above, never as a third
   card. Text carries the values; the dot is redundant status encoding.
   ========================================================================== */
.yield-verify { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.yield-verify-primary { display: flex; align-items: baseline; gap: 8px; }
.yield-verify-dot { --dot: #34d399; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); align-self: center; flex-shrink: 0; }
.yield-verify-dot.is-warn { --dot: #fbbf24; }
.yield-verify-dot.is-crit { --dot: #f87171; }
/* Heartbeat: a soft sonar ring expanding off the dot — the strip's one motion,
   and it means something (the dot IS a heartbeat indicator). Ring color follows
   the state via --dot. Fully disabled under prefers-reduced-motion. */
.yield-verify-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--dot); opacity: 0; animation: yield-pulse 2.4s ease-out infinite; }
@keyframes yield-pulse { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .yield-verify-dot::after { animation: none; opacity: 0; }
}
.yield-verify-name { font-size: 12px; color: var(--text-muted); }
.yield-verify-value { font-size: 12px; font-weight: 600; color: var(--text-base); font-variant-numeric: tabular-nums; }
.yield-verify-probes { font-size: 12px; color: var(--text-muted); }
.yield-verify-labels { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.yield-verify-chip { font-size: 12px; color: var(--text-muted); }
.yield-verify-chip-value { color: var(--text-base); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.yield-verify-chip-value.is-warn { color: #fbbf24; }
.yield-verify-chip-value.is-crit { color: #f87171; }
.yield-verify-source { font-size: 11px; color: var(--text-muted); opacity: 0.7; margin-left: auto; }
@media (max-width: 640px) {
  .yield-verify-source { margin-left: 0; }
}
