:root {
  --coral-1: #FFE7E6;
  --coral-2: #F7AFAC;
  --coral-3: #F3918D;
  --coral-4: #F0746F;
  --coral-5: #ED5650;
  --coral-6: #CF4741;
  --coral-7: #B13833;
  --coral-8: #932824;
  --coral-9: #751915;
  --gris-1: #F7F7F7;
  --gris-2: #F1F1F1;
  --gris-3: #E6E6E6;
  --gris-4: #D5D6D7;
  --gris-50: #ADADAE;
  --gris-6: #9E9E9E;
  --gris-7: #575757;
  --gris-8: #333333;
  --gris-9: #1D1D1D;
  --dark: #232323;
  --dark--10: #3C3C3C;
  --dark--20: #404040;
  --dark--25: #ADADAE;
  --accent-blue: #62EFFF;
  --accent-lime-2: #9DDD05;
  --accent-lime: #D2FF55;
  --accent-lime--1: #F4FFC7;
  --accent-yellow: #DDCB05;
  --brand-coral: var(--coral-5);
  --brand-charcoal: var(--gris-8);
  --brand-gray: var(--gris-4);
  --brand-mist: var(--gris-2);
  --brand-white: #FFFFFF;
  --bg-default: var(--brand-mist);
  --bg-surface: var(--brand-white);
  --bg-strong: var(--brand-charcoal);
  --bg-accent: var(--brand-coral);
  --text-default: var(--brand-charcoal);
  --text-muted: rgba(51, 51, 51, 0.65);
  --text-inverse: var(--brand-mist);
  --text-accent: var(--brand-coral);
  --border-soft: var(--brand-gray);
  --border-strong: var(--brand-charcoal);
  --focus-ring: var(--brand-coral);
  --overlay-scrim: rgba(51, 51, 51, 0.48);
  --font-display: Safiro, Space Grotesk, system-ui, -apple-system, sans-serif;
  --font-body: Satoshi, Manrope, system-ui, -apple-system, sans-serif;
  --font-mono: JetBrains Mono, ui-monospace, SF Mono, Menlo, Consolas, monospace;
  --fs-display-xl: 2rem;
  --fs-display-lg: 1.625rem;
  --fs-title-md: 1.125rem;
  --fs-body-md: 1rem;
  --fs-body-sm: 0.875rem;
  --fs-caption: 0.75rem;
  --fs-numeric-xl: 3rem;
  --fs-numeric-lg: 2rem;
  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --r-none: 0;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-chip: 14px;
  --r-card: 20px;
  --r-pill: 999px;
  --r-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --stroke-thin: 1px;
  --stroke-regular: 1.5px;
  --grid-max: 1280px;
  --grid-gutter-d: 24px;
  --grid-gutter-t: 16px;
  --grid-gutter-m: 16px;
}

@font-face {
  font-family: "Safiro";
  src: url("../../fonts/Safiro-Medium.woff2") format("woff2"), url("../../fonts/Safiro-Medium.woff") format("woff"), url("../../fonts/Safiro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../../fonts/Satoshi-Variable.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../../fonts/Satoshi-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../../fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../../fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../../fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../../fonts/Satoshi-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1, h2, h3, h4, h5, h6,
p {
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg-default);
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  line-height: var(--lh-tight);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-default);
  margin: 0;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  line-height: var(--lh-tight);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text-default);
  margin: 0;
}

h3, .h3 {
  font-family: var(--font-display);
  font-size: var(--fs-title-md);
  line-height: var(--lh-tight);
  font-weight: 500;
  color: var(--text-default);
  margin: 0;
}

h4, .h4 {
  font-family: var(--font-display);
  font-size: var(--fs-body-md);
  line-height: var(--lh-tight);
  font-weight: 500;
  color: var(--text-default);
  margin: 0;
}

p, .body {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-normal);
  color: var(--text-default);
  margin: 0;
}

.body-sm {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
}

.caption {
  font-size: var(--fs-caption);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

small {
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

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

.numeric-xl,
.numeric-lg,
.price {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.numeric-xl {
  font-size: var(--fs-numeric-xl);
  line-height: 1;
}

.numeric-lg {
  font-size: var(--fs-numeric-lg);
  line-height: 1.1;
}

.price {
  font-size: var(--fs-body-md);
  line-height: 1;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.stack {
  --stack-gap: var(--space-4);
  display: block;
}

.stack > * + * {
  margin-block-start: var(--stack-gap);
}

.stack-sm {
  --stack-gap: var(--space-2);
}

.stack-lg {
  --stack-gap: var(--space-6);
}

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

.muted {
  color: var(--text-muted);
}

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

.strong {
  font-family: var(--font-display);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  line-height: var(--lh-normal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hairline {
  display: block;
  width: 100%;
  height: var(--stroke-thin);
  background: var(--border-soft);
  border: 0;
  margin: 0;
}

.surface {
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
}

.surface-strong {
  background: var(--bg-strong);
  color: var(--text-inverse);
  border-radius: var(--r-card);
}

.coral {
  color: var(--brand-coral);
}

.charcoal {
  color: var(--brand-charcoal);
}

.mist {
  color: var(--brand-mist);
}

.gray {
  color: var(--brand-gray);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  line-height: 1;
  border: var(--stroke-thin) solid transparent;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-default);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.button-primary {
  background: var(--brand-coral);
  color: var(--brand-white);
  border-color: var(--brand-coral);
}

.button-primary:hover,
.button-primary.button-hover {
  background: #B13833;
  border-color: #B13833;
}

.button-primary:active {
  background: #B13833;
  border-color: #B13833;
}

.button-secondary {
  background: var(--brand-charcoal);
  color: var(--brand-white);
  border-color: var(--brand-charcoal);
}

.button-secondary:hover,
.button-secondary.button-hover {
  background: #232323;
  border-color: #232323;
}

.button-secondary:active {
  background: #1D1D1D;
  border-color: #1D1D1D;
}

.button-ghost {
  background: transparent;
  color: var(--brand-charcoal);
  border-color: var(--brand-charcoal);
}

.button-ghost:hover,
.button-ghost.button-hover {
  background: var(--brand-charcoal);
  color: var(--brand-mist);
  border-color: var(--brand-charcoal);
}

.button-ghost:active,
.button-ghost.button-active {
  background: color-mix(in srgb, var(--brand-charcoal) 92%, black);
  color: var(--brand-mist);
  border-color: color-mix(in srgb, var(--brand-charcoal) 92%, black);
}

.button-soft {
  background: var(--brand-mist);
  color: var(--brand-charcoal);
  border-color: var(--brand-mist);
}

.button-soft:hover,
.button-soft.button-hover {
  background: color-mix(in srgb, var(--brand-mist) 82%, var(--brand-charcoal));
  border-color: color-mix(in srgb, var(--brand-mist) 82%, var(--brand-charcoal));
}

.button-soft:active,
.button-soft.button-active {
  background: color-mix(in srgb, var(--brand-mist) 70%, var(--brand-charcoal));
  border-color: color-mix(in srgb, var(--brand-mist) 70%, var(--brand-charcoal));
}

.button-destructive {
  background: transparent;
  color: var(--brand-coral);
  border-color: var(--brand-coral);
}

.button-destructive:hover,
.button-destructive.button-hover {
  background: var(--brand-coral);
  color: var(--brand-white);
  border-color: var(--brand-coral);
}

.button-destructive:active,
.button-destructive.button-active {
  background: #B13833;
  color: var(--brand-white);
  border-color: #B13833;
}

.button-primary.button-active {
  background: #B13833;
  border-color: #B13833;
}

.button-secondary.button-active {
  background: #1D1D1D;
  border-color: #1D1D1D;
}

.button:disabled,
.button-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.button-sm {
  padding: 8px 16px;
  font-size: var(--fs-caption);
  border-radius: var(--r-pill);
}

.button-lg {
  padding: 16px 28px;
  font-size: var(--fs-body-md);
  border-radius: var(--r-pill);
}

.button-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-pill);
}

.button-icon.button-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
}

.button-icon.button-lg {
  width: 48px;
  height: 48px;
  border-radius: var(--r-pill);
}

.button-icon svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.button-focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

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

.component-state-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 120px repeat(5, minmax(0, 1fr));
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
}

.component-state-grid .eyebrow {
  margin: 0;
}

.component-state-grid .label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  color: var(--text-default);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-body-md);
  line-height: 1;
  border: var(--stroke-regular) solid transparent;
  border-radius: var(--r-chip);
  background: transparent;
  color: var(--text-default);
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.chip-outlined {
  background: transparent;
  color: var(--brand-charcoal);
  border-color: var(--brand-charcoal);
}

.chip-outlined:hover,
.chip-outlined.chip-hover {
  background: color-mix(in srgb, var(--brand-charcoal) 6%, transparent);
}

.chip-filled-coral {
  background: var(--brand-coral);
  color: var(--brand-mist);
  border-color: var(--brand-coral);
}

.chip-filled-coral:hover,
.chip-filled-coral.chip-hover {
  background: color-mix(in srgb, var(--brand-coral) 90%, black);
  border-color: color-mix(in srgb, var(--brand-coral) 90%, black);
}

.chip-filled-charcoal {
  background: var(--brand-charcoal);
  color: var(--brand-mist);
  border-color: var(--brand-charcoal);
}

.chip-filled-charcoal:hover,
.chip-filled-charcoal.chip-hover {
  background: color-mix(in srgb, var(--brand-charcoal) 90%, white);
  border-color: color-mix(in srgb, var(--brand-charcoal) 90%, white);
}

.chip-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-caption);
  line-height: 1.3;
  letter-spacing: 0.02em;
  border: var(--stroke-thin) solid transparent;
  border-radius: var(--r-pill);
}

.pill svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.pill-neutral {
  background: var(--brand-mist);
  color: var(--brand-charcoal);
  border-color: var(--border-soft);
}

.pill-strong {
  background: var(--brand-charcoal);
  color: var(--brand-mist);
  border-color: var(--brand-charcoal);
}

.pill-attention {
  background: var(--brand-coral);
  color: var(--brand-mist);
  border-color: var(--brand-coral);
}

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

.input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-normal);
  color: var(--text-default);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-md);
  transition: border-color 120ms ease, box-shadow 120ms ease;
  appearance: none;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:hover,
.input-hover {
  border-color: color-mix(in srgb, var(--brand-charcoal) 30%, var(--border-soft));
}

.input:focus,
.input:focus-visible {
  border-color: var(--brand-coral);
}

.input-focus {
  border-color: var(--brand-coral);
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.input-web.input-focus,
.input-pill.input-focus {
  outline: none;
}

.input:disabled,
.input-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--brand-mist);
}

.input-error {
  border-color: var(--brand-coral);
}

.input-sm {
  padding: 6px 10px;
  font-size: var(--fs-body-sm);
  min-height: 32px;
}

.input-md {
  padding: 10px 12px;
  font-size: var(--fs-body-md);
  min-height: 40px;
}

.input-lg {
  padding: 12px 14px;
  font-size: var(--fs-body-lg, 16px);
  min-height: 48px;
}

.textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-body);
  line-height: var(--lh-normal);
}

.select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  cursor: pointer;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 420px;
}

.field-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-default);
}

.field-helper {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-caption);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}

.field-helper-error {
  color: var(--brand-coral);
}

.field-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
}

@media (max-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}
.input-group {
  position: relative;
}

.input-group .input {
  padding-left: 40px;
}

.input-group .input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-web {
  border-radius: 24px;
  min-height: 80px;
  padding-left: 24px;
  padding-right: 24px;
}

.input-pill {
  border-radius: var(--r-pill);
  padding-left: 20px;
  padding-right: 20px;
  min-height: 40px;
}

.input-pill.input-sm {
  min-height: 40px;
}

.input-pill.input-lg {
  min-height: 48px;
}

.input-filled {
  background: #575757;
  color: var(--brand-mist);
  border-color: #575757;
}

.input-filled::placeholder {
  color: color-mix(in srgb, var(--brand-mist) 55%, transparent);
}

.input-filled:hover:not(:disabled),
.input-filled.input-hover {
  border-color: var(--brand-mist);
}

.input-filled:focus,
.input-filled:focus-visible,
.input-filled.input-focus {
  border-color: var(--brand-mist);
}

.input-filled.input-activated {
  border-color: var(--brand-mist);
}

.input-filled:disabled,
.input-filled.input-disabled {
  color: color-mix(in srgb, var(--brand-mist) 45%, transparent);
  border-color: transparent;
}

.input-outlined {
  background: var(--bg-surface);
  color: var(--text-default);
  border-color: transparent;
}

.input-outlined:hover:not(:disabled),
.input-outlined.input-hover {
  border-color: #D5D6D7;
}

.input-outlined.input-activated {
  border-color: #ADADAE;
}

.input-outlined:focus,
.input-outlined:focus-visible,
.input-outlined.input-focus {
  border-color: #232323;
  border-width: 2px;
}

.input-outlined:disabled,
.input-outlined.input-disabled {
  color: color-mix(in srgb, var(--text-default) 40%, transparent);
  border-color: #E6E6E6;
}

.input-pill:not(.input-filled):not(.input-outlined) {
  background: #F8F8F8;
  border-color: transparent;
  color: var(--text-default);
}

.input-pill:not(.input-filled):not(.input-outlined):hover:not(:disabled),
.input-pill:not(.input-filled):not(.input-outlined).input-hover {
  border-color: #D5D6D7;
}

.input-pill:not(.input-filled):not(.input-outlined).input-activated {
  border-color: #ADADAE;
}

.input-pill:not(.input-filled):not(.input-outlined):focus,
.input-pill:not(.input-filled):not(.input-outlined):focus-visible,
.input-pill:not(.input-filled):not(.input-outlined).input-focus {
  border-color: #232323;
  border-width: 2px;
  outline: none;
}

.input-pill:not(.input-filled):not(.input-outlined):disabled,
.input-pill:not(.input-filled):not(.input-outlined).input-disabled {
  color: color-mix(in srgb, var(--text-default) 40%, transparent);
  border-color: #E6E6E6;
}

.input-activated:not(.input-pill):not(.input-web) {
  border-color: color-mix(in srgb, var(--brand-charcoal) 40%, var(--border-soft));
}

.input.input-required,
.input.input-error,
.input-web.input-required,
.input-web.input-error,
.input-pill:not(.input-filled):not(.input-outlined).input-required,
.input-pill:not(.input-filled):not(.input-outlined).input-error {
  border-color: #B13833;
  border-width: 2px;
}

.field-floating {
  position: relative;
  display: block;
}

.field-floating .input-web {
  padding-top: 28px;
  padding-bottom: 14px;
  min-height: 80px;
}

.field-floating-label {
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: color-mix(in srgb, var(--text-default) 65%, transparent);
  pointer-events: none;
}

.field-floating .input-filled ~ .field-floating-label {
  color: color-mix(in srgb, var(--brand-mist) 70%, transparent);
}

.field-floating .input:disabled ~ .field-floating-label,
.field-floating .input-disabled ~ .field-floating-label {
  color: color-mix(in srgb, currentColor 45%, transparent);
}

.field-label-required {
  color: var(--brand-coral);
  margin-left: 1px;
}

.input-suffix {
  position: relative;
  display: block;
}

.input-suffix > .input {
  padding-right: 44px;
}

.input-suffix-icon {
  position: absolute;
  top: 50%;
  right: var(--space-4);
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-default);
  pointer-events: none;
}

.input-suffix > .input:disabled ~ .input-suffix-icon,
.input-suffix > .input-disabled ~ .input-suffix-icon {
  color: color-mix(in srgb, var(--text-default) 40%, transparent);
}

.input-pill.select {
  background-image: none;
  padding-right: var(--space-4);
}

.select-menu {
  margin-top: var(--space-2);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--space-2);
  box-shadow: var(--shadow-md);
  list-style: none;
  margin-inline: 0;
  max-width: 320px;
}

.select-option {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  color: var(--text-default);
  cursor: pointer;
}

.select-option:hover,
.select-option-active {
  background: var(--brand-mist);
}

.datepicker {
  margin-top: var(--space-2);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-md);
  max-width: 320px;
}

.datepicker-header {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-2);
  background: var(--brand-mist);
  border-radius: var(--r-pill);
}

.datepicker-title {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--text-default);
}

.datepicker-nav {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-default);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-pill);
}

.datepicker-nav:hover {
  background: color-mix(in srgb, var(--text-default) 8%, transparent);
}

.datepicker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.datepicker-day-head,
.datepicker-day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-default);
  border-radius: var(--r-pill);
}

.datepicker-day-head {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  font-size: var(--fs-caption);
}

.datepicker-day-muted {
  color: color-mix(in srgb, var(--text-muted) 60%, transparent);
}

.datepicker-day-selected {
  background: var(--brand-coral);
  color: var(--brand-white);
  font-weight: 500;
}

.datepicker-day-in-range {
  background: color-mix(in srgb, var(--brand-coral) 18%, transparent);
  color: var(--brand-coral);
  border-radius: var(--r-pill);
}

.range-chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.range-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px var(--space-2) 5px var(--space-3);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-default);
}

.range-chip-active {
  background: var(--brand-mist);
  border-color: var(--text-default);
}

.range-chip-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-pill);
}

.range-chip-clear:hover {
  color: var(--text-default);
}

.input-matrix {
  display: grid;
  grid-template-columns: 96px repeat(var(--input-matrix-cols, 2), minmax(0, 1fr));
  column-gap: var(--space-5);
  row-gap: var(--space-5);
  align-items: start;
}

.input-matrix-1 {
  --input-matrix-cols: 1;
}

.input-matrix-2 {
  --input-matrix-cols: 2;
}

.input-matrix-head {
  display: contents;
}

.input-matrix-head > span {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--text-muted);
}

.input-matrix-head > span:first-child {
  grid-column: 1;
}

.input-matrix-row {
  display: contents;
}

.input-matrix-row-label {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  color: var(--text-default);
  padding-top: 20px;
}

.input-matrix-cell {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.input-matrix-frame {
  padding: var(--space-6) var(--space-5);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid #D5D6D7;
  border-radius: 12px;
}

.input-matrix-frame-web {
  background: #F8F8F8;
  border-color: transparent;
}

@media (max-width: 720px) {
  .input-matrix {
    grid-template-columns: 72px 1fr;
    row-gap: var(--space-4);
    column-gap: var(--space-3);
  }
  .input-matrix-head > span:nth-child(n+3) {
    display: none;
  }
  .input-matrix-row > .input-matrix-cell:nth-child(n+3) {
    display: none;
  }
}
.pagination {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
}

.pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-2);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--brand-coral);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.pagination-item:hover,
.pagination-item.is-hover {
  background: color-mix(in srgb, var(--brand-coral) 14%, transparent);
}

.pagination-item.is-current,
.pagination-item[aria-current=page] {
  background: var(--brand-coral);
  color: var(--brand-mist);
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--brand-coral);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.pagination-nav:hover,
.pagination-nav.is-hover {
  background: color-mix(in srgb, var(--brand-coral) 14%, transparent);
}

.pagination-nav:disabled,
.pagination-nav.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pagination-dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--brand-coral);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-bold);
  letter-spacing: 2px;
  user-select: none;
}

.pagination-app .pagination-item {
  color: var(--text-default);
}

.pagination-app .pagination-item:hover,
.pagination-app .pagination-item.is-hover {
  background: var(--gris-3);
}

.pagination-app .pagination-item.is-current,
.pagination-app .pagination-item[aria-current=page] {
  background: var(--gris-3);
  color: var(--text-default);
  border-radius: var(--r-pill);
}

.pagination-app .pagination-nav {
  color: var(--text-default);
}

.pagination-app .pagination-nav:hover,
.pagination-app .pagination-nav.is-hover {
  background: var(--gris-3);
}

.pagination-app .pagination-dots {
  color: var(--text-default);
}

.pagination-toolbar {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-default);
}

.pagination-toolbar-summary {
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-variant-numeric: tabular-nums;
}

.pagination-select {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 12px;
  background: var(--gris-3);
  border: var(--stroke-thin) solid transparent;
  border-radius: var(--r-pill);
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.pagination-select:hover,
.pagination-select.is-hover {
  background: var(--brand-gray);
}

.pagination-select svg {
  color: var(--text-default);
}

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

.tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  color: color-mix(in srgb, var(--brand-coral) 38%, transparent);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.tab:hover,
.tab.is-hover {
  color: color-mix(in srgb, var(--brand-coral) 72%, transparent);
}

.tab.is-active,
.tab[aria-selected=true] {
  background: var(--brand-coral);
  color: var(--brand-mist);
}

.control-matrix-frame {
  padding: var(--space-6) var(--space-7);
  background: var(--brand-mist);
  border-radius: var(--r-card);
}

.control-matrix-frame-empty {
  min-height: 260px;
}

.control-matrix {
  display: grid;
  grid-template-columns: 96px repeat(var(--cm-cols, 1), minmax(0, 1fr));
  column-gap: var(--space-5);
  row-gap: var(--space-5);
  align-items: center;
}

.control-matrix-1 {
  --cm-cols: 1;
}

.control-matrix-2 {
  --cm-cols: 2;
}

.control-matrix-3 {
  --cm-cols: 3;
}

.control-matrix-2.control-matrix-split {
  grid-template-columns: 96px minmax(0, 2.1fr) minmax(0, 1fr);
}

.control-matrix-piezas {
  margin-top: var(--space-8);
}

.control-matrix-head {
  display: contents;
}

.control-matrix-head > span {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--text-default);
}

.control-matrix-head > span:first-child {
  grid-column: 1;
}

.control-matrix-row {
  display: contents;
}

.control-matrix-row-label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  color: var(--text-default);
}

.control-matrix-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
}

@media (max-width: 720px) {
  .control-matrix {
    grid-template-columns: 72px 1fr;
    row-gap: var(--space-4);
    column-gap: var(--space-3);
  }
  .control-matrix-head > span:nth-child(n+3) {
    display: none;
  }
  .control-matrix-row > .control-matrix-cell:nth-child(n+3) {
    display: none;
  }
}
.pagination-item:focus-visible,
.pagination-nav:focus-visible,
.pagination-select:focus-visible,
.tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  line-height: var(--lh-normal);
  color: var(--text-default);
  cursor: pointer;
  user-select: none;
}

.toggle-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: var(--brand-gray);
  border-radius: var(--r-pill);
  flex: none;
  transition: background-color 160ms ease;
}

.toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: var(--brand-white);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 160ms ease;
}

.toggle-row input:checked + .toggle,
.toggle-checked {
  background: var(--brand-coral);
}

.toggle-row input:checked + .toggle::before,
.toggle-checked::before {
  transform: translateX(20px);
}

.toggle-row input:focus-visible + .toggle,
.toggle-focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (hover: hover) {
  .toggle:hover,
  .toggle-hover {
    background: color-mix(in oklab, var(--brand-gray) 80%, black);
  }
  .toggle-row input:checked + .toggle:hover {
    background: var(--brand-coral);
  }
}
.toggle-row input:disabled + .toggle,
.toggle-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.toggle-sm {
  width: 36px;
  height: 20px;
}

.toggle-sm::before {
  width: 16px;
  height: 16px;
}

.toggle-row input:checked + .toggle-sm::before,
.toggle-sm.toggle-checked::before {
  transform: translateX(16px);
}

.toggle-lg {
  width: 56px;
  height: 32px;
}

.toggle-lg::before {
  width: 28px;
  height: 28px;
  top: 2px;
  left: 2px;
}

.toggle-row input:checked + .toggle-lg::before,
.toggle-lg.toggle-checked::before {
  transform: translateX(24px);
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.toggle-label {
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  color: var(--text-default);
}

.toggle-caption {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--r-card);
  border: var(--stroke-thin) solid transparent;
  background: var(--bg-surface);
  color: var(--text-default);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover,
.card.card-hover,
.card-kpi.card-hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card:active,
.card.card-pressed,
.card-kpi.card-pressed {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.card.card-focus,
.card-kpi.card-focus {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.card.card-disabled,
.card-kpi.card-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1 1 auto;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: inherit;
  margin: 0;
}

.card-title-lg {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  margin: 0;
}

.card-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: inherit;
  margin: 0;
  opacity: 0.85;
}

.card-subchips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.card-subchip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-caption);
  line-height: 1;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: var(--stroke-thin) solid currentColor;
}

.card-module {
  background: var(--brand-coral);
  color: var(--brand-mist);
  border-color: transparent;
  min-height: 520px;
  padding: var(--space-7);
  gap: var(--space-4);
}

.card-number {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(7rem, 14vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: inherit;
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  opacity: 0.95;
}

.card-module .card-title {
  font-size: 1.625rem;
}

.card-module .card-text {
  opacity: 0.9;
  max-width: 34ch;
}

.card-profile {
  background: var(--brand-charcoal);
  color: var(--brand-mist);
  border-color: transparent;
  min-height: 260px;
}

.card-profile-coral {
  background: var(--brand-coral);
  color: var(--brand-mist);
  border-color: transparent;
  min-height: 260px;
}

.card-value {
  background: var(--bg-surface);
  color: var(--text-default);
  border-color: transparent;
  min-height: 380px;
  padding: var(--space-6);
  justify-content: space-between;
}

.card-illustration {
  display: grid;
  place-items: center;
  min-height: 140px;
  color: var(--brand-coral);
}

.card-illustration svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  stroke: currentColor;
  fill: none;
  stroke-width: var(--stroke-regular);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-value .card-title {
  font-size: 1.5rem;
}

.card-value .card-text {
  color: var(--text-default);
  opacity: 1;
}

.card-price {
  background: var(--bg-surface);
  color: var(--text-default);
  border: var(--stroke-thin) solid var(--border-soft);
  min-height: 420px;
  gap: var(--space-4);
}

.card-price-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-md);
  color: var(--text-muted);
  margin: 0;
}

.card-price-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.card-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 auto;
}

.card-price-feature {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
}

.card-price-feature svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: var(--stroke-regular);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-price-hover {
  background: #B13833;
  color: var(--brand-mist);
  border-color: transparent;
}

.card-price-hover .card-price-label,
.card-price-hover .card-price-value,
.card-price-hover .card-price-feature {
  color: var(--brand-mist);
}

.card-price-active {
  background: var(--brand-mist);
  color: var(--text-default);
  border-color: transparent;
}

.card-price-active .card-price-label,
.card-price-active .card-price-value {
  color: var(--brand-coral);
}

.card-price-active .card-price-feature {
  color: var(--text-default);
}

.card-kpi {
  background: var(--brand-mist);
  color: var(--text-default);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 0;
}

.card-kpi-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

.card-kpi-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.5rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-default);
  margin: 0;
}

.card-kpi-delta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin: 0;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  align-self: flex-start;
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-sm);
  line-height: 1;
  color: currentColor;
  text-decoration: none;
  border: var(--stroke-thin) solid currentColor;
  border-radius: var(--r-pill);
  background: transparent;
  transition: background-color 120ms ease, color 120ms ease;
}

.card-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: var(--stroke-regular);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-cta:hover {
  background: currentColor;
}

.card-cta:hover span,
.card-cta:hover svg {
  filter: invert(1);
}

.card-corner-arrow {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--stroke-thin) solid currentColor;
  border-radius: var(--r-full);
  color: currentColor;
  opacity: 0.9;
  transition: background-color 120ms ease, opacity 120ms ease;
}

.card-corner-arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: var(--stroke-regular);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-corner-arrow:hover {
  opacity: 1;
}

.card-corner-arrow.coral {
  color: var(--brand-coral);
}

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

.card-archetype-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.card-canvas {
  background: var(--brand-mist);
  border-radius: var(--r-card);
  padding: var(--space-7);
}

@media (max-width: 1100px) {
  .card-archetype-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-module {
    min-height: 440px;
  }
}
@media (max-width: 720px) {
  .card-archetype-grid,
  .card-archetype-grid.cols-2,
  .card-kpi-grid {
    grid-template-columns: 1fr;
  }
  .card-module {
    min-height: 380px;
    padding: var(--space-5);
  }
  .card-number {
    font-size: clamp(5rem, 30vw, 8rem);
  }
}
.banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: var(--stroke-thin) solid transparent;
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-default);
  background: var(--bg-surface);
}

.banner-info {
  background: var(--brand-mist);
  color: var(--text-default);
  border-color: var(--border-soft);
}

.banner-success {
  background: var(--brand-mist);
  color: var(--text-default);
  border-color: var(--border-soft);
}

.banner-success .banner-icon {
  color: var(--text-default);
}

.banner-warning {
  background: var(--brand-mist);
  color: var(--text-default);
  border-color: var(--brand-charcoal);
}

.banner-error {
  background: var(--brand-coral);
  color: var(--brand-mist);
  border-color: var(--brand-coral);
}

.banner-error .banner-icon,
.banner-error .banner-title,
.banner-error .banner-message {
  color: var(--brand-mist);
}

.banner-icon {
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--text-default);
}

.banner-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banner-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.banner-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  margin: 0;
}

.banner-message {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  margin: 0;
  color: inherit;
  opacity: 0.9;
}

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

.banner-close {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-sm);
  color: inherit;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 120ms ease, background-color 120ms ease;
}

.banner-close:hover {
  opacity: 1;
  background: color-mix(in srgb, currentColor 10%, transparent);
}

.banner-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banner-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.banner-action-loading {
  display: inline-flex;
  align-items: center;
}

.banner-action-loading .button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0.85;
  cursor: progress;
}

.banner-action-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  animation: banner-spin 720ms linear infinite;
  flex: none;
}

@keyframes banner-spin {
  to {
    transform: rotate(360deg);
  }
}
.banner-format-note {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  margin: 0;
  padding-left: var(--space-3);
}

.ref-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--space-4);
  align-items: flex-start;
  margin-top: var(--space-4);
}

.ref-row-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding-top: var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-caption);
  text-align: center;
}

.ref-row-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.ref-row-stage {
  background: var(--brand-mist);
  border-radius: var(--r-card);
  padding: var(--space-6);
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-row-stage-bleed {
  padding: 0;
  overflow: hidden;
}

.ref-row-stage-mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: stretch;
  justify-content: stretch;
}

.ref-mobile-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}
.ref-mobile-cell > .caption {
  margin: 0;
}

.ref-mobile-cell .mobile-menu {
  align-self: center;
}

.ref-mobile-cell .web-menu-launcher {
  align-self: center;
  margin-top: var(--space-6);
}

.web-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  padding: 10px 10px 10px var(--space-5);
  background: var(--bg-surface);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  color: var(--brand-coral);
  font-family: var(--font-body);
}

.web-nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--brand-coral);
  flex: none;
}
.web-nav-brand svg {
  width: 28px;
  height: 20px;
}

.web-nav-links {
  display: inline-flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0 var(--space-3);
}

.web-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-coral);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  line-height: 1;
  padding: 8px 4px;
  text-decoration: none;
  transition: color 120ms ease, opacity 120ms ease;
}

.web-nav-link:hover {
  color: var(--coral-6);
}

.web-nav-chev {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.web-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--brand-coral);
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  line-height: 1;
  text-decoration: none;
  transition: background-color 120ms ease;
}
.web-nav-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.web-nav-cta:hover {
  background: var(--coral-6);
}

.web-menu-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: var(--r-full);
  background: var(--brand-coral);
  color: var(--brand-white);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 120ms ease;
}
.web-menu-launcher svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.web-menu-launcher:hover {
  background: var(--coral-6);
}

.mobile-menu {
  width: 280px;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--brand-coral);
  color: var(--brand-white);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

.mobile-menu-statusbar {
  height: 28px;
  background: var(--brand-charcoal);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5) var(--space-3);
}

.mobile-menu-logo {
  height: 22px;
  width: auto;
  color: var(--brand-white);
}

.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.18);
  color: var(--brand-white);
  cursor: pointer;
  transition: background-color 120ms ease;
}
.mobile-menu-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.mobile-menu-body {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.mobile-menu-group {
  margin: var(--space-4) 0 var(--space-1);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-caption);
  line-height: 1;
}
.mobile-menu-group:first-child {
  margin-top: 0;
}

.mobile-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  color: var(--brand-white);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  line-height: 1;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.mobile-menu-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex: none;
}

.mobile-menu-item:hover {
  color: var(--coral-1);
}

.mobile-menu-footer {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

.mobile-menu-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--brand-white);
  color: var(--brand-white);
  font-family: var(--font-body);
  font-size: var(--fs-body-md);
  font-weight: var(--fw-medium);
  line-height: 1;
  text-decoration: none;
  background: transparent;
  transition: background-color 120ms ease, color 120ms ease;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn-solid {
  background: var(--brand-white);
  color: var(--brand-coral);
  border-color: var(--brand-white);
}

.mobile-menu-btn-solid:hover {
  background: var(--coral-1);
  color: var(--brand-coral);
}

.web-footer {
  position: relative;
  background: var(--brand-coral);
  color: var(--brand-white);
  padding: var(--space-7) var(--space-7) var(--space-5);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  overflow: hidden;
}

.ref-row-stage-bleed .web-footer {
  border-radius: var(--r-card);
}

.web-footer-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-5);
}

.web-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-footer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.web-footer-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.55);
  flex: none;
}

.web-footer-link {
  color: var(--brand-white);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  text-decoration: none;
  transition: opacity 120ms ease;
}

.web-footer-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.web-footer-wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(96px, 18vw, 220px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--brand-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.web-footer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.web-footer-card {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-surface);
  color: var(--text-default);
  border-radius: var(--r-xl);
  overflow: hidden;
  min-height: 96px;
}

.web-footer-card-thumb {
  flex: 0 0 96px;
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.85), rgba(51, 51, 51, 0.55)), linear-gradient(315deg, var(--coral-3), var(--coral-4));
  background-size: cover;
  background-position: center;
}

.web-footer-card:nth-child(2) .web-footer-card-thumb {
  background: linear-gradient(135deg, rgba(233, 107, 65, 0.8), rgba(255, 175, 80, 0.7));
}

.web-footer-card:nth-child(3) .web-footer-card-thumb {
  background: linear-gradient(135deg, rgba(51, 51, 51, 0.85), rgba(51, 51, 51, 0.55)), linear-gradient(315deg, var(--coral-5), var(--coral-7));
}

.web-footer-card-body {
  position: relative;
  flex: 1;
  padding: var(--space-3) var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.web-footer-card-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-lime);
  color: var(--brand-charcoal);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

.web-footer-card-title {
  margin: 0;
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.web-footer-card-arrow {
  position: absolute;
  bottom: var(--space-3);
  right: var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-soft);
  color: var(--text-default);
  background: var(--bg-surface);
  transition: background-color 120ms ease, color 120ms ease;
}
.web-footer-card-arrow svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.web-footer-card-arrow:hover {
  background: var(--brand-charcoal);
  color: var(--brand-white);
  border-color: var(--brand-charcoal);
}

.web-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.web-footer-mobile {
  max-width: 360px;
  padding: var(--space-6) var(--space-5) var(--space-4);
  border-radius: var(--r-card);
  gap: var(--space-5);
}

.web-footer-mobile .web-footer-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4) var(--space-4);
}

.web-footer-mobile .web-footer-col-contact {
  grid-column: 1/-1;
}

.web-footer-mobile .web-footer-wordmark {
  font-size: clamp(56px, 18vw, 96px);
}

.web-footer-mobile .web-footer-cards {
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.app-sidebar {
  --nav-surface: var(--bg-surface);
  --nav-logo: var(--brand-coral);
  --nav-item-text: var(--text-default);
  --nav-item-hover-bg: var(--brand-mist);
  --nav-item-active-bg: var(--gris-3);
  --nav-item-active-text: var(--text-default);
  --nav-chev-color: var(--text-muted);
  --nav-submenu-text: var(--text-muted);
  --nav-toggle-bg: var(--brand-white);
  --nav-toggle-border: var(--border-soft);
  --nav-toggle-color: var(--text-default);
  --nav-util-color: var(--text-muted);
  --nav-user-bg: var(--brand-mist);
  position: relative;
  width: 272px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-4) var(--space-4);
  background: var(--nav-surface);
  border-radius: var(--r-card);
  color: var(--nav-item-text);
  box-shadow: var(--shadow-sm);
}

.app-sidebar.is-dark {
  --nav-surface: var(--dark);
  --nav-logo: var(--brand-white);
  --nav-item-text: var(--brand-mist);
  --nav-item-hover-bg: var(--dark--10);
  --nav-item-active-bg: var(--dark--20);
  --nav-item-active-text: var(--brand-white);
  --nav-chev-color: rgba(255, 255, 255, 0.6);
  --nav-submenu-text: rgba(255, 255, 255, 0.45);
  --nav-toggle-bg: var(--dark--10);
  --nav-toggle-border: transparent;
  --nav-toggle-color: var(--brand-white);
  --nav-util-color: rgba(255, 255, 255, 0.7);
  --nav-user-bg: var(--dark--10);
}

.app-sidebar.is-collapsed {
  width: 72px;
  padding: var(--space-5) var(--space-2) var(--space-4);
  min-height: 440px;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 0 var(--space-2) var(--space-5);
  color: var(--nav-logo);
}

.app-sidebar.is-collapsed .app-sidebar-brand {
  padding: 0 0 var(--space-5);
  justify-content: center;
}

.app-sidebar-logo {
  height: 22px;
  width: auto;
}

.app-sidebar.is-collapsed .app-sidebar-logo {
  width: 24px;
  height: 24px;
}

.app-sidebar-toggle {
  position: absolute;
  top: var(--space-5);
  right: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--r-full);
  background: var(--nav-toggle-bg);
  color: var(--nav-toggle-color);
  border: 1px solid var(--nav-toggle-border);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color 120ms ease;
}
.app-sidebar-toggle svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.app-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 0 auto;
}

.app-sidebar-nav > li {
  display: block;
}

.app-sidebar-nav > li > .app-menu-item {
  width: 100%;
}

.app-sidebar.is-collapsed .app-sidebar-nav {
  align-items: center;
  gap: var(--space-2);
}

.app-sidebar-utilities {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: var(--space-3) var(--space-2);
  margin-top: var(--space-4);
  border-top: 1px solid transparent;
  gap: var(--space-3);
}

.app-sidebar.is-dark .app-sidebar-utilities {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.app-sidebar-util {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--nav-util-color);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.app-sidebar-util svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.app-sidebar-util:hover {
  background: var(--nav-item-hover-bg);
  color: var(--nav-item-text);
}

.app-sidebar-util-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--brand-coral);
  box-shadow: 0 0 0 2px var(--nav-surface);
}

.app-sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 8px;
  margin-top: var(--space-2);
  background: var(--nav-user-bg);
  border-radius: var(--r-pill);
  color: var(--nav-item-text);
}

.app-sidebar.is-collapsed .app-sidebar-user {
  justify-content: center;
  padding: 4px;
  margin-top: auto;
}

.app-sidebar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--coral-4), var(--coral-7));
  background-image: linear-gradient(135deg, rgba(29, 29, 29, 0.55), rgba(29, 29, 29, 0.15)), linear-gradient(135deg, var(--coral-3), var(--coral-6));
  flex: none;
}

.app-sidebar-user-name {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar-user-chev {
  width: 14px;
  height: 14px;
  color: var(--nav-chev-color);
  stroke: currentColor;
}

.app-menu-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  color: var(--nav-item-text, var(--text-default));
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
  text-align: left;
}

.app-menu-item-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex: none;
  color: var(--nav-item-text, var(--text-default));
}

.app-menu-item-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-menu-item-chev {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  color: var(--nav-chev-color, var(--text-muted));
  flex: none;
}

.app-menu-item:hover,
.app-menu-item.is-hover {
  background: var(--nav-item-hover-bg, var(--brand-mist));
}

.app-menu-item.is-pressed {
  background: var(--nav-item-hover-bg, var(--brand-mist));
}

.app-menu-item.is-active {
  background: var(--nav-item-active-bg, var(--gris-3));
  color: var(--nav-item-active-text, var(--text-default));
  font-weight: var(--fw-medium);
}

.app-menu-item.is-active .app-menu-item-icon {
  color: var(--nav-item-active-text, var(--text-default));
}

.app-menu-item:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.app-menu-item.is-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: var(--r-full);
}

.app-menu-item.is-icon .app-menu-item-label,
.app-menu-item.is-icon .app-menu-item-chev {
  display: none;
}

.app-sidebar.is-collapsed .app-menu-item {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
  border-radius: var(--r-full);
}

.app-sidebar.is-collapsed .app-menu-item .app-menu-item-label,
.app-sidebar.is-collapsed .app-menu-item .app-menu-item-chev {
  display: none;
}

.app-menu-item-group {
  display: block;
  width: 100%;
}

.app-submenu {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.app-submenu-item {
  display: block;
  padding: 6px 12px 6px 44px;
  color: var(--nav-submenu-text, var(--text-muted));
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  line-height: 1.3;
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background-color 120ms ease, color 120ms ease;
}

.app-submenu-item:hover,
.app-submenu-item.is-hover {
  background: var(--nav-item-hover-bg, var(--brand-mist));
  color: var(--nav-item-text, var(--text-default));
}

.ref-items-stage-tight .app-submenu-item {
  padding: 6px 12px;
  background: transparent;
  max-width: 140px;
}

.ref-items-stage-tight .app-submenu-item.is-hover {
  background: var(--nav-item-hover-bg, var(--brand-mist));
}

.ref-row-stage-sidebars {
  padding: var(--space-6) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: stretch;
  justify-content: flex-start;
}

.ref-sidebar-pair {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ref-sidebar-label {
  margin: 0;
}

.ref-sidebar-row {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
  align-items: flex-start;
}

.ref-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 900px) {
  .ref-items-grid {
    grid-template-columns: 1fr;
  }
}

.ref-items-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ref-items-col-title {
  margin: 0;
}

.ref-items-block {
  --nav-surface: var(--brand-mist);
  --nav-item-text: var(--text-default);
  --nav-item-hover-bg: var(--gris-3);
  --nav-item-active-bg: var(--gris-4);
  --nav-item-active-text: var(--text-default);
  --nav-chev-color: var(--text-muted);
  --nav-submenu-text: var(--text-muted);
  background: var(--nav-surface);
  border-radius: var(--r-card);
  padding: var(--space-5);
  min-height: 420px;
}

.ref-items-block.is-dark {
  --nav-surface: var(--dark);
  --nav-item-text: var(--brand-mist);
  --nav-item-hover-bg: var(--dark--10);
  --nav-item-active-bg: var(--dark--20);
  --nav-item-active-text: var(--brand-white);
  --nav-chev-color: rgba(255, 255, 255, 0.6);
  --nav-submenu-text: rgba(255, 255, 255, 0.45);
  color: var(--brand-mist);
}

.ref-items-stage {
  display: grid;
  grid-template-columns: 140px minmax(180px, 240px);
  row-gap: var(--space-3);
  column-gap: var(--space-4);
  align-items: center;
}

.ref-items-stage-tight {
  grid-template-columns: 140px 140px;
  row-gap: var(--space-2);
}

.ref-items-state {
  display: contents;
}

.ref-items-label {
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
}

.ref-items-block.is-dark .ref-items-label {
  color: rgba(255, 255, 255, 0.55);
}

.overlay-scrim {
  position: fixed;
  inset: 0;
  background: var(--overlay-scrim);
  display: grid;
  place-items: center;
  z-index: 10;
}

.overlay-scrim-sandbox {
  position: relative;
  inset: auto;
  min-height: 360px;
  background: var(--overlay-scrim);
  border-radius: var(--r-card);
  display: grid;
  place-items: center;
  padding: var(--space-6);
  z-index: auto;
}

.modal {
  background: var(--bg-surface);
  color: var(--text-default);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-display-lg);
  line-height: var(--lh-tight);
  margin: 0;
}

.modal-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin: 0;
}

.modal-body {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.modal-close {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: var(--r-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.modal-close:hover {
  background: var(--brand-mist);
  color: var(--text-default);
}

.modal-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.popover {
  position: relative;
  background: var(--bg-surface);
  color: var(--text-default);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  border: var(--stroke-thin) solid var(--border-soft);
  padding: var(--space-4);
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
}

.popover-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-title-md);
  line-height: var(--lh-tight);
  margin: 0;
}

.popover-body {
  margin: 0;
  color: var(--text-muted);
}

.popover-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.popover-tail {
  position: absolute;
  top: -7px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: var(--bg-surface);
  border-top: var(--stroke-thin) solid var(--border-soft);
  border-left: var(--stroke-thin) solid var(--border-soft);
  transform: rotate(45deg);
}

.popover-bottom .popover-tail {
  top: auto;
  bottom: -7px;
  border-top: 0;
  border-left: 0;
  border-right: var(--stroke-thin) solid var(--border-soft);
  border-bottom: var(--stroke-thin) solid var(--border-soft);
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-charcoal);
  color: var(--brand-mist);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  line-height: 1.3;
  padding: 6px 10px;
  max-width: 240px;
  text-align: center;
}

.tooltip-arrow {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--brand-charcoal);
}

.tooltip-top .tooltip-arrow {
  top: auto;
  bottom: -5px;
}

.tooltip-bottom {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 12px);
}

.overlay-demo-frame {
  position: relative;
  border: var(--stroke-thin) solid var(--border-soft);
  background: var(--bg-surface);
  border-radius: var(--r-card);
  padding: var(--space-6);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-demo-note {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-3);
  text-align: center;
}

.overlay-demo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-6) 0;
}

.overlay-anatomy-diagram {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
  max-width: 640px;
}

.overlay-anatomy-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
}

.overlay-anatomy-scrim {
  background: var(--overlay-scrim);
  color: var(--brand-mist);
  border: var(--stroke-thin) solid transparent;
}

.overlay-anatomy-surface {
  background: var(--bg-surface);
  color: var(--text-default);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-md);
  margin: 0 var(--space-5);
}

.overlay-anatomy-content {
  background: var(--brand-mist);
  color: var(--text-default);
  border: var(--stroke-thin) dashed var(--border-soft);
  margin: 0 var(--space-8);
}

.overlay-anatomy-label {
  font-family: var(--font-display);
  font-weight: 500;
}

.overlay-anatomy-token {
  font-size: var(--fs-caption);
  opacity: 0.85;
}

.overlay-states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.overlay-state-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--brand-mist);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
}

.overlay-state-label {
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.overlay-state-modal {
  box-shadow: var(--shadow-md);
  padding: var(--space-5);
  gap: var(--space-3);
}

.button-loading,
.overlay-state-card .button-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.overlay-state-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  animation: overlay-spin 720ms linear infinite;
  flex: none;
}

.overlay-state-destructive {
  background: var(--brand-coral);
  color: var(--brand-mist);
  border-color: var(--brand-coral);
}

@keyframes overlay-spin {
  to {
    transform: rotate(360deg);
  }
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.list-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 12px 16px;
  border-bottom: var(--stroke-thin) solid var(--border-soft);
  background: var(--bg-surface);
  transition: background-color 120ms ease;
  color: var(--text-default);
}

.list-row:last-child {
  border-bottom: 0;
}

.list-row:first-child {
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
}

.list-row:last-child {
  border-bottom-left-radius: var(--r-lg);
  border-bottom-right-radius: var(--r-lg);
}

.list-row:hover,
.list-row.is-hover,
.list-row:has(.list-row-title-link:hover) {
  background: var(--brand-mist);
}

.list-row.is-focus,
.list-row:focus-within {
  outline: 2px solid var(--focus-ring);
  outline-offset: -2px;
  background: var(--brand-mist);
}

.list-row.is-selected {
  background: color-mix(in srgb, var(--brand-coral) 10%, var(--bg-surface));
  box-shadow: inset 3px 0 0 var(--brand-coral);
}

.list-row.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.list-row-leading {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: var(--brand-mist);
  color: var(--text-default);
}

.list-row-leading svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.list-row-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.list-row-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-md);
  line-height: var(--lh-tight);
  color: var(--text-default);
  margin: 0;
}

.list-row-title-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-body-md);
  line-height: var(--lh-tight);
  color: var(--text-default);
  text-decoration: none;
  outline: none;
}

.list-row-title-link::before {
  content: "";
  position: absolute;
  inset: 0;
}

.list-row-title-link:focus-visible {
  outline: none;
}

.list-row-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin: 0;
}

.list-row-trailing {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-default);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
}

.list-row-trailing .mono {
  font-family: var(--font-mono);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-surface);
  font-family: var(--font-body);
}

.table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 12px 16px;
  background: var(--brand-mist);
  border-bottom: var(--stroke-thin) solid var(--border-soft);
}

.table td {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  color: var(--text-default);
  padding: 12px 16px;
  border-top: var(--stroke-thin) solid var(--border-soft);
}

.table thead tr:first-child th:first-child {
  border-top-left-radius: var(--r-lg);
}

.table thead tr:first-child th:last-child {
  border-top-right-radius: var(--r-lg);
}

.table tbody tr:first-child td {
  border-top: 0;
}

.table tbody tr:hover td {
  background: color-mix(in srgb, var(--brand-mist) 50%, var(--bg-surface));
}

.table .numeric,
.table .right {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.table .mono {
  font-family: var(--font-mono);
  font-size: var(--fs-body-sm);
}

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

.list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--fs-body-sm);
  background: var(--bg-surface);
}

.list-empty svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.6;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-surface);
  border: var(--stroke-thin) solid var(--border-soft);
  border-radius: var(--r-card);
  color: var(--text-default);
}

.chart-card-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chart-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-title-md);
  line-height: var(--lh-tight);
  margin: 0;
}

.chart-card-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin: 0;
}

.chart-sample-note {
  font-size: 11px;
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin: 2px 0 0;
}

.chart-axis-hint {
  font-size: 11px;
  line-height: var(--lh-normal);
  color: var(--text-muted);
  margin: 0;
  padding-left: var(--space-2);
}

.chart-placeholder {
  position: relative;
  height: 280px;
  background: var(--brand-mist);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  overflow: hidden;
}

.chart-placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-donut {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-coral) 0deg 216deg, var(--brand-charcoal) 216deg 288deg, var(--brand-gray) 288deg 360deg);
  display: grid;
  place-items: center;
  position: relative;
}

.chart-donut::after {
  content: "";
  position: absolute;
  width: 64%;
  height: 64%;
  background: var(--brand-mist);
  border-radius: 50%;
}

.chart-donut-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-numeric-lg);
  font-variant-numeric: tabular-nums;
  color: var(--text-default);
  text-align: center;
  line-height: 1;
}

.chart-donut-label small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  color: var(--text-default);
  margin: 0;
  padding: 0;
  list-style: none;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-default);
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.chart-legend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex: none;
  color: currentColor;
}

.chart-legend-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
}

.chart-legend-label {
  color: var(--text-default);
}

.chart-legend-value {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-left: 4px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (max-width: 860px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}
.chart-state {
  flex-direction: column;
  gap: var(--space-3);
  color: var(--text-muted);
  padding: var(--space-4);
  text-align: center;
}

.chart-state-label {
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  color: var(--text-muted);
  max-width: 36ch;
}

.chart-error svg {
  color: var(--brand-coral);
}

.chart-spinner {
  color: var(--brand-coral);
  animation: chart-spinner-rotate 1.2s linear infinite;
}
.chart-spinner circle {
  stroke-dasharray: 90 150;
  stroke-dashoffset: 0;
}

@keyframes chart-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chart-spinner {
    animation-duration: 4s;
  }
}
