/* ===========================================================================
   Hybridge design system, the CSS every Hybridge site shares.

   Source of truth: the treatment estimator after v1.45.0 (2026-09-29),
   app/globals.css, tailwind.config.ts and components/ui/styles.ts.
   Copy this file into the project (for example app/hybridge.css) and import it
   once, before anything else. Tailwind projects also copy
   tailwind.preset.cjs; the values below and the preset must stay identical.

   Part 1: tokens, the canvas, glass, motion. Every project needs it.
   Part 2: plain CSS components (hb-*). Only for projects without Tailwind;
           Tailwind projects use ui/styles.ts instead and can delete Part 2.
   Part 3: the dark theme from the Cowork dashboard, opt in with
           <html data-theme="dark">. Light stays the default.
   =========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

/* ---------------------------------------------------------------------------
   Part 1. Tokens
   --------------------------------------------------------------------------- */

:root {
  /* Headings only: page titles, section titles, day headings, a panel's title. */
  --hb-heading: #0f4b7b;

  /* Ink scale. Structure is ink on white; colour is kept for meaning. */
  --hb-ink: #18181b;       /* body text, primary buttons, the active state */
  --hb-ink-soft: #52525b;  /* secondary text */
  --hb-ink-faint: #a1a1aa; /* labels, quiet text, finished things */
  --hb-ink-line: #e4e4e7;  /* borders and hairlines */
  --hb-ink-wash: #f4f4f5;  /* hover, insets, neutral badges */

  /* Offices. A dot or an edge bar only, never a fill. Chosen to stay clear of
     the status hues so an office is never read as an outcome. */
  --hb-office-roc: #2f6feb; /* Rochester */
  --hb-office-buf: #7c5ce0; /* Buffalo */
  --hb-office-syr: #0e9cb5; /* Syracuse */

  /* Status. Outcomes only: done, warning, destructive or error, open, live. */
  --hb-status-made: #16a34a;
  --hb-status-noshow: #f2b200;
  --hb-status-cancelled: #e5484d;
  --hb-status-open: #a1a1aa;
  --hb-status-live: #22c55e;

  /* Text on a soft status tint (badges), darker so it passes contrast. */
  --hb-text-success: #15803d;
  --hb-text-warning: #8a5a00;
  --hb-text-danger: #c22e33;
  --hb-text-info: #1f4fb8;

  /* These four keep their original names because the shared components read
     them directly (Sheet uses var(--ease-glass), full height screens use
     var(--shell-top)). */
  --ease-glass: cubic-bezier(0.32, 0.72, 0, 1); /* Apple's sheet curve */
  --canvas: #f3f4f7;
  /* Where page content starts under the floating bar: 12px above the bar, the
     bar's 60px, and 12px below it. */
  --shell-top: 84px;
  /* Where pinned headers stick: just under the bar's bottom edge. */
  --shell-sticky: 76px;

  --hb-font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Inter's optical size axis follows the font size on its own, so a 48px
   headline gets the display drawing and 13px text gets the text drawing. A
   later font-variation-settings would quietly turn it off, so never set one. */
html {
  font-optical-sizing: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--hb-ink);
  font-family: var(--hb-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------------------
   The canvas the glass floats over: porcelain with three faint washes of light,
   on its own fixed layer so scrolling never repaints it and the glass shows the
   page moving underneath. Put .app-canvas on the shell's outermost element.
   --------------------------------------------------------------------------- */
.app-canvas {
  background-color: var(--canvas);
  isolation: isolate;
}
.app-canvas::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(64rem 38rem at 6% -12%, rgba(205, 220, 255, 0.55), transparent 62%),
    radial-gradient(52rem 34rem at 102% -4%, rgba(230, 222, 255, 0.5), transparent 64%),
    radial-gradient(60rem 40rem at 42% 112%, rgba(208, 238, 243, 0.5), transparent 62%);
}

/* ---------------------------------------------------------------------------
   Liquid glass. The navigation layer only: the top bar, the rail, the phone's
   tab bar, segmented tabs, popovers, menus, sheets and pinned headers. Content
   stays solid, which is Apple's own rule for the material: glass over glass is
   mush.
   --------------------------------------------------------------------------- */

/* Bars, rails, tab bars, segmented controls. */
.glass {
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 0.5px rgba(24, 24, 27, 0.07),
    0 14px 34px -18px rgba(24, 24, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Popovers, menus and sheets sit over busy content, so they carry more white. */
.glass-thick {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 0.5px rgba(24, 24, 27, 0.08),
    0 24px 60px -20px rgba(24, 24, 27, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

/* The lens that marks where you are: the rail's active tab, a pressed segment.
   Brighter than the glass it sits in, and lifted off it. */
.glass-pill {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 0.5px rgba(24, 24, 27, 0.06),
    0 1px 2px rgba(24, 24, 27, 0.06),
    0 6px 16px -8px rgba(24, 24, 27, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Labels over content: tooltips. Dark glass, so white text stays crisp. */
.glass-dark {
  background: rgba(24, 24, 27, 0.84);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 28px -12px rgba(24, 24, 27, 0.45);
  color: #fff;
}

/* How a popover or sheet arrives: from a hair below, slightly small, on the
   glass curve. It answers a click, so it is the one entrance on the page.
   Use: animation: glass-in 260ms var(--ease-glass); */
@keyframes glass-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* No blur available: more white, so text over it still reads. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
  .glass-thick { background: rgba(255, 255, 255, 0.98); }
  .glass-dark { background: rgba(24, 24, 27, 0.95); }
}

/* The operating system's "reduce transparency" turns the glass solid. */
@media (prefers-reduced-transparency: reduce) {
  .glass,
  .glass-thick {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .glass-dark {
    background: #18181b;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* One face for everything. Where a monospace face used to line up IDs and
   codes, Inter's tabular, slashed zero figures do the job. */
.font-mono,
.hb-mono {
  font-family: var(--hb-font);
  font-variant-numeric: tabular-nums slashed-zero;
}
.tabular,
.hb-num {
  font-variant-numeric: tabular-nums;
}

/* ===========================================================================
   Part 2. Plain CSS components, for projects WITHOUT Tailwind.
   Every value mirrors ui/styles.ts exactly. Tailwind projects delete this part.
   =========================================================================== */

/* Page title: 30px on a phone, 36px from 640px up, with an optional gray tail
   that continues the thought.
   <h1 class="hb-title">Tuesday, 29 September<span class="hb-title-tail">Eight consultations.</span></h1> */
.hb-title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--hb-heading);
  text-wrap: balance;
}
@media (min-width: 640px) {
  .hb-title { font-size: 36px; }
}
.hb-title-tail {
  display: block;
  color: var(--hb-ink-faint);
}
.hb-lede {
  margin: 12px 0 0;
  max-width: 42rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hb-ink-soft);
}

/* The one small tracked capitals pill, above a page title, for a live state
   only (sample data, a draft awaiting approval). */
.hb-pill {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 10px;
  border: 1px solid var(--hb-ink-line);
  border-radius: 9999px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--hb-ink-soft);
}
.hb-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--hb-ink-faint);
  flex-shrink: 0;
}
.hb-dot--live { background: var(--hb-status-live); }
.hb-dot--warning { background: var(--hb-status-noshow); }
.hb-dot--roc { background: var(--hb-office-roc); }
.hb-dot--buf { background: var(--hb-office-buf); }
.hb-dot--syr { background: var(--hb-office-syr); }

/* Section title inside a surface: ordinary words at 15px, never tracked caps. */
.hb-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hb-heading);
}
.hb-section-desc {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.625;
  color: var(--hb-ink-soft);
}

/* A section of a page: a soft white card on the canvas. */
.hb-surface {
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
}
.hb-surface--padded { padding: 20px 24px 24px; }
/* A quieter inset inside a surface: a group of facts, a note. */
.hb-inset {
  border-radius: 16px;
  background: rgba(244, 244, 245, 0.6);
}

/* Buttons. Rounded full. One primary per view. Secondary is the default. */
.hb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--hb-ink-line);
  border-radius: 9999px;
  background: #fff;
  color: var(--hb-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.006em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  transition: color 150ms, background-color 150ms, border-color 150ms;
}
.hb-btn:hover { border-color: rgba(24, 24, 27, 0.25); background: rgba(244, 244, 245, 0.6); }
.hb-btn:focus-visible { box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.1); }
.hb-btn:disabled,
.hb-btn[aria-disabled='true'] { opacity: 0.45; pointer-events: none; }
.hb-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.hb-btn--lg { height: 44px; padding: 0 20px; font-size: 15px; }
.hb-btn--primary { border-color: transparent; background: var(--hb-ink); color: #fff; }
.hb-btn--primary:hover { border-color: transparent; background: rgba(24, 24, 27, 0.85); }
.hb-btn--ghost { border-color: transparent; background: transparent; color: var(--hb-ink-soft); }
.hb-btn--ghost:hover { border-color: transparent; background: rgba(24, 24, 27, 0.05); color: var(--hb-ink); }
.hb-btn--danger { border-color: transparent; background: var(--hb-status-cancelled); color: #fff; }
.hb-btn--danger:hover { border-color: transparent; background: rgba(229, 72, 77, 0.9); }
.hb-btn--danger-soft { border-color: transparent; background: transparent; color: var(--hb-status-cancelled); }
.hb-btn--danger-soft:hover { border-color: transparent; background: rgba(229, 72, 77, 0.1); }

/* Fields. Labels sit above in sentence case. */
.hb-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--hb-ink);
}
.hb-field {
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hb-ink-line);
  border-radius: 12px;
  background: #fff;
  color: var(--hb-ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 150ms, box-shadow 150ms;
}
.hb-field::placeholder { color: var(--hb-ink-faint); }
.hb-field:hover { border-color: rgba(24, 24, 27, 0.25); }
.hb-field:focus { border-color: rgba(24, 24, 27, 0.4); outline: none; box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.05); }
.hb-field:disabled { cursor: not-allowed; background: var(--hb-ink-wash); color: var(--hb-ink-faint); }
select.hb-field { padding-right: 36px; }
textarea.hb-field { height: auto; min-height: 88px; padding-top: 10px; padding-bottom: 10px; }
.hb-hint { margin-top: 6px; font-size: 12px; color: var(--hb-ink-soft); }
.hb-error { margin-top: 6px; font-size: 12px; font-weight: 500; color: var(--hb-status-cancelled); }

/* Small soft pills. Neutral is the default. */
.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--hb-ink-wash);
  color: var(--hb-ink-soft);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
}
.hb-badge--success { background: rgba(22, 163, 74, 0.1); color: var(--hb-text-success); }
.hb-badge--warning { background: rgba(242, 178, 0, 0.15); color: var(--hb-text-warning); }
.hb-badge--danger { background: rgba(229, 72, 77, 0.1); color: var(--hb-text-danger); }
.hb-badge--info { background: rgba(47, 111, 235, 0.1); color: var(--hb-text-info); }
.hb-badge--ink { background: var(--hb-ink); color: #fff; }

/* Soft card lists: one rounded card per item with space between. Finished items
   fade, the next one is lifted. <ol class="hb-cards"><li class="hb-card">...</li></ol> */
.hb-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hb-card {
  position: relative;
  padding: 16px 16px 16px 20px;
  border: 1px solid var(--hb-ink-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04);
  transition: background-color 200ms, border-color 200ms, box-shadow 200ms;
}
.hb-card:hover {
  border-color: rgba(24, 24, 27, 0.15);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 20px -12px rgba(24, 24, 27, 0.22);
}
.hb-card--past {
  border-color: rgba(228, 228, 231, 0.7);
  background: rgba(255, 255, 255, 0.55);
  color: var(--hb-ink-faint);
}
.hb-card--past:hover { background: #fff; box-shadow: none; }
.hb-card--next {
  border-color: rgba(24, 24, 27, 0.15);
  box-shadow:
    0 0 0 1px rgba(24, 24, 27, 0.05),
    0 2px 4px rgba(24, 24, 27, 0.04),
    0 16px 36px -16px rgba(24, 24, 27, 0.3);
}
.hb-card--live {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 10px 28px -14px rgba(22, 163, 74, 0.35);
}
/* The office, as a thin bar at the card's left edge. */
.hb-card-bar {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 3px;
  border-radius: 0 9999px 9999px 0;
  background: var(--hb-ink-line);
}
.hb-card--past .hb-card-bar { opacity: 0.35; }

/* Data tables: inside a surface, sentence case column labels, hairlines between
   rows, a soft hover. Numbers get .hb-num and right alignment. */
.hb-table-wrap { overflow: hidden; }
.hb-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.hb-table thead { border-bottom: 1px solid var(--hb-ink-line); background: rgba(244, 244, 245, 0.4); }
.hb-table th { padding: 10px 16px; font-size: 12px; font-weight: 500; color: var(--hb-ink-soft); }
.hb-table tbody tr { border-bottom: 1px solid rgba(228, 228, 231, 0.7); transition: background-color 150ms; }
.hb-table tbody tr:last-child { border-bottom: 0; }
.hb-table tbody tr:hover { background: rgba(244, 244, 245, 0.4); }
.hb-table td { padding: 12px 16px; vertical-align: middle; color: var(--hb-ink); }
.hb-table .hb-num { text-align: right; }

/* A dialog: glass over a blurred page, rising from the bottom on a phone and
   centred from 640px up. */
.hb-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(24, 24, 27, 0.15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
@media (min-width: 640px) {
  .hb-sheet-overlay { align-items: center; }
}
.hb-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 32rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 24px;
  border-radius: 28px;
  outline: none;
  animation: glass-in 260ms var(--ease-glass);
}
.hb-sheet-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--hb-heading);
}

/* Empty state: says what the empty space means and offers the next step. */
.hb-empty {
  padding: 48px 24px;
  border: 1px dashed var(--hb-ink-line);
  border-radius: 20px;
  text-align: center;
}
.hb-empty-title { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -0.012em; color: var(--hb-ink); }
.hb-empty-detail { margin: 6px auto 0; max-width: 24rem; font-size: 14px; line-height: 1.625; color: var(--hb-ink-soft); }

/* A segmented control: glass track, the current item lifted as a glass pill.
   <nav class="glass hb-segmented"><a class="glass-pill" aria-current="page">Day</a><a>Range</a></nav> */
.hb-segmented {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  border-radius: 9999px;
}
.hb-segmented > a,
.hb-segmented > button {
  padding: 6px 16px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--hb-ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms;
}
.hb-segmented > a:hover,
.hb-segmented > button:hover { color: var(--hb-ink); }
.hb-segmented > [aria-current='page'],
.hb-segmented > [aria-pressed='true'] {
  color: var(--hb-ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 0.5px rgba(24, 24, 27, 0.06),
    0 1px 2px rgba(24, 24, 27, 0.06),
    0 6px 16px -8px rgba(24, 24, 27, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Links are ink with an underline, never blue. */
.hb-link {
  color: var(--hb-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .hb-sheet { animation: none; }
  .hb-btn,
  .hb-field,
  .hb-card,
  .hb-segmented > a,
  .hb-segmented > button { transition: none; }
}

/* ===========================================================================
   Part 3. Dark theme, opt in: <html data-theme="dark">.
   Taken from the Cowork dashboard (packages/web/src/legacy.css, Oct 2026), the
   one Hybridge app that stays dark. Light is the default; use this only when
   the person asks for dark or the app is already dark. Graphite with no blue in
   the greys, headings in lifted Hybridge blue, ink is near white and still the
   active state, glass for the navigation layer only. Part 3 also covers the
   hb-* components; Tailwind projects map the same variables.
   =========================================================================== */

[data-theme="dark"] {
  color-scheme: dark;

  --hb-heading: #bcd3ec;   /* Hybridge blue, lifted so it reads on graphite */
  --hb-ink: #f2f2f3;       /* body text, the active state, primary button fill */
  --hb-ink-soft: #a1a1a8;
  --hb-ink-faint: #6f6f78;
  --hb-ink-line: rgba(255, 255, 255, 0.075);
  --hb-ink-wash: rgba(255, 255, 255, 0.035);

  /* Dark only: the solid layers content sits on. */
  --hb-ink-on: #0b0b0c;            /* text on an ink fill */
  --hb-panel: #151517;             /* surfaces and cards */
  --hb-panel-2: #1c1c1f;           /* a raised inset */
  --hb-panel-hover: #19191c;
  --hb-sheet: #1a1a1d;             /* solid sheet when glass is off */
  --hb-line-strong: rgba(255, 255, 255, 0.14);
  --hb-wash-2: rgba(255, 255, 255, 0.07);
  --hb-ring: 0 0 0 4px rgba(242, 242, 243, 0.12);

  /* Offices: the same three hues, lifted. Still a dot or an edge bar only. */
  --hb-office-roc: #5b8def;
  --hb-office-buf: #a18cf0;
  --hb-office-syr: #2dd4bf;

  /* Status, lifted for graphite (Cowork's good and bad). */
  --hb-status-made: #36c36b;
  --hb-status-noshow: #f2b200;
  --hb-status-cancelled: #ef4d63;
  --hb-status-open: #6f6f78;
  --hb-status-live: #22c55e;
  --hb-text-success: #5fd68a;
  --hb-text-warning: #f5c84a;
  --hb-text-danger: #f47a8b;
  --hb-text-info: #8db4f7;

  --canvas: #0b0b0c;
}
[data-theme="dark"] body { background-color: var(--canvas); color: var(--hb-ink); }
[data-theme="dark"] ::selection { background: rgba(255, 255, 255, 0.18); }

/* Three faint washes of white instead of the porcelain tints. */
[data-theme="dark"] .app-canvas::before {
  background:
    radial-gradient(64rem 38rem at 6% -12%, rgba(255, 255, 255, 0.045), transparent 62%),
    radial-gradient(52rem 34rem at 102% -4%, rgba(255, 244, 232, 0.03), transparent 64%),
    radial-gradient(60rem 40rem at 42% 112%, rgba(255, 255, 255, 0.025), transparent 62%);
}

/* Dark glass: smoked graphite with a hairline of light on top. */
[data-theme="dark"] .glass {
  background: rgba(22, 22, 24, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.45),
    0 18px 40px -22px rgba(0, 0, 0, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
[data-theme="dark"] .glass-thick {
  background: rgba(26, 26, 29, 0.86);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  backdrop-filter: blur(30px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.5),
    0 24px 60px -20px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .glass-pill,
[data-theme="dark"] .hb-segmented > [aria-current="page"],
[data-theme="dark"] .hb-segmented > [aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 6px 16px -8px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .glass-dark {
  background: rgba(44, 44, 48, 0.9);
  color: var(--hb-ink);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.7);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  [data-theme="dark"] .glass { background: rgba(22, 22, 24, 0.96); }
  [data-theme="dark"] .glass-thick { background: var(--hb-sheet); }
}
@media (prefers-reduced-transparency: reduce) {
  [data-theme="dark"] .glass,
  [data-theme="dark"] .glass-thick {
    background: var(--hb-sheet);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* The navy lockup, drawn in white. Give the logo <img> class="hb-logo". */
[data-theme="dark"] .hb-logo { filter: brightness(0) invert(1); opacity: 0.92; }

/* Components. */
[data-theme="dark"] .hb-pill { background: var(--hb-panel); }
[data-theme="dark"] .hb-surface {
  border-color: var(--hb-ink-line);
  background: var(--hb-panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
[data-theme="dark"] .hb-inset { background: var(--hb-ink-wash); }
[data-theme="dark"] .hb-btn { border-color: var(--hb-line-strong); background: var(--hb-ink-wash); }
[data-theme="dark"] .hb-btn:hover { border-color: rgba(255, 255, 255, 0.2); background: var(--hb-wash-2); }
[data-theme="dark"] .hb-btn:focus-visible { box-shadow: var(--hb-ring); }
[data-theme="dark"] .hb-btn--primary { border-color: transparent; background: var(--hb-ink); color: var(--hb-ink-on); }
[data-theme="dark"] .hb-btn--primary:hover { border-color: transparent; background: rgba(242, 242, 243, 0.88); }
[data-theme="dark"] .hb-btn--ghost { border-color: transparent; background: transparent; }
[data-theme="dark"] .hb-btn--ghost:hover { border-color: transparent; background: var(--hb-wash-2); }
[data-theme="dark"] .hb-btn--danger { border-color: transparent; background: var(--hb-status-cancelled); color: #fff; }
[data-theme="dark"] .hb-btn--danger:hover { border-color: transparent; background: rgba(239, 77, 99, 0.88); }
[data-theme="dark"] .hb-btn--danger-soft { border-color: transparent; background: transparent; }
[data-theme="dark"] .hb-btn--danger-soft:hover { border-color: transparent; background: rgba(239, 77, 99, 0.12); }
[data-theme="dark"] .hb-field { border-color: var(--hb-line-strong); background: rgba(255, 255, 255, 0.04); }
[data-theme="dark"] .hb-field:hover { border-color: rgba(255, 255, 255, 0.22); }
[data-theme="dark"] .hb-field:focus { border-color: rgba(242, 242, 243, 0.4); box-shadow: 0 0 0 4px rgba(242, 242, 243, 0.06); }
[data-theme="dark"] .hb-badge--success { background: rgba(54, 195, 107, 0.14); }
[data-theme="dark"] .hb-badge--warning { background: rgba(242, 178, 0, 0.14); }
[data-theme="dark"] .hb-badge--danger { background: rgba(239, 77, 99, 0.14); }
[data-theme="dark"] .hb-badge--info { background: rgba(91, 141, 239, 0.16); }
[data-theme="dark"] .hb-badge--ink { color: var(--hb-ink-on); }
[data-theme="dark"] .hb-card {
  border-color: var(--hb-ink-line);
  background: var(--hb-panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
[data-theme="dark"] .hb-card:hover {
  border-color: var(--hb-line-strong);
  background: var(--hb-panel-hover);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 14px 32px -18px rgba(0, 0, 0, 0.85);
}
[data-theme="dark"] .hb-card--past { background: rgba(21, 21, 23, 0.55); }
[data-theme="dark"] .hb-card--past:hover { background: var(--hb-panel); box-shadow: none; }
[data-theme="dark"] .hb-card--next {
  border-color: rgba(242, 242, 243, 0.42);
  box-shadow: 0 0 0 1px rgba(242, 242, 243, 0.12), 0 14px 32px -18px rgba(0, 0, 0, 0.85);
}
[data-theme="dark"] .hb-card--live {
  border-color: rgba(54, 195, 107, 0.4);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 10px 28px -14px rgba(54, 195, 107, 0.3);
}
[data-theme="dark"] .hb-table thead { background: var(--hb-ink-wash); }
[data-theme="dark"] .hb-table tbody tr { border-bottom-color: var(--hb-ink-line); }
[data-theme="dark"] .hb-table tbody tr:hover { background: var(--hb-ink-wash); }
[data-theme="dark"] .hb-sheet-overlay { background: rgba(0, 0, 0, 0.45); }
