/* source: css/variables.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --yod-primary-blue: #0b6bff;
  --yod-primary-violet: #6d35f5;
  --yod-deep-navy: #020a33;
  --yod-slate: #667085;
  --yod-white: #ffffff;
  --yod-electric-blue: #1e8bff;
  --yod-indigo: #3448f0;
  --yod-purple: #7c3aed;
  --yod-soft-blue: #eaf2ff;
  --yod-soft-violet: #f1ecff;
  --yod-success: #12b76a;
  --yod-warning: #f79009;
  --yod-danger: #f04438;
  --yod-info: #2e90fa;

  --color-bg: #ffffff;
  --color-bg-muted: #f7f9fc;
  --color-surface: #ffffff;
  --color-surface-alt: #f1f5f9;
  --color-border: #d9e2ef;
  --color-text: #020a33;
  --color-text-muted: #667085;
  --color-heading: #020a33;
  --color-muted: var(--color-text-muted);

  --color-primary: #0b6bff;
  --color-primary-hover: #095de0;
  --color-primary-dark: var(--color-primary-hover);
  --color-primary-soft: #eaf2ff;
  --color-secondary: #6d35f5;
  --color-secondary-hover: #5b2bd6;
  --color-secondary-soft: #f1ecff;
  --color-link: #0b6bff;
  --color-focus-ring: rgba(11, 107, 255, 0.28);

  --color-success: var(--yod-success);
  --color-warning: var(--yod-warning);
  --color-danger: var(--yod-danger);
  --color-info: var(--yod-info);
  --color-info-bg: var(--color-primary-soft);
  --color-success-bg: #ecfdf3;
  --color-warning-bg: #fff7ed;
  --color-danger-bg: #fef3f2;

  --gradient-brand: linear-gradient(135deg, #0b6bff 0%, #3448f0 48%, #6d35f5 100%);
  --shadow-soft: 0 12px 30px rgba(2, 10, 51, 0.08);
  --shadow-card: 0 8px 24px rgba(2, 10, 51, 0.10);
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-card);

  --font-heading: "Sora", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --font-sans: var(--font-body);
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --leading-tight: 1.1;
  --leading-heading: 1.18;
  --leading-body: 1.55;
  --leading-ui: 1.35;
  --tracking-tight: 0;
  --tracking-normal: 0;
  --tracking-wide: 0;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --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;
  --top-nav-height: 64px;
  --side-nav-width: 248px;
}

[data-theme="dark"] {
  --color-bg: #050816;
  --color-bg-muted: #090f24;
  --color-surface: #0d132b;
  --color-surface-alt: #111936;
  --color-border: #26314f;
  --color-text: #f8fafc;
  --color-text-muted: #aab3c5;
  --color-heading: #ffffff;
  --color-muted: var(--color-text-muted);

  --color-primary: #4c9bff;
  --color-primary-hover: #77b6ff;
  --color-primary-dark: var(--color-primary-hover);
  --color-primary-soft: #10294f;
  --color-secondary: #8b5cf6;
  --color-secondary-hover: #a78bfa;
  --color-secondary-soft: #261a4f;
  --color-link: #77b6ff;
  --color-focus-ring: rgba(119, 182, 255, 0.35);
  --color-info-bg: #10294f;
  --color-success-bg: rgba(18, 183, 106, 0.14);
  --color-warning-bg: rgba(247, 144, 9, 0.14);
  --color-danger-bg: rgba(240, 68, 56, 0.14);
  --gradient-brand: linear-gradient(135deg, #1e8bff 0%, #5865f2 48%, #8b5cf6 100%);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.28);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-sm: var(--shadow-soft);
  --shadow-md: var(--shadow-card);
}

.yod-gradient {
  background: var(--gradient-brand);
}

.yod-card {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.yod-button-primary {
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: var(--yod-white);
}

.yod-button-primary:hover {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
}

.yod-button-secondary {
  border: 1px solid var(--color-secondary);
  background: var(--color-secondary);
  color: var(--yod-white);
}

.yod-button-secondary:hover {
  border-color: var(--color-secondary-hover);
  background: var(--color-secondary-hover);
}

/* source: css/base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-body);
}

a {
  color: var(--color-link);
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.yod-heading {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-heading);
}

h1 {
  margin-bottom: var(--space-4);
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
}

h2 {
  margin-bottom: var(--space-3);
  font-size: var(--text-3xl);
}

h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

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

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

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-md);
  background: var(--color-heading);
  color: var(--yod-white);
  padding: var(--space-2) var(--space-3);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.yod-display {
  font-size: var(--text-6xl);
  font-weight: var(--font-extrabold);
}

.yod-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: var(--font-medium);
  line-height: var(--leading-body);
}

.yod-ui-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: var(--leading-ui);
}

code,
pre,
.yod-code,
.yod-id {
  font-family: var(--font-mono);
}

.yod-id {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: var(--tracking-wide);
}

@media (max-width: 560px) {
  h1,
  .yod-display {
    font-size: var(--text-4xl);
  }

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

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

/* source: css/layout.css */
.app-shell {
  display: grid;
  grid-template-columns: var(--side-nav-width) minmax(0, 1fr);
  min-height: calc(100vh - var(--top-nav-height));
}

.app-main {
  width: 100%;
  margin: 0;
  padding: var(--space-8) 4vw;
}

.centered-layout {
  display: grid;
  min-height: calc(100vh - var(--top-nav-height));
  place-items: center;
  padding: var(--space-8);
}

.page-section {
  padding: var(--space-10) 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.section-heading h2 {
  margin-bottom: var(--space-2);
}

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

.content-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

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

.stack {
  display: grid;
  gap: var(--space-3);
}

.state-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

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

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  margin-top: var(--space-4);
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: var(--space-5) var(--space-8);
  text-align: center;
}

.footer-logo {
  width: 28px;
  height: 28px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .app-main {
    padding: var(--space-6) 4vw;
  }

  .content-grid,
  .form-grid,
  .state-row {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: var(--space-5) var(--space-4);
  }
}

@media (max-width: 560px) {
  .form-actions,
  .inline-cluster {
    align-items: stretch;
    flex-direction: column;
  }

  .form-actions .btn,
  .inline-cluster .btn {
    width: 100%;
  }
}

/* source: css/components.css */
/* source: css/components/navbar-top.css */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  height: var(--top-nav-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 1px 0 rgba(2, 10, 51, 0.03);
  backdrop-filter: blur(12px);
}

.top-nav-inner {
  display: flex;
  height: 100%;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-6);
}

.brand {
  display: inline-flex;
  min-height: 42px;
  min-width: 0;
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--color-heading);
  font-weight: var(--font-extrabold);
  padding: var(--space-1) var(--space-2);
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

[data-theme="dark"] .brand {
  background: var(--yod-white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.brand-logo {
  width: auto;
  height: 34px;
  max-width: 180px;
  object-fit: contain;
}

.top-nav-links {
  display: flex;
  gap: var(--space-1);
  margin-left: auto;
}

.top-nav-links a {
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-3);
}

.top-nav-links a:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.top-nav-links a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

@media (max-width: 900px) {
  .top-nav-inner {
    padding: 0 var(--space-4);
  }

  .top-nav-links {
    display: none;
  }
}

/* source: css/components/navbar-side.css */
.side-nav {
  position: sticky;
  top: var(--top-nav-height);
  height: calc(100vh - var(--top-nav-height));
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-5);
}

.side-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.side-nav-title {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-extrabold);
  text-transform: uppercase;
}

.side-nav-close {
  display: none;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.4rem;
  line-height: 1;
}

.side-nav-links {
  display: grid;
  gap: var(--space-1);
}

.side-nav-links a {
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-weight: var(--font-semibold);
  padding: var(--space-3);
}

.side-nav-links a:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.side-nav-links a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: rgba(16, 24, 40, 0.35);
}

@media (max-width: 900px) {
  .side-nav-close {
    display: inline-flex;
  }

  .side-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 600;
    width: min(84vw, var(--side-nav-width));
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--shadow-md);
    transition: transform 180ms ease;
  }

  .side-nav.is-open {
    transform: translateX(0);
  }

  body.nav-open {
    overflow: hidden;
  }
}

/* source: css/components/hamburger-menu.css */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.hamburger:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.hamburger[aria-expanded="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.hamburger-bars {
  display: flex;
  width: 20px;
  height: 14px;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  flex: 0 0 2px;
  border-radius: 99px;
  background: var(--color-heading);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 900px) {
  .hamburger {
    display: inline-flex;
  }
}

/* source: css/components/theme-toggle.css */
.theme-switch {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-secondary-soft));
  color: var(--color-primary);
  padding: 0 8px;
  box-shadow: inset 0 1px 3px rgba(2, 10, 51, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.theme-switch:hover {
  border-color: var(--color-primary);
  box-shadow: inset 0 1px 3px rgba(2, 10, 51, 0.08), 0 8px 18px rgba(11, 107, 255, 0.14);
}

.theme-switch[data-theme-current="dark"] {
  border-color: rgba(119, 182, 255, 0.54);
  background: var(--gradient-brand);
  color: var(--yod-white);
}

.theme-switch-icon {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.theme-switch-sun {
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -5px 0 -3px currentColor, 0 5px 0 -3px currentColor, 5px 0 0 -3px currentColor, -5px 0 0 -3px currentColor;
}

.theme-switch-moon {
  border-radius: 50%;
  box-shadow: inset 5px -3px 0 0 currentColor;
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 2;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(2, 10, 51, 0.08);
  border-radius: 50%;
  background: var(--yod-white);
  box-shadow: 0 5px 12px rgba(2, 10, 51, 0.22);
  transition: transform 180ms ease;
}

.theme-switch-thumb img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.theme-switch[data-theme-current="dark"] .theme-switch-thumb {
  transform: translateX(30px);
}

@media (max-width: 560px) {
  .theme-switch {
    width: 58px;
    height: 32px;
    padding: 0 7px;
  }

  .theme-switch-thumb {
    width: 24px;
    height: 24px;
  }

  .theme-switch-thumb img {
    width: 16px;
    height: 16px;
  }

  .theme-switch[data-theme-current="dark"] .theme-switch-thumb {
    transform: translateX(28px);
  }
}

/* source: css/components/footer.css */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  padding: var(--space-5) var(--space-8);
  text-align: center;
}

.footer-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-footer {
    padding: var(--space-5) var(--space-4);
  }
}

/* source: css/components/button.css */
.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.95rem;
  font-weight: var(--font-bold);
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease, filter 160ms ease;
}

.btn-sm {
  min-height: 34px;
  padding: 0.45rem 0.65rem;
  font-size: var(--text-sm);
}

.btn-primary {
  border-color: var(--color-primary);
  background: var(--gradient-brand);
  color: var(--yod-white);
  box-shadow: 0 8px 18px rgba(11, 107, 255, 0.20);
}

.btn-primary:hover {
  border-color: var(--color-secondary);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--yod-indigo) 48%, var(--color-primary) 100%);
  box-shadow: 0 10px 24px rgba(109, 53, 245, 0.26);
}

.btn-secondary {
  border-color: var(--color-secondary);
  background: var(--color-secondary);
  color: var(--yod-white);
}

.btn-secondary:hover {
  border-color: var(--color-secondary-hover);
  background: var(--color-secondary-hover);
}

.btn-ghost {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-secondary);
}

/* source: css/components/card.css */
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.card h3 {
  margin-bottom: var(--space-2);
}

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

.card-body p:last-child,
.card-footer p:last-child {
  margin-bottom: 0;
}

.card-footer {
  margin-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* source: css/components/page-header.css */
.page-header {
  max-width: 760px;
  padding: var(--space-8) 0 var(--space-6);
}

.eyebrow {
  margin-bottom: var(--space-2);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-extrabold);
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-description {
  max-width: 680px;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

/* source: css/components/alert.css */
.alert {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.alert strong {
  display: block;
  margin-bottom: var(--space-1);
}

.alert p {
  margin: 0;
  color: var(--color-text-muted);
}

.alert button {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: currentColor;
  font-size: 1.25rem;
  line-height: 1;
}

.alert-info {
  background: var(--color-info-bg);
}

.alert-success {
  border-color: rgba(19, 121, 91, 0.24);
  background: var(--color-success-bg);
}

.alert-warning {
  border-color: rgba(161, 92, 7, 0.24);
  background: var(--color-warning-bg);
}

.alert-danger {
  border-color: rgba(180, 35, 24, 0.24);
  background: var(--color-danger-bg);
}

/* source: css/components/modal.css */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: var(--space-4);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.45);
}

.modal-panel {
  position: relative;
  width: min(100%, 520px);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5);
}

.modal-header {
  border-bottom: 1px solid var(--color-border);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.modal-body {
  padding: var(--space-5);
  color: var(--color-text-muted);
}

.modal-body p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  border-top: 1px solid var(--color-border);
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.35rem;
  line-height: 1;
}

/* source: css/components/loading-spinner.css */
.loading-spinner {
  display: inline-grid;
  min-height: 80px;
  place-items: center;
}

.spinner-ring {
  width: 38px;
  height: 38px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* source: css/components/empty-state.css */
.empty-state {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
}

.empty-state-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: var(--space-3);
  place-items: center;
  border-radius: 999px;
  background: var(--color-secondary-soft);
  color: var(--color-secondary);
  font-weight: var(--font-extrabold);
}

.empty-state h3 {
  margin-bottom: var(--space-2);
}

.empty-state p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

/* source: css/components/badge.css */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-muted);
  color: var(--color-text);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: 0.25rem 0.6rem;
}

.badge-success {
  border-color: rgba(18, 183, 106, 0.25);
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-warning {
  border-color: rgba(247, 144, 9, 0.25);
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-danger {
  border-color: rgba(240, 68, 56, 0.25);
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.badge-info {
  border-color: rgba(11, 107, 255, 0.20);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* source: css/components/toast.css */
.toast-region {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 900;
  display: grid;
  width: min(100% - 2rem, 360px);
  gap: var(--space-3);
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid rgba(11, 107, 255, 0.20);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}

.toast p {
  margin: 0;
  color: var(--color-text-muted);
}

.toast-close {
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  line-height: 1;
}

/* source: css/components/table.css */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.data-table th {
  background: var(--color-bg-muted);
  color: var(--color-heading);
  font-size: var(--text-sm);
}

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

.data-table tr:last-child td {
  border-bottom: 0;
}

/* source: css/components/pagination.css */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.pagination button {
  appearance: none;
  display: inline-grid;
  min-width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-weight: var(--font-semibold);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pagination button:hover,
.pagination .is-current {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

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

.pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* source: css/components/tabs.css */
.tabs {
  display: grid;
  gap: var(--space-4);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-border);
}

.tab-button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: var(--font-bold);
  padding: var(--space-3) var(--space-2);
}

.tab-button[aria-selected="true"] {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tab-panel[hidden] {
  display: none;
}

/* source: css/components/breadcrumb.css */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.breadcrumb a {
  color: var(--color-primary);
  font-weight: var(--font-semibold);
}

.breadcrumb-separator {
  color: var(--color-border);
}

/* source: css/components/dropdown-menu.css */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  z-index: 300;
  display: grid;
  min-width: 190px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-2);
  box-shadow: var(--shadow-card);
}

.dropdown-menu[hidden] {
  display: none;
}

.dropdown-menu a,
.dropdown-menu button {
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-weight: var(--font-semibold);
  padding: 0.65rem 0.75rem;
  text-align: left;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

/* source: css/components/search-input.css */
.search-control {
  position: relative;
  display: block;
}

.search-control .input {
  width: 100%;
  padding-left: 2.85rem;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 0.8rem;
  height: 0.8rem;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  pointer-events: none;
  transform: translateY(-50%);
}

.search-icon::after {
  position: absolute;
  right: -0.45rem;
  bottom: -0.35rem;
  width: 0.5rem;
  border-top: 2px solid var(--color-primary);
  content: "";
  transform: rotate(45deg);
}

/* source: css/components/stat-card.css */
.stat-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-card);
}

.stat-card-label {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.stat-card-value {
  margin-bottom: var(--space-2);
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
}

.stat-card-trend {
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
}

/* source: css/components/confirm-dialog.css */
.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

/* source: css/components/tooltip.css */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tooltip-content {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  z-index: 320;
  width: max-content;
  max-width: 240px;
  border-radius: var(--radius-md);
  background: var(--color-heading);
  color: var(--yod-white);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  padding: var(--space-2) var(--space-3);
  transform: translateX(-50%);
}

.tooltip-content[hidden] {
  display: none;
}

/* source: css/components/file-upload.css */
.file-upload {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-muted);
  padding: var(--space-5);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.file-upload.is-dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
}

.file-upload input {
  display: none;
}

.file-upload-label {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: center;
}

.file-upload-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  color: var(--yod-white);
  font-weight: var(--font-extrabold);
}

.file-upload-name {
  justify-self: center;
  margin: 0;
  color: var(--color-primary);
  font-weight: var(--font-semibold);
  text-align: center;
}

/* source: css/components/accordion.css */
.accordion {
  display: grid;
  gap: var(--space-3);
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.accordion-heading {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border: 0;
  background: transparent;
  color: var(--color-heading);
  font-weight: var(--font-bold);
  padding: var(--space-4);
  text-align: left;
}

.accordion-trigger:hover,
.accordion-trigger[aria-expanded="true"] {
  background: var(--color-surface-alt);
}

.accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.accordion-icon::before,
.accordion-icon::after {
  position: absolute;
  top: 7px;
  left: 1px;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

.accordion-icon::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon::after {
  transform: rotate(0deg);
}

.accordion-panel-inner {
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  padding: var(--space-4);
}

.accordion-panel-inner > :last-child {
  margin-bottom: 0;
}

/* source: css/components/feature-tabs.css */
.feature-tabs {
  display: grid;
  gap: var(--space-4);
}

.feature-tabs-list {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-2);
}

.feature-tabs-tab {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: var(--font-bold);
  padding: var(--space-2) var(--space-4);
}

.feature-tabs-tab:hover,
.feature-tabs-tab.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.feature-tabs-panels {
  min-width: 0;
}

.feature-tabs-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.feature-tabs-panel h3 {
  margin-bottom: var(--space-2);
}

.feature-tabs-panel p {
  color: var(--color-text-muted);
}

.feature-tabs-items {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-4) 0 0;
  padding-left: 1.25rem;
}

.feature-tabs-items li {
  color: var(--color-text);
}

@media (max-width: 560px) {
  .feature-tabs-panel {
    padding: var(--space-4);
  }
}

/* source: css/components/comparison-table.css */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.comparison-table caption {
  color: var(--color-text-muted);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-3);
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: var(--color-surface-alt);
  color: var(--color-heading);
  font-weight: var(--font-extrabold);
}

.comparison-table tbody th {
  color: var(--color-heading);
  font-weight: var(--font-bold);
}

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

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 700px) {
  .comparison-table {
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tr {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
  }

  .comparison-table tr + tr {
    margin-top: var(--space-3);
  }

  .comparison-table tbody th {
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-alt);
  }

  .comparison-table td {
    border-bottom: 1px solid var(--color-border);
  }

  .comparison-table td::before {
    display: block;
    color: var(--color-heading);
    content: attr(data-label);
    font-size: var(--text-sm);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-1);
  }

  .comparison-table tr:last-child th,
  .comparison-table tr:last-child td,
  .comparison-table td:last-child {
    border-bottom: 0;
  }
}

/* source: css/components/process-timeline.css */
.process-timeline {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-4);
}

.process-timeline-step:not(:last-child)::before {
  position: absolute;
  top: 48px;
  bottom: calc(-1 * var(--space-4));
  left: 21px;
  width: 2px;
  background: var(--color-border);
  content: "";
}

.process-timeline-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--color-primary);
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-weight: var(--font-extrabold);
}

.process-timeline-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.process-timeline-content h3 {
  margin-bottom: var(--space-2);
}

.process-timeline-content p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .process-timeline-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .process-timeline-step:not(:last-child)::before {
    top: 40px;
    left: 17px;
  }

  .process-timeline-marker {
    width: 36px;
    height: 36px;
  }

  .process-timeline-content {
    padding: var(--space-4);
  }
}

/* source: css/components/media-feature.css */
.media-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.media-feature-right .media-feature-media {
  order: 2;
}

.media-feature-media {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}

.media-feature-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.media-feature-content {
  min-width: 0;
}

.media-feature-eyebrow {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
}

.media-feature-content h2 {
  margin-bottom: var(--space-3);
}

.media-feature-content p {
  color: var(--color-text-muted);
}

.media-feature-content .btn {
  margin-top: var(--space-2);
}

@media (max-width: 760px) {
  .media-feature {
    grid-template-columns: 1fr;
    padding: var(--space-4);
  }

  .media-feature-right .media-feature-media {
    order: 0;
  }
}

/* source: css/components/stat-strip.css */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
}

.stat-strip-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}

.stat-strip-item dd {
  color: var(--color-heading);
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-heading);
  margin: 0 0 var(--space-2);
}

.stat-strip-item dt {
  color: var(--color-text-muted);
  font-weight: var(--font-semibold);
}

@media (max-width: 900px) {
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .stat-strip {
    grid-template-columns: 1fr;
  }
}

/* source: css/forms.css */
/* source: css/components/form-base.css */
.app-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

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

.field-label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  padding: 0.65rem 0.75rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

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

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  outline: 0;
}

.native-control {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-help,
.field-error,
.form-status {
  margin: 0;
  font-size: var(--text-sm);
}

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

.field-error {
  min-height: 1.25rem;
  color: var(--color-danger);
}

.input.is-invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.14);
}

.input.is-valid {
  border-color: var(--color-success);
}

.form-status {
  min-height: 1.25rem;
  margin-top: var(--space-3);
  color: var(--color-success);
  font-weight: var(--font-bold);
}

/* source: css/components/input-text.css */
/* Text input uses shared form-base styles. */

/* source: css/components/input-email.css */
/* Email input uses shared form-base styles. */

/* source: css/components/input-phone.css */
/* Phone input uses shared form-base styles. */

/* source: css/components/input-password.css */
.password-checklist {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.password-checklist li::marker {
  color: var(--color-text-muted);
}

.password-checklist li.is-met {
  color: var(--color-success);
}

.password-checklist li.is-met::marker {
  color: var(--color-success);
}

/* source: css/components/input-date.css */
.custom-date {
  position: relative;
}

.custom-date-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--color-bg-muted) 100%);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  padding: 0.7rem 0.85rem;
  text-align: left;
}

.custom-date-trigger:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.custom-date-trigger:focus-visible,
.custom-date.is-open .custom-date-trigger {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  outline: 0;
}

.custom-date-icon {
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  box-shadow: 0 6px 14px rgba(11, 107, 255, 0.18);
}

.custom-date-icon::before,
.custom-date-icon::after {
  position: absolute;
  content: "";
}

.custom-date-icon::before {
  inset: 0.48rem 0.42rem 0.42rem;
  border: 2px solid var(--yod-white);
  border-radius: 3px;
}

.custom-date-icon::after {
  top: 0.78rem;
  left: 0.55rem;
  width: 0.75rem;
  border-top: 2px solid var(--yod-white);
}

.custom-date-panel {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 300;
  width: 100%;
  min-width: 320px;
  overflow: hidden;
  border: 1px solid rgba(11, 107, 255, 0.22);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-4);
  box-shadow: 0 22px 44px rgba(2, 10, 51, 0.16);
}

.custom-date-panel[hidden] {
  display: none;
}

.custom-date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.custom-date-title {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: var(--leading-ui);
  padding: var(--space-2);
  text-align: center;
}

.custom-date-title span:last-child {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
}

.custom-date-title:hover,
.custom-date-title[aria-expanded="true"] {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.custom-date-nav {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-muted);
  color: var(--color-primary);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  line-height: 1;
}

.custom-date-nav-wide {
  color: var(--color-secondary);
}

.custom-date-nav:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.custom-date-year-panel {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-muted);
  padding: var(--space-3);
}

.custom-date-year-panel[hidden] {
  display: none;
}

.custom-date-year-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.custom-date-year-controls button {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  padding: 0.45rem 0.6rem;
}

.custom-date-year-controls button:hover {
  background: var(--color-primary-soft);
}

.custom-date-year-controls span {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

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

.custom-date-year-option {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  padding: 0.55rem 0.4rem;
}

.custom-date-year-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.custom-date-year-option.is-selected {
  border-color: var(--color-primary);
  background: var(--gradient-brand);
  color: var(--yod-white);
}

.custom-date-weekdays,
.custom-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-1);
}

.custom-date-weekdays {
  margin-bottom: var(--space-2);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-align: center;
}

.custom-date-day {
  display: inline-grid;
  min-width: 0;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
}

.custom-date-day:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.custom-date-day.is-muted {
  color: var(--color-text-muted);
}

.custom-date-day.is-today {
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

.custom-date-day.is-selected {
  background: var(--gradient-brand);
  color: var(--yod-white);
  box-shadow: 0 8px 18px rgba(11, 107, 255, 0.22);
}

.custom-date:has(.native-control.is-invalid) .custom-date-trigger {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.14);
}

@media (max-width: 560px) {
  .custom-date-panel {
    min-width: min(100vw - 2rem, 320px);
  }
}

/* source: css/components/input-select.css */
.custom-select {
  position: relative;
}

.custom-select-trigger {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, var(--color-bg-muted) 100%);
  color: var(--color-heading);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  padding: 0.7rem 0.85rem;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.custom-select-trigger:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  outline: 0;
}

.custom-select-icon {
  position: relative;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  box-shadow: 0 6px 14px rgba(11, 107, 255, 0.18);
}

.custom-select-icon::after {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--yod-white);
  border-bottom: 2px solid var(--yod-white);
  content: "";
  transform: translate(-50%, -55%) rotate(45deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  z-index: 300;
  display: grid;
  width: 100%;
  min-width: 260px;
  overflow: hidden;
  border: 1px solid rgba(11, 107, 255, 0.22);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: var(--space-2);
  box-shadow: 0 22px 44px rgba(2, 10, 51, 0.16);
}

.custom-select-menu[hidden] {
  display: none;
}

.custom-select-option {
  width: 100%;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--font-medium);
  padding: 0.75rem 0.85rem;
  text-align: left;
}

.custom-select-option:hover,
.custom-select-option.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.custom-select-option[aria-selected="true"] {
  background: var(--gradient-brand);
  color: var(--yod-white);
}

.custom-select:has(.native-control.is-invalid) .custom-select-trigger {
  border-color: var(--color-danger);
  box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.14);
}

/* source: css/components/input-textarea.css */
.textarea {
  min-height: 120px;
  resize: vertical;
}

/* source: css/components/input-checkbox.css */
.checkbox-field {
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--color-primary);
}

.checkbox-field label {
  font-weight: var(--font-semibold);
}

/* source: css/components/input-radio-toggle.css */
.radio-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  width: fit-content;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.radio-toggle label {
  display: grid;
  cursor: pointer;
}

.radio-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-toggle span {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  text-align: center;
}

.radio-toggle input:checked + span {
  background: var(--color-primary);
  color: var(--yod-white);
  font-weight: var(--font-bold);
}

.radio-toggle input:focus-visible + span {
  outline: 3px solid var(--color-focus-ring);
  outline-offset: -3px;
}

/* source: css/utilities.css */
.text-muted {
  color: var(--color-muted);
}

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

.w-full {
  width: 100%;
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

/* source: css/app.css */
/* Add app-specific public styles here. Shared UI styles live in css/components/. */

/* source: css/external.css */
.external-body {
  background: var(--color-bg);
}

.external-header {
  display: flex;
  min-height: var(--top-nav-height);
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0 var(--space-6);
}

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

.external-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.external-nav a,
.external-nav-trigger {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: var(--space-2);
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text-muted);
  font-weight: var(--font-semibold);
  line-height: 1;
  padding: var(--space-2) var(--space-3);
  white-space: nowrap;
}

.external-nav a:hover,
.external-nav-trigger:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.external-nav a.is-active,
.external-nav-trigger.is-active,
.external-nav-dropdown a.is-active {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.external-nav-group {
  display: inline-flex;
}

.external-nav-caret {
  width: 0;
  height: 0;
  border-top: 5px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.external-side-nav {
  display: none;
}

.external-mobile-nav-group {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-1) 0;
}

.external-mobile-nav-label {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: var(--font-extrabold);
  padding: var(--space-2) var(--space-3) var(--space-1);
}

.external-mobile-nav-group.is-active .external-mobile-nav-label {
  color: var(--color-primary);
}

.external-mobile-nav-children {
  display: grid;
  gap: var(--space-1);
  border-left: 2px solid var(--color-border);
  margin-left: var(--space-3);
  padding-left: var(--space-2);
}

.external-mobile-nav-children a {
  padding: var(--space-2) var(--space-3);
}

.external-main {
  width: 100%;
  margin: 0;
  padding: var(--space-8) 4vw;
}

.external-hero {
  display: grid;
  min-height: 58vh;
  align-items: center;
  border-bottom: 1px solid var(--color-border);
}

.external-hero-content {
  max-width: 760px;
}

.external-hero h1,
.external-page-header h1 {
  max-width: 860px;
  color: var(--color-heading);
  font-size: clamp(2.25rem, 6vw, var(--text-6xl));
}

.external-hero-copy,
.external-page-header p {
  max-width: 720px;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
}

.external-section,
.external-page-header,
.external-form {
  margin-top: var(--space-8);
}

@media (max-width: 900px) {
  .external-header {
    padding: 0 var(--space-4);
  }

  .external-header-actions {
    gap: var(--space-2);
  }

  .external-nav {
    display: none;
  }

  .external-side-nav {
    display: block;
  }
}

@media (max-width: 560px) {
  .external-header {
    padding: 0 var(--space-3);
  }

  .brand-logo {
    max-width: 46vw;
  }
}
