/* Appearance tokens (dark default, light below) and accent tokens. Derived tints use color-mix,
   so every accent palette works in both appearances. */
:root {
  font:
    87.5%/1.5 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
  --bg: #110d1b;
  --shell: #070708;
  /* The page surface is glass: the colored light behind it shows through. */
  --shell-glass: #07070870;
  --shell-material: #070708b0;
  --material: #1b1b1ddb;
  --card: #1b1b1d;
  --card-raised: #252328;
  --surface: #202022;
  --surface-hover: #303032;
  --surface-selected: #353537;
  --field-border: #3a363f;
  --field-border-hover: #70637f;
  --hairline: #ffffff12;
  --hairline-strong: #ffffff1f;
  --line: #ffffff0a;
  --grid: #ffffff17;
  --code-bg: #0e0d10;
  --text: #f4f4f4;
  --text-2: #c4c0ca;
  --muted: #a7a3ad;
  --faint: #8e8997;
  --inverse: #f5f5f5;
  --inverse-hover: #dddddd;
  --on-inverse: #121212;
  --mark: #f9f9f5;
  --shadow: #00000080;
  --good: #34c759;
  --warn: #ffb020;
  --bad: #ff5a4f;
  --accent: #8750f4;
  --accent-2: #c0ed54;
  --accent-3: #68c8ca;
  --accent-2-ink: var(--accent-2);
  --accent-soft: color-mix(in oklab, var(--accent) 62%, var(--text));
  --accent-wash: color-mix(in srgb, var(--accent-2-ink) 7%, transparent);
  --glow-1: color-mix(in srgb, var(--accent-2) 30%, transparent);
  --glow-2: color-mix(in srgb, var(--accent) 42%, transparent);
  --glow-3: color-mix(in srgb, var(--accent-3) 30%, transparent);
  --glass-edge: #ffffff26;
  --cal-0: var(--card-raised);
  --cal-1: color-mix(in oklab, var(--accent) 30%, var(--card));
  --cal-2: color-mix(in oklab, var(--accent) 55%, var(--card));
  --cal-3: color-mix(in oklab, var(--accent) 80%, var(--card));
  --cal-4: color-mix(in oklab, var(--accent) 70%, var(--text));
}
:root[data-appearance="light"] {
  color-scheme: light;
  --bg: #efedf3;
  --shell: #ffffff;
  --shell-glass: #ffffffb0;
  --shell-material: #ffffff99;
  --material: #ffffffe0;
  --card: #f6f5f8;
  --card-raised: #ebe9ef;
  --surface: #efedf2;
  --surface-hover: #e3e1e8;
  --surface-selected: #ffffff;
  --field-border: #d4d0da;
  --field-border-hover: #a69cb4;
  --hairline: #0000000f;
  --hairline-strong: #0000001f;
  --line: #0000000d;
  --grid: #00000017;
  --code-bg: #f1eff4;
  --text: #1c1a20;
  --text-2: #3f3c45;
  --muted: #67636f;
  --faint: #857f8e;
  --inverse: #1c1a20;
  --inverse-hover: #3a3740;
  --on-inverse: #ffffff;
  --mark: #141413;
  --shadow: #2a204026;
  --good: #1f9d45;
  --warn: #b7791f;
  --bad: #d93025;
  --accent-2-ink: color-mix(in oklab, var(--accent-2) 62%, #000000);
  --glow-1: color-mix(in srgb, var(--accent-2) 26%, transparent);
  --glow-2: color-mix(in srgb, var(--accent) 16%, transparent);
  --glow-3: color-mix(in srgb, var(--accent-3) 18%, transparent);
  --glass-edge: #ffffffcc;
  --cal-4: var(--accent);
}
@media (prefers-color-scheme: light) {
  :root[data-appearance="system"] {
    color-scheme: light;
    --bg: #efedf3;
    --shell: #ffffff;
    --shell-glass: #ffffffb0;
    --shell-material: #ffffff99;
    --material: #ffffffe0;
    --card: #f6f5f8;
    --card-raised: #ebe9ef;
    --surface: #efedf2;
    --surface-hover: #e3e1e8;
    --surface-selected: #ffffff;
    --field-border: #d4d0da;
    --field-border-hover: #a69cb4;
    --hairline: #0000000f;
    --hairline-strong: #0000001f;
    --line: #0000000d;
    --grid: #00000017;
    --code-bg: #f1eff4;
    --text: #1c1a20;
    --text-2: #3f3c45;
    --muted: #67636f;
    --faint: #857f8e;
    --inverse: #1c1a20;
    --inverse-hover: #3a3740;
    --on-inverse: #ffffff;
    --mark: #141413;
    --shadow: #2a204026;
    --good: #1f9d45;
    --warn: #b7791f;
    --bad: #d93025;
    --accent-2-ink: color-mix(in oklab, var(--accent-2) 62%, #000000);
    --glow-1: color-mix(in srgb, var(--accent-2) 26%, transparent);
    --glow-2: color-mix(in srgb, var(--accent) 16%, transparent);
    --glow-3: color-mix(in srgb, var(--accent-3) 18%, transparent);
    --glass-edge: #ffffffcc;
    --cal-4: var(--accent);
  }
}
:root[data-accent="ocean"] {
  --accent: #2f7cf6;
  --accent-2: #4fd1c5;
  --accent-3: #f6c453;
}
:root[data-accent="sunset"] {
  --accent: #f2643a;
  --accent-2: #ffc94d;
  --accent-3: #ef476f;
}
:root[data-accent="forest"] {
  --accent: #2fa365;
  --accent-2: #c9e86a;
  --accent-3: #4fb8e8;
}
:root[data-accent="amber"] {
  --accent: #e8930c;
  --accent-2: #ffe08a;
  --accent-3: #3fb4d9;
}
:root[data-accent="rose"] {
  --accent: #e2457a;
  --accent-2: #ffb3c8;
  --accent-3: #9b7bf2;
}
:root[data-accent="indigo"] {
  --accent: #5b5cf0;
  --accent-2: #8fd3ff;
  --accent-3: #f477b3;
}
:root[data-accent="graphite"] {
  --accent: #8b8b94;
  --accent-2: var(--text);
  --accent-3: #b4b4bc;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}
/* Colored light behind the glass. Fixed, so the page scrolls over it and the tint shifts. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 4% 6%, var(--glow-1), transparent 70%),
    radial-gradient(ellipse 55% 60% at 96% 24%, var(--glow-2), transparent 72%),
    radial-gradient(ellipse 65% 50% at 50% 104%, var(--glow-3), transparent 70%);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
button {
  border: 0;
}
button:active,
.primary-button:active,
.circle-button:active,
.main-nav a:active,
summary:active {
  transform: scale(0.98);
}
:focus-visible {
  outline: 2px solid var(--accent-2-ink);
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h2 {
  font-size: 1.071rem;
  font-weight: 500;
}
button,
a,
input,
select,
summary {
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.1s ease-out;
}
button:hover {
  background: var(--surface-hover);
}
a:hover {
  color: var(--text);
}
.dashboard-shell {
  width: calc(100% - 80px);
  max-width: 1320px;
  margin: 40px auto;
  /* Scroll distance before the top bar sticks: the shell's top margin. */
  --stick-at: 40px;
  padding: 24px;
  background: var(--shell-glass);
  border: 1px solid var(--hairline);
  border-radius: 26px;
  /* A bright top edge, as if light catches the rim of the glass. */
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 32px 100px var(--shadow);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 5;
  margin: -24px -24px 0;
  padding: 20px 24px 16px;
  border-radius: 26px 26px 0 0;
  background: var(--shell-material);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
/* Once the bar sticks to the viewport edge its corners square off, so the frosted material
   meets the edges of the shell instead of leaving rounded gaps. */
@supports (animation-timeline: scroll()) {
  .topbar {
    background-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: topbar-stick linear both;
    animation-timeline: scroll(root);
    animation-range: 0 var(--stick-at);
  }
  /* At rest the bar is part of the glass. Its own frosting arrives as content slides under it. */
  @keyframes topbar-stick {
    to {
      border-radius: 0;
      background-color: var(--shell-material);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      backdrop-filter: blur(20px) saturate(180%);
    }
  }
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.357rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-secondary {
  font-weight: 400;
  color: var(--text-2);
}
.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  fill: var(--mark);
  flex-shrink: 0;
}
.main-nav {
  display: flex;
  gap: 6px;
}
.main-nav a {
  display: block;
  background: var(--surface);
  color: var(--text-2);
  padding: 11px 16px;
  border-radius: 28px;
  font-size: 0.857rem;
  white-space: nowrap;
}
.main-nav a:hover {
  background: var(--surface-hover);
}
.main-nav .current {
  background: var(--inverse);
  color: var(--on-inverse);
}
@supports (scroll-target-group: auto) {
  .main-nav {
    scroll-target-group: auto;
  }
  /* Browsers that track the section in view natively; the script takes over when it runs. */
  .main-nav:not([data-tracked]) .current:not(:target-current) {
    background: var(--surface);
    color: var(--text-2);
  }
  .main-nav:not([data-tracked]) a:target-current {
    background: var(--inverse);
    color: var(--on-inverse);
  }
}
.quiet-button {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border-radius: 28px;
  padding: 11px 17px;
  color: var(--text-2);
  font-size: 0.857rem;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.button-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button-icon .fill {
  fill: currentColor;
  stroke: none;
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}
.preview-eyebrow .status-dot {
  background: var(--accent-3);
}
.appearance-popover {
  inset: 132px max(24px, calc((100vw - 1320px) / 2)) auto auto;
  width: min(320px, calc(100vw - 32px));
  transform-origin: top right;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface);
}
.segmented button {
  padding: 8px 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.929rem;
}
.segmented .selected {
  background: var(--surface-selected);
  color: var(--text);
  box-shadow: 0 1px 3px var(--shadow);
}
.appearance-popover .picker-label {
  padding: 18px 0 8px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.swatches button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 0.929rem;
}
.swatches button:hover {
  background: var(--surface-hover);
}
.swatches .selected {
  border-color: var(--text);
  color: var(--text);
}
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--hairline-strong);
}
.swatch-violet {
  background: linear-gradient(135deg, #8750f4 50%, #c0ed54 50%);
}
.swatch-ocean {
  background: linear-gradient(135deg, #2f7cf6 50%, #4fd1c5 50%);
}
.swatch-sunset {
  background: linear-gradient(135deg, #f2643a 50%, #ffc94d 50%);
}
.swatch-forest {
  background: linear-gradient(135deg, #2fa365 50%, #c9e86a 50%);
}
.swatch-amber {
  background: linear-gradient(135deg, #e8930c 50%, #ffe08a 50%);
}
.swatch-rose {
  background: linear-gradient(135deg, #e2457a 50%, #ffb3c8 50%);
}
.swatch-indigo {
  background: linear-gradient(135deg, #5b5cf0 50%, #8fd3ff 50%);
}
.swatch-graphite {
  background: linear-gradient(135deg, #8b8b94 50%, #e4e4e8 50%);
}
.mcp-popover code.inline {
  display: inline;
  margin: 0;
  padding: 1px 5px;
  border-radius: 6px;
  user-select: text;
  -webkit-user-select: text;
}
/* Floating panels: translucent material, no scrim, grow out of the control that opened them. */
.floating {
  position: fixed;
  margin: 0;
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding: 20px;
  color: var(--text);
  background: var(--material);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--hairline-strong);
  border-radius: 20px;
  box-shadow: 0 24px 80px var(--shadow);
  opacity: 0;
  transform: scale(0.96) translateY(-6px);
  transition:
    opacity 0.2s ease-out,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    overlay 0.3s allow-discrete,
    display 0.3s allow-discrete;
}
.floating:popover-open {
  opacity: 1;
  transform: none;
}
@starting-style {
  .floating:popover-open {
    opacity: 0;
    transform: scale(0.96) translateY(-6px);
  }
}
.popover-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.popover-heading h2 {
  font-size: 1.214rem;
  letter-spacing: -0.02em;
}
.mcp-popover {
  inset: 132px max(24px, calc((100vw - 1320px) / 2)) auto auto;
  width: min(440px, calc(100vw - 32px));
  transform-origin: top right;
}
.mcp-popover p {
  font-size: 0.929rem;
  color: var(--text-2);
  margin-top: 10px;
}
.mcp-popover ol {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 14px;
  font-size: 0.929rem;
  color: var(--text);
}
.mcp-popover li span {
  display: block;
}
.mcp-popover code {
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--code-bg);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font: 0.857rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--text);
  overflow-wrap: anywhere;
  /* One click selects the whole command for copying. */
  user-select: all;
  -webkit-user-select: all;
}
.mcp-popover .mcp-note {
  font-size: 0.857rem;
  color: var(--muted);
}
.app-picker {
  inset: 210px auto auto max(24px, calc((100vw - 1320px) / 2 + 24px));
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  border-radius: 18px;
  transform-origin: top left;
}
.picker-label {
  padding: 8px 12px 6px;
  font-size: 0.786rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.app-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-picker a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  color: var(--text);
}
.app-picker a:hover,
.app-picker a:focus-visible {
  background: var(--surface-hover);
  color: var(--text);
}
.app-picker a:active {
  transform: scale(0.98);
}
.picker-name {
  font-size: 1.071rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.picker-slug {
  grid-row: 2;
  font-size: 0.786rem;
  color: var(--faint);
}
.picker-check {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 14px;
  height: 12px;
  fill: none;
  stroke: var(--accent-2-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Rows settle in one after another, top to bottom, following the panel's growth. */
.app-picker li {
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.2s ease-out,
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.app-picker:popover-open li {
  opacity: 1;
  transform: none;
}
@starting-style {
  .app-picker:popover-open li {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.app-picker li:nth-child(2) { transition-delay: 20ms; }
.app-picker li:nth-child(3) { transition-delay: 40ms; }
.app-picker li:nth-child(4) { transition-delay: 60ms; }
.app-picker li:nth-child(5) { transition-delay: 80ms; }
.app-picker li:nth-child(6) { transition-delay: 100ms; }
.app-picker li:nth-child(7) { transition-delay: 120ms; }
.app-picker li:nth-child(n + 8) { transition-delay: 140ms; }
.app-trigger {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline dotted;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color 0.2s;
}
.app-trigger:hover,
.app-trigger:focus-visible,
body:has(#app-picker:popover-open) .app-trigger {
  background: transparent;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
}
.app-trigger:active {
  transform: none;
  opacity: 0.7;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filter-trigger {
  gap: 8px;
  padding: 8px 16px;
  min-height: 42px;
}
.chip {
  padding: 3px 8px;
  border-radius: 10px;
  background: var(--surface-hover);
  color: var(--text);
  font-size: 0.786rem;
}
.filter-popover {
  inset: 210px max(24px, calc((100vw - 1320px) / 2 + 24px)) auto auto;
  width: min(520px, calc(100vw - 32px));
  transform-origin: top right;
}
.filter-popover .filter-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 18px;
  padding-bottom: 0;
}
.filter-note {
  grid-column: 1 / -1;
  font-size: 0.857rem;
  color: var(--muted);
}
.filter-popover .primary-button {
  grid-column: 1 / -1;
  justify-self: end;
}
/* Hang each panel from its control so it follows the layout and the sticky top bar. */
@supports (anchor-name: --a) {
  .mcp-trigger {
    anchor-name: --mcp;
  }
  .mcp-popover {
    position-anchor: --mcp;
    top: calc(anchor(bottom) + 10px);
    right: anchor(right);
  }
  .appearance-trigger {
    anchor-name: --appearance;
  }
  .appearance-popover {
    position-anchor: --appearance;
    top: calc(anchor(bottom) + 10px);
    right: anchor(right);
  }
  .app-trigger {
    anchor-name: --app;
  }
  .app-picker {
    position-anchor: --app;
    top: calc(anchor(bottom) + 8px);
    left: anchor(left);
  }
  .toolbar {
    anchor-name: --toolbar;
  }
  .filter-popover {
    position-anchor: --toolbar;
    top: calc(anchor(bottom) + 10px);
    right: anchor(right);
  }
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
}
.eyebrow {
  font-size: 0.786rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent-2-ink);
  border-radius: 50%;
  flex-shrink: 0;
}
h1 {
  font-size: clamp(1.857rem, 3.2vw, 3rem);
  letter-spacing: -0.035em;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 10px;
}
h1 span {
  color: var(--muted);
}
.period-control {
  display: flex;
  background: var(--surface);
  border-radius: 26px;
  padding: 4px;
  gap: 2px;
  flex-shrink: 0;
}
.period-control button {
  padding: 8px 17px;
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  font-size: 0.857rem;
}
.period-control .selected {
  background: var(--surface-selected);
  color: var(--text);
  box-shadow: 0 1px 3px var(--shadow);
}
summary {
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.filter-icon {
  color: var(--accent-soft);
  font-size: 1.286rem;
  line-height: 1;
}
.filter-context {
  color: var(--text-2);
}
.filter-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 12px;
  align-items: end;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.786rem;
  color: var(--muted);
}
input,
select {
  min-width: 0;
  width: 100%;
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--field-border);
  border-radius: 10px;
  color: var(--text);
  outline-offset: 2px;
}
input:hover,
select:hover {
  border-color: var(--field-border-hover);
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--on-inverse);
  background: var(--inverse);
  border-radius: 30px;
  padding: 11px 18px;
  font-size: 0.857rem;
  font-weight: 500;
  white-space: nowrap;
}
.primary-button:hover {
  color: var(--on-inverse);
  background: var(--inverse-hover);
}
.circle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--surface);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 1.214rem;
  flex-shrink: 0;
}
.attention {
  margin-top: 24px;
  padding: 16px 8px 8px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--warn) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--warn) 22%, transparent);
}
.attention h2 {
  padding: 0 12px 6px;
  font-size: 1.071rem;
}
.attention ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.attention a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
}
.attention a:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: inherit;
}
.attention a:active {
  transform: scale(0.99);
}
.attention .status {
  margin: 0;
  flex-shrink: 0;
}
.attention-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.attention-text strong {
  font-size: 1rem;
  font-weight: 600;
}
.attention-text span {
  font-size: 0.857rem;
  color: var(--muted);
}
.attention-chevron {
  font-size: 1.429rem;
  color: var(--faint);
}
.overview-section {
  margin-top: 28px;
  scroll-margin-top: 96px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kpi-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.kpi {
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 18px 20px 20px;
  min-width: 0;
  transition: background 0.15s;
}
/* A tile with a link: the link covers the whole tile and jumps to the section behind it. */
.kpi-hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.kpi:has(.kpi-hit:hover) {
  background: var(--card-raised);
}

.kpi-label {
  font-size: 0.929rem;
  color: var(--muted);
}
.kpi-value {
  margin-top: 6px;
  font-size: 2.429rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.kpi-caption {
  margin-top: 6px;
  font-size: 0.857rem;
  color: var(--faint);
}
.delta {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.929rem;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: 6px;
  background: color-mix(in srgb, currentColor 14%, transparent);
}
.delta-good {
  color: var(--good);
}
.delta-bad {
  color: var(--bad);
}
.delta-neutral {
  color: var(--muted);
}
.kpi-note {
  margin-top: 8px;
  text-align: right;
  font-size: 0.857rem;
  color: var(--faint);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.chart-card {
  margin-top: 12px;
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
}
.chart-card .release-marker {
  stroke: var(--text-2);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  vector-effect: non-scaling-stroke;
}
.chart-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.857rem;
  color: var(--muted);
}
.marker-key {
  width: 14px;
  border-top: 1px dashed var(--text-2);
}
.tone-0 {
  --tone: var(--accent);
}
.tone-1 {
  --tone: var(--accent-3);
}
.tone-2 {
  --tone: var(--accent-2-ink);
}
.tone-3 {
  --tone: color-mix(in srgb, var(--faint) 55%, transparent);
}
.seg {
  fill: var(--tone);
}
.tone {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tone);
}
.adoption-card {
  margin: 0 0 12px;
}
.adoption-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.929rem;
  color: var(--text-2);
}
.adoption-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adoption-legend strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.compare-card {
  margin: 0 0 12px;
}
.compare-card h2 .muted {
  font-weight: 400;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-top: 16px;
}
.compare-tile {
  padding: 4px 20px 2px;
  border-left: 1px solid var(--line);
}
.compare-tile:first-child {
  padding-left: 0;
  border-left: 0;
}
.compare-value {
  margin-top: 6px;
  font-size: 1.714rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.change {
  margin-top: 4px;
  font-size: 0.929rem;
  font-weight: 500;
}
.change-good {
  color: var(--good);
}
.change-bad {
  color: var(--bad);
}
.change-neutral {
  color: var(--muted);
}
.retention-table th[scope="row"] {
  color: var(--text);
  font-weight: 500;
  background: none;
  position: static;
}
.retention-table td,
.retention-table th {
  padding: 12px 16px;
  font-size: 0.929rem;
  vertical-align: middle;
}
.retention-table thead th {
  background: none;
  font-size: 0.857rem;
}
.retention-table tbody tr:first-child > * {
  border-top: 0;
}
.retention-table tbody tr:hover {
  background: none;
}
.ret {
  border-radius: 10px;
  border-top-color: transparent;
  box-shadow: inset 0 0 0 2px var(--card);
}
.ret-1 {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.ret-2 {
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}
.ret-3 {
  background: color-mix(in srgb, var(--accent) 48%, transparent);
}
.ret-4 {
  background: color-mix(in srgb, var(--accent) 72%, transparent);
  color: var(--text);
  font-weight: 600;
}
.ret.pending {
  background: repeating-linear-gradient(135deg, transparent 0 5px, var(--line) 5px 6px);
}
.retention-table .average > * {
  font-weight: 600;
  border-top: 1px solid var(--hairline-strong);
}
.engagement-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.engagement-grid .chart-card {
  margin: 0;
}
.bar-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.929rem;
  color: var(--text-2);
}
.bar-label strong {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bar {
  display: block;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--card-raised);
}
.bar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bar-fill {
  fill: var(--accent);
}
.stat-list {
  display: grid;
  gap: 18px;
  margin: 18px 0 0;
}
.stat-list dt {
  font-size: 0.929rem;
  color: var(--muted);
}
.stat-list dd {
  margin: 4px 0 0;
  font-size: 1.857rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.audience-grid .chart-card {
  margin: 0;
}
.audience-title {
  font-size: 1.071rem;
}
/* Each section below the overview: a head, a row of stats with small graphs that is always
   visible, and the detail behind "Show more". */
.board {
  margin-top: 48px;
  scroll-margin-top: 96px;
}
.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 4px 14px;
}
.board-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.714rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.board-head h2 .status {
  margin: 0;
}
.board-note {
  font-size: 0.857rem;
  color: var(--muted);
  text-align: right;
}
.board-note strong {
  color: var(--text);
  font-weight: 600;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat-grid-wide {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
}
.stat-label {
  display: flex;
  align-items: center;
  font-size: 0.857rem;
  color: var(--muted);
}
.stat-value {
  margin-top: 6px;
  overflow: hidden;
  font-size: 1.857rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-graph {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 14px;
  overflow: visible;
}
.stat-area {
  fill: color-mix(in srgb, var(--accent) 16%, transparent);
}
.stat-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.stat-bar,
.stat-fill {
  transition: fill 0.15s;
}
.stat-track {
  fill: color-mix(in srgb, var(--text) 9%, transparent);
}
.stat-mark {
  stroke: var(--text-2);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.graph-accent {
  fill: var(--accent);
}
.graph-muted {
  fill: color-mix(in srgb, var(--text) 22%, transparent);
}
.graph-good {
  fill: var(--good);
}
.graph-warn {
  fill: var(--warn);
}
.graph-bad {
  fill: var(--bad);
}
.stat-caption {
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.786rem;
  color: var(--faint);
}
.health-grid .kpi {
  padding: 16px 18px;
}
.health-grid .health-value {
  font-size: 1.429rem;
}
.board-more {
  margin-top: 12px;
}
.board-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 0.857rem;
  color: var(--text-2);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.board-more > summary:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.board-more > summary .status {
  margin: 0 2px 0 0;
}
.board-more > summary::after {
  content: "›";
  display: inline-block;
  margin-left: auto;
  font-size: 1.143rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.board-more[open] > summary::after {
  transform: rotate(90deg);
}
.board-more[open] > summary {
  margin-bottom: 14px;
}
/* Open and close by height where the browser can animate it; elsewhere they snap. */
@supports (interpolate-size: allow-keywords) {
  .board-more {
    interpolate-size: allow-keywords;
  }
  .board-more::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      content-visibility 0.35s allow-discrete;
  }
  .board-more[open]::details-content {
    height: auto;
  }
}
/* Secondary disclosures: older items, audience splits and the counting notes. */
.more,
.note {
  margin-top: 12px;
}
.more > summary,
.note > summary,
.attention-more > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  color: var(--muted);
}
.more > summary,
.attention-more > summary {
  padding: 7px 14px;
  font-size: 0.857rem;
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.note > summary {
  padding: 4px 4px;
  font-size: 0.786rem;
  color: var(--faint);
}
.more > summary:hover,
.note > summary:hover,
.attention-more > summary:hover {
  color: var(--text);
}
.more > summary::after,
.note > summary::after,
.attention-more > summary::after {
  content: "›";
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.more[open] > summary::after,
.note[open] > summary::after,
.attention-more[open] > summary::after {
  transform: rotate(90deg);
}
.note .coverage-note {
  margin-top: 4px;
}
.attention-more {
  padding: 4px 8px 8px;
}
.attention-more > ul {
  margin-top: 6px;
}
/* Stores: one row per metric, one column per store. */
.store-table th[scope="col"].num {
  text-align: right;
}
/* Real table cells, so row dividers run the full width and captions sit under their label. */
.release-table.store-table th[scope="row"] {
  display: table-cell;
}
.store-table td {
  width: 24%;
  font-variant-numeric: tabular-nums;
}
.release-table.store-table th[scope="row"] {
  min-width: 8.5rem;
}
.store-sync,
.store-caption {
  display: block;
  margin-top: 2px;
  font-size: 0.786rem;
  font-weight: 400;
  color: var(--faint);
}
.store-table .status {
  margin-right: 8px;
}
.review-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.review {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.review:first-child {
  border-top: 0;
}
.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.review-rating .status {
  margin: 0;
}
.review-text p {
  line-height: 1.5;
}
.review-text strong {
  font-weight: 600;
}
.review-meta {
  margin-top: 4px;
  font-size: 0.786rem;
  color: var(--faint);
}
@media (max-width: 1100px) {
  .stat-grid,
  .stat-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  /* The top bar wraps into two rows here; jumps land just below it. */
  html {
    scroll-padding-top: 140px;
  }
  .board,
  .overview-section {
    scroll-margin-top: 0;
  }
  .board-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .board-note {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .board-more::details-content {
    transition: none;
  }
}
.bar-list.compact {
  gap: 12px;
  margin-top: 14px;
}
.bar-list.compact .bar {
  height: 4px;
  margin-top: 5px;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.app-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card);
  transition:
    background 0.15s,
    transform 0.1s ease-out;
}
.app-card:hover {
  background: var(--card-raised);
  color: inherit;
}
.app-card:active {
  transform: scale(0.98);
}
.app-card.quiet {
  opacity: 0.6;
}
.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.app-card-name {
  font-size: 1.071rem;
  font-weight: 600;
}
.app-card-value {
  margin-top: 12px;
  font-size: 2.429rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.sparkline {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 14px;
  overflow: visible;
}
.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.app-card-empty {
  height: 40px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  font-size: 0.857rem;
  color: var(--faint);
}
.app-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.857rem;
  color: var(--muted);
}
.health-value {
  font-size: 1.857rem;
}
.page-section {
  scroll-margin-top: 96px;
}
.list-card {
  /* Positioned so visually hidden labels inside scrolled tables stay clipped by the card. */
  position: relative;
  background: var(--card);
  border-radius: 22px;
  padding: 6px 4px;
  overflow-x: auto;
}
.release-table th[scope="row"] {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  background: none;
  position: static;
}
.release-table td,
.release-table th {
  padding: 14px 16px;
  font-size: 0.929rem;
  vertical-align: middle;
}
.release-table thead th {
  background: none;
  font-size: 0.857rem;
}
.release-table tbody tr:first-child > * {
  border-top: 0;
}
.version {
  font-variant-numeric: tabular-nums;
}
.status {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  vertical-align: 1px;
}
.status-good {
  background: var(--good);
}
.status-warn {
  background: var(--warn);
}
.status-bad {
  background: var(--bad);
}
.status-none {
  background: var(--faint);
}
.bad-text {
  color: var(--bad);
}
.section-heading strong {
  color: var(--text);
  font-weight: 600;
}
/* Hover values: a transparent column per day over each chart, labelled from data-tip. */
.chart-plot {
  position: relative;
  margin-top: 16px;
}
.chart-plot > svg,
.chart-card .chart-plot > .volume-svg {
  margin-top: 0;
}
.hits {
  position: absolute;
  inset: 0;
  display: flex;
}
.hits.trend {
  left: 1.6%;
  right: 1.6%;
}
.hit {
  position: relative;
  flex: 1;
  border-radius: 6px;
}
a.calendar-cell {
  position: relative;
}
@media (hover: hover) {
  .hit:hover {
    background: color-mix(in srgb, var(--text) 8%, transparent);
  }
  [data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap;
    pointer-events: none;
    background: var(--material);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--hairline-strong);
    box-shadow: 0 8px 24px var(--shadow);
    color: var(--text);
    font-size: 0.857rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    translate: var(--tip-x, -50%) 4px;
    transition:
      opacity 0.12s ease-out,
      translate 0.15s ease-out;
  }
  [data-tip]:hover::after {
    opacity: 1;
    translate: var(--tip-x, -50%) 0;
  }
  /* Near the edges the label hangs from the column's own edge so it stays inside the card. */
  .hit:nth-child(-n + 6),
  .calendar-grid > :nth-child(7n + 1),
  .calendar-grid > :nth-child(7n + 2) {
    --tip-x: 0;
  }
  .hit:nth-child(-n + 6)::after,
  .calendar-grid > :nth-child(7n + 1)::after,
  .calendar-grid > :nth-child(7n + 2)::after {
    left: 0;
  }
  .hit:nth-last-child(-n + 6),
  .calendar-grid > :nth-child(7n),
  .calendar-grid > :nth-child(7n + 6) {
    --tip-x: 0;
  }
  .hit:nth-last-child(-n + 6)::after,
  .calendar-grid > :nth-child(7n)::after,
  .calendar-grid > :nth-child(7n + 6)::after {
    left: auto;
    right: 0;
  }
}
.volume-svg {
  margin-top: 16px;
}
.volume-svg {
  display: block;
  width: 100%;
  height: 145px;
  margin-top: 8px;
}
.volume-bar {
  fill: var(--accent);
}
.volume-bar:hover {
  fill: var(--accent-soft);
}
.chart-grid {
  stroke: var(--grid);
  stroke-width: 1;
  stroke-dasharray: 4 6;
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.786rem;
  margin-top: 5px;
}
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.06fr;
  gap: 12px;
  scroll-margin-top: 25px;
}
.insight-card {
  background: var(--card);
  border-radius: 22px;
  padding: 20px;
  min-width: 0;
  min-height: 282px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.card-heading h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.card-icon {
  font-size: 1.286rem;
  color: var(--text);
}
.card-heading .circle-button {
  width: 30px;
  height: 30px;
  font-size: 1.143rem;
}
.legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 19px;
  font-size: 0.786rem;
  color: var(--text-2);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lime-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent-2-ink);
}
.muted {
  color: var(--muted);
}
.trend-svg {
  display: block;
  width: 100%;
  height: 154px;
  margin-top: 16px;
  overflow: visible;
}
.trend-line {
  fill: none;
  stroke: var(--accent-2-ink);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.trend-area {
  fill: var(--accent-wash);
}
.trend-point {
  fill: var(--accent-2-ink);
}
.mini-badge {
  font-size: 0.786rem;
  background: var(--card-raised);
  color: var(--text-2);
  border-radius: 20px;
  padding: 5px 9px;
}
.card-caption {
  font-size: 0.786rem;
  color: var(--muted);
  margin-top: 17px;
}
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.786rem;
  color: var(--text-2);
  margin: 18px 0 8px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.calendar-cell {
  height: 23px;
  border-radius: 5px;
  min-width: 0;
  border: 1px solid var(--line);
}
.calendar-cell:hover {
  outline: 1px solid var(--accent-soft);
}
a.calendar-cell {
  display: block;
  transition: transform 0.1s ease-out;
}
a.calendar-cell:active {
  transform: scale(0.94);
}
.calendar-cell.empty {
  visibility: hidden;
}
.level-0 {
  background: var(--cal-0);
}
.level-1 {
  background: var(--cal-1);
}
.level-2 {
  background: var(--cal-2);
}
.level-3 {
  background: var(--cal-3);
}
.level-4 {
  background: var(--cal-4);
}
.calendar-key {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 0.786rem;
  margin-top: 11px;
}
.calendar-key i {
  width: 10px;
  height: 7px;
  border-radius: 1px;
}
.calendar-key span {
  margin: 0 3px;
}
.event-mix {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.event-mix li {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.786rem;
}
.event-label {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  color: var(--text);
}
.event-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.event-mix li:first-child .event-dot {
  background: var(--accent-2-ink);
}
.event-mix li:nth-child(3) .event-dot {
  background: var(--accent-3);
}
.share-badge {
  font-variant-numeric: tabular-nums;
  background: var(--card-raised);
  padding: 4px 7px;
  border-radius: 20px;
  font-size: 0.786rem;
  color: var(--text-2);
}
.event-mix strong {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  min-width: 30px;
  text-align: right;
}
.coverage-note {
  font-size: 0.786rem;
  line-height: 1.7;
  color: var(--faint);
  margin: 17px 0 0;
}
.section-heading {
  margin: 40px 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}
.section-heading h2 {
  font-size: 1.714rem;
  letter-spacing: -0.03em;
  margin-top: 7px;
}
.section-heading > .muted {
  font-size: 0.786rem;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
.data-card {
  min-width: 0;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  scroll-margin-top: 24px;
}
.data-card.wide {
  grid-column: 1/-1;
}
.data-card summary,
.analysis-panel > summary {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.929rem;
}
.data-card summary:hover,
.analysis-panel > summary:hover {
  background: var(--card-raised);
}
.table-count {
  font-size: 0.786rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  align-items: center;
}
.table-count span,
.expand-label {
  display: inline-block;
  font-size: 1.143rem;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
details[open] > summary .table-count span,
details[open] > summary .expand-label {
  transform: rotate(45deg);
}
.table-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 12px;
  font-size: 0.857rem;
}
.csv-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 500;
}
.csv-link:hover {
  background: var(--surface-hover);
}
.csv-link:active {
  transform: scale(0.97);
}
.table-scroll {
  overflow: auto;
  max-height: 450px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.786rem;
  text-align: left;
}
th,
td {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  vertical-align: top;
  max-width: 30rem;
  min-width: 90px;
  overflow-wrap: anywhere;
}
th {
  font-weight: 500;
  color: var(--muted);
  background: var(--card-raised);
  position: sticky;
  top: 0;
}
th.num,
td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
td {
  color: var(--text);
}
tbody tr:hover {
  background: var(--card-raised);
}
.table-empty {
  font-size: 0.857rem;
  color: var(--muted);
  padding: 10px 20px 22px;
}
.analysis-panel {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 12px;
  scroll-margin-top: 24px;
}
.analysis-panel .filter-form {
  padding: 0 20px 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.analysis-panel .coverage-note {
  padding: 0 20px 20px;
  margin: 0;
}
.analysis-panel summary .muted {
  font-size: 0.786rem;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: start;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.786rem;
  color: var(--faint);
}
footer p {
  max-width: 550px;
  text-align: right;
}
.footer-brand {
  white-space: nowrap;
  color: var(--text-2);
  font-size: 0.786rem;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  color: var(--muted);
  gap: 8px;
  font-size: 0.857rem;
}
.empty-state > span {
  font-size: 2rem;
  color: var(--accent-soft);
}
.empty-state small {
  font-size: 0.786rem;
  color: var(--faint);
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  padding: 10px 18px;
  background: var(--text);
  color: var(--on-inverse);
  border-radius: 8px;
  z-index: 10;
}
.skip-link:focus {
  top: 10px;
}
.login-shell {
  max-width: 440px;
  margin: 15vh auto;
  padding: 38px;
  border-radius: 24px;
  background: var(--shell-glass);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 var(--glass-edge);
}
.login-shell h1 {
  font-size: 2rem;
  margin: 32px 0 14px;
}
.login-shell p {
  font-size: 0.929rem;
  color: var(--muted);
}
.login-shell form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}
.login-shell .primary-button {
  justify-self: start;
}
@media (min-width: 1500px) {
  .dashboard-shell {
    margin-top: 65px;
    --stick-at: 65px;
  }
}
@media (max-width: 1100px) {
  .dashboard-shell {
    width: auto;
    margin: 24px;
    padding: 24px;
    --stick-at: 24px;
  }
  .brand-secondary {
    display: none;
  }
  .main-nav a {
    padding: 10px 14px;
  }
  .insight-card {
    padding: 17px;
  }
  .card-heading h2 {
    font-size: 0.929rem;
  }
  .legend {
    flex-wrap: wrap;
  }
  .event-mix li {
    gap: 5px;
  }
  .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .topbar {
    flex-wrap: wrap;
    gap: 16px 12px;
  }
  .topbar-actions {
    margin-left: auto;
  }
  /* Too many sections to fit: chips keep their natural width and the row scrolls sideways,
     fading at the edges so cut-off chips read as "more this way". */
  .main-nav {
    order: 3;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 12px,
      #000 calc(100% - 24px),
      transparent
    );
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    flex: none;
    scroll-snap-align: start;
  }
  .main-nav a:first-child {
    margin-left: 4px;
  }
  .main-nav a:last-child {
    margin-right: 16px;
  }
  .page-heading {
    margin-top: 32px;
  }
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-grid,
  .kpi-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .engagement-grid {
    grid-template-columns: 1fr;
  }
  .mix-card {
    grid-column: 1/-1;
    min-height: auto;
  }
  .event-mix {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .data-card.wide {
    grid-column: auto;
  }
  .analysis-panel .filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .topbar-actions .quiet-button {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
  .dashboard-shell {
    margin: 12px;
    padding: 20px 16px;
    border-radius: 20px;
    --stick-at: 12px;
  }
  .brand {
    font-size: 1.214rem;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .topbar {
    margin: -20px -16px 0;
    padding: 16px;
    border-radius: 20px 20px 0 0;
  }
  .quiet-button {
    padding: 10px 13px;
  }
  .main-nav {
    gap: 4px;
  }
  .main-nav a {
    padding: 9px 13px;
    font-size: 0.786rem;
  }
  .page-heading {
    display: block;
  }
  .toolbar {
    justify-content: flex-start;
    margin-top: 18px;
  }
  .volume-svg {
    height: 140px;
  }
  .insight-grid {
    grid-template-columns: 1fr;
  }
  .mix-card {
    grid-column: auto;
  }
  .insight-card {
    min-height: 275px;
    padding: 20px;
  }
  .trend-svg {
    height: 155px;
  }
  .calendar-cell {
    height: 28px;
  }
  .event-mix {
    display: block;
  }
  .event-mix li {
    font-size: 0.786rem;
  }
  .card-heading h2 {
    font-size: 1.071rem;
  }
  .filter-form,
  .analysis-panel .filter-form {
    grid-template-columns: 1fr;
  }
  .section-heading > .muted {
    max-width: 105px;
    text-align: right;
  }
  .analysis-panel summary .muted {
    max-width: 110px;
    text-align: right;
  }
  footer {
    display: block;
  }
  footer p {
    text-align: left;
    margin-top: 14px;
  }
  .login-shell {
    margin: 40px 16px;
    padding: 28px;
  }
}
@media (prefers-reduced-transparency: reduce) {
  body::before {
    display: none;
  }
  .dashboard-shell,
  .login-shell {
    background: var(--shell);
  }
  .floating {
    background: var(--card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .topbar {
    background: var(--shell);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  body::before {
    display: none;
  }
  .dashboard-shell,
  .login-shell {
    background: var(--shell);
  }
  .topbar {
    background: var(--shell);
    border-bottom: 1px solid var(--hairline-strong);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
  button:active,
  .primary-button:active,
  .circle-button:active,
  .main-nav a:active,
    summary:active,
  .app-card:active,
  a.calendar-cell:active,
  .floating,
  .app-picker li,
  .app-picker a:active {
    transform: none;
  }
}
/* flosch-mark:start, generated by scripts/flosch-mark.py from flosch.at icon.json */
.brand-mark path {
  animation: flosch-mark 4.8s 0.3s both;
}
.brand:hover .brand-mark path {
  animation-name: flosch-mark-replay;
}
@keyframes flosch-mark {
  0% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L348 -349 L348 350 L-350 350 L-351 700 L-700 699 L-700 0 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  12.5% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L-1 0 L348 -349 L348 350 L-351 350 L-699 698 L-700 -1 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  25% {
    d: path("M-350 -700 L-1 -700 L348 -700 L698 -700 L349 -350 L0 -1 L-350 348 L-699 698 L-699 348 L-700 -1 L-700 -350 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  37.5% {
    d: path("M-514 2 L-28 2 L457 2 L943 2 L696 250 L448 497 L201 744 L-46 992 L-284 753 L-523 514 L-1000 37 L-1000 2 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  50% {
    d: path("M2 -998 L250 -751 L497 -504 L744 -256 L992 -9 L744 238 L497 486 L250 733 L2 980 L2 486 L2 -9 L2 -504 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  62.5% {
    d: path("M0 -990 L247 -742 L494 -495 L742 -248 L989 0 L494 0 L0 0 L-495 -1 L-990 -1 L-742 -248 L-495 -496 L-248 -743 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  75% {
    d: path("M-350 -700 L-1 -700 L348 -700 L698 -700 L349 -350 L0 -1 L-350 348 L-699 698 L-699 348 L-700 -1 L-700 -350 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  87.5% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L-1 0 L348 -349 L348 350 L-351 350 L-699 698 L-700 -1 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  100% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L348 -349 L348 350 L-350 350 L-351 700 L-700 699 L-700 0 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
}
@keyframes flosch-mark-replay {
  0% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L348 -349 L348 350 L-350 350 L-351 700 L-700 699 L-700 0 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  12.5% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L-1 0 L348 -349 L348 350 L-351 350 L-699 698 L-700 -1 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  25% {
    d: path("M-350 -700 L-1 -700 L348 -700 L698 -700 L349 -350 L0 -1 L-350 348 L-699 698 L-699 348 L-700 -1 L-700 -350 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  37.5% {
    d: path("M-514 2 L-28 2 L457 2 L943 2 L696 250 L448 497 L201 744 L-46 992 L-284 753 L-523 514 L-1000 37 L-1000 2 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  50% {
    d: path("M2 -998 L250 -751 L497 -504 L744 -256 L992 -9 L744 238 L497 486 L250 733 L2 980 L2 486 L2 -9 L2 -504 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  62.5% {
    d: path("M0 -990 L247 -742 L494 -495 L742 -248 L989 0 L494 0 L0 0 L-495 -1 L-990 -1 L-742 -248 L-495 -496 L-248 -743 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  75% {
    d: path("M-350 -700 L-1 -700 L348 -700 L698 -700 L349 -350 L0 -1 L-350 348 L-699 698 L-699 348 L-700 -1 L-700 -350 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  87.5% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L-1 0 L348 -349 L348 350 L-351 350 L-699 698 L-700 -1 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
  100% {
    d: path("M-1 -700 L698 -700 L350 -350 L-350 -350 L-350 348 L348 -349 L348 350 L-350 350 L-351 700 L-700 699 L-700 0 L-700 -700 Z");
    animation-timing-function: cubic-bezier(0.58, 0, 0.42, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark path,
  .brand:hover .brand-mark path {
    animation: none;
  }
}
/* flosch-mark:end */
/* Info buttons open a popover that explains a filter or breakdown. */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.786rem;
  color: var(--muted);
}
.field-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: italic 600 0.714rem/1 Georgia, serif;
}
.info-button:hover,
.info-button:focus-visible {
  color: var(--text);
  background: var(--surface-hover);
}
.info-popover {
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(560px, calc(100vw - 32px));
}
.info-popover > p {
  margin-top: 10px;
  font-size: 0.929rem;
  color: var(--text-2);
}
.info-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}
.info-list dt {
  font-weight: 600;
}
.info-list dd {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: baseline;
  margin: 4px 0 0;
  font-size: 0.929rem;
  color: var(--text-2);
}
.info-platform {
  color: var(--muted);
  font-size: 0.786rem;
}
