/* Ventic Design System · one authored source for applications and presentation assets.
 *
 * Sections, in cascade order:
 *   1. Fonts           self-hosted variable families (OFL)
 *   2. Tokens          colour, type, space and motion; light, graphite and accents
 *   3. Base            element defaults
 *   4. Components      v-* classes rendered by the React components in src/components
 *   5. Layout helpers  a deliberately small set of composition primitives
 *   6. Application     app-* shell and page patterns used by the portal
 *   7. Presentations   marketing, documentation, auth, Keycloak and references
 */

/* 1 · Fonts ------------------------------------------------------------- */
@font-face {
  font-family: "Geist Variable";
  src: url("/historical-assets/fonts/geist-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono Variable";
  src: url("/historical-assets/fonts/geist-mono-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Variable";
  src: url("/historical-assets/fonts/archivo-latin-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/historical-assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/historical-assets/fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/historical-assets/fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

/* 2 · Tokens ------------------------------------------------------------ */
:root {
  color-scheme: light;
  --brand-plate: #0e0f11;
  --code-surface: #101216;
  --code-ink: #e6e4df;
  --code-line: #32373d;
  --paper: #f5f4f0;
  --surface: #ffffff;
  --surface-raised: #fbfaf7;
  --surface-inset: #eeede8;
  --surface-hover: #f1f0eb;
  --surface-selected: #fff2db;
  --ink: #202329;
  --ink-strong: #111318;
  --ink-muted: #5d6066;
  --ink-faint: #74777d;
  --line: #d5d6d3;
  --line-soft: #e5e5e0;
  --line-strong: #b9bbb7;
  --accent: #f5a83f;
  --accent-content: #16181b;
  --accent-ink: #875000;
  --accent-soft: #fff2db;
  --accent-line: #ecc98f;
  --provider-accent: #f5a83f;
  --provider-accent-content: #16181b;
  --success: #146c52;
  --success-soft: #e7f4ed;
  --success-line: #a9d6c0;
  --warn: #875000;
  --warn-soft: #fff2db;
  --warn-line: #ecc98f;
  --down: #ac3039;
  --down-soft: #fcebed;
  --down-line: #eab1b6;
  --info: #285b98;
  --info-soft: #eaf1fa;
  --info-line: #b3cbe8;
  --violet: #6d4a8c;
  --violet-soft: #f3edf8;
  --violet-line: #d3c1e3;
  --focus: #80500b;
  --overlay: #0e0f11a6;
  --kind-chat: #82551e;
  --kind-embedding: #356597;
  --kind-image: #775398;
  --kind-audio: #277361;
  --chart-1: #a46108;
  --chart-2: #26785f;
  --chart-3: #426ca0;
  --chart-4: #8860a0;
  --chart-grid: #e5e5e0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-small: 2px;
  --radius-control: 3px;
  --radius-panel: 4px;
  --radius-round: 999px;
  --shadow-panel: 0 1px 2px #10121608;
  --shadow-float: 0 12px 36px #10121629;
  --space: 0.25rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --font-ui: "Geist Variable", "Hanken Grotesk", system-ui, sans-serif;
  --font-display: "Archivo Variable", "Geist Variable", system-ui, sans-serif;
  --font-number: "Geist Mono Variable", "IBM Plex Mono", ui-monospace, monospace;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-md: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;
  --text-4xl: 2.5rem;
  --measure: 72ch;
  --content-width: 1440px;
  --marketing-width: 1240px;
  --control-height: 2.25rem;
  --control-height-sm: 1.875rem;
  --sidebar-width: 15.5rem;
  --topbar-height: 3.25rem;
  --motion: 120ms;
  --background: var(--paper);
  --foreground: var(--ink);
  --card: var(--surface);
  --primary: var(--accent);
  --color-muted-foreground: var(--ink-muted);
  --color-border: var(--line);
  --sidebar: #0a0b0d;
  --sidebar-ink: #b7b5ae;
  --sidebar-ink-strong: #f2f0eb;
  --sidebar-line: #262a2f;
  --sidebar-hover: #16181b;
  --sidebar-selected: #1d2126;
  --navigation-selected: var(--accent-soft);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e0f11;
  --surface: #16181b;
  --surface-raised: #1d2126;
  --surface-inset: #101216;
  --surface-hover: #1a1d21;
  --surface-selected: #1d2126;
  --ink: #e6e4df;
  --ink-strong: #f2f0eb;
  --ink-muted: #b7b5ae;
  --ink-faint: #8c8a84;
  --line: #32373d;
  --line-soft: #262a2f;
  --line-strong: #3e444b;
  --accent-ink: #f5a83f;
  --accent-soft: #30261a;
  --accent-line: #4e3c22;
  --success: #35cfa4;
  --success-soft: #152d27;
  --success-line: #1f4a3f;
  --warn: #f5bc65;
  --warn-soft: #30271b;
  --warn-line: #4e3c22;
  --down: #ff8c95;
  --down-soft: #321f23;
  --down-line: #53303a;
  --info: #8cbbf2;
  --info-soft: #1b2a3d;
  --info-line: #2a4361;
  --violet: #c39fe1;
  --violet-soft: #2a2233;
  --violet-line: #43355a;
  --focus: #f5a83f;
  --overlay: #000000b3;
  --shadow-panel: inset 0 1px 0 #ffffff05;
  --shadow-float: 0 16px 48px #0008;
  --kind-chat: #efb460;
  --kind-embedding: #8cbbf2;
  --kind-image: #c39fe1;
  --kind-audio: #65c8ad;
  --chart-1: #f5a83f;
  --chart-2: #35cfa4;
  --chart-3: #8cbbf2;
  --chart-4: #c39fe1;
  --chart-grid: #262a2f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    color-scheme: dark;
    --paper: #0e0f11;
    --surface: #16181b;
    --surface-raised: #1d2126;
    --surface-inset: #101216;
    --surface-hover: #1a1d21;
    --surface-selected: #1d2126;
    --ink: #e6e4df;
    --ink-strong: #f2f0eb;
    --ink-muted: #b7b5ae;
    --ink-faint: #8c8a84;
    --line: #32373d;
    --line-soft: #262a2f;
    --line-strong: #3e444b;
    --accent-ink: #f5a83f;
    --accent-soft: #30261a;
    --accent-line: #4e3c22;
    --success: #35cfa4;
    --success-soft: #152d27;
    --success-line: #1f4a3f;
    --warn: #f5bc65;
    --warn-soft: #30271b;
    --warn-line: #4e3c22;
    --down: #ff8c95;
    --down-soft: #321f23;
    --down-line: #53303a;
    --info: #8cbbf2;
    --info-soft: #1b2a3d;
    --info-line: #2a4361;
    --violet: #c39fe1;
    --violet-soft: #2a2233;
    --violet-line: #43355a;
    --focus: #f5a83f;
    --overlay: #000000b3;
    --shadow-panel: inset 0 1px 0 #ffffff05;
    --shadow-float: 0 16px 48px #0008;
    --kind-chat: #efb460;
    --kind-embedding: #8cbbf2;
    --kind-image: #c39fe1;
    --kind-audio: #65c8ad;
    --chart-1: #f5a83f;
    --chart-2: #35cfa4;
    --chart-3: #8cbbf2;
    --chart-4: #c39fe1;
    --chart-grid: #262a2f;
  }
}
:root[data-accent="blue"] {
  --accent: #3d86ff;
  --accent-content: #ffffff;
  --accent-ink: #1f5fd6;
  --accent-soft: #e8f0fe;
  --accent-line: #b3cbe8;
}
:root[data-theme="dark"][data-accent="blue"] {
  --accent-ink: #8cbbf2;
  --accent-soft: #1b2a3d;
  --accent-line: #2a4361;
  --focus: #8cbbf2;
}
:root[data-accent="jade"] {
  --accent: #35cfa4;
  --accent-content: #0e0f11;
  --accent-ink: #146c52;
  --accent-soft: #e7f4ed;
  --accent-line: #a9d6c0;
}
:root[data-theme="dark"][data-accent="jade"] {
  --accent-ink: #35cfa4;
  --accent-soft: #152d27;
  --accent-line: #1f4a3f;
  --focus: #35cfa4;
}
:root[data-accent="violet"] {
  --accent: #c39fe1;
  --accent-content: #0e0f11;
  --accent-ink: #6d4a8c;
  --accent-soft: #f3edf8;
  --accent-line: #d3c1e3;
}
:root[data-theme="dark"][data-accent="violet"] {
  --accent-ink: #c39fe1;
  --accent-soft: #2a2233;
  --accent-line: #43355a;
  --focus: #c39fe1;
}
:root[data-accent="provider"] {
  --accent: var(--provider-accent);
  --accent-content: var(--provider-accent-content);
}

/* 3 · Base -------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
textarea {
  resize: vertical;
}
[role="button"] {
  cursor: pointer;
}
[aria-disabled="true"] {
  cursor: not-allowed;
}
a {
  color: var(--accent-ink);
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--ink-strong);
}
[tabindex] {
  outline-offset: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.2;
  font-weight: 650;
}
h1 {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  font-weight: 700;
}
h2 {
  font-size: var(--text-lg);
}
h3 {
  font-size: var(--text-md);
}
h4 {
  font-size: var(--text-sm);
}
img {
  max-width: 100%;
}
svg {
  flex-shrink: 0;
}
a > svg {
  display: inline-block;
  vertical-align: -0.125em;
}
pre {
  margin: 0;
  overflow: auto;
  font-family: var(--font-number);
  font-size: var(--text-xs);
  line-height: 1.65;
}
code {
  font-family: var(--font-number);
  font-size: 0.92em;
}
::selection {
  background: var(--accent);
  color: var(--accent-content);
}
table {
  border-collapse: collapse;
}
.v-number,
.v-mono,
.v-tabular-nums {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum", "zero";
}
.v-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.v-muted {
  color: var(--ink-muted);
}
.v-faint {
  color: var(--ink-faint);
}
.v-error {
  color: var(--down);
}
.v-eyebrow,
.v-label {
  display: block;
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}
.v-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.v-wrap-anywhere {
  overflow-wrap: anywhere;
}

/* 4 · Components -------------------------------------------------------- */

/* Button */
.v-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--control-height);
  padding: 0 0.875rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--motion),
    border-color var(--motion),
    color var(--motion);
}
.v-button:hover {
  background: var(--surface-hover);
  color: var(--ink-strong);
  border-color: var(--line-strong);
}
.v-button svg {
  width: 1rem;
  height: 1rem;
}
.v-button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-content);
  font-weight: 650;
}
.v-button--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-content);
  filter: brightness(1.08);
}
.v-button--outline {
  background: transparent;
}
.v-button--secondary {
  background: var(--surface-inset);
  border-color: var(--line);
}
.v-button--ghost {
  background: transparent;
  border-color: transparent;
}
.v-button--ghost:hover {
  background: var(--surface-hover);
  border-color: transparent;
}
.v-button--link {
  min-height: auto;
  padding: 0;
  background: none;
  border: 0;
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.v-button--link:hover {
  background: none;
  color: var(--ink-strong);
}
.v-button--destructive {
  background: transparent;
  border-color: var(--down-line);
  color: var(--down);
}
.v-button--destructive:hover {
  background: var(--down-soft);
  border-color: var(--down-line);
  color: var(--down);
}
.v-button[aria-disabled="true"],
.v-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: none;
}
.v-button--size-xs,
.v-button--size-sm {
  min-height: var(--control-height-sm);
  padding: 0 0.625rem;
  font-size: var(--text-xs);
}
.v-button--size-lg {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  font-size: var(--text-md);
}
.v-button--size-icon,
.v-button--size-icon-sm,
.v-button--size-icon-lg {
  padding: 0;
  width: var(--control-height);
}
.v-button--size-icon-sm {
  width: var(--control-height-sm);
  min-height: var(--control-height-sm);
}
.v-button--size-icon-lg {
  width: 2.75rem;
  min-height: 2.75rem;
}
.v-button--block {
  width: 100%;
}
.v-button__spinner {
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: v-spin 0.7s linear infinite;
}
@keyframes v-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Inputs */
.v-input,
.v-textarea,
.v-select {
  width: 100%;
  min-height: var(--control-height);
  padding: 0.375rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-inset);
  color: var(--ink);
  font-size: var(--text-sm);
  transition: border-color var(--motion);
}
.v-input--mono {
  font-family: var(--font-number);
}
.v-input::placeholder,
.v-textarea::placeholder {
  color: var(--ink-faint);
}
.v-input:focus,
.v-textarea:focus,
.v-select:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
.v-input[aria-invalid="true"],
.v-textarea[aria-invalid="true"],
.v-select[aria-invalid="true"] {
  border-color: var(--down);
}
.v-input:disabled,
.v-textarea:disabled,
.v-select:disabled,
.v-input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}
.v-textarea {
  min-height: 5rem;
  line-height: 1.55;
}
.v-select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%),
    linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 0.95rem) 50%,
    calc(100% - 0.65rem) 50%;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}
.v-input-group {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface-inset);
}
.v-input-group:focus-within {
  border-color: var(--focus);
  box-shadow: 0 0 0 1px var(--focus);
}
.v-input-group > .v-input {
  border: 0;
  box-shadow: none;
  background: transparent;
  min-width: 0;
}
.v-input-group__addon {
  display: inline-flex;
  align-items: center;
  padding: 0 0.625rem;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-family: var(--font-number);
}
.v-checkbox,
.v-radio {
  appearance: none;
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0.125rem 0 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}
.v-radio {
  border-radius: 50%;
}
.v-checkbox:checked,
.v-checkbox:indeterminate,
.v-radio:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.v-checkbox:checked::after {
  content: "";
  width: 0.55rem;
  height: 0.3rem;
  border: 2px solid var(--accent-content);
  border-top: 0;
  border-right: 0;
  transform: translateY(-1px) rotate(-45deg);
}
.v-checkbox:indeterminate::after {
  content: "";
  width: 0.5rem;
  height: 2px;
  background: var(--accent-content);
}
.v-radio:checked::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--accent-content);
}
.v-switch {
  appearance: none;
  flex: none;
  position: relative;
  width: 2.125rem;
  height: 1.125rem;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-round);
  background: var(--surface-inset);
  cursor: pointer;
  transition: background var(--motion);
}
.v-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform var(--motion);
}
.v-switch:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.v-switch:checked::after {
  background: var(--accent-content);
  transform: translateX(1rem);
}
.v-checkbox:disabled,
.v-radio:disabled,
.v-switch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.v-choice {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--text-sm);
  cursor: pointer;
}
.v-choice--block {
  display: flex;
}
.v-choice__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.v-choice__hint {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}

/* Field */
.v-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}
.v-field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.v-field__required {
  color: var(--accent-ink);
}
.v-field__hint {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}
.v-field__error {
  color: var(--down);
  font-size: var(--text-xs);
}
.v-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.v-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr));
  gap: 1rem;
}
.v-form-grid > .v-field--wide {
  grid-column: 1 / -1;
}
.v-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.v-fieldset > legend {
  padding: 0;
  margin-bottom: 0.375rem;
}

/* Segmented control */
.v-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  overflow: hidden;
  background: var(--surface-inset);
}
.v-segmented__item {
  min-height: var(--control-height-sm);
  padding: 0 0.75rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 550;
  cursor: pointer;
}
.v-segmented__item:last-child {
  border-right: 0;
}
.v-segmented__item[aria-pressed="true"],
.v-segmented__item[aria-checked="true"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* Panel (and the Card alias kept for presentation pages) */
.v-panel,
.v-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.v-panel--accent {
  border-color: var(--accent-line);
}
.v-panel--danger {
  border-color: var(--down-line);
}
.v-panel__header,
.v-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
}
.v-panel__title,
.v-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.v-panel__subtitle,
.v-card__description {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}
.v-panel__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.v-panel__body,
.v-card__content {
  padding: 1rem;
}
.v-panel__body--flush {
  padding: 0;
}
.v-panel__footer,
.v-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}

/* Badge, status */
.v-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  max-width: 100%;
  padding: 0.0625rem 0.4375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-badge--accent {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-ink);
}
.v-badge--success {
  background: var(--success-soft);
  border-color: var(--success-line);
  color: var(--success);
}
.v-badge--warning {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}
.v-badge--danger,
.v-badge--destructive {
  background: var(--down-soft);
  border-color: var(--down-line);
  color: var(--down);
}
.v-badge--info {
  background: var(--info-soft);
  border-color: var(--info-line);
  color: var(--info);
}
.v-badge--violet {
  background: var(--violet-soft);
  border-color: var(--violet-line);
  color: var(--violet);
}
.v-badge--plain {
  text-transform: none;
  letter-spacing: 0;
}
.v-dot {
  display: inline-block;
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--ink-faint);
}
.v-dot--success {
  background: var(--success);
}
.v-dot--warning {
  background: var(--warn);
}
.v-dot--danger {
  background: var(--down);
}
.v-dot--info {
  background: var(--info);
}
.v-dot--accent {
  background: var(--accent);
}
.v-dot--pulse {
  animation: v-pulse 1.6s ease-in-out infinite;
}
@keyframes v-pulse {
  50% {
    opacity: 0.35;
  }
}
.v-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
}
.v-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3125rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-content);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 700;
}
.v-count--danger {
  background: var(--down);
  color: #16181b;
}
.v-kbd {
  display: inline-flex;
  align-items: center;
  padding: 0 0.375rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  line-height: 1.5;
}

/* Stat grid */
.v-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.v-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.875rem 1rem;
  background: var(--surface);
}
.v-stat__value {
  font-family: var(--font-number);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-strong);
  overflow-wrap: anywhere;
}
.v-stat__value small {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  letter-spacing: 0;
}
.v-stat__meta {
  font-family: var(--font-number);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.v-stat__meta[data-tone="success"] {
  color: var(--success);
}
.v-stat__meta[data-tone="warning"] {
  color: var(--warn);
}
.v-stat__meta[data-tone="danger"] {
  color: var(--down);
}

/* Description list */
.v-dl {
  display: grid;
  grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr);
  gap: 0.5rem 1rem;
  font-size: var(--text-sm);
}
.v-dl > dt {
  color: var(--ink-muted);
}
.v-dl > dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-strong);
}
.v-dl--boxed {
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.v-dl--boxed > dt,
.v-dl--boxed > dd {
  padding: 0.4375rem 0.625rem;
  background: var(--surface);
}

/* Tabs */
.v-tabs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.v-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem;
  border-bottom: 1px solid var(--line);
}
.v-tabs__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.v-tabs__trigger:hover {
  color: var(--ink-strong);
}
.v-tabs__trigger[aria-selected="true"],
.v-tabs__trigger[aria-current="page"] {
  color: var(--ink-strong);
  border-bottom-color: var(--accent);
}
.v-tabs__panel {
  min-width: 0;
}

/* Vertical tabs: grouped sections in a side rail. */
.v-tabs--vertical {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
}
.v-tabs__rail {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  position: sticky;
  top: 1rem;
}
.v-tabs__group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.v-tabs__heading {
  padding: 0 0.75rem;
  color: var(--ink-faint);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v-tabs--vertical .v-tabs__list {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 0;
  border-left: 1px solid var(--line);
}
.v-tabs--vertical .v-tabs__trigger {
  justify-content: flex-start;
  min-height: 2rem;
  margin: 0 0 0 -1px;
  border-bottom: 0;
  border-left: 2px solid transparent;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
}
.v-tabs--vertical .v-tabs__trigger:hover {
  background: var(--surface-hover);
}
.v-tabs--vertical .v-tabs__trigger[aria-selected="true"] {
  border-left-color: var(--accent);
  background: var(--surface-selected);
}
@media (max-width: 800px) {
  .v-tabs--vertical {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .v-tabs__rail {
    position: static;
    gap: 0.625rem;
  }
  .v-tabs--vertical .v-tabs__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-left: 0;
  }
  .v-tabs--vertical .v-tabs__trigger {
    min-height: 1.875rem;
    margin: 0;
    padding: 0 0.625rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
  }
  .v-tabs--vertical .v-tabs__trigger[aria-selected="true"] {
    border-color: var(--accent);
  }
}

/* Tables */
.v-table-scroll {
  width: 100%;
  overflow-x: auto;
}
.v-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.v-table th,
.v-table td {
  padding: 0.5625rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.v-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding-block: 0.5rem;
  border-bottom-color: var(--line);
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.v-table th[data-numeric],
.v-table td[data-numeric] {
  text-align: right;
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}
.v-table td[data-nowrap] {
  white-space: nowrap;
}
.v-table tbody tr:hover > td {
  background: var(--surface-hover);
}
.v-table tbody tr[data-clickable] {
  cursor: pointer;
}
.v-table tbody tr[aria-selected="true"] > td {
  background: var(--surface-selected);
}
.v-table tbody tr[aria-selected="true"] > td:first-child {
  box-shadow: inset 2px 0 0 var(--accent);
}
.v-table tbody tr:last-child > td {
  border-bottom: 0;
}
.v-table__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.v-table__sort svg {
  width: 0.75rem;
  height: 0.75rem;
}
.v-table__sort[data-active] {
  color: var(--ink-strong);
}
.v-table__select {
  width: 2.5rem;
}
.v-table__empty {
  padding: 2.5rem 1rem !important;
  text-align: center !important;
  color: var(--ink-muted);
}
.v-table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--line);
}
.v-table-toolbar > .v-input,
.v-table-toolbar > .v-input-group {
  flex: 1 1 14rem;
  max-width: 22rem;
}
.v-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
}
.v-pagination .v-select {
  width: auto;
  min-height: var(--control-height-sm);
  padding-block: 0;
}

/* Overlays: dialog, sheet, popover, menu, tooltip, toast */
.v-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.v-dialog--lg {
  width: min(48rem, calc(100vw - 2rem));
}
.v-dialog--xl {
  width: min(64rem, calc(100vw - 2rem));
}
.v-dialog::backdrop {
  background: var(--overlay);
}
.v-dialog__surface {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 2rem);
}
.v-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}
.v-dialog__title {
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--ink-strong);
}
.v-dialog__description {
  margin-top: 0.25rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.v-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem;
}
.v-dialog__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
}
.v-dialog:not([open]),
.v-popover:not(:popover-open) {
  display: none !important;
}
.v-sheet {
  margin: 0 0 0 auto;
  width: min(30rem, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border-width: 0 0 0 1px;
}
.v-sheet--left {
  margin: 0 auto 0 0;
  border-width: 0 1px 0 0;
  width: min(18rem, 100vw);
}
.v-sheet--wide {
  width: min(44rem, 100vw);
}
.v-sheet .v-dialog__surface {
  height: 100%;
  max-height: none;
}
.v-popover {
  position: fixed;
  inset: auto;
  margin: 0;
  min-width: 12rem;
  max-width: min(24rem, calc(100vw - 1rem));
  max-height: min(28rem, calc(100dvh - 1rem));
  overflow: auto;
  padding: 0.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-float);
}
.v-popover--padded {
  padding: 0.75rem;
}
.v-menu-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2rem;
  padding: 0 0.625rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.v-menu-item:hover,
.v-menu-item:focus-visible {
  background: var(--surface-hover);
  color: var(--ink-strong);
  outline: none;
}
.v-menu-item--danger {
  color: var(--down);
}
.v-menu-item svg {
  width: 1rem;
  height: 1rem;
  color: var(--ink-muted);
}
.v-menu-label {
  padding: 0.5rem 0.625rem 0.25rem;
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.v-separator {
  height: 1px;
  margin: 0.25rem 0;
  border: 0;
  background: var(--line);
}
.v-tooltip {
  position: relative;
  display: inline-flex;
}
.v-tooltip__content {
  position: absolute;
  z-index: 60;
  bottom: calc(100% + 6px);
  left: 50%;
  translate: -50% 0;
  width: max-content;
  max-width: 18rem;
  padding: 0.375rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font-size: var(--text-xs);
  box-shadow: var(--shadow-float);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--motion);
}
.v-tooltip:hover > .v-tooltip__content,
.v-tooltip:focus-within > .v-tooltip__content {
  opacity: 1;
}
.v-toaster {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}
.v-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line-strong);
  border-left-width: 3px;
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  box-shadow: var(--shadow-float);
  font-size: var(--text-sm);
  pointer-events: auto;
  animation: v-toast-in 160ms ease-out;
}
.v-toast[data-tone="success"] {
  border-left-color: var(--success);
}
.v-toast[data-tone="error"] {
  border-left-color: var(--down);
}
.v-toast[data-tone="info"] {
  border-left-color: var(--info);
}
.v-toast__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
@keyframes v-toast-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* Feedback: alert, empty, skeleton, spinner, progress */
.v-alert,
.v-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--radius-panel);
  background: var(--surface);
  font-size: var(--text-sm);
}
.v-alert > svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
}
.v-alert__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.v-alert__title {
  font-weight: 650;
  color: var(--ink-strong);
}
.v-alert--info {
  border-color: var(--info-line);
  border-left-color: var(--info);
  background: var(--info-soft);
}
.v-alert--info > svg {
  color: var(--info);
}
.v-alert--success {
  border-color: var(--success-line);
  border-left-color: var(--success);
  background: var(--success-soft);
}
.v-alert--success > svg {
  color: var(--success);
}
.v-alert--warning {
  border-color: var(--warn-line);
  border-left-color: var(--warn);
  background: var(--warn-soft);
}
.v-alert--warning > svg {
  color: var(--warn);
}
.v-alert--error {
  border-color: var(--down-line);
  border-left-color: var(--down);
  background: var(--down-soft);
}
.v-alert--error > svg {
  color: var(--down);
}
.v-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-muted);
}
.v-empty > svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--ink-faint);
}
.v-empty__title {
  color: var(--ink-strong);
  font-weight: 650;
}
.v-empty__actions {
  margin-top: 0.5rem;
}
.v-skeleton {
  display: block;
  min-height: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-inset), var(--surface-raised), var(--surface-inset));
  background-size: 200% 100%;
  animation: v-shimmer 1.4s ease-in-out infinite;
}
@keyframes v-shimmer {
  to {
    background-position: -200% 0;
  }
}
.v-spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: v-spin 0.8s linear infinite;
}
.v-loading {
  display: grid;
  place-items: center;
  min-height: 10rem;
}
.v-meter {
  position: relative;
  height: 0.375rem;
  overflow: hidden;
  background: var(--line-soft);
}
.v-meter__fill {
  height: 100%;
  background: var(--accent);
  transition: width 240ms ease;
}
.v-meter[data-tone="success"] .v-meter__fill {
  background: var(--success);
}
.v-meter[data-tone="warning"] .v-meter__fill {
  background: var(--warn);
}
.v-meter[data-tone="danger"] .v-meter__fill {
  background: var(--down);
}
.v-meter[data-tone="info"] .v-meter__fill {
  background: var(--info);
}
.v-stacked-bar {
  display: flex;
  height: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: repeating-linear-gradient(
    135deg,
    var(--surface-raised) 0 6px,
    var(--line-soft) 6px 12px
  );
}

/* Code */
.v-code {
  position: relative;
  border: 1px solid var(--code-line);
  border-radius: var(--radius-panel);
  background: var(--code-surface);
  color: var(--code-ink);
}
.v-code pre {
  padding: 0.875rem 6.5rem 0.875rem 1rem;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.v-code__copy {
  position: absolute;
  top: 0.625rem;
  right: 0.375rem;
}
.v-code .v-button {
  background: #1d2126;
  color: #e6e4df;
  border-color: #3e444b;
}

/* Steps and timeline */
.v-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.v-steps__item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.625rem 0.875rem;
  background: var(--surface);
}
.v-steps__item[data-state="current"] {
  background: var(--surface-raised);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.v-steps__index {
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  color: var(--ink-faint);
}
.v-steps__item[data-state="done"] .v-steps__index {
  color: var(--success);
}
.v-steps__item[data-state="current"] .v-steps__index {
  color: var(--accent-ink);
}
.v-steps__item[data-state="failed"] .v-steps__index {
  color: var(--down);
}
.v-steps__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-strong);
}
.v-log {
  margin: 0;
  padding: 0.75rem 1rem;
  list-style: none;
  background: var(--code-surface);
  color: var(--code-ink);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  line-height: 1.8;
  max-height: 22rem;
  overflow: auto;
}
.v-log__line {
  display: grid;
  grid-template-columns: 4.5rem 3.5rem minmax(0, 1fr);
  gap: 0.75rem;
}
.v-log__time {
  color: #8c8a84;
}
.v-log__level[data-level="info"] {
  color: #8cbbf2;
}
.v-log__level[data-level="ok"] {
  color: #35cfa4;
}
.v-log__level[data-level="warn"] {
  color: #f5bc65;
}
.v-log__level[data-level="error"] {
  color: #ff8c95;
}
.v-feed {
  margin: 0;
  padding: 0;
  list-style: none;
}
.v-feed__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}
.v-feed__time {
  flex: none;
  width: 3.25rem;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  padding-top: 0.0625rem;
}

/* Command palette */
.v-command {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.v-command__search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid var(--line);
}
.v-command__search svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent-ink);
}
.v-command__search input {
  flex: 1 1 auto;
  min-height: 2.25rem;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink-strong);
  font-size: var(--text-base);
}
.v-command__list {
  max-height: min(26rem, 60dvh);
  overflow: auto;
  padding: 0.25rem 0;
}
.v-command__group-label {
  padding: 0.625rem 1rem 0.25rem;
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.v-command__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.375rem;
  padding: 0 1rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
}
.v-command__item[data-selected="true"] {
  background: var(--surface-selected);
  color: var(--ink-strong);
  box-shadow: inset 2px 0 0 var(--accent);
}
.v-command__item svg {
  width: 1rem;
  height: 1rem;
  color: var(--ink-muted);
}
.v-command__meta {
  margin-left: auto;
  color: var(--ink-faint);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.v-command__footer {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--surface-inset);
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
}

/* Charts: native SVG only */
.v-chart {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 0;
}
.v-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.v-chart__grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}
.v-chart__axis {
  fill: var(--ink-muted);
  font-family: var(--font-number);
  font-size: 10px;
}
.v-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.v-chart__legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.v-chart__swatch {
  width: 0.5rem;
  height: 0.5rem;
}
.v-chart__data {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.v-chart__data summary {
  cursor: pointer;
}

/* 5 · Layout helpers ---------------------------------------------------- */
.v-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 1rem);
  min-width: 0;
}
.v-stack--sm {
  --stack-gap: 0.5rem;
}
.v-stack--lg {
  --stack-gap: 1.5rem;
}
.v-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.5rem);
  min-width: 0;
}
.v-cluster--between {
  justify-content: space-between;
}
.v-cluster--end {
  justify-content: flex-end;
}
.v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 18rem), 100%), 1fr));
  gap: var(--grid-gap, 1rem);
  min-width: 0;
}
.v-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}
.v-split > .v-split__main {
  flex: 3 1 36rem;
  min-width: 0;
}
.v-split > .v-split__aside {
  flex: 2 1 22rem;
  min-width: 0;
}
.v-split > .v-split__rail {
  flex: 1 1 13rem;
  min-width: 0;
}
.v-split--even > * {
  flex: 1 1 28rem;
  min-width: 0;
}

/* 6 · Application ------------------------------------------------------- */
[data-app="portal"], [data-app="portal"] body {
  overscroll-behavior-y: none;
}
[data-app="portal"] body {
  font-size: var(--text-md);
}
.app-skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
}
.app-skip:focus {
  top: 1rem;
}
.app-shell {
  height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
}
.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-width: 0;
  background: var(--sidebar);
  color: var(--sidebar-ink);
  border-right: 1px solid var(--sidebar-line);
}
.app-sidebar a {
  text-decoration: none;
}
.app-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1rem 0.875rem;
  border-bottom: 1px solid var(--sidebar-line);
}
.app-sidebar__brand img {
  display: block;
  max-height: 1.75rem;
  max-width: 10rem;
}
.app-sidebar__context {
  padding: 0.25rem 0.375rem;
  border: 1px solid #4e3c22;
  border-radius: var(--radius-sm);
  color: #f5a83f;
  font-family: var(--font-number);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-workspace {
  padding: 0.75rem 0.75rem 0.25rem;
}
.app-workspace__trigger {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.375rem 0.625rem;
  border: 1px solid #32373d;
  border-radius: var(--radius-control);
  background: #16181b;
  color: #e6e4df;
  text-align: left;
  cursor: pointer;
}
.app-workspace__trigger:hover {
  border-color: #3e444b;
}
.app-workspace__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-sm);
  background: #30261a;
  color: #f5a83f;
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 700;
}
.app-workspace__name {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.25;
}
.app-workspace__role {
  display: block;
  color: #b7b5ae;
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: 0.25rem 0.75rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: #32373d transparent;
}
.app-nav__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.app-nav__group + .app-nav__heading {
  margin-top: 0.75rem;
}
.app-nav__heading {
  padding: 0.5rem 0.625rem 0.25rem;
  color: #8c8a84;
  font-family: var(--font-number);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.app-nav__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.125rem;
  padding: 0 0.625rem;
  border-left: 2px solid transparent;
  border-radius: var(--radius-control);
  color: #b7b5ae;
  font-size: var(--text-sm);
  font-weight: 500;
}
.app-nav__link svg {
  width: 1rem;
  height: 1rem;
}
.app-nav__link:hover {
  background: var(--sidebar-hover);
  color: #f2f0eb;
}
.app-nav__link[aria-current="page"] {
  background: var(--sidebar-selected);
  color: #f2f0eb;
  border-left-color: var(--accent);
}
.app-nav__label {
  flex: 1 1 auto;
  min-width: 0;
}
.app-nav__new {
  padding: 0 0.25rem;
  border: 1px solid #4e3c22;
  border-radius: var(--radius-sm);
  color: #f5a83f;
  font-family: var(--font-number);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.app-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--sidebar-line);
  color: #8c8a84;
  font-size: var(--text-xs);
}
.app-sidebar__footer a {
  color: #b7b5ae;
}
.app-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior-y: none;
}
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--topbar-height);
  padding: 0.5rem 1.5rem;
  background: var(--surface-inset);
  border-bottom: 1px solid var(--line);
}
.app-topbar[data-console] {
  border-bottom-color: var(--accent);
}
.app-topbar__menu {
  display: none;
}
.app-crumbs {
  display: flex;
  flex: 1 1 12rem;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-crumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.app-crumbs li + li::before {
  content: "/";
  color: var(--ink-faint);
}
.app-crumbs a {
  color: inherit;
  text-decoration: none;
}
.app-crumbs [aria-current="page"] {
  color: var(--ink-strong);
}
.app-search {
  flex: 0 1 22rem;
  justify-content: space-between;
  color: var(--ink-muted);
  background: var(--surface);
}
.app-main {
  flex: 1 1 auto;
  min-width: 0;
}
.app-main:focus {
  outline: none;
}
.app-banner {
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: 1rem 1.5rem 0;
}
.app-banner:empty {
  display: none;
}
.app-page {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 88rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 2.5rem;
}
.app-page--narrow {
  max-width: 56rem;
}
.app-page--full {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  padding: 0;
}
/* Full-height tools (chat): the shell becomes a fixed viewport and the page fills what is left. */
.app-shell:has(.app-page--full) {
  height: 100dvh;
}
.app-shell:has(.app-page--full) .app-frame {
  height: 100dvh;
  min-height: 0;
}
.app-shell:has(.app-page--full) .app-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.app-page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.25rem;
}
.app-page-header__text {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
  max-width: 52rem;
}
.app-page-header__description {
  color: var(--ink-muted);
}
.app-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  color: var(--ink-faint);
  font-family: var(--font-number);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.app-footer a {
  color: inherit;
}
.app-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--warn-line);
  background: var(--warn-soft);
  color: var(--ink);
  font-size: var(--text-sm);
}
.app-list-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 0.6875rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  text-decoration: none;
}
.app-list-row:last-child {
  border-bottom: 0;
}
a.app-list-row:hover,
button.app-list-row:hover {
  background: var(--surface-hover);
  color: var(--ink);
  cursor: pointer;
}
.app-list-row[aria-current="true"],
.app-list-row[aria-pressed="true"] {
  background: var(--surface-selected);
  box-shadow: inset 2px 0 0 var(--accent);
}
.app-list-row__main {
  display: flex;
  flex: 1 1 14rem;
  flex-direction: column;
  min-width: 0;
}
.app-list-row__title {
  color: var(--ink-strong);
  font-weight: 600;
}
.app-list-row__meta {
  color: var(--ink-muted);
  font-size: var(--text-xs);
}
/* Rows that ask for a decision carry the tone of their tag on the leading edge. */
.app-list-row[data-tone="warning"] {
  box-shadow: inset 3px 0 0 var(--warn);
}
.app-list-row[data-tone="danger"] {
  box-shadow: inset 3px 0 0 var(--down);
}
.app-list-row[data-tone="info"] {
  box-shadow: inset 3px 0 0 var(--info);
}
.app-list-row__ref {
  flex: none;
  min-width: 4.5rem;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
}
.app-list-row__cta {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.375rem;
  color: var(--accent-ink);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Compact legend of actions under a table. */
.app-legend {
  flex: 1 1 100%;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.5rem 1.5rem;
  margin: 0;
  font-size: var(--text-xs);
}
.app-legend__item dt {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--ink-strong);
  font-weight: 600;
}
.app-legend__item dd {
  margin: 0.125rem 0 0;
  color: var(--ink-muted);
}

.app-facets {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.5rem;
}
.app-facet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.125rem;
  padding: 0 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-sm);
  text-align: left;
  cursor: pointer;
}
.app-facet:hover {
  background: var(--surface-hover);
}
.app-facet[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-ink);
}
.app-facet__count {
  font-family: var(--font-number);
  font-size: var(--text-2xs);
}
.app-matrix td,
.app-matrix th {
  text-align: center;
}
.app-matrix td:first-child,
.app-matrix th:first-child {
  text-align: left;
}
.app-cell {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}
.app-cell[data-state="allow"] {
  background: var(--success-soft);
  border-color: var(--success-line);
  color: var(--success);
}
.app-cell[data-state="deny"] {
  background: var(--down-soft);
  border-color: var(--down-line);
  color: var(--down);
}
.app-cell:disabled {
  cursor: default;
}
.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-width: 0;
}
.app-chips > .v-badge {
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-auth {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    radial-gradient(circle at 20% 0%, var(--accent-soft), transparent 40%);
}
.app-auth__panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(30rem, 100%);
}
.app-auth__panel--wide {
  width: min(48rem, 100%);
}
.app-auth__brand img {
  max-height: 2.25rem;
}
.app-chat {
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.app-chat__rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--surface-inset);
}
.app-chat__conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.app-chat__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.app-chat__message {
  max-width: 48rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.app-chat__message[data-role="user"] {
  align-self: flex-end;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.app-chat__composer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background: var(--surface-inset);
}
@media (max-width: 1023px) {
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-shell > .app-sidebar {
    display: none;
  }
  .app-topbar__menu {
    display: inline-flex;
  }
  .app-topbar {
    padding-inline: 1rem;
  }
  .app-search {
    order: 3;
    flex: 1 1 100%;
  }
  .app-page {
    padding: 1rem 1rem 2rem;
  }
  .app-chat {
    grid-template-columns: minmax(0, 1fr);
  }
  .app-chat__rail {
    max-height: 14rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
.v-sheet .app-sidebar {
  position: static;
  height: 100%;
  border-right: 0;
}

/* 7 · Presentations ----------------------------------------------------- */
/* Brand, platform attribution and appearance controls. */
.v-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
}
.v-brand__image {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.v-brand--large .v-brand__image {
  height: 3.25rem;
}
.v-brand__ventic {
  background: var(--brand-plate);
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-small);
}
.v-attribution {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--ink-muted);
  font-size: var(--text-xs);
}
.v-attribution img {
  height: 1rem;
  padding: 0.125rem 0.25rem;
  box-sizing: content-box;
  background: var(--brand-plate);
  border-radius: var(--radius-small);
}
.v-appearance {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v-appearance label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.v-appearance svg {
  width: 1rem;
  height: 1rem;
}
.v-appearance select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  min-height: 2.5rem;
  font-size: var(--text-sm);
  padding: 0.375rem;
  max-width: 8rem;
}
.v-brand--on-dark .v-logo-light { display: none !important; }
.v-brand--on-dark .v-logo-dark { display: block !important; }

/* Provider marketing: the portal's tokens, panels and controls on the light paper. */
.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.site-main {
  flex: 1 1 auto;
}
.site-wrap {
  width: min(100%, var(--marketing-width));
  padding-inline: 2rem;
  margin-inline: auto;
}
.site-skip {
  position: absolute;
  left: -10000px;
}
.site-skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--surface);
  padding: 1rem;
}
.site-section {
  padding-block: 4rem;
}
.site-section > * + * {
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  min-height: 4.5rem;
}
.site-header .v-brand {
  max-width: 14rem;
}
.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  align-self: stretch;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-inline: 0.75rem;
  color: var(--ink-muted);
  font-size: var(--text-md);
  font-weight: 550;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--ink-strong);
}
.site-nav a[aria-current] {
  color: var(--ink-strong);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.site-language {
  display: inline-flex;
  align-items: center;
  min-height: var(--control-height);
  padding-inline: 0.625rem;
  border-radius: var(--radius-control);
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}
.site-language:hover {
  background: var(--surface-hover);
  color: var(--ink-strong);
}
.site-menu {
  display: none;
}

/* Page openings */
.site-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.site-eyebrow::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  background: var(--accent);
}
.site-hero,
.site-intro {
  border-bottom: 1px solid var(--line);
}
.site-hero h1,
.site-intro h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 18ch;
}
.site-hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(28rem, 100%), 1fr));
  align-items: center;
  gap: 3.5rem;
  padding-block: 5rem 4rem;
}
.site-hero__copy {
  display: grid;
  gap: 1.5rem;
  align-content: start;
  min-width: 0;
}
.site-intro__inner {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  padding-block: 4.5rem 3.5rem;
}
.site-lead {
  max-width: 48ch;
  color: var(--ink-muted);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}
.site-narrow {
  width: min(100%, 30rem);
}

/* Hero product panel */
.site-product {
  box-shadow: var(--shadow-float);
}
.site-product .v-panel__body {
  display: grid;
  gap: 1rem;
}
.site-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.site-flow span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--ink-strong);
  font-size: var(--text-sm);
  font-weight: 550;
}
.site-flow svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.site-flow span svg {
  color: var(--accent-ink);
}
.site-product .v-code pre {
  overflow-x: auto;
  font-family: var(--font-number);
  font-size: var(--text-xs);
  line-height: 1.7;
}

/* Bands, tiles */
.site-band {
  border-top: 1px solid var(--line);
}
.site-band--raised {
  background: var(--surface-raised);
}
.site-band__inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 5rem;
}
.site-band__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 3rem;
}
.site-band__text {
  display: grid;
  gap: 0.875rem;
  max-width: 46rem;
}
.site-title {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.site-stack > * + * {
  margin-top: 0;
}
.site-assurances-wrap {
  padding-block: 3rem 5rem;
}
.site-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--line);
}
.site-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  min-width: 0;
  padding: 1.75rem 1.5rem 2rem;
  background: var(--surface);
}
.site-tile h3 {
  font-size: var(--text-xl);
  line-height: 1.25;
}
.site-tile p {
  flex: 1;
  margin: 0;
}
.site-tile--row {
  flex-direction: row;
  gap: 0.875rem;
  padding: 1.125rem 1.25rem;
}
.site-tile--row > svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: var(--accent-ink);
}
.site-tile--row > div {
  display: grid;
  gap: 0.25rem;
}
.site-tile--row strong {
  color: var(--ink-strong);
  font-size: var(--text-base);
  font-weight: 600;
}
.site-tile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.site-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.site-index {
  font-family: var(--font-number);
  font-size: var(--text-xs);
}

/* Platform */
.site-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  padding-block: 3rem 5rem;
}
.site-toc {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex: 1 1 14rem;
  flex-direction: column;
  max-width: 17rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.site-toc .v-eyebrow {
  padding: 0.75rem 1rem 0.5rem;
}
.site-toc a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding-inline: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}
.site-toc a:hover {
  background: var(--surface-hover);
}
.site-toc a[aria-current] {
  background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent);
  color: var(--ink-strong);
  font-weight: 600;
}
.site-toc .site-index {
  color: var(--ink-faint);
}
.site-sections {
  display: grid;
  flex: 999 1 34rem;
  gap: 1.5rem;
  min-width: 0;
}
.site-sections > .v-panel {
  scroll-margin-top: 6rem;
}
.site-section-body {
  display: grid;
  gap: 1.25rem;
}
.site-section-body .site-lead {
  max-width: 62ch;
  font-size: var(--text-base);
  line-height: 1.6;
}
.site-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Pricing */
.site-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
  gap: 1rem;
}
.site-price {
  margin: 0 0 0.75rem;
  color: var(--ink-strong);
  font-family: var(--font-number);
  font-size: var(--text-4xl);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.site-price small {
  color: var(--ink-muted);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0;
}
.site-rates {
  display: grid;
  gap: 0.75rem;
  max-width: 80ch;
}
.site-rates h3 {
  margin-top: 0.75rem;
}
.site-table-note {
  display: block;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
  font-weight: 400;
}
.site-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-ink);
  font-weight: 550;
}
.site-more svg {
  width: 1rem;
  height: 1rem;
}
.site-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}
.site-cta__inner > div:first-child {
  display: grid;
  gap: 0.625rem;
  max-width: 40rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-inset);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  padding-block: 3.5rem 2rem;
}
.site-footer__about {
  display: grid;
  align-content: start;
  gap: 1rem;
}
.site-footer__about p {
  max-width: 32ch;
  margin: 0;
  color: var(--ink-muted);
}
.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.site-footer__column .v-eyebrow {
  padding-bottom: 0.5rem;
}
.site-footer__column a {
  padding-block: 0.25rem;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.site-footer__column a:hover {
  color: var(--ink-strong);
  text-decoration: underline;
}
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid var(--line);
}
.site-footer__bar p {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: var(--text-xs);
}
@media (max-width: 1050px) {
  .site-header__inner {
    gap: 0.5rem 1rem;
  }
}
@media (max-width: 900px) {
  .site-toc {
    position: static;
    flex-basis: 100%;
    max-width: none;
  }
}
@media (max-width: 800px) {
  .site-wrap {
    padding-inline: 1.25rem;
  }
  .site-menu {
    display: inline-flex;
  }
  .site-header__inner {
    padding-block: 0.75rem;
  }
  .site-nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-cta-link {
    display: none;
  }
  .site-hero__inner {
    gap: 2rem;
    padding-block: 3rem 2.5rem;
  }
  .site-intro__inner {
    padding-block: 3rem 2.5rem;
  }
  .site-band__inner {
    padding-block: 3rem;
  }
  .site-assurances-wrap {
    padding-block: 2rem 3rem;
  }
  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}
.v-telemetry-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}
.v-telemetry-table {
  overflow: auto;
  max-height: 30rem;
}
.v-telemetry-table td {
  max-width: 32rem;
  overflow-wrap: anywhere;
}
.v-telemetry-table pre {
  white-space: pre-wrap;
}
.v-trace-timeline {
  display: grid;
  gap: 0.5rem;
}
.v-trace-timeline summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
}
.v-trace-timeline svg {
  width: 100%;
  height: 1rem;
}
.v-trace-timeline dl > div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  padding: 0.5rem;
}
.v-trace-timeline dd {
  margin: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 1280px) {
  .v-telemetry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .v-xl-col-span-2 {
    grid-column: span 2;
  }
}
/* Documentation: the same design system, optimized for reading. */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.docs-header__label {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.docs-header > .v-actions {
  margin-left: auto;
}
.docs-header .v-brand {
  max-width: 13rem;
}
.docs-header kbd {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.docs-menu {
  display: none;
}
.docs-layout {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr) 13rem;
  max-width: 1600px;
  margin: auto;
}
.docs-sidebar {
  position: sticky;
  top: 5rem;
  align-self: start;
  height: calc(100dvh - 5rem);
  overflow: auto;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--line-soft);
}
.docs-sidebar details {
  margin-block: 1rem;
}
.docs-sidebar summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.5rem;
}
.docs-sidebar nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ink-muted);
  border-radius: var(--radius-control);
}
.docs-sidebar nav a[aria-current] {
  background: var(--accent-soft);
  color: var(--ink-strong);
  font-weight: 600;
}
.docs-sidebar nav a:hover {
  background: var(--surface-raised);
}
.docs-sidebar .v-attribution {
  margin: 1rem 0.75rem;
}
.docs-home-link {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}
.docs-home-link svg {
  width: 1rem;
  height: 1rem;
}
.docs-portal-link {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.docs-content {
  padding: 2.5rem;
  min-width: 0;
}
.docs-prose {
  max-width: 80ch;
  margin: auto;
  overflow-wrap: anywhere;
}
.docs-prose h1 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}
.docs-prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.docs-prose h3 {
  font-size: 1.125rem;
  margin: 1.5rem 0 0.75rem;
}
.docs-prose p {
  margin-block: 1rem;
}
.docs-prose li {
  margin-block: 0.375rem;
}
.docs-prose table {
  font-size: var(--text-sm);
  border-collapse: collapse;
  max-width: 100%;
  display: block;
  overflow: auto;
}
.docs-prose td,
.docs-prose th {
  border: 1px solid var(--line);
  padding: 0.625rem;
  text-align: left;
  vertical-align: top;
  min-width: 6rem;
}
.docs-prose th {
  background: var(--surface-inset);
}
.docs-prose code {
  font-size: 0.85em;
}
.docs-prose pre {
  margin-block: 1rem;
}
.docs-prose blockquote {
  border-left: 3px solid var(--accent-ink);
  padding-left: 1rem;
  margin-inline: 0;
  color: var(--ink-muted);
}
.docs-prose details {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 0.75rem;
  margin-block: 0.75rem;
  background: var(--surface);
}
.docs-prose summary {
  cursor: pointer;
  font-weight: 600;
}
.docs-outline {
  position: sticky;
  top: 5rem;
  align-self: start;
  max-height: calc(100dvh - 5rem);
  overflow: auto;
  padding: 2rem 1rem;
}
.docs-outline a {
  display: block;
  margin-block: 0.75rem;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  text-decoration: none;
}
.docs-home-hero {
  padding-bottom: 2rem;
}
.docs-home-hero h1 {
  margin-top: 1rem;
}
.docs-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.docs-home-grid .v-card {
  padding: 1.25rem;
}
.docs-home-grid h2 {
  border: 0;
  padding: 0;
  margin: 0;
  font-size: var(--text-lg);
}
.docs-home-grid p {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.docs-home-grid a {
  font-size: var(--text-sm);
}
.docs-search-results {
  display: grid;
  max-height: 60dvh;
  overflow: auto;
  margin-top: 1rem;
}
.docs-search-results > a {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.docs-search-results span {
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.docs-article-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.docs-api-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 1rem;
  margin-block: 1.5rem;
}
.docs-api-filters label {
  font-size: var(--text-sm);
}
.api-schema {
  font-size: var(--text-sm);
  min-width: 0;
}
.api-constraints > div {
  display: flex;
  gap: 1rem;
  margin-block: 0.5rem;
}
.api-constraints dd {
  margin: 0;
}
.docs-walkthrough {
  border: 1px solid var(--line);
  background: var(--surface-raised);
  padding: 1.25rem;
  border-radius: var(--radius-panel);
  margin-block: 1.5rem;
}
.docs-walkthrough figcaption {
  font-weight: 600;
}
.docs-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-block: 1rem;
}
.docs-flow > span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-sm);
}
.docs-flow strong {
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-control);
}
.docs-flow svg {
  width: 1rem;
  height: 1rem;
}
.docs-walkthrough ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}
.docs-diagram {
  margin-block: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  overflow: hidden;
}
.docs-diagram figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--line-soft);
}
.docs-diagram figcaption strong {
  color: var(--ink-strong);
}
.docs-diagram figcaption span {
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.docs-diagram__scroll {
  overflow-x: auto;
  padding: 0.5rem;
  font-family: var(--font-ui);
}
.docs-diagram__scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.docs-diagram__scroll > div {
  margin-inline: auto;
}
.docs-diagram__svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-ui);
}
.docs-diagram__text {
  border-top: 1px solid var(--line-soft);
  padding: 0.5rem 1.125rem;
  font-size: var(--text-sm);
}
.docs-diagram__text summary {
  cursor: pointer;
  color: var(--ink-muted);
}
.docs-diagram__text ul,
.docs-diagram__text ol {
  margin: 0.5rem 0 0.25rem;
  padding-left: 1.25rem;
}
@media print {
  .docs-diagram__text {
    display: none;
  }
}
.docs-policy-scopes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-block: 1rem;
}
.docs-integrations {
  margin-block: 1.5rem;
}
@media (max-width: 1200px) {
  .docs-layout {
    grid-template-columns: 15rem minmax(0, 1fr);
  }
  .docs-outline {
    display: none;
  }
}
@media (max-width: 800px) {
  .docs-layout {
    display: block;
  }
  .docs-menu {
    display: inline-flex;
  }
  .docs-sidebar {
    display: none;
    position: relative;
    top: 0;
    height: auto;
  }
  .docs-sidebar.is-open {
    display: block;
  }
  .docs-header {
    padding: 1rem;
    gap: 0.5rem;
    flex-wrap: wrap;
  }
  .docs-header__label,
  .docs-header kbd {
    display: none;
  }
  .docs-header .v-appearance {
    display: none;
  }
  .docs-content {
    padding: 1.5rem;
  }
  .docs-home-grid {
    grid-template-columns: 1fr;
  }
  .docs-policy-scopes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-api-filters {
    grid-template-columns: 1fr;
  }
}
@media print {
  .docs-header,
  .docs-sidebar,
  .docs-outline,
  .docs-article-footer,
  .v-appearance,
  .site-header,
  .site-footer {
    display: none !important;
  }
  .docs-layout {
    display: block;
  }
  .docs-content {
    padding: 0;
  }
  .docs-prose {
    max-width: none;
  }
  :root {
    --paper: white;
    --surface: white;
    --ink: black;
    --ink-muted: #444;
    --ink-strong: black;
    --line: #bbb;
    color-scheme: light;
  }
  a {
    color: inherit;
  }
  pre,
  table,
  figure {
    break-inside: avoid;
  }
  .docs-prose table {
    display: table;
  }
}
/* AUTH-BEGIN: standalone recovery presentation; generated into the auth asset bundle. */
.session-layout {
  width: 100%;
  max-width: 28rem;
  margin: auto;
}
.session-page {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 1.5rem;
}
.session-layout > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.session-layout .brand {
  font-size: 1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.session-layout nav {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
}
.session-layout nav a {
  color: var(--ink-muted);
}
.session-layout nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}
.session-layout main {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}
.session-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-control);
  background: var(--success-soft);
  color: var(--success);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.session-layout h1 {
  font-size: 1.75rem;
  line-height: 1.2;
  margin: 0;
}
.session-layout p {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 1rem 0 1.75rem;
}
.session-layout .button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--accent-content);
  text-decoration: none;
  font-weight: 600;
}
.session-layout a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .session-page {
    padding: 1.25rem;
  }
  .session-layout main {
    padding: 1.5rem;
  }
}
/* AUTH-END */
/* KEYCLOAK-BEGIN: native identity markup, shared theme tokens. */
.login-pf body,
body.pf-v5-c-login {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
}
#kc-header-wrapper {
  background: none;
  padding: 0;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
#kc-header-wrapper img {
  width: auto;
  max-width: min(300px, 100%);
  height: 48px;
  object-fit: contain;
  margin: 0 auto;
}
#kc-header-wrapper::before, #kc-header-wrapper::after { content: none !important; }
/* The header owns one white mark; inherited branding must not add another. */
#kc-header-wrapper img { display: block; }
#kc-header-wrapper img[data-white-logo] { background: #101418; padding: 12px 18px; height: 72px; border-radius: 4px; }
:root {
  --keycloak-logo-url: none !important;
  --keycloak-bg-logo-url: none !important;
  --keycloak-card-top-color: var(--accent);
  --pf-v5-global--BackgroundColor--100: var(--surface);
  --pf-v5-global--BackgroundColor--200: var(--surface-inset);
  --pf-v5-global--Color--100: var(--ink);
  --pf-v5-global--Color--200: var(--ink-muted);
  --pf-v5-global--BorderColor--100: var(--line);
  --pf-global--primary-color--100: var(--accent);
  --pf-global--active-color--100: var(--accent);
  --pf-v5-global--primary-color--100: var(--accent);
  --pf-v5-global--active-color--100: var(--accent);
}
.pf-v5-c-login { background: var(--paper); color: var(--ink); }
.pf-v5-c-login__main-header,
.pf-v5-c-login__main-body,
.pf-v5-c-login__main-footer { background: var(--surface); color: var(--ink); }
.pf-v5-c-login__main-header h1,
.pf-v5-c-form__label { color: var(--ink); }
.pf-v5-c-form-control > input,
.pf-v5-c-form-control > select {
  background: var(--surface-inset);
  color: var(--ink);
}
.pf-v5-c-form-control::after { border-bottom-color: var(--line); }
.pf-v5-c-form-control:focus-within::after { border-bottom-color: var(--accent); }
.pf-v5-c-button.pf-m-control {
  background: var(--surface-inset);
  color: var(--ink);
}
.pf-v5-c-form-control__toggle-icon { color: var(--ink); }
.login-pf-page .card-pf,
.pf-v5-c-login__main {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-panel);
}
.login-pf-page input,
.pf-v5-c-form-control {
  background: var(--surface-inset);
  color: var(--ink);
  border-color: var(--line);
  border-radius: var(--radius-control);
  min-height: 2.75rem;
}
#kc-login,
.pf-v5-c-button.pf-m-primary {
  background: var(--accent);
  color: var(--accent-content);
  border-radius: var(--radius-control);
  border-color: var(--accent-ink);
}
.login-pf-page a,
.pf-v5-c-login a {
  color: var(--accent-ink);
}
.login-pf-page :focus-visible,
.pf-v5-c-login :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
/* KEYCLOAK-END */
/* Internal component reference, excluded from public web artifacts. */
.v-reference {
  max-width: var(--marketing-width);
  margin: auto;
  padding: 2rem;
}
.v-reference__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
}
.v-reference > section {
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}
.v-reference > section > h2 {
  margin-bottom: 1.5rem;
}
.v-reference > section > p {
  margin-top: 1.5rem;
}
.v-reference__tokens {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.v-reference__tokens > div {
  display: grid;
  gap: 0.5rem;
}
.v-reference__tokens span {
  display: block;
  height: 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}
.v-reference__tokens code {
  font-size: var(--text-xs);
}
.v-reference__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (max-width: 700px) {
  .v-reference {
    padding: 1rem;
  }
  .v-reference__header {
    flex-wrap: wrap;
  }
  .v-reference__grid {
    grid-template-columns: 1fr;
  }
  .v-reference__tokens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
html:has(meta[name="ventic-demo"]) body::before {
  content: "Ambiente dimostrativo · dati sintetici / Demonstration · synthetic data";
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.375rem 1rem;
  background: var(--warn-soft);
  color: var(--warn);
  border-bottom: 1px solid var(--line);
  font-size: var(--text-xs);
  text-align: center;
}

.v-wrap-anywhere {
  overflow-wrap: anywhere;
}
.v-container {
  container-type: inline-size;
}
.settings-fields {
  column-gap: 1.5rem;
  row-gap: 1rem;
}
@media (min-width: 1280px) {
  .v-xl-hidden {
    display: none;
  }
}
@media (min-width: 640px) {
  .v-sm-col-span-2 {
    grid-column: span 2;
  }
}

.v-brand .v-logo-dark {
  display: none;
}
:root[data-theme="dark"] .v-logo-light {
  display: none;
}
:root[data-theme="dark"] .v-logo-dark {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .v-logo-light {
    display: none;
  }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .v-logo-dark {
    display: block;
  }
}

/* Native closed overlays must remain hidden even when composed with layout helpers. */
.v-dialog:not([open]),
.v-popover:not(:popover-open) {
  display: none !important;
}
.v-modal-panel > .v-dialog__body {
  display: flex;
  flex-direction: column;
  padding: 0;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
}
.v-dialog__title {
  padding-right: 2rem;
}
.v-tabular-nums {
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
}

/* Explicit local simulator only; injected by its Vite development plugin. */
.v-sandbox-banner {
  position: relative;
  z-index: 100;
  padding: var(--space-2, 0.5rem) var(--space-4, 1rem);
  background: var(--surface);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 0.75rem;
  text-align: center;
}
.v-sandbox-banner a { color: var(--ink); text-decoration: underline; }

/* Native service replicas in the explicit local sandbox. */
.demo-native { max-width: 76rem; margin: auto; padding: 1rem; color: var(--ink); }
.demo-native__header, .demo-native__nav, .demo-native__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.demo-native__header { justify-content: space-between; }
.demo-native__panel { padding: 1rem; margin-block: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.demo-native__panel h2 { margin-bottom: 0.75rem; }
.demo-native__auth { max-width: 32rem; margin: 2rem auto; }
.demo-native form { display: grid; gap: 0.75rem; }
.demo-native label { display: grid; gap: 0.375rem; margin-block: 0.5rem; }
.demo-native select { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem; }
.demo-native table { width: 100%; border-collapse: collapse; }
.demo-native th, .demo-native td { padding: 0.5rem; border-bottom: 1px solid var(--line); text-align: start; }
.demo-native code { overflow-wrap: anywhere; }
.demo-chat { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr); gap: 1rem; }
.demo-chat__sidebar { display: flex; flex-direction: column; gap: 0.5rem; padding-right: 1rem; border-right: 1px solid var(--line); }
.demo-chat__conversation { min-width: 0; }
.demo-chat__messages { min-height: 12rem; max-height: 52vh; overflow: auto; }
.demo-chat__text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .demo-chat { grid-template-columns: minmax(0, 1fr); }
  .demo-chat__sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1rem; max-height: 12rem; overflow: auto; }
  .demo-native__panel { overflow-x: auto; }
}

:where(.v-select-trigger) { width: 100%; }
.v-table th button { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; text-align: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 0.375rem; }

/* Compact shared page rhythms and telemetry; explicit sizes never override variants. */
.telemetry-panel-content { min-height: 16rem; }
.telemetry-panel-content .v-chart { max-width: 100%; }
.v-table th button { color: var(--ink-muted); background: transparent; border: 0; padding: 0; }
.portal-sidebar a { text-decoration: none; }
.site-features a, .site-assurances a { text-decoration: none; }
@media (max-width: 640px) { .telemetry-panel-content { min-height: 12rem; } }
.overview-chart .v-chart > svg { max-height: 14.5rem; }
.overview-chart .v-chart details { margin-top: 0.5rem; }
.overview-quick-link { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.overview-quick-link:last-child { border-bottom: 0; }
.overview-quick-link svg { color: var(--accent-ink); }
.navigation-link { min-height: 2.75rem; margin-block: 0.125rem; }
.site-footer a[href="mailto:"], .site-footer a[data-provider-legal][href=""] { display: none; }
@media (max-width: 639px) {
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-metric { padding: 0.875rem; }
  .overview-metric > .v-text-2xl { font-size: 1.25rem; overflow-wrap: anywhere; }
  .overview-metric > div { min-height: 2.5rem; align-items: start; }
  .site-header__inner { min-height: 4.5rem; flex-wrap: nowrap; gap: 0.625rem; }
  .site-header .v-brand__image { max-width: 8rem; max-height: 2.25rem; }
  .site-header__actions { gap: 0.5rem; margin-left: auto; }
  .site-header__actions > button:not(.site-menu) { display: none; }
  .site-language > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .site-language::after { content: attr(data-short); }
  .site-flow { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 0.5rem; }
  .site-flow > svg { transform: rotate(90deg); }
  .site-flow > span { width: 100%; }
}

/* English commercial platform guide: shared tokens, original Ventic identity. */
.guide-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 5rem;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.guide-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}
.guide-brand img {
  width: 6.5rem;
  height: 2.5rem;
  padding: 0.35rem 0.6rem;
  background: var(--brand-plate);
  border-radius: 3px;
}
.guide-brand > span {
  font-family: var(--font-number);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.guide-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.guide-search-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.6rem 0.75rem;
  background: var(--surface-raised);
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.guide-search-button svg {
  width: 1rem;
  height: 1rem;
}
.guide-search-button kbd {
  font-size: 0.65rem;
  margin-left: 2rem;
  color: var(--ink-muted);
}
.guide-menu-button {
  display: none;
}
.guide-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr) 13rem;
  max-width: 1680px;
  margin: auto;
  align-items: start;
}
.guide-layout--home {
  grid-template-columns: 15rem minmax(0, 1fr);
}
.guide-sidebar {
  position: sticky;
  top: 5rem;
  height: calc(100dvh - 5rem);
  overflow: auto;
  padding: 2rem 1rem 1rem 1.5rem;
  border-right: 1px solid var(--line);
  font-size: 0.875rem;
  background: var(--paper);
}
.guide-nav-group {
  margin-bottom: 1.5rem;
}
.guide-nav-group > p {
  padding: 0 0.65rem;
  margin-bottom: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--font-number);
}
.guide-nav-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 3px;
  text-decoration: none;
  color: var(--ink-muted);
  line-height: 1.35;
}
.guide-nav-group a:hover {
  background: var(--surface-inset);
  color: var(--ink-strong);
}
.guide-nav-group a[aria-current] {
  color: var(--ink-strong);
  background: var(--accent-soft);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent-ink);
}
.guide-nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex: none;
}
.guide-sidebar-note {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0.5rem 0.65rem 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}
.guide-sidebar-note svg {
  width: 1rem;
  flex: none;
}
.guide-main {
  min-width: 0;
  outline: none;
}
.guide-hero {
  padding: 4.5rem clamp(1.5rem, 5vw, 5.5rem) 3rem;
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}
.guide-hero .v-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-muted);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
}
.guide-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex: none;
}
.guide-hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 5.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 1.75rem 0;
}
.guide-hero h1 em {
  font-style: normal;
  color: var(--accent-ink);
}
.guide-lead {
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.guide-hero-description {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 58ch;
  margin: 0.85rem 0 1.75rem;
}
.guide-hero .v-button {
  font-size: 0.85rem;
}
.guide-hero .v-button svg {
  width: 1rem;
  height: 1rem;
}
.guide-hero-footnote {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 2.75rem;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: 0.65rem;
}
.guide-hero-footnote span + span {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}
.guide-section-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.6rem;
  letter-spacing: 0.075em;
  font-family: var(--font-number);
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
}
.guide-architecture {
  padding: 2.5rem clamp(1.5rem, 5vw, 5.5rem);
  background: #101216;
  color: #e6e4df;
  border-bottom: 1px solid #32373d;
}
.guide-architecture .guide-section-label {
  color: #b7b5ae;
}
.guide-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.guide-flow button {
  position: relative;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.6rem;
  border: 1px solid #48515b;
  border-radius: 3px;
  background: #1d2126;
  color: #e6e4df;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.guide-flow button[aria-pressed="true"] {
  border-color: #f5a83f;
  background: #30261a;
  color: #f5a83f;
}
.guide-flow button:focus-visible {
  outline: 2px solid #f5a83f;
  outline-offset: 4px;
}
.guide-flow button > svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.guide-flow .guide-flow-arrow {
  position: absolute;
  right: -1rem;
  z-index: 1;
  color: #b7b5ae;
  background: #101216;
  width: 1rem;
}
.guide-architecture-detail {
  display: flex;
  gap: 1.5rem;
  min-height: 10rem;
  padding: 2rem 0 1.5rem;
}
.guide-numeral {
  font-family: var(--font-number);
  color: #f5a83f;
  font-size: 0.75rem;
  padding-top: 0.15rem;
}
.guide-architecture-detail h3 {
  color: #f2f0eb;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  font-weight: 500;
  line-height: 1.4;
}
.guide-architecture-detail p {
  color: #b7b5ae;
  max-width: 78ch;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0.6rem 0 0;
}
.guide-runtime-strip {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #32373d;
  padding-top: 1rem;
  color: #b7b5ae;
  font-size: 0.75rem;
}
.guide-runtime-strip svg {
  width: 1rem;
  height: 1rem;
}
.guide-runtime-strip .guide-dot {
  background: #35cfa4;
  width: 4px;
  height: 4px;
  margin-inline: 0.5rem;
}
.guide-audience,
.guide-chapters,
.guide-disclosure {
  padding: 3.5rem clamp(1.5rem, 5vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.guide-audience h2,
.guide-chapters h2,
.guide-disclosure h2 {
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 500;
  max-width: 25ch;
  margin-bottom: 1.5rem;
}
.guide-segment {
  display: inline-flex;
  gap: 0.25rem;
  background: var(--surface-inset);
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 0.5rem 0 2rem;
  max-width: 100%;
}
.guide-segment button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.guide-segment button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink-strong);
  border-color: var(--line);
  box-shadow: var(--shadow-panel);
}
.guide-segment svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.guide-audience-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.guide-audience-body .v-eyebrow {
  font-size: 0.6rem;
  line-height: 1.7;
  color: var(--accent-ink);
}
.guide-audience-body h3 {
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0.75rem 0;
}
.guide-audience-body p:not(.v-eyebrow) {
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0.8rem 0 1.25rem;
}
.guide-audience-body a,
.guide-extension a,
.guide-disclosure a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-underline-offset: 4px;
}
.guide-audience-body a svg,
.guide-extension a svg,
.guide-disclosure a svg {
  width: 1rem;
  height: 1rem;
}
.guide-audience-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-audience-body li {
  display: flex;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.guide-audience-body li svg {
  width: 1rem;
  height: 1rem;
  color: var(--success);
  flex: none;
  margin-top: 0.15rem;
}
.guide-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
  gap: 1px;
  background: var(--line);
}
.guide-chapter-card {
  position: relative;
  text-decoration: none;
  padding: 1.75rem;
  background: var(--surface-raised);
  color: var(--ink);
}
.guide-chapter-card:hover {
  background: var(--accent-soft);
}
.guide-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-muted);
  font-family: var(--font-number);
  font-size: 0.65rem;
}
.guide-card-top svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent-ink);
}
.guide-chapter-card h3 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 1.5rem 0 0.65rem;
  font-weight: 500;
}
.guide-chapter-card p {
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  padding-right: 1rem;
  margin-bottom: 1.75rem;
}
.guide-card-arrow {
  width: 1rem;
  height: 1rem;
  position: absolute;
  right: 1.75rem;
  bottom: 1.5rem;
}
.guide-extension {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem clamp(1.5rem, 5vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--surface-inset);
}
.guide-status {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  border: 1px solid var(--accent-ink);
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-number);
}
.guide-extension h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 1rem 0;
}
.guide-extension p,
.guide-disclosure p {
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 85ch;
}
.guide-extension ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-extension li {
  padding: 1.1rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.guide-extension li span {
  font-family: var(--font-number);
  font-size: 0.65rem;
  color: var(--ink-muted);
}
.guide-disclosure h2 {
  font-size: 1.5rem;
  max-width: 100%;
}
.guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  color: var(--ink-muted);
  font-size: 0.7rem;
}
.guide-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.guide-footer svg {
  width: 0.8rem;
  height: 0.8rem;
}
.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem clamp(1.5rem, 4vw, 4rem) 0;
  font-size: 0.75rem;
  color: var(--ink-muted);
}
.guide-breadcrumb svg {
  width: 0.8rem;
  height: 0.8rem;
}
.guide-breadcrumb a {
  text-decoration: none;
}
.guide-article {
  padding: 2rem clamp(1.5rem, 4vw, 4rem);
}
.guide-article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.guide-article-meta .v-eyebrow {
  font-size: 0.65rem;
  color: var(--accent-ink);
}
.guide-article-deck {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 65ch;
  margin-bottom: 1.5rem;
}
.guide-article .docs-prose {
  max-width: none;
  font-size: 0.95rem;
  line-height: 1.75;
}
.guide-article .docs-prose h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.13;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin-top: 0.5rem;
}
.guide-article .docs-prose h2 {
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  scroll-margin-top: 6.5rem;
}
.guide-article .docs-prose h3 {
  scroll-margin-top: 6.5rem;
}
.guide-article .docs-prose table {
  width: 100%;
  font-size: 0.8rem;
  line-height: 1.6;
}
.guide-article .docs-prose pre {
  max-width: 100%;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.7;
}
.guide-article-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.guide-article-tools .v-button {
  font-size: 0.75rem;
}
.guide-pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem clamp(1.5rem, 4vw, 4rem) 3rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.guide-pagination a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  text-decoration: none;
  max-width: 48%;
}
.guide-pagination a:last-child {
  margin-left: auto;
  text-align: right;
}
.guide-pagination a span {
  display: block;
  font-family: var(--font-number);
  font-size: 0.6rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.guide-pagination svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}
.guide-outline {
  position: sticky;
  top: 5rem;
  padding: 2.5rem 1rem 1rem 0;
  max-height: calc(100dvh - 5rem);
  overflow: auto;
}
.guide-outline > .v-eyebrow {
  font-size: 0.6rem;
  margin-bottom: 1rem;
  color: var(--ink-muted);
}
.guide-outline nav a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-decoration: none;
}
.guide-outline nav a:hover {
  color: var(--accent-ink);
}
.guide-outline-label {
  display: block;
  font-family: var(--font-number);
  font-size: 0.55rem;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
}
.guide-search-count {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}
@media (max-width: 1200px) {
  .guide-layout {
    grid-template-columns: 14rem minmax(0, 1fr);
  }
  .guide-outline {
    display: none;
  }
  .guide-sidebar {
    padding-left: 1rem;
  }
  .guide-audience-body {
    gap: 1.5rem;
  }
  .guide-extension {
    gap: 2rem;
  }
}
@media (max-width: 800px) {
  .guide-header {
    min-height: 4.5rem;
    padding: 0.75rem 1.25rem;
  }
  .guide-brand {
    gap: 0.75rem;
  }
  .guide-brand > span {
    padding-left: 0.75rem;
    font-size: 0.55rem;
  }
  .guide-brand img {
    width: 5.25rem;
  }
  .guide-header-actions {
    gap: 0.25rem;
  }
  .guide-search-button {
    border: 0;
    background: none;
    padding: 0.6rem;
  }
  .guide-search-button span,
  .guide-search-button kbd {
    display: none;
  }
  .guide-menu-button {
    display: inline-flex;
  }
  .guide-layout,
  .guide-layout--home {
    display: block;
  }
  .guide-sidebar {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 0;
    bottom: 0;
    height: calc(100dvh - 4.5rem);
    width: min(85vw, 21rem);
    z-index: 35;
    box-shadow: var(--shadow-float);
    padding: 1.5rem;
  }
  .guide-sidebar.is-open {
    display: block;
  }
  .guide-hero {
    padding-top: 3rem;
  }
  .guide-hero h1 {
    font-size: clamp(2.7rem, 8.5vw, 4.5rem);
  }
  .guide-audience-body,
  .guide-extension {
    grid-template-columns: 1fr;
  }
  .guide-flow {
    gap: 0.5rem;
  }
  .guide-flow button {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 0.85rem 0.25rem;
  }
  .guide-flow .guide-flow-arrow {
    right: -0.8rem;
  }
  .guide-architecture-detail {
    min-height: 14rem;
    gap: 1rem;
  }
  .guide-section-label > span:last-child {
    display: none;
  }
  .guide-header .v-button {
    min-width: 2.5rem;
    padding: 0.5rem;
  }
  .guide-segment button {
    font-size: 0.75rem;
    padding: 0.65rem 0.7rem;
  }
  .guide-chapter-card {
    padding: 1.25rem;
  }
  .guide-extension {
    gap: 1.5rem;
  }
  .guide-article {
    padding-top: 1.5rem;
  }
  .guide-footer {
    padding-inline: 1.5rem;
  }
}
@media (max-width: 400px) {
  .guide-brand > span {
    max-width: 5rem;
    line-height: 1.5;
  }
  .guide-chapter-grid {
    grid-template-columns: 1fr;
  }
  .guide-hero .v-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .guide-hero-footnote {
    font-size: 0.55rem;
  }
  .guide-hero-footnote span + span {
    margin-left: 0.6rem;
    padding-left: 0.6rem;
  }
  .guide-architecture-detail {
    min-height: 17rem;
  }
  .guide-segment {
    display: flex;
  }
  .guide-segment button {
    flex: 1;
    justify-content: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-main * {
    scroll-behavior: auto;
    transition: none;
  }
}
@media print {
  .guide-header,
  .guide-sidebar,
  .guide-outline,
  .guide-article-tools,
  .guide-pagination,
  .guide-search-button,
  .guide-footer {
    display: none !important;
  }
  .guide-layout {
    display: block;
  }
  .guide-article {
    padding: 0;
  }
  .guide-article .docs-prose {
    font-size: 10pt;
    color: #111;
    background: #fff;
  }
  .guide-article .docs-prose table {
    display: table;
    font-size: 8pt;
  }
  .guide-article .docs-prose pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 8pt;
  }
  .guide-article .docs-prose h2 {
    break-after: avoid;
  }
  .guide-hero,
  .guide-audience,
  .guide-chapters,
  .guide-disclosure,
  .guide-extension {
    padding: 1rem 0;
  }
  .guide-architecture {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .guide-chapter-card {
    break-inside: avoid;
  }
  html {
    color-scheme: light;
  }
  body {
    background: #fff;
    color: #111;
  }
}
.guide-handbook {
  max-width: 90ch;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.guide-handbook-cover {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
}
.guide-handbook-cover img {
  width: 9rem;
  padding: 0.6rem 1rem;
  background: var(--brand-plate);
  margin-bottom: 3rem;
}
.guide-handbook-cover h1 {
  font-size: 3.5rem;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 2rem 0;
}
.guide-handbook-cover p {
  margin: 1.5rem 0;
  color: var(--ink-muted);
  line-height: 1.7;
}
.guide-handbook-contents {
  padding: 3rem 0;
}
.guide-handbook-contents li {
  margin: 0.7rem 0;
}
.guide-handbook-chapter {
  max-width: none;
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
@media print {
  @page {
    size: A4;
    margin: 18mm 16mm;
  }
  .guide-handbook {
    max-width: none;
    padding: 0;
    font-size: 10pt;
    line-height: 1.55;
  }
  .guide-handbook-cover,
  .guide-handbook-contents {
    break-after: page;
    padding: 2rem 0;
  }
  .guide-handbook-cover h1 {
    font-size: 40pt;
  }
  .guide-handbook-cover img {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  .guide-handbook-chapter {
    break-before: page;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 10pt;
    line-height: 1.55;
  }
  .guide-handbook-chapter h1 {
    font-size: 25pt;
    line-height: 1.15;
  }
  .guide-handbook-chapter h2 {
    font-size: 16pt;
    break-after: avoid;
  }
  .guide-handbook-chapter h3 {
    font-size: 12pt;
    break-after: avoid;
  }
  .guide-handbook-chapter table {
    display: table;
    font-size: 8pt;
    width: 100%;
    table-layout: fixed;
  }
  .guide-handbook-chapter th,
  .guide-handbook-chapter td {
    min-width: 0;
    padding: 5pt;
    overflow-wrap: anywhere;
  }
  .guide-handbook-chapter tr {
    break-inside: avoid;
  }
  .guide-handbook-chapter thead {
    display: table-header-group;
  }
  .guide-handbook-chapter pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 7.5pt;
    line-height: 1.5;
  }
  .guide-handbook-chapter h2,
  .guide-handbook-chapter h3 {
    scroll-margin: 0;
  }
}
