@font-face { font-family: "Inter Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/InterVariable.woff2") format("woff2"); }
@font-face { font-family: "Inter Variable"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("fonts/InterVariable-Italic.woff2") format("woff2"); }

:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --success: oklch(0.527 0.154 150.069);
  --warning: oklch(0.555 0.163 48.998);
  --info: oklch(0.546 0.245 262.881);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
  --sidebar: oklch(0.985 0 0);
  --overlay: oklch(0 0 0 / 0.4);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font-sans: "Inter Variable", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --measure: 38em;
  --measure-heading: 38rem;
  --page-width: 1120px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-read: 16px;
  --text-lg: 20px;
  --text-xl: 24px;
  --text-2xl: 30px;
  --text-display: 48px;
  --print-title: 22pt;
  --print-h2: 12pt;
  --print-h3: 10pt;
  --print-body: 9.5pt;
  --print-small: 8.5pt;
  --print-fine: 8pt;
  color-scheme: light;
}

.dark, [data-theme="dark"] {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.205 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.205 0 0);
  --popover-foreground: oklch(0.985 0 0);
  --primary: oklch(0.922 0 0);
  --primary-foreground: oklch(0.205 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --success: oklch(0.765 0.177 163.223);
  --warning: oklch(0.828 0.189 84.429);
  --info: oklch(0.707 0.165 254.624);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.556 0 0);
  --sidebar: oklch(0.205 0 0);
  --overlay: oklch(0 0 0 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
[hidden] { display: none !important; }

.ds, body.ds {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
.ds ::selection { background: color-mix(in oklab, var(--primary) 25%, transparent); }
:where(.ds) :focus-visible { outline: none; }
:where(.ds) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.ds) :where(a) { color: inherit; }
.num { font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 8px 16px; border-radius: var(--radius-md); border: 1px solid transparent;
  font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap; cursor: pointer; text-decoration: none;
  background: var(--primary); color: var(--primary-foreground);
  transition: background-color .15s, color .15s, box-shadow .15s, border-color .15s;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; pointer-events: none; }
.btn:hover { background: color-mix(in oklab, var(--primary) 90%, transparent); }
.btn:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.btn:disabled, .btn[aria-disabled="true"] { pointer-events: none; opacity: .5; }
.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { background: color-mix(in oklab, var(--destructive) 90%, transparent); }
.btn-outline { background: var(--background); color: var(--foreground); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-outline:hover { background: var(--accent); color: var(--accent-foreground); }
.dark .btn-outline, [data-theme="dark"] .btn-outline { background: color-mix(in oklab, var(--input) 30%, transparent); border-color: var(--input); }
.btn-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.btn-secondary:hover { background: color-mix(in oklab, var(--secondary) 80%, transparent); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--accent); color: var(--accent-foreground); }
.btn-link { background: transparent; color: var(--primary); padding-left: 0; padding-right: 0; height: auto; }
.btn-link:hover { background: transparent; text-decoration: underline; text-underline-offset: 4px; }
.btn-xs { height: 24px; gap: 4px; padding: 0 8px; font-size: 12px; }
.btn-xs svg { width: 12px; height: 12px; }
.btn-sm { height: 32px; gap: 6px; padding: 0 12px; }
.btn-lg { height: 40px; padding: 0 24px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-icon.btn-xs { width: 24px; }

.badge {
  display: inline-flex; width: fit-content; flex-shrink: 0; align-items: center; justify-content: center; gap: 4px;
  padding: 2px 8px; border-radius: 9999px; border: 1px solid transparent;
  font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; overflow: hidden;
  background: var(--primary); color: var(--primary-foreground);
}
.badge svg { width: 12px; height: 12px; }
.badge-secondary { background: var(--secondary); color: var(--secondary-foreground); }
.badge-destructive { background: var(--destructive); color: #fff; }
.badge-outline { background: transparent; color: var(--foreground); border-color: var(--border); }
.badge-ghost { background: transparent; color: var(--foreground); }
.badge-soft-destructive { background: color-mix(in oklab, var(--destructive) 12%, transparent); color: var(--destructive); }
.badge-soft-warning { background: color-mix(in oklab, var(--warning) 14%, transparent); color: var(--warning); }
.badge-soft-success { background: color-mix(in oklab, var(--success) 14%, transparent); color: var(--success); }
.badge-soft-primary { background: color-mix(in oklab, var(--primary) 12%, transparent); color: var(--primary); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: currentColor; flex-shrink: 0; }

.input, .textarea, .select {
  width: 100%; min-width: 0; border-radius: var(--radius-md); border: 1px solid var(--input);
  background-color: transparent; color: var(--foreground); box-shadow: var(--shadow-xs); outline: none;
  font-size: 14px; transition: color .15s, box-shadow .15s, border-color .15s;
}
.input { height: 36px; padding: 4px 12px; }
.textarea { min-height: 64px; padding: 8px 12px; field-sizing: content; }
.input::placeholder, .textarea::placeholder { color: var(--muted-foreground); }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--destructive); box-shadow: 0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent); }
.input:disabled, .textarea:disabled, .select:disabled { cursor: not-allowed; opacity: .5; }
.dark .input, .dark .textarea, .dark .select, [data-theme="dark"] .input, [data-theme="dark"] .textarea, [data-theme="dark"] .select { background-color: color-mix(in oklab, var(--input) 30%, transparent); }
.dark .select, [data-theme="dark"] .select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.select {
  width: fit-content; height: 36px; padding: 0 36px 0 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.input-sm, .select-sm { height: 32px; }

.label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; line-height: 1; user-select: none; }
.field { display: grid; gap: 8px; }
.field-hint { font-size: 13px; color: var(--muted-foreground); }

.checkbox {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; width: 16px; height: 16px;
  border-radius: 4px; border: 1px solid var(--input); background: transparent; box-shadow: var(--shadow-xs); cursor: pointer;
  display: inline-grid; place-content: center; transition: box-shadow .15s;
}
.checkbox:checked {
  background: var(--primary); border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
}
.checkbox:focus-visible, .switch:focus-visible { box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); border-color: var(--ring); }
.checkbox:disabled, .switch:disabled { cursor: not-allowed; opacity: .5; }

.switch {
  appearance: none; -webkit-appearance: none; margin: 0; flex-shrink: 0; position: relative; cursor: pointer;
  width: 32px; height: 18.4px; border-radius: 9999px; border: 1px solid transparent; box-shadow: var(--shadow-xs);
  background: var(--input); transition: background-color .15s;
}
.dark .switch, [data-theme="dark"] .switch { background: color-mix(in oklab, var(--input) 80%, transparent); }
.switch::before {
  content: ""; position: absolute; top: 50%; left: 0; width: 16px; height: 16px; border-radius: 9999px;
  background: var(--background); transform: translate(0, -50%); transition: transform .15s;
}
.dark .switch::before, [data-theme="dark"] .switch::before { background: var(--foreground); }
.switch:checked { background: var(--primary); }
.switch:checked::before { transform: translate(calc(100% - 2px), -50%); }
.dark .switch:checked::before, [data-theme="dark"] .switch:checked::before { background: var(--primary-foreground); }

.tabs { display: flex; flex-direction: column; gap: 8px; }
.tabs-list {
  display: inline-flex; width: fit-content; height: 36px; align-items: center; justify-content: center;
  padding: 3px; border-radius: var(--radius-lg); background: var(--muted); color: var(--muted-foreground);
}
.tab {
  position: relative; display: inline-flex; flex: 1; height: calc(100% - 1px); align-items: center; justify-content: center; gap: 6px;
  padding: 4px 8px; border-radius: var(--radius-md); border: 1px solid transparent; background: transparent;
  font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; text-decoration: none;
  color: color-mix(in oklab, var(--foreground) 60%, transparent); transition: color .15s, background-color .15s, box-shadow .15s;
}
.tab:hover { color: var(--foreground); }
.tab[aria-selected="true"], .tab.active { background: var(--background); color: var(--foreground); box-shadow: var(--shadow-sm); }
.dark .tab[aria-selected="true"], .dark .tab.active, [data-theme="dark"] .tab[aria-selected="true"], [data-theme="dark"] .tab.active { background: color-mix(in oklab, var(--input) 30%, transparent); border-color: var(--input); }
.tab:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent); }
.tab .count { color: var(--muted-foreground); font-weight: 400; font-variant-numeric: tabular-nums; }
.tabs-line { background: transparent; gap: 4px; padding: 0; border-radius: 0; }
.tabs-line .tab { box-shadow: none; background: transparent; }
.tabs-line .tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--foreground); opacity: 0; transition: opacity .15s; }
.tabs-line .tab[aria-selected="true"]::after, .tabs-line .tab.active::after { opacity: 1; }
.tabs-line .tab[aria-selected="true"], .tabs-line .tab.active { background: transparent; border-color: transparent; box-shadow: none; }
.tab-panel[hidden] { display: none; }

.table-wrap { position: relative; width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; caption-side: bottom; font-size: 14px; }
.table thead tr { border-bottom: 1px solid var(--border); }
.table th { height: 40px; padding: 0 8px; text-align: left; vertical-align: middle; font-weight: 500; white-space: nowrap; color: var(--foreground); }
.table td { padding: 8px; vertical-align: middle; }
.table tbody tr { border-bottom: 1px solid var(--border); transition: background-color .15s; }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover, .table tbody tr[aria-expanded="true"] { background: color-mix(in oklab, var(--muted) 50%, transparent); }
.table tbody tr[data-state="selected"], .table tbody tr[aria-selected="true"] { background: var(--muted); }
.table tfoot { border-top: 1px solid var(--border); background: color-mix(in oklab, var(--muted) 50%, transparent); font-weight: 500; }
.table caption { margin-top: 16px; font-size: 14px; color: var(--muted-foreground); }
.table .nowrap { white-space: nowrap; }
.table-clickable tbody tr { cursor: pointer; }
.table-bordered { border: 1px solid var(--border); }
.table-bordered th, .table-bordered td { border: 1px solid var(--border); padding: 12px 16px; vertical-align: top; }
.table-bordered th { height: auto; background: var(--muted); }
.table-bordered td.num, .table-bordered th.num { text-align: left; font-variant-numeric: tabular-nums; }

.card {
  display: flex; flex-direction: column; gap: 24px; padding: 24px 0; border-radius: var(--radius-xl);
  border: 1px solid var(--border); background: var(--card); color: var(--card-foreground); box-shadow: var(--shadow-sm);
}
.card-header { display: grid; gap: 8px; padding: 0 24px; grid-template-columns: 1fr auto; align-items: start; }
.card-header.border-b { padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1; grid-column: 1; }
.card-description { margin: 0; font-size: 14px; color: var(--muted-foreground); grid-column: 1; }
.card-action { grid-column: 2; grid-row: 1 / span 2; align-self: start; justify-self: end; }
.card-content { padding: 0 24px; }
.card-footer { display: flex; align-items: center; padding: 0 24px; }
.card-footer.border-t { padding-top: 24px; border-top: 1px solid var(--border); }

dialog.sheet, dialog.dialog { padding: 0; border: 0; color: var(--foreground); max-width: none; max-height: none; }
dialog.sheet::backdrop, dialog.dialog::backdrop { background: var(--overlay); }
dialog.sheet[open]::backdrop, dialog.dialog[open]::backdrop { animation: ds-fade .2s ease-out; }
dialog.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; width: 75%; max-width: 384px;
  display: none; flex-direction: column; gap: 16px; background: var(--background);
  border-left: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
dialog.sheet[open] { display: flex; animation: ds-slide-right .5s cubic-bezier(.32,.72,0,1); }
dialog.sheet.sheet-left { inset: 0 auto 0 0; border-left: 0; border-right: 1px solid var(--border); }
dialog.sheet.sheet-left[open] { animation-name: ds-slide-left; }
dialog.sheet.sheet-lg { max-width: 640px; width: 90%; }
.sheet-header { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.sheet-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--foreground); }
.sheet-description { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.sheet-body { flex: 1; overflow-y: auto; padding: 0 16px; }
.sheet-footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.sheet-close, .dialog-close {
  position: absolute; top: 16px; right: 16px; display: inline-grid; place-content: center; width: 24px; height: 24px;
  border: 0; border-radius: 4px; background: transparent; color: var(--foreground); opacity: .7; cursor: pointer; transition: opacity .15s;
}
.sheet-close:hover, .dialog-close:hover { opacity: 1; }
.sheet-close:focus-visible, .dialog-close:focus-visible { box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring); }
.sheet-close svg, .dialog-close svg { width: 16px; height: 16px; }
dialog.dialog {
  position: fixed; inset: 0; margin: auto; width: calc(100% - 32px); max-width: 512px; height: fit-content;
  display: none; gap: 16px; padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--background); box-shadow: var(--shadow-lg);
}
dialog.dialog[open] { display: grid; animation: ds-zoom .2s ease-out; }
.dialog-header { display: flex; flex-direction: column; gap: 8px; }
.dialog-title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1; }
.dialog-description { margin: 0; font-size: 14px; color: var(--muted-foreground); }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; }

.popover {
  inset: auto; margin: 0; width: 288px; max-width: calc(100vw - 16px); padding: 16px;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--popover); color: var(--popover-foreground);
  box-shadow: var(--shadow-md); outline: none;
}
.popover:popover-open { animation: ds-pop .15s ease-out; }
.popover-header { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.popover-title { margin: 0; font-size: 14px; font-weight: 500; }
.popover-description { margin: 0; font-size: 14px; color: var(--muted-foreground); }

[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 50; pointer-events: none;
  width: max-content; max-width: 280px; padding: 6px 12px; border-radius: var(--radius-md);
  background: var(--foreground); color: var(--background); font-size: 12px; font-weight: 400; line-height: 1.4; text-align: center;
  opacity: 0; transform: translate(-50%, 4px); transition: opacity .12s, transform .12s;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
[data-tooltip-side="bottom"]::after { bottom: auto; top: calc(100% + 6px); transform: translate(-50%, -4px); }

.separator { flex-shrink: 0; background: var(--border); height: 1px; width: 100%; border: 0; margin: 0; }
.separator-vertical { width: 1px; height: auto; align-self: stretch; }

.kbd {
  display: inline-flex; height: 20px; min-width: 20px; width: fit-content; align-items: center; justify-content: center; gap: 4px;
  padding: 0 4px; border-radius: 4px; background: var(--muted); color: var(--muted-foreground);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; user-select: none; pointer-events: none;
}

.skeleton { border-radius: var(--radius-md); background: var(--accent); animation: ds-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

.text-muted { color: var(--muted-foreground); }
.text-destructive { color: var(--destructive); }
.text-warning { color: var(--warning); }
.text-success { color: var(--success); }
.text-primary { color: var(--primary); }

@keyframes ds-fade { from { opacity: 0; } }
@keyframes ds-zoom { from { opacity: 0; transform: scale(.95); } }
@keyframes ds-pop { from { opacity: 0; transform: translateY(-8px) scale(.95); } }
@keyframes ds-slide-right { from { transform: translateX(100%); } }
@keyframes ds-slide-left { from { transform: translateX(-100%); } }
.pagination { display: flex; justify-content: center; width: 100%; margin: 0 auto; }
.pagination-content { display: flex; flex-direction: row; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pagination-link { min-width: 36px; }
.pagination-link[aria-current="page"] { background: var(--background); border-color: var(--border); box-shadow: var(--shadow-xs); }
.pagination-link[aria-current="page"]:hover { background: var(--accent); }
.pagination-link[aria-disabled="true"] { pointer-events: none; opacity: .5; }
.pagination-prev, .pagination-next { gap: 4px; padding: 0 10px; }
.pagination-ellipsis { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: var(--muted-foreground); }
.pagination-sm .pagination-link, .pagination-sm .pagination-ellipsis { min-width: 32px; height: 32px; }
@keyframes ds-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open], dialog.dialog[open], dialog.sheet[open]::backdrop, dialog.dialog[open]::backdrop, .skeleton { animation: none; }
  .btn, .tab, .switch, .switch::before, [data-tooltip]::after { transition: none; }
}

.page { max-width: var(--page-width); margin: 0 auto; padding: var(--space-12) var(--space-8) var(--space-16); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap, var(--space-4)); }
.stack-tight { --stack-gap: var(--space-2); }
.stack-loose { --stack-gap: var(--space-8); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-2)); }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--split-min, 320px)), 1fr)); gap: var(--split-gap, var(--space-8)); align-items: start; }
.split-aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr); gap: var(--split-gap, var(--space-8)); align-items: start; }
@media (max-width: 760px) { .split-aside { grid-template-columns: 1fr; } }

.doc { font-size: var(--text-read); line-height: 1.6; }
.doc :where(p, ul, ol, dl, blockquote) { max-width: var(--measure); margin: 0; text-wrap: pretty; }
.doc :where(h1, h2, h3, h4) { margin: 0; font-weight: 600; color: var(--foreground); text-wrap: balance; max-width: var(--measure-heading); }
.doc h1 { font-size: var(--text-2xl); line-height: 1.2; letter-spacing: -0.02em; max-width: 28ch; }
.doc h2 { font-size: var(--text-lg); line-height: 1.3; letter-spacing: -0.01em; }
.doc h3 { font-size: var(--text-read); line-height: 1.4; }
.doc > * + * { margin-top: var(--space-4); }
.doc > :where(h2, section) { margin-top: var(--space-12); }
.doc > :where(h3) { margin-top: var(--space-8); }
.doc > :where(h1, h2, h3) + * { margin-top: var(--space-3); }
.doc section > * + * { margin-top: var(--space-4); }
.doc > header + * { margin-top: var(--space-8); }
.doc section > :where(h2, h3) + * { margin-top: var(--space-3); }
.doc .lead { font-size: var(--text-lg); line-height: 1.5; color: var(--muted-foreground); }
.doc .meta { font-size: var(--text-sm); color: var(--muted-foreground); }
.doc .table { font-size: var(--text-base); }
.doc .table tfoot td:first-child { padding-left: var(--space-3); }
.doc .table tfoot td:last-child { padding-right: var(--space-3); }
.doc .table :where(td, th) { font-variant-numeric: tabular-nums; }
.doc figure { margin: 0; }
.doc :where(ul, ol) { padding-left: 1.25em; }
.doc figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted-foreground); }

.doc-print { font-size: var(--print-body); line-height: 1.4; }
.doc-print h1 { font-size: var(--print-title); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.doc-print h2 { font-size: var(--print-h2); line-height: 1.3; break-after: avoid; }
.doc-print h3 { font-size: var(--print-h3); line-height: 1.35; break-after: avoid; }
.doc-print > * + * { margin-top: var(--space-4); }
.doc-print > :where(h2, section) { margin-top: var(--space-8); }
.doc-print > :where(h3) { margin-top: var(--space-6); }
.doc-print > :where(h1, h2, h3) + * { margin-top: var(--space-2); }
.doc-print section > * + * { margin-top: var(--space-3); }
.doc-print > header + * { margin-top: var(--space-6); }
.doc-print section > :where(h2, h3) + * { margin-top: var(--space-2); }
.doc-print :where(figure, .table-wrap, table) { break-inside: avoid; }
.doc-print figcaption, .doc-print small, .doc-print .meta, .doc-print .table { font-size: var(--print-small); }
.doc-print figcaption { margin-top: var(--space-2); }
.doc-print .table :where(td, th) { padding: var(--space-1) var(--space-2); height: auto; }
.doc-print .fine { font-size: var(--print-fine); line-height: 1.3; }
.doc-print figcaption { color: var(--foreground); }
@media print {
  .page { max-width: none; padding: 0; }
  .ds, body.ds { background: #fff; }
}
