/* kit.css - built by Menu_service/coder/style_kit.py from styleguides/Modern_1.css for this folder's pages.
   Do not edit: change the page and run the build again. 309 rules, 6 animations. */
/* ---- 1. Tokens ---- */
:root {
  color-scheme: light;
  --ff-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ff-display: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  /* Brand: blue (rebrand here) */
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  --brand-950: #172554;
  /* Accent: cyan, plus violet for gradients */
  --accent-50: #ecfeff;
  --accent-100: #cffafe;
  --accent-200: #a5f3fc;
  --accent-300: #67e8f9;
  --accent-400: #22d3ee;
  --accent-500: #06b6d4;
  --accent-600: #0891b2;
  --accent-700: #0e7490;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  /* Neutrals: slate */
  --gray-0: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;
  /* Status hues */
  --green-50: #ecfdf5;
  --green-200: #a7f3d0;
  --green-500: #10b981;
  --green-600: #059669;
  --green-700: #047857;
  --green-800: #065f46;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-800: #991b1b;
  --sky-50: #f0f9ff;
  --sky-200: #bae6fd;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-800: #075985;
  /* Semantic colors (components use only these) */
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e3e8ef;
  --border-strong: #cfd7e3;
  --border-hover: #a9b5c6;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --primary: var(--brand-600);
  --primary-hover: var(--brand-700);
  --primary-active: var(--brand-800);
  --primary-grad: linear-gradient(180deg, #2f6ff0 0%, #1d4ed8 100%);
  --primary-grad-hover: linear-gradient(180deg, #3a79f3 0%, #2158e0 100%);
  --on-primary: #ffffff;
  --primary-soft: var(--brand-50);
  --primary-soft-hover: var(--brand-100);
  --primary-text: var(--brand-700);
  --link: var(--brand-600);
  --link-hover: var(--brand-800);
  --accent-soft: var(--accent-50);
  --accent-text: var(--accent-700);
  --focus: var(--brand-500);
  --ring: rgba(59, 130, 246, 0.22);
  --ring-danger: rgba(239, 68, 68, 0.24);
  --mix-ink: #000000;
  --hue-tint: 11%;
  --hue-tint-hover: 18%;
  --success: var(--green-600);
  --success-solid: var(--green-600);
  --success-soft: var(--green-50);
  --success-border: var(--green-200);
  --success-text: var(--green-800);
  --warning: var(--amber-500);
  --warning-solid: var(--amber-600);
  --warning-soft: var(--amber-50);
  --warning-border: var(--amber-200);
  --warning-text: var(--amber-800);
  --danger: var(--red-600);
  --danger-solid: var(--red-600);
  --danger-solid-hover: var(--red-700);
  --danger-soft: var(--red-50);
  --danger-border: var(--red-200);
  --danger-text: var(--red-800);
  --info: var(--sky-600);
  --info-solid: var(--sky-700);
  --info-soft: var(--sky-50);
  --info-border: var(--sky-200);
  --info-text: var(--sky-800);
  --inverse-bg: var(--gray-900);
  --inverse-bg-hover: var(--gray-800);
  --inverse-text: #ffffff;
  --overlay: rgba(15, 23, 42, 0.45);
  --tooltip-bg: var(--gray-900);
  --tooltip-text: #ffffff;
  --mark-bg: #fef3c7;
  --switch-off: var(--gray-300);
  --code-bg: #0b1020;
  --code-text: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.72);
  --grid-line: rgba(15, 23, 42, 0.05);
  /* Type scale */
  --fs-2xs: 0.6875rem;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.4vw, 2.25rem);
  --fs-4xl: clamp(2.125rem, 1.6rem + 2.2vw, 3rem);
  --fs-5xl: clamp(2.5rem, 1.7rem + 3.4vw, 3.75rem);
  --fs-6xl: clamp(2.75rem, 1.6rem + 4.8vw, 4.75rem);
  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh: 1.6;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --input-fs: 0.9375rem;
  /* Spacing (4 px grid) */
  --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;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 999px;
  /* Shadows: layered and soft, tinted toward navy */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 2px 4px -1px rgba(15, 23, 42, 0.05), 0 8px 18px -6px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 4px 8px -2px rgba(15, 23, 42, 0.06), 0 20px 36px -12px rgba(15, 23, 42, 0.20);
  --shadow-xl: 0 8px 16px -4px rgba(15, 23, 42, 0.08), 0 32px 64px -16px rgba(15, 23, 42, 0.30);
  --shadow-primary: 0 1px 2px rgba(29, 78, 216, 0.30), 0 4px 12px -2px rgba(37, 99, 235, 0.35);
  --shadow-primary-lg: 0 2px 4px rgba(29, 78, 216, 0.25), 0 10px 24px -6px rgba(37, 99, 235, 0.55);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  /* Gradients */
  --grad-brand: linear-gradient(120deg, var(--brand-600), var(--violet-600) 55%, var(--accent-500));
  --grad-ocean: linear-gradient(135deg, var(--accent-500), var(--brand-600));
  --grad-sunset: linear-gradient(135deg, #f97316, #ec4899);
  --grad-aurora: linear-gradient(135deg, #10b981, #06b6d4 50%, #6366f1);
  --grad-night: linear-gradient(135deg, #1e293b, #0f172a);
  /* Controls */
  --control-h-xs: 1.75rem;
  --control-h-sm: 2rem;
  --control-h: 2.5rem;
  --control-h-lg: 3rem;
  --control-h-xl: 3.5rem;
  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 120ms;
  --dur: 200ms;
  --dur-slow: 320ms;
  /* Layout */
  --container: 1200px;
  --gutter: var(--space-4);
  /* Layers */
  --z-dropdown: 60;
  --z-sticky: 100;
  --z-toast: 1100;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070b14;
  --surface: #0e1525;
  --surface-2: #121a2c;
  --surface-3: #19233a;
  --border: #1f2a42;
  --border-strong: #2c3955;
  --border-hover: #43547a;
  --text: #e6ebf5;
  --text-muted: #a3afc5;
  --text-subtle: #7f8ba3;
  --primary-soft: rgba(59, 130, 246, 0.16);
  --primary-soft-hover: rgba(59, 130, 246, 0.26);
  --primary-text: var(--brand-300);
  --link: var(--brand-400);
  --link-hover: var(--brand-300);
  --accent-soft: rgba(6, 182, 212, 0.15);
  --accent-text: var(--accent-300);
  --focus: var(--brand-400);
  --ring: rgba(96, 165, 250, 0.35);
  --ring-danger: rgba(239, 68, 68, 0.4);
  --mix-ink: #ffffff;
  --hue-tint: 18%;
  --hue-tint-hover: 28%;
  --success: var(--green-500);
  --success-soft: rgba(16, 185, 129, 0.13);
  --success-border: rgba(16, 185, 129, 0.35);
  --success-text: #6ee7b7;
  --warning: var(--amber-400);
  --warning-soft: rgba(245, 158, 11, 0.13);
  --warning-border: rgba(245, 158, 11, 0.35);
  --warning-text: #fcd34d;
  --danger: var(--red-500);
  --danger-soft: rgba(239, 68, 68, 0.13);
  --danger-border: rgba(239, 68, 68, 0.35);
  --danger-text: #fca5a5;
  --info: var(--sky-500);
  --info-soft: rgba(14, 165, 233, 0.13);
  --info-border: rgba(14, 165, 233, 0.35);
  --info-text: #7dd3fc;
  --inverse-bg: #e6ebf5;
  --inverse-bg-hover: #ffffff;
  --inverse-text: #0f172a;
  --overlay: rgba(2, 6, 23, 0.7);
  --tooltip-bg: #e6ebf5;
  --tooltip-text: #0f172a;
  --mark-bg: rgba(250, 204, 21, 0.28);
  --switch-off: #334155;
  --code-bg: #050810;
  --glass: rgba(14, 21, 37, 0.72);
  --grid-line: rgba(255, 255, 255, 0.04);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 18px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 18px 36px -10px rgba(0, 0, 0, 0.7);
  --shadow-xl: 0 32px 64px -16px rgba(0, 0, 0, 0.8);
  --shadow-primary: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -4px rgba(37, 99, 235, 0.55);
  --shadow-primary-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 28px -6px rgba(59, 130, 246, 0.65);
  --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #070b14;
    --surface: #0e1525;
    --surface-2: #121a2c;
    --surface-3: #19233a;
    --border: #1f2a42;
    --border-strong: #2c3955;
    --border-hover: #43547a;
    --text: #e6ebf5;
    --text-muted: #a3afc5;
    --text-subtle: #7f8ba3;
    --primary-soft: rgba(59, 130, 246, 0.16);
    --primary-soft-hover: rgba(59, 130, 246, 0.26);
    --primary-text: var(--brand-300);
    --link: var(--brand-400);
    --link-hover: var(--brand-300);
    --accent-soft: rgba(6, 182, 212, 0.15);
    --accent-text: var(--accent-300);
    --focus: var(--brand-400);
    --ring: rgba(96, 165, 250, 0.35);
    --ring-danger: rgba(239, 68, 68, 0.4);
    --mix-ink: #ffffff;
    --hue-tint: 18%;
    --hue-tint-hover: 28%;
    --success: var(--green-500);
    --success-soft: rgba(16, 185, 129, 0.13);
    --success-border: rgba(16, 185, 129, 0.35);
    --success-text: #6ee7b7;
    --warning: var(--amber-400);
    --warning-soft: rgba(245, 158, 11, 0.13);
    --warning-border: rgba(245, 158, 11, 0.35);
    --warning-text: #fcd34d;
    --danger: var(--red-500);
    --danger-soft: rgba(239, 68, 68, 0.13);
    --danger-border: rgba(239, 68, 68, 0.35);
    --danger-text: #fca5a5;
    --info: var(--sky-500);
    --info-soft: rgba(14, 165, 233, 0.13);
    --info-border: rgba(14, 165, 233, 0.35);
    --info-text: #7dd3fc;
    --inverse-bg: #e6ebf5;
    --inverse-bg-hover: #ffffff;
    --inverse-text: #0f172a;
    --overlay: rgba(2, 6, 23, 0.7);
    --tooltip-bg: #e6ebf5;
    --tooltip-text: #0f172a;
    --mark-bg: rgba(250, 204, 21, 0.28);
    --switch-off: #334155;
    --code-bg: #050810;
    --glass: rgba(14, 21, 37, 0.72);
    --grid-line: rgba(255, 255, 255, 0.04);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 18px -6px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 18px 36px -10px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 32px 64px -16px rgba(0, 0, 0, 0.8);
    --shadow-primary: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px -4px rgba(37, 99, 235, 0.55);
    --shadow-primary-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 12px 28px -6px rgba(59, 130, 246, 0.65);
    --inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  }
}
@media (max-width: 640px) {
  :root {
    --input-fs: 1rem;
  }
}
@media (min-width: 768px) {
  :root {
    --gutter: var(--space-6);
  }
}
.hue-rose {
  --hue: #e11d48;
}
.hue-violet {
  --hue: #7c3aed;
}
.hue-blue {
  --hue: #2563eb;
}
.hue-teal {
  --hue: #0d9488;
}
.hue-amber {
  --hue: #d97706;
}

/* ---- 2. Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img,
video,
canvas {
  display: block; max-width: 100%; height: auto;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: var(--ff-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.018em;
  color: var(--text);
  text-wrap: balance;
}
h1 {
  font-size: var(--fs-4xl); font-weight: var(--fw-extrabold); letter-spacing: -0.03em;
}
h2 {
  font-size: var(--fs-3xl); letter-spacing: -0.025em;
}
h3 {
  font-size: var(--fs-xl);
}
h4 {
  font-size: var(--fs-lg);
}
h5 {
  font-size: var(--fs-md);
}
h6 {
  font-size: var(--fs-base);
}
p {
  margin: 0 0 1em; text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur-fast), text-decoration-color var(--dur-fast);
}
a:hover {
  color: var(--link-hover); text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
::selection {
  background: var(--brand-200); color: var(--gray-950);
}
hr {
  border: 0; border-top: 1px solid var(--border); margin: var(--space-8) 0;
}
ul,
ol {
  margin: 0 0 1em; padding-left: 1.25em;
}
li + li {
  margin-top: 0.25em;
}
li::marker {
  color: var(--text-subtle);
}
code,
kbd,
samp,
pre {
  font-family: var(--ff-mono); font-size: 0.875em;
}
:not(pre) > code {
  padding: 0.15em 0.4em;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.85em;
}
pre {
  margin: 0 0 1em;
  padding: var(--space-4) var(--space-5);
  overflow-x: auto;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-text);
  line-height: 1.65;
}
pre:last-child {
  margin-bottom: 0;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.75em;
  font-weight: var(--fw-semibold);
  line-height: 1.5;
  text-align: center;
}
mark {
  padding: 0 0.2em; border-radius: 3px; background: var(--mark-bg); color: inherit;
}
small {
  font-size: var(--fs-sm);
}
abbr[title] {
  text-decoration: underline dotted; cursor: help;
}
blockquote {
  margin: 0 0 1em;
  padding: var(--space-1) 0 var(--space-1) var(--space-5);
  border-left: 3px solid var(--primary);
  color: var(--text-muted);
  font-size: var(--fs-md);
}
blockquote footer {
  margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--text-subtle);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ---- 3. Layout ---- */
.container {
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter);
}
.section {
  padding-block: var(--space-20);
}
.stack {
  display: flex; flex-direction: column; gap: var(--gap, var(--space-4));
}
.cluster {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, var(--space-3));
}
.split {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap, var(--space-4));
}
.grid {
  display: grid;
  gap: var(--gap, var(--space-5));
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 240px)), 1fr));
}

/* ---- 4. Typography ---- */
.display {
  font-size: var(--fs-5xl); font-weight: var(--fw-extrabold); line-height: 1.04; letter-spacing: -0.038em;
}
.h1 {
  font-size: var(--fs-4xl);
}
.h2 {
  font-size: var(--fs-3xl);
}
.h3 {
  font-size: var(--fs-xl);
}
.text-subtle {
  color: var(--text-subtle);
}
a[aria-disabled="true"] {
  color: var(--text-subtle); text-decoration: none; pointer-events: none; cursor: not-allowed;
}
.msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.msg > .icon {
  width: 1.125rem; height: 1.125rem; margin-top: 0.0625rem;
}
.msg strong {
  color: inherit;
}

/* ---- 5. Icons ---- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: -0.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- 6. Buttons ---- */
.btn {
  --btn-bg: var(--surface);
  --btn-bg-hover: var(--surface-2);
  --btn-color: var(--text);
  --btn-border: var(--border-strong);
  --btn-border-hover: var(--border-hover);
  --btn-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  --btn-shadow-hover: 0 2px 6px -1px rgba(15, 23, 42, 0.1), inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  --btn-lift: 0px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  height: var(--control-h);
  padding: 0 1rem;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-color);
  font: var(--fw-semibold) var(--fs-sm) / 1 var(--ff-sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--btn-shadow);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), filter var(--dur-fast);
}
.btn:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-border-hover);
  color: var(--btn-color);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(calc(var(--btn-lift) * -1));
}
.btn:active {
  transform: translateY(1px) scale(0.985); box-shadow: var(--btn-shadow); transition-duration: 60ms;
}
.btn:focus-visible {
  outline: none; box-shadow: var(--btn-shadow), 0 0 0 2px var(--surface), 0 0 0 4px var(--focus);
}
.btn .icon {
  width: 1.125em; height: 1.125em; vertical-align: 0;
}
.btn-primary {
  --btn-bg: var(--primary-grad);
  --btn-bg-hover: var(--primary-grad-hover);
  --btn-color: var(--on-primary);
  --btn-border: var(--brand-700);
  --btn-border-hover: var(--brand-700);
  --btn-shadow: var(--shadow-primary), var(--inner-highlight);
  --btn-shadow-hover: var(--shadow-primary-lg), var(--inner-highlight);
  --btn-lift: 1px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.btn-soft {
  --btn-bg: var(--primary-soft);
  --btn-bg-hover: var(--primary-soft-hover);
  --btn-color: var(--primary-text);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-shadow: none;
  --btn-shadow-hover: none;
}
.btn-outline {
  --btn-bg: transparent;
  --btn-bg-hover: var(--primary-soft);
  --btn-color: var(--primary-text);
  --btn-border: color-mix(in srgb, var(--primary) 55%, transparent);
  --btn-border-hover: var(--primary);
  --btn-shadow: none;
  --btn-shadow-hover: none;
}
.btn-ghost {
  --btn-bg: transparent;
  --btn-bg-hover: var(--surface-3);
  --btn-color: var(--text-muted);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-shadow: none;
  --btn-shadow-hover: none;
}
.btn-ghost:hover {
  color: var(--text);
}
.btn-danger-soft {
  --btn-bg: var(--danger-soft);
  --btn-bg-hover: color-mix(in srgb, var(--danger) 16%, var(--surface));
  --btn-color: var(--danger-text);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-shadow: none;
  --btn-shadow-hover: none;
}
.btn-white {
  --btn-bg: #ffffff;
  --btn-bg-hover: #f8fafc;
  --btn-color: var(--brand-800);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --btn-shadow: 0 1px 2px rgba(15, 23, 42, 0.15), 0 6px 16px -6px rgba(15, 23, 42, 0.35);
  --btn-lift: 1px;
}
.btn-xs {
  height: var(--control-h-xs); padding: 0 0.5625rem; gap: 0.375em; font-size: 0.75rem; border-radius: var(--radius-sm);
}
.btn-sm {
  height: var(--control-h-sm); padding: 0 0.75rem; font-size: 0.8125rem; border-radius: var(--radius-sm);
}
.btn-lg {
  height: var(--control-h-lg); padding: 0 1.375rem; font-size: var(--fs-base); border-radius: var(--radius-md);
}
.btn-icon {
  width: var(--control-h); padding: 0;
}
.btn-icon.btn-xs {
  width: var(--control-h-xs);
}
.btn-icon.btn-sm {
  width: var(--control-h-sm);
}
.btn-icon.btn-lg {
  width: var(--control-h-lg);
}
.btn-icon .icon {
  width: 1.25em; height: 1.25em;
}
.btn-icon.btn-lg .icon {
  width: 1.375rem; height: 1.375rem;
}
.btn-block {
  display: flex; width: 100%;
}
.btn kbd {
  margin-left: 0.25rem; padding: 0 0.35em; border-color: color-mix(in srgb, currentColor 30%, transparent); background: transparent; color: inherit; opacity: 0.75; font-size: 0.6875rem;
}
.btn .count {
  position: static; min-width: 1.125rem; height: 1.125rem; margin-left: 0.125rem; padding: 0 0.3rem; background: var(--primary); color: #ffffff; font-size: 0.625rem; box-shadow: none;
}
.btn-primary .count {
  background: rgba(255, 255, 255, 0.25);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.6);
  pointer-events: none;
}
.btn[aria-busy="true"] {
  cursor: progress; pointer-events: none;
}
.btn[aria-busy="true"]::before {
  content: "";
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-icon[aria-busy="true"] > .icon {
  display: none;
}

/* ---- 7. Forms ---- */
.field {
  display: flex; flex-direction: column; gap: 0.375rem; min-width: 0;
}
.label {
  font-size: 0.8125rem; font-weight: var(--fw-semibold); color: var(--text); letter-spacing: -0.003em;
}
.req {
  margin-left: 2px; color: var(--danger);
}
.opt {
  margin-left: 4px; font-weight: var(--fw-regular); color: var(--text-subtle);
}
.input,
.select,
.textarea {
  width: 100%;
  height: var(--control-h);
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background-color: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: var(--input-fs);
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  appearance: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--text-subtle); opacity: 0.85;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--border-hover);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--ring);
}
.input:disabled,
.select:disabled,
.textarea:disabled {
  background-color: var(--surface-2); color: var(--text-subtle); border-color: var(--border); box-shadow: none; cursor: not-allowed;
}
.input[readonly] {
  background-color: var(--surface-2); box-shadow: none;
}
.textarea {
  height: auto; min-height: 7rem; padding: 0.625rem 0.75rem; resize: vertical; line-height: 1.55;
}
.select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f8ba3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 1rem;
  cursor: pointer;
}
.select[multiple] {
  height: auto; padding: 0.375rem; background-image: none;
}
.input[aria-invalid="true"],
.select[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--danger) !important;
}
.input[aria-invalid="true"]:focus,
.select[aria-invalid="true"]:focus,
.textarea[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px var(--ring-danger);
}
.input.is-valid,
.select.is-valid,
.textarea.is-valid {
  border-color: var(--success);
}
.help {
  margin: 0; font-size: 0.8125rem; color: var(--text-muted);
}
.stepper {
  display: inline-flex; align-items: stretch;
}
.stepper .input {
  width: 4.5rem; text-align: center; border-radius: 0; font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.stepper .input::-webkit-outer-spin-button,
.stepper .input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.stepper .btn {
  box-shadow: none;
}
.stepper .btn:hover {
  transform: none;
}
.stepper .btn:first-child {
  border-radius: var(--radius) 0 0 var(--radius); margin-right: -1px;
}
.stepper .btn:last-child {
  border-radius: 0 var(--radius) var(--radius) 0; margin-left: -1px;
}
.check {
  display: inline-flex; align-items: flex-start; gap: 0.625rem; font-size: var(--fs-sm); color: var(--text); cursor: pointer;
}
.check input {
  appearance: none;
  display: grid;
  place-content: center;
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.125rem 0 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.check input[type="radio"] {
  border-radius: 50%;
}
.check input::before {
  content: "";
  width: 0.625rem;
  height: 0.625rem;
  background: #ffffff;
  transform: scale(0);
  transition: transform var(--dur-fast) var(--ease-spring);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input[type="radio"]::before {
  width: 0.4375rem; height: 0.4375rem; border-radius: 50%; clip-path: none;
}
.check input:hover {
  border-color: var(--border-hover);
}
.check input:checked,
.check input[type="checkbox"]:indeterminate {
  border-color: var(--brand-700); background: var(--primary-grad); box-shadow: var(--inner-highlight);
}
.check input:checked::before {
  transform: scale(1);
}
.check input[type="checkbox"]:indeterminate::before {
  width: 0.5rem; height: 2px; clip-path: none; transform: scale(1);
}
.check input:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus);
}
.check input:disabled {
  cursor: not-allowed; opacity: 0.5;
}
.check:has(input:disabled) {
  color: var(--text-subtle); cursor: not-allowed;
}
.check input[aria-invalid="true"] {
  border-color: var(--danger);
}
.switch {
  display: inline-flex; align-items: center; gap: 0.625rem; font-size: var(--fs-sm); cursor: pointer;
}
.switch input {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 2.5rem;
  height: 1.5rem;
  margin: 0;
  border-radius: var(--radius-full);
  background: var(--switch-off);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.15);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.switch input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.3), 0 1px 1px rgba(15, 23, 42, 0.1);
  transition: transform var(--dur) var(--ease-spring);
}
.switch input:checked {
  background: var(--primary);
}
.switch input:checked::before {
  transform: translateX(1rem);
}
.switch input:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus);
}
.switch input:disabled {
  opacity: 0.5; cursor: not-allowed;
}
.strength {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
}
.strength i {
  height: 4px; border-radius: var(--radius-full); background: var(--surface-3); transition: background-color var(--dur);
}
.rating {
  display: inline-flex; flex-direction: row-reverse; gap: 2px;
}
.rating input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.rating label {
  color: var(--border-strong); cursor: pointer; transition: color var(--dur-fast), transform var(--dur-fast);
}
.rating label .icon {
  width: 1.5rem; height: 1.5rem; fill: currentColor;
}
.rating label:hover,
.rating label:hover ~ label,
.rating input:checked ~ label {
  color: var(--amber-400);
}
.rating label:hover {
  transform: scale(1.12);
}
.rating input:focus-visible + label {
  outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
.swatches {
  display: flex; flex-wrap: wrap; gap: 0.625rem;
}
.fieldset {
  margin: 0; padding: 0; border: 0; min-width: 0;
}
.fieldset legend {
  margin-bottom: var(--space-3); padding: 0; font-size: 0.8125rem; font-weight: var(--fw-semibold);
}
.form-grid {
  display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- 9. Badges, Tags, Chips ---- */
.badge {
  --badge-bg: var(--surface-3);
  --badge-color: var(--text-muted);
  --badge-border: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.375rem;
  padding: 0 0.5rem;
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-full);
  background: var(--badge-bg);
  color: var(--badge-color);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}
.badge .icon {
  width: 0.875rem; height: 0.875rem; vertical-align: 0;
}
.badge-success {
  --badge-bg: var(--success-soft); --badge-color: var(--success-text); --badge-border: color-mix(in srgb, var(--success) 20%, transparent);
}
.badge-warning {
  --badge-bg: var(--warning-soft); --badge-color: var(--warning-text); --badge-border: color-mix(in srgb, var(--warning) 25%, transparent);
}
.badge-danger {
  --badge-bg: var(--danger-soft); --badge-color: var(--danger-text); --badge-border: color-mix(in srgb, var(--danger) 20%, transparent);
}
.count {
  display: inline-grid;
  place-items: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3125rem;
  border-radius: var(--radius-full);
  background: var(--danger-solid);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: var(--fw-medium);
  text-decoration: none;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
a.tag:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent); background: var(--primary-soft); color: var(--primary-text);
}
.status {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm);
}
.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--status-color, var(--text-subtle));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--status-color, var(--text-subtle)) 22%, transparent);
}

/* ---- 10. Alerts, Banners, Toasts, Notifications ---- */
.alert {
  --alert-bg: var(--surface-2);
  --alert-border: var(--border);
  --alert-color: var(--text);
  --alert-icon: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--alert-border);
  border-radius: var(--radius-lg);
  background: var(--alert-bg);
  color: var(--alert-color);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.alert > .icon {
  margin-top: 0.0625rem; color: var(--alert-icon);
}
.alert-body {
  flex: 1; min-width: 0;
}
.alert-title {
  margin: 0 0 0.125rem; font-weight: var(--fw-semibold);
}
.alert-body p {
  margin: 0;
}
.alert-close {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.25rem -0.375rem -0.25rem 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
}
.alert-close:hover {
  opacity: 1; background: rgba(127, 127, 127, 0.14);
}
.alert-close .icon {
  width: 1rem; height: 1rem;
}
.alert-warning {
  --alert-bg: var(--warning-soft); --alert-border: var(--warning-border); --alert-color: var(--warning-text); --alert-icon: var(--warning);
}
.alert-danger {
  --alert-bg: var(--danger-soft); --alert-border: var(--danger-border); --alert-color: var(--danger-text); --alert-icon: var(--danger);
}
.alert.is-leaving {
  opacity: 0; transform: translateY(-4px); transition: opacity var(--dur), transform var(--dur);
}
.toast-region {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: min(390px, calc(100vw - 2rem));
  pointer-events: none;
}
.toast {
  --toast-accent: var(--primary);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-xl);
  pointer-events: auto;
  animation: toast-in var(--dur-slow) var(--ease-spring);
}
.toast > .icon {
  margin-top: 0.0625rem; color: var(--toast-accent);
}
.toast .alert-title {
  color: var(--text);
}
.toast .toast-text {
  margin: 0; color: var(--text-muted);
}
.toast-action {
  margin: -0.25rem 0;
}
.toast.is-leaving {
  opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity var(--dur), transform var(--dur);
}
@media (max-width: 480px) {
  .toast-region {
    left: 50%; right: auto; transform: translateX(-50%);
  }
}
.count.is-leaving {
  animation: count-out 0.25s var(--ease) forwards;
}
@keyframes count-out { to { opacity: 0; transform: scale(0); } }

/* ---- 11. Cards ---- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.price {
  display: flex; align-items: baseline; gap: 0.25rem; margin: var(--space-3) 0;
}

/* ---- 12. Navigation ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--border);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.navbar-inner {
  display: flex; align-items: center; gap: var(--space-4); height: 4rem;
}
.navbar-brand {
  display: inline-flex; align-items: center; gap: 0.625rem; color: var(--text); font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -0.025em; text-decoration: none;
}
.navbar-brand:hover {
  color: var(--text);
}
.nav-links {
  display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; list-style: none;
}
.nav-links li {
  margin: 0;
}
.nav-link {
  display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.5rem 0.75rem; border-radius: var(--radius); color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; transition: background-color var(--dur-fast), color var(--dur-fast);
}
.nav-link:hover {
  background: var(--surface-3); color: var(--text);
}
.nav-link[aria-current="page"] {
  color: var(--text); font-weight: var(--fw-semibold); background: var(--surface-3);
}
.navbar-actions {
  display: flex; align-items: center; gap: var(--space-2); margin-left: auto;
}
.navbar-toggle {
  display: none;
}
@media (max-width: 860px) {
  .navbar-toggle {
    display: inline-flex;
  }
}
@media (max-width: 860px) {
  .navbar .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3) var(--gutter) var(--space-4);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }
}
@media (max-width: 860px) {
  .navbar.is-open .nav-links {
    display: flex; animation: fade-in var(--dur) var(--ease);
  }
}
@media (max-width: 860px) {
  .navbar .nav-link {
    padding: 0.75rem;
  }
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: -1px;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text-muted);
  font: var(--fw-semibold) var(--fs-sm) / 1.2 var(--ff-sans);
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.tab:hover {
  color: var(--text);
}
.tab[aria-selected="true"] {
  border-bottom-color: var(--primary); color: var(--text);
}
.tab .icon {
  width: 1rem; height: 1rem;
}
.tab:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--focus); border-radius: var(--radius-xs);
}
.tab .count {
  background: var(--surface-3); color: var(--text-muted);
}
.tab[aria-selected="true"] .count {
  background: var(--primary-soft); color: var(--primary-text);
}
.step {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); margin: 0; color: var(--text-muted); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
.step::after {
  content: ""; position: absolute; top: 1rem; left: calc(50% + 1.25rem); right: calc(-50% + 1.25rem); height: 2px; border-radius: 2px; background: var(--border);
}
.step:last-child::after {
  display: none;
}
@media (max-width: 480px) {
  .step {
    font-size: var(--fs-xs);
  }
}

/* ---- 14. Modals And Drawers ---- */
.modal {
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-xl);
  overflow: auto;
}
.modal[open] {
  animation: pop-in var(--dur-slow) var(--ease-spring);
}
.modal::backdrop {
  background: var(--overlay); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade-in var(--dur) var(--ease);
}

/* ---- 15. Progress, Spinners, Skeletons, Empty States ---- */
.spinner {
  display: inline-block; width: 1.25rem; height: 1.25rem; border: 2px solid var(--border-strong); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle;
}
.spinner-sm {
  width: 1rem; height: 1rem;
}

/* ---- 16. Avatars, Lists, Timeline ---- */
.avatar {
  --avatar-size: 2.5rem;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  background: var(--avatar-bg, var(--primary-soft));
  color: var(--avatar-color, var(--primary-text));
  font-size: calc(var(--avatar-size) * 0.38);
  font-weight: var(--fw-semibold);
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}
.avatar.is-hue {
  --avatar-bg: color-mix(in srgb, var(--hue) var(--hue-tint), var(--surface)); --avatar-color: color-mix(in srgb, var(--hue) 82%, var(--mix-ink));
}
.avatar img {
  width: 100%; height: 100%; border-radius: inherit; object-fit: cover;
}
.avatar-sm {
  --avatar-size: 2rem;
}
.list {
  margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs);
}

/* ---- 17. Accordions ---- */
.accordion {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-xs);
}
.accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}
.accordion-item summary {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--dur-fast);
}
.accordion-item summary::-webkit-details-marker {
  display: none;
}
.accordion-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-left: auto;
  margin-right: 0.25rem;
  border-right: 2px solid var(--text-subtle);
  border-bottom: 2px solid var(--text-subtle);
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur) var(--ease);
}
.accordion-item[open] summary::after {
  transform: rotate(225deg) translateY(-2px);
}
.accordion-item summary:hover {
  background: var(--surface-2);
}
.accordion-item summary:focus-visible {
  outline: none; box-shadow: inset 0 0 0 2px var(--focus);
}
.accordion-item[aria-disabled="true"] summary {
  opacity: 0.5; pointer-events: none;
}
.accordion-item summary .badge {
  margin-left: auto;
}
.accordion-item summary .badge + * {
  margin-left: 0;
}
.accordion-item summary:has(.badge)::after {
  margin-left: var(--space-2);
}
.accordion-body {
  padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); font-size: var(--fs-sm);
}
.accordion-body > .accordion {
  margin-top: var(--space-2);
}
.accordion-separated {
  display: flex; flex-direction: column; gap: var(--space-3); border: 0; background: none; box-shadow: none; overflow: visible;
}
.accordion-separated .accordion-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); overflow: hidden; transition: box-shadow var(--dur), border-color var(--dur);
}
.accordion-separated .accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}
.accordion-separated .accordion-item[open] {
  border-color: var(--border-strong); box-shadow: var(--shadow-md);
}
@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }
}
@supports (interpolate-size: allow-keywords) {
  .accordion-item::details-content {
    height: 0; overflow: clip; transition: height var(--dur-slow) var(--ease), content-visibility var(--dur-slow) allow-discrete;
  }
}
@supports (interpolate-size: allow-keywords) {
  .accordion-item[open]::details-content {
    height: auto;
  }
}

/* ---- 18. Calendar ---- */
.calendar {
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden;
}
.cal-event {
  display: block;
  width: 100%;
  padding: 2px 6px;
  border: 0;
  border-left: 3px solid var(--ev);
  border-radius: var(--radius-xs);
  background: var(--ev-bg);
  color: var(--ev-text);
  font: var(--fw-medium) 0.75rem / 1.45 var(--ff-sans);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: filter var(--dur-fast), transform var(--dur-fast);
}
.cal-event:hover {
  filter: saturate(1.3) brightness(0.98); transform: translateX(1px);
}
.cal-event:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 1px;
}
@media (max-width: 640px) {
  .cal-event {
    display: none;
  }
}

/* ---- 19. Tables And Data Tables ---- */
.table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm);
}
.table th {
  padding: 0.6875rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td {
  padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tfoot td {
  border-top: 1px solid var(--border); border-bottom: 0; background: var(--surface-2); font-weight: var(--fw-semibold);
}
.table .num {
  text-align: right; font-variant-numeric: tabular-nums;
}

/* ---- 20. Page Patterns ---- */
.site-footer {
  padding-block: var(--space-12) var(--space-8); border-top: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm);
}
.footer-grid {
  display: grid; gap: var(--space-8); grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer-brand {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .footer-brand {
    grid-column: auto;
  }
}
.footer-brand p {
  max-width: 34ch; margin-top: var(--space-3); color: var(--text-muted);
}
.footer-col h4 {
  margin: 0 0 var(--space-3); color: var(--text); font-size: var(--fs-sm);
}
.footer-col ul {
  margin: 0; padding: 0; list-style: none;
}
.footer-col li + li {
  margin-top: var(--space-2);
}
.footer-col a {
  color: var(--text-muted); text-decoration: none;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--border); color: var(--text-subtle);
}

/* ---- 21. Charts ---- */
:root {
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  --s6: #008300;
  --s7: #6250d6;
  --s8: #e34948;
  --chart-surface: var(--surface);
  --chart-grid: #edf1f6;
  --chart-axis: #cfd7e3;
  --heat-1: #cde2fb;
  --heat-2: #9ec5f4;
  --heat-3: #6da7ec;
  --heat-4: #3987e5;
  --heat-5: #256abf;
  --heat-6: #104281;
  --funnel-1: #184f95;
  --funnel-2: #256abf;
  --funnel-3: #3987e5;
  --funnel-4: #6da7ec;
  --gauge-track: #dbeafe;
  --chart-compare: var(--text-subtle);
  --heat-ink-lo: #0f172a;
  --heat-ink-hi: #ffffff;
}
:root[data-theme="dark"] {
  --s1: #3987e5;
  --s2: #d95926;
  --s3: #199e70;
  --s4: #c98500;
  --s5: #d55181;
  --s6: #008300;
  --s7: #9085e9;
  --s8: #e66767;
  --chart-grid: #1a2439;
  --chart-axis: #2c3955;
  --heat-1: #13254a;
  --heat-2: #183a72;
  --heat-3: #1c5cab;
  --heat-4: #2a78d6;
  --heat-5: #5598e7;
  --heat-6: #9ec5f4;
  --funnel-1: #86b6ef;
  --funnel-2: #5598e7;
  --funnel-3: #3987e5;
  --funnel-4: #256abf;
  --gauge-track: #1b2b4d;
  --heat-ink-lo: #ffffff;
  --heat-ink-hi: #0f172a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    --s6: #008300;
    --s7: #9085e9;
    --s8: #e66767;
    --chart-grid: #1a2439;
    --chart-axis: #2c3955;
    --heat-1: #13254a;
    --heat-2: #183a72;
    --heat-3: #1c5cab;
    --heat-4: #2a78d6;
    --heat-5: #5598e7;
    --heat-6: #9ec5f4;
    --funnel-1: #86b6ef;
    --funnel-2: #5598e7;
    --funnel-3: #3987e5;
    --funnel-4: #256abf;
    --gauge-track: #1b2b4d;
    --heat-ink-lo: #ffffff;
    --heat-ink-hi: #0f172a;
  }
}
.chart {
  position: relative; width: 100%;
}
.chart svg {
  display: block; width: 100%; overflow: visible;
}
.chart text {
  fill: var(--text-subtle); font-family: var(--ff-sans); font-size: 11px; font-variant-numeric: tabular-nums;
}
.chart .grid line {
  stroke: var(--chart-grid); stroke-width: 1; shape-rendering: crispEdges;
}
.chart .mark {
  cursor: pointer; transition: opacity var(--dur-fast), filter var(--dur-fast);
}
.chart .mark:focus {
  outline: none;
}
.chart .mark:hover,
.chart .mark:focus-visible {
  filter: brightness(1.1) saturate(1.1);
}
@media (prefers-reduced-motion: reduce) {
  .chart * {
    transition-delay: 0s !important;
  }
}

/* ---- 23. Motion ---- */
.typing {
  display: inline-flex; gap: 4px; padding: 0.625rem 0.875rem; border-radius: 1rem 1rem 1rem 0.25rem; background: var(--surface-3);
}
.typing i {
  width: 0.4375rem; height: 0.4375rem; border-radius: 50%; background: var(--text-subtle); animation: typing 1.2s infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---- 24. Utilities ---- */
.gap-2 {
  --gap: var(--space-2);
}
.gap-3 {
  --gap: var(--space-3);
}

/* ---- 25. Website Shell ---- */
.site {
  min-height: calc(100dvh - 3.75rem);
}
.site [id] {
  scroll-margin-top: 7.5rem;
}

/* ---- 27. Calendar Page ---- */
body[data-view-active="calendar"] .site {
  min-height: 0;
}

/* ---- 28. Service Cards And The Cards Page ---- */
:root {
  --svc-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 3px 8px -3px rgba(15, 23, 42, 0.07), 0 16px 32px -20px rgba(15, 23, 42, 0.16);
  --svc-lift: 0 2px 4px rgba(15, 23, 42, 0.05), 0 14px 28px -12px rgba(15, 23, 42, 0.16);
  --svc-drag: 0 14px 28px -10px rgba(15, 23, 42, 0.22), 0 36px 72px -24px rgba(15, 23, 42, 0.36);
  --svc-rim: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --svc-top: var(--surface);
  --svc-bottom: color-mix(in srgb, var(--surface-2) 75%, var(--surface));
  --svc-tint: 8%;
  --svc-glow: 38%;
}
:root[data-theme="dark"] {
  --svc-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 32px -18px rgba(0, 0, 0, 0.85);
  --svc-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 22px 44px -18px rgba(0, 0, 0, 0.9);
  --svc-drag: 0 18px 36px -10px rgba(0, 0, 0, 0.7), 0 40px 80px -24px rgba(0, 0, 0, 0.9);
  --svc-rim: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --svc-top: color-mix(in srgb, var(--surface-3) 55%, var(--surface));
  --svc-bottom: var(--surface);
  --svc-tint: 15%;
  --svc-glow: 55%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --svc-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 32px -18px rgba(0, 0, 0, 0.85);
    --svc-lift: 0 2px 4px rgba(0, 0, 0, 0.5), 0 22px 44px -18px rgba(0, 0, 0, 0.9);
    --svc-drag: 0 18px 36px -10px rgba(0, 0, 0, 0.7), 0 40px 80px -24px rgba(0, 0, 0, 0.9);
    --svc-rim: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    --svc-top: color-mix(in srgb, var(--surface-3) 55%, var(--surface));
    --svc-bottom: var(--surface);
    --svc-tint: 15%;
    --svc-glow: 55%;
  }
}

/* ---- 31. Login Page ---- */
.login {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main" "brand";
  gap: var(--space-3);
  min-height: calc(100dvh - 6.75rem);
  padding: var(--space-3);
}
@media (min-width: 960px) {
  .login {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand main";
  }
}
@media (min-width: 1280px) {
  .login {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  }
}

/* ---- 32. Account Management Page ---- */
.acct {
  position: relative; padding: var(--space-6) 0 var(--space-16); overflow-x: clip;
}
.acct::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 21rem;
  background:
  radial-gradient(36% 70% at 6% 0%, color-mix(in srgb, var(--violet-500) 12%, transparent), transparent 70%),
  radial-gradient(34% 60% at 58% 0%, color-mix(in srgb, var(--brand-400) 13%, transparent), transparent 70%),
  radial-gradient(26% 50% at 100% 20%, color-mix(in srgb, var(--accent-400) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.qr-code {
  display: grid; place-items: center; flex-shrink: 0; width: 11rem; height: 11rem; padding: 0.375rem; border-radius: var(--radius-md); background: var(--gray-0); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--border);
}
.qr-code svg {
  display: block; width: 100%; height: 100%;
}
.qr-code path {
  fill: var(--gray-950);
}
@media (max-width: 640px) {
  .acct {
    padding-top: var(--space-5);
  }
}
@media (max-width: 640px) {
  .acct .btn-sm:not([data-tooltip])::after,
  .acct .btn-xs:not([data-tooltip])::after {
    content: ""; position: absolute; inset: -0.375rem 0;
  }
}
@media (max-width: 640px) {
  .acct .btn-icon.btn-sm:not([data-tooltip])::after {
    inset: -0.25rem;
  }
}

/* ---- 34. Page Layouts Page ---- */
.frame {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); align-items: start; width: 100%; max-width: var(--frame-max, var(--container)); margin-inline: auto; padding: var(--space-6) var(--gutter) var(--space-16);
}
.frame > * {
  min-width: 0;
}
:root {
  --lay-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 10px -4px rgba(15, 23, 42, 0.07), 0 18px 36px -24px rgba(15, 23, 42, 0.24);
  --lay-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.05), 0 14px 28px -12px rgba(15, 23, 42, 0.18), 0 36px 64px -32px rgba(15, 23, 42, 0.34);
  --lay-rim: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --lay-veil: 62%;
}
:root[data-theme="dark"] {
  --lay-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 36px -20px rgba(0, 0, 0, 0.85);
  --lay-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 28px 56px -22px rgba(0, 0, 0, 0.95);
  --lay-rim: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --lay-veil: 70%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lay-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 36px -20px rgba(0, 0, 0, 0.85);
    --lay-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.5), 0 28px 56px -22px rgba(0, 0, 0, 0.95);
    --lay-rim: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --lay-veil: 70%;
  }
}

/* ---- 35. Work Queue Layout ---- */
body[data-view-active="inbox"] .site {
  min-height: 0;
}
.co {
  position: relative; isolation: isolate; padding-bottom: var(--space-16);
}
.co::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 34rem;
  background:
  radial-gradient(38% 55% at 18% 0%, color-mix(in srgb, var(--brand-400) 13%, transparent), transparent 70%),
  radial-gradient(30% 45% at 82% 8%, color-mix(in srgb, var(--violet-500) 9%, transparent), transparent 70%);
  pointer-events: none;
}
.co .strength {
  margin-top: 0.125rem;
}
@media (max-width: 639px) {
  .co {
    padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  }
}
@media (max-width: 639px) {
  body[data-view-active="checkout"] .toast-region {
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
  }
}
.art {
  position: relative; isolation: isolate; overflow-x: clip;
}
@media print {
  body[data-view-active="article"] {
    --bg: var(--gray-0);
    --surface: var(--gray-0);
    --surface-2: var(--gray-50);
    --surface-3: var(--gray-100);
    --border: var(--gray-200);
    --border-strong: var(--gray-300);
    --text: var(--gray-900);
    --text-muted: var(--gray-600);
    --text-subtle: var(--gray-500);
    --primary-text: var(--brand-700);
    --primary-soft: var(--brand-50);
    --link: var(--brand-700);
    --code-bg: var(--gray-50);
    --code-text: var(--gray-900);
    background: var(--gray-0);
  }
}
@media print {
  body[data-view-active="article"] .toast-region,
  .art dialog {
    display: none !important;
  }
}
@media print {
  .art {
    overflow: visible;
  }
}
