/* Monitor: an amber glass instrument. One deliberate dark look; no theme switch. */

:root {
  color-scheme: dark;

  /* Layout: a slim status bar, one filter row, then a twelve-column grid of
     glass panels. A wide hero holds the finding beside the 24-hour dial. */

  /* Colour */
  --bg: #070706;
  --glass-hi: rgba(255, 255, 255, 0.068);
  --glass-lo: rgba(255, 255, 255, 0.02);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --text: #f5f1e8;
  --text-2: #b0aa9e;
  --text-3: #7a7468;
  --amber: #ffb224; /* the data, the live signal, anything selected */
  --amber-lit: #ffd68a;
  --amber-deep: #e08a12;
  --below: #4d8dff; /* below this model's own average */
  --mid: #25272c;
  --series-a: #d48a1e;
  --series-b: #3d8ee6;
  --up: #3ddc84;
  --down: #ff5c5c;
  --warn: #fbb315;
  --ink: #1b1303; /* text on amber */

  /* Type: one grotesque throughout. Width does the work: wide for headlines
     and small capitals, regular for reading, slightly narrow for figures. */
  --f-display: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-ui: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-data: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1480px;
  --pad: 22px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

/* Anything marked hidden stays hidden, whatever its layout rule says. */
[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14.5px/1.5 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paints the strip above the sticky bar on phones with a system bar. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
}

/* Amber light behind the glass. */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 820px at 84% -8%, rgba(255, 168, 38, 0.32), transparent 60%),
    radial-gradient(720px 520px at 100% 34%, rgba(255, 112, 16, 0.13), transparent 66%),
    radial-gradient(900px 700px at -8% 52%, rgba(255, 150, 40, 0.11), transparent 60%),
    radial-gradient(1100px 800px at 46% 118%, rgba(255, 178, 36, 0.12), transparent 60%),
    var(--bg);
}
.status,
#sample-banner,
.filters,
main,
.foot {
  position: relative;
  z-index: 1;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}

a {
  color: var(--amber-lit);
  text-decoration-color: rgba(255, 214, 138, 0.4);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}

/* Wide small capitals: the voice of every label on the instrument. */
.eyebrow,
.ph-title,
.ctl-name,
.unofficial,
.clocks dt,
.kpi-name,
.delta-name,
.brand-sub,
.readout-label,
.interval-name,
.reco-card h3,
.tip-head,
.heat-day,
.table-view summary,
.feed th,
.data th {
  font: 600 10.5px/1.35 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* Digits that tick keep their place: each sits in its own fixed cell, so
   the clocks do not shuffle sideways as the seconds change. */
.dg {
  display: inline-block;
  width: 0.64em;
  text-align: center;
}

/* ---- status bar -------------------------------------------------------- */

.status {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(7, 7, 6, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.status-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  min-height: 54px;
  padding-block: 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 650 17px/1 var(--f-display);
  font-stretch: 118%;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) 50% 22% / 2px 34% no-repeat,
    radial-gradient(circle at 34% 28%, #ffe7b3, var(--amber) 46%, var(--amber-deep));
  box-shadow: 0 0 16px rgba(255, 178, 36, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.brand-sub {
  color: var(--text-3);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 600 10.5px/1.2 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.1em;
  color: var(--text-2);
}
.live b {
  font-weight: 600;
}
.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-3);
}
.live[data-state="live"] {
  color: var(--up);
  border-color: rgba(61, 220, 132, 0.4);
  background: rgba(61, 220, 132, 0.08);
}
.live[data-state="live"] .live-dot {
  background: var(--up);
}
.live[data-state="sample"] {
  color: var(--amber-lit);
  border-color: rgba(255, 178, 36, 0.45);
  background: rgba(255, 178, 36, 0.09);
}
.live[data-state="sample"] .live-dot {
  background: var(--amber);
}
.live[data-state="offline"] {
  color: var(--down);
  border-color: rgba(255, 92, 92, 0.45);
  background: rgba(255, 92, 92, 0.08);
}
.live[data-state="offline"] .live-dot {
  background: var(--down);
}
.clocks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin-left: auto;
}
.clocks div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.clocks dt {
  color: var(--text-3);
}
.clocks dd {
  font: 500 14px/1.3 var(--f-data);
  color: var(--text);
  min-width: 4.6ch;
}

/* ---- sample banner ----------------------------------------------------- */

#sample-banner {
  padding-block: 12px 0;
}
.sample {
  padding: 10px 14px;
  border: 1px solid rgba(255, 178, 36, 0.45);
  border-radius: var(--r-md);
  background: rgba(255, 178, 36, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: 13.5px;
  color: var(--text);
}
.sample b {
  margin-right: 12px;
  font: 700 10.5px/1 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.1em;
  color: var(--amber);
}

/* ---- the one filter row ------------------------------------------------ */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  padding-block: 14px;
}
.ctl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 11px;
  min-width: 0;
}
.ctl-name {
  color: var(--text-3);
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.seg button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: 500 13px/1 var(--f-ui);
  padding: 8px 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.seg button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}
.seg button[aria-pressed="true"] {
  background: linear-gradient(180deg, #ffc452, var(--amber));
  color: var(--ink);
  font-weight: 650;
  box-shadow: 0 2px 14px rgba(255, 178, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.unofficial {
  margin-left: auto;
  color: var(--text-3);
}

/* ---- grid of glass panels ---------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  padding-block: 2px 48px;
}
.span-12 {
  grid-column: span 12;
}
.span-8 {
  grid-column: span 8;
}
.span-4 {
  grid-column: span 4;
}
.panel,
.kpi {
  position: relative;
  border: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo));
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  backdrop-filter: blur(26px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 32px 60px -34px rgba(0, 0, 0, 0.95);
}
/* A hairline that catches the light at the top left and warms at the bottom right. */
.panel::before,
.kpi::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05) 36%, rgba(255, 255, 255, 0.03) 62%, rgba(255, 190, 90, 0.2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.panel {
  min-width: 0;
  padding: 20px var(--pad) var(--pad);
}
.ph {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}
.ph-title {
  font-size: 11px;
  color: var(--text);
}
.ph-title.sub {
  margin: 20px 0 9px;
  color: var(--text-2);
}
.ph-meta {
  font: 400 12px/1.4 var(--f-data);
  color: var(--text-3);
}
.panel-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-2);
  max-width: 96ch;
}
.panel-note:empty {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .grid > * {
    animation: settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .grid > :nth-child(2) {
    animation-delay: 0.05s;
  }
  .grid > :nth-child(3) {
    animation-delay: 0.1s;
  }
  .grid > :nth-child(n + 4) {
    animation-delay: 0.15s;
  }
  @keyframes settle {
    from {
      opacity: 0.55;
      transform: translateY(10px);
    }
  }
}

/* ---- hero: the finding beside the dial --------------------------------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px clamp(28px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3.2vw, 44px);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 178, 36, 0.07) 70%, rgba(255, 178, 36, 0.12));
}
/* Rings spreading out from the dial, like the hours on a sundial's face. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 78% 50%, transparent 0 63px, rgba(255, 255, 255, 0.05) 63px 64px);
  -webkit-mask: radial-gradient(circle at 78% 50%, #000 12%, transparent 64%);
  mask: radial-gradient(circle at 78% 50%, #000 12%, transparent 64%);
}
.hero-copy {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.eyebrow {
  color: var(--amber-lit);
}
.finding-line {
  font: 620 clamp(1.7rem, 3.3vw, 3rem) / 1.07 var(--f-display);
  font-stretch: 112%;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.finding-note {
  font-size: 14px;
  color: var(--text-2);
  max-width: 68ch;
}
.deltas {
  display: grid;
  margin-top: 10px;
  min-width: 0;
}
.delta {
  display: grid;
  grid-template-columns: 7.4em 6.4em 5.4em minmax(60px, 1fr) auto;
  gap: 3px 16px;
  align-items: center;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.delta-value {
  font: 560 19px/1.2 var(--f-display);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.delta-when {
  font: 400 13px/1.2 var(--f-data);
  color: var(--text-2);
  white-space: nowrap;
}
.delta-plot svg,
.mini svg {
  display: block;
  width: 100%;
  height: 22px;
  overflow: visible;
}
.delta-ci {
  grid-column: 2 / -1;
  font: 400 12px/1.3 var(--f-data);
  color: var(--text-3);
}
.tag {
  font: 650 9.5px/1 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  white-space: nowrap;
}
.tag.real {
  color: var(--ink);
  background: linear-gradient(180deg, #ffc452, var(--amber));
  border-color: transparent;
}

.hero-dial {
  display: grid;
  justify-items: center;
  gap: 14px;
  min-width: 0;
}
.dial {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: drop-shadow(0 34px 44px rgba(0, 0, 0, 0.6));
}
/* The glow of the instrument's own light. */
.dial::before {
  content: "";
  position: absolute;
  inset: -9%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 178, 36, 0.3), rgba(255, 178, 36, 0.08) 46%, transparent 66%);
}
.dial:focus-visible {
  outline-offset: 6px;
}
#dial-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.readout {
  position: absolute;
  inset: 33.5%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 4%;
  border-radius: 50%;
  background:
    radial-gradient(120% 80% at 30% 6%, rgba(255, 255, 255, 0.2), transparent 52%),
    radial-gradient(circle at 50% 120%, rgba(255, 178, 36, 0.3), transparent 66%),
    rgba(20, 16, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 -14px 26px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  pointer-events: none;
}
.readout-label {
  font-size: clamp(8px, 0.95vw, 10px);
}
.readout-value {
  font: 600 clamp(1.5rem, 3.3vw, 2.5rem) / 1 var(--f-display);
  letter-spacing: -0.015em;
  color: var(--text);
}
.readout-value small {
  margin-left: 3px;
  font: 500 0.34em/1 var(--f-data);
  letter-spacing: 0;
  color: var(--text-2);
}
.readout-sub {
  font: 400 clamp(9.5px, 1vw, 11.5px) / 1.3 var(--f-ui);
  color: var(--text-2);
}
.dial-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  font: 600 10.5px/1.35 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.dial-caption #dial-meta {
  color: var(--text-3);
}
.hero-dial .key {
  justify-content: center;
  margin-top: 0;
}
.d-num {
  font: 600 12px var(--f-data);
  fill: var(--text-2);
  text-anchor: middle;
  dominant-baseline: central;
}
.d-tick {
  stroke: rgba(255, 255, 255, 0.5);
  stroke-width: 1.2;
  stroke-linecap: round;
}
.d-fine {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}
.d-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}
.d-face {
  fill: rgba(10, 8, 5, 0.55);
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 1;
}
.d-slot {
  fill: rgba(255, 255, 255, 0.04);
}
.d-bar {
  stroke: url(#d-amber);
  stroke-width: 2.2;
  stroke-linejoin: round;
}
.d-bar.now {
  filter: drop-shadow(0 0 9px rgba(255, 190, 70, 0.85));
}
.d-avg {
  fill: none;
  stroke: var(--text);
  stroke-width: 1;
  opacity: 0.85;
}
.d-day {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;
}
.d-hl {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
}
.d-hl.on {
  opacity: 1;
}
.d-hand {
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linecap: round;
}
.d-hand-tip {
  fill: var(--text);
}
.d-lens {
  fill: url(#d-lens);
  pointer-events: none;
}
.d-hit {
  fill: transparent;
  cursor: crosshair;
}
@media (prefers-reduced-motion: no-preference) {
  .d-bars {
    transform-origin: 220px 220px;
    animation: bloom 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  @keyframes bloom {
    from {
      opacity: 0.4;
      transform: scale(0.86);
    }
  }
}

/* ---- best hours for you (email sign-up) -------------------------------- */

.reco {
  display: grid;
  gap: 16px;
  background: linear-gradient(120deg, rgba(255, 178, 36, 0.16), rgba(255, 178, 36, 0.05) 46%, rgba(255, 255, 255, 0.03));
}
.reco::before {
  background: linear-gradient(140deg, rgba(255, 214, 138, 0.7), rgba(255, 178, 36, 0.25) 40%, rgba(255, 255, 255, 0.05) 70%, rgba(255, 178, 36, 0.35));
}
.reco-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
}
.reco-head .ph-title {
  color: var(--amber-lit);
}
.reco-line {
  margin-top: 8px;
  font: 600 clamp(1.25rem, 2.2vw, 1.9rem) / 1.15 var(--f-display);
  font-stretch: 110%;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.reco-line:focus {
  outline: none;
}
.tz {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.tz select {
  max-width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: var(--text);
  font: 500 13px var(--f-ui);
}
.gate {
  display: grid;
  gap: 12px;
  max-width: 820px;
}
.gate-pitch {
  font-size: 14.5px;
  color: var(--text-2);
}
.gate-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
}
.gate-row:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 178, 36, 0.14);
}
.gate input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 400 15px var(--f-ui);
}
.gate input[type="email"]:focus {
  outline: none;
}
.gate input[type="email"]::placeholder {
  color: var(--text-3);
}
.gate button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffc452, var(--amber));
  color: var(--ink);
  font: 650 14px var(--f-ui);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 178, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.gate button:hover {
  background: linear-gradient(180deg, #ffd27a, #ffbb3d);
}
.gate button:disabled {
  opacity: 0.6;
  cursor: default;
}
.gate-note {
  font-size: 12.5px;
  color: var(--text-2);
  max-width: 78ch;
}
.gate-msg {
  font-size: 13px;
  color: var(--amber-lit);
}
.gate-msg:empty {
  display: none;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.reco-body {
  display: grid;
  gap: 16px;
}
.reco-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}
.reco-card {
  min-width: 0;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.3);
}
.reco-card h3 {
  margin-bottom: 7px;
  color: var(--amber-lit);
}
.reco-card p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.strip {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  padding-bottom: 20px;
}
.strip-cell {
  position: relative;
  height: 30px;
  border-radius: 4px;
  background: var(--mid);
}
.strip-cell.now {
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.strip-time {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  font: 400 11px/1 var(--f-data);
  color: var(--text-3);
  white-space: nowrap;
}

/* ---- the five readings (also the metric switch) ------------------------ */

.kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.kpi {
  appearance: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  min-width: 0;
  padding: 16px 18px 17px;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.kpi:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}
.kpi[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 178, 36, 0.2), rgba(255, 178, 36, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 20px 50px -28px rgba(255, 178, 36, 0.55);
}
.kpi[aria-pressed="true"]::before {
  background: linear-gradient(160deg, rgba(255, 214, 138, 0.85), rgba(255, 178, 36, 0.25) 45%, rgba(255, 178, 36, 0.12));
}
.kpi-name {
  grid-column: 1 / -1;
}
.kpi[aria-pressed="true"] .kpi-name {
  color: var(--amber-lit);
}
.kpi-value {
  justify-self: start;
  margin-left: -5px;
  padding: 1px 5px;
  font: 560 clamp(1.6rem, 2.3vw, 2.15rem) / 1.05 var(--f-display);
  letter-spacing: -0.015em;
  white-space: nowrap;
  border-radius: 6px;
}
.kpi-value small {
  margin-left: 6px;
  font: 500 12px/1 var(--f-data);
  letter-spacing: 0;
  color: var(--text-3);
}
.kpi-spark {
  width: 92px;
  height: 32px;
  overflow: visible;
}
.kpi-delta {
  grid-column: 1 / -1;
  font: 400 12.5px/1.4 var(--f-data);
  color: var(--text-3);
}
.kpi-delta.good {
  color: var(--up);
}
.kpi-delta.bad {
  color: var(--down);
}

/* ---- flashes: a value that just changed -------------------------------- */

@keyframes flash-up {
  from {
    background-color: rgba(61, 220, 132, 0.38);
    color: #c9ffe0;
  }
}
@keyframes flash-down {
  from {
    background-color: rgba(255, 92, 92, 0.38);
    color: #ffd2d2;
  }
}
@keyframes flash-new {
  from {
    background-color: rgba(255, 214, 138, 0.5);
  }
}
.flash-up {
  animation: flash-up 1.2s ease-out;
}
.flash-down {
  animation: flash-down 1.2s ease-out;
}
.flash-new {
  animation: flash-new 1.6s ease-out;
}
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.9;
  }
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}
.live[data-state="live"] .live-dot::after,
.live[data-state="sample"] .live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes blink {
  50% {
    outline-color: transparent;
  }
}

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

.chart {
  position: relative;
  min-width: 0;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.grid-line {
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}
.axis-line {
  stroke: var(--line-2);
  stroke-width: 1;
}
.axis-text {
  font: 400 11px var(--f-data);
  fill: var(--text-3);
}
.end-label {
  font: 600 12.5px var(--f-data);
  fill: var(--text);
}
.band {
  fill: url(#g-band);
}
.line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 178, 36, 0.45));
}
.avg-line {
  stroke: var(--text-2);
  stroke-width: 1;
  opacity: 0.6;
}
.wk-col {
  fill: #fff;
  opacity: 0.04;
}
.incident {
  fill: var(--down);
  opacity: 0.18;
}
.last-dot {
  fill: var(--text);
  stroke: var(--amber);
  stroke-width: 2;
}
.last-ring {
  fill: var(--amber);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 1.8s ease-out infinite;
}
.cross {
  stroke: var(--text-2);
  stroke-width: 1;
  visibility: hidden;
}
.cross-dot {
  fill: var(--text);
  stroke: var(--amber);
  stroke-width: 2;
  visibility: hidden;
}
.whisker {
  stroke: var(--amber);
  stroke-width: 2.4;
  stroke-linecap: round;
}
.estimate {
  fill: var(--amber-lit);
  stroke: #17130c;
  stroke-width: 2;
}
.zero-line {
  stroke: var(--text-2);
  stroke-width: 1;
}
.step-a {
  fill: none;
  stroke: var(--series-a);
  stroke-width: 2;
  stroke-linejoin: round;
}
.step-b {
  fill: none;
  stroke: var(--series-b);
  stroke-width: 2;
  stroke-linejoin: round;
}
.fill-a {
  fill: var(--series-a);
  opacity: 0.13;
}
.fill-b {
  fill: var(--series-b);
  opacity: 0.13;
}
.median-a {
  stroke: var(--series-a);
  stroke-width: 1;
}
.median-b {
  stroke: var(--series-b);
  stroke-width: 1;
}
.spark-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.spark-area {
  fill: url(#g-spark);
}
.spark-dot {
  fill: var(--text);
}

/* ---- keys -------------------------------------------------------------- */

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  align-items: center;
  margin-top: 14px;
  font: 400 12px/1.4 var(--f-ui);
  color: var(--text-2);
}
.key:empty {
  display: none;
}
.key-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.key-ramp {
  width: 110px;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #4d8dff, #345496 25%, #26282e 50%, #96681e 75%, #ffb224);
}
.sw {
  flex: none;
  display: inline-block;
}
.sw-wk {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.sw-now {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  outline: 2px solid var(--text);
  outline-offset: -2px;
}
.sw-band {
  width: 18px;
  height: 9px;
  border-radius: 2px;
  background: rgba(255, 178, 36, 0.32);
}
.sw-avg {
  width: 18px;
  height: 0;
  border-top: 1px solid var(--text-2);
}
.sw-hand {
  width: 18px;
  height: 0;
  border-top: 1.4px solid var(--text);
}
.sw-day {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--amber);
}
.sw-bar {
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffc85a, var(--amber-deep));
}
.sw-incident {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: rgba(255, 92, 92, 0.34);
}
.sw-a,
.sw-b {
  width: 18px;
  height: 0;
  border-top: 2px solid var(--series-a);
}
.sw-b {
  border-top-color: var(--series-b);
}
.sw-ok,
.sw-some,
.sw-many {
  width: 6px;
  height: 14px;
  border-radius: 2px;
}
.sw-ok,
.tick.ok {
  background: #2f8a5c;
}
.sw-some,
.tick.some {
  background: var(--warn);
}
.sw-many,
.tick.many {
  background: var(--down);
}
.tick.none {
  background: var(--line);
}

/* ---- answer feed ------------------------------------------------------- */

.feed-panel {
  display: flex;
  flex-direction: column;
}
.feed-scroll {
  flex: 1 1 0;
  min-height: 300px;
  max-height: 440px;
  overflow: auto;
  margin: 0 calc(var(--pad) * -1) calc(var(--pad) * -1);
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.feed {
  width: 100%;
  border-collapse: collapse;
  font: 400 12.5px/1.3 var(--f-data);
}
.feed th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 9px 7px;
  background: #15130f;
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  text-align: right;
  color: var(--text-3);
}
.feed td {
  padding: 8px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  text-align: right;
  white-space: nowrap;
  color: var(--text-2);
}
.feed tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.feed th:first-child,
.feed td:first-child {
  padding-left: var(--pad);
  text-align: left;
}
.feed th:last-child,
.feed td:last-child {
  padding-right: var(--pad);
}
.feed th:nth-child(2),
.feed td:nth-child(2),
.feed th.l,
.feed td.l {
  text-align: left;
}
.feed td.l {
  font-size: 10.5px;
  font-weight: 600;
  font-stretch: 116%;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.feed td.q {
  max-width: 0;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 13px;
}
.feed td.q span {
  margin-left: 7px;
  color: var(--text-3);
  font-size: 12px;
}
.res {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 7px;
  border-radius: 999px;
  font: 650 9.5px/1 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.08em;
}
.res::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.res.pass {
  color: var(--up);
  background: rgba(61, 220, 132, 0.12);
}
.res.fail {
  color: var(--down);
  background: rgba(255, 92, 92, 0.12);
}
.res.err {
  color: var(--warn);
  background: rgba(251, 179, 21, 0.12);
}
.res.err::before {
  border-radius: 0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---- every hour of the week -------------------------------------------- */

.week-scroll {
  overflow-x: auto;
  padding: 2px;
}
.week {
  --marg: 9.5em;
  --cols: 3.6em repeat(24, minmax(10px, 1fr)) var(--marg);
  display: grid;
  gap: 12px;
  min-width: 300px;
}
.profile,
.heat {
  display: grid;
  grid-template-columns: var(--cols);
  column-gap: 3px;
}
.profile {
  position: relative;
  height: 250px;
}
.p-axis {
  position: relative;
  font: 400 11px/1 var(--f-data);
  color: var(--text-3);
}
.p-axis span {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}
.p-col {
  position: relative;
  border-radius: 4px;
}
.p-col.now {
  background: rgba(255, 255, 255, 0.07);
}
.p-whisker {
  position: absolute;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--text-3);
  border-radius: 1px;
}
.p-dot {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--text-2);
}
.p-col.sure .p-whisker {
  background: currentColor;
}
.p-col.sure .p-dot {
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}
.p-base {
  position: absolute;
  left: calc(3.6em + 3px);
  right: calc(var(--marg) + 3px);
  height: 0;
  border-top: 1px solid var(--text-2);
  opacity: 0.6;
  pointer-events: none;
}
/* Day-of-week means, one beside each row of the grid. */
.marg {
  position: relative;
  align-self: stretch;
  margin-left: 10px;
  color: var(--text-2);
  background: linear-gradient(90deg, transparent calc(50% - 0.5px), var(--line-2) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px));
}
.m-whisker {
  position: absolute;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--text-3);
}
.m-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: var(--text-2);
}
.marg.sure .m-whisker,
.marg.sure .m-dot {
  background: currentColor;
}
.marg-label {
  margin-left: 10px;
  text-align: center;
}
.heat {
  row-gap: 3px;
  align-items: center;
}
.heat-day {
  font-size: 10px;
}
.heat-hour {
  padding-top: 5px;
  font: 400 11px/1 var(--f-data);
  color: var(--text-3);
  white-space: nowrap;
}
.cell {
  position: relative;
  aspect-ratio: 0.84;
  border-radius: 4px;
  background: var(--mid);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background-color 0.4s;
}
.cell.empty {
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}
.cell.sure {
  outline: 1px solid var(--text-2);
  outline-offset: -1px;
}
.cell.now {
  outline: 2px solid var(--text);
  outline-offset: -2px;
  animation: blink 1.6s step-end infinite;
  z-index: 1;
}
.cell.on {
  outline: 2px solid var(--amber-lit);
  outline-offset: 1px;
  animation: none;
  z-index: 2;
}

.table-view {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.table-view summary {
  width: fit-content;
  cursor: pointer;
}
.table-scroll {
  overflow-x: auto;
}
.table-view .table-scroll {
  margin-top: 10px;
}
table.data {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font: 400 13px/1.3 var(--f-data);
}
.data th,
.data td {
  padding: 9px 16px 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
  white-space: nowrap;
}
.data th {
  font-size: 9.5px;
  color: var(--text-3);
  border-bottom-color: var(--line);
}
.data td {
  color: var(--text-2);
}
.data th:first-child,
.data td:first-child,
.data th.l,
.data td.l {
  text-align: left;
}
.data tr:last-child td {
  border-bottom: 0;
}
.tasks td:first-child {
  font-family: var(--f-ui);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
}
.passbar {
  display: inline-grid;
  grid-template-columns: 104px 3.6em;
  gap: 12px;
  align-items: center;
}
.passbar i {
  position: relative;
  height: 6px;
  background: linear-gradient(90deg, transparent calc(50% - 0.5px), var(--text-3) calc(50% - 0.5px) calc(50% + 0.5px), transparent calc(50% + 0.5px)), rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}
.passbar i b {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--amber-deep), #ffc452);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(255, 178, 36, 0.4);
}
.passbar span {
  color: var(--text);
  font-weight: 500;
  border-radius: 4px;
}
.tasks svg {
  width: 92px;
  height: 22px;
  vertical-align: middle;
  overflow: visible;
}

/* ---- by effort level --------------------------------------------------- */

table.efforts {
  min-width: 880px;
}
.efforts td {
  padding-block: 12px;
  vertical-align: middle;
}
.efforts tbody tr {
  cursor: pointer;
}
.efforts tbody tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}
.efforts tr.on td {
  background: rgba(255, 178, 36, 0.1);
}
.efforts td:first-child {
  padding-left: 14px;
  border-left: 2px solid transparent;
  font: 650 11px/1 var(--f-data);
  font-stretch: 122%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.efforts tr.on td:first-child {
  border-left-color: var(--amber);
  color: var(--amber-lit);
}
.efforts th:first-child {
  padding-left: 16px;
}
.gapcell {
  display: inline-grid;
  grid-template-columns: 5.4em 110px auto;
  gap: 12px;
  align-items: center;
  text-align: right;
}
.gapcell b {
  font-weight: 560;
  color: var(--text);
}

/* ---- part of day ------------------------------------------------------- */

.interval {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 5px 12px;
  align-items: baseline;
  padding-block: 11px;
  border-top: 1px solid var(--line);
}
.interval:first-child {
  border-top: 0;
  padding-top: 0;
}
.interval-figure {
  font: 560 17px/1.2 var(--f-display);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.interval-figure small {
  margin-left: 8px;
  font: 400 12px/1 var(--f-data);
  letter-spacing: 0;
  color: var(--text-3);
}
.interval .tag {
  align-self: center;
}
.interval .chart {
  grid-column: 1 / -1;
}
#dist {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.empty-note {
  font-size: 13.5px;
  color: var(--text-2);
}

/* ---- status ------------------------------------------------------------ */

.status-now {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 600 19px/1.2 var(--f-display);
  font-stretch: 108%;
  letter-spacing: -0.02em;
  border-radius: 4px;
}
.status-now::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
}
.status-now[data-kind="good"]::before {
  background: var(--up);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.7);
}
.status-now[data-kind="warn"]::before {
  background: var(--warn);
}
.status-now[data-kind="bad"]::before {
  background: var(--down);
}
.components {
  margin-top: 12px;
  font: 400 13px/1.3 var(--f-ui);
}
.components:empty {
  display: none;
}
.components li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 6px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.components li b {
  font-weight: 500;
  color: var(--text);
}
.uptime {
  display: flex;
  gap: 2px;
  height: 32px;
}
.tick {
  flex: 1 1 0;
  min-width: 2px;
  border-radius: 2px;
}
.tick.now {
  outline: 1px solid var(--text);
  outline-offset: 1px;
}
.incidents {
  font-size: 13px;
  color: var(--text-2);
}
.incidents li {
  display: grid;
  grid-template-columns: 5.2em minmax(0, 1fr);
  gap: 10px;
  padding-block: 7px;
  border-top: 1px solid var(--line);
}
.incidents li:first-child {
  border-top: 0;
}
.incidents time {
  font: 400 12px/1.5 var(--f-data);
  color: var(--text-3);
}

/* ---- method and footer ------------------------------------------------- */

.method-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 36px;
}
.method h3 {
  margin-bottom: 7px;
  font: 620 15px/1.25 var(--f-display);
  font-stretch: 108%;
  letter-spacing: -0.01em;
  color: var(--amber-lit);
}
.method p {
  font-size: 13.5px;
  color: var(--text-2);
  max-width: 60ch;
}
.foot {
  display: grid;
  gap: 5px;
  padding-block: 0 40px;
  font-size: 12.5px;
  color: var(--text-3);
}
#foot-meta {
  font: 400 12px/1.5 var(--f-data);
}

/* ---- tooltip ----------------------------------------------------------- */

.tip {
  position: fixed;
  z-index: 40;
  left: 0;
  top: 0;
  max-width: min(310px, calc(100vw - 24px));
  padding: 11px 13px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: rgba(22, 19, 13, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font: 400 12.5px/1.45 var(--f-data);
  color: var(--text-2);
  pointer-events: none;
}
.tip-head {
  margin-bottom: 6px;
  font-size: 9.5px;
  color: var(--text-3);
}
.tip-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
}
.tip-row b {
  font-weight: 560;
  color: var(--text);
  white-space: nowrap;
}
.tip-row.on span,
.tip-row.on b {
  color: var(--amber-lit);
}
.tip-foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-family: var(--f-ui);
}

/* ---- narrower screens -------------------------------------------------- */

@media (max-width: 1100px) {
  .span-8,
  .span-4 {
    grid-column: span 12;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero::after {
    background: repeating-radial-gradient(circle at 50% 78%, transparent 0 63px, rgba(255, 255, 255, 0.05) 63px 64px);
    -webkit-mask: radial-gradient(circle at 50% 78%, #000 12%, transparent 60%);
    mask: radial-gradient(circle at 50% 78%, #000 12%, transparent 60%);
  }
  .kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .method-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-scroll {
    flex: none;
    height: 340px;
  }
}
@media (max-width: 640px) {
  :root {
    --pad: 16px;
  }
  .grid,
  .kpis {
    gap: 12px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kpi-spark {
    display: none;
  }
  .brand-sub {
    display: none;
  }
  .unofficial {
    margin-left: 0;
  }
  .clocks {
    gap: 2px 16px;
    width: 100%;
    margin-left: 0;
  }
  .method-cols {
    grid-template-columns: minmax(0, 1fr);
  }
  .delta {
    grid-template-columns: 6.6em 5.6em minmax(40px, 1fr);
  }
  .delta .tag,
  .delta-when {
    display: none;
  }
  .week {
    --marg: 4.6em;
    --cols: 2.8em repeat(24, minmax(10px, 1fr)) var(--marg);
  }
  .p-base {
    left: calc(2.8em + 3px);
  }
  .marg,
  .marg-label {
    margin-left: 6px;
  }
  .interval {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .interval .tag {
    display: none;
  }
  .gate-row {
    border-radius: 24px;
  }
  .gate button {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flash-up,
  .flash-down,
  .flash-new,
  .last-ring,
  .cell.now,
  .live-dot::after {
    animation: none !important;
  }
  .last-ring {
    display: none;
  }
}
