@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Monica Allcaps Stencil';
  src: url('/fonts/monica-allcaps-stencil.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #d9e6f2;
  --bg-accent: rgba(214, 225, 237, 0.68);
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --card: rgba(255, 255, 255, 0.58);
  --card-strong: rgba(255, 255, 255, 0.78);
  --text-primary: #050507;
  --text-secondary: #303842;
  --text-muted: #4a5561;
  --text-action: #303844;
  --text-action-hover: #11161c;
  --text-action-disabled: #707985;
  --border: rgba(15, 17, 20, 0.14);
  --border-light: rgba(15, 17, 20, 0.08);
  --accent: #0b0c0f;
  --accent-soft: #3d4651;
  --accent-strong: #000000;
  --highlight: #c8cdd3;
  --silver: #d6d9df;
  --silver-strong: #c9ccd3;
  --silver-shadow: rgba(134, 143, 154, 0.22);
  --surface-metal: linear-gradient(
    135deg,
    rgba(250, 253, 255, 0.72) 0%,
    rgba(226, 236, 248, 0.58) 38%,
    rgba(255, 255, 255, 0.64) 64%,
    rgba(202, 218, 236, 0.52) 100%
  );
  --surface-panel: linear-gradient(145deg, rgba(255, 255, 255, 0.54), rgba(244, 249, 255, 0.38));
  --surface-panel-strong: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(246, 250, 255, 0.56));
  --surface-panel-muted: linear-gradient(145deg, rgba(255, 255, 255, 0.5), rgba(243, 249, 255, 0.34));
  --surface-avatar: linear-gradient(180deg, rgba(252, 253, 254, 0.78), rgba(233, 237, 242, 0.62));
  --surface-avatar-muted: linear-gradient(180deg, rgba(236, 239, 243, 0.66), rgba(219, 224, 230, 0.54));
  --surface-highlight: linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(224, 234, 246, 0.48));
  --surface-overlay: rgba(255, 255, 255, 0.5);
  --surface-overlay-strong: rgba(255, 255, 255, 0.66);
  --surface-dialog-overlay: rgba(246, 250, 254, 0.42);
  --surface-dialog-panel: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.82));
  --surface-dialog-body: rgba(255, 255, 255, 0.88);
  --surface-field: rgba(255, 255, 255, 0.48);
  --surface-field-strong: rgba(255, 255, 255, 0.62);
  --surface-segment-active: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(230, 239, 249, 0.72) 48%,
    rgba(255, 255, 255, 0.82) 100%
  );
  --surface-progress-track: rgba(171, 179, 188, 0.24);
  --surface-progress-bar: linear-gradient(90deg, rgba(9, 10, 12, 0.7), rgba(99, 108, 118, 0.45));
  --surface-status-pending: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 242, 245, 0.9));
  --surface-status-paid: linear-gradient(180deg, rgba(241, 246, 243, 0.96), rgba(231, 238, 234, 0.92));
  --surface-status-failed: linear-gradient(180deg, rgba(249, 241, 242, 0.96), rgba(242, 230, 232, 0.92));
  --surface-status-expired: linear-gradient(180deg, rgba(248, 249, 251, 0.96), rgba(236, 239, 243, 0.92));
  --surface-status-review: linear-gradient(180deg, rgba(241, 245, 248, 0.96), rgba(231, 236, 241, 0.92));
  --surface-startup-photo-fallback: #050507;
  --surface-startup-scrim: transparent;
  --surface-startup-dock: rgba(5, 7, 10, 0.7);
  --border-startup-dock: rgba(255, 255, 255, 0.18);
  --text-startup-primary: #ffffff;
  --text-startup-secondary: rgba(255, 255, 255, 0.84);
  --text-startup-muted: rgba(255, 255, 255, 0.66);
  --text-startup-error: #ffd5d9;
  --surface-startup-progress-track: rgba(255, 255, 255, 0.18);
  --surface-startup-progress-bar: linear-gradient(90deg, rgba(218, 181, 124, 0.92), rgba(255, 248, 236, 0.82));
  --surface-app-backdrop:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 48%, rgba(224, 235, 247, 0.42) 100%),
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.16), transparent 34%),
    url('/brand/hoyhon-startup-splash-portrait.webp');
  --surface-admin-backdrop: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
  --surface-admin-card: rgba(255, 255, 255, 0.96);
  --surface-admin-card-strong: #ffffff;
  --surface-admin-card-muted: rgba(248, 250, 252, 0.98);
  --surface-admin-field: #ffffff;
  --surface-admin-field-muted: #f8fafc;
  --surface-admin-nav: rgba(255, 255, 255, 0.97);
  --glass-filter: blur(6px) saturate(160%) brightness(1.2) contrast(0.9);
  --glass-filter-soft: blur(4px) saturate(145%) brightness(1.16) contrast(0.94);
  --glass-filter-content: blur(8px) saturate(160%) brightness(1.2) contrast(0.9);
  --glass-filter-nav: blur(15px) saturate(175%) brightness(1.2) contrast(0.9);
  --glass-inset-shadow: 0 0 0 0 transparent;
  --glass-nav-inset-shadow: 0 0 0 0 transparent;
  --border-surface: rgba(255, 255, 255, 0.66);
  --border-surface-strong: rgba(255, 255, 255, 0.82);
  --border-surface-emphasis: rgba(255, 255, 255, 0.76);
  --border-surface-subtle: rgba(255, 255, 255, 0.58);
  --border-field: rgba(255, 255, 255, 0.62);
  --border-field-hover: rgba(170, 177, 186, 0.82);
  --border-field-focus: rgba(170, 177, 186, 0.88);
  --border-status-pending: rgba(170, 177, 186, 0.65);
  --border-status-paid: rgba(126, 152, 136, 0.4);
  --border-status-failed: rgba(176, 118, 127, 0.36);
  --border-status-expired: rgba(167, 175, 185, 0.46);
  --border-status-review: rgba(122, 141, 164, 0.34);
  --border-admin-surface: rgba(15, 23, 42, 0.1);
  --border-admin-surface-strong: rgba(15, 23, 42, 0.14);
  --border-highlight: rgba(255, 255, 255, 0.76);
  --border-chrome: rgba(255, 255, 255, 0.16);
  --border-nav: rgba(255, 255, 255, 0.78);
  --text-on-dark: #fff;
  --text-error: #a50d18;
  --text-error-soft: #762b34;
  --text-error-muted: #984d58;
  --text-status-pending: #39434d;
  --text-status-paid: #2d493b;
  --text-status-failed: #692934;
  --text-status-expired: #343d46;
  --text-status-review: #2e4054;
  --text-segment-active: #11161c;
  --focus-ring: rgba(199, 204, 210, 0.24);
  --shadow-soft: 0 18px 48px rgba(8, 18, 31, 0.16);
  --shadow-soft-hover: 0 16px 34px rgba(8, 18, 31, 0.2);
  --shadow-strong: 0 26px 64px rgba(8, 18, 31, 0.24);
  --shadow-nav: 0 -16px 44px rgba(8, 18, 31, 0.2);
  --shadow-admin-soft: 0 10px 26px rgba(15, 23, 42, 0.08);
  --shadow-admin-strong: 0 18px 40px rgba(15, 23, 42, 0.12);
  --shadow-wordmark: 0 10px 30px rgba(8, 10, 14, 0.08);
  --button-primary-bg: rgba(0, 0, 0, 0.86);
  --button-primary-border: rgba(0, 0, 0, 0.88);
  --button-primary-text: #fff;
  --chrome-bg: #04070c;
  --chrome-text: #fff;
  --nav-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(235, 245, 255, 0.42));
  --nav-item-text: #4c5662;
  --nav-item-hover-text: #161c22;
  --nav-item-active-text: #000000;
  --startup-support-min-height: 46px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  /* Typography foundations */
  --font-family-content: 'Inter', 'Comfortaa', ui-sans-serif, system-ui, sans-serif;
  --font-family-base: var(--font-family-content);
  --font-family-display: var(--font-family-content);
  --font-family-accent: var(--font-family-content);
  --font-family-brand: 'Monica Allcaps Stencil', 'Comfortaa', ui-sans-serif, system-ui, sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --font-size-100: 12px;
  --font-size-200: 13px;
  --font-size-300: 14px;
  --font-size-350: 15px;
  --font-size-400: 16px;
  --font-size-500: 18px;
  --font-size-600: 19px;
  --font-size-700: 22px;
  --font-size-800: 25px;
  --font-size-900: 30px;
  --font-size-950: 32px;
  --font-size-brand: 38px;

  --line-height-tight: 1.04;
  --line-height-display: 1.1;
  --line-height-heading: 1.22;
  --line-height-ui: 1.35;
  --line-height-label: 1.4;
  --line-height-body: 1.55;
  --line-height-body-relaxed: 1.6;
  --line-height-copy: 1.58;

  --tracking-display-xl: 0;
  --tracking-display-lg: 0;
  --tracking-display-md: 0;
  --tracking-heading: 0;
  --tracking-button: 0;
  --tracking-normal: 0;
  --tracking-label: 0;
  --tracking-label-tight: 0;
  --tracking-status: 0;
  --tracking-brand: 0.26em;
  --tracking-brand-wide: 0.28em;
  --tracking-overline: 0;

  /* Typography role tokens */
  --type-page-title-family: var(--font-family-display);
  --type-page-title-size: var(--font-size-800);
  --type-page-title-line-height: var(--line-height-display);
  --type-page-title-weight: var(--font-weight-bold);
  --type-page-title-tracking: var(--tracking-display-xl);

  --type-section-title-family: var(--font-family-display);
  --type-section-title-size: var(--font-size-700);
  --type-section-title-line-height: var(--line-height-display);
  --type-section-title-weight: var(--font-weight-bold);
  --type-section-title-tracking: var(--tracking-display-lg);

  --type-card-title-family: var(--font-family-base);
  --type-card-title-size: var(--font-size-600);
  --type-card-title-line-height: var(--line-height-heading);
  --type-card-title-weight: var(--font-weight-semibold);
  --type-card-title-tracking: var(--tracking-heading);

  --type-body-family: var(--font-family-base);
  --type-body-size: var(--font-size-300);
  --type-body-line-height: var(--line-height-copy);
  --type-body-weight: var(--font-weight-regular);
  --type-body-tracking: var(--tracking-normal);

  --type-body-strong-size: var(--font-size-400);
  --type-body-strong-line-height: var(--line-height-ui);
  --type-body-strong-weight: var(--font-weight-semibold);

  --type-caption-family: var(--font-family-base);
  --type-caption-size: var(--font-size-200);
  --type-caption-line-height: 1.45;
  --type-caption-weight: var(--font-weight-regular);
  --type-caption-tracking: var(--tracking-normal);

  --type-label-family: var(--font-family-base);
  --type-label-size: var(--font-size-100);
  --type-label-line-height: var(--line-height-ui);
  --type-label-weight: var(--font-weight-medium);
  --type-label-tracking: var(--tracking-label);

  --type-control-family: var(--font-family-base);
  --type-control-size: var(--font-size-300);
  --type-control-line-height: var(--line-height-ui);
  --type-control-weight: var(--font-weight-semibold);
  --type-control-tracking: var(--tracking-button);

  --type-input-family: var(--font-family-base);
  --type-input-size: var(--font-size-300);
  --type-input-line-height: var(--line-height-body);
  --type-input-weight: var(--font-weight-regular);

  --type-kicker-family: var(--font-family-accent);
  --type-kicker-size: var(--font-size-350);
  --type-kicker-line-height: var(--line-height-ui);
  --type-kicker-weight: var(--font-weight-medium);

  --type-metric-size: var(--font-size-500);
  --type-metric-line-height: 1.12;
  --type-metric-weight: var(--font-weight-semibold);
  --type-metric-tracking: var(--tracking-display-md);

  --type-brand-kicker-size: var(--font-size-300);
  --type-brand-kicker-weight: var(--font-weight-bold);
  --type-brand-kicker-tracking: var(--tracking-brand);
  --type-brand-header-size: 38px;
  --type-brand-header-line-height: 0.88;
  --type-brand-header-weight: 400;
  --type-brand-header-tracking: 0.02em;

  --type-brand-wordmark-size: var(--font-size-brand);
  --type-brand-wordmark-line-height: 1;
  --type-brand-wordmark-weight: var(--font-weight-bold);
  --type-brand-wordmark-tracking: var(--tracking-brand-wide);

  /* Backward-compatible aliases */
  --fw-regular: var(--font-weight-regular);
  --fw-medium: var(--font-weight-medium);
  --fw-semibold: var(--font-weight-semibold);
  --fw-bold: var(--font-weight-bold);
  --font-sans: var(--font-family-base);
  --font-display: var(--font-family-display);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-4-5: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
}
* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  margin: 0;
}

html,
body {
  height: 100%;
}

body {
  position: relative;
  isolation: isolate;
  font-family: var(--font-sans);
  line-height: var(--line-height-body);
  background: var(--bg);
  color: var(--text-primary);
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  -webkit-text-size-adjust: 100%;
}

a,
button,
input,
select,
textarea,
optgroup {
  color: inherit;
}

button,
input,
select,
textarea,
optgroup {
  font: inherit;
  font-family: var(--font-sans);
}

input,
button,
textarea,
select {
  letter-spacing: inherit;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  font: inherit;
}

ul,
ol {
  padding: 0;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--surface-app-backdrop);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
}

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

#root {
  position: relative;
  height: 100svh;
  min-height: 100svh;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.containerFullBleed {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0;
}

.padTop4 {
  padding-top: var(--space-4);
}

.padTop6 {
  padding-top: var(--space-6);
}

.padBottom4 {
  padding-bottom: var(--space-4);
}

.padBottom2 {
  padding-bottom: var(--space-2);
}

.marginTop4 {
  margin-top: var(--space-4);
}

.appShell {
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --bottom-nav-height: 64px;
  --bottom-nav-border-width: 1px;
  --bottom-nav-safe-area-bottom: min(var(--safe-area-bottom), 34px);
  --bottom-nav-total-height: calc(
    var(--bottom-nav-height) + var(--bottom-nav-safe-area-bottom) + var(--bottom-nav-border-width)
  );
  min-height: 100svh;
  height: 100svh;
  position: absolute;
  inset: 0;
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.adminShell {
  --bg: #eef3f8;
  --bg-accent: rgba(226, 233, 241, 0.95);
  --bg-elevated: var(--surface-admin-card);
  --card: var(--surface-admin-card);
  --card-strong: var(--surface-admin-card-strong);
  --surface-metal: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
  --surface-panel: var(--surface-admin-card);
  --surface-panel-strong: var(--surface-admin-card-strong);
  --surface-panel-muted: var(--surface-admin-card-muted);
  --surface-highlight: linear-gradient(180deg, #ffffff 0%, #edf3f9 100%);
  --surface-overlay: rgba(248, 250, 252, 0.94);
  --surface-overlay-strong: rgba(255, 255, 255, 0.98);
  --surface-field: var(--surface-admin-field);
  --surface-field-strong: var(--surface-admin-field);
  --surface-segment-active: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
  --border: rgba(15, 23, 42, 0.14);
  --border-light: rgba(15, 23, 42, 0.08);
  --border-surface: var(--border-admin-surface);
  --border-surface-strong: var(--border-admin-surface-strong);
  --border-surface-emphasis: rgba(15, 23, 42, 0.16);
  --border-surface-subtle: rgba(15, 23, 42, 0.08);
  --border-field: rgba(15, 23, 42, 0.16);
  --border-field-hover: rgba(15, 23, 42, 0.28);
  --border-field-focus: rgba(15, 23, 42, 0.42);
  --border-highlight: rgba(15, 23, 42, 0.12);
  --border-nav: rgba(15, 23, 42, 0.12);
  --glass-filter: none;
  --glass-filter-soft: none;
  --glass-filter-content: none;
  --glass-filter-nav: none;
  --glass-inset-shadow: 0 0 0 0 transparent;
  --glass-nav-inset-shadow: 0 0 0 0 transparent;
  --shadow-soft: var(--shadow-admin-soft);
  --shadow-soft-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-strong: var(--shadow-admin-strong);
  --shadow-nav: 0 8px 18px rgba(15, 23, 42, 0.08);
  --nav-surface: var(--surface-admin-nav);
  --nav-item-text: #4b5563;
  --nav-item-hover-text: #111827;
  --nav-item-active-text: #020617;
  background: var(--surface-admin-backdrop);
}

.adminShell .appMain {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: var(--safe-area-bottom);
  background: var(--surface-admin-backdrop);
}

.appMain {
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.adminShell .container,
.adminShell .page,
.adminShell .pageSection,
.adminShell .pageSectionSm {
  min-width: 0;
  max-width: 100%;
}

.page {
  padding-bottom: var(--space-4);
}

.pageTopInset {
  padding-top: var(--space-6);
}

.pageSection {
  margin-top: var(--space-4);
}

.pageSectionSm {
  margin-top: var(--space-2);
}

.pageGroup {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-lg);
  background: var(--surface-panel);
  background-clip: padding-box;
  box-shadow: var(--shadow-soft), var(--glass-inset-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

.pageHeader {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pageHeader:not(.srOnly) {
  padding: 12px 14px;
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-lg);
  background: var(--surface-panel-muted);
  background-clip: padding-box;
  box-shadow: var(--shadow-soft), var(--glass-inset-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

.pageHeaderInGroup:not(.srOnly),
.pageGroup > .pageHeader:not(.srOnly) {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.adminShell .pageHeader:not(.srOnly) {
  background: var(--surface-admin-card-muted);
  border-color: var(--border-admin-surface);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.adminShell .pageHeaderInGroup:not(.srOnly),
.adminShell .pageGroup > .pageHeader:not(.srOnly) {
  background: transparent;
  box-shadow: none;
}

.pageHeaderCompact {
  gap: 2px;
}

.pageHeading {
  font-family: var(--type-page-title-family);
  font-size: var(--type-page-title-size);
  line-height: var(--type-page-title-line-height);
  letter-spacing: var(--type-page-title-tracking);
  font-weight: var(--type-page-title-weight);
  color: var(--text-primary);
}

.pageDescription {
  font-family: var(--type-caption-family);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  color: var(--text-secondary);
  font-weight: var(--type-caption-weight);
  letter-spacing: var(--type-caption-tracking);
}

.pageDescriptionGroup {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

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

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.sectionTop {
  margin-top: 18px;
}

.sectionTopSm {
  margin-top: 12px;
}

.sectionTopLg {
  margin-top: 24px;
}

.sticky {
  position: relative;
  z-index: 10;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--border-chrome);
  padding-top: var(--safe-area-top);
  box-shadow: 0 14px 42px rgba(8, 18, 31, 0.28);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.headerBar {
  min-height: 64px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brandHeaderBar {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
}

.brandHeaderAction {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brandHeaderTitle {
  color: var(--chrome-text);
  font-family: var(--font-family-brand);
  font-size: var(--type-brand-header-size);
  line-height: var(--type-brand-header-line-height);
  font-weight: var(--type-brand-header-weight);
  letter-spacing: var(--type-brand-header-tracking);
  text-align: center;
  white-space: nowrap;
}

.brandHeaderLockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: min(74vw, 420px);
  min-width: 0;
  color: var(--chrome-text);
}

.brandHeaderIcon {
  display: inline-block;
  width: 35px;
  height: 42px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: var(--brand-icon-mask);
  mask-image: var(--brand-icon-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.brandHeaderWordmark {
  font-family: var(--font-family-brand);
  font-size: var(--type-brand-header-size);
  line-height: var(--type-brand-header-line-height);
  font-weight: var(--type-brand-header-weight);
  letter-spacing: var(--type-brand-header-tracking);
  white-space: nowrap;
}

.homeWelcomeBlock {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border-surface);
  border-radius: var(--radius-lg);
  background: var(--surface-panel-muted);
  background-clip: padding-box;
  box-shadow: var(--shadow-soft), var(--glass-inset-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

.homeWelcomeTitle {
  font-family: var(--type-section-title-family);
  font-size: var(--type-section-title-size);
  line-height: var(--type-section-title-line-height);
  font-weight: var(--type-section-title-weight);
  letter-spacing: var(--type-section-title-tracking);
  color: var(--text-secondary);
}

.bottomNav {
  position: relative;
  z-index: 20;
  height: var(--bottom-nav-total-height);
  background: var(--nav-surface);
  border-top: var(--bottom-nav-border-width) solid var(--border-nav);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-bottom: var(--bottom-nav-safe-area-bottom);
  box-shadow: var(--shadow-nav), var(--glass-nav-inset-shadow);
  backdrop-filter: var(--glass-filter-nav);
  -webkit-backdrop-filter: var(--glass-filter-nav);
}

.bottomNavList {
  width: 100%;
  max-width: 600px;
  height: var(--bottom-nav-height);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bottomNavList > li {
  min-width: 0;
}

.adminTopNav {
  background: var(--nav-surface);
  border-top: 1px solid var(--border-chrome);
  overflow-x: hidden;
  box-shadow: var(--glass-nav-inset-shadow);
  backdrop-filter: var(--glass-filter-nav);
  -webkit-backdrop-filter: var(--glass-filter-nav);
}

.adminShell .adminTopNav {
  border-top-color: var(--border-admin-surface);
  border-bottom: 1px solid var(--border-admin-surface);
  background: var(--surface-admin-nav);
  box-shadow: var(--shadow-nav);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.adminTopNavList {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 0;
  min-height: 48px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  list-style: none;
}

.adminTopNavList > li {
  min-width: 0;
}

@media (max-width: 640px) {
  .adminTopNavList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}
.title {
  margin: 0;
  font-family: var(--type-card-title-family);
  font-size: var(--type-card-title-size);
  line-height: var(--type-card-title-line-height);
  font-weight: var(--type-card-title-weight);
  letter-spacing: var(--type-card-title-tracking);
}

.body {
  margin: 0;
  font-family: var(--type-body-family);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line-height);
  font-weight: var(--type-body-weight);
  letter-spacing: var(--type-body-tracking);
}

.caption {
  margin: 0;
  font-family: var(--type-caption-family);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  color: var(--text-secondary);
  font-weight: var(--type-caption-weight);
  letter-spacing: var(--type-caption-tracking);
}

.smallLabel {
  margin: 0;
  font-family: var(--type-label-family);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line-height);
  font-weight: var(--type-label-weight);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--type-label-tracking);
}

.selectedDateText {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border-surface);
  border-radius: 999px;
  background: var(--surface-panel-muted);
  margin: 0;
  font-family: var(--type-body-family);
  font-size: var(--type-body-strong-size);
  line-height: var(--type-body-strong-line-height);
  font-weight: var(--type-body-strong-weight);
  color: var(--text-primary);
  box-shadow: var(--shadow-soft), var(--glass-inset-shadow);
  backdrop-filter: var(--glass-filter);
  -webkit-backdrop-filter: var(--glass-filter);
}

.selectedDateSpacing {
  margin: 12px 0 8px;
}

.textSecondary {
  color: var(--text-secondary);
}

.muted {
  color: var(--text-secondary);
  font-family: var(--type-body-family);
  font-size: var(--type-body-size);
  line-height: var(--line-height-body);
  font-weight: var(--type-body-weight);
}

.error {
  margin: 0;
  color: var(--text-error);
  font-weight: var(--font-weight-semibold);
}

.success {
  margin: 0;
  color: var(--accent-strong);
  font-weight: var(--font-weight-semibold);
}

.formSuccessNotice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-status-paid);
  border-radius: 8px;
  background: var(--surface-status-paid);
  color: var(--text-status-paid);
  outline: none;
}

.formSuccessNotice:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.formSuccessTitle {
  margin: 0;
  font-weight: var(--font-weight-semibold);
}

.formSuccessText {
  margin: 4px 0 0;
  font-family: var(--type-caption-family);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
}

.authInlineAction {
  text-align: center;
}

.inlineTextButton,
.dashboardInlineLink {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text-action);
  font-family: var(--type-label-family);
  font-size: var(--type-label-size);
  line-height: var(--type-label-line-height);
  font-weight: var(--type-label-weight);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
  transition: color 160ms ease;
}

.inlineTextButton:hover:not(:disabled),
.inlineTextButton:focus-visible:not(:disabled),
.dashboardInlineLink:hover,
.dashboardInlineLink:focus-visible {
  color: var(--text-action-hover);
}

.inlineTextButton:focus-visible,
.dashboardInlineLink:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.inlineTextButton:disabled {
  color: var(--text-action-disabled);
  cursor: not-allowed;
}

.divider {
  border-bottom: 1px solid var(--border-light);
}

.formLabel {
  font-family: var(--type-body-family);
  font-size: var(--font-size-350);
  line-height: var(--line-height-ui);
  color: var(--text-primary);
  font-weight: var(--font-weight-medium);
}

.formLabelRow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.formFieldWarning {
  font-family: var(--type-caption-family);
  font-size: var(--type-caption-size);
  line-height: 1.35;
  color: var(--text-error-muted);
  font-weight: var(--font-weight-medium);
}

.fieldNotice {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border-status-failed);
  border-radius: 8px;
  background: var(--surface-status-failed);
  color: var(--text-error-soft);
  font-family: var(--type-caption-family);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  font-weight: var(--font-weight-medium);
}

.turnstileBlock {
  min-height: 65px;
}
