@import url('/public-tokens.css?v=83eb5edf163be00a62fce7f679f1b3c3a34db2afd6fe6c7c51abc4c2c7a0b772');

:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;

  /* Dark-only core tokens */
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #24324a;
  --border: #334155;
  --control-boundary: #94a3b8;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-tertiary: var(--text-muted);
  --link: #93c5fd;
  --primary: #667eea;
  --primary-foreground: #0b1020;
  --primary-color: var(--primary);
  --primary-bg: rgba(59, 130, 246, 0.2);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --success-foreground: #6ee7b7;
  --danger-foreground: #fca5a5;
  --warning-foreground: #fde68a;
  --control-size-touch: 2.75rem;
  --control-size-compact: 2rem;
  --overlay-layer: 1200;
  --popover-layer: 1100;
  --overlay-radius: 1rem;
  --overlay-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
  --focus-ring: #67e8f9;
  --content-measure: 70ch;

  /* Existing token aliases for legacy styles */
  --background: var(--bg);
  --surface-elevated: var(--surface-2);
  --border-subtle: #1b263a;
  --text-primary: var(--text);
  --text-secondary: #cbd5e1;
  --primary-hover: #5568d3;
  --primary-light: rgba(102, 126, 234, 0.12);
  --accent: #764ba2;
  --accent-hover: #6a4391;
  --success-light: rgba(16, 185, 129, 0.12);
  --danger-light: rgba(239, 68, 68, 0.12);
  --warning-light: rgba(245, 158, 11, 0.12);

  --bg-primary: var(--bg);
  --bg-secondary: var(--surface);
  --bg-tertiary: var(--surface-2);
  --background-secondary: var(--surface);
  --background-tertiary: var(--surface-2);
  --bg-hover: rgba(148, 163, 184, 0.12);
  --card-bg: var(--surface);
  --card-background: var(--surface);
  --border-color: var(--border);
  --hover-bg: rgba(148, 163, 184, 0.12);
  --hover-background: rgba(148, 163, 184, 0.12);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);

  --color-text-primary: var(--text);
  --color-text-secondary: #cbd5e1;
  --color-text-tertiary: var(--text-muted);
  --color-foreground: var(--text);
  --color-foreground-muted: var(--text-muted);
  --color-background: var(--bg);
  --color-background-subtle: var(--surface);
  --color-error: var(--danger);
  --color-error-background: rgba(239, 68, 68, 0.12);
  --color-error-border: rgba(239, 68, 68, 0.4);
  --color-border: var(--border);
  --color-background-secondary: var(--surface);
  --color-background-hover: var(--surface-2);
  --color-primary: var(--primary);
  --color-primary-dark: var(--primary-hover);
  --color-success: var(--success);
  --color-text: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-primary-hover: var(--primary-hover);

  --accent-primary: var(--primary);
  --accent-primary-hover: var(--primary-hover);
  --accent-secondary: #475569;
  --accent-secondary-hover: #334155;
  --accent-color: var(--primary);

  --secondary-text: var(--text-muted);
  --secondary-bg: var(--surface-2);
  --text-color: var(--text);
  --border-dark: var(--border);
  --text-dark: var(--text);
  --text-secondary-dark: #cbd5e1;

  --success-color: var(--success);
  --warning-color: var(--warning);
  --error-color: var(--danger);

  /* Hero gradient tokens */
  --hero-from: #667eea;
  --hero-to: #764ba2;
  --on-hero-strong: #ffffff;
  --on-hero-muted: rgba(255, 255, 255, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Semantic boundary for controls that must remain visible on dark surfaces. */
:where(input, select, textarea) {
  border-color: var(--control-boundary);
}

:where(button[aria-expanded], button[aria-pressed]) {
  border-color: var(--control-boundary);
}

#root {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
}

/* Spinner animation for chunk loading */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger.active {
  color: var(--primary);
}

.nav-dropdown-disclosure {
  font: inherit;
}

.dropdown-arrow {
  transition: transform 160ms ease-out;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: grid;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 140ms ease-out,
    transform 140ms ease-out,
    visibility 0s linear 140ms;
}

.dropdown-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.dropdown-item.active,
.dropdown-item[aria-current='page'] {
  color: var(--text-primary);
  background: var(--bg-hover);
  box-shadow: inset 3px 0 0 var(--primary);
}

.dropdown-item {
  font: inherit;
}

.dropdown-item-name {
  font-size: 0.875rem;
  font-weight: 620;
}

.dropdown-item-description {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

.nav-dropdown-trigger:not(.active) .nav-link[aria-current='page'] {
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  .dropdown-arrow,
  .dropdown-menu {
    transition: none;
  }
}
.profile-menu {
  position: relative;
  display: inline-block;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.profile-trigger:hover {
  background: var(--color-background-hover);
  border-color: var(--color-primary);
}

.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #586bcf 0%, #764ba2 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.profile-name {
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-chevron {
  transition: transform 0.2s ease;
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.profile-chevron.open {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-end: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-dropdown-header {
  padding: 1rem;
  background: var(--color-background-secondary);
  border-radius: 8px 8px 0 0;
}

.profile-dropdown-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  margin: 0 0 0.25rem 0;
}

.profile-dropdown-email {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background 0.15s ease;
  min-height: 44px;
  text-decoration: none;
}

.profile-dropdown-item:hover {
  background: var(--color-background-hover);
}

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

.profile-dropdown-item.route-exit-blocked {
  cursor: not-allowed;
  opacity: 0.68;
}

.profile-dropdown-item svg {
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.profile-dropdown-logout {
  color: var(--danger-foreground);
}

.profile-dropdown-logout svg {
  color: var(--danger-foreground);
}

.profile-dropdown-logout:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .profile-name {
    display: block;
    max-width: 5.5rem;
  }

  .profile-trigger {
    padding: 0.5rem;
  }

  .profile-dropdown {
    inset-inline-end: 0;
    width: min(220px, calc(100vw - 2rem));
    min-width: 0;
    max-width: calc(100vw - 2rem);
  }
}

@media (max-width: 480px) {
  .profile-name {
    display: none;
  }
}
.header:not(.public-site-header) {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: color-mix(in srgb, var(--bg-primary) 96%, transparent);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  z-index: 110;
  margin-right: 1.5rem;
}

.logo-text {
  white-space: nowrap;
}

.header [aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.82;
}

.desktop-nav:not(.public-site-header__desktop),
.nav-right:not(.public-site-header__desktop) {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 1.25rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  gap: 0.125rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links > li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.mobile-dropdown-items li.active .mobile-dropdown-item,
.mobile-dropdown-item[aria-current='page'] {
  color: var(--text-primary);
  background: var(--bg-hover);
  box-shadow: inset 3px 0 0 var(--primary);
}

.header-cta-section,
.header-user-section,
.auth-cta-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.header .btn {
  min-height: 44px;
  border-radius: var(--public-radius-md, 0.5rem);
}

.header .btn-primary.signup-btn {
  color: #0f1115;
  background: var(--primary);
  border-color: var(--primary);
}

.header .btn-primary.signup-btn:hover {
  color: #0f1115;
  background: var(--primary-hover);
}

.login-btn,
.dashboard-btn {
  white-space: nowrap;
}

.mobile-nav {
  z-index: 110;
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.header--intrinsic-compact .desktop-nav {
  display: none;
}

.header--intrinsic-compact .mobile-nav {
  display: flex;
}

.mobile-menu-close,
.mobile-nav-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--public-radius-md, 0.5rem);
  cursor: pointer;
}

.mobile-menu-close:hover,
.mobile-nav-disclosure:hover {
  background: var(--bg-hover);
}

.hamburger span {
  transition:
    transform 160ms ease-out,
    opacity 120ms ease-out;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--overlay-layer, 1200);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 1rem 0 2rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
}

.mobile-menu-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100%, 640px);
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu-dialog-header h2 {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.25;
}

.mobile-menu-exit-block-description {
  width: min(calc(100% - 2rem), 608px);
  margin: 1rem 1rem 0;
  padding: 0.75rem 1rem;
  color: var(--warning-foreground, #fde68a);
  background: var(--warning-light);
  border: 1px solid color-mix(in srgb, var(--warning) 42%, transparent);
  border-radius: var(--public-radius-md, 0.5rem);
  font-size: 0.875rem;
  line-height: 1.5;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: min(100%, 640px);
  margin: 0;
  padding: 1rem;
  list-style: none;
}

.mobile-nav-item {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-row.active {
  box-shadow: inset 2px 0 0 var(--primary);
}

.mobile-nav-link {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 56px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 650;
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-nav-disclosure {
  margin-right: 0.25rem;
  border-color: transparent;
}

.mobile-dropdown-arrow {
  transition: transform 160ms ease-out;
}

.mobile-dropdown-arrow.open {
  transform: rotate(180deg);
}

.mobile-dropdown-items {
  margin: 0 0 0.75rem;
  padding: 0 0 0 1rem;
  list-style: none;
  border-left: 1px solid var(--border-color);
}

.mobile-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 52px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  border-radius: var(--public-radius-sm, 0.25rem);
  text-decoration: none;
}

.mobile-dropdown-item:hover,
.mobile-dropdown-item:focus-visible {
  background: var(--bg-hover);
}

.mobile-dropdown-item-name {
  font-size: 0.9375rem;
  font-weight: 620;
}

.mobile-dropdown-item-description {
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.mobile-cta {
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.mobile-auth-cta-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.mobile-menu-overlay .mobile-auth-cta-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hamburger span,
  .mobile-dropdown-arrow {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }
}

@media (min-width: 1101px) and (max-width: 1320px) {
  .nav:not(.public-site-header__inner) {
    padding-inline: 1.25rem;
  }

  .desktop-nav {
    gap: 0.75rem;
  }

  .nav-link {
    padding-inline: 0.55rem;
    font-size: 0.875rem;
  }

  .header-cta-section {
    padding-left: 0.75rem;
  }
}

@media (max-width: 768px) {
  .nav {
    min-height: 64px;
    min-width: 0;
    gap: 0.5rem;
    padding: 0.625rem clamp(0.75rem, 4vw, 1rem);
    flex-wrap: wrap;
  }

  .logo {
    flex: 0 1 auto;
    min-width: max-content;
    max-width: 100%;
    margin-right: 0;
  }

  .logo-text {
    overflow: visible;
    text-overflow: clip;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .mobile-nav {
    flex: 0 0 auto;
    min-width: 0;
    gap: 0.25rem;
    margin-inline-start: auto;
  }

  .header--authenticated .logo {
    flex: 0 0 44px;
    width: 44px;
    max-width: 44px;
    height: 44px;
    justify-content: center;
    margin-right: auto;
  }

  .header--authenticated .logo-text {
    display: none;
  }
}

@media (max-width: 390px) {
  .mobile-auth-cta-group {
    grid-template-columns: minmax(0, 1fr);
  }

  .mobile-menu-dialog-header,
  .mobile-nav-links {
    padding-inline: 0.75rem;
  }
}

.site-header-account {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.25rem;
  margin-inline-start: 0.5rem;
}

@media (max-width: 1100px) {
  .site-header-account {
    margin-inline-start: auto;
  }

  .site-header-account + .mobile-nav {
    margin-inline-start: 0;
  }
}
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  margin-top: auto;
}

body.dashboard-route .footer {
  position: relative;
  z-index: 1;
}

body.dashboard-route .footer .container {
  padding-left: calc(2rem + 260px);
}

.footer .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(0, 3fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-section h2 {
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 1rem;
}

.footer-desktop-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 2.5rem;
}

.footer-mobile-navigation {
  display: none;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 34ch;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-style: normal;
}

.footer-contact a,
.footer-contact span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--text-primary);
  text-decoration: underline;
  outline: none;
}

.footer-link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.footer-social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.3;
}

.footer-utilities {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-motion-control {
  min-height: var(--control-size-touch, 44px);
  margin: -0.5rem 0;
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-motion-control:hover:not(:disabled),
.footer-motion-control:focus-visible,
.footer-motion-control[aria-pressed='true'] {
  color: var(--text-primary);
  text-decoration-color: currentColor;
}

.footer-motion-control:focus-visible {
  border-radius: 2px;
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.footer-motion-control:disabled {
  cursor: default;
  opacity: 0.8;
}

.footer-social-link:hover,
.footer-social-link:focus {
  color: var(--text-primary);
  text-decoration: underline;
  outline: none;
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .footer .container {
    padding: 2rem 1rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: left;
  }

  .footer-content {
    gap: 0;
  }

  .footer-introduction {
    margin-bottom: 1.5rem;
  }

  .footer-desktop-navigation {
    display: none;
  }

  .footer-mobile-navigation {
    display: block;
  }

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

  .footer-disclosure > summary {
    display: flex;
    min-height: var(--control-size-touch, 44px);
    align-items: center;
    justify-content: space-between;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .footer-disclosure > summary::-webkit-details-marker {
    display: none;
  }

  .footer-disclosure > summary::after {
    content: '+';
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
  }

  .footer-disclosure[open] > summary::after {
    transform: rotate(45deg);
  }

  .footer-disclosure > summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
  }

  .footer-disclosure:not([open]) > nav {
    display: none;
  }

  .footer-disclosure > nav {
    padding-bottom: 0.75rem;
  }

  @media (prefers-reduced-motion: reduce) {
    .footer-disclosure > summary::after {
      transition: none;
    }
  }

  .footer-link,
  .footer-social-link,
  .footer-logo,
  .footer-contact a,
  .footer-motion-control {
    display: inline-flex;
    align-items: center;
    min-width: var(--control-size-touch, 44px);
    min-height: var(--control-size-touch, 44px);
  }

  .footer-utilities {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

@media (max-width: 1024px) {
  body.dashboard-route .footer .container {
    padding-left: 2rem;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-content {
    grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.6fr);
  }

  .footer-desktop-navigation {
    gap: 1.5rem;
  }
}
/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--overlay-layer, 1200);
  padding: 1rem;
  backdrop-filter: blur(2px);
}

.modal {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  background: var(--color-background);
  border-radius: var(--overlay-radius, 12px);
  box-shadow: var(--overlay-shadow, 0 20px 60px rgba(0, 0, 0, 0.2));
  max-height: 90dvh;
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal Sizes */
.modal-small {
  width: 100%;
  max-width: 400px;
}

.modal-medium {
  width: 100%;
  max-width: 600px;
}

.modal-large {
  width: 100%;
  max-width: 900px;
}

.modal-full {
  width: 95vw;
  height: 95vh;
  max-width: none;
  max-height: 95dvh;
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background-subtle);
  border-radius: 12px 12px 0 0;
}

.modal-title {
  min-width: 0;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-foreground);
  overflow-wrap: anywhere;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-foreground-muted);
  cursor: pointer;
  padding: 0;
  width: var(--control-size-touch, 44px);
  height: var(--control-size-touch, 44px);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:not(:disabled):hover {
  background: var(--color-background-hover);
  color: var(--color-foreground);
}

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

.modal-close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Modal Content */
.modal-content {
  min-height: 0;
  overflow-y: auto;
  padding: 1.5rem;
  color: var(--color-foreground);
}

/* Scrolling */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: var(--color-background-subtle);
}

.modal-content::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--color-foreground-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .modal {
    animation: modalSlideIn 0.2s ease-out;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .modal-backdrop {
    padding: 0.5rem;
  }

  .modal {
    width: 100%;
    max-width: none;
    max-height: 95vh;
    margin: 0;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-content {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.25rem;
  }
}
.cookie-modal.modal {
  max-width: 32rem;
  border-radius: var(--overlay-radius, 1rem);
  background: var(--card-bg);
}

.cookie-modal .modal-content {
  padding: 0;
}

.cookie-modal-body {
  padding: 1.5rem 1.5rem 0;
}

.cookie-modal-lead {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cookie-categories {
  display: flex;
  flex-direction: column;
}

.cookie-category {
  padding: 1rem 0;
}

.cookie-category + .cookie-category {
  border-top: 1px solid var(--border-color);
}

.cookie-category-header {
  margin-bottom: 0.5rem;
}

.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--control-size-touch, 2.75rem);
  cursor: pointer;
  user-select: none;
}

.cookie-toggle input[type='checkbox'] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.toggle-slider {
  position: relative;
  width: 2.75rem;
  height: 1.5rem;
  background: var(--border-color);
  border-radius: 0.75rem;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.cookie-toggle input:checked + .toggle-slider::after {
  transform: translateX(1.25rem);
}

.toggle-slider.disabled,
.cookie-toggle input:disabled + .toggle-slider.disabled {
  background: var(--text-tertiary, #94a3b8);
  cursor: not-allowed;
}

.toggle-slider.disabled::after {
  background: #f1f5f9;
}

.category-name {
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  font-size: 0.9rem;
}

.category-description {
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-top: 1px solid var(--border-color, #e2e8f0);
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-reset-link {
  display: inline-flex;
  min-height: var(--control-size-touch, 2.75rem);
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary, #64748b);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0 0.5rem;
  transition: color 0.2s ease;
}

.cookie-reset-link:hover {
  color: var(--text-primary, #1e293b);
}

.cookie-modal-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.cookie-modal button.btn-primary,
.cookie-modal .btn-secondary {
  min-height: var(--control-size-touch, 2.75rem);
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  border: 1px solid;
  line-height: 1.25;
}

/* Outrank the legacy body-level primary-button fallback, including in portal dialogs. */
body .cookie-modal button.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

body .cookie-modal button.btn-primary:hover {
  background: var(--primary);
  border-color: var(--primary-hover);
}

.cookie-modal .btn-secondary {
  background: var(--card-bg, #ffffff);
  color: var(--text-secondary, #64748b);
  border-color: var(--border-color, #e2e8f0);
}

.cookie-modal .btn-secondary:hover {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  border-color: var(--text-tertiary, #94a3b8);
}

.cookie-modal .cookie-toggle input:focus-visible + .toggle-slider,
.cookie-modal button:focus-visible {
  outline: 2px solid var(--focus-ring, var(--primary));
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .cookie-modal.modal {
    border-radius: 1rem;
  }

  .cookie-modal-body,
  .cookie-modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cookie-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-modal-actions {
    width: 100%;
    justify-content: space-between;
  }

  .cookie-modal button.btn-primary,
  .cookie-modal .btn-secondary {
    flex: 1;
  }

  .cookie-reset-link {
    text-align: center;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-modal .toggle-slider,
  .cookie-modal .toggle-slider::after,
  .cookie-modal button.btn-primary,
  .cookie-modal .btn-secondary {
    transition: none;
  }
}
/* In-flow consent banner: it participates in document layout and cannot cover page tasks. */
.cookie-banner-container {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
}

.cookie-banner {
  max-width: 80rem;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--control-boundary);
  border-radius: var(--overlay-radius, 1rem);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.cookie-banner-content {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: 1fr;
}

/* Mobile-first text layout */
.cookie-banner-text h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.cookie-banner-text p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cookie-banner-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cookie-banner button.btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-text {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid;
  line-height: 1.25;
  text-align: center;
  width: 100%;
  min-height: 2.75rem;
}

.cookie-banner button.btn-primary:disabled,
.cookie-banner .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.cookie-banner button.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.cookie-banner button.btn-primary:hover:not(:disabled),
.cookie-banner button.btn-primary:focus:not(:disabled) {
  background: var(--primary);
  border-color: var(--primary-hover);
}

.cookie-banner .btn-secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border-color: var(--control-boundary);
}

.cookie-banner .btn-secondary:hover:not(:disabled),
.cookie-banner .btn-secondary:focus:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
  outline: none;
}

.cookie-banner .btn-text {
  background: transparent;
  color: var(--text-secondary, #64748b);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.cookie-banner .btn-text:hover,
.cookie-banner .btn-text:focus {
  color: var(--text-primary, #1e293b);
  background: var(--bg-secondary, #f8fafc);
  outline: none;
}

.cookie-policy-link {
  font-size: 0.75rem;
  color: var(--text-tertiary, #94a3b8);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

.privacy-link {
  color: var(--text-secondary, #64748b);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.privacy-link:hover,
.privacy-link:focus {
  color: var(--text-primary, #1e293b);
  outline: none;
}

/* Dismiss button (only shown after choice) */
.cookie-banner-dismiss {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-tertiary, #94a3b8);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  line-height: 1;
  transition: all 0.2s ease;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-banner-dismiss:hover,
.cookie-banner-dismiss:focus {
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-primary, #1e293b);
  outline: none;
}

/* Floating cookie settings trigger */
.cookie-settings-trigger {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--card-bg, #ffffff);
  border: 1px solid var(--border-color, #e2e8f0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-settings-trigger--mobile-inline {
  display: none;
}

.cookie-settings-trigger--mobile-relocated {
  display: none;
}

.cookie-settings-trigger.cookie-settings-trigger--mobile-inline {
  position: static;
  flex: 0 0 auto;
  display: flex;
}

@media (max-width: 639px) {
  .cookie-settings-trigger {
    display: none;
  }
}

.cookie-settings-trigger:hover,
.cookie-settings-trigger:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  outline: none;
}

.cookie-banner-container button:focus-visible,
.cookie-banner-container a:focus-visible,
.cookie-settings-trigger:focus-visible {
  outline: 2px solid var(--focus-ring, var(--primary));
  outline-offset: 3px;
}

/* Tablet and desktop responsive design */
@media (min-width: 640px) {
  .cookie-banner-container {
    padding: 1.25rem;
  }

  .cookie-banner {
    border-radius: 1.5rem;
  }

  .cookie-banner-content {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
  }

  .cookie-banner-text {
    max-width: none;
  }

  .cookie-banner-actions {
    flex-shrink: 0;
    min-width: 20rem;
  }

  .cookie-banner-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }

  .cookie-banner button.btn-primary,
  .cookie-banner .btn-secondary {
    width: auto;
    min-width: 7rem;
    flex: 0 0 auto;
  }

  .cookie-banner .btn-text {
    width: auto;
    flex: 0 0 auto;
  }

  .cookie-policy-link {
    text-align: left;
  }
}

/* Large desktop optimization */
@media (min-width: 1024px) {
  .cookie-banner-content {
    padding: 1.5rem;
  }

  .cookie-banner-text h3 {
    font-size: 1.25rem;
  }

  .cookie-banner-text p {
    font-size: 0.9375rem;
  }

  .cookie-banner button.btn-primary,
  .cookie-banner .btn-secondary,
  .cookie-banner .btn-text {
    font-size: 0.9375rem;
    padding: 0.75rem 1.25rem;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .cookie-banner {
    border-width: 2px;
  }

  .cookie-banner button.btn-primary,
  .cookie-banner .btn-secondary,
  .cookie-banner .btn-text {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }

  .cookie-banner button.btn-primary:hover,
  .cookie-banner .btn-secondary:hover,
  .cookie-banner .btn-text:hover,
  .cookie-banner-dismiss:hover,
  .cookie-settings-trigger:hover {
    transform: none;
  }
}

/* Dark-only theme uses global tokens */
.request-state {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 0;
  border-block: 1px solid var(--app-divider, var(--border-subtle));
  color: var(--text-secondary);
}

.request-state__content {
  flex: 1;
  min-width: 0;
}

.request-state__title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.35;
}

.request-state p {
  max-width: 70ch;
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
}

.request-state__icon {
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.request-state--error .request-state__icon {
  color: var(--danger);
}

.request-state--success .request-state__icon {
  color: var(--success);
}

.request-state--unavailable .request-state__icon {
  color: var(--warning);
}

.request-state__action {
  margin-top: 0.75rem;
}

.request-state__skeleton {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.request-state__skeleton span {
  display: block;
  width: min(100%, 34rem);
  height: 0.75rem;
  border-radius: 4px;
  background: var(--surface-2);
}

.request-state__skeleton span:nth-child(2) {
  width: min(78%, 26rem);
}

.request-state__skeleton span:nth-child(3) {
  width: min(58%, 19rem);
}
/*
 * Shared presentation for route-level denial and not-found states.
 *
 * Replaces roughly thirty lines of inline style objects with the existing Card and Button
 * primitives so these screens match the rest of the application instead of being a one-off.
 */

.route-denied {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 3rem 1rem;
}

.route-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 60vh;
  padding: 2rem 1rem;
  text-align: center;
}

.route-error-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 60vh;
  padding: 2rem 1rem;
}

.route-request-state {
  width: min(100%, 42rem);
}

.route-request-state .request-state__title {
  font-size: 1.4rem;
}

.route-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.route-state-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1.25;
}

.route-denied-card {
  width: 100%;
  max-width: 34rem;
  text-align: center;
}

.route-denied-message {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.route-denied-detail {
  margin: 0.75rem auto 0;
  max-width: 30rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.route-denied-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.route-denied-actions .btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .route-denied {
    padding: 2rem 0.75rem;
  }

  .route-denied-actions .btn {
    flex: 1 1 100%;
  }

  .route-error-actions .btn {
    flex: 1 1 100%;
  }
}
.toast-stack {
  position: fixed;
  inset-block-start: max(5.5rem, calc(4.5rem + env(safe-area-inset-top)));
  inset-inline-end: max(1rem, env(safe-area-inset-right));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1200;
  box-sizing: border-box;
  width: min(360px, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem - env(safe-area-inset-top));
  overflow-y: auto;
  pointer-events: none;
}

.toast-stack:empty {
  display: none;
}

.toast {
  display: flex;
  width: min(100%, 360px);
  align-items: flex-start;
  gap: 0.75rem;
  box-sizing: border-box;
  margin-inline: auto;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
  color: var(--text-primary);
  animation: toastSlideIn 0.2s ease-out;
  overflow-wrap: anywhere;
  pointer-events: auto;
}

.toast-info {
  border-color: rgba(59, 130, 246, 0.35);
}

.toast-success {
  border-color: rgba(16, 185, 129, 0.35);
}

.toast-warning {
  border-color: rgba(245, 158, 11, 0.45);
}

.toast-error {
  border-color: rgba(239, 68, 68, 0.45);
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-type-icon {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}

.toast-info .toast-type-icon,
.toast-info .toast-type-label {
  color: var(--link);
}

.toast-success .toast-type-icon,
.toast-success .toast-type-label {
  color: var(--success-foreground);
}

.toast-warning .toast-type-icon,
.toast-warning .toast-type-label {
  color: var(--warning-foreground);
}

.toast-error .toast-type-icon,
.toast-error .toast-type-label {
  color: var(--danger-foreground);
}

.toast-type-label {
  margin-bottom: 0.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toast-message {
  font-weight: 600;
  font-size: 0.95rem;
}

.toast-description {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.toast-close {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex: 0 0 44px;
  place-items: center;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  touch-action: manipulation;
}

.toast-close:hover {
  color: var(--text-primary);
}

.toast-close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}

@media (max-width: 480px) {
  .toast-stack {
    inset-inline-start: max(0.75rem, env(safe-area-inset-left));
    inset-inline-end: max(0.75rem, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    max-height: min(60vh, calc(100dvh - 2rem - env(safe-area-inset-top)));
  }
}
.confirm-modal .modal-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.confirm-message {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.confirm-message > p {
  margin: 0;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.confirm-actions .btn {
  min-height: 44px;
}

.confirm-modal--workspace {
  --confirm-workspace-primary: var(--ws-primary-action, var(--primary));
  --confirm-workspace-primary-hover: var(--ws-primary-action-hover, var(--primary-hover));
  --confirm-workspace-primary-contrast: var(
    --ws-primary-action-contrast,
    var(--primary-foreground)
  );
  --confirm-workspace-focus: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 35%, transparent);
}

.confirm-modal--workspace .confirm-actions .btn {
  min-height: var(--control-size-touch, 44px);
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 650;
  transition:
    background 100ms cubic-bezier(0.2, 0, 0, 1),
    border-color 100ms cubic-bezier(0.2, 0, 0, 1),
    color 100ms cubic-bezier(0.2, 0, 0, 1);
}

.confirm-modal--workspace .confirm-actions .btn-primary {
  border-color: transparent;
  background: var(--confirm-workspace-primary);
  color: var(--confirm-workspace-primary-contrast);
}

.confirm-modal--workspace .confirm-actions .btn-primary:hover:not(:disabled) {
  background: var(--confirm-workspace-primary-hover);
  box-shadow: none;
  transform: none;
}

.confirm-modal--workspace .confirm-actions .btn-primary:disabled {
  background: var(--ws-primary-action-disabled, var(--primary));
  color: var(--confirm-workspace-primary-contrast);
  opacity: 1;
}

.confirm-modal--workspace .confirm-actions .btn-secondary {
  border-color: color-mix(in srgb, var(--text-muted) 45%, var(--border));
  background: var(--surface);
  color: var(--text-primary);
}

.confirm-modal--workspace .confirm-actions .btn-secondary:hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
  background: var(--surface-elevated);
  color: var(--text-primary);
  transform: none;
}

.confirm-modal--workspace .confirm-actions .btn-danger {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--border));
  background: color-mix(in srgb, var(--danger) 16%, var(--surface));
  color: color-mix(in srgb, var(--danger) 72%, white);
}

.confirm-modal--workspace .confirm-actions .btn-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--danger) 26%, var(--surface));
  transform: none;
}

.confirm-modal--workspace .confirm-actions .btn:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: var(--confirm-workspace-focus);
}
.App {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
    'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.app-main {
  flex: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.app-main--pdf-viewer {
  display: flex;
  min-height: 0;
  overflow: visible;
}

* {
  box-sizing: border-box;
}

/* Global Button Styles - Scoped to avoid Drive conflicts */
.legacy-ui .btn,
.page-content .btn,
body:not(.authenticated-surface) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 0.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  user-select: none;
  font-family: inherit;
}

.legacy-ui .btn:focus-visible,
.page-content .btn:focus-visible,
body:not(.authenticated-surface) .btn:focus-visible {
  outline: 2px solid var(--hero-from, #667eea);
  outline-offset: 2px;
}

/* Button Sizes - Scoped to avoid Drive conflicts */
.legacy-ui .btn-small,
.page-content .btn-small,
body:not(.authenticated-surface) .btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.legacy-ui .btn-medium,
.page-content .btn-medium,
body:not(.authenticated-surface) .btn-medium {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.legacy-ui .btn-large,
.page-content .btn-large,
body:not(.authenticated-surface) .btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Button Variants - Scoped to avoid Drive conflicts */
.legacy-ui .btn-primary,
.page-content .btn-primary,
body:not(.authenticated-surface) .btn-primary {
  background: linear-gradient(135deg, var(--hero-from, #667eea) 0%, var(--hero-to, #764ba2) 100%);
  color: white;
  border: 1px solid transparent;
}

.legacy-ui .btn-primary:hover:not(:disabled),
.page-content .btn-primary:hover:not(:disabled),
body:not(.authenticated-surface) .btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.legacy-ui .btn-primary:active:not(:disabled),
.page-content .btn-primary:active:not(:disabled),
body:not(.authenticated-surface) .btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

.btn-tertiary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-tertiary:hover:not(:disabled) {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-elevated, var(--bg-tertiary));
  color: var(--text-primary);
}

.btn-danger {
  background: #b91c1c;
  color: white;
  border: 1px solid transparent;
}

.btn-danger:hover:not(:disabled) {
  background: #991b1b;
  transform: translateY(-1px);
}

.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Dark-only tokens already provide correct styles */
/*
 * Authenticated product tokens. Public and SSR-rendered pages continue to inherit :root unchanged.
 * The body scope is deliberate: drawers, menus, and dialogs portal to a body-level overlay root.
 */
body.authenticated-surface {
  --app-canvas: #0f1115;
  --app-nav: #14161c;
  --app-surface: #191c24;
  --app-text: #f2f3f5;
  --app-text-secondary: #a5aab8;
  --app-accent: #a78bfa;
  --app-accent-foreground: #0f1115;
  --app-divider: #2b2f39;
  --app-boundary: #697080;
  --app-focus-ring: #c4b5fd;
  --app-sidebar-width: 224px;
  --app-header-height: 56px;
  --app-radius: 8px;

  --bg: var(--app-canvas);
  --background: var(--app-canvas);
  --bg-primary: var(--app-canvas);
  --surface: var(--app-surface);
  --surface-2: #20242e;
  --surface-elevated: #20242e;
  --bg-secondary: var(--app-surface);
  --background-secondary: var(--app-surface);
  --card-bg: var(--app-surface);
  --card-background: var(--app-surface);
  --text: var(--app-text);
  --text-primary: var(--app-text);
  --text-secondary: var(--app-text-secondary);
  --text-muted: var(--app-text-secondary);
  --border: var(--app-boundary);
  --border-color: var(--app-boundary);
  --border-subtle: var(--app-divider);
  --primary: var(--app-accent);
  --primary-hover: #b9a5fb;
  --primary-foreground: var(--app-accent-foreground);
  --primary-light: rgb(167 139 250 / 14%);
  --link: #c4b5fd;
  --focus-ring: var(--app-focus-ring);
  --bg-hover: rgb(165 170 184 / 12%);
  --hover-bg: rgb(165 170 184 / 12%);

  background: var(--app-canvas);
  color: var(--app-text);
}

body.authenticated-surface ::selection {
  background: var(--app-accent);
  color: var(--app-accent-foreground);
}

body.authenticated-surface :focus-visible {
  outline-color: var(--app-focus-ring);
}

body.authenticated-surface .profile-avatar-placeholder {
  background: var(--app-accent);
  color: var(--app-accent-foreground);
}

body.authenticated-surface .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--app-radius);
  color: var(--app-text);
  font: inherit;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

body.authenticated-surface .btn-small {
  min-height: 2.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

body.authenticated-surface .btn-medium {
  min-height: var(--control-size-touch, 44px);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

body.authenticated-surface .btn-large {
  min-height: var(--control-size-touch, 44px);
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}

body.authenticated-surface .btn-primary {
  background: var(--app-accent);
  color: var(--app-accent-foreground);
}

body.authenticated-surface .btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: var(--app-accent-foreground);
}

body.authenticated-surface .btn-secondary {
  border-color: var(--app-boundary);
  background: var(--app-surface);
  color: var(--app-text);
}

body.authenticated-surface .btn-secondary:hover:not(:disabled),
body.authenticated-surface .btn-tertiary:hover:not(:disabled),
body.authenticated-surface .btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--app-text);
}

body.authenticated-surface .btn-tertiary,
body.authenticated-surface .btn-ghost {
  background: transparent;
  color: var(--app-text-secondary);
}

body.authenticated-surface .btn-danger {
  background: #b91c1c;
  color: #fff;
}

body.authenticated-surface .btn-danger:hover:not(:disabled) {
  background: #991b1b;
}

body.authenticated-surface .btn-icon {
  width: var(--control-size-touch, 44px);
  height: var(--control-size-touch, 44px);
  padding: 0;
}

body.authenticated-surface .btn:focus-visible {
  outline: 2px solid var(--app-focus-ring);
  outline-offset: 2px;
}

body.authenticated-surface .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  body.authenticated-surface {
    scroll-behavior: auto !important;
  }

  body.authenticated-surface .toast,
  body.authenticated-surface .modal-content,
  body.authenticated-surface .side-drawer,
  body.authenticated-surface .ws-overlay,
  body.authenticated-surface .employee-workspace-layout__drawer,
  body.authenticated-surface .dashboard-guidance {
    animation: none !important;
    transition: none !important;
  }
}
.model-flow {
  --model-flow-cycle: 14s;
  --model-flow-play-state: paused;
  position: relative;
  z-index: 0;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
  color: #f2f3f5;
  opacity: 1;
  pointer-events: none;
}

.model-flow-mobile-diagram {
  display: none;
}

.model-flow[data-motion-state='running'] {
  --model-flow-play-state: running;
}

.model-flow-diagram {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.model-flow-grid path {
  fill: none;
  stroke: rgba(165, 170, 184, 0.08);
  stroke-width: 1;
}

.model-flow-stage-labels text {
  fill: #b8bdc9;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.25px;
  opacity: 0.9;
}

.model-flow-stage-label--source {
  letter-spacing: 0.75px;
}

.model-flow-token rect {
  fill: rgba(167, 139, 250, 0.13);
  stroke: rgba(185, 165, 255, 0.68);
  stroke-width: 1.4;
}

.model-flow-token text,
.model-flow-context-token text {
  fill: #f2f3f5;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  text-anchor: middle;
}

.model-flow-source-line,
.model-flow-output-line,
.model-flow-context-link {
  fill: none;
  stroke: rgba(185, 165, 255, 0.52);
  stroke-dasharray: 4 5;
  stroke-width: 1.4;
}

.model-flow-encoder > path {
  fill: url('#encoder-plane');
  stroke: rgba(167, 139, 250, 0.28);
  stroke-width: 1.2;
}

.model-flow-encoder .model-flow-encoder-front {
  fill: rgba(167, 139, 250, 0.16);
  stroke: rgba(185, 165, 255, 0.74);
}

.model-flow-encoder > text,
.model-flow-decoder > text {
  fill: #e4dcff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-anchor: middle;
}

.model-flow-encoder .model-flow-small-label,
.model-flow-decoder .model-flow-small-label {
  fill: #c1c5cf;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.25px;
}

.model-flow-context-token rect {
  fill: rgba(167, 139, 250, 0.09);
  stroke: rgba(167, 139, 250, 0.48);
  stroke-width: 1.2;
}

.model-flow-context-token > path {
  stroke: rgba(185, 165, 255, 0.3);
  stroke-width: 2;
}

.model-flow-attention-path {
  fill: none;
  stroke: #67e8f9;
  stroke-dasharray: 6 7;
  stroke-width: 2;
}

.model-flow-decoder > path {
  fill: url('#decoder-plane');
  stroke: rgba(103, 232, 249, 0.24);
  stroke-width: 1.2;
}

.model-flow-decoder .model-flow-decoder-front {
  fill: rgba(103, 232, 249, 0.12);
  stroke: rgba(103, 232, 249, 0.68);
}

.model-flow-decoder > text {
  fill: #b7f4fa;
}

.model-flow-output-line {
  stroke: rgba(103, 232, 249, 0.56);
}

.model-flow-output-token rect {
  fill: rgba(103, 232, 249, 0.1);
  stroke: rgba(103, 232, 249, 0.76);
}

.model-flow-prefix path {
  fill: none;
  color: #67e8f9;
  stroke: rgba(103, 232, 249, 0.55);
  stroke-dasharray: 5 6;
  stroke-width: 1.5;
}

.model-flow-prefix text {
  fill: #b8bdc9;
  font-family: inherit;
  font-size: 16px;
  text-anchor: middle;
  opacity: 0.9;
}

.model-flow:not([data-motion-state='static'])
  :is(
    .model-flow-source-token,
    .model-flow-source-line,
    .model-flow-context-token,
    .model-flow-context-link,
    .model-flow-attention-path,
    .model-flow-output-line,
    .model-flow-output-token,
    .model-flow-prefix
  ) {
  animation-duration: var(--model-flow-cycle);
  animation-iteration-count: infinite;
  animation-play-state: var(--model-flow-play-state);
  animation-timing-function: linear;
  transform-box: fill-box;
  transform-origin: center;
}

.model-flow:not([data-motion-state='static']) .model-flow-source-token {
  animation-name: model-flow-source-token;
}

.model-flow:not([data-motion-state='static']) .model-flow-source-token-two {
  animation-name: model-flow-source-token-two;
}

.model-flow:not([data-motion-state='static']) .model-flow-source-token-three {
  animation-name: model-flow-source-token-three;
}

.model-flow:not([data-motion-state='static']) .model-flow-source-line {
  animation-name: model-flow-source-line;
}

.model-flow:not([data-motion-state='static']) .model-flow-line-two {
  animation-name: model-flow-source-line-two;
}

.model-flow:not([data-motion-state='static']) .model-flow-line-three {
  animation-name: model-flow-source-line-three;
}

.model-flow:not([data-motion-state='static']) .model-flow-context-link {
  animation-name: model-flow-context-link;
}

.model-flow:not([data-motion-state='static']) .model-flow-context-one {
  animation-name: model-flow-context-one;
}

.model-flow:not([data-motion-state='static']) .model-flow-context-two {
  animation-name: model-flow-context-two;
}

.model-flow:not([data-motion-state='static']) .model-flow-context-three {
  animation-name: model-flow-context-three;
}

.model-flow:not([data-motion-state='static']) .model-flow-attention-path {
  animation-name: model-flow-attention-one;
}

.model-flow:not([data-motion-state='static']) .attention-step-two {
  animation-name: model-flow-attention-two;
}

.model-flow:not([data-motion-state='static']) .attention-step-three {
  animation-name: model-flow-attention-three;
}

.model-flow:not([data-motion-state='static']) .model-flow-output-line,
.model-flow:not([data-motion-state='static']) .model-flow-output-token {
  animation-name: model-flow-output-one;
}

.model-flow:not([data-motion-state='static'])
  :is(.model-flow-output-line:nth-of-type(2), .model-flow-output-two) {
  animation-name: model-flow-output-two;
}

.model-flow:not([data-motion-state='static'])
  :is(.model-flow-output-line:nth-of-type(3), .model-flow-output-three) {
  animation-name: model-flow-output-three;
}

.model-flow:not([data-motion-state='static']) .model-flow-prefix {
  animation-name: model-flow-prefix-return;
}

@keyframes model-flow-source-token {
  0%,
  3% {
    opacity: 0;
    transform: translateX(-28px);
  }
  10%,
  96% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@keyframes model-flow-source-token-two {
  0%,
  5% {
    opacity: 0;
    transform: translateX(-20px);
  }
  12%,
  96% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@keyframes model-flow-source-token-three {
  0%,
  8% {
    opacity: 0;
    transform: translateX(-20px);
  }
  15%,
  96% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

@keyframes model-flow-source-line {
  0%,
  8% {
    opacity: 0;
    stroke-dashoffset: 32;
  }
  18%,
  96% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-source-line-two {
  0%,
  10% {
    opacity: 0;
    stroke-dashoffset: 32;
  }
  20%,
  96% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-source-line-three {
  0%,
  12% {
    opacity: 0;
    stroke-dashoffset: 32;
  }
  22%,
  96% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-context-link {
  0%,
  17% {
    opacity: 0;
    transform: translateX(-10px) scale(0.94);
  }
  27%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-context-one {
  0%,
  18% {
    opacity: 0;
    transform: translateX(-10px) scale(0.94);
  }
  23%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-context-two {
  0%,
  21% {
    opacity: 0;
    transform: translateX(-10px) scale(0.94);
  }
  25%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-context-three {
  0%,
  24% {
    opacity: 0;
    transform: translateX(-10px) scale(0.94);
  }
  27%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-attention-one {
  0%,
  31% {
    opacity: 0;
    stroke-dashoffset: 44;
  }
  36%,
  43% {
    opacity: 0.9;
    stroke-dashoffset: 0;
  }
  47%,
  71% {
    opacity: 0.18;
    stroke-dashoffset: 0;
  }
  75%,
  96% {
    opacity: 0.28;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes model-flow-attention-two {
  0%,
  45% {
    opacity: 0;
    stroke-dashoffset: 44;
  }
  50%,
  57% {
    opacity: 0.9;
    stroke-dashoffset: 0;
  }
  61%,
  71% {
    opacity: 0.18;
    stroke-dashoffset: 0;
  }
  75%,
  96% {
    opacity: 0.36;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes model-flow-attention-three {
  0%,
  59% {
    opacity: 0;
    stroke-dashoffset: 44;
  }
  64%,
  71% {
    opacity: 0.9;
    stroke-dashoffset: 0;
  }
  75%,
  96% {
    opacity: 0.5;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 0;
  }
}

@keyframes model-flow-output-one {
  0%,
  40% {
    opacity: 0;
    transform: translateX(-10px) scale(0.92);
  }
  47%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-output-two {
  0%,
  54% {
    opacity: 0;
    transform: translateX(-10px) scale(0.92);
  }
  61%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-output-three {
  0%,
  68% {
    opacity: 0;
    transform: translateX(-10px) scale(0.92);
  }
  75%,
  96% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
  }
}

@keyframes model-flow-prefix-return {
  0%,
  48% {
    opacity: 0;
    stroke-dashoffset: -34;
  }
  56%,
  96% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 47.99rem) {
  .model-flow {
    margin-top: 0;
  }

  .model-flow-grid,
  .model-flow-encoder > path:not(.model-flow-encoder-front),
  .model-flow-decoder > path:not(.model-flow-decoder-front),
  .model-flow-attention .attention-step-two:nth-of-type(3),
  .model-flow-attention .attention-step-three:nth-of-type(6) {
    display: none;
  }

  .model-flow-stage-labels text {
    font-size: 28px;
    letter-spacing: 0.9px;
    opacity: 1;
  }

  .model-flow-stage-label--source {
    letter-spacing: 0.5px;
  }

  .model-flow-encoder > text,
  .model-flow-decoder > text,
  .model-flow-encoder .model-flow-small-label,
  .model-flow-decoder .model-flow-small-label {
    display: none;
  }

  .model-flow-prefix text {
    font-size: 28px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-flow *,
  .model-flow *::before,
  .model-flow *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}

@media (max-width: 47.99rem) {
  .model-flow-diagram {
    display: none;
  }

  .model-flow-mobile-diagram {
    display: grid;
    gap: 0;
    padding: 0.5rem 0.25rem;
    border-block: 1px solid rgba(167, 139, 250, 0.3);
  }

  .model-flow-mobile-stage {
    min-height: 3rem;
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid rgba(167, 139, 250, 0.2);
  }

  .model-flow-mobile-stage--source,
  .model-flow-mobile-stage--output {
    border-color: rgba(103, 232, 249, 0.3);
  }

  .model-flow-mobile-stage:last-child {
    border-bottom: 0;
  }

  .model-flow-mobile-stage-label {
    color: #e4dcff;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.35;
  }

  .model-flow-mobile-stage-label--source {
    display: grid;
  }

  .model-flow-mobile-stage-detail {
    color: #c1c5cf;
    font-size: 0.875rem;
    line-height: 1.35;
  }

  .model-flow-mobile-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .model-flow-mobile-tokens span {
    display: inline-flex;
    min-width: 2.35rem;
    min-height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(185, 165, 255, 0.68);
    border-radius: 0.4rem;
    color: #f2f3f5;
    font-size: 1rem;
    font-weight: 700;
  }

  .model-flow-mobile-arrow {
    color: #67e8f9;
    height: 1rem;
    font-size: 1rem;
    line-height: 1rem;
    text-align: center;
  }
}
.home-page {
  --home-ink: #f2f3f5;
  --home-muted: #a5aab8;
  --home-canvas: #0f1115;
  --home-surface: #191c24;
  --home-surface-soft: #14171d;
  --home-violet: #a78bfa;
  --home-violet-strong: #b9a5ff;
  --home-cyan: #67e8f9;
  --home-line: rgba(165, 170, 184, 0.2);
  min-height: 100vh;
  overflow-x: visible;
  background: var(--home-canvas);
  color: var(--home-ink);
}

.home-page ::selection {
  background: var(--home-violet);
  color: var(--home-canvas);
}

.home-page :where(a, button):focus-visible {
  outline: 3px solid var(--home-cyan);
  outline-offset: 4px;
}

.home-page .home-shell {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
}

.home-page .home-hero {
  position: relative;
  isolation: isolate;
  min-height: 47rem;
  display: grid;
  align-items: center;
  padding-block: clamp(5rem, 9vw, 8.5rem);
  overflow: hidden;
  background: var(--home-canvas);
}

.home-page .home-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--home-line);
}

.home-page .home-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.home-page .home-hero-layout > .model-flow {
  width: min(100%, 42rem);
  justify-self: end;
}

.home-page .home-hero-copy {
  position: relative;
  max-width: 48rem;
}

.home-page .home-eyebrow,
.home-page .home-section-label {
  color: var(--home-violet-strong);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-page .home-eyebrow {
  margin: 0 0 1.35rem;
}

.home-page .home-hero h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(3.25rem, 5.3vw, 5.75rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.home-page .home-hero-support {
  max-width: 40rem;
  margin: 2rem 0 0;
  color: #c5c8d1;
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.65;
}

.home-page .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.25rem;
}

.home-page .home-button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  font-size: 0.94rem;
  font-weight: 720;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .home-button:hover {
  transform: translateY(-2px);
}

.home-page .home-button-primary {
  background: var(--home-violet);
  color: #17121f;
}

.home-page .home-button-primary:hover {
  background: #bdabff;
  color: #17121f;
}

.home-page .home-button-secondary {
  border-color: rgba(242, 243, 245, 0.25);
  background: rgba(242, 243, 245, 0.04);
  color: var(--home-ink);
}

.home-page .home-button-secondary:hover {
  border-color: rgba(242, 243, 245, 0.5);
  background: rgba(242, 243, 245, 0.08);
  color: var(--home-ink);
}

.home-page .home-inquiry,
.home-page .home-library,
.home-page .home-practice,
.home-page .home-contact {
  padding-block: clamp(5.5rem, 9vw, 9rem);
}

.home-page .home-inquiry {
  background: var(--home-surface-soft);
}

.home-page .home-section-grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.home-page .home-section-intro {
  position: sticky;
  top: 7rem;
}

.home-page .home-section-label {
  margin: 0 0 1rem;
}

.home-page .home-section-intro h2,
.home-page .home-section-heading-row h2,
.home-page .home-contact h2 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(2.35rem, 4vw, 4.4rem);
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.home-page .home-section-intro > p:last-child,
.home-page .home-section-heading-row > p,
.home-page .home-contact-inner > p:not(.home-section-label) {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: var(--home-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.home-page .home-theme-list {
  border-top: 1px solid var(--home-line);
}

.home-page .home-theme {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1.5rem;
  padding-block: 2.1rem;
  border-bottom: 1px solid var(--home-line);
}

.home-page .home-theme-index {
  margin: 0.22rem 0 0;
  color: var(--home-violet-strong);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.home-page .home-theme h3 {
  margin: 0;
  color: var(--home-ink);
  font-size: clamp(1.25rem, 2vw, 1.62rem);
  font-weight: 650;
  line-height: 1.25;
}

.home-page .home-theme p:last-child {
  max-width: 44rem;
  margin: 0.72rem 0 0;
  color: var(--home-muted);
  line-height: 1.7;
}

.home-page .home-practice {
  background: var(--home-canvas);
}

.home-page .home-section-heading-row {
  display: grid;
  grid-template-columns: 1fr minmax(20rem, 0.62fr);
  gap: 4rem;
  align-items: end;
}

.home-page .home-section-heading-row > p {
  margin-bottom: 0.45rem;
}

.home-page .home-projects {
  display: grid;
  grid-template-columns: 1.14fr 0.86fr;
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.home-page .home-project {
  min-width: 0;
  padding: clamp(2rem, 4vw, 3.6rem);
}

.home-page .home-project + .home-project {
  border-left: 1px solid var(--home-line);
}

.home-page .home-project-active {
  background: var(--home-surface);
}

.home-page .home-project-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--home-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-page .home-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--home-ink);
}

.home-page .home-status::before {
  content: '';
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: currentColor;
}

.home-page .home-status-active {
  color: var(--home-cyan);
}

.home-page .home-status-complete {
  color: #c5c8d1;
}

.home-page .home-project h3 {
  max-width: 18ch;
  margin: 2rem 0 0;
  color: var(--home-ink);
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

.home-page .home-project > p {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: var(--home-muted);
  line-height: 1.72;
}

.home-page .home-text-link {
  width: fit-content;
  min-height: 2.75rem;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 2rem;
  color: var(--home-ink);
  font-weight: 700;
  text-decoration-color: rgba(167, 139, 250, 0.65);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.4rem;
}

.home-page .home-text-link:hover {
  color: var(--home-violet-strong);
  text-decoration-color: currentColor;
}

.home-page .home-library {
  background: var(--home-surface-soft);
}

.home-page .home-resource-list {
  border-top: 1px solid var(--home-line);
}

.home-page .home-resource-link {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--home-line);
  color: var(--home-ink);
  text-decoration: none;
  transition:
    color 180ms ease,
    padding 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-page .home-resource-link:hover {
  padding-inline: 0.6rem;
  color: var(--home-violet-strong);
}

.home-page .home-resource-link > span:first-child {
  display: grid;
  gap: 0.45rem;
}

.home-page .home-resource-type {
  color: var(--home-violet-strong);
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-page .home-resource-link strong {
  font-size: 1.28rem;
  font-weight: 650;
}

.home-page .home-resource-link small {
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-page .home-resource-link > span:last-child {
  font-size: 1.35rem;
}

.home-page .home-contact {
  position: relative;
  border-top: 1px solid var(--home-line);
  background: var(--home-canvas);
}

.home-page .home-contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 4rem;
  align-items: end;
}

.home-page .home-contact .home-section-label,
.home-page .home-contact h2,
.home-page .home-contact-inner > p {
  grid-column: 1;
}

.home-page .home-contact h2 {
  max-width: 15ch;
}

.home-page .home-contact .home-button {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-width: 12rem;
  margin-bottom: 0.3rem;
}

@media (max-width: 70rem) {
  .home-page .home-hero h1 {
    font-size: clamp(3rem, 6vw, 4.6rem);
  }
}

@media (max-width: 61.99rem) {
  .home-page .home-section-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-section-intro {
    position: static;
    max-width: 44rem;
  }

  .home-page .home-section-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 767px) {
  .home-page .home-hero {
    min-height: auto;
  }

  .home-page .home-hero-copy {
    max-width: 48rem;
  }

  .home-page .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .home-page .home-hero-layout > .model-flow {
    width: min(100%, 42rem);
    justify-self: center;
  }

  .home-page .home-hero h1 {
    max-width: 12ch;
  }
}

@media (max-width: 52rem) {
  .home-page .home-projects {
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 0;
  }

  .home-page .home-project {
    border-bottom: 1px solid var(--home-line);
  }

  .home-page .home-project + .home-project {
    border-left: 0;
  }
}

@media (max-width: 47.99rem) {
  .home-page .home-shell {
    width: min(100% - 2rem, 82rem);
  }

  .home-page .home-hero {
    padding-block: 4.5rem 4rem;
  }

  .home-page .home-hero-layout {
    gap: 2.25rem;
  }

  .home-page .home-hero-layout > .model-flow {
    width: min(100%, 42rem);
  }

  .home-page .home-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.25rem);
    line-height: 0.98;
    text-wrap: balance;
  }

  .home-page .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-page .home-button {
    min-height: 3.25rem;
    width: 100%;
    min-width: 0;
    padding-inline: 0.8rem;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .home-page .home-section-heading-row,
  .home-page .home-contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .home-section-heading-row {
    gap: 0;
  }

  .home-page .home-contact .home-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-top: 2rem;
  }
}

/* Stack from available viewport width so intrinsic text pressure at enlarged
   text sizes cannot force the copy and scene into the same row. */
@media (max-width: 1100px) {
  .home-page .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }

  .home-page .home-hero-layout > .model-flow {
    width: min(100%, 42rem);
    justify-self: center;
  }
}

@media (max-width: 24rem) {
  .home-page .home-shell {
    width: min(100% - 1.5rem, 82rem);
  }

  .home-page .home-theme {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-button,
  .home-page .home-resource-link {
    transition: none;
  }

  .home-page .home-button:hover {
    transform: none;
  }
}
.section-hero {
  position: relative;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.hero-surface {
  position: relative;
  padding: 2.75rem 0;
}

.section-hero-reader .hero-surface,
.section-hero-form .hero-surface {
  padding-block: 2.5rem;
}

.section-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content {
  max-width: 800px;
}

.hero-layout:not(.hero-layout--split) > .hero-content {
  max-width: none;
}

.hero-layout--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero-layout--split > * {
  min-width: 0;
}

@media (max-width: 800px) {
  .hero-layout--split {
    grid-template-columns: 1fr;
  }
}

.hero-content-center {
  margin-inline: auto;
  text-align: center;
}

.hero-content-right {
  margin-left: auto;
  text-align: right;
}

.hero-title {
  min-width: 0;
  max-width: 18ch;
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
}

.section-hero-reader .hero-title,
.section-hero-form .hero-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.hero-content-center .hero-title {
  margin-inline: auto;
}

.hero-content-right .hero-title {
  margin-left: auto;
}

@media (max-width: 47.99rem) {
  .hero-title,
  .section-hero-reader .hero-title,
  .section-hero-form .hero-title {
    font-size: min(clamp(2rem, 8vw, 2.5rem), 11vw);
    text-wrap: wrap;
  }
}

.hero-context {
  max-width: 60ch;
  margin: 1rem 0 0;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 650;
  line-height: 1.5;
}

.hero-subtitle {
  max-width: 68ch;
  margin: 1rem 0 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.7vw, 1.1875rem);
  line-height: 1.65;
}

.hero-content-center :where(.hero-context, .hero-subtitle) {
  margin-inline: auto;
}

.hero-content-right :where(.hero-context, .hero-subtitle) {
  margin-left: auto;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  list-style: none;
}

.hero-meta-row li {
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero-content-center .hero-meta-row {
  justify-content: center;
}

.hero-content-right .hero-meta-row {
  justify-content: flex-end;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-content-center .hero-actions {
  justify-content: center;
}

.hero-content-right .hero-actions {
  justify-content: flex-end;
}

.hero-action-btn {
  min-height: 44px;
}

body.public-route .section-hero .hero-action-btn.btn-primary {
  color: var(--public-canvas, #0f1115);
  background: var(--public-primary, #a78bfa);
  border-color: var(--public-primary, #a78bfa);
  box-shadow: none;
  transform: none;
}

body.public-route .section-hero .hero-action-btn.btn-primary:hover:not(:disabled),
body.public-route .section-hero .hero-action-btn.btn-primary:focus-visible {
  color: var(--public-canvas, #0f1115);
  background: var(--public-primary-hover, #b9a4ff);
  border-color: var(--public-primary-hover, #b9a4ff);
  box-shadow: none;
  transform: none;
}

body.public-route .section-hero .hero-action-btn.btn-primary:active:not(:disabled) {
  color: var(--public-canvas, #0f1115);
  background: var(--public-primary, #a78bfa);
  border-color: var(--public-primary, #a78bfa);
  box-shadow: none;
  transform: none;
}

body.public-route .section-hero .hero-action-btn.btn-primary:disabled {
  color: var(--public-canvas, #0f1115);
  background: var(--public-primary, #a78bfa);
  border-color: var(--public-primary, #a78bfa);
  opacity: 0.55;
}

.hero-tabs {
  margin-top: 1.5rem;
}

@media (min-width: 1024px) {
  .hero-surface {
    padding-block: 3rem;
  }

  .section-hero-reader .hero-surface,
  .section-hero-form .hero-surface {
    padding-block: 2.75rem;
  }

  .section-hero .container {
    padding-inline: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-surface {
    padding-block: 2.25rem;
  }

  .section-hero .container {
    padding-inline: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action-btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}
.about-page {
  --about-bg: var(--bg, #0f1115);
  --about-surface: var(--surface, #191c24);
  --about-text: var(--text, #f2f3f5);
  --about-muted: var(--text-muted, #a5aab8);
  --about-primary: var(--primary, #a78bfa);
  background: var(--about-bg);
  color: var(--about-text);
}

.about-page__container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.about-page__intro,
.about-page__projects,
.about-page__team {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
}

.about-page .hero-title {
  max-width: 25ch;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.08;
}

.about-source {
  margin: 0;
  background: #111;
}

.about-source img {
  display: block;
  width: 100%;
  height: clamp(16rem, 26vw, 25rem);
  object-fit: contain;
}

.about-source figcaption {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--about-surface);
  color: var(--about-muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.about-source strong {
  color: var(--about-text);
  font-size: 1rem;
}

.about-source a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.about-page__projects,
.about-page__team {
  border-top: 1px solid color-mix(in srgb, var(--about-muted) 24%, transparent);
}

.about-page__split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.about-page h2,
.about-page h3,
.about-page p {
  margin: 0;
}

.about-page h2 {
  max-width: 27ch;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.about-page h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.about-page p {
  max-width: 70ch;
  color: var(--about-muted);
  line-height: 1.75;
}

.about-page__split p + p {
  margin-top: 1.25rem;
}

.about-page__section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.about-page__section-heading > div p {
  margin-top: 0.75rem;
}

.about-page a {
  color: var(--about-primary);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.about-page__section-heading > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.about-page__section-heading svg {
  width: 1rem;
}

.about-scripts {
  margin-top: 2.5rem;
}
.about-scripts ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.5rem 0;
  margin: 1rem 0;
  list-style: none;
  border-block: 1px solid var(--border);
}
.about-scripts li {
  display: grid;
  gap: 0.5rem;
}
.about-scripts bdi {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.8;
}
.about-scripts span,
.about-scripts small {
  color: var(--about-muted);
  font-size: 0.85rem;
}
.about-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 1.5rem 0 2rem;
  list-style: none;
  border-top: 1px solid var(--border);
}
.about-methods p {
  margin-top: 0.75rem;
}
.about-method-example {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about-method-example p {
  margin-top: 0.75rem;
}
.about-method-example a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.75rem;
}
.about-method-example svg {
  width: 1rem;
}
.about-page__expertise {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--about-text);
  font-size: 0.85rem;
}

.about-page__people {
  border-top: 1px solid color-mix(in srgb, var(--about-muted) 24%, transparent);
}

.about-page__person {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: 2rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--about-muted) 24%, transparent);
}

.about-page__portrait {
  width: 8rem;
  height: 8rem;
  overflow: hidden;
  border-radius: 12px;
  background: var(--about-surface);
}

.about-page__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-page__portrait span {
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--about-primary);
  font-size: 1.4rem;
  font-weight: 800;
}

.about-page__portrait span:not([hidden]) {
  display: grid;
}

.about-page__person p {
  margin-top: 0.55rem;
}

.about-page__person a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 0.65rem;
}

.about-page__role {
  color: var(--about-primary) !important;
  font-size: 0.9rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .about-page__split,
  .about-methods {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .about-page__section-heading {
    align-items: start;
    flex-direction: column;
  }

  .about-page__person {
    grid-template-columns: 5rem minmax(0, 1fr);
  }

  .about-page__portrait {
    width: 5rem;
    height: 5rem;
  }
}

@media (max-width: 420px) {
  .about-scripts ul {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .about-scripts li {
    grid-template-columns: minmax(0, 1fr) 1fr;
    align-items: center;
  }
}
.password-input {
  position: relative;
  width: 100%;
  min-width: 0;
}

.password-input.password-input > input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding-right: 4.75rem;
}

.password-input > .password-input__toggle {
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  min-width: 4.25rem;
  min-height: 44px;
  padding: 0.5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.password-input > .password-input__toggle:hover:not(:disabled) {
  background: var(--hover-bg);
}

.password-input > .password-input__toggle:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}

.password-input > .password-input__toggle:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-page {
  --auth-bg: var(--bg, #0f1115);
  --auth-surface: var(--surface, #191c24);
  --auth-text: var(--text, #f2f3f5);
  --auth-muted: var(--text-muted, #a5aab8);
  --auth-primary: var(--primary, #a78bfa);
  display: grid;
  min-height: min(100vh, 60rem);
  place-items: center;
  padding: clamp(2rem, 7vw, 6rem) 1rem;
  background: var(--auth-bg);
  color: var(--auth-text);
}

.auth-container {
  width: min(100%, 30rem);
}

.auth-card {
  padding: clamp(1.5rem, 5vw, 2.75rem);
  border: 1px solid color-mix(in srgb, var(--auth-muted) 26%, transparent);
  border-radius: 12px;
  background: var(--auth-surface);
}

.auth-card h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  margin: 0.65rem 0 2rem;
  color: var(--auth-muted);
  line-height: 1.6;
}

.auth-error,
.auth-success {
  margin-bottom: 1.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 50%, transparent);
  border-radius: 8px;
  color: var(--danger-foreground, #fca5a5);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-success {
  border-color: color-mix(in srgb, var(--success, #10b981) 50%, transparent);
  color: var(--success-foreground, #6ee7b7);
}

.auth-form {
  display: grid;
  gap: 1.1rem;
}

.auth-page .form-group {
  display: grid;
  gap: 0.45rem;
}

.auth-page .form-group label {
  color: var(--auth-text);
  font-size: 0.9rem;
  font-weight: 750;
}

.auth-page .form-group input {
  width: 100%;
  min-height: 46px;
  padding: 0.72rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--auth-muted) 38%, transparent);
  border-radius: 8px;
  background: var(--auth-bg);
  color: var(--auth-text);
  font: inherit;
}

.auth-page .form-group input::placeholder {
  color: color-mix(in srgb, var(--auth-muted) 78%, transparent);
}

.auth-page .form-group input[aria-invalid='true'] {
  border-color: var(--danger, #ef4444);
}

.auth-page .form-group input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.auth-page .form-group small {
  color: var(--auth-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-page .form-group .auth-field-error {
  color: var(--danger-foreground, #fca5a5);
  font-weight: 650;
}

.auth-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.auth-button-primary {
  background: var(--auth-primary);
  color: #171320;
}

.auth-button-secondary,
.auth-button-google {
  border-color: color-mix(in srgb, var(--auth-muted) 38%, transparent);
  background: transparent;
  color: var(--auth-text);
}

.auth-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-page input:focus-visible,
.auth-page button:focus-visible,
.auth-page a:focus-visible {
  outline: 2px solid var(--focus-ring, #67e8f9);
  outline-offset: 3px;
}

.auth-inline-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  font-size: 0.85rem;
}

.auth-inline-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.auth-page a {
  color: var(--auth-primary);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--auth-muted) 24%, transparent);
  color: var(--auth-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--auth-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--auth-muted) 24%, transparent);
  content: '';
}

.auth-turnstile {
  display: flex;
  max-width: 100%;
  justify-content: center;
  margin-top: 1rem;
  overflow: hidden;
}

.bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 420px) {
  .auth-page {
    padding-inline: 0.75rem;
  }

  .auth-card {
    padding-inline: 1.15rem;
  }
}
/* Card.css - Lighter, responsive card design using theme tokens */

.card {
  display: flex;
  height: auto;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease;
}

.card--actionable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Header */
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary, var(--text-primary));
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.card-title-section {
  flex: 1;
  min-width: 0;
}

.card-title {
  color: var(--text-primary);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.25rem 0;
}

.card-meta {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 0.25rem;
  line-height: 1.3;
}

/* Body */
.card-body {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  flex-grow: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Actions - pinned to bottom with consistent alignment */
.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .card-actions {
    flex-direction: row;
  }
}

@media (max-width: 639px) {
  .card-actions {
    flex-direction: column;
  }
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  min-width: fit-content;
}

/* On mobile, buttons stack and take full width */
@media (max-width: 639px) {
  .card-action {
    flex: 1;
  }
}

/* On larger screens, buttons size to content */
@media (min-width: 640px) {
  .card-action--primary {
    flex: 1;
    max-width: 140px;
  }

  .card-action--secondary {
    flex: 0 0 auto;
    min-width: 100px;
  }
}

.card-action--primary {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  color: white;
  border-color: transparent;
}

.card-action--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-action--secondary {
  background: var(--card-bg);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.card-action--secondary:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-color);
  transform: translateY(-1px);
}

/* Icon-only button styling */
.card-action--icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1rem;
  flex: 0 0 auto;
  min-width: auto;
}

.card-action--icon:hover {
  background: var(--hero-from, #667eea);
  color: white;
  border-color: var(--hero-from, #667eea);
}

/* Responsive Design */
@media (min-width: 640px) {
  .card-actions {
    flex-direction: row;
  }
}

@media (max-width: 360px) {
  .card {
    padding: 1.25rem;
  }

  .card-actions {
    gap: 0.5rem;
  }

  .card-action {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}
@media (max-width: 768px) {
  .card {
    padding: 1.25rem;
  }

  .card-header {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .card-icon {
    font-size: 1.75rem;
  }

  .card-title {
    font-size: 1.125rem;
  }

  .card-body {
    margin-bottom: 1.25rem;
  }

  .card-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .card-actions > * {
    flex: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }

  .card-badge {
    font-size: 0.75rem;
    padding: 0.1875rem 0.625rem;
  }
}
