/* The Whisker Sites design system. Generated from src/tokens.css,
   src/foundations.css and src/ui.css. Do not edit this file. */

/* The Whisker Sites design system: brand roles, both themes, geometry.
   Derived from the Whisker design language; every colour pair below is proven
   by contrast.test.ts, and a value that fails the threshold is changed here. */

:root {
  /* Brand roles stay raw so the semantic roles below choose their use. */
  --brand-orange: #fbb040;
  --brand-cream: #fdfaf3;
  --brand-warm-charcoal: #262323;

  --swatch-light: #fdfaf3;
  --swatch-dark: #211e1c;
  --account-width: 760px;

  /* Type stacks. No external face is referenced anywhere. The face is named
     only here and in its pinned copies (typeface-single-source.test.ts). To
     switch it: add the font files, repoint the @font-face rules, then change
     this token; ERROR_PAGE_TOKENS and the help site's copies follow. */
  --font-sans:
    "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Geometry and the one shell contract the sidebar needs. */
  --radius-control: 9px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --control-height: 40px;
  --control-height-touch: 44px;
  --shell-sidebar-expanded: 256px;
  --shell-sidebar-collapsed: 72px;
  --shell-desktop-breakpoint: 768px;

  /* Spacing base is 4px. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;

  /* Motion, and the two layers a zero-script page can float. */
  --motion-fast: 150ms;
  --motion-normal: 200ms;
  --layer-sticky: 20;
  --layer-popover: 40;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #fdfaf3;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-inset: #f3f0e6;
  --overlay: rgba(38, 35, 35, 0.42);
  --text: #262323;
  --text-muted: #6e6867;
  --text-subtle: #706967;
  --text-on-accent: #262323;
  --border: #e8e4df;
  --border-strong: #d1cbc6;
  --control-border: #7a7472;
  --focus: #a86400;
  --selection: #feeacb;
  --accent: #fbb040;
  --accent-hover: #e89a2c;
  --accent-pressed: #c8851f;
  --link: #8a5a12;
  --link-hover: #5c3812;
  --success: #216b52;
  --success-surface: #e2f1ec;
  --warning: #8a5a12;
  --warning-surface: #fff6e6;
  --danger: #a32222;
  --danger-surface: #fbe7e7;
  --privacy: #7a4d0d;
  --privacy-surface: #fff2d9;
  --disabled-text: #8e8886;
  --disabled-surface: #f3f0e6;
  --disabled-border: #d9d5d2;
  --chip-selected-surface: #262323;
  --chip-selected-text: #ffffff;
  --nav-current-surface: #ffffff;
  --rail-surface: #fdfaf3;
  --accent-soft: #feeacb;
  --shadow-sm: 0 1px 3px rgba(38, 35, 35, 0.08);
  --shadow-md: 0 8px 24px rgba(38, 35, 35, 0.1);
  /* A sign-in provider's button: Google's published neutral treatment. */
  --provider-surface: #ffffff;
  --provider-border: #747775;
  --provider-text: #1f1f1f;
  /* Per-theme provider marks (marks/SOURCES.md), stylesheet-relative. */
  --provider-mark-google: image-set(
    url("google-light.33f5ab7c.png") 1x,
    url("google-light-2x.707f430d.png") 2x
  );
  --provider-mark-github: url("github-light.693d7abe.svg");
  --action-primary: var(--accent);
  --action-primary-hover: var(--accent-hover);
  --action-secondary: var(--surface);
  --action-secondary-hover: var(--surface-inset);
  --action-quiet-hover: var(--surface-inset);
  --action-danger: var(--danger);
  --action-danger-hover: var(--danger-surface);
  --sticky-surface: var(--surface);
}

/* An explicit choice of dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #211e1c;
  --surface: #2a2623;
  --surface-elevated: #332e2a;
  --surface-inset: #1b1817;
  --overlay: rgba(0, 0, 0, 0.62);
  --text: #f6efe5;
  --text-muted: #c2b8ae;
  --text-subtle: #9f958c;
  --text-on-accent: #211e1c;
  --border: #474039;
  --border-strong: #62584f;
  --control-border: #8a8077;
  --focus: #ffc66f;
  --selection: #6a451b;
  --accent: #fbb040;
  --accent-hover: #ffc15e;
  --accent-pressed: #e89a2c;
  --link: #f4c57e;
  --link-hover: #ffd9a0;
  --success: #8dd5b8;
  --success-surface: #203d33;
  --warning: #f4c57e;
  --warning-surface: #49351e;
  --danger: #ffaaa4;
  --danger-surface: #4a2928;
  --privacy: #f0c378;
  --privacy-surface: #44331f;
  --disabled-text: #817870;
  --disabled-surface: #302b28;
  --disabled-border: #474039;
  --chip-selected-surface: #f6efe5;
  --chip-selected-text: #211e1c;
  --nav-current-surface: #332e2a;
  --rail-surface: #1b1817;
  --accent-soft: #4a3a22;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.34);
  --provider-surface: #131314;
  --provider-border: #8e918f;
  --provider-text: #e3e3e3;
  --provider-mark-google: image-set(
    url("google-dark.6a7d4313.png") 1x,
    url("google-dark-2x.2589cb7b.png") 2x
  );
  --provider-mark-github: url("github-dark.ccd84c89.svg");
  --action-primary: var(--accent);
  --action-primary-hover: var(--accent-hover);
  --action-secondary: var(--surface);
  --action-secondary-hover: var(--surface-inset);
  --action-quiet-hover: var(--surface-inset);
  --action-danger: var(--danger);
  --action-danger-hover: var(--danger-surface);
  --sticky-surface: var(--surface);
}

/* THE CORRECTION: with no attribute at all, a dark OS must still get the dark
   palette. `:not([data-theme="light"])` keeps an explicit light choice winning.
   The block below is a deliberate copy of the one above and is pinned as one. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #211e1c;
    --surface: #2a2623;
    --surface-elevated: #332e2a;
    --surface-inset: #1b1817;
    --overlay: rgba(0, 0, 0, 0.62);
    --text: #f6efe5;
    --text-muted: #c2b8ae;
    --text-subtle: #9f958c;
    --text-on-accent: #211e1c;
    --border: #474039;
    --border-strong: #62584f;
    --control-border: #8a8077;
    --focus: #ffc66f;
    --selection: #6a451b;
    --accent: #fbb040;
    --accent-hover: #ffc15e;
    --accent-pressed: #e89a2c;
    --link: #f4c57e;
    --link-hover: #ffd9a0;
    --success: #8dd5b8;
    --success-surface: #203d33;
    --warning: #f4c57e;
    --warning-surface: #49351e;
    --danger: #ffaaa4;
    --danger-surface: #4a2928;
    --privacy: #f0c378;
    --privacy-surface: #44331f;
    --disabled-text: #817870;
    --disabled-surface: #302b28;
    --disabled-border: #474039;
    --chip-selected-surface: #f6efe5;
    --chip-selected-text: #211e1c;
    --nav-current-surface: #332e2a;
    --rail-surface: #1b1817;
    --accent-soft: #4a3a22;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.34);
    --provider-surface: #131314;
    --provider-border: #8e918f;
    --provider-text: #e3e3e3;
    --provider-mark-google: image-set(
      url("google-dark.6a7d4313.png") 1x,
      url("google-dark-2x.2589cb7b.png") 2x
    );
    --provider-mark-github: url("github-dark.ccd84c89.svg");
    --action-primary: var(--accent);
    --action-primary-hover: var(--accent-hover);
    --action-secondary: var(--surface);
    --action-secondary-hover: var(--surface-inset);
    --action-quiet-hover: var(--surface-inset);
    --action-danger: var(--danger);
    --action-danger-hover: var(--danger-surface);
    --sticky-surface: var(--surface);
  }
}

/* Self-hosted type, the ramp, focus and reduced motion. Every `url()` here is
   stylesheet-relative, so the portal (`/assets/`) and the sign-in pages
   (`/auth/assets/`) each resolve it under their own prefix. */

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin.1f21c6ea.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/hanken-grotesk-latin-ext.a1376a56.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

html {
  font-family: var(--font-sans);
  scroll-padding-top: calc(var(--control-height-touch) + var(--space-4));
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--selection);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

h1 {
  margin: 0 0 var(--space-1);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  margin: 0;
}

:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-control);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* The component classes. Authored phone-first: every rule below is the 360px
   layout, and the one `min-width: 768px` block turns the disclosure into the
   sidebar shell. 768px is the literal spelling of --shell-desktop-breakpoint,
   which a media query cannot read; a test pins the two to each other. */

.ui-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ui-skip-link {
  position: absolute;
  left: var(--space-2);
  top: calc(var(--space-2) * -8);
  z-index: var(--layer-popover);
  padding: var(--space-2) var(--space-3);
  background: var(--surface-elevated);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  color: var(--text);
}

.ui-skip-link:focus {
  top: var(--space-2);
}

.ui-shell {
  display: block;
  min-height: 100vh;
}

.ui-shell-topbar {
  position: sticky;
  top: 0;
  z-index: var(--layer-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--sticky-surface);
  border-bottom: 1px solid var(--border);
}

.ui-shell-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  color: var(--text);
  font-weight: 500;
}

.ui-brand-mark {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.ui-shell-menu {
  margin-left: auto;
}

.ui-shell-menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-touch);
  min-width: var(--control-height-touch);
  padding: 0 var(--space-3);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  color: var(--text);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.ui-shell-menu > summary::-webkit-details-marker {
  display: none;
}

.ui-shell-menu[open] > summary {
  background: var(--surface-inset);
}

.ui-shell-sidebar {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-3);
  background: var(--rail-surface);
  border-bottom: 1px solid var(--border);
}

/* The rail's head: the brand, and the collapse control beside it. Desktop
   only: on a phone the topbar already carries the brand, and the opened menu
   would repeat it (the 390px captures). */
.ui-shell-head {
  display: none;
}

/* The collapse controls exist only on the desktop rail, and only once the
   script has revealed them (they are rendered `hidden`). */
.ui-shell-toggle {
  display: none;
}

/* Reconciled at assembly: the reveal is `:has()` on the shell, not an adjacent
   sibling — default 5's markup puts the `<details>` inside `.ui-shell-topbar`,
   so `[open] + .ui-shell-sidebar` never matches and the phone would ship with
   no navigation while every test stayed green (Task 3, spore gotcha-dde47743). */
.ui-shell:has(.ui-shell-menu[open]) .ui-shell-sidebar {
  display: flex;
}

.ui-shell-nav {
  display: grid;
  gap: var(--space-3);
  min-height: 0;
}

.ui-shell-nav-group {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.ui-shell-section-label {
  margin: var(--space-2) var(--space-3) var(--space-1);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ui-shell-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-height-touch);
  min-width: 0;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 400;
}

.ui-shell-icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-shell-label {
  flex: 1 1 auto;
  min-width: 0;
}

.ui-shell-count {
  padding: 0 var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

.ui-whats-new-control {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.ui-shell-nav-item:hover {
  background: var(--surface-inset);
  text-decoration: none;
}

.ui-shell-nav-item--active {
  background: var(--nav-current-surface);
  color: var(--text);
  font-weight: 600;
}

.ui-shell-nav-item--active:hover {
  background: var(--nav-current-surface);
  color: var(--text);
}

.ui-shell-account {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.ui-shell-account-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--control-height-touch);
  padding: 0 var(--space-2);
  border-radius: var(--radius-md);
  color: var(--text);
}

/* A person's initials on the soft accent (the Rail board's account tile). */
.ui-initials {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: var(--space-6);
  height: var(--space-6);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
}

.ui-shell-main {
  display: block;
  padding: var(--space-4) var(--space-3) var(--space-6);
}

.ui-person {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.ui-person .ui-initials {
  width: calc(var(--space-6) * 1.5);
  height: calc(var(--space-6) * 1.5);
  font-size: 1rem;
}

.ui-table .ui-person {
  flex-wrap: nowrap;
  min-width: 15rem;
}

.ui-person__who {
  display: grid;
  flex: 1 1 0;
  gap: var(--space-1);
  overflow-wrap: anywhere;
}

.ui-account {
  max-width: var(--account-width);
}

.ui-appearance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.ui-appearance-choice {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-inset);
  color: var(--text);
  font: 600 0.9375rem var(--font-sans);
  text-align: left;
}

.ui-appearance-choice[aria-pressed="true"] {
  padding: calc(var(--space-3) - 1px);
  border: 2px solid var(--accent);
}

.ui-appearance-swatch {
  height: calc(var(--space-6) * 2);
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: linear-gradient(
    90deg,
    var(--swatch-light) 50%,
    var(--swatch-dark) 50%
  );
}

.ui-appearance-swatch--light {
  background: var(--swatch-light);
}

.ui-appearance-swatch--dark {
  background: var(--swatch-dark);
}

.ui-page-header {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
}

.ui-lead {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.ui-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.ui-mono,
.ui-code,
.ui-diff {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.ui-code,
.ui-diff td {
  white-space: pre-wrap;
}

.ui-code {
  margin: 0;
  padding: var(--space-3);
  background: var(--surface-inset);
  border-radius: var(--radius-md);
}

.ui-diff {
  width: 100%;
  border-collapse: collapse;
}

.ui-diff td {
  padding: 0 var(--space-2);
  vertical-align: top;
}

.ui-diff .ui-diff__no {
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.ui-diff__add {
  background: var(--success-surface);
}

.ui-diff__del {
  background: var(--danger-surface);
}

.ui-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ui-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}

.ui-stack--compact,
.ui-inline--compact {
  gap: var(--space-2);
}

.ui-stack--default,
.ui-inline--default {
  gap: var(--space-3);
}

.ui-stack--spacious,
.ui-inline--spacious {
  gap: var(--space-5);
}

.ui-divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.ui-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}

/* The sign-in door (W29). On a phone its card reads as the page. */
.ui-door {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ui-door-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
}

.ui-wordmark {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ui-door-main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4);
}

.ui-door-main .ui-card {
  padding-inline: 0;
  background: none;
  border-color: transparent;
}

.ui-door-title {
  font-size: 1.25rem;
  line-height: 1.3;
}

/* Consent's Allow and Deny: stacked, side by side from 768px. */
.ui-door-choice {
  display: grid;
  gap: var(--space-3);
}

.ui-door-choice .ui-button {
  width: 100%;
}

.ui-door-footer {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-4);
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

/* Sign-in pages have no rail, so the card keeps a measure. */
.ui-auth {
  display: flex;
  flex-flow: column;
  gap: var(--space-3);
  width: min(100%, 36rem);
  margin-inline: auto;
}

.ui-auth--narrow {
  width: min(100%, 26rem);
}

/* A sign-in provider (W29): every one the same size, mark then label. */
.ui-provider-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--control-height-touch);
  padding: 0 var(--space-4);
  background: var(--provider-surface);
  border: 1px solid var(--provider-border);
  border-radius: var(--radius-control);
  color: var(--provider-text);
  font-weight: 500;
}

.ui-provider-button:hover {
  border-color: var(--provider-text);
  color: var(--provider-text);
  text-decoration: none;
}

/* The owner's file, unedited. Google's is a 40px icon button shown at its
   native size: the box holds the G and crops the outline. */
.ui-provider-mark {
  flex: none;
  width: var(--space-5);
  height: var(--space-5);
  background: center / 1.25rem no-repeat;
}

.ui-provider-mark--google {
  background-image: var(--provider-mark-google);
  background-size: auto;
}

.ui-provider-mark--slack {
  background-image: url("slack.08f20f65.svg");
}

.ui-provider-mark--github {
  background-image: var(--provider-mark-github);
}

.ui-card {
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ui-button,
.ui-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height-touch);
  padding: 0 var(--space-4);
  background: var(--action-secondary);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast);
  white-space: nowrap;
}

.ui-button--wrap {
  white-space: normal;
  overflow-wrap: anywhere;
}

.ui-button:hover:not(:disabled),
.ui-link-button:hover:not([aria-disabled="true"]) {
  background: var(--action-secondary-hover);
  color: var(--text);
  text-decoration: none;
}

.ui-button--primary {
  background: var(--action-primary);
  border-color: var(--action-primary);
  color: var(--text-on-accent);
}

.ui-button--primary:hover:not(:disabled),
.ui-button--primary:hover:not([aria-disabled="true"]) {
  background: var(--action-primary-hover);
  border-color: var(--action-primary-hover);
  color: var(--text-on-accent);
}

.ui-button--quiet {
  border-color: transparent;
  color: var(--text-muted);
}

.ui-button--quiet:hover:not(:disabled),
.ui-button--quiet:hover:not([aria-disabled="true"]) {
  background: var(--action-quiet-hover);
  color: var(--text);
}

.ui-button--danger {
  color: var(--danger);
}

.ui-button--danger:hover:not(:disabled),
.ui-button--danger:hover:not([aria-disabled="true"]) {
  background: var(--action-danger-hover);
  color: var(--danger);
}

.ui-button:disabled,
.ui-link-button[aria-disabled="true"] {
  background: var(--disabled-surface);
  border-color: var(--disabled-border);
  color: var(--disabled-text);
  cursor: default;
}

.ui-icon-button {
  width: var(--control-height-touch);
  min-width: var(--control-height-touch);
  padding: 0;
}

.ui-field {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  min-width: 0;
}

.ui-field__label {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

.ui-field__hint {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.ui-field__error {
  color: var(--danger);
  font-size: 0.875rem;
}

.ui-field input,
.ui-field select,
.ui-field textarea {
  width: 100%;
  /* A long value (an invite link) must not force the card wider than the screen. */
  min-width: 0;
  max-width: 100%;
  min-height: var(--control-height-touch);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-md);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.ui-field textarea {
  min-height: 84px;
  resize: vertical;
}

.ui-radio {
  margin: 0;
}

.ui-field [aria-invalid="true"] {
  border-color: var(--danger);
}

/* The one search form: the field grows, and the Search button and the Clear
   link sit on the input's baseline beside it, wrapping below it on a phone.
   A one-field form with its button (the Site's mode select) wears the same
   row. */
.ui-search,
.ui-inline-form,
.ui-list-toolbar,
.ui-list-toolbar__search,
.ui-list-toolbar__filters,
.ui-list-toolbar__views {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-2);
}

.ui-search > .ui-field,
.ui-list-toolbar__search > .ui-field {
  flex: 1 1 16rem;
}

[hidden] {
  display: none !important;
}

/* A choice that commits at once (a narrowing Sharing Mode) is a card button. */
button.ui-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

/* A confirmation shown in place (confirm-dialog.js): its card is the surface. */
dialog {
  padding: 0;
  border: 0;
  background: none;
}

.ui-inline-form > .ui-field {
  flex: 1 1 10rem;
}

/* The hint takes its own line under the row, so the buttons line up with the
   input rather than with the hint below it. */
.ui-search > .ui-field__hint,
.ui-inline-form > .ui-field__hint {
  flex-basis: 100%;
}

/* The outcome notice, which `renderPage` puts first in the main region. */
.ui-shell-main > .ui-inline-message:first-child {
  margin-bottom: var(--space-4);
}

/* The one menu: a `<details>` disclosure, so it opens with scripts off. The
   summary wears the button classes; the panel floats under it, aligned to its
   end edge so a menu in the last column stays on the page. */
.ui-menu {
  position: relative;
  display: inline-block;
}

.ui-menu__trigger {
  list-style: none;
}

.ui-menu__trigger::-webkit-details-marker {
  display: none;
}

.ui-menu[open] > .ui-menu__trigger {
  background: var(--surface-inset);
}

.ui-menu__items {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + var(--space-1));
  z-index: var(--layer-popover);
  display: grid;
  min-width: 14rem;
  padding: var(--space-1);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.ui-menu__items form {
  display: contents;
}

.ui-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--control-height-touch);
  padding: 0 var(--space-3);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
}

.ui-menu__item:hover {
  background: var(--action-quiet-hover);
  color: var(--text);
  text-decoration: none;
}

.ui-menu__item--danger,
.ui-menu__item--danger:hover {
  color: var(--danger);
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: var(--space-1) var(--space-2);
  background: var(--surface-inset);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.ui-badge--success {
  background: var(--success-surface);
  color: var(--success);
}

.ui-badge--warning {
  background: var(--warning-surface);
  color: var(--warning);
}

.ui-badge--danger {
  background: var(--danger-surface);
  color: var(--danger);
}

.ui-badge--neutral {
  background: var(--surface-inset);
  color: var(--text-muted);
}

/* Reconciled at assembly: the sharing-mode tone. Task 4 wears it for the
   "Only me" Access, which is why `--privacy` / `--privacy-surface` are no longer
   declared-but-unconsumed. 6.55:1 light (#7a4d0d on #fff2d9) and 7.35:1 dark
   (#f0c378 on #44331f) — both already asserted by the ROLE_PAIRS row. */
.ui-badge--privacy {
  background: var(--privacy-surface);
  color: var(--privacy);
}

.ui-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--text);
  font-weight: 500;
}

.ui-status::before {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--text-muted);
  border-radius: var(--radius-pill);
}

.ui-status--success::before {
  background: var(--success);
}

.ui-status--warning::before {
  background: var(--warning);
}

.ui-status--danger::before {
  background: var(--danger);
}

.ui-inline-message {
  padding: var(--space-3);
  border-left: 3px solid var(--control-border);
  border-radius: var(--radius-sm);
}

.ui-inline-message--success {
  background: var(--success-surface);
  border-left-color: var(--success);
}

.ui-inline-message--warning {
  background: var(--warning-surface);
  border-left-color: var(--warning);
}

.ui-inline-message--danger {
  background: var(--danger-surface);
  border-left-color: var(--danger);
}

.ui-empty-state {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-4);
  background: var(--surface);
  border: 1px dashed var(--control-border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.ui-list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ui-list-row {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-width: 0;
}

/* A person's initials before a row's title. */
.ui-list-row--leading {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.ui-list-row--leading > :nth-child(n + 3) {
  grid-column: 2;
  justify-self: start;
}

/* B-Sites: 3 columns by the rail, 4 collapsed, 1 on a phone. */
.ui-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--space-4);
}

.ui-glance {
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.ui-glance a {
  color: inherit;
}

.ui-glance strong {
  font-size: 1.875rem;
}

.ui-tile {
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ui-tile__mark {
  display: flex;
  align-items: flex-end;
  height: 5.25rem;
  padding: var(--space-3) var(--space-4);
  background: var(--accent-soft);
  font-size: 1.625rem;
  font-weight: 600;
}

.ui-tile__body {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-4);
}

.ui-tile__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.ui-back-link {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* The Site page (B-Site): History beside the sharing part when there is room,
   the facts under History, one column on a phone. Wrapping, not a second
   breakpoint. */
.ui-site-header,
.ui-site-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.ui-site-header h1 {
  margin: 0;
  font-size: 2.125rem;
  font-weight: 500;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.ui-site-header > .ui-stack,
.ui-site-runs,
.ui-site-history,
.ui-site-notifications,
.ui-site-about,
.ui-site-settings {
  flex: 3 1 28rem;
  min-width: 0;
}

.ui-site-sharing {
  flex: 2 1 20rem;
  min-width: 0;
}

.ui-site-runs,
.ui-site-history,
.ui-site-notifications,
.ui-site-sharing,
.ui-site-about {
  display: grid;
  gap: var(--space-3);
}

.ui-history > .ui-list-row,
.ui-site-sharing .ui-list-row {
  padding: var(--space-3) 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.ui-definition {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.ui-definition > div {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

.ui-definition dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ui-definition dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ui-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ui-table th {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ui-table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

/* A menu in a table opens IN its row: the table's scroll container clips
   anything positioned outside it, hiding a floating panel's actions. The
   row grows instead, and the table still scrolls sideways. */
.ui-table-scroll .ui-menu {
  display: block;
}

.ui-table-scroll .ui-menu__items {
  position: static;
  margin-top: var(--space-1);
}

.ui-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.ui-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--control-height-touch);
  padding: 0 var(--space-3);
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
}

.ui-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.ui-tab--active {
  border-bottom-color: var(--chip-selected-surface);
  color: var(--text);
}

/* A form spanning a list toolbar's rows lays out as them. */
.ui-list-toolbar__form {
  display: contents;
}

.ui-list-toolbar__search,
.ui-list-toolbar__search > .ui-search {
  flex: 1 1 100%;
}

.ui-list-toolbar__filters {
  flex: 1 1 auto;
}

.ui-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: var(--space-4);
}

.ui-card.ui-table-surface {
  overflow: hidden;
  padding: 0;
}

.ui-table-surface__footer,
.ui-table-surface__band {
  padding: var(--space-3) var(--space-4);
  background: var(--surface-inset);
}

/* Activity's day headings (W19 Task 9). */
.ui-table-surface__band {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.ui-table-surface > .ui-history {
  padding-inline: var(--space-4);
}

.ui-chip {
  padding: 0 var(--space-3);
  border-radius: var(--radius-pill);
}

.ui-tabs--segmented {
  gap: 0;
  border-bottom: 0;
}

.ui-tabs--segmented > .ui-tab {
  margin-left: -1px;
  background: var(--surface);
  border: 1px solid var(--control-border);
  color: var(--text);
}

.ui-tabs--segmented > .ui-tab:first-child {
  margin-left: 0;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
}

.ui-tabs--segmented > .ui-tab:last-child {
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
}

.ui-tabs--segmented > .ui-tab:hover {
  background: var(--surface-inset);
}

.ui-tabs--segmented > .ui-tab--active,
.ui-chip.ui-button[aria-pressed="true"] {
  background: var(--chip-selected-surface);
  border-color: var(--chip-selected-surface);
  color: var(--chip-selected-text);
}

@media (min-width: 768px) {
  /* A phone stacks a long setting over its action (it wraps as a header). */
  .ui-setting-row {
    flex-wrap: nowrap;
  }

  .ui-shell {
    display: flex;
    align-items: flex-start;
  }

  .ui-shell-topbar {
    display: none;
  }

  .ui-shell-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex: 0 0 var(--shell-sidebar-expanded);
    width: var(--shell-sidebar-expanded);
    height: 100vh;
    overflow-y: auto;
    padding: var(--space-5) var(--space-3) var(--space-3);
    border-right: 1px solid var(--border);
    border-bottom: 0;
  }

  .ui-shell-account {
    margin-top: auto;
  }

  .ui-shell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
  }

  .ui-shell-toggle:not([hidden]) {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: var(--control-height);
    height: var(--control-height);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
  }

  /* One toggle at a time, chosen by the state the script stamped on the root
     before first paint. With no script there is no state and no toggle. */
  :root[data-rail="collapsed"] [data-rail-toggle="collapse"],
  :root:not([data-rail="collapsed"]) [data-rail-toggle="expand"] {
    display: none;
  }

  /* THE COLLAPSED RAIL (board B-Collapsed): icons only. Labels are hidden
     visually, not removed, so every link keeps its name. */
  :root[data-rail="collapsed"] .ui-shell-sidebar {
    flex-basis: var(--shell-sidebar-collapsed);
    width: var(--shell-sidebar-collapsed);
  }

  :root[data-rail="collapsed"] .ui-shell-head {
    flex-direction: column;
  }

  :root[data-rail="collapsed"] .ui-shell-sidebar .ui-shell-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  :root[data-rail="collapsed"] .ui-shell-section-label,
  :root[data-rail="collapsed"] .ui-shell-count {
    display: none;
  }

  :root[data-rail="collapsed"] .ui-shell-nav-group + .ui-shell-nav-group {
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
  }

  .ui-shell-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--space-6);
  }

  .ui-shell-nav-item,
  .ui-tab,
  .ui-button,
  .ui-link-button,
  .ui-menu__item {
    min-height: var(--control-height);
  }

  .ui-button--compact {
    min-height: 32px;
    padding-inline: var(--space-3);
  }

  .ui-icon-button {
    width: var(--control-height);
    min-width: var(--control-height);
  }

  .ui-button--touch,
  .ui-icon-button.ui-button--touch {
    min-height: var(--control-height-touch);
  }

  .ui-field input,
  .ui-field select,
  .ui-field textarea {
    min-height: var(--control-height);
    font-size: 0.9375rem;
  }

  .ui-card {
    padding: var(--space-5);
  }

  .ui-door-choice {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .ui-door-main .ui-card {
    padding: var(--space-5);
    background: var(--surface);
    border-color: var(--border);
  }

  .ui-list-row--leading {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .ui-list-row--leading > :nth-child(n + 3) {
    grid-column: auto;
  }
}

.ui-setting-row > .ui-stack {
  min-width: 0;
}

.ui-setting-row > :last-child {
  flex-shrink: 0;
}

.ui-whats-new-icon {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}
.ui-whats-new-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background: var(--link);
}

.ui-release-note {
  max-width: calc(var(--space-6) * 20);
}

/* The builder docs: a reading layout of its own inside the frame, sized by
   the room the frame leaves rather than by the window, so a collapsed rail
   widens it. One column on a narrow page with the sidebar behind a toggle;
   the sidebar beside the article from 52rem; "On this page" in a third
   column from 70rem. */
.ui-docs {
  container-type: inline-size;
  /* With the frame's own padding, a 16px gutter on a phone. */
  padding: 0 var(--space-1);
}
.ui-docs-grid {
  display: grid;
  gap: var(--space-4) var(--space-6);
  grid-template-columns: minmax(0, 1fr);
}
.ui-docs-nav {
  display: none;
  font-size: 0.875rem;
}
.ui-docs-menu[open] + .ui-docs-nav {
  display: block;
}
.ui-docs-menu > summary {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height-touch);
  padding: 0 var(--space-4);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-control);
  cursor: pointer;
}
.ui-docs-nav ul,
.ui-docs-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ui-docs-nav-home,
.ui-docs-nav-link {
  display: block;
  padding: var(--space-1) var(--space-3);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}
.ui-docs-nav-home {
  font-weight: 600;
  color: var(--text);
}
.ui-docs-nav a:hover {
  background: var(--surface-inset);
  color: var(--text);
  text-decoration: none;
}
.ui-docs-nav a[aria-current="page"] {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--text);
}
.ui-docs-nav-link--code,
.ui-docs-list-code,
.ui-docs-title--code {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.ui-docs-nav-link--code {
  font-size: 0.8125rem;
}
.ui-docs-nav-link--nested {
  padding-left: var(--space-6);
}
.ui-docs-nav-section {
  margin-top: var(--space-3);
}
.ui-docs-nav-section > summary {
  padding: var(--space-1) var(--space-3);
  font-weight: 600;
  cursor: pointer;
}
.ui-docs-header,
.ui-docs-article {
  min-width: 0;
  max-width: 44rem;
}
.ui-docs-kind {
  margin-bottom: var(--space-2);
  color: var(--link);
  font-size: 0.875rem;
  font-weight: 600;
}
.ui-docs-title {
  font-size: 2.4rem;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.ui-docs-title--code {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
}
.ui-docs-summary {
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.5;
}
.ui-docs-actions,
.ui-docs-header .ui-search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}
/* Copy as Markdown's source, shown only when the clipboard refuses so its text
   can be selected: the whole row, scrolling inside itself. */
.ui-docs-actions pre {
  flex-basis: 100%;
  max-height: 16rem;
  margin: 0;
  padding: var(--space-3) var(--space-4);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-inset);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.ui-docs-toc {
  font-size: 0.875rem;
}
.ui-docs-toc h2 {
  margin-bottom: var(--space-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.ui-docs-toc a {
  display: block;
  padding: var(--space-1) 0;
  color: var(--text-muted);
}
.ui-docs-toc-nested {
  padding-left: var(--space-4);
}
.ui-docs-body {
  font-size: 1rem;
  line-height: 1.65;
}
.ui-docs-body :where(p, ul, ol, table, blockquote, details, .ui-docs-code) {
  margin: var(--space-4) 0 0;
}
.ui-docs-body > :first-child {
  margin-top: 0;
}
.ui-docs-body h2 {
  margin-top: 2.5rem;
  font-size: 1.375rem;
}
.ui-docs-body h3 {
  margin-top: var(--space-6);
  font-size: 1.0625rem;
}
.ui-docs-body :where(ul, ol) {
  padding-left: var(--space-5);
}
.ui-docs-body :not(pre) > code {
  padding: 0.1em 0.35em;
  border-radius: var(--space-1);
  background: var(--surface-inset);
  font-family: var(--font-mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}
.ui-docs-body table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.45;
}
.ui-docs-body :where(th, td) {
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.ui-docs-body details {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.ui-docs-body summary {
  cursor: pointer;
}
.ui-docs-body summary h2 {
  display: inline;
  margin: 0;
}
.ui-docs-code {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-inset);
}
.ui-docs-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.ui-docs-code pre {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.55;
}
.ui-docs-section h2 {
  margin-top: var(--space-6);
}
.ui-docs-list {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
}
.ui-docs-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}
.ui-docs-list a {
  font-weight: 500;
}
.ui-docs-list p {
  margin-top: var(--space-1);
  color: var(--text-muted);
  font-size: 0.875rem;
}
.ui-docs-release {
  margin-top: var(--space-6);
  color: var(--text-subtle);
  font-size: 0.8125rem;
}
@container (min-width: 52rem) {
  .ui-docs-grid {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
  .ui-docs-grid > :not(.ui-docs-nav) {
    grid-column: 2;
  }
  .ui-docs-menu {
    display: none;
  }
  .ui-docs-grid .ui-docs-nav {
    display: block;
    grid-row: 1 / span 3;
    position: sticky;
    top: var(--space-6);
    align-self: start;
    max-height: calc(100vh - var(--space-6) * 2);
    overflow-y: auto;
  }
}
@container (min-width: 70rem) {
  .ui-docs-grid {
    grid-template-columns: 14rem minmax(0, 44rem) 12rem;
  }
  .ui-docs-grid .ui-docs-toc {
    grid-column: 3;
    grid-row: 1 / span 2;
    position: sticky;
    top: var(--space-6);
    align-self: start;
    max-height: calc(100vh - var(--space-6) * 2);
    overflow-y: auto;
  }
  .ui-docs-grid .ui-docs-article {
    grid-row: 2;
  }
}
