:root {
  --ink: #18181b;
  --ink-secondary: #52525b;
  --ink-tertiary: #62626b;
  --paper: #ffffff;
  --paper-frame: #f3f3f4;
  --paper-sunken: #f4f4f5;
  --paper-sunken-2: #ededef;
  --paper-raised: #ffffff;
  --paper-hover: #f0f0f2;
  --paper-selected: #eef4ff;
  --rule: #e4e4e7;
  --rule-strong: #d4d4d8;
  --accent: #1a66db;
  --accent-ink: #ffffff;
  --accent-wash: #e8f0fe;
  --accent-text: #1450b8;
  --positive: #15803d;
  --positive-wash: #e7f6ec;
  --positive-text: #166534;
  --caution: #a16207;
  --caution-wash: #fef6e0;
  --caution-text: #854d0e;
  --attention: #c2410c;
  --attention-wash: #fff1e8;
  --attention-text: #9a3412;
  --critical: #b91c1c;
  --critical-wash: #fdecec;
  --critical-text: #b91c1c;
  --tool-code: #7c3aed;
  --tool-data: #0891b2;
  --tool-search: #1b6fee;
  --tool-tags: #059669;
  --tool-proxy: #d97706;
  --tool-test-suite: #db2777;
  --tool-project: #52525b;
  --tool-ink: #ffffff;
  --switch-knob: #ffffff;
  --chart-1: #1b6fee;
  --chart-2: #c2410c;
  --syntax-comment: #8a8a93;
  --syntax-string: #15803d;
  --syntax-keyword: #7c3aed;
  --syntax-number: #c2410c;
  --syntax-function: #1b6fee;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono",
                  Menlo, Consolas, "Liberation Mono", monospace;
  --weight-display: 600;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-bold: 600;
  --text-label: 0.71875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.625rem;
  --text-3xl: clamp(2rem, 3vw + 1.25rem, 3rem);
  --leading-tight: 1.2;
  --leading-snug: 1.4;
  --leading-body: 1.5;
  --leading-loose: 1.65;
  --tracking-display: -0.01em;
  --tracking-tight: -0.01em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.08em;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;
  --measure: 70ch;
  --width-narrow: 38rem;
  --width-text: 42.5rem;
  --width-content: 62.5rem;
  --width-wide: 77.5rem;
  --width-rail: 15rem;
  --width-panel: 20rem;
  --gutter: var(--space-4);
  --control-height: 2.25rem;
  --control-height-sm: 1.875rem;
  --control-height-lg: 2.75rem;
  --control-height-xs: 1.375rem;
  --masthead-height: 3.75rem;
  --bar-height: 3rem;
  --modal-width: 27.5rem;
  --border: 1px solid var(--rule);
  --border-strong: 1px solid var(--rule-strong);
  --radius-sm: 0.375rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1rem;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgb(16 24 40 / 6%);
  --shadow-2: 0 1px 3px rgb(16 24 40 / 7%), 0 6px 16px rgb(16 24 40 / 7%);
  --shadow-3: 0 16px 40px rgb(16 24 40 / 16%);
  --shadow-inset: inset 0 1px 2px rgb(16 24 40 / 5%);
  --transition: 150ms ease-out;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    color-scheme: dark;
    --ink: #f4f4f5;
    --ink-secondary: #c4c4cc;
    --ink-tertiary: #9e9ea8;
    --paper: #1a1a1d;
    --paper-frame: #111113;
    --paper-sunken: #232327;
    --paper-sunken-2: #2a2a2f;
    --paper-raised: #1a1a1d;
    --paper-hover: #232327;
    --paper-selected: #1c2740;
    --rule: #2e2e33;
    --rule-strong: #3a3a40;
    --accent: #5b9bff;
    --accent-ink: #0b1220;
    --accent-wash: #1c2740;
    --accent-text: #5b9bff;
    --positive: #4ade80;
    --positive-wash: #15291c;
    --positive-text: #4ade80;
    --caution: #facc15;
    --caution-wash: #332a12;
    --caution-text: #facc15;
    --attention: #ff9c6b;
    --attention-wash: #3a2419;
    --attention-text: #ff9c6b;
    --critical: #f87171;
    --critical-wash: #3a1a1a;
    --critical-text: #f87171;
    --tool-code: #a78bfa;
    --tool-data: #22d3ee;
    --tool-search: #5b9bff;
    --tool-tags: #34d399;
    --tool-proxy: #fbbf24;
    --tool-test-suite: #f472b6;
    --tool-project: #c4c4cc;
    --chart-1: #3987e5;
    --chart-2: #d95926;
    --syntax-comment: #7a7a85;
    --syntax-string: #4ade80;
    --syntax-keyword: #c4b5fd;
    --syntax-number: #ff9c6b;
    --syntax-function: #7db3ff;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 45%);
    --shadow-2: 0 2px 6px rgb(0 0 0 / 40%), 0 8px 22px rgb(0 0 0 / 32%);
    --shadow-3: 0 18px 44px rgb(0 0 0 / 55%);
    --shadow-inset: inset 0 1px 2px rgb(0 0 0 / 20%);
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --ink-secondary: #c4c4cc;
  --ink-tertiary: #9e9ea8;
  --paper: #1a1a1d;
  --paper-frame: #111113;
  --paper-sunken: #232327;
  --paper-sunken-2: #2a2a2f;
  --paper-raised: #1a1a1d;
  --paper-hover: #232327;
  --paper-selected: #1c2740;
  --rule: #2e2e33;
  --rule-strong: #3a3a40;
  --accent: #5b9bff;
  --accent-ink: #0b1220;
  --accent-wash: #1c2740;
  --accent-text: #5b9bff;
  --positive: #4ade80;
  --positive-wash: #15291c;
  --positive-text: #4ade80;
  --caution: #facc15;
  --caution-wash: #332a12;
  --caution-text: #facc15;
  --attention: #ff9c6b;
  --attention-wash: #3a2419;
  --attention-text: #ff9c6b;
  --critical: #f87171;
  --critical-wash: #3a1a1a;
  --critical-text: #f87171;
  --tool-code: #a78bfa;
  --tool-data: #22d3ee;
  --tool-search: #5b9bff;
  --tool-tags: #34d399;
  --tool-proxy: #fbbf24;
  --tool-test-suite: #f472b6;
  --tool-project: #c4c4cc;
  --chart-1: #3987e5;
  --chart-2: #d95926;
  --syntax-comment: #7a7a85;
  --syntax-string: #4ade80;
  --syntax-keyword: #c4b5fd;
  --syntax-number: #ff9c6b;
  --syntax-function: #7db3ff;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 45%);
  --shadow-2: 0 2px 6px rgb(0 0 0 / 40%), 0 8px 22px rgb(0 0 0 / 32%);
  --shadow-3: 0 18px 44px rgb(0 0 0 / 55%);
  --shadow-inset: inset 0 1px 2px rgb(0 0 0 / 20%);
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-1f021a24.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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/inter-latin-ext-65edaaef.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-latin-400-d803141a.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-latin-ext-400-d3045dec.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;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-latin-500-3f7bbac1.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: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/ibm-plex-mono-latin-ext-500-82f2cde0.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 {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

:target {
  scroll-margin-top: var(--masthead-height);
}

html, body {
  overflow-x: clip;
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd,
ul, ol {
  margin: 0;
}

ul[class], ol[class] {
  padding: 0;
  list-style: none;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

hr {
  height: 0;
  border: 0;
  border-top: var(--border);
}

[hidden] {
  display: none !important;
}

turbo-frame {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-2xl);
}

h2 {
  font-size: var(--text-xl);
}

h3 {
  font-size: var(--text-lg);
}

h4 {
  font-size: var(--text-md);
  letter-spacing: var(--tracking-normal);
}

.display {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-size: var(--text-3xl);
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: var(--space-4);
}

a {
  color: var(--accent);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong, b {
  font-weight: var(--weight-bold);
}

small {
  font-size: var(--text-sm);
}

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.1em 0.35em;
  background-color: var(--paper-sunken);
  border-radius: var(--radius-sm);
}

pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4);
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  line-height: var(--leading-loose);
}
pre code {
  padding: 0;
  background: none;
  border: 0;
}

blockquote {
  padding-left: var(--space-4);
  border-left: 2px solid var(--rule-strong);
  color: var(--ink-secondary);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  display: block;
  margin-bottom: var(--space-3);
}

.lede {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--ink-secondary);
  max-width: var(--measure);
}

.muted {
  color: var(--ink-secondary);
}

.quiet {
  color: var(--ink-tertiary);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.numeric {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

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

.container {
  width: 100%;
  max-width: var(--width-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
@media (min-width: 52rem) {
  .container {
    padding-inline: var(--space-6);
  }
}

.main {
  padding-block: var(--space-6) var(--space-8);
}

.container--content {
  max-width: var(--width-content);
}

.container--text {
  max-width: var(--width-text);
}

.container--narrow {
  max-width: var(--width-narrow);
}

.section {
  padding-block: var(--space-7);
}

.section--tall {
  padding-block: var(--space-9);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack--tight > * + * {
  margin-top: var(--space-2);
}

.stack--loose > * + * {
  margin-top: var(--space-6);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.cluster--between {
  justify-content: space-between;
}

.cluster--end {
  justify-content: flex-end;
}

.cluster--tight {
  gap: var(--space-2);
}

.grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: minmax(0, 1fr);
}
.grid > * {
  min-width: 0;
}

@media (min-width: 40rem) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 52rem) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 68rem) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.split {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: minmax(0, 1fr);
}
.split > * {
  min-width: 0;
}
@media (min-width: 52rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) 18rem;
    align-items: start;
  }
}

@media (min-width: 52rem) {
  .split--rail-first {
    grid-template-columns: 16rem minmax(0, 1fr);
  }
}

.panel {
  min-width: 0;
}

.rule {
  border: 0;
  border-top: var(--border);
  margin-block: var(--space-6);
}

.rule--strong {
  border-top: var(--border-strong);
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.page-header__text {
  max-width: var(--measure);
}

.page-header__description {
  margin-top: var(--space-1);
  color: var(--ink-tertiary);
}

.section-head {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-size: var(--text-md);
}

.panel {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-4) var(--space-5);
}

.panel--sunken {
  background-color: var(--paper-sunken);
  border-color: transparent;
  box-shadow: none;
}

.panel__header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}
.panel__header h2, .panel__header h3 {
  font-size: var(--text-md);
}

.empty {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  background-color: var(--paper);
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--radius-md);
  color: var(--ink-secondary);
}

.empty__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.stat__value {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.stat__label {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--ink-tertiary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: var(--control-height);
  padding: 0 var(--space-4);
  border: var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--paper);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition), filter var(--transition);
}
.btn:hover {
  background-color: var(--paper-sunken);
  color: var(--ink);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0.5px);
  box-shadow: none;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:disabled, .btn[aria-disabled=true] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  border-color: transparent;
  background-color: var(--accent);
  color: var(--accent-ink);
}
.btn--primary:hover {
  background-color: var(--accent);
  color: var(--accent-ink);
  filter: brightness(1.07);
}

.btn--dark {
  border-color: transparent;
  background-color: var(--ink);
  color: var(--paper);
}
.btn--dark:hover {
  background-color: var(--ink);
  color: var(--paper);
  opacity: 0.9;
}

.btn--ghost {
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
}

.btn--danger {
  border-color: transparent;
  background-color: var(--critical);
  color: var(--accent-ink);
}
.btn--danger:hover {
  background-color: var(--critical);
  color: var(--accent-ink);
  filter: brightness(1.08);
}

.btn--sm {
  height: var(--control-height-sm);
  padding: 0 var(--space-3);
}

.btn--lg {
  height: var(--control-height-lg);
  padding: 0 var(--space-5);
  font-size: var(--text-base);
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: var(--text-sm);
  text-decoration: none;
  text-underline-offset: 0.18em;
  white-space: nowrap;
  cursor: pointer;
}
.btn-link:hover {
  text-decoration: underline;
}
.btn-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-link--danger {
  color: var(--critical);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--control-height-sm);
  height: var(--control-height-sm);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-tertiary);
  cursor: pointer;
}
.icon-button:hover {
  background-color: var(--paper-sunken);
  color: var(--ink);
}
.icon-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.icon-button--soft {
  width: calc(var(--control-height-sm) - var(--space-1));
  height: calc(var(--control-height-sm) - var(--space-1));
  background-color: var(--paper-sunken);
  color: var(--ink-secondary);
}
.icon-button--soft:hover {
  background-color: var(--paper-sunken-2);
}

.avatar-button {
  display: grid;
  flex: none;
  padding: var(--space-1);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.avatar-button:hover, .avatar-button[aria-expanded=true] {
  background-color: var(--paper-sunken-2);
}
.avatar-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.form {
  max-width: var(--width-narrow);
}

.form--wide {
  max-width: none;
}

.field + .field {
  margin-top: var(--space-4);
}

.grid > .field + .field {
  margin-top: 0;
}

.field__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.field__hint {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--ink-tertiary);
}

.field__error {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--critical);
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  height: var(--control-height);
  padding: 0 var(--space-3);
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-inset);
  color: var(--ink);
  font-size: var(--text-base);
  transition: border-color var(--transition);
}
.input::placeholder,
.select::placeholder,
.textarea::placeholder {
  color: var(--ink-tertiary);
  opacity: 1;
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  background-color: var(--paper-sunken);
  color: var(--ink-tertiary);
  cursor: not-allowed;
}
.input[aria-invalid=true],
.select[aria-invalid=true],
.textarea[aria-invalid=true] {
  border-color: var(--critical);
}

.textarea {
  height: auto;
  padding-block: var(--space-2);
  min-height: 7rem;
  line-height: var(--leading-body);
  resize: vertical;
}

.select {
  appearance: none;
  padding-right: var(--space-6);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.05rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
}

.choice {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
}

.choice + .choice {
  margin-top: var(--space-3);
}

.choice__control {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.22rem;
  accent-color: var(--accent);
}

.choice__text {
  font-size: var(--text-sm);
}

.choice__hint {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}

.choice--card {
  padding: var(--space-3) var(--space-4);
  border: var(--border);
  border-radius: var(--radius);
}
.choice--card:has(:checked) {
  border-color: var(--accent);
  background-color: var(--paper-selected);
}
.choice--card + .choice--card {
  margin-top: var(--space-2);
}
.choice--card .choice__text {
  font-weight: var(--weight-bold);
}
.choice--card .choice__hint {
  font-weight: var(--weight-normal);
  font-size: var(--text-sm);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-5);
}
.filter-bar .input, .filter-bar .select {
  width: auto;
  min-width: 12.5rem;
}

.filter-bar__end {
  margin-left: auto;
}

.search-field {
  position: relative;
  display: block;
}
.search-field .icon {
  position: absolute;
  top: 50%;
  left: var(--space-3);
  color: var(--ink-tertiary);
  transform: translateY(-50%);
}
.search-field .input {
  width: 100%;
  padding-left: calc(var(--space-3) * 2 + var(--space-2));
}

.filter-bar .search-field {
  flex: 1 1 12.5rem;
  max-width: 22.5rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: flex-start;
}
.inline-form .input, .inline-form .select {
  flex: 1 1 12rem;
  width: auto;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border);
}

.form-actions--flush {
  padding-top: 0;
  border-top: 0;
}

.settings-card__form {
  margin-top: var(--space-4);
}

.settings-card__actions {
  margin-top: var(--space-4);
}

.field_with_errors {
  display: contents;
}
.field_with_errors .input, .field_with_errors .select, .field_with_errors .textarea {
  border-color: var(--critical);
}

.form-errors {
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-5);
  border-radius: var(--radius);
  background-color: var(--critical-wash);
  color: var(--critical-text);
}
.form-errors__title {
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}
.form-errors ul {
  padding-left: var(--space-4);
  list-style: disc;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}

.panel .table-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.table {
  width: 100%;
  font-size: var(--text-base);
  text-align: left;
}
.table th, .table td {
  padding: var(--space-3);
  vertical-align: middle;
}
.table th:first-child, .table td:first-child {
  padding-left: var(--space-4);
}
.table th:last-child, .table td:last-child {
  padding-right: var(--space-4);
}
.table thead th {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  padding-block: var(--space-2);
  background-color: var(--paper-sunken);
  border-bottom: var(--border);
  white-space: nowrap;
}
.table tbody tr + tr {
  border-top: var(--border);
}
.table tbody tr:hover {
  background-color: var(--paper-hover);
}
.table .is-numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.table .is-actions {
  text-align: right;
  white-space: nowrap;
}
.table .is-actions .button-row {
  justify-content: flex-end;
}
.table .is-clipped {
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table__primary {
  font-weight: var(--weight-bold);
  color: var(--ink);
}

.table__secondary {
  display: block;
  font-size: var(--text-sm);
  color: var(--ink-tertiary);
}

.table__identity {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  min-width: 0;
}

.detail-list {
  display: grid;
  gap: 0;
}
@media (min-width: 40rem) {
  .detail-list {
    grid-template-columns: 12rem minmax(0, 1fr);
  }
}
.detail-list dt {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  padding: var(--space-3) 0;
  border-top: var(--border);
}
.detail-list dd {
  padding: var(--space-3) 0;
  margin: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 40rem) {
  .detail-list dd {
    border-top: var(--border);
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: var(--border);
  font-size: var(--text-sm);
}

.pagination__count {
  color: var(--ink-tertiary);
}

.pagination__links {
  display: flex;
  gap: var(--space-2);
}

.alert {
  --alert-edge: var(--ink);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: inset 3px 0 0 var(--alert-edge);
  background-color: var(--paper);
  font-size: var(--text-sm);
}

.alert + .alert {
  margin-top: var(--space-3);
}

.billing-banner {
  padding-top: var(--space-3);
}

.alert__body {
  flex: 1;
}

.alert__dismiss {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-tertiary);
  font-size: var(--text-md);
  line-height: 1;
  cursor: pointer;
}
.alert__dismiss:hover {
  color: var(--ink);
}

.alert--notice {
  --alert-edge: var(--positive);
  border-color: transparent;
  background-color: var(--positive-wash);
}

.alert--alert,
.alert--error {
  --alert-edge: var(--critical);
  border-color: transparent;
  background-color: var(--critical-wash);
}

.alert--warning {
  --alert-edge: var(--caution);
  border-color: transparent;
  background-color: var(--caution-wash);
}

.alert--info {
  --alert-edge: var(--accent);
  border-color: transparent;
  background-color: var(--accent-wash);
}

.toasts {
  position: fixed;
  z-index: 60;
  bottom: 0;
  left: 0;
  width: 100vw;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-2);
  pointer-events: none;
}
@media (min-width: 40rem) {
  .toasts {
    align-items: flex-end;
  }
  .toasts .alert {
    width: min(26rem, 100%);
  }
}
.toasts .alert {
  pointer-events: auto;
  background-color: var(--ink);
  border-color: transparent;
  border-radius: var(--radius-md);
  box-shadow: inset 3px 0 0 var(--alert-edge), var(--shadow-3);
  color: var(--paper);
}
.toasts .alert__dismiss {
  color: inherit;
  opacity: 0.7;
}
.toasts .alert__dismiss:hover {
  color: inherit;
  opacity: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: var(--control-height-xs);
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--paper-sunken-2);
  color: var(--ink-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.badge--positive {
  background-color: var(--positive-wash);
  color: var(--positive-text);
}

.badge--caution {
  background-color: var(--caution-wash);
  color: var(--caution-text);
}

.badge--attention {
  background-color: var(--attention-wash);
  color: var(--attention-text);
}

.badge--critical {
  background-color: var(--critical-wash);
  color: var(--critical-text);
}

.badge--accent {
  background-color: var(--accent-wash);
  color: var(--accent-text);
}

.badge--quiet {
  color: var(--ink-tertiary);
}

.kbd {
  display: inline-block;
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background-color: var(--paper-sunken-2);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: var(--leading-body);
  white-space: nowrap;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: var(--border);
}

.masthead__inner {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-height: var(--masthead-height);
}
@media (min-width: 40rem) {
  .masthead__inner {
    gap: var(--space-3);
  }
}

.masthead__brand {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  flex: none;
  border-radius: var(--radius);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.masthead__brand:hover {
  color: var(--ink);
  text-decoration: none;
}
.masthead__brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.masthead__name {
  display: none;
}
@media (min-width: 40rem) {
  .masthead__name {
    display: inline;
  }
}

.masthead__nav {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  min-width: 0;
  padding: var(--space-1);
  scrollbar-width: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 52rem) {
  .masthead__nav {
    margin-left: var(--space-2);
  }
}

.masthead__actions {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex: none;
  margin-left: auto;
}

@media (max-width: 51.99rem) {
  .masthead__new {
    width: var(--control-height-sm);
    padding: 0;
  }
}

@media (max-width: 51.99rem) {
  .masthead__new-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

.masthead .dropdown__menu {
  max-height: calc(100dvh - var(--masthead-height) - var(--space-4));
  overflow-y: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  height: var(--control-height-sm);
  padding: 0 var(--space-2);
  border-radius: var(--radius);
  font-weight: var(--weight-medium);
  color: var(--ink-tertiary);
  white-space: nowrap;
  text-decoration: none;
}
@media (min-width: 52rem) {
  .nav-link {
    padding-inline: var(--space-3);
  }
}
.nav-link:hover {
  color: var(--ink);
  background-color: var(--paper-sunken);
  text-decoration: none;
}
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-link[aria-current=page] {
  color: var(--ink);
  background-color: var(--paper-sunken);
}

.subnav {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  overflow-x: auto;
  margin-bottom: var(--space-5);
  border-bottom: var(--border);
}
.subnav .nav-link {
  height: auto;
  padding: var(--space-2) 0;
  margin-bottom: -1px;
  border-radius: 0;
  border-bottom: 1.5px solid transparent;
  font-size: var(--text-sm);
}
.subnav .nav-link:hover {
  background-color: transparent;
}
.subnav .nav-link[aria-current=page] {
  background-color: transparent;
  border-bottom-color: var(--ink);
}

.subnav__intro {
  max-width: var(--measure);
  margin-bottom: var(--space-5);
  color: var(--ink-tertiary);
}

.footer {
  margin-top: var(--space-9);
  padding-block: var(--space-6);
  border-top: var(--border);
  font-size: var(--text-sm);
  color: var(--ink-tertiary);
}

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

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__links a {
  color: inherit;
  text-decoration: none;
}
.footer__links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.impersonation-banner {
  position: sticky;
  top: 0;
  z-index: 70;
  background-color: var(--critical);
  color: #ffffff;
}
.impersonation-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-2);
  font-size: var(--text-sm);
}
.impersonation-banner a, .impersonation-banner button {
  color: #ffffff;
  border-color: currentColor;
}
.impersonation-banner .btn:hover {
  background-color: #ffffff;
  color: var(--critical);
}

.dropdown {
  position: relative;
}

.dropdown__menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 13rem;
  padding: var(--space-1);
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
}

.dropdown__menu[hidden] {
  display: none;
}

.dropdown__menu--left {
  right: auto;
  left: 0;
}

.dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.dropdown__item:hover {
  background-color: var(--paper-hover);
  color: var(--ink);
  text-decoration: none;
}
.dropdown__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}
.dropdown__item[aria-current=true] {
  background-color: var(--paper-selected);
  font-weight: var(--weight-medium);
}

.dropdown__item--danger,
.dropdown__item--danger:hover {
  color: var(--critical);
}

.dropdown__item--stacked {
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  font-weight: var(--weight-bold);
}
.dropdown__item--stacked div {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.dropdown__hint {
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
}

.dropdown__hint-line {
  display: block;
  margin-top: 4px;
}

.dropdown__item[aria-disabled=true] {
  color: var(--ink-tertiary);
  cursor: default;
}
.dropdown__item[aria-disabled=true]:hover {
  background: none;
  color: var(--ink-tertiary);
}

.dropdown__menu--wide {
  width: min(18rem, 100vw - 2 * var(--gutter));
}

.dropdown__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  display: block;
  padding: var(--space-2) var(--space-3) var(--space-1);
}

.dropdown__divider {
  height: 0;
  margin: var(--space-1) calc(-1 * var(--space-1));
  border: 0;
  border-top: var(--border);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-5);
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.45);
}

.modal[hidden] {
  display: none;
}

.modal__panel {
  width: 100%;
  max-width: var(--modal-width);
  margin-block: auto;
  padding: var(--space-4) var(--space-5) var(--space-5);
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  border-radius: var(--radius-xl);
}

.modal__header {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  margin: 0 calc(-1 * var(--space-5)) var(--space-4);
  padding-inline: var(--space-5);
  border-bottom: var(--border);
}

.modal__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
}

.modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--control-height-sm);
  height: var(--control-height-sm);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-tertiary);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
}
.modal__close:hover {
  background-color: var(--paper-sunken);
  color: var(--ink);
}
.modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal__layout {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2 * var(--space-5) - var(--space-4) - var(--space-5));
}
.modal__layout > .modal__header,
.modal__layout > .modal__actions {
  flex: none;
}

.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  margin-inline: calc(-1 * var(--space-5));
  padding-inline: var(--space-5);
  padding-bottom: var(--space-2);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  border-top: var(--border);
}

.tabs__list {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  border-bottom: var(--border);
  margin-bottom: var(--space-5);
}

.tabs__tab {
  padding: var(--space-2) 0;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 1.5px solid transparent;
  background: none;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  cursor: pointer;
}
.tabs__tab:hover {
  color: var(--ink);
}
.tabs__tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.tabs__tab[aria-selected=true] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.tabs__panel[hidden] {
  display: none;
}

.rich-text {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
}
.rich-text > * + * {
  margin-top: var(--space-3);
}
.rich-text h1, .rich-text h2, .rich-text h3 {
  margin-top: var(--space-5);
  color: var(--ink);
  line-height: var(--leading-tight);
}
.rich-text h1 {
  font-size: var(--text-2xl);
}
.rich-text h2 {
  font-size: var(--text-xl);
}
.rich-text h3 {
  font-size: var(--text-lg);
}
.rich-text > h1:first-child, .rich-text > h2:first-child, .rich-text > h3:first-child {
  margin-top: 0;
}
.rich-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.rich-text code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.rich-text pre {
  padding: var(--space-4);
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  tab-size: 2;
}
.rich-text pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
.rich-text blockquote {
  padding-left: var(--space-4);
  border-left: 2px solid var(--rule-strong);
  color: var(--ink-secondary);
}
.rich-text ul, .rich-text ol {
  padding-left: var(--space-5);
}
.rich-text li + li {
  margin-top: var(--space-1);
}
.rich-text li > p {
  margin: 0;
}
.rich-text hr {
  border: 0;
  border-top: var(--border);
}
.rich-text img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}
.rich-text .tableWrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.rich-text table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--text-sm);
}
.rich-text table th, .rich-text table td {
  position: relative;
  min-width: 4rem;
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  text-align: left;
  vertical-align: top;
}
.rich-text table th > *, .rich-text table td > * {
  margin: 0;
}
.rich-text table th {
  background-color: var(--paper-sunken);
  font-weight: var(--weight-bold);
}
.rich-text table .selectedCell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--accent-wash);
  pointer-events: none;
}
.rich-text [data-youtube-video] {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
}
.rich-text [data-youtube-video] iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.editor {
  position: relative;
  border: var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--paper);
  box-shadow: var(--shadow-inset);
  transition: border-color var(--transition);
}
.editor:focus-within {
  border-color: var(--accent);
}

.editor__content {
  color: var(--ink);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
}
.editor__content > * + * {
  margin-top: var(--space-3);
}
.editor__content h1, .editor__content h2, .editor__content h3 {
  margin-top: var(--space-5);
  color: var(--ink);
  line-height: var(--leading-tight);
}
.editor__content h1 {
  font-size: var(--text-2xl);
}
.editor__content h2 {
  font-size: var(--text-xl);
}
.editor__content h3 {
  font-size: var(--text-lg);
}
.editor__content > h1:first-child, .editor__content > h2:first-child, .editor__content > h3:first-child {
  margin-top: 0;
}
.editor__content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.editor__content code {
  padding: 0.1em 0.35em;
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  border: var(--border);
  font-family: var(--font-mono);
  font-size: 0.85em;
}
.editor__content pre {
  padding: var(--space-4);
  overflow-x: auto;
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  tab-size: 2;
}
.editor__content pre code {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
}
.editor__content blockquote {
  padding-left: var(--space-4);
  border-left: 2px solid var(--rule-strong);
  color: var(--ink-secondary);
}
.editor__content ul, .editor__content ol {
  padding-left: var(--space-5);
}
.editor__content li + li {
  margin-top: var(--space-1);
}
.editor__content li > p {
  margin: 0;
}
.editor__content hr {
  border: 0;
  border-top: var(--border);
}
.editor__content img {
  display: block;
  max-width: 100%;
  border-radius: var(--radius);
}
.editor__content .tableWrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.editor__content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--text-sm);
}
.editor__content table th, .editor__content table td {
  position: relative;
  min-width: 4rem;
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  text-align: left;
  vertical-align: top;
}
.editor__content table th > *, .editor__content table td > * {
  margin: 0;
}
.editor__content table th {
  background-color: var(--paper-sunken);
  font-weight: var(--weight-bold);
}
.editor__content table .selectedCell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--accent-wash);
  pointer-events: none;
}
.editor__content [data-youtube-video] {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
}
.editor__content [data-youtube-video] iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.editor__content {
  min-height: 22rem;
  padding: var(--space-3);
  outline: none;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.editor__content > .is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: var(--ink-tertiary);
  pointer-events: none;
}
.editor__content .ProseMirror-selectednode {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.editor__content .ProseMirror-gapcursor::after {
  border-top-color: var(--ink);
}

.editor-toolbar {
  position: fixed;
  z-index: 60;
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1);
}
.editor-toolbar[hidden] {
  display: none;
}

.editor-toolbar__group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.editor-toolbar__group[hidden] {
  display: none;
}

.editor-toolbar__divider {
  width: 1px;
  height: 1.25rem;
  margin: 0 var(--space-1);
  background-color: var(--rule);
}
.editor-toolbar__divider[hidden] {
  display: none;
}

.editor-toolbar__button,
.editor-toolbar__select {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 1.75rem;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}
.editor-toolbar__button:hover,
.editor-toolbar__select:hover {
  background-color: var(--paper-sunken);
  color: var(--ink);
}
.editor-toolbar__button:focus-visible,
.editor-toolbar__select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}
.editor-toolbar__button[aria-pressed=true],
.editor-toolbar__select[aria-pressed=true] {
  background-color: var(--paper-sunken);
  color: var(--ink);
}
.editor-toolbar__button[hidden],
.editor-toolbar__select[hidden] {
  display: none;
}
.editor-toolbar__button svg,
.editor-toolbar__select svg {
  flex: none;
}

.editor-toolbar__button {
  width: 1.75rem;
  padding: 0;
  justify-content: center;
}

.editor-toolbar__button:has(.editor-toolbar__caption) {
  width: auto;
  padding: 0 var(--space-2);
}

.editor-toolbar__caption {
  font-size: var(--text-xs);
}

.editor-toolbar__select {
  padding-right: var(--space-1);
}

.editor-toolbar__language {
  height: 1.75rem;
  padding: 0 var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background-color: transparent;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}
.editor-toolbar__language:hover {
  background-color: var(--paper-sunken);
}
.editor-toolbar__language[hidden] {
  display: none;
}

.editor-dropdown {
  position: relative;
}

.editor-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 61;
  min-width: 11rem;
  padding: var(--space-1);
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
}
.editor-menu[hidden] {
  display: none;
}

.editor-menu__item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0.4rem var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
}
.editor-menu__item:hover, .editor-menu__item[aria-selected=true] {
  background-color: var(--paper-hover);
}
.editor-menu__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}
.editor-menu__item {
  padding-block: 0.3rem;
  font-size: var(--text-sm);
}

.editor-menu__icon {
  display: inline-flex;
  color: var(--ink-tertiary);
}

.editor-menu__check {
  display: none;
  color: var(--ink);
}

.editor-menu__item[aria-selected=true] .editor-menu__check {
  display: inline-flex;
}

.slash-menu {
  position: fixed;
  z-index: 60;
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  width: 17rem;
  max-height: min(24rem, 100vh - 2rem);
  padding: var(--space-1);
  overflow-y: auto;
}

.slash-menu__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  padding: var(--space-2) var(--space-3) var(--space-1);
  color: var(--ink-tertiary);
}

.slash-menu__divider {
  height: 0;
  margin: var(--space-2) 0;
  border: 0;
  border-top: var(--border);
}

.slash-menu__item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0.4rem var(--space-3);
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--ink);
  font-size: var(--text-base);
  text-align: left;
  cursor: pointer;
}
.slash-menu__item:hover, .slash-menu__item[aria-selected=true] {
  background-color: var(--paper-hover);
}
.slash-menu__item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}

.slash-menu__item--back {
  color: var(--ink-secondary);
}

.slash-menu__icon {
  display: inline-flex;
  color: var(--ink-tertiary);
}

.slash-menu__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slash-menu__chevron {
  display: inline-flex;
  color: var(--ink-tertiary);
}

.slash-menu__empty {
  padding: var(--space-3);
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.slash-menu__filter {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-3) var(--space-1);
  border-top: var(--border);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

.slash-menu__slash {
  color: var(--ink-tertiary);
}

.slash-menu__placeholder {
  color: var(--ink-tertiary);
}

.editor-popover {
  position: fixed;
  z-index: 60;
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
  width: 20rem;
  max-width: calc(100vw - 1rem);
  padding: var(--space-3);
}
.editor-popover[hidden] {
  display: none;
}

.editor-popover__title {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--space-2);
  color: var(--ink-tertiary);
}

.editor-popover__form {
  display: flex;
  gap: var(--space-2);
}
.editor-popover__form .input {
  flex: 1 1 auto;
  min-width: 0;
}

.editor-popover__form--stacked {
  flex-direction: column;
  align-items: flex-start;
}
.editor-popover__form--stacked .input {
  width: 100%;
}

.editor-popover__error {
  color: var(--critical);
  font-size: var(--text-sm);
}
.editor-popover__error[hidden] {
  display: none;
}

.icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-icon {
  --tool-colour: var(--tool-project);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  background-color: var(--tool-colour);
  color: var(--tool-ink);
}

.tool-icon--lg {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
}

.tool-icon--project {
  color: var(--paper);
}

.tool-icon--soon {
  --tool-colour: var(--paper-sunken-2);
  color: var(--ink-tertiary);
}

.tool-chip {
  --tool-colour: var(--tool-project);
  display: inline-flex;
  gap: var(--space-1);
  align-items: center;
  height: var(--control-height-xs);
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  background-color: var(--paper-sunken-2);
  color: var(--ink-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}
.tool-chip::before {
  content: "";
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: calc(var(--space-1) / 2);
  background-color: var(--tool-colour);
}

.tool-chip + .tool-chip {
  margin-left: var(--space-1);
}

.tool-icon--code, .tool-chip--code {
  --tool-colour: var(--tool-code);
}

.tool-icon--data, .tool-chip--data {
  --tool-colour: var(--tool-data);
}

.tool-icon--search, .tool-chip--search {
  --tool-colour: var(--tool-search);
}

.tool-icon--proxy, .tool-chip--proxy {
  --tool-colour: var(--tool-proxy);
}

.tool-icon--tags, .tool-chip--tags {
  --tool-colour: var(--tool-tags);
}

.tool-icon--test-suite, .tool-chip--test-suite {
  --tool-colour: var(--tool-test-suite);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius);
  background-color: var(--ink);
  color: var(--paper);
}
.brand-mark:hover {
  color: var(--paper);
}
.brand-mark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.monogram {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: var(--radius-sm);
  background-color: var(--ink);
  color: var(--paper);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.monogram--lg {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
}

.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: var(--radius-pill);
  background-color: var(--attention);
  color: var(--paper);
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.segmented {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: calc(var(--space-1) / 2);
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  scrollbar-width: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.segmented__option {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  flex: none;
  height: var(--control-height-sm);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.segmented__option:hover {
  color: var(--ink);
  text-decoration: none;
}
.segmented__option:focus-visible, .segmented__option:has(:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}
.segmented__option[aria-current=page], .segmented__option[aria-pressed=true], .segmented__option:has(:checked) {
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-1), 0 0 0 1px var(--rule);
}
.segmented__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.segmented--sm .segmented__option {
  height: calc(var(--control-height-sm) - var(--space-1));
  padding: 0 var(--space-2);
}

.switch {
  position: relative;
  flex: none;
  width: 2.125rem;
  height: 1.25rem;
  margin: 0;
  border-radius: var(--radius-pill);
  background-color: var(--rule-strong);
  cursor: pointer;
  appearance: none;
  transition: background-color var(--transition);
}
.switch::after {
  content: "";
  position: absolute;
  top: calc(var(--space-1) / 2);
  left: calc(var(--space-1) / 2);
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-pill);
  background-color: var(--switch-knob);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition);
}
.switch:checked {
  background-color: var(--accent);
}
.switch:checked::after {
  transform: translateX(0.875rem);
}
.switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.switch:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.switch-row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.copy-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-width: 0;
}

.copy-row__value {
  flex: 1;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.split-button {
  display: inline-flex;
  align-items: stretch;
}

.split-button__main {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.split-button__toggle {
  padding-inline: var(--space-2);
  border-left: 1px solid color-mix(in srgb, var(--accent-ink) 28%, transparent);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.status-dot {
  display: inline-block;
  flex: none;
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background-color: var(--ink-tertiary);
}

.status-dot--positive {
  background-color: var(--positive);
}

.status-dot--accent {
  background-color: var(--accent);
}

.status-dot--caution {
  background-color: var(--caution);
}

.status-dot--attention {
  background-color: var(--attention);
}

.status-dot--critical {
  background-color: var(--critical);
}

.status-link {
  display: inline-grid;
  place-items: center;
  width: var(--control-height-sm);
  height: var(--control-height-sm);
  border-radius: var(--radius-pill);
}
.status-link:hover {
  background-color: var(--paper-hover);
}
.status-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--space-3);
}

.kpis--fixed {
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
}

.kpi {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  min-width: 0;
  padding: var(--space-3) var(--space-4);
}

.kpi__label {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.kpi__value {
  display: block;
  margin-top: calc(var(--space-1) / 2);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
}

.kpi__note {
  display: block;
  margin-top: calc(var(--space-1) / 2);
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}

.kpi__note--up {
  color: var(--positive);
}

.kpi__note--down {
  color: var(--attention);
}

.trend-chart {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-4) var(--space-5);
}

.trend-chart__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  margin-bottom: var(--space-3);
}

.trend-chart__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
}

.trend-chart__key {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

.trend-chart__swatch {
  width: var(--space-3);
  height: 2px;
  border-radius: var(--radius-pill);
  background-color: var(--chart-1);
}

.trend-chart__swatch--2 {
  background-color: var(--chart-2);
}

.trend-chart__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-3);
}

.trend-chart__svg {
  display: block;
  width: 100%;
  height: 11rem;
  overflow: visible;
}

.trend-chart__y,
.trend-chart__x {
  color: var(--ink-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-label);
}

.trend-chart__y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 11rem;
  text-align: right;
}
.trend-chart__y span {
  line-height: 0;
}

.trend-chart__x {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-3);
  padding-inline: 1%;
}
.trend-chart__x span {
  display: flex;
  justify-content: center;
  width: 0;
  white-space: nowrap;
}

.trend-chart__x--single {
  justify-content: center;
}

.trend-chart__grid {
  stroke: var(--rule);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trend-chart__line {
  fill: none;
  stroke: var(--chart-1);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.trend-chart__line--2 {
  stroke: var(--chart-2);
  stroke-dasharray: 4 4;
}

.trend-chart__column {
  fill: transparent;
}
.trend-chart__column:hover {
  fill: var(--paper-hover);
}

.trend-chart__empty {
  padding: var(--space-6) 0;
  color: var(--ink-tertiary);
  text-align: center;
}

.meter {
  display: block;
  width: 100%;
  height: 0.375rem;
}

.meter__track {
  fill: var(--paper-sunken-2);
}

.meter__fill {
  fill: var(--accent);
}

.ranked {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranked__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4rem, 12rem) 3.5rem;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: var(--border);
}
.ranked__row:last-child {
  border-bottom: 0;
}

.ranked__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranked__value {
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-align: right;
}

.analytics-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.analytics-block + .analytics-block {
  margin-top: var(--space-5);
}

.analytics-heading {
  margin-bottom: var(--space-3);
  font-size: var(--text-md);
}

.ranked__row--action {
  grid-template-columns: minmax(0, 1fr) 3.5rem auto;
}

.result-list {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.result {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border);
}
.result:last-child {
  border-bottom: 0;
}

.result__title {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-weight: var(--weight-bold);
}

.result__path {
  display: block;
  color: var(--ink-tertiary);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.result__snippet {
  margin-top: var(--space-1);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

.result__meta {
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.answer-card {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-4) var(--space-5);
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-1);
}

.answer-card__head {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  margin-bottom: var(--space-2);
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.answer-card__body {
  line-height: var(--leading-loose);
  white-space: pre-line;
}

.project-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100dvh - var(--shell-offset, 0px));
  background-color: var(--paper-frame);
}
@media (min-width: 52rem) {
  .project-shell {
    grid-template-columns: var(--width-rail) minmax(0, 1fr);
  }
}

body:has(> .impersonation-banner) .project-shell {
  --shell-offset: calc(var(--control-height-sm) + 2 * var(--space-2));
}

.project-shell__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 var(--space-2) var(--space-2);
}
@media (min-width: 52rem) {
  .project-shell__main {
    padding-left: 0;
  }
}

.project-bar {
  display: flex;
  gap: var(--space-3);
  align-items: flex-end;
  min-width: 0;
  padding: var(--space-2) var(--space-3) 0;
}

.project-bar__actions {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  align-self: center;
  flex: none;
  margin-left: auto;
  margin-top: -4px;
}
@media (max-width: 51.99rem) {
  .project-bar__actions {
    gap: var(--space-2);
  }
}

.tool-tabs {
  display: flex;
  align-items: flex-end;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tool-tab {
  position: relative;
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  flex: none;
  height: var(--control-height);
  padding: 0 var(--space-4);
  border-radius: var(--radius) var(--radius) 0 0;
  color: var(--ink-tertiary);
  font-weight: var(--weight-medium);
  white-space: nowrap;
  text-decoration: none;
}
@media (max-width: 51.99rem) {
  .tool-tab {
    padding-inline: var(--space-3);
  }
}
.tool-tab .tool-icon {
  width: 1rem;
  height: 1rem;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: inherit;
}
.tool-tab:hover {
  color: var(--ink);
  text-decoration: none;
}
.tool-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}
.tool-tab[aria-current=page] {
  z-index: 1;
  height: calc(var(--control-height) + 1px);
  margin-bottom: -1px;
  background-color: var(--paper);
  color: var(--ink);
  font-weight: var(--weight-bold);
  box-shadow: inset 1px 0 0 var(--rule), inset -1px 0 0 var(--rule), inset 0 1px 0 var(--rule);
}
.tool-tab[aria-current=page] .tool-icon {
  width: 1.125rem;
  height: 1.125rem;
  background-color: var(--tool-colour);
  color: var(--tool-ink);
}
.tool-tab[aria-current=page] .tool-icon--project {
  color: var(--paper);
}

@media (max-width: 51.99rem) {
  .tool-tab:not([aria-current=page]) .tool-tab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

.tool-tab + .tool-tab::before {
  content: "";
  position: absolute;
  top: var(--space-3);
  bottom: var(--space-3);
  left: 0;
  width: 1px;
  background-color: var(--rule-strong);
}

.tool-tab[aria-current=page]::before,
.tool-tab[aria-current=page] + .tool-tab::before {
  display: none;
}

.project-sheet {
  flex: 1;
  min-width: 0;
  padding: var(--space-5) var(--gutter) var(--space-7);
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
}
@media (min-width: 52rem) {
  .project-sheet {
    padding: var(--space-6) var(--space-6) var(--space-8);
  }
}

.project-sheet__narrow {
  max-width: var(--width-text);
}

.project-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
  padding: var(--space-2) var(--space-2) var(--space-3);
}
@media (min-width: 52rem) {
  .project-rail {
    position: sticky;
    top: var(--shell-offset, 0px);
    align-self: start;
    height: calc(100dvh - var(--shell-offset, 0px));
    overflow-y: auto;
  }
}
@media (max-width: 51.99rem) {
  .project-rail {
    flex-direction: row;
    gap: var(--space-2);
    align-items: center;
    padding: var(--space-2);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .project-rail .project-rail__name,
  .project-rail .rail-group__label {
    display: none;
  }
  .project-rail .rail-group {
    flex-direction: row;
  }
}

.project-rail__head {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex: none;
  min-width: 0;
  min-height: var(--control-height);
  padding: 0 var(--space-1);
  font-weight: var(--weight-bold);
}

.project-rail__foot {
  display: flex;
  flex-direction: column;
  flex: none;
  gap: calc(var(--space-1) / 2);
}
@media (min-width: 52rem) {
  .project-rail__foot {
    margin-top: auto;
  }
}
@media (max-width: 51.99rem) {
  .project-rail__foot {
    flex-direction: row;
    margin-left: auto;
  }
}

.project-rail__back {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  flex: none;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}
.project-rail__back:hover {
  background-color: var(--paper-hover);
  color: var(--ink);
  text-decoration: none;
}

.project-rail__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rail-group {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-1) / 2);
}

.rail-group__label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: 0 var(--space-3) var(--space-1);
}

.rail-group__swatch {
  width: var(--space-2);
  height: var(--space-2);
  border-radius: calc(var(--space-1) / 2);
  background-color: var(--tool-project);
}

.rail-group__swatch--data {
  background-color: var(--tool-data);
}

.rail-group__swatch--search {
  background-color: var(--tool-search);
}

.rail-group__swatch--test-suite {
  background-color: var(--tool-test-suite);
}

.rail-group__swatch--code {
  background-color: var(--tool-code);
}

.rail-nav__link {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex: none;
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink-secondary);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.rail-nav__link .icon {
  color: var(--ink-tertiary);
}
.rail-nav__link:hover {
  background-color: var(--paper-hover);
  color: var(--ink);
  text-decoration: none;
}
.rail-nav__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}
.rail-nav__link[aria-current=page] {
  background-color: var(--paper-sunken-2);
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.summary {
  max-width: var(--width-content);
}

.summary .page-header {
  align-items: center;
}

.summary__section {
  margin-top: var(--space-6);
}

.status-bar {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  overflow: hidden;
  background-color: var(--rule);
}

.status-bar__cell {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  background-color: var(--paper);
}

.status-bar__label {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}

.status-bar__value {
  display: block;
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: var(--control-height-xs);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.status-bar__value .badge {
  vertical-align: top;
}

.tool-rows__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-3);
  border-top: var(--border);
}
.tool-rows__row:first-child {
  padding-top: 0;
  border-top: 0;
}
.tool-rows__row:last-child {
  padding-bottom: 0;
}

.tool-rows--card {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
}
.tool-rows--card .tool-rows__row {
  padding: var(--space-3) var(--space-4);
}

.tool-rows__text {
  flex: 1 1 14rem;
  min-width: 0;
}

.tool-rows__title {
  display: block;
  font-weight: var(--weight-bold);
}

.tool-rows__detail {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--space-3);
}

.tool-card {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  display: block;
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  text-decoration: none;
}
.tool-card:hover {
  background-color: var(--paper-hover);
  color: var(--ink);
  text-decoration: none;
}
.tool-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tool-card--off {
  border-style: dashed;
  background: none;
  box-shadow: none;
}

.tool-card__head {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.tool-card__go {
  margin-left: auto;
  color: var(--ink-tertiary);
}

.tool-card__figure {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

.tool-card__caption {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.tool-card__add {
  display: flex;
  gap: var(--space-1);
  align-items: center;
  margin-top: var(--space-3);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.catalog {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.catalog-card {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
}

.catalog-card--soon {
  border-style: dashed;
  box-shadow: none;
}

.catalog-card__head {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-3);
}

.catalog-card__title {
  margin-bottom: var(--space-1);
  font-size: var(--text-lg);
}

.catalog-card__usage {
  margin-left: auto;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
  text-align: right;
}

.catalog-card__blurb {
  margin-bottom: var(--space-4);
  color: var(--ink-secondary);
}

.catalog-card__capabilities {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}
.catalog-card__capabilities li {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}
.catalog-card__capabilities .icon {
  margin-top: calc(var(--space-1) / 2);
  color: var(--positive);
}

.catalog-card__foot {
  margin-top: auto;
}

.history {
  margin-top: var(--space-4);
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.history__head,
.history__row {
  display: grid;
  grid-template-columns: 11rem 7rem 6rem minmax(8rem, 1fr) 6rem 4.5rem 4.5rem minmax(6rem, 1fr);
  gap: var(--space-3);
  align-items: center;
  min-width: 56rem;
  padding: var(--space-3) var(--space-4);
}

.history__head {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  padding-block: var(--space-2);
  background-color: var(--paper-sunken);
  border-bottom: var(--border);
}

.history__run + .history__run {
  border-top: var(--border);
}

.history__row {
  cursor: pointer;
  list-style: none;
}
.history__row::-webkit-details-marker {
  display: none;
}
.history__row:hover {
  background-color: var(--paper-hover);
}
.history__row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}

.history__run[open] > .history__row {
  background-color: var(--paper-selected);
}

.history__trigger {
  color: var(--ink-secondary);
}

.history__items {
  display: flex;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.history__added {
  color: var(--positive);
}

.history__removed {
  color: var(--attention);
}

.history__by {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history__detail {
  padding: var(--space-3) var(--space-4) var(--space-4);
  border-top: var(--border);
}

.history__error {
  color: var(--critical-text);
}

.history__who {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.history-empty {
  margin-top: var(--space-4);
}

.history .is-numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.sync-control__running {
  cursor: default;
  color: var(--ink-secondary);
}

.sync-control__spinner {
  animation: sync-spin 1.2s linear infinite;
}

@keyframes sync-spin {
  to {
    transform: rotate(360deg);
  }
}
.tool-wall {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  max-width: var(--width-text);
  margin: var(--space-6) auto 0;
}
.tool-wall p {
  max-width: var(--measure);
}

.auth {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-8);
}

.auth__panel {
  width: 100%;
  max-width: 26rem;
}

.auth__title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.auth__subtitle {
  color: var(--ink-tertiary);
  margin-bottom: var(--space-6);
}

.auth__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: var(--border);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
}

.auth__google-form {
  display: block;
}

.auth__google-mark {
  flex: none;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block: var(--space-5);
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}
.auth__divider::before, .auth__divider::after {
  content: "";
  flex: 1;
  border-top: var(--border);
}

.oauth-consent {
  max-width: 40rem;
}
.oauth-consent > form > * + * {
  margin-top: var(--space-4);
}

.oauth-consent .oauth-consent__list {
  padding-left: var(--space-5);
  list-style: disc;
}
.oauth-consent .oauth-consent__list li + li {
  margin-top: var(--space-1);
}

.hero {
  padding-block: var(--space-7) var(--space-8);
  border-bottom: var(--border);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-size: var(--text-3xl);
  max-width: 18ch;
}

.hero__lede {
  margin-top: var(--space-5);
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--ink-secondary);
  max-width: 52ch;
}

.hero__actions {
  margin-top: var(--space-6);
}

.feature-list {
  counter-reset: feature;
  display: grid;
  gap: 0;
}
@media (min-width: 52rem) {
  .feature-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  counter-increment: feature;
  padding: var(--space-6) var(--space-5) var(--space-6) 0;
  border-top: var(--border);
}
@media (min-width: 52rem) {
  .feature {
    padding-right: var(--space-6);
  }
}
.feature::before {
  content: counter(feature, decimal-leading-zero);
  display: block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-tertiary);
}
.feature__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}
.feature__body {
  color: var(--ink-secondary);
}

.price-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 52rem) {
  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-5) var(--space-5);
}
.price__name {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--space-4);
}
.price__amount {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-size: var(--text-2xl);
}
.price__unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-tertiary);
}
.price__features {
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.price__features li {
  padding: var(--space-2) 0;
  border-top: var(--border);
  color: var(--ink-secondary);
}

.admin-bar {
  background-color: var(--ink);
  color: var(--paper);
}
.admin-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  align-items: center;
  min-height: 3rem;
  padding-block: var(--space-2);
}
.admin-bar__title {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  color: var(--paper);
  margin-right: auto;
}
.admin-bar a {
  color: var(--paper);
  font-size: var(--text-sm);
  text-decoration: none;
  opacity: 0.7;
}
.admin-bar a:hover, .admin-bar a[aria-current=page] {
  opacity: 1;
}
.admin-bar a[aria-current=page] {
  font-weight: var(--weight-bold);
}

.admin-stats {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}
@media (min-width: 40rem) {
  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 68rem) {
  .admin-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.admin-stats .stat {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-3) var(--space-4);
}

.mailer-preview {
  max-width: 40rem;
  margin-inline: auto;
}

.doc-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
@media (min-width: 52rem) {
  .doc-nav {
    position: sticky;
    top: calc(var(--masthead-height) + var(--space-5));
  }
}

.doc-nav__search {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.doc-nav__pages {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.doc {
  max-width: var(--width-text);
}

.doc__group {
  margin-bottom: var(--space-1);
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.doc__lead {
  margin-top: var(--space-3);
}

.doc__snippet {
  margin-top: var(--space-4);
}

.doc__next {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  display: block;
  max-width: 20rem;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow var(--transition);
}
.doc__next:hover {
  box-shadow: var(--shadow-2);
  color: var(--ink);
  text-decoration: none;
}
.doc__next:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.doc__next-label {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}

.doc__next-title {
  display: block;
  font-weight: var(--weight-bold);
}

.sg-laws {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-5) 0 0;
  padding: 0;
  list-style: none;
}
.sg-laws li {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--ink-tertiary);
  text-decoration: line-through;
  text-decoration-color: var(--rule-strong);
}
.sg-laws li::before {
  content: "";
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-pill);
  background-color: var(--critical);
}
.sg-laws li.is-yes {
  color: var(--ink-secondary);
  text-decoration: none;
}
.sg-laws li.is-yes::before {
  background-color: var(--positive);
}

.sg-section {
  padding-block: var(--space-7);
  border-bottom: var(--border);
}

.sg-section__head {
  display: grid;
  gap: var(--space-3) var(--space-7);
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: var(--space-5);
}
@media (min-width: 52rem) {
  .sg-section__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}

.sg-section__note {
  max-width: 34rem;
  font-size: var(--text-sm);
  color: var(--ink-tertiary);
}

.sg-sub {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  display: block;
  margin-bottom: var(--space-3);
}

.sg-sub:not(:first-child) {
  margin-top: var(--space-6);
}

@media (min-width: 68rem) {
  .sg-grid--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.sg-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sg-swatch {
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--paper);
}

.sg-swatch__chip {
  height: var(--space-8);
  border-bottom: var(--border);
}

.sg-swatch__pair {
  display: flex;
  height: var(--space-8);
  border-bottom: var(--border);
}
.sg-swatch__pair span {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.sg-swatch__meta {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3) 0;
}

.sg-swatch__name {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.sg-swatch__use {
  padding: var(--space-2) var(--space-3) var(--space-3);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--ink-tertiary);
}

.sg-type {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-bottom: var(--border);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  .sg-type {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: var(--space-5);
    align-items: baseline;
  }
}

.sg-type__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-tertiary);
}
.sg-type__label b {
  display: block;
  color: var(--ink);
  font-weight: var(--weight-normal);
}

.sg-type__demo {
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sg-ramp {
  display: grid;
  gap: var(--space-2);
}

.sg-ramp__row {
  display: grid;
  grid-template-columns: 8rem 4.5rem minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-tertiary);
}
.sg-ramp__row b {
  color: var(--ink);
  font-weight: var(--weight-normal);
}
.sg-ramp__row span {
  font-variant-numeric: tabular-nums;
}

.sg-ramp__bar {
  height: 0.75rem;
  max-width: 100%;
  background-color: var(--accent);
}

.sg-ramp__bar--rule {
  height: 0.4rem;
  background-color: var(--ink-tertiary);
}

.sg-radius {
  display: grid;
  place-items: center;
  height: var(--space-9);
  border: var(--border-strong);
  background-color: var(--paper-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-secondary);
}

.sg-elevation {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--paper-frame);
}

.sg-elevation__box {
  display: grid;
  place-items: center;
  height: var(--space-9);
  border: var(--border);
  border-radius: var(--radius-md);
  background-color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-secondary);
}

.sg-spec {
  display: grid;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: var(--border);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 52rem) {
  .sg-spec {
    grid-template-columns: minmax(0, 1fr) 15rem;
    gap: var(--space-6);
    align-items: start;
  }
}
.sg-spec > * {
  min-width: 0;
}

.sg-spec__class {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  word-break: break-word;
}

.sg-spec__note {
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
  color: var(--ink-tertiary);
}

.sg-shell {
  min-height: auto;
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-md);
}
.sg-shell .project-rail {
  position: static;
  height: auto;
}

.sg-workspace {
  overflow: hidden;
  border: var(--border);
  border-radius: var(--radius-md);
}
.sg-workspace .code-workspace {
  height: calc(var(--space-10) * 3);
}

.sg-static-menu {
  position: static;
}

.ts-discovery__busy {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--ink-secondary);
}

.ts-discovery__spinner {
  flex: none;
  animation: sync-spin 1.2s linear infinite;
}

.ts-discovery__done {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--positive-text);
}

.ts-discovery__results {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: var(--border);
}

.ts-discovery__heading {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
}

.ts-discovery__title {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-md);
}

.ts-discovery__select-all {
  margin: 0;
  cursor: pointer;
}

.ts-discovery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  padding-top: var(--space-4);
  border-top: var(--border);
  font-size: var(--text-sm);
}

.ts-suggestions {
  margin-top: var(--space-2);
}

.ts-suggestion {
  padding-block: var(--space-4);
  border-top: var(--border);
}

.ts-suggestion__header {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  cursor: pointer;
  list-style: none;
}
.ts-suggestion__header::-webkit-details-marker {
  display: none;
}

.ts-suggestion__chevron {
  flex: none;
  transform: rotate(-90deg);
  transition: transform var(--transition);
}
.ts-suggestion[open] .ts-suggestion__chevron {
  transform: none;
}

.ts-suggestion__count {
  margin-left: auto;
  font-size: var(--text-xs);
}

.ts-suggestion__path {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.ts-suggestion__title {
  font-weight: var(--weight-bold);
}

.ts-suggestion__summary {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
}

.ts-suggestion__checks {
  margin-top: var(--space-3);
}

.ts-check + .ts-check {
  margin-top: var(--space-3);
}

.ts-check__edit {
  margin: var(--space-1) 0 0 calc(var(--space-4) + var(--space-3));
}

.ts-check__toggle {
  font-size: var(--text-xs);
  cursor: pointer;
}

.ts-check__fields {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--paper-sunken);
  border-radius: var(--radius);
}
@media (min-width: 52rem) {
  .ts-check__fields {
    grid-template-columns: 2fr 1fr;
  }
}
.ts-check__fields > .field + .field {
  margin-top: 0;
}

@media (min-width: 52rem) {
  .ts-check__expect {
    grid-column: 1/-1;
  }
}

.ts-check.is-added {
  color: var(--ink-tertiary);
}
.ts-check.is-added .choice {
  cursor: default;
}
.ts-check.is-added .ts-check__toggle {
  display: none;
}

.ts-launch {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-4) var(--space-5);
  background-color: var(--accent-wash);
  border-color: transparent;
}

.ts-launch__title {
  font-size: var(--text-md);
}

.ts-progress {
  height: var(--space-2);
  margin-top: var(--space-3);
  overflow: hidden;
  background-color: var(--paper-sunken-2);
  border-radius: var(--radius-pill);
}

.ts-progress__bar {
  height: 100%;
  background-color: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--transition);
}

.ts-tally {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-4);
}

.ts-tally__passed {
  color: var(--positive-text);
}

.ts-tally__failed {
  color: var(--critical-text);
}

.ts-feed {
  list-style: none;
}

.ts-feed__item {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-top: var(--border);
  font-size: var(--text-sm);
}
.ts-feed__item:first-child {
  border-top: 0;
}

.ts-feed__time {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-tertiary);
}

.ts-evidence {
  list-style: none;
}

.ts-evidence__item + .ts-evidence__item {
  margin-top: var(--space-4);
}

.ts-evidence__image {
  display: block;
  max-width: 100%;
  margin-bottom: var(--space-2);
  border: var(--border);
  border-radius: var(--radius);
}

.ts-report__section + .ts-report__section {
  margin-top: var(--space-4);
}

.ts-report__heading {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin-bottom: var(--space-1);
}

.ts-report__body {
  white-space: pre-line;
}

.ts-prose {
  white-space: pre-line;
}

.ts-spaced {
  margin-top: var(--space-4);
}

.ts-report-table td {
  vertical-align: top;
}

.ts-evidence-cell {
  min-width: 16rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-secondary);
  white-space: pre-line;
}

.ts-run-info dd {
  overflow-wrap: anywhere;
}

.ts-review-note {
  color: var(--caution-text);
  font-weight: var(--weight-bold);
}

.ts-check-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: var(--border);
}
.ts-check-actions form {
  display: inline-flex;
}

.ts-tally__link {
  text-decoration: none;
}
.ts-tally__link:hover, .ts-tally__link:focus-visible {
  text-decoration: underline;
}

.ts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.ts-filters__link {
  color: var(--ink-secondary);
  text-decoration: none;
}
.ts-filters__link:hover, .ts-filters__link:focus-visible {
  text-decoration: underline;
}
.ts-filters__link[aria-current=true] {
  color: var(--ink);
  text-decoration: underline;
}

.ts-report-table .ts-failure-row {
  border-top: 0;
}
.ts-report-table .ts-failure-row > td {
  padding-top: 0;
}

.ts-failure-row .ts-evidence__image {
  max-width: min(100%, 40rem);
}

.ts-avatar {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--positive-wash);
  color: var(--positive-text);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.ts-review-summary {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  text-decoration: none;
}
.ts-review-summary:hover {
  color: var(--ink);
}

.ts-avatars {
  display: inline-flex;
}
.ts-avatars .ts-avatar {
  box-shadow: 0 0 0 2px var(--paper-raised);
}
.ts-avatars .ts-avatar + .ts-avatar {
  margin-left: -0.3rem;
}

.ts-review-heading {
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.ts-reviewers {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
}

.ts-reviewers__item {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  border: var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
}

.ts-comments {
  display: grid;
  gap: var(--space-3);
  list-style: none;
}

.ts-comments__item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.ts-comments__body {
  flex: 1;
  min-width: 0;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  font-size: var(--text-sm);
}

.ts-comments__meta {
  display: flex;
  gap: var(--space-2);
  align-items: baseline;
}

.ts-comments__text {
  margin-top: var(--space-1);
}

.ts-review-flash {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background-color: var(--positive-wash);
  color: var(--positive-text);
  font-size: var(--text-sm);
}

.ts-review-flash--alert {
  background-color: var(--caution-wash);
  color: var(--caution-text);
}

.ts-check-summary {
  padding: var(--space-3) var(--space-4);
  border: var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--paper-sunken);
}

.ts-check-summary__name {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-weight: var(--weight-bold);
}

.ts-check-summary__details {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-3);
  font-size: var(--text-sm);
}
.ts-check-summary__details dt {
  color: var(--ink-tertiary);
}
.ts-check-summary__details dd {
  margin: 0;
}

.ts-design__images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.ts-design__figure {
  margin: 0;
}

.ts-design__frame {
  display: block;
  max-height: 32rem;
  margin-top: var(--space-1);
  overflow-y: auto;
  border: var(--border);
  border-radius: var(--radius);
}
.ts-design__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ts-seen-on {
  margin-top: var(--space-1);
  padding-left: var(--space-4);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.ts-weekdays {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.ts-weekday {
  position: relative;
  cursor: pointer;
}
.ts-weekday input {
  position: absolute;
  opacity: 0;
}
.ts-weekday span {
  display: inline-grid;
  place-items: center;
  min-width: 3.25rem;
  height: var(--control-height-sm);
  padding-inline: var(--space-3);
  border: var(--border);
  border-radius: 999px;
  font-size: var(--text-sm);
}
.ts-weekday input:checked + span {
  border-color: var(--accent);
  background-color: var(--accent);
  color: var(--accent-ink);
}
.ts-weekday input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ts-recipients {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: var(--space-2) var(--space-4);
}
.ts-recipients .choice + .choice {
  margin-top: 0;
}

.ts-schedule-note {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background-color: var(--caution-wash);
  color: var(--caution-text);
  font-size: var(--text-sm);
}

.ts-facts dd + dt {
  margin-top: var(--space-3);
}
.ts-facts dt {
  font-size: var(--text-xs);
  color: var(--ink-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ts-facts dd {
  margin: var(--space-1) 0 0;
}

.ts-schedule-warning {
  color: var(--caution-text);
}

.ts-schedule-alert {
  margin-bottom: var(--space-4);
}

.ts-nowrap {
  flex-wrap: nowrap;
  white-space: nowrap;
}

.ts-steps {
  list-style: none;
}

.ts-steps__item + .ts-steps__item {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: var(--border);
}

.ts-steps__title {
  font-size: var(--text-md);
  font-weight: var(--weight-bold);
}

.ts-command {
  position: relative;
  margin-top: var(--space-2);
}

.ts-command__code {
  margin: 0;
  padding-right: var(--space-9);
  white-space: pre;
}

.ts-command__copy {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
}

.ts-secret {
  padding: var(--space-4);
  background-color: var(--positive-wash);
  border-radius: var(--radius-md);
  color: var(--positive-text);
}

.ts-secret__value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  word-break: break-all;
}

.ts-steps__name {
  max-width: var(--width-narrow);
  flex: 1;
}

.project-sheet:has(> .code-workspace) {
  display: flex;
  min-height: 0;
  padding: 0;
}

@media (min-width: 68rem) {
  .project-shell:has(.code-workspace) {
    height: calc(100dvh - var(--shell-offset, 0px));
  }
}

.project-shell:has(.code-workspace) .project-shell__main {
  min-height: 0;
}

.code-workspace {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
@media (min-width: 68rem) {
  .code-workspace {
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

.code-editor {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.code-editor__bar {
  display: flex;
  flex: none;
  gap: var(--space-2);
  align-items: center;
  min-width: 0;
  height: var(--bar-height);
  padding: 0 var(--space-2) 0 var(--space-4);
  border-bottom: var(--border);
}

.code-editor__title {
  min-width: var(--space-9);
  overflow: hidden;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-normal);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-editor__filename {
  flex: none;
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}
@media (max-width: 51.99rem) {
  .code-editor__filename {
    display: none;
  }
}

.code-editor__scope {
  flex-shrink: 3;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 51.99rem) {
  .code-editor__scope {
    display: none;
  }
}

.code-editor__state {
  min-width: 0;
  margin-left: auto;
}

.code-editor__state-button {
  display: flex;
  max-width: 100%;
  padding: var(--space-1) var(--space-2);
  border: 0;
  border-radius: var(--radius);
  background: none;
  cursor: pointer;
}
.code-editor__state-button:hover {
  background-color: var(--paper-hover);
}
.code-editor__state-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  outline-offset: -2px;
}

.code-editor__status {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  min-width: 0;
  color: var(--ink-tertiary);
  font-size: var(--text-sm);
}
.code-editor__status[data-tone=attention] {
  color: var(--attention-text);
}
.code-editor__status[data-tone=critical] {
  color: var(--critical-text);
}

.code-editor__status-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-editor__tools {
  display: flex;
  flex: none;
  align-items: center;
}

.code-editor__bar .segmented {
  flex: none;
}

.code-editor__form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.code-editor__fallback {
  flex: 1;
  min-height: 60vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.code-editor__mount {
  flex: 1;
  min-height: 60vh;
}
@media (min-width: 68rem) {
  .code-editor__mount {
    min-height: 0;
  }
}

.code-editor__mount .cm-editor {
  height: 100%;
  min-height: 60vh;
  color: var(--ink);
  background-color: var(--paper);
  font-size: var(--text-sm);
}
@media (min-width: 68rem) {
  .code-editor__mount .cm-editor {
    min-height: 0;
  }
}
.code-editor__mount .cm-editor.cm-focused {
  outline: none;
}

.code-editor__mount .cm-scroller {
  font-family: var(--font-mono);
  line-height: var(--leading-loose);
}

.code-editor__mount .cm-content {
  padding-block: var(--space-3);
}

.code-editor__mount .cm-line {
  padding-inline: var(--space-4);
}

.code-editor__mount .cm-gutters {
  border-right: 0;
  background-color: var(--paper);
  color: var(--ink-tertiary);
}

.code-editor__mount .cm-lineNumbers .cm-gutterElement {
  padding: 0 var(--space-1) 0 var(--space-4);
  opacity: 0.7;
}

.code-editor__mount .cm-activeLine,
.code-editor__mount .cm-activeLineGutter {
  background-color: var(--paper-hover);
}

.code-editor__mount .cm-selectionBackground,
.code-editor__mount .cm-focused .cm-selectionBackground {
  background-color: var(--accent-wash);
}

.code-editor__mount .cm-cursor {
  border-left-color: var(--ink);
}

.code-editor__mount .cm-tooltip,
.code-editor__mount .cm-panels {
  background-color: var(--paper);
  border: var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-3);
}

.code-editor__mount .cm-panels {
  border-radius: 0;
  box-shadow: none;
}

.code-editor__mount .cm-panels input,
.code-editor__mount .cm-panels button {
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.code-syntax__comment {
  color: var(--syntax-comment);
  font-style: italic;
}

.code-syntax__string {
  color: var(--syntax-string);
}

.code-syntax__keyword {
  color: var(--syntax-keyword);
}

.code-syntax__number {
  color: var(--syntax-number);
}

.code-syntax__function {
  color: var(--syntax-function);
}

.code-facts {
  padding: var(--space-3);
}

.code-facts__row {
  display: grid;
  grid-template-columns: var(--space-9) minmax(0, 1fr);
  gap: var(--space-2);
  padding-block: var(--space-1);
  font-size: var(--text-sm);
}
.code-facts__row dt {
  color: var(--ink-tertiary);
}
.code-facts__row dd {
  overflow-wrap: anywhere;
}

.code-facts__hint {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: var(--border);
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}

.code-shortcuts {
  max-height: calc(100dvh - var(--space-10));
  overflow-y: auto;
}

.code-shortcuts__list {
  padding: 0 var(--space-3) var(--space-1);
}

.code-shortcuts__row {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding-block: calc(var(--space-1) / 2);
  font-size: var(--text-sm);
}
.code-shortcuts__row dd {
  display: flex;
  flex: none;
  gap: var(--space-1);
}

.code-rail__file .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-rail__file .status-dot {
  margin-left: auto;
}

.code-file-status {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
}

.code-dependencies {
  list-style: none;
  margin-bottom: var(--space-3);
}

.code-dependencies__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: var(--border);
}

.code-dependencies__url {
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.code-danger {
  margin-top: var(--space-6);
}

.code-snapshot {
  background-color: var(--paper);
  border: var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-4);
  font-size: var(--text-sm);
}

.code-languages {
  display: flex;
  gap: var(--space-5);
}
.code-languages .choice + .choice {
  margin-top: 0;
}

.code-pages {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius);
}

.code-pages__header {
  display: flex;
  gap: var(--space-3);
  align-items: baseline;
  justify-content: space-between;
}
.code-pages__header legend {
  float: left;
  padding: 0;
  margin: 0;
}

.code-pages__summary {
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}

.code-pages__list {
  max-height: 20rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0 calc(var(--space-2) * -1);
}

.code-pages__empty {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-sm);
}

.code-page {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2);
  border-radius: var(--radius);
  cursor: pointer;
}
.code-page:hover {
  background: var(--paper-hover);
}
.code-page:has(:checked) .code-page__title {
  font-weight: var(--weight-bold);
}
.code-page[hidden] {
  display: none;
}
.code-page .choice__control {
  margin-top: 0;
}

.code-page--global {
  margin: 0 calc(var(--space-2) * -1);
  padding-bottom: var(--space-3);
  border-bottom: var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.code-page__title {
  min-width: 0;
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}

.code-page__hint {
  display: block;
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
  font-weight: var(--weight-normal);
}

.code-settings__facts {
  margin-bottom: var(--space-4);
}

.code-settings__publish {
  display: none;
  flex-direction: column;
  padding: var(--space-5) 0;
  gap: var(--space-3);
}

.code-ai {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-top: var(--border);
  background-color: var(--paper);
}
@media (min-width: 68rem) {
  .code-ai {
    width: var(--width-panel);
    border-top: 0;
    border-left: var(--border);
  }
}

.code-ai__bar {
  display: flex;
  flex: none;
  gap: var(--space-2);
  align-items: center;
  height: var(--bar-height);
  padding: 0 var(--space-2) 0 var(--space-4);
  border-bottom: var(--border);
}
.code-ai__bar .icon {
  color: var(--ink-secondary);
}

.code-ai__title {
  margin-right: auto;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-normal);
}

.code-ai__log {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) !important;
  padding-bottom: 160px !important;
  min-height: calc(var(--space-10) * 2);
  max-height: calc(var(--space-10) * 4);
  padding: var(--space-4) var(--space-3);
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (min-width: 68rem) {
  .code-ai__log {
    max-height: none;
    min-height: 0;
  }
}

.code-ai__message {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 92%;
}

.code-ai__message--user {
  align-self: flex-end;
}

.code-ai__message--assistant {
  align-self: flex-start;
}

.code-ai__body {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
  overflow-wrap: anywhere;
}
.code-ai__body > * + * {
  margin-top: var(--space-2);
}
.code-ai__body code {
  background-color: var(--paper);
  font-size: var(--text-xs);
}

.code-ai__message--user .code-ai__body {
  border-end-end-radius: var(--radius-sm);
  background-color: var(--paper-sunken-2);
  color: var(--ink);
}

.code-ai__message--assistant .code-ai__body {
  border-end-start-radius: var(--radius-sm);
  background-color: var(--paper-sunken);
}

.code-ai__thinking {
  color: var(--ink-tertiary);
}

.code-ai__code {
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--paper);
  overflow: hidden;
}
.code-ai__code pre {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-3);
  border: 0;
  border-radius: 0;
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.code-ai__code-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(var(--space-1) / 2) var(--space-1) calc(var(--space-1) / 2) var(--space-3);
  border-bottom: var(--border);
}
.code-ai__code-bar .mono {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

.code-ai__proposal {
  padding: var(--space-3);
  border: var(--border);
  border-radius: var(--radius);
  background-color: var(--paper);
  font-size: var(--text-sm);
}
.code-ai__proposal summary {
  font-size: var(--text-xs);
  cursor: pointer;
}

.code-ai__file {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(var(--space-10) * 2);
  margin-top: var(--space-2);
  padding: var(--space-3);
  border: 0;
  background-color: var(--paper-sunken);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  line-height: var(--leading-snug);
}

.code-ai__apply {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.code-ai__applied,
.code-ai__context {
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
}

.code-ai__starters {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: 0 var(--space-3) var(--space-3);
}

.code-ai__starter {
  padding: var(--space-2) var(--space-3);
  border: var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.code-ai__starter:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.code-ai__starter:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.code-ai__form {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: var(--space-2);
  background: rgba(255, 255, 255, 0.5);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-top: 1px solid var(--border);
  backdrop-filter: blur(4px);
  padding: var(--space-2);
}

.code-ai__composer {
  display: flex;
  gap: var(--space-2);
  align-items: flex-end;
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--paper-sunken);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.code-ai__composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

.code-ai__input {
  flex: 1;
  min-width: 0;
  max-height: 12rem;
  padding: var(--space-2) 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.5;
  resize: none;
  overflow-y: auto;
}
.code-ai__input:focus {
  outline: none;
}
.code-ai__input::placeholder {
  color: var(--ink-tertiary);
}

.code-ai__send {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: opacity var(--transition);
}
.code-ai__send:hover {
  opacity: 0.9;
}
.code-ai__send:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.code-ai__presets {
  display: none;
  gap: var(--space-2);
}

.code-ai__preset {
  padding: var(--space-1) var(--space-3);
  border: var(--border);
  border-radius: 999px;
  background: none;
  color: var(--ink-secondary);
  font-size: var(--text-xs);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.code-ai__preset:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.code-ai__allowance {
  margin: 0;
  color: var(--ink-tertiary);
  font-size: var(--text-xs);
  text-align: center;
}

.code-ai__confirm {
  width: min(18rem, 100vw - var(--space-6));
  margin: 0;
  padding: var(--space-4);
  border: var(--border);
  border-radius: var(--radius-lg);
  background-color: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.code-ai__confirm:popover-open {
  display: grid;
  gap: var(--space-2);
}
@supports not (position-area: top) {
  .code-ai__confirm {
    inset: 0;
    margin: auto;
    height: fit-content;
  }
}
@supports (position-area: top) {
  .code-ai__confirm {
    position-area: top span-left;
    position-try-fallbacks: flip-block;
    margin-bottom: var(--space-2);
  }
}

.code-ai__confirm-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
}

.code-ai__confirm-body {
  margin: 0;
  color: var(--ink-secondary);
  font-size: var(--text-sm);
}

.code-ai__confirm-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  margin-top: var(--space-2);
}

.code-ai__confirm-form {
  display: contents;
}

.settings-card__frame {
  display: block;
}

.scope-list {
  margin: var(--space-2) 0 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
}
.scope-list li + li {
  margin-top: var(--space-1);
}
.scope-list code {
  margin-right: var(--space-2);
}

.endpoints-banner {
  margin-bottom: var(--space-4);
}

.endpoint-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.endpoint-list__item {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-top: var(--border);
}

.copy-row__value.is-off {
  color: var(--ink-tertiary);
}

.sort-link {
  color: inherit;
  text-decoration: none;
}
.sort-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.group-empty {
  margin-top: var(--space-4);
}

.group-list {
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.group-list__item {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: var(--border);
}

.group-list__head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.group-list__actions {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
}

.group-list__members {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.settings-card__disclosure {
  margin-block: var(--space-4);
  font-size: var(--text-sm);
}
.settings-card__disclosure summary {
  color: var(--ink-secondary);
  cursor: pointer;
}

.settings-card__prompt {
  max-height: 16rem;
  margin-top: var(--space-2);
  padding: var(--space-3);
  overflow: auto;
  border-radius: var(--radius);
  background-color: var(--paper-sunken);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: pre-wrap;
}

.data-intro {
  margin-bottom: var(--space-4);
  max-width: var(--measure);
}

.weight-form {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}

.weight-form__input {
  width: 5.5rem;
  text-align: right;
}

.keyword-form {
  margin-bottom: var(--space-5);
}

.preview-toolbar {
  margin-bottom: var(--space-3);
}

.preview-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  max-width: var(--width-text);
  margin-bottom: var(--space-4);
}
.preview-form .select {
  width: auto;
}

.preview-form__query {
  flex: 1 1 18rem;
}

.preview-results {
  display: block;
  max-width: var(--width-text);
}

.preview-answer {
  margin-bottom: var(--space-3);
}

.result__blurb {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  color: var(--accent-text);
}

.result mark {
  padding-inline: calc(var(--space-1) / 2);
  border-radius: var(--radius-sm);
  background-color: var(--caution-wash);
  color: inherit;
}
