:root {
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --nav-offset: calc(env(safe-area-inset-top, 0px) + 12px);
  --nav-z: 1000;
  --bg: #f6f5f1;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-dark: #121a2d;
  --surface-dark-2: #1a2540;
  --ink: #162033;
  --muted: #6d7687;
  --line: #ddd9cf;
  --line-strong: rgba(255, 255, 255, 0.84);
  --blue: #3f628e;
  --blue-deep: #243c59;
  --green: #7ea483;
  --green-deep: #55785c;
  --sky: #eef2f4;
  --mint: #edf1ea;
  --red: #b42318;
  --success: #067647;
  --shadow: 0 26px 72px rgba(33, 39, 52, 0.11);
  --shadow-soft: 0 18px 40px rgba(33, 39, 52, 0.07);
  --background: var(--bg);
  --foreground: var(--ink);
  --card: var(--surface);
  --card-foreground: var(--ink);
  --primary: var(--blue-deep);
  --primary-foreground: #ffffff;
  --secondary: var(--green);
  --accent: #f5d07a;
  --border: var(--line);
  --muted-foreground: var(--muted);
  --gradient-start: #fbfaf7;
  --gradient-end: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  background: #050403;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background-color: #050403;
  background:
    radial-gradient(circle at 12% 10%, rgba(126, 164, 131, 0.12), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(63, 98, 142, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 56%, #ffffff 100%);
  line-height: 1.62;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: no-preference) {
  body,
  body::before,
  body::after,
  .page-grid,
  .site-header,
  .site-footer,
  .video-nav,
  .site-nav,
  .theme-select,
  .language-select,
  .hero,
  .band,
  .workflow,
  .page-hero,
  .dashboard-head,
  .section-grid article,
  .panel,
  .price-card,
  .limit-card,
  .feature-status,
  .table-panel,
  .filter-bar,
  .result-card,
  .metric-grid article,
  .timeline-grid article,
  .button,
  .nav-cta,
  input,
  select,
  textarea {
    transition:
      background-color 240ms ease,
      background 240ms ease,
      border-color 240ms ease,
      backdrop-filter 240ms ease,
      box-shadow 240ms ease,
      color 240ms ease,
      outline-color 240ms ease;
  }
}

a {
  color: var(--blue-deep);
  text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
li,
td,
th,
label,
input,
select,
textarea,
button {
  font-family: var(--font-body);
}

main:not(.top-menu-bar),
.page-main {
  min-height: calc(100vh - 150px);
  position: relative;
  z-index: 1;
}

.page-aura,
.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-aura {
  display: none;
}

.page-grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(36, 60, 89, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 164, 131, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
}

.aura {
  position: absolute;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.5;
  animation: drift 22s ease-in-out infinite;
}

.aura-one {
  top: 90px;
  left: -70px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(57, 212, 143, 0.22), rgba(57, 212, 143, 0));
}

.aura-two {
  top: 230px;
  right: -90px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.2), rgba(79, 124, 255, 0));
  animation-delay: -5s;
}

.aura-three {
  bottom: 110px;
  left: 30%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
  animation-delay: -9s;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  position: relative;
  z-index: var(--nav-z);
  width: min(1240px, calc(100% - 24px));
  margin: var(--nav-offset) auto 0;
  padding: 16px 22px;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  will-change: background, box-shadow, border-color, backdrop-filter;
}

.video-nav {
  width: min(1240px, calc(100% - 48px));
  position: relative;
  z-index: var(--nav-z);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 17, 26, 0.28);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  margin: var(--nav-offset) auto 0;
  isolation: isolate;
  will-change: background, box-shadow, border-color, backdrop-filter;
}

.video-nav .brand,
.video-nav .site-nav a,
.video-nav .link-button {
  color: #fff;
}

.video-nav .site-nav {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.video-nav .site-nav a:hover,
.video-nav .site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.video-nav .site-nav a.nav-cta {
  color: #162033;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  text-shadow: none;
}

.video-nav .site-nav a.nav-cta:hover,
.video-nav .site-nav a.nav-cta:focus-visible {
  color: #162033;
  background: #fff;
}

.home-page .site-footer {
  display: none;
}

.site-footer {
  width: min(1240px, calc(100% - 24px));
  margin: 64px auto 24px;
  padding: 24px 26px;
  border-radius: 24px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 245, 241, 0.94));
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.site-footer p {
  max-width: 560px;
  margin: 6px 0 0;
}

.brand,
.site-nav,
.theme-switcher,
.language-switcher,
.site-footer nav,
.actions,
.inline-form,
.message-actions,
.auth-points,
.invite-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(250, 249, 246, 0.78);
  position: relative;
  z-index: 1;
}

.inline-form {
  margin: 0;
  flex: 0 0 auto;
}

.site-nav a,
.link-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.76);
}

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

.theme-switcher {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.theme-select,
.language-select {
  min-height: 42px;
  max-width: 160px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.theme-select:focus-visible,
.language-select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 32%, transparent);
  outline-offset: 2px;
}

.nav-cta,
.button,
.link-button {
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 220ms ease, border-color 220ms ease;
}

.link-button {
  padding: 0 10px;
  background: transparent;
  appearance: none;
}

.button,
.nav-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.button.primary,
.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  box-shadow: 0 14px 28px rgba(33, 39, 52, 0.14);
  animation: none;
}

.site-nav a.nav-account-settings,
.site-nav a.nav-logout {
  font-weight: 800;
  border: 1px solid rgba(36, 60, 89, 0.14);
}

.site-nav a.nav-account-settings::after,
.site-nav a.nav-logout::after {
  display: none;
}

.site-nav a.nav-logout {
  color: #9f1f1f;
  background: rgba(255, 255, 255, 0.82);
}

.site-nav a.nav-logout:hover,
.site-nav a.nav-logout:focus-visible {
  color: #fff;
  background: #b42318;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(36, 60, 89, 0.1);
  backdrop-filter: blur(10px);
}

.button:hover,
.nav-cta:hover,
.tab-nav a:hover,
.list-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(25, 43, 93, 0.12);
}

.button:focus-visible,
.nav-cta:focus-visible,
.tab-nav a:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(79, 124, 255, 0.2);
  outline-offset: 2px;
}

.messages {
  width: min(1240px, calc(100% - 24px));
  margin: 14px auto 0;
}

.message {
  margin-bottom: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #ecfdf3;
  color: var(--success);
  border: 1px solid #abefc6;
}

.toast-region {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.live-toast {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  animation: hero-rise 220ms ease both;
}

.live-toast-success {
  border-color: rgba(6, 118, 71, 0.28);
}

.live-toast-info {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.live-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.live-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-strong) 86%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-status::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--muted);
}

.live-status[data-live-state="success"]::before {
  background: var(--success);
}

.live-status[data-live-state="error"]::before {
  background: var(--red);
}

.live-status[data-live-state="paused"]::before {
  background: var(--accent);
}

.is-live-updated {
  animation: live-pulse 760ms ease both;
}

[data-live-payment-state="paid"],
[data-live-payment-state="published"] {
  color: var(--success);
}

[data-live-payment-state="failed"],
[data-live-payment-state="cancelled"],
[data-live-payment-state="refunded"] {
  color: var(--red);
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 24%, transparent);
  }

  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.video-hero {
  min-height: max(100svh, 780px);
  width: 100%;
  margin-top: -86px;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(245, 208, 122, 0.2), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(126, 164, 131, 0.18), transparent 26%),
    linear-gradient(140deg, #0b0905 0%, #171005 48%, #080706 100%);
}

.home-page .video-hero {
  margin-top: 0;
}

body.home-page {
  --home-nav-overlap: calc(env(safe-area-inset-top, 0px) + 78px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home-page .page-main {
  flex: 1 1 auto;
  min-height: 0 !important;
  display: flex;
  margin-top: calc(var(--home-nav-overlap) * -1);
}

.home-page .video-hero {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto;
  margin-top: 0 !important;
  padding-top: var(--home-nav-overlap);
}

.home-page .video-hero-content {
  top: calc(var(--home-nav-overlap) + clamp(14px, 4svh, 42px));
}

html[data-theme] body.home-page .top-menu-bar {
  border-color: rgba(245, 208, 122, 0.34);
  color: #fff8e8;
  background:
    linear-gradient(180deg, rgba(12, 10, 6, 0.42), rgba(8, 7, 5, 0.28));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 244, 210, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html[data-theme] body.home-page .top-menu-bar .brand,
html[data-theme] body.home-page .top-menu-bar .brand-name,
html[data-theme] body.home-page .top-menu-bar .desktop-nav a,
html[data-theme] body.home-page .top-menu-bar .dropdown-link,
html[data-theme] body.home-page .top-menu-bar .nav-preference {
  color: #fff8e8;
}

html[data-theme] body.home-page .top-menu-bar .desktop-nav,
html[data-theme] body.home-page .top-menu-bar .account-trigger {
  border-color: rgba(245, 208, 122, 0.22);
  background: rgba(255, 244, 210, 0.08);
}

html[data-theme] body.home-page .top-menu-bar .account-dropdown,
html[data-theme] body.home-page .top-menu-bar .mobile-nav-panel {
  border-color: rgba(245, 208, 122, 0.3);
  color: #fff8e8;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 208, 122, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 12, 7, 0.985), rgba(7, 6, 4, 0.985));
}

html[data-theme] body.home-page .top-menu-bar .theme-select,
html[data-theme] body.home-page .top-menu-bar .language-select {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.24);
  background: rgba(5, 4, 3, 0.96);
}

@media (max-height: 620px) {
  body.home-page {
    display: block !important;
  }

  .home-page .page-main {
    display: block !important;
  }

  .home-page .video-hero {
    min-height: 620px !important;
  }
}

@media (max-width: 920px) {
  body.home-page {
    --home-nav-overlap: calc(env(safe-area-inset-top, 0px) + 66px);
  }

  .home-page .video-hero-content {
    top: calc(var(--home-nav-overlap) + 12px);
  }
}

.video-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: cinematic-zoom 18s ease-in-out infinite alternate;
}

.video-hero-media.is-autoplay-managed {
  opacity: 0;
}

.video-hero-media.is-autoplay-managed.is-playing {
  opacity: 1;
}

.video-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 13, 19, 0.6) 0%, rgba(10, 13, 19, 0.26) 42%, rgba(10, 13, 19, 0.72) 100%),
    linear-gradient(90deg, rgba(10, 13, 19, 0.42), rgba(10, 13, 19, 0.04) 50%, rgba(10, 13, 19, 0.42));
}

.video-hero-content {
  width: min(1040px, 100%);
  position: absolute;
  left: 50%;
  top: clamp(48px, 8svh, 96px);
  z-index: 1;
  text-align: center;
  margin: 0 auto;
  padding: 0 24px;
  transform: translateX(-50%);
  animation: hero-fade 900ms ease both;
}

.video-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
}

.video-hero h1 {
  margin: 0 auto;
  max-width: 960px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 5.2rem;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.video-hero-content > p:not(.eyebrow) {
  max-width: 800px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.video-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  animation: hero-rise 900ms ease 180ms both;
}

.button.secondary.light {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.home-summary {
  width: 100%;
  background: #111722;
  color: #fff;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.home-summary .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.summary-heading,
.summary-list {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.summary-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: 42px;
}

.summary-heading h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
}

.summary-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.summary-list article {
  padding: 30px clamp(18px, 3vw, 36px) 10px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.summary-list article:last-child {
  border-right: 0;
}

.summary-list span {
  display: inline-block;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.summary-list h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.summary-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.editorial-band {
  width: 100%;
  max-width: none;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.editorial-band > .section-intro,
.editorial-band > .section-grid,
.editorial-band > .timeline-grid {
  width: min(1240px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.hero,
.band,
.workflow,
.page-hero,
.dashboard-head,
.content-grid,
.pricing-grid,
.split,
.metric-grid,
.table-panel,
.tab-nav,
.scanner-layout,
.public-invite,
.result-card {
  width: min(1240px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
}

.hero,
.video-hero,
.page-hero,
.dashboard-head {
  scroll-margin-top: 128px;
}

.hero,
.band,
.workflow,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 246, 241, 0.94));
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.96fr);
  gap: 56px;
  align-items: center;
  padding: clamp(84px, 11vw, 132px) clamp(22px, 5vw, 76px) 64px;
  margin-top: 28px;
  background:
    radial-gradient(circle at 18% 18%, rgba(126, 164, 131, 0.12), transparent 24%),
    radial-gradient(circle at 84% 20%, rgba(63, 98, 142, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(246, 244, 239, 0.92) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  top: -80px;
  right: 12%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(57, 212, 143, 0.18), rgba(57, 212, 143, 0));
}

.hero::after {
  bottom: -80px;
  left: 8%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.18), rgba(79, 124, 255, 0));
}

.hero-copy,
.hero-visual,
.band,
.workflow,
.page-hero,
.dashboard-head,
.metric-grid,
.content-grid,
.pricing-grid,
.split,
.scanner-layout,
.public-invite {
  position: relative;
  z-index: 1;
}

.eyebrow,
.small-label {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-copy .eyebrow,
.page-hero > .eyebrow,
.dashboard-head .eyebrow,
.pricing-note .eyebrow,
.feature-banner .eyebrow,
.auth-form .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.hero-copy .eyebrow::before,
.page-hero > .eyebrow::before,
.dashboard-head .eyebrow::before,
.pricing-note .eyebrow::before,
.feature-banner .eyebrow::before,
.auth-form .eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.hero-copy h1,
.page-hero h1,
.dashboard-head h1,
.auth-story h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
}

.page-hero h1,
.dashboard-head h1 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.id-line {
  margin: 10px 0 0;
  color: var(--gold-soft);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy p,
.page-hero p,
.dashboard-subtitle,
.section-intro p,
.feature-banner p:last-child,
.auth-story p,
.invite-intro {
  color: var(--muted);
}

.hero-copy p,
.page-hero p {
  max-width: 700px;
  font-size: 1.08rem;
}

.hero-copy > p:not(.eyebrow) {
  margin-bottom: 24px;
}

.hero-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.hero-points-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
}

.hero-points span {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: none;
}

.hero-points strong {
  font-size: 0.96rem;
}

.hero-points small {
  color: var(--muted);
}

.hero-visual {
  min-height: 620px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(63, 98, 142, 0.08), rgba(126, 164, 131, 0.08));
}

.hero-showcase {
  position: relative;
  width: min(620px, 100%);
  padding: 42px 22px 22px;
}

.showcase-frame {
  position: relative;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(145deg, #e7e2d7 0%, #cab9a0 38%, #8e7a62 100%);
  box-shadow: 0 30px 72px rgba(33, 39, 52, 0.16);
}

.showcase-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 32, 51, 0.04), rgba(22, 32, 51, 0.22)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 44%);
}

.showcase-card,
.invite-preview,
.card-preview {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 34px;
  color: #fff;
}

.showcase-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  min-height: 240px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(22, 32, 51, 0.82), rgba(22, 32, 51, 0.94));
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.showcase-card::after,
.invite-preview::after,
.card-preview::after {
  content: "";
  position: absolute;
  inset: -34% auto auto 56%;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  transform: rotate(18deg);
}

.showcase-card h2,
.invite-preview h2,
.card-preview h1,
.card-preview h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.02;
}

.showcase-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.showcase-details span,
.hero-note {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  width: fit-content;
}

.hero-note {
  position: absolute;
  max-width: 230px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(36, 60, 89, 0.08);
  box-shadow: var(--shadow-soft);
}

.hero-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.hero-note small {
  color: var(--muted);
}

.hero-note.one {
  top: 54px;
  left: 0;
  animation: float-card 10s ease-in-out infinite;
}

.hero-note.two {
  right: 0;
  bottom: 18px;
  animation: float-card 12s ease-in-out infinite reverse;
}

.status-chip,
.badge,
.price-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-chip {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.badge,
.price-badge {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.band,
.workflow,
.page-hero,
.dashboard-head {
  margin-top: 26px;
  padding: 34px clamp(18px, 5vw, 28px) 28px;
}

.section-intro {
  max-width: 760px;
  margin-bottom: 22px;
}

.section-intro h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
}

.section-intro-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: end;
}

.section-grid,
.content-grid,
.pricing-grid {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 0px) 24px;
}

.section-grid,
.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.features-grid {
  margin-top: 24px;
}

.page-hero + .content-grid,
.page-hero + .pricing-grid,
.page-hero + .section-grid,
.page-hero + .band,
.page-hero + .split,
.page-hero + .table-panel,
.page-hero + .public-invite,
.dashboard-head + .metric-grid,
.dashboard-head + .content-grid,
.dashboard-head + .tab-nav,
.dashboard-head + .operation-grid,
.dashboard-head + .split,
.dashboard-head + .table-panel,
.dashboard-head + .panel {
  margin-top: 26px;
}

.section-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-grid article,
.panel,
.price-card,
.table-panel,
.filter-bar,
.result-card,
.metric-grid article,
.timeline-grid article {
  border-radius: 20px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
}

.section-grid article,
.panel,
.price-card,
.result-card,
.timeline-grid article {
  padding: 22px;
}

.section-grid article,
.price-card,
.panel,
.metric-grid article,
.timeline-grid article,
.result-card,
.table-panel {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.section-grid article:hover,
.price-card:hover,
.panel:hover,
.metric-grid article:hover,
.timeline-grid article:hover,
.result-card:hover,
.table-panel:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.section-grid article::before,
.price-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.feature-panel {
  position: relative;
  overflow: hidden;
}

.feature-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 16px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.feature-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: end;
  margin-bottom: 26px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: linear-gradient(135deg, rgba(126, 164, 131, 0.08), rgba(63, 98, 142, 0.08));
}

.feature-banner.compact {
  margin-bottom: 0;
}

.feature-banner h2,
.panel h2,
.price-card h2,
.section-grid h3,
.timeline-grid h3 {
  margin-top: 0;
  font-family: var(--font-body);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--blue-deep);
}

.price {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 900;
}

.price-card .button {
  margin-top: 14px;
}

.workflow .section-intro p:last-child {
  margin-bottom: 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline-grid span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--green-deep), var(--blue));
  box-shadow: 0 10px 24px rgba(33, 39, 52, 0.1);
}

.dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}

.dashboard-subtitle {
  max-width: 620px;
  margin: 10px 0 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 0px) 24px;
}

.metric-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid article {
  padding: 18px;
}

.metric-grid span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-deep);
}

.metric-grid p {
  margin: 4px 0 0;
  color: var(--muted);
}

.split,
.scanner-layout,
.public-invite {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 0 clamp(18px, 5vw, 0px) 24px;
}

.auth-shell {
  display: grid;
  place-items: start center;
  padding: 50px 18px;
}

.auth-layout {
  width: min(1160px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: 24px;
}

.account-settings-layout {
  width: min(560px, 100%);
  display: flex;
  justify-content: center;
}

.auth-story {
  min-height: 100%;
  padding: 34px;
  border-radius: 22px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background:
    radial-gradient(circle at top right, rgba(63, 98, 142, 0.12), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 241, 234, 0.92));
  box-shadow: var(--shadow-soft);
}

.auth-story h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 14px;
}

.auth-points {
  flex-wrap: wrap;
  margin-top: 18px;
}

.auth-points span {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.76);
}

.auth-form h2 {
  margin-top: 0;
}

.login-auth-shell {
  min-height: calc(100dvh - 150px);
  place-items: center;
  padding-block: clamp(30px, 7vh, 78px);
}

.login-auth-layout {
  width: min(480px, 100%);
  display: flex;
  justify-content: center;
}

.login-auth-layout .auth-form {
  width: 100%;
}

.login-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.login-eyebrow span + span::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.public-invite {
  align-items: start;
}

.public-invite .panel.form-shell {
  background: var(--surface-strong);
  padding: 26px 22px;
}

.public-invite .panel.form-shell h2 {
  margin: 10px 0;
  font-size: 1.55rem;
}

.public-invite .panel.form-shell p:last-child {
  margin-bottom: 0;
}

.invite-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.invite-intro {
  margin: 0 0 14px;
}

.invite-description {
  margin-top: 10px;
  line-height: 1.65;
}

.invite-deadline {
  margin: 0 0 14px;
  font-weight: 700;
  color: var(--ink);
}

.invite-choice-help {
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.6;
  overflow-wrap: normal;
  text-wrap: pretty;
  word-break: normal;
}

.invite-detail-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 6px;
}

.invite-detail-label {
  font-weight: 800;
}

.invite-detail-label::after {
  content: ":";
  margin-left: 2px;
}

.invite-detail-value {
  display: inline-flex;
  align-items: baseline;
}

.invite-detail-note {
  margin-top: 0;
  margin-bottom: 14px;
}

.public-invite .form-shell label,
.form-shell label {
  font-weight: 800;
}

.narrow {
  max-width: 760px;
}

.event-form [data-contribution-field][hidden] {
  display: none !important;
}

.pricing-note {
  width: min(calc(100% - 36px), 760px);
  margin: 10px auto 28px;
  text-align: center;
}

.pricing-note .eyebrow {
  margin-inline: auto;
}

.form-shell {
  width: min(100%, 560px);
}

.wide-form {
  width: min(100%, 860px);
}

.form-shell p {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.form-field {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
}

.form-field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.required-marker {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: rgba(245, 208, 122, 0.12);
  border: 1px solid rgba(245, 208, 122, 0.24);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-error-summary,
.form-invalid-notice {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  background: rgba(255, 251, 250, 0.94);
  color: var(--red);
}

.form-error-summary strong {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
}

.form-error-summary p,
.form-invalid-notice {
  color: var(--red);
}

.form-error-summary p {
  margin: 0;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea,
.form-field.has-error #id_package label,
.was-validated input:invalid,
.was-validated select:invalid,
.was-validated textarea:invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(180, 35, 24, 0.08);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

textarea {
  min-height: 104px;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(79, 124, 255, 0.3);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 6px rgba(79, 124, 255, 0.08);
  transform: translateY(-1px);
}

input[type="date"],
input[type="datetime-local"],
input[type="time"] {
  appearance: auto;
  color-scheme: dark;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 1;
  filter: invert(78%) sepia(52%) saturate(416%) hue-rotate(357deg) brightness(105%) contrast(93%);
}

p:has(.tz-phone-input) {
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 0;
  align-items: stretch;
}

p:has(.tz-phone-input) label {
  grid-column: 1 / -1;
  grid-row: 1;
}

p:has(.tz-phone-input) .helptext,
p:has(.tz-phone-input) .errorlist {
  grid-column: 1 / -1;
  grid-row: 3;
}

p:has(.tz-phone-input)::before {
  content: "🇹🇿 Tanzania +255";
  display: inline-flex;
  align-items: center;
  grid-column: 1;
  grid-row: 2;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
  white-space: nowrap;
}

.tz-phone-input {
  grid-column: 2;
  grid-row: 2;
  border-radius: 0 12px 12px 0;
}

.helptext,
small,
.list-row span,
.guest-summary span {
  color: var(--muted);
}

.errorlist {
  color: var(--red);
  padding-left: 18px;
}

.table-panel {
  overflow-x: auto;
  margin-bottom: 24px;
}

.table-panel.flat {
  box-shadow: none;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, rgba(57, 212, 143, 0.08), rgba(79, 124, 255, 0.08));
}

tbody tr:hover td {
  background: linear-gradient(90deg, rgba(57, 212, 143, 0.05), rgba(79, 124, 255, 0.05));
}

.list {
  display: grid;
  gap: 8px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 clamp(18px, 5vw, 0px) 24px;
}

.tab-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.package-command {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto 24px;
}

.package-command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.package-command-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.operation-grid {
  width: min(1240px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto 24px;
}

.package-command .operation-grid {
  width: 100%;
  margin: 0 0 22px;
}

.limit-card,
.operation-card {
  display: grid;
  gap: 12px;
}

.limit-card {
  min-height: 160px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.limit-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.limit-card p,
.operation-card p {
  margin: 0;
}

.feature-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.feature-status {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(36, 60, 89, 0.08);
  background: rgba(255, 255, 255, 0.56);
}

.feature-status span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
}

.feature-status.included span {
  color: #064e3b;
  background: #d1fadf;
}

.feature-status.locked span {
  color: #7a271a;
  background: #fee4e2;
}

.operations-actions,
.compact-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.compact-form select {
  flex: 1 1 240px;
}

.compact-form .button {
  width: auto;
}

.split.flush {
  width: 100%;
  padding: 0;
}

.operations-list {
  margin-bottom: 18px;
}

#id_package {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#id_package li {
  margin: 0;
}

#id_package label {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#id_package input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  accent-color: #d9ad55;
}

#id_package label:has(input:checked) {
  border-color: rgba(245, 208, 122, 0.7);
  box-shadow: 0 0 0 4px rgba(245, 208, 122, 0.12);
}

#id_package label:hover {
  transform: translateY(-2px);
}

.scanner-box {
  min-height: 420px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  background: #172026;
}

.scanner-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-help {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
}

.result-card.success {
  border-color: #abefc6;
  background: #f6fef9;
}

.result-card.warning {
  border-color: #fecdca;
  background: #fffbfa;
}

.guest-summary {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.invitation-card {
  min-height: 560px;
}

.card-preview,
.template-swatch {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 78% 10%, rgba(217, 173, 85, 0.28), transparent 28%),
    linear-gradient(145deg, var(--primary, #111722), #080706);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.card-preview > *,
.template-swatch > * {
  position: relative;
  z-index: 1;
}

.template-gallery {
  margin-top: 18px;
}

.template-swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.template-swatch {
  border: 0;
  text-align: left;
  cursor: pointer;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 18px;
  color: #fff8e8;
}

.template-swatch:disabled {
  cursor: not-allowed;
}

.template-swatch:not(:disabled):hover,
.template-swatch:not(:disabled):focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.template-swatch span,
.template-swatch small {
  color: var(--card-muted, rgba(255, 248, 232, 0.72));
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.template-swatch strong {
  color: var(--card-ink, inherit);
  font-size: 1.05rem;
  line-height: 1.08;
}

.card-preview[class*="template-"] .small-label,
.template-swatch[class*="template-"] span,
.template-swatch[class*="template-"] small {
  color: var(--card-muted, rgba(255, 248, 232, 0.72));
}

.card-preview[class*="template-"] h1,
.card-preview[class*="template-"] h2,
.card-preview[class*="template-"] p,
.card-preview[class*="template-"] strong,
.template-swatch[class*="template-"] strong {
  color: var(--card-ink, #fff8e8);
}

.template-swatch.is-locked {
  filter: grayscale(0.35);
  opacity: 0.62;
}

.template-swatch.is-locked::after {
  content: "Upgrade";
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  color: #100d07;
  background: linear-gradient(135deg, #d9ad55, #fff2bc);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.template-aurelia-black-tie {
  --card-ink: #fff8e8;
  --card-muted: rgba(255, 248, 232, 0.72);
  color: #fff8e8;
  background:
    repeating-linear-gradient(90deg, rgba(245, 208, 122, 0.08) 0 1px, transparent 1px 58px),
    linear-gradient(180deg, rgba(245, 208, 122, 0.14), transparent 36%),
    linear-gradient(145deg, #030302 0%, #171006 54%, #050403 100%);
}

.template-aurelia-black-tie::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 208, 122, 0.48);
  border-radius: 22px;
  pointer-events: none;
}

.template-crimson-floral-save-date {
  --card-ink: #2c160d;
  --card-muted: rgba(78, 43, 24, 0.68);
  color: #2c160d;
  justify-content: center;
  text-align: center;
  background:
    url("../img/cards/floral-crimson-corners.fc95b227aab3.svg") left center / 50% 100% no-repeat,
    radial-gradient(circle at 8% 9%, #b51222 0 8%, #7e101b 9% 13%, transparent 14%),
    radial-gradient(circle at 18% 5%, rgba(206, 38, 34, 0.82) 0 7%, transparent 8%),
    radial-gradient(circle at 88% 92%, #9c1021 0 10%, #5d0b17 11% 16%, transparent 17%),
    radial-gradient(ellipse at 24% 17%, rgba(186, 118, 32, 0.42) 0 12%, transparent 13%),
    radial-gradient(ellipse at 76% 82%, rgba(186, 118, 32, 0.38) 0 14%, transparent 15%),
    repeating-linear-gradient(90deg, rgba(163, 103, 39, 0.12) 0 1px, transparent 1px 42px),
    linear-gradient(145deg, #fff8ec 0%, #f8e9cc 54%, #e5c996 100%);
}

.template-crimson-floral-save-date::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(157, 93, 31, 0.34);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(177, 122, 44, 0.38), transparent 16%, transparent 84%, rgba(177, 122, 44, 0.38)),
    linear-gradient(180deg, rgba(177, 122, 44, 0.28), transparent 18%, transparent 82%, rgba(177, 122, 44, 0.28));
  pointer-events: none;
}

.template-royal-plum-florals {
  --card-ink: #ffe6a3;
  --card-muted: rgba(255, 230, 163, 0.76);
  color: #ffe6a3;
  justify-content: center;
  text-align: center;
  background:
    url("../img/cards/floral-plum-corners.d4a0a35cb4ae.svg") left center / 50% 100% no-repeat,
    radial-gradient(circle at 7% 8%, #6b2179 0 12%, #351047 13% 22%, transparent 23%),
    radial-gradient(circle at 94% 10%, #7e2a85 0 13%, #2a0d3d 14% 23%, transparent 24%),
    radial-gradient(circle at 15% 96%, #8b338b 0 12%, #371044 13% 23%, transparent 24%),
    radial-gradient(circle at 91% 92%, #7b2b80 0 12%, #270b38 13% 23%, transparent 24%),
    radial-gradient(ellipse at 18% 25%, rgba(241, 200, 102, 0.62) 0 8%, transparent 9%),
    radial-gradient(ellipse at 82% 30%, rgba(241, 200, 102, 0.52) 0 9%, transparent 10%),
    repeating-linear-gradient(90deg, rgba(241, 200, 102, 0.1) 0 1px, transparent 1px 58px),
    linear-gradient(145deg, #2b0738 0%, #4a0d4f 52%, #16031f 100%);
}

.template-royal-plum-florals::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(241, 200, 102, 0.58);
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 4px rgba(241, 200, 102, 0.08),
    inset 0 0 34px rgba(241, 200, 102, 0.08);
  pointer-events: none;
}

.template-peacock-regalia {
  --card-ink: #ffe7a3;
  --card-muted: rgba(255, 231, 163, 0.75);
  color: #ffe7a3;
  justify-content: center;
  text-align: center;
  background:
    url("../img/cards/peacock-regalia-frame.d63ef6a0a85f.svg") left center / 50% 100% no-repeat,
    radial-gradient(ellipse at 18% 72%, #07a968 0 4%, #1e75b8 5% 8%, #f0b84c 9% 11%, transparent 12%),
    radial-gradient(ellipse at 82% 72%, #07a968 0 4%, #1e75b8 5% 8%, #f0b84c 9% 11%, transparent 12%),
    radial-gradient(ellipse at 12% 86%, rgba(15, 166, 105, 0.74) 0 14%, transparent 15%),
    radial-gradient(ellipse at 88% 86%, rgba(15, 166, 105, 0.74) 0 14%, transparent 15%),
    radial-gradient(circle at 50% 8%, rgba(240, 184, 76, 0.72) 0 4%, transparent 5%),
    repeating-linear-gradient(90deg, rgba(240, 184, 76, 0.12) 0 1px, transparent 1px 42px),
    linear-gradient(145deg, #4b0036 0%, #5e073f 58%, #28001f 100%);
}

.template-peacock-regalia::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px solid rgba(240, 184, 76, 0.54);
  border-radius: 20px;
  background:
    radial-gradient(circle at 13% 22%, rgba(240, 184, 76, 0.72) 0 2%, transparent 3%),
    radial-gradient(circle at 87% 22%, rgba(240, 184, 76, 0.72) 0 2%, transparent 3%),
    linear-gradient(90deg, transparent 0 20%, rgba(240, 184, 76, 0.22) 20% 21%, transparent 21% 79%, rgba(240, 184, 76, 0.22) 79% 80%, transparent 80%);
  pointer-events: none;
}

.template-saffron-split-bloom {
  --card-ink: #fff2d2;
  --card-muted: rgba(255, 242, 210, 0.72);
  color: #fff2d2;
  align-items: flex-end;
  text-align: center;
  background:
    url("../img/cards/saffron-split-bloom.8417c70ab423.svg") left center / 50% 100% no-repeat,
    linear-gradient(90deg, transparent 0 48%, #77471f 48% 100%),
    radial-gradient(circle at 18% 24%, #f08d24 0 9%, #dc5f22 10% 14%, transparent 15%),
    radial-gradient(circle at 30% 38%, rgba(255, 186, 68, 0.78) 0 8%, transparent 9%),
    radial-gradient(ellipse at 24% 72%, rgba(80, 128, 67, 0.48) 0 16%, transparent 17%),
    linear-gradient(145deg, #fff1d7 0%, #f7deb6 48%, #77471f 49%, #4f2d18 100%);
}

.template-saffron-split-bloom::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(117, 71, 31, 0.32);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 46%, rgba(255, 255, 255, 0.04) 46% 100%),
    repeating-linear-gradient(135deg, rgba(117, 71, 31, 0.12) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.template-saffron-split-bloom > * {
  max-width: 46%;
}

.template-saffron-split-bloom h1,
.template-saffron-split-bloom h2,
.template-saffron-split-bloom p,
.template-saffron-split-bloom strong {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.card-preview.template-aurelia-black-tie,
.card-preview.template-crimson-floral-save-date,
.card-preview.template-royal-plum-florals,
.card-preview.template-peacock-regalia,
.card-preview.template-botanic-noir,
.card-preview.template-pearl-arch,
.card-preview.template-savanna-heritage,
.card-preview.template-family-sendoff {
  padding: clamp(34px, 7vw, 64px);
}

.card-preview.template-aurelia-black-tie > *,
.card-preview.template-crimson-floral-save-date > *,
.card-preview.template-royal-plum-florals > *,
.card-preview.template-peacock-regalia > *,
.card-preview.template-botanic-noir > *,
.card-preview.template-pearl-arch > *,
.card-preview.template-savanna-heritage > *,
.card-preview.template-family-sendoff > * {
  width: min(100%, 430px);
  align-self: center;
  text-align: center;
}

.card-preview.template-aurelia-black-tie::after,
.card-preview.template-crimson-floral-save-date::after,
.card-preview.template-royal-plum-florals::after,
.card-preview.template-peacock-regalia::after,
.card-preview.template-botanic-noir::after,
.card-preview.template-pearl-arch::after,
.card-preview.template-savanna-heritage::after,
.card-preview.template-family-sendoff::after {
  content: "";
  position: absolute;
  inset: clamp(54px, 12%, 92px) clamp(28px, 9%, 58px);
  z-index: 0;
  border: 1px solid var(--card-panel-border, rgba(245, 208, 122, 0.28));
  border-radius: 26px;
  background: var(--card-panel, rgba(5, 4, 3, 0.42));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.card-preview.template-crimson-floral-save-date {
  --card-panel: rgba(255, 250, 240, 0.78);
  --card-panel-border: rgba(157, 93, 31, 0.38);
}

.card-preview.template-botanic-noir,
.card-preview.template-pearl-arch {
  --card-panel: rgba(255, 250, 238, 0.72);
  --card-panel-border: rgba(80, 61, 34, 0.25);
}

.card-preview.template-royal-plum-florals,
.card-preview.template-peacock-regalia,
.card-preview.template-aurelia-black-tie {
  --card-panel: rgba(8, 4, 10, 0.58);
  --card-panel-border: rgba(245, 208, 122, 0.36);
}

.card-preview.template-savanna-heritage,
.card-preview.template-family-sendoff {
  --card-panel: rgba(15, 8, 4, 0.64);
  --card-panel-border: rgba(245, 208, 122, 0.34);
}

.card-preview.template-saffron-split-bloom::after {
  content: "";
  position: absolute;
  inset: clamp(46px, 11%, 84px) 30px clamp(46px, 11%, 84px) 51%;
  z-index: 0;
  border: 1px solid rgba(255, 242, 210, 0.22);
  border-radius: 22px;
  background: rgba(58, 31, 15, 0.7);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.card-preview.template-saffron-split-bloom > * {
  width: min(44%, 300px);
  align-self: flex-end;
}

.card-preview.template-saffron-split-bloom,
.card-preview.template-crimson-floral-save-date,
.card-preview.template-royal-plum-florals,
.card-preview.template-peacock-regalia,
.card-preview.template-savanna-heritage,
.card-preview.template-family-sendoff {
  align-items: flex-end;
  padding: clamp(34px, 6vw, 60px) 30px;
}

.card-preview.template-saffron-split-bloom::after,
.card-preview.template-crimson-floral-save-date::after,
.card-preview.template-royal-plum-florals::after,
.card-preview.template-peacock-regalia::after,
.card-preview.template-savanna-heritage::after,
.card-preview.template-family-sendoff::after {
  inset: clamp(46px, 11%, 84px) 30px clamp(46px, 11%, 84px) 51%;
  border-radius: 22px;
}

.card-preview.template-saffron-split-bloom > *,
.card-preview.template-crimson-floral-save-date > *,
.card-preview.template-royal-plum-florals > *,
.card-preview.template-peacock-regalia > *,
.card-preview.template-savanna-heritage > *,
.card-preview.template-family-sendoff > * {
  width: min(44%, 320px);
  max-width: 44%;
  align-self: flex-end;
  text-align: center;
}

.card-preview.template-crimson-floral-save-date::after {
  background: rgba(255, 250, 240, 0.84);
  box-shadow: 0 18px 54px rgba(92, 46, 18, 0.14);
}

.card-preview.template-royal-plum-florals::after,
.card-preview.template-peacock-regalia::after,
.card-preview.template-savanna-heritage::after,
.card-preview.template-family-sendoff::after {
  background: rgba(8, 4, 10, 0.72);
}

.template-swatch.template-crimson-floral-save-date,
.template-swatch.template-royal-plum-florals,
.template-swatch.template-peacock-regalia,
.template-swatch.template-saffron-split-bloom,
.template-swatch.template-savanna-heritage,
.template-swatch.template-family-sendoff {
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.template-swatch.template-crimson-floral-save-date > *,
.template-swatch.template-royal-plum-florals > *,
.template-swatch.template-peacock-regalia > *,
.template-swatch.template-saffron-split-bloom > *,
.template-swatch.template-savanna-heritage > *,
.template-swatch.template-family-sendoff > * {
  width: 54%;
  max-width: 54%;
  align-self: flex-end;
}

@media (max-width: 680px) {
  .card-preview.template-saffron-split-bloom,
  .card-preview.template-crimson-floral-save-date,
  .card-preview.template-royal-plum-florals,
  .card-preview.template-peacock-regalia,
  .card-preview.template-savanna-heritage,
  .card-preview.template-family-sendoff {
    align-items: flex-end;
    padding: clamp(36px, 10vw, 56px) 22px;
  }

  .card-preview.template-saffron-split-bloom::after,
  .card-preview.template-crimson-floral-save-date::after,
  .card-preview.template-royal-plum-florals::after,
  .card-preview.template-peacock-regalia::after,
  .card-preview.template-savanna-heritage::after,
  .card-preview.template-family-sendoff::after {
    inset: clamp(54px, 13%, 84px) 18px clamp(42px, 10%, 68px) 40%;
  }

  .card-preview.template-saffron-split-bloom > *,
  .card-preview.template-crimson-floral-save-date > *,
  .card-preview.template-royal-plum-florals > *,
  .card-preview.template-peacock-regalia > *,
  .card-preview.template-savanna-heritage > *,
  .card-preview.template-family-sendoff > * {
    width: min(58%, 360px);
    max-width: 100%;
    align-self: flex-end;
  }
}

.template-botanic-noir {
  --card-ink: #183024;
  --card-muted: rgba(24, 48, 36, 0.68);
  color: #183024;
  background:
    repeating-linear-gradient(135deg, rgba(40, 96, 68, 0.08) 0 1px, transparent 1px 24px),
    linear-gradient(145deg, #fff4df 0%, #e9f2df 54%, #d3c3a5 100%);
}

.template-botanic-noir::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -44px;
  width: 210px;
  height: 330px;
  border-radius: 48% 52% 42% 58%;
  border: 1px solid rgba(38, 89, 64, 0.24);
  background:
    repeating-linear-gradient(90deg, rgba(44, 118, 82, 0.18) 0 2px, transparent 2px 18px),
    rgba(255, 255, 255, 0.2);
  transform: rotate(17deg);
}

.template-pearl-arch {
  --card-ink: #201407;
  --card-muted: rgba(32, 20, 7, 0.66);
  color: #201407;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.44), transparent 36%),
    linear-gradient(145deg, #fff8e8 0%, #d9c7a4 48%, #8d6425 100%);
}

.template-pearl-arch::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 28px;
  width: min(72%, 330px);
  height: 82%;
  border: 2px solid rgba(141, 100, 37, 0.46);
  border-radius: 999px 999px 26px 26px;
  transform: translateX(-50%);
}

.template-pearl-arch .small-label,
.template-pearl-arch p,
.template-pearl-arch strong,
.template-pearl-arch h1,
.template-pearl-arch h2 {
  color: #201407;
}

.template-savanna-heritage {
  --card-ink: #fff8e8;
  --card-muted: rgba(255, 248, 232, 0.74);
  color: #fff8e8;
  background:
    url("../img/cards/heritage-strip.b9a890b88589.svg") left center / 50% 100% no-repeat,
    repeating-linear-gradient(45deg, rgba(255, 248, 232, 0.06) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(135deg, rgba(245, 208, 122, 0.14) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, #4f1f11 0%, #a14c1d 44%, #162f2b 100%);
}

.template-savanna-heritage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 208, 122, 0.24);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(5, 4, 3, 0.34), transparent 22%, transparent 78%, rgba(5, 4, 3, 0.34));
  pointer-events: none;
}

.template-cinematic-photo-luxe {
  --card-ink: #fff8e8;
  --card-muted: rgba(255, 248, 232, 0.76);
  color: #fff8e8;
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.04), rgba(5, 4, 3, 0.82)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 46px),
    linear-gradient(145deg, #0d2437 0%, #31485a 42%, #0b0905 100%);
}

.template-cinematic-photo-luxe::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(2px);
}

.template-birthday-glow {
  --card-ink: #321223;
  --card-muted: rgba(50, 18, 35, 0.66);
  color: #321223;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.32) 0 8px, transparent 8px 28px),
    repeating-linear-gradient(135deg, rgba(238, 98, 112, 0.18) 0 2px, transparent 2px 18px),
    linear-gradient(145deg, #ffe3ec 0%, #ffd36d 46%, #92dfcd 100%);
}

.template-birthday-glow::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(50, 18, 35, 0.32);
  border-radius: 22px;
  pointer-events: none;
}

.template-graduation-day {
  --card-ink: #fff8e8;
  --card-muted: rgba(255, 248, 232, 0.74);
  color: #fff8e8;
  background:
    linear-gradient(132deg, transparent 0 58%, rgba(244, 209, 123, 0.9) 58% 64%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 42px),
    linear-gradient(145deg, #07172d 0%, #153d4c 62%, #07111f 100%);
}

.template-graduation-day::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(244, 209, 123, 0.42);
  transform: rotate(45deg);
}

.template-corporate-summit {
  --card-ink: #112236;
  --card-muted: rgba(17, 34, 54, 0.64);
  color: #112236;
  background:
    linear-gradient(90deg, rgba(39, 91, 134, 0.14), transparent 32%),
    repeating-linear-gradient(0deg, rgba(17, 34, 54, 0.08) 0 1px, transparent 1px 34px),
    linear-gradient(145deg, #f8fbff 0%, #d9e7ef 52%, #b7c8d0 100%);
}

.template-corporate-summit::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 18px;
  background: linear-gradient(180deg, #1f5f8b, #2f8f83, #f0c96d);
}

.template-family-sendoff {
  --card-ink: #fff8e8;
  --card-muted: rgba(255, 248, 232, 0.76);
  color: #fff8e8;
  background:
    url("../img/cards/heritage-strip.b9a890b88589.svg") left center / 50% 100% no-repeat,
    repeating-linear-gradient(45deg, rgba(255, 248, 232, 0.09) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(135deg, rgba(244, 209, 123, 0.16) 0 2px, transparent 2px 24px),
    linear-gradient(145deg, #0c4a48 0%, #b45322 48%, #21140a 100%);
}

.template-family-sendoff::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(245, 208, 122, 0.24);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(5, 4, 3, 0.34), transparent 22%, transparent 78%, rgba(5, 4, 3, 0.34));
  pointer-events: none;
}

.template-memorial-calm {
  --card-ink: #28313a;
  --card-muted: rgba(40, 49, 58, 0.64);
  color: #28313a;
  background:
    linear-gradient(90deg, rgba(94, 113, 89, 0.14), transparent 42%),
    repeating-linear-gradient(90deg, rgba(40, 49, 58, 0.04) 0 1px, transparent 1px 56px),
    linear-gradient(145deg, #f3f1ec 0%, #dce3dc 52%, #bcc7c0 100%);
}

.template-memorial-calm::before {
  content: "";
  position: absolute;
  inset: 20px;
  border-left: 3px solid rgba(94, 113, 89, 0.42);
  border-bottom: 1px solid rgba(40, 49, 58, 0.14);
  pointer-events: none;
}

.inline-action-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.section-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.danger-link {
  color: var(--red);
}

.danger-button {
  border-color: rgba(180, 35, 24, 0.42);
  color: #fff8e8;
  background: linear-gradient(135deg, #5f1712, #b42318);
}

.payment-summary-card,
.refund-policy-card,
.refund-panel {
  border-color: rgba(217, 173, 85, 0.36);
}

.card-dashboard-section {
  align-items: stretch;
}

.dashboard-card-preview {
  min-height: 430px;
}

.qr-wrap {
  margin-top: 14px;
  color: #fff8e8;
}

.qr-wrap svg {
  display: block;
  width: min(190px, 100%);
  height: auto;
}

.qr-wrap svg path {
  fill: currentColor;
}

html[data-theme="black-gold"] .qr-wrap {
  color: #fff8e8;
}

html[data-theme="silver-sage"] .qr-wrap {
  color: #050403;
}

.warning-text {
  color: var(--red);
  font-weight: 800;
}

code {
  padding: 2px 6px;
  border-radius: 8px;
  background: #eef2f6;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(20px, -18px, 0);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes cinematic-zoom {
  from {
    transform: scale(1.04);
  }

  to {
    transform: scale(1.12);
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes hero-panel-rise {
  from {
    opacity: 0;
    transform: translate(-50%, 28px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 1280px) {
  .video-hero-content {
    top: clamp(52px, 7svh, 92px);
  }

  .video-hero h1 {
    font-size: 5.8rem;
  }
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header {
    top: var(--nav-offset);
    width: min(100%, calc(100% - 18px));
    margin-top: var(--nav-offset);
  }

  .video-nav {
    top: var(--nav-offset);
    width: min(100%, calc(100% - 18px));
    align-items: flex-start;
    flex-direction: column;
    border-radius: 18px;
  }

  .video-nav .site-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 18px;
  }

  .hero,
  .split,
  .operation-grid,
  .scanner-layout,
  .public-invite,
  .section-grid,
  .section-grid.four,
  .content-grid,
  .pricing-grid,
  .timeline-grid,
  .hero-points-grid,
  .auth-layout,
  .feature-banner,
  .section-intro-split,
  .summary-heading,
  .summary-list {
    grid-template-columns: 1fr;
  }

  .summary-list {
    border-top: 0;
    gap: 18px;
  }

  .summary-list article {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-right: 0;
  }

  .hero,
  .band,
  .workflow,
  .page-hero,
  .dashboard-head,
  .package-command,
  .metric-grid,
  .content-grid,
  .pricing-grid,
  .split,
  .scanner-layout,
  .public-invite,
  .table-panel,
  .tab-nav,
  .site-footer,
  .messages {
    width: min(100%, calc(100% - 18px));
  }

  .hero {
    padding-bottom: 34px;
  }

  .video-hero {
    min-height: max(100svh, 900px);
    padding: 0;
  }

  .video-hero h1 {
    font-size: 3.4rem;
  }

  .video-hero-content {
    top: clamp(42px, 7svh, 76px);
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-note.one {
    top: 22px;
    left: 10px;
  }

  .hero-note.two {
    right: 12px;
    bottom: 18px;
  }

  .metric-grid,
  .metric-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .package-command-head {
    flex-direction: column;
  }

  .feature-status-grid {
    grid-template-columns: 1fr;
  }

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

  .auth-form {
    order: 1;
  }

  .auth-story {
    order: 2;
  }

  #id_package {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  html,
  body {
    min-height: 100dvh;
    background: #050403;
  }

  main:not(.top-menu-bar),
  .page-main {
    background: #050403;
  }

  .home-page,
  .home-page main:not(.top-menu-bar),
  .home-page .page-main {
    min-height: 100dvh;
    background: #050403;
  }

  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    height: env(safe-area-inset-top);
    background: #050403;
    pointer-events: none;
  }

  .site-footer {
    display: none;
  }

  .site-header {
    gap: 10px;
    padding: 10px;
    border-radius: 18px;
  }

  .brand {
    width: 100%;
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    height: 36px;
    flex: 0 0 auto;
  }

  .brand-name {
    min-width: 0;
    font-size: 0.9rem;
    white-space: normal;
  }

  .site-nav {
    gap: 5px;
    justify-content: stretch;
    width: 100%;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 5px;
    border-radius: 18px;
  }

  .site-nav .inline-form {
    flex: 1 1 calc(33.333% - 5px);
    min-width: 0;
  }

  .site-nav a,
  .site-nav .link-button {
    flex: 1 1 calc(33.333% - 5px);
    min-width: 0;
    min-height: 34px;
    padding: 0 7px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .site-nav .link-button {
    width: 100%;
  }

  .theme-switcher,
  .language-switcher {
    width: 100%;
  }

  .theme-select,
  .language-select {
    width: 100%;
    max-width: none;
    min-height: 36px;
    font-size: 0.78rem;
  }

  .video-nav {
    width: calc(100% - 32px);
    top: var(--nav-offset);
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .video-nav .brand {
    width: 100%;
  }

  .video-nav .brand-logo {
    height: 38px;
  }

  .video-nav .brand-name {
    font-size: 0.92rem;
  }

  .video-nav .site-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: rgba(12, 17, 26, 0.26);
    backdrop-filter: blur(10px);
  }

  .video-nav .site-nav a,
  .video-nav .nav-cta,
  .video-nav .link-button {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    flex: 1 1 calc(50% - 6px);
    padding: 0 8px;
    border-radius: 999px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 0.78rem;
    white-space: nowrap;
    backdrop-filter: none;
  }

  .video-nav .site-nav a::after {
    display: none;
  }

  .video-nav .nav-cta {
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
  }

  .metric-grid,
  .metric-grid.compact,
  .metric-strip {
    grid-template-columns: 1fr;
  }

  .template-swatch-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .nav-cta {
    width: 100%;
  }

  .hero {
    margin-top: 18px;
    padding: 74px 18px 28px;
    border-radius: 28px;
  }

  .video-hero {
    margin-top: 0;
    min-height: calc(100dvh + env(safe-area-inset-top) + env(safe-area-inset-bottom));
    padding: 0 0 env(safe-area-inset-bottom);
  }

  .home-page .video-hero {
    margin-top: 0;
  }

  .video-hero h1 {
    font-size: 1.9rem;
    line-height: 1.05;
  }

  .video-hero-content {
    top: 34px;
    padding: 0 16px;
  }

  .video-hero-content > p:not(.eyebrow) {
    font-size: 0.9rem;
    line-height: 1.42;
    margin-top: 12px;
  }

  .video-hero-actions {
    position: relative;
    align-items: stretch;
    flex-direction: column;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    gap: 10px;
  }

  .video-hero-actions .button {
    min-height: 42px;
  }

  .video-hero-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: auto;
    padding: 16px;
  }

  .hero-showcase {
    padding: 8px;
  }

  .hero-note {
    position: static;
    margin-top: 12px;
    max-width: none;
  }

  .auth-story {
    padding: 24px;
  }
}

body:not(.login-page) {
  --bg: #080705;
  --surface: rgba(23, 20, 14, 0.86);
  --surface-strong: rgba(34, 29, 18, 0.94);
  --surface-dark: #090806;
  --surface-dark-2: #17130d;
  --ink: #fff8e8;
  --muted: #c9b98f;
  --line: rgba(213, 175, 92, 0.22);
  --line-strong: rgba(245, 208, 122, 0.36);
  --blue: #d9ad55;
  --blue-deep: #f4d17b;
  --green: #b88a3c;
  --green-deep: #d9ad55;
  --sky: rgba(244, 209, 123, 0.14);
  --mint: rgba(70, 82, 47, 0.22);
  --red: #ffb4a8;
  --success: #9ee6b4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.36);
  --background: #080705;
  --foreground: #fff8e8;
  --card: rgba(23, 20, 14, 0.86);
  --card-foreground: #fff8e8;
  --primary: #d9ad55;
  --primary-foreground: #0b0905;
  --secondary: #b88a3c;
  --accent: #f5d07a;
  --border: rgba(245, 208, 122, 0.24);
  --muted-foreground: #c9b98f;
  --gradient-start: #050403;
  --gradient-end: #171109;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 6%, rgba(244, 209, 123, 0.16), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(93, 82, 45, 0.22), transparent 28%),
    linear-gradient(180deg, #050403 0%, #0c0905 42%, #171109 100%);
}

body:not(.login-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(245, 208, 122, 0.07), transparent 24%, rgba(255, 255, 255, 0.025) 46%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(245, 208, 122, 0.045) 0 1px, transparent 1px 120px);
  opacity: 0.55;
  mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.7) 52%, transparent 100%);
}

body:not(.login-page) a {
  color: #f4d17b;
}

body:not(.login-page) .page-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(245, 208, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 208, 122, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

body:not(.login-page) .site-header,
body:not(.login-page) .site-footer,
body:not(.login-page) .video-nav {
  border-color: rgba(245, 208, 122, 0.34);
  background:
    linear-gradient(180deg, rgba(25, 20, 11, 0.9), rgba(11, 9, 6, 0.86));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 244, 210, 0.08);
}

body:not(.login-page) .brand,
body:not(.login-page) .site-nav a,
body:not(.login-page) .link-button,
body:not(.login-page) .site-footer,
body:not(.login-page) .site-footer a {
  color: #fff8e8;
}

body:not(.login-page) .brand-name {
  color: #f4d17b;
}

body:not(.login-page) .site-nav {
  border-color: rgba(245, 208, 122, 0.18);
  background: rgba(255, 244, 210, 0.06);
}

body:not(.login-page) .site-nav a::after {
  background: linear-gradient(90deg, #8d6425, #f5d07a, #fff2bc);
}

body:not(.login-page) .site-nav a:hover,
body:not(.login-page) .site-nav a:focus-visible,
body:not(.login-page) .link-button:hover,
body:not(.login-page) .link-button:focus-visible {
  background: rgba(245, 208, 122, 0.1);
}

body:not(.login-page) .button.primary,
body:not(.login-page) .nav-cta {
  color: #0b0905;
  border-color: rgba(255, 242, 188, 0.48);
  background: linear-gradient(135deg, #8d6425 0%, #f0c96d 48%, #fff2bc 100%);
  box-shadow: 0 16px 34px rgba(217, 173, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body:not(.login-page) .site-nav a.nav-account-settings {
  color: #0b0905;
  border-color: rgba(255, 242, 188, 0.48);
  background: linear-gradient(135deg, #8d6425 0%, #f0c96d 48%, #fff2bc 100%);
  box-shadow: 0 12px 28px rgba(217, 173, 85, 0.2);
}

body:not(.login-page) .site-nav a.nav-logout {
  color: #ffd7d2;
  border-color: rgba(255, 176, 168, 0.36);
  background: rgba(180, 35, 24, 0.16);
}

body:not(.login-page) .site-nav a.nav-logout:hover,
body:not(.login-page) .site-nav a.nav-logout:focus-visible {
  color: #fff;
  background: #b42318;
}

body:not(.login-page) .button.secondary {
  color: #f8e7b0;
  border-color: rgba(245, 208, 122, 0.28);
  background: rgba(245, 208, 122, 0.08);
}

body:not(.login-page) .button.secondary.light {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.38);
  background: rgba(5, 4, 3, 0.5);
}

body:not(.login-page) .button:hover,
body:not(.login-page) .nav-cta:hover,
body:not(.login-page) .tab-nav a:hover,
body:not(.login-page) .list-row:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), 0 0 30px rgba(245, 208, 122, 0.1);
}

body:not(.login-page) .button:focus-visible,
body:not(.login-page) .nav-cta:focus-visible,
body:not(.login-page) .tab-nav a:focus-visible,
body:not(.login-page) a:focus-visible,
body:not(.login-page) input:focus-visible,
body:not(.login-page) select:focus-visible,
body:not(.login-page) textarea:focus-visible,
body:not(.login-page) button:focus-visible {
  outline-color: rgba(245, 208, 122, 0.5);
}

body:not(.login-page) .hero,
body:not(.login-page) .band,
body:not(.login-page) .workflow,
body:not(.login-page) .page-hero,
body:not(.login-page) .dashboard-head,
body:not(.login-page) .section-grid article,
body:not(.login-page) .panel,
body:not(.login-page) .price-card,
body:not(.login-page) .limit-card,
body:not(.login-page) .feature-status,
body:not(.login-page) .table-panel,
body:not(.login-page) .filter-bar,
body:not(.login-page) .result-card,
body:not(.login-page) .metric-grid article,
body:not(.login-page) .timeline-grid article {
  border-color: rgba(245, 208, 122, 0.24);
  background:
    linear-gradient(180deg, rgba(38, 31, 18, 0.9), rgba(13, 11, 7, 0.92));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 244, 210, 0.08);
}

body:not(.login-page) .hero,
body:not(.login-page) .page-hero,
body:not(.login-page) .dashboard-head {
  background:
    radial-gradient(circle at 86% 10%, rgba(245, 208, 122, 0.2), transparent 28%),
    linear-gradient(140deg, rgba(45, 34, 14, 0.96), rgba(8, 7, 5, 0.96) 62%, rgba(28, 20, 8, 0.98));
}

body:not(.login-page) .band,
body:not(.login-page) .workflow {
  background:
    linear-gradient(180deg, rgba(27, 22, 13, 0.92), rgba(8, 7, 5, 0.94)),
    linear-gradient(90deg, rgba(245, 208, 122, 0.08), transparent);
}

body:not(.login-page) .page-hero::before,
body:not(.login-page) .dashboard-head::before,
body:not(.login-page) .band::before,
body:not(.login-page) .workflow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(245, 208, 122, 0.2), transparent 38%),
    repeating-linear-gradient(135deg, rgba(255, 244, 210, 0.045) 0 1px, transparent 1px 22px);
  opacity: 0.72;
}

body:not(.login-page) .hero-copy h1,
body:not(.login-page) .page-hero h1,
body:not(.login-page) .dashboard-head h1,
body:not(.login-page) .auth-story h1,
body:not(.login-page) .summary-heading h2,
body:not(.login-page) .section-intro h2 {
  font-family: var(--font-heading);
  color: #fff8e8;
  font-weight: 700;
  letter-spacing: -0.012em;
}

body:not(.login-page) .feature-banner h2,
body:not(.login-page) .panel h2,
body:not(.login-page) .price-card h2,
body:not(.login-page) .section-grid h3,
body:not(.login-page) .timeline-grid h3 {
  color: #f4d17b;
}

body:not(.login-page) .hero-copy p,
body:not(.login-page) .page-hero p,
body:not(.login-page) .dashboard-subtitle,
body:not(.login-page) .section-intro p,
body:not(.login-page) .feature-banner p:last-child,
body:not(.login-page) .auth-story p,
body:not(.login-page) .invite-intro,
body:not(.login-page) p {
  color: var(--muted);
}

body:not(.login-page) strong,
body:not(.login-page) h1,
body:not(.login-page) h2,
body:not(.login-page) h3,
body:not(.login-page) label,
body:not(.login-page) td {
  color: #fff8e8;
}

body:not(.login-page) .eyebrow,
body:not(.login-page) .small-label {
  color: #f4d17b;
}

body:not(.login-page) .hero-copy .eyebrow,
body:not(.login-page) .page-hero > .eyebrow,
body:not(.login-page) .dashboard-head .eyebrow,
body:not(.login-page) .pricing-note .eyebrow,
body:not(.login-page) .feature-banner .eyebrow,
body:not(.login-page) .auth-form .eyebrow {
  color: #f4d17b;
  border-color: rgba(245, 208, 122, 0.26);
  background: rgba(245, 208, 122, 0.08);
}

body:not(.login-page) .hero-copy .eyebrow::before,
body:not(.login-page) .page-hero > .eyebrow::before,
body:not(.login-page) .dashboard-head .eyebrow::before,
body:not(.login-page) .pricing-note .eyebrow::before,
body:not(.login-page) .feature-banner .eyebrow::before,
body:not(.login-page) .auth-form .eyebrow::before,
body:not(.login-page) .section-grid article::before,
body:not(.login-page) .price-card::before {
  background: linear-gradient(90deg, #8d6425, #f5d07a, #fff2bc);
}

body:not(.login-page) .price {
  color: #fff2bc;
}

body:not(.login-page) .price-card {
  position: relative;
  overflow: hidden;
}

body:not(.login-page) .price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 80% 0%, rgba(245, 208, 122, 0.14), transparent 32%);
}

body:not(.login-page) .price-card > * {
  position: relative;
  z-index: 1;
}

body:not(.login-page) .badge,
body:not(.login-page) .price-badge,
body:not(.login-page) .status-chip {
  color: #100d07;
  border-color: rgba(255, 242, 188, 0.38);
  background: linear-gradient(135deg, #d9ad55, #fff2bc);
}

body:not(.login-page) .feature-banner {
  border-color: rgba(245, 208, 122, 0.2);
  background:
    linear-gradient(135deg, rgba(245, 208, 122, 0.12), rgba(70, 57, 30, 0.16)),
    rgba(10, 8, 5, 0.62);
}

body:not(.login-page) .feature-icon,
body:not(.login-page) .timeline-grid span {
  color: #100d07;
  background: linear-gradient(135deg, #8d6425, #f5d07a, #fff2bc);
}

body:not(.login-page) .metric-grid span {
  color: #fff2bc;
}

body:not(.login-page) .metric-grid p,
body:not(.login-page) .helptext,
body:not(.login-page) small,
body:not(.login-page) .list-row span,
body:not(.login-page) .guest-summary span,
body:not(.login-page) th {
  color: var(--muted);
}

body:not(.login-page) .list-row,
body:not(.login-page) .tab-nav a {
  border-color: rgba(245, 208, 122, 0.18);
  background: rgba(255, 244, 210, 0.055);
}

body:not(.login-page) #id_package label {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.2);
  background: rgba(255, 244, 210, 0.055);
}

body:not(.login-page) #id_package label:has(input:checked) {
  border-color: rgba(245, 208, 122, 0.7);
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 208, 122, 0.16), transparent 34%),
    rgba(245, 208, 122, 0.08);
}

body:not(.login-page) .limit-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 208, 122, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(38, 31, 18, 0.88), rgba(13, 11, 7, 0.92));
}

body:not(.login-page) .limit-card strong {
  color: #fff2bc;
}

body:not(.login-page) .feature-status.included {
  border-color: rgba(158, 230, 180, 0.28);
  background: rgba(18, 55, 34, 0.38);
}

body:not(.login-page) .feature-status.locked {
  border-color: rgba(255, 180, 168, 0.26);
  background: rgba(59, 28, 20, 0.36);
}

body:not(.login-page) .feature-status.included span {
  color: #082015;
  background: #9ee6b4;
}

body:not(.login-page) .feature-status.locked span {
  color: #2c0b07;
  background: #ffb4a8;
}

body:not(.login-page) input,
body:not(.login-page) select,
body:not(.login-page) textarea {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.28);
  background: rgba(7, 6, 4, 0.82);
}

body:not(.login-page) p:has(.tz-phone-input)::before {
  color: #0b0905;
  border-color: rgba(245, 208, 122, 0.38);
  background: linear-gradient(135deg, #8d6425, #f5d07a, #fff2bc);
}

body:not(.login-page) input::placeholder,
body:not(.login-page) textarea::placeholder {
  color: rgba(201, 185, 143, 0.68);
}

body:not(.login-page) input:hover,
body:not(.login-page) select:hover,
body:not(.login-page) textarea:hover,
body:not(.login-page) input:focus-visible,
body:not(.login-page) select:focus-visible,
body:not(.login-page) textarea:focus-visible {
  border-color: rgba(245, 208, 122, 0.58);
  box-shadow: 0 0 0 6px rgba(245, 208, 122, 0.08);
}

body:not(.login-page) th,
body:not(.login-page) td {
  border-bottom-color: rgba(245, 208, 122, 0.16);
}

body:not(.login-page) th {
  background: linear-gradient(90deg, rgba(245, 208, 122, 0.12), rgba(245, 208, 122, 0.035));
}

body:not(.login-page) tbody tr:hover td {
  background: rgba(245, 208, 122, 0.055);
}

body:not(.login-page) code {
  color: #fff2bc;
  background: rgba(245, 208, 122, 0.12);
}

body:not(.login-page) .message {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.3);
  background: rgba(34, 29, 18, 0.94);
}

body:not(.login-page) .form-error-summary,
body:not(.login-page) .form-invalid-notice {
  color: #ffb4a8;
  border-color: rgba(255, 180, 168, 0.32);
  background: rgba(59, 28, 20, 0.42);
}

body:not(.login-page) .form-error-summary strong,
body:not(.login-page) .form-error-summary p,
body:not(.login-page) .form-invalid-notice {
  color: #ffb4a8;
}

body:not(.login-page) .required-marker {
  color: #0b0905;
  border-color: rgba(255, 242, 188, 0.38);
  background: linear-gradient(135deg, #d9ad55, #fff2bc);
}

body:not(.login-page) .result-card.success {
  border-color: rgba(158, 230, 180, 0.45);
  background: rgba(14, 44, 29, 0.84);
}

body:not(.login-page) .result-card.warning {
  border-color: rgba(255, 180, 168, 0.45);
  background: rgba(56, 19, 17, 0.84);
}

body:not(.login-page) .scanner-box {
  border: 1px solid rgba(245, 208, 122, 0.24);
  background: #050403;
}

body:not(.login-page) .public-invite .panel.form-shell {
  background: var(--surface-strong);
}

body:not(.login-page) .auth-story {
  border-color: rgba(245, 208, 122, 0.24);
  background:
    radial-gradient(circle at top right, rgba(245, 208, 122, 0.16), transparent 38%),
    linear-gradient(145deg, rgba(38, 31, 18, 0.94), rgba(9, 8, 5, 0.96));
}

body:not(.login-page) .auth-points span,
body:not(.login-page) .hero-points span,
body:not(.login-page) .hero-note {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.22);
  background: rgba(245, 208, 122, 0.08);
}

body:not(.login-page) .showcase-frame {
  background:
    linear-gradient(145deg, #0d0a05 0%, #3c2d12 46%, #d9ad55 100%);
}

body:not(.login-page) .showcase-card {
  border-color: rgba(245, 208, 122, 0.28);
  background: linear-gradient(180deg, rgba(23, 18, 9, 0.9), rgba(5, 4, 3, 0.94));
}

body:not(.login-page) .home-summary {
  color: #fff8e8;
  background:
    radial-gradient(circle at 10% 0%, rgba(245, 208, 122, 0.14), transparent 26%),
    linear-gradient(180deg, #080705, #171109);
}

body:not(.login-page) .editorial-band {
  background: transparent;
}

body:not(.login-page) .summary-list,
body:not(.login-page) .summary-list article {
  border-color: rgba(245, 208, 122, 0.2);
}

body:not(.login-page) .summary-list p,
body:not(.login-page) .summary-list span,
body:not(.login-page) .home-summary .eyebrow {
  color: var(--muted);
}

body:not(.login-page) .video-nav .site-nav a.nav-cta {
  color: #0b0905;
  background: linear-gradient(135deg, #d9ad55, #fff2bc);
}

@media (max-width: 540px) {
  body:not(.login-page) .video-nav .site-nav {
    border-color: rgba(245, 208, 122, 0.24);
    background: rgba(8, 7, 5, 0.5);
  }

  body:not(.login-page) .video-nav .nav-cta {
    color: #0b0905;
    background: linear-gradient(135deg, #d9ad55, #fff2bc);
  }
}

html[data-theme="silver-sage"] {
  background: #e8eee9;
}

html[data-theme="silver-sage"] body:not(.login-page) {
  --bg: #edf1ed;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(250, 252, 250, 0.96);
  --surface-dark: #21392f;
  --surface-dark-2: #2f5042;
  --ink: #17211f;
  --muted: #40514b;
  --line: rgba(91, 119, 103, 0.22);
  --line-strong: rgba(105, 132, 117, 0.32);
  --blue: #557c67;
  --blue-deep: #2f5c47;
  --green: #6f9879;
  --green-deep: #345f49;
  --sky: #f3f6f3;
  --mint: #e0e9e2;
  --red: #9f1f1f;
  --success: #166534;
  --shadow: 0 28px 80px rgba(35, 52, 46, 0.14);
  --shadow-soft: 0 18px 44px rgba(35, 52, 46, 0.1);
  --background: #edf1ed;
  --foreground: #17211f;
  --card: rgba(255, 255, 255, 0.84);
  --card-foreground: #17211f;
  --primary: #345f49;
  --primary-foreground: #ffffff;
  --secondary: #dce7df;
  --accent: #6f9879;
  --border: rgba(91, 119, 103, 0.24);
  --muted-foreground: #40514b;
  --gradient-start: #f8faf7;
  --gradient-end: #dfe8e1;
  color: var(--foreground);
  background:
    radial-gradient(circle at 16% 8%, rgba(111, 152, 121, 0.22), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(52, 95, 73, 0.14), transparent 30%),
    linear-gradient(180deg, #f8faf7 0%, #edf1ed 48%, #dfe8e1 100%);
}

html[data-theme="silver-sage"] body:not(.login-page)::before {
  background:
    linear-gradient(135deg, rgba(111, 152, 121, 0.1), transparent 26%, rgba(255, 255, 255, 0.42) 48%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(52, 95, 73, 0.055) 0 1px, transparent 1px 124px);
  opacity: 0.62;
}

html[data-theme="silver-sage"] body:not(.login-page) a {
  color: #2f5c47;
}

html[data-theme="silver-sage"] body:not(.login-page) .page-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(52, 95, 73, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 152, 121, 0.07) 1px, transparent 1px);
}

html[data-theme="silver-sage"] body:not(.login-page) .site-header,
html[data-theme="silver-sage"] body:not(.login-page) .site-footer,
html[data-theme="silver-sage"] body:not(.login-page) .video-nav {
  border-color: rgba(91, 119, 103, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 244, 240, 0.84));
  box-shadow: 0 18px 48px rgba(35, 52, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="silver-sage"] body:not(.login-page) .brand,
html[data-theme="silver-sage"] body:not(.login-page) .site-nav a,
html[data-theme="silver-sage"] body:not(.login-page) .link-button,
html[data-theme="silver-sage"] body:not(.login-page) .site-footer,
html[data-theme="silver-sage"] body:not(.login-page) .site-footer a {
  color: #17211f;
}

html[data-theme="silver-sage"] body:not(.login-page) .brand-name,
html[data-theme="silver-sage"] body:not(.login-page) .feature-banner h2,
html[data-theme="silver-sage"] body:not(.login-page) .panel h2,
html[data-theme="silver-sage"] body:not(.login-page) .price-card h2,
html[data-theme="silver-sage"] body:not(.login-page) .section-grid h3,
html[data-theme="silver-sage"] body:not(.login-page) .timeline-grid h3 {
  color: #2f5c47;
}

html[data-theme="silver-sage"] body:not(.login-page) .site-nav {
  border-color: rgba(91, 119, 103, 0.2);
  background: rgba(255, 255, 255, 0.58);
}

html[data-theme="silver-sage"] body:not(.login-page) .site-nav a::after,
html[data-theme="silver-sage"] body:not(.login-page) .hero-copy .eyebrow::before,
html[data-theme="silver-sage"] body:not(.login-page) .page-hero > .eyebrow::before,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-head .eyebrow::before,
html[data-theme="silver-sage"] body:not(.login-page) .pricing-note .eyebrow::before,
html[data-theme="silver-sage"] body:not(.login-page) .feature-banner .eyebrow::before,
html[data-theme="silver-sage"] body:not(.login-page) .auth-form .eyebrow::before,
html[data-theme="silver-sage"] body:not(.login-page) .section-grid article::before,
html[data-theme="silver-sage"] body:not(.login-page) .price-card::before {
  background: linear-gradient(90deg, #345f49, #6f9879, #c5d5c9);
}

html[data-theme="silver-sage"] body:not(.login-page) .site-nav a:hover,
html[data-theme="silver-sage"] body:not(.login-page) .site-nav a:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) .link-button:hover,
html[data-theme="silver-sage"] body:not(.login-page) .link-button:focus-visible {
  background: rgba(111, 152, 121, 0.14);
}

html[data-theme="silver-sage"] body:not(.login-page) .button.primary,
html[data-theme="silver-sage"] body:not(.login-page) .nav-cta,
html[data-theme="silver-sage"] body:not(.login-page) .site-nav a.nav-account-settings,
html[data-theme="silver-sage"] body:not(.login-page) .video-nav .site-nav a.nav-cta {
  color: #ffffff;
  border-color: rgba(52, 95, 73, 0.48);
  background: linear-gradient(135deg, #2f5c47 0%, #5f8d6d 52%, #87aa8e 100%);
  box-shadow: 0 16px 34px rgba(52, 95, 73, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html[data-theme="silver-sage"] body:not(.login-page) .site-nav a.nav-logout {
  color: #8a1f17;
  border-color: rgba(154, 48, 39, 0.24);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="silver-sage"] body:not(.login-page) .site-nav a.nav-logout:hover,
html[data-theme="silver-sage"] body:not(.login-page) .site-nav a.nav-logout:focus-visible {
  color: #ffffff;
  background: #9f1f1f;
}

html[data-theme="silver-sage"] body:not(.login-page) .button.secondary,
html[data-theme="silver-sage"] body:not(.login-page) .button.secondary.light {
  color: #22312d;
  border-color: rgba(91, 119, 103, 0.26);
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="silver-sage"] body:not(.login-page) .button:hover,
html[data-theme="silver-sage"] body:not(.login-page) .nav-cta:hover,
html[data-theme="silver-sage"] body:not(.login-page) .tab-nav a:hover,
html[data-theme="silver-sage"] body:not(.login-page) .list-row:hover {
  box-shadow: 0 18px 42px rgba(35, 52, 46, 0.14), 0 0 30px rgba(111, 152, 121, 0.16);
}

html[data-theme="silver-sage"] body:not(.login-page) .button:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) .nav-cta:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) .tab-nav a:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) a:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) input:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) select:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) textarea:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) button:focus-visible {
  outline-color: rgba(52, 95, 73, 0.42);
}

html[data-theme="silver-sage"] body:not(.login-page) .hero,
html[data-theme="silver-sage"] body:not(.login-page) .band,
html[data-theme="silver-sage"] body:not(.login-page) .workflow,
html[data-theme="silver-sage"] body:not(.login-page) .page-hero,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-head,
html[data-theme="silver-sage"] body:not(.login-page) .section-grid article,
html[data-theme="silver-sage"] body:not(.login-page) .panel,
html[data-theme="silver-sage"] body:not(.login-page) .price-card,
html[data-theme="silver-sage"] body:not(.login-page) .limit-card,
html[data-theme="silver-sage"] body:not(.login-page) .feature-status,
html[data-theme="silver-sage"] body:not(.login-page) .table-panel,
html[data-theme="silver-sage"] body:not(.login-page) .filter-bar,
html[data-theme="silver-sage"] body:not(.login-page) .result-card,
html[data-theme="silver-sage"] body:not(.login-page) .metric-grid article,
html[data-theme="silver-sage"] body:not(.login-page) .timeline-grid article {
  border-color: rgba(91, 119, 103, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 246, 243, 0.92));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="silver-sage"] body:not(.login-page) .hero,
html[data-theme="silver-sage"] body:not(.login-page) .page-hero,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-head {
  background:
    radial-gradient(circle at 86% 10%, rgba(111, 152, 121, 0.24), transparent 30%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(235, 242, 237, 0.94) 62%, rgba(217, 228, 220, 0.96));
}

html[data-theme="silver-sage"] body:not(.login-page) .band,
html[data-theme="silver-sage"] body:not(.login-page) .workflow {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(237, 243, 239, 0.94)),
    linear-gradient(90deg, rgba(111, 152, 121, 0.12), transparent);
}

html[data-theme="silver-sage"] body:not(.login-page) .page-hero::before,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-head::before,
html[data-theme="silver-sage"] body:not(.login-page) .band::before,
html[data-theme="silver-sage"] body:not(.login-page) .workflow::before {
  background:
    linear-gradient(90deg, rgba(111, 152, 121, 0.18), transparent 38%),
    repeating-linear-gradient(135deg, rgba(52, 95, 73, 0.045) 0 1px, transparent 1px 22px);
}

html[data-theme="silver-sage"] body:not(.login-page) .hero-copy h1,
html[data-theme="silver-sage"] body:not(.login-page) .page-hero h1,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-head h1,
html[data-theme="silver-sage"] body:not(.login-page) .auth-story h1,
html[data-theme="silver-sage"] body:not(.login-page) .summary-heading h2,
html[data-theme="silver-sage"] body:not(.login-page) .section-intro h2,
html[data-theme="silver-sage"] body:not(.login-page) strong,
html[data-theme="silver-sage"] body:not(.login-page) h1,
html[data-theme="silver-sage"] body:not(.login-page) h2,
html[data-theme="silver-sage"] body:not(.login-page) h3,
html[data-theme="silver-sage"] body:not(.login-page) label,
html[data-theme="silver-sage"] body:not(.login-page) td {
  color: #17211f;
}

html[data-theme="silver-sage"] body:not(.login-page) .hero-copy p,
html[data-theme="silver-sage"] body:not(.login-page) .page-hero p,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-subtitle,
html[data-theme="silver-sage"] body:not(.login-page) .section-intro p,
html[data-theme="silver-sage"] body:not(.login-page) .feature-banner p:last-child,
html[data-theme="silver-sage"] body:not(.login-page) .auth-story p,
html[data-theme="silver-sage"] body:not(.login-page) .invite-intro,
html[data-theme="silver-sage"] body:not(.login-page) p,
html[data-theme="silver-sage"] body:not(.login-page) .metric-grid p,
html[data-theme="silver-sage"] body:not(.login-page) .helptext,
html[data-theme="silver-sage"] body:not(.login-page) small,
html[data-theme="silver-sage"] body:not(.login-page) .list-row span,
html[data-theme="silver-sage"] body:not(.login-page) .guest-summary span,
html[data-theme="silver-sage"] body:not(.login-page) th {
  color: var(--muted);
}

html[data-theme="silver-sage"] body:not(.login-page) .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .small-label,
html[data-theme="silver-sage"] body:not(.login-page) .hero-copy .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .page-hero > .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .dashboard-head .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .pricing-note .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .feature-banner .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .auth-form .eyebrow {
  color: #2f5c47;
  border-color: rgba(52, 95, 73, 0.24);
  background: rgba(111, 152, 121, 0.12);
}

html[data-theme="silver-sage"] body:not(.login-page) .price,
html[data-theme="silver-sage"] body:not(.login-page) .metric-grid span,
html[data-theme="silver-sage"] body:not(.login-page) .limit-card strong {
  color: #2f5c47;
}

html[data-theme="silver-sage"] body:not(.login-page) .badge,
html[data-theme="silver-sage"] body:not(.login-page) .price-badge,
html[data-theme="silver-sage"] body:not(.login-page) .status-chip,
html[data-theme="silver-sage"] body:not(.login-page) .feature-icon,
html[data-theme="silver-sage"] body:not(.login-page) .timeline-grid span,
html[data-theme="silver-sage"] body:not(.login-page) .required-marker,
html[data-theme="silver-sage"] body:not(.login-page) p:has(.tz-phone-input)::before {
  color: #ffffff;
  border-color: rgba(52, 95, 73, 0.34);
  background: linear-gradient(135deg, #345f49, #6f9879);
}

html[data-theme="silver-sage"] body:not(.login-page) .feature-banner,
html[data-theme="silver-sage"] body:not(.login-page) .list-row,
html[data-theme="silver-sage"] body:not(.login-page) .tab-nav a,
html[data-theme="silver-sage"] body:not(.login-page) #id_package label {
  border-color: rgba(91, 119, 103, 0.2);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme="silver-sage"] body:not(.login-page) #id_package label:has(input:checked),
html[data-theme="silver-sage"] body:not(.login-page) .limit-card {
  border-color: rgba(52, 95, 73, 0.44);
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 152, 121, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.74);
}

html[data-theme="silver-sage"] body:not(.login-page) .feature-status.included {
  border-color: rgba(22, 101, 52, 0.22);
  background: rgba(220, 244, 225, 0.72);
}

html[data-theme="silver-sage"] body:not(.login-page) .feature-status.locked {
  border-color: rgba(154, 48, 39, 0.18);
  background: rgba(255, 236, 233, 0.72);
}

html[data-theme="silver-sage"] body:not(.login-page) .feature-status.included span {
  color: #ffffff;
  background: #2f7a45;
}

html[data-theme="silver-sage"] body:not(.login-page) .feature-status.locked span {
  color: #ffffff;
  background: #9f1f1f;
}

html[data-theme="silver-sage"] body:not(.login-page) input,
html[data-theme="silver-sage"] body:not(.login-page) select,
html[data-theme="silver-sage"] body:not(.login-page) textarea {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.28);
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="silver-sage"] body:not(.login-page) input::placeholder,
html[data-theme="silver-sage"] body:not(.login-page) textarea::placeholder {
  color: rgba(64, 81, 75, 0.78);
}

html[data-theme="silver-sage"] body:not(.login-page) input:hover,
html[data-theme="silver-sage"] body:not(.login-page) select:hover,
html[data-theme="silver-sage"] body:not(.login-page) textarea:hover,
html[data-theme="silver-sage"] body:not(.login-page) input:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) select:focus-visible,
html[data-theme="silver-sage"] body:not(.login-page) textarea:focus-visible {
  border-color: rgba(52, 95, 73, 0.52);
  box-shadow: 0 0 0 6px rgba(111, 152, 121, 0.12);
}

html[data-theme="silver-sage"] body:not(.login-page) th,
html[data-theme="silver-sage"] body:not(.login-page) td {
  border-bottom-color: rgba(91, 119, 103, 0.18);
}

html[data-theme="silver-sage"] body:not(.login-page) th {
  background: linear-gradient(90deg, rgba(111, 152, 121, 0.14), rgba(255, 255, 255, 0.36));
}

html[data-theme="silver-sage"] body:not(.login-page) tbody tr:hover td,
html[data-theme="silver-sage"] body:not(.login-page) code {
  background: rgba(111, 152, 121, 0.1);
}

html[data-theme="silver-sage"] body:not(.login-page) code {
  color: #2f5c47;
}

html[data-theme="silver-sage"] body:not(.login-page) .message {
  color: #1f5139;
  border-color: rgba(52, 95, 73, 0.24);
  background: rgba(245, 249, 246, 0.94);
}

html[data-theme="silver-sage"] body:not(.login-page) .form-error-summary,
html[data-theme="silver-sage"] body:not(.login-page) .form-invalid-notice {
  color: #9f1f1f;
  border-color: rgba(154, 48, 39, 0.24);
  background: rgba(255, 249, 248, 0.96);
}

html[data-theme="silver-sage"] body:not(.login-page) .result-card.success {
  border-color: rgba(22, 101, 52, 0.28);
  background: rgba(232, 246, 235, 0.9);
}

html[data-theme="silver-sage"] body:not(.login-page) .result-card.warning {
  border-color: rgba(154, 48, 39, 0.28);
  background: rgba(255, 240, 237, 0.92);
}

html[data-theme="silver-sage"] body:not(.login-page) .scanner-box {
  border-color: rgba(91, 119, 103, 0.28);
  background: #f6f8f5;
}

html[data-theme="silver-sage"] body:not(.login-page) .auth-story {
  border-color: rgba(91, 119, 103, 0.24);
  background:
    radial-gradient(circle at top right, rgba(111, 152, 121, 0.2), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(228, 237, 230, 0.94));
}

html[data-theme="silver-sage"] body:not(.login-page) .auth-points span,
html[data-theme="silver-sage"] body:not(.login-page) .hero-points span,
html[data-theme="silver-sage"] body:not(.login-page) .hero-note {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.24);
  background: rgba(255, 255, 255, 0.64);
}

html[data-theme="silver-sage"] body:not(.login-page) .showcase-frame {
  background: linear-gradient(145deg, #dfe7e1 0%, #9fb8a7 46%, #345f49 100%);
}

html[data-theme="silver-sage"] body:not(.login-page) .showcase-card {
  border-color: rgba(91, 119, 103, 0.24);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(226, 236, 229, 0.94));
}

html[data-theme="silver-sage"] body:not(.login-page) .video-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 18%, rgba(111, 152, 121, 0.26), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(52, 95, 73, 0.22), transparent 26%),
    linear-gradient(140deg, #21392f 0%, #365c49 48%, #17211f 100%);
}

html[data-theme="silver-sage"] body:not(.login-page) .video-hero-overlay {
  background:
    linear-gradient(180deg, rgba(18, 33, 31, 0.64) 0%, rgba(18, 33, 31, 0.3) 42%, rgba(18, 33, 31, 0.72) 100%),
    linear-gradient(90deg, rgba(18, 33, 31, 0.5), rgba(18, 33, 31, 0.08) 50%, rgba(18, 33, 31, 0.48));
}

html[data-theme="silver-sage"] body:not(.login-page) .video-hero .eyebrow,
html[data-theme="silver-sage"] body:not(.login-page) .video-hero h1,
html[data-theme="silver-sage"] body:not(.login-page) .video-hero-content > p:not(.eyebrow) {
  color: #ffffff;
}

html[data-theme="silver-sage"] body:not(.login-page) .video-hero .button.secondary.light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(33, 57, 47, 0.52);
}

html[data-theme="silver-sage"] body:not(.login-page) .home-summary {
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(148, 184, 156, 0.2), transparent 28%),
    linear-gradient(180deg, #1f372d, #2d4c3e);
}

html[data-theme="silver-sage"] body:not(.login-page) .home-summary h2,
html[data-theme="silver-sage"] body:not(.login-page) .home-summary h3,
html[data-theme="silver-sage"] body:not(.login-page) .home-summary strong {
  color: #ffffff;
}

html[data-theme="silver-sage"] body:not(.login-page) .summary-list,
html[data-theme="silver-sage"] body:not(.login-page) .summary-list article {
  border-color: rgba(255, 255, 255, 0.2);
}

html[data-theme="silver-sage"] body:not(.login-page) .summary-list p,
html[data-theme="silver-sage"] body:not(.login-page) .summary-list span,
html[data-theme="silver-sage"] body:not(.login-page) .home-summary .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

html[data-theme="silver-sage"] body:not(.login-page) .theme-select,
html[data-theme="silver-sage"] body:not(.login-page) .language-select {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.3);
  background: rgba(255, 255, 255, 0.86);
}

@media (max-width: 540px) {
  html[data-theme="silver-sage"],
  html[data-theme="silver-sage"] body,
  html[data-theme="silver-sage"] main:not(.top-menu-bar),
  html[data-theme="silver-sage"] .page-main,
  html[data-theme="silver-sage"] .home-page,
  html[data-theme="silver-sage"] .home-page main:not(.top-menu-bar),
  html[data-theme="silver-sage"] .home-page .page-main {
    background: #edf1ed;
  }

  html[data-theme="silver-sage"] body::after {
    background: #edf1ed;
  }

  html[data-theme="silver-sage"] .theme-switcher,
  html[data-theme="silver-sage"] .language-switcher {
    width: 100%;
  }

  html[data-theme="silver-sage"] .theme-select,
  html[data-theme="silver-sage"] .language-select {
    width: 100%;
    max-width: none;
  }

  html[data-theme="silver-sage"] body:not(.login-page) .video-nav .site-nav {
    border-color: rgba(91, 119, 103, 0.24);
    background: rgba(255, 255, 255, 0.72);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .video-nav .nav-cta {
    color: #ffffff;
    background: linear-gradient(135deg, #2f5c47, #87aa8e);
  }
}

/* Refined global navigation */
.site-navbar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 14px;
  border-radius: 18px;
  overflow: visible;
}

.site-navbar.video-nav {
  margin: 0;
}

.site-navbar .brand {
  min-width: 0;
}

.site-navbar .brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.desktop-nav {
  justify-self: center;
  flex-wrap: nowrap;
  gap: 3px;
  padding: 4px;
  border-radius: 16px;
}

.desktop-nav .nav-link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  white-space: nowrap;
}

.desktop-nav .nav-link::after {
  left: 12px;
  right: 12px;
  bottom: 6px;
}

.navbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-menu {
  position: relative;
}

.account-trigger,
.mobile-menu-trigger {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: color-mix(in srgb, var(--card) 84%, transparent);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 10px 5px 6px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 900;
}

.account-avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 0.82rem;
  font-weight: 900;
}

.menu-chevron {
  font-size: 0.75rem;
  opacity: 0.72;
}

.account-dropdown,
.mobile-nav-panel {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: color-mix(in srgb, var(--card) 94%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.16);
  backdrop-filter: blur(22px) saturate(1.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: calc(var(--nav-z) + 2);
  width: min(310px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 20px;
}

.dropdown-link,
.mobile-nav-links a,
.mobile-logout {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--foreground);
  font-family: var(--font-body);
  font-weight: 800;
}

.dropdown-link:hover,
.dropdown-link:focus-visible,
.mobile-nav-links a:hover,
.mobile-nav-links a:focus-visible,
.mobile-logout:hover,
.mobile-logout:focus-visible,
.account-trigger:hover,
.account-trigger:focus-visible,
.mobile-menu-trigger:hover,
.mobile-menu-trigger:focus-visible {
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

.dropdown-link-strong {
  color: var(--primary-foreground);
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.dropdown-link-danger,
.mobile-logout {
  color: var(--red);
}

.dropdown-divider {
  height: 1px;
  margin: 10px 0;
  background: var(--border);
}

.dropdown-label {
  margin: 0 0 8px;
  padding: 0 4px;
  color: var(--muted-foreground);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-preference {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: var(--foreground);
  font-size: 0.82rem;
  font-weight: 900;
}

.nav-preference .theme-select,
.nav-preference .language-select {
  width: 100%;
  max-width: none;
  min-height: 42px;
  border-radius: 12px;
  box-shadow: none;
}

.mobile-menu-trigger {
  display: none;
  justify-self: end;
  width: 44px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border-radius: 14px;
}

.mobile-menu-trigger span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: calc(var(--nav-z) + 1);
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 20px;
}

.mobile-nav-links,
.mobile-preferences {
  display: grid;
  gap: 8px;
}

.mobile-nav-links a {
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  background: color-mix(in srgb, var(--surface-strong) 58%, transparent);
}

.mobile-logout {
  border: 1px solid color-mix(in srgb, var(--red) 28%, transparent);
  background: color-mix(in srgb, var(--red) 9%, transparent);
}

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

body:not(.login-page) .account-trigger,
body:not(.login-page) .mobile-menu-trigger {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.28);
  background: rgba(255, 244, 210, 0.07);
}

body:not(.login-page) .account-avatar,
body:not(.login-page) .dropdown-link-strong {
  color: #0b0905;
  background: linear-gradient(135deg, #8d6425, #f5d07a, #fff2bc);
}

body:not(.login-page) .account-dropdown,
body:not(.login-page) .mobile-nav-panel {
  border-color: rgba(245, 208, 122, 0.32);
  background:
    linear-gradient(180deg, rgba(25, 20, 11, 0.96), rgba(8, 7, 5, 0.94));
}

body:not(.login-page) .dropdown-link,
body:not(.login-page) .mobile-nav-links a,
body:not(.login-page) .mobile-logout,
body:not(.login-page) .nav-preference {
  color: #fff8e8;
}

body:not(.login-page) .dropdown-label {
  color: #c9b98f;
}

html[data-theme="silver-sage"] body:not(.login-page) .account-trigger,
html[data-theme="silver-sage"] body:not(.login-page) .mobile-menu-trigger {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.28);
  background: rgba(255, 255, 255, 0.74);
}

html[data-theme="silver-sage"] body:not(.login-page) .account-avatar,
html[data-theme="silver-sage"] body:not(.login-page) .dropdown-link-strong {
  color: #ffffff;
  background: linear-gradient(135deg, #2f5c47, #87aa8e);
}

html[data-theme="silver-sage"] body:not(.login-page) .account-dropdown,
html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-panel {
  border-color: rgba(91, 119, 103, 0.3);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 242, 237, 0.92));
}

html[data-theme="silver-sage"] body:not(.login-page) .dropdown-link,
html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-links a,
html[data-theme="silver-sage"] body:not(.login-page) .nav-preference {
  color: #17211f;
}

html[data-theme="silver-sage"] body:not(.login-page) .dropdown-label {
  color: #40514b;
}

@media (min-width: 921px) {
  .mobile-nav-panel {
    display: none !important;
  }
}

@media (max-width: 920px) {
  .site-navbar,
  .site-navbar.video-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, calc(100% - 18px));
    min-height: 60px;
    padding: 9px 10px;
    border-radius: 18px;
  }

  .desktop-nav,
  .navbar-actions,
  .site-navbar.video-nav .desktop-nav,
  .site-navbar.video-nav .navbar-actions {
    display: none;
  }

  .mobile-menu-trigger {
    display: inline-flex;
  }

  .site-navbar .brand {
    width: auto;
  }

  .site-navbar .brand-logo {
    height: 38px;
  }

  .site-navbar .brand-name {
    max-width: min(58vw, 260px);
    white-space: nowrap;
  }
}

@media (max-width: 540px) {
  .site-navbar,
  .site-navbar.video-nav {
    width: calc(100% - 16px);
    padding: 8px;
  }

  .site-navbar .brand-logo {
    height: 34px;
  }

  .site-navbar .brand-name {
    max-width: min(58vw, 210px);
    font-size: 0.86rem;
  }

  .mobile-nav-panel {
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

/* Final navbar information architecture cleanup */
.site-navbar {
  grid-template-columns: auto minmax(280px, 1fr) auto;
  gap: clamp(12px, 2vw, 24px);
  min-height: 62px;
  padding: 8px 12px;
  border-radius: 16px;
}

.site-navbar .brand {
  gap: 9px;
}

.site-navbar .brand-logo {
  height: 38px;
}

.site-navbar .brand-name {
  font-size: 0.94rem;
}

.desktop-nav {
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  justify-self: center;
}

.desktop-nav .nav-link {
  min-height: 36px;
  padding: 0 11px;
  border-radius: 9px;
  font-size: 0.84rem;
}

.navbar-actions {
  min-width: 0;
}

.account-trigger {
  min-height: 39px;
  padding: 4px 9px 4px 5px;
  border-radius: 12px;
  font-size: 0.84rem;
}

.account-avatar {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.menu-chevron {
  position: relative;
  width: 10px;
  height: 10px;
  font-size: 0;
}

.menu-chevron::before {
  content: "";
  position: absolute;
  inset: 1px 2px 3px 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.72;
}

.account-trigger[aria-expanded="true"] .menu-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.account-dropdown {
  border-radius: 16px;
}

.dropdown-link,
.mobile-nav-links a,
.mobile-logout {
  min-height: 46px;
  border-radius: 10px;
}

.nav-preference .theme-select,
.nav-preference .language-select {
  min-height: 44px;
  border-radius: 10px;
}

@media (max-width: 920px) {
  .site-navbar,
  .site-navbar.video-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    width: min(100% - 20px, 520px);
    min-height: 56px;
    margin: calc(env(safe-area-inset-top, 0px) + 8px) auto 0;
    padding: 7px 8px;
    border-radius: 15px;
    border: 1px solid var(--border);
    overflow: visible;
  }

  .site-navbar.video-nav {
    position: relative;
    width: min(100% - 20px, 520px);
    margin: calc(env(safe-area-inset-top, 0px) + 8px) auto 0;
    padding: 7px 8px;
    border-radius: 15px;
  }

  .site-navbar .desktop-nav,
  .site-navbar .navbar-actions,
  .site-navbar.video-nav .desktop-nav,
  .site-navbar.video-nav .navbar-actions {
    display: none !important;
  }

  .site-navbar .brand,
  .site-navbar.video-nav .brand {
    width: auto;
    min-width: 0;
    gap: 8px;
  }

  .site-navbar .brand-logo,
  .site-navbar.video-nav .brand-logo {
    height: 32px;
  }

  .site-navbar .brand-name,
  .site-navbar.video-nav .brand-name {
    max-width: calc(100vw - 118px);
    font-size: 0.86rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-menu-trigger {
    display: inline-flex;
    width: 42px;
    height: 40px;
    border-radius: 11px;
    box-shadow: none;
  }

  .mobile-nav-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 72px);
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100dvh - 88px);
    padding: 10px;
    border-radius: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav-links,
  .mobile-preferences {
    gap: 7px;
  }

  .mobile-nav-links a,
  .mobile-logout {
    min-height: 48px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 0.94rem;
  }

  .nav-preference {
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .site-navbar,
  .site-navbar.video-nav {
    width: calc(100% - 16px);
    min-height: 54px;
  }

  .site-navbar .brand-logo,
  .site-navbar.video-nav .brand-logo {
    height: 30px;
  }

  .site-navbar .brand-name,
  .site-navbar.video-nav .brand-name {
    max-width: calc(100vw - 112px);
    font-size: 0.82rem;
  }

  .mobile-menu-trigger {
    width: 40px;
    height: 38px;
  }

  .mobile-nav-panel {
    left: 8px;
    right: 8px;
    top: calc(env(safe-area-inset-top, 0px) + 68px);
    max-height: calc(100dvh - 82px);
  }
}

/* Mobile navbar drawer repair */
.mobile-nav-backdrop {
  display: none;
}

.mobile-nav-backdrop[hidden],
.mobile-nav-panel[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .site-navbar,
  .site-navbar.video-nav {
    background:
      linear-gradient(180deg, rgba(22, 17, 9, 0.98), rgba(8, 7, 4, 0.96));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 244, 210, 0.08);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: calc(var(--nav-z) - 1);
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    cursor: default;
  }

  .mobile-nav-panel {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 70px);
    left: 8px;
    right: 8px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    z-index: calc(var(--nav-z) + 2);
    width: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    border-color: rgba(245, 208, 122, 0.26);
    background:
      linear-gradient(180deg, rgba(15, 12, 7, 0.99), rgba(7, 6, 4, 0.99));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 244, 210, 0.08);
    scrollbar-width: none;
  }

  .mobile-nav-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-nav-links a,
  .mobile-logout {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(245, 208, 122, 0.16);
    color: #fff8e8;
    background: rgba(255, 244, 210, 0.055);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.15;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a:focus-visible,
  .mobile-logout:hover,
  .mobile-logout:focus-visible {
    background: rgba(245, 208, 122, 0.12);
  }

  .mobile-preferences {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(245, 208, 122, 0.16);
  }

  .mobile-preferences .nav-preference {
    margin: 0;
    gap: 6px;
  }

  .mobile-preferences .nav-preference span {
    color: #f4d17b;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .mobile-preferences .theme-select,
  .mobile-preferences .language-select {
    min-height: 42px;
    padding-left: 10px;
    padding-right: 28px;
    border-radius: 11px;
    border-color: rgba(245, 208, 122, 0.22);
    color: #fff8e8;
    background: rgba(5, 4, 3, 0.96);
    font-size: 0.82rem;
  }

  .mobile-logout {
    justify-content: center;
    width: 100%;
    margin-top: 0;
    border-color: rgba(255, 180, 168, 0.28);
    color: #ffd7d2;
    background: rgba(180, 35, 24, 0.14);
  }

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

  .mobile-menu-trigger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

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

  .mobile-menu-trigger span {
    transition: transform 180ms ease, opacity 180ms ease;
  }

  html[data-theme="silver-sage"] body:not(.login-page) .site-navbar,
  html[data-theme="silver-sage"] body:not(.login-page) .site-navbar.video-nav {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(235, 242, 237, 0.95));
    box-shadow: 0 16px 44px rgba(35, 52, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-backdrop {
    background: rgba(23, 33, 31, 0.28);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-panel {
    border-color: rgba(91, 119, 103, 0.26);
    background:
      linear-gradient(180deg, rgba(252, 254, 252, 0.99), rgba(232, 239, 234, 0.99));
    box-shadow: 0 28px 70px rgba(35, 52, 46, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-links a,
  html[data-theme="silver-sage"] body:not(.login-page) .mobile-logout {
    color: #17211f;
    border-color: rgba(91, 119, 103, 0.18);
    background: rgba(255, 255, 255, 0.68);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-preferences {
    border-top-color: rgba(91, 119, 103, 0.18);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-preferences .nav-preference span {
    color: #2f5c47;
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-preferences .theme-select,
  html[data-theme="silver-sage"] body:not(.login-page) .mobile-preferences .language-select {
    color: #17211f;
    border-color: rgba(91, 119, 103, 0.24);
    background: rgba(255, 255, 255, 0.94);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-logout {
    color: #8a1f17;
    border-color: rgba(154, 48, 39, 0.2);
    background: rgba(255, 236, 233, 0.72);
  }
}

@media (max-width: 430px) {
  .mobile-nav-panel {
    top: calc(env(safe-area-inset-top, 0px) + 66px);
    left: 7px;
    right: 7px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
    padding: 10px;
    border-radius: 16px;
  }

  .mobile-nav-links {
    gap: 7px;
  }

  .mobile-nav-links a,
  .mobile-logout {
    min-height: 42px;
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .mobile-preferences {
    gap: 8px;
  }

  .mobile-preferences .theme-select,
  .mobile-preferences .language-select {
    min-height: 40px;
    font-size: 0.78rem;
  }
}

/* Legacy navbar fallback kept in normal document flow. */
.site-navbar,
.site-navbar.video-nav {
  position: relative;
  z-index: var(--nav-z);
  width: min(1180px, calc(100% - 32px));
  margin: calc(env(safe-area-inset-top, 0px) + 8px) auto 0;
}

body:not(.home-page) .page-main {
  padding-top: 0;
}

body:not(.home-page) .messages {
  margin-top: 16px;
}

.home-page .video-hero {
  margin-top: 0;
}

@media (max-width: 920px) {
  .site-navbar,
  .site-navbar.video-nav {
    width: min(520px, calc(100% - 16px));
    margin: calc(env(safe-area-inset-top, 0px) + 8px) auto 0;
  }

  body:not(.home-page) .page-main {
    padding-top: 0;
  }

  body:not(.home-page) .messages {
    margin-top: 12px;
  }
}

@media (max-width: 430px) {
  .site-navbar,
  .site-navbar.video-nav {
    width: calc(100% - 16px);
  }
}

/* Legacy header fallback. Do not pin it to the viewport. */
.site-header.site-navbar,
.site-header.site-navbar.video-nav {
  position: relative !important;
  z-index: var(--nav-z) !important;
  margin: 0 auto !important;
}

@media (min-width: 921px) {
  .site-header.site-navbar,
  .site-header.site-navbar.video-nav {
    width: min(1240px, calc(100% - 32px)) !important;
  }
}

@media (max-width: 920px) {
  .site-header.site-navbar,
  .site-header.site-navbar.video-nav {
    width: min(520px, calc(100% - 16px)) !important;
  }
}

/* Phone navigation as an off-canvas sidebar. */
@media (max-width: 920px) {
  .mobile-nav-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: calc(var(--nav-z) + 1) !important;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
  }

  .mobile-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: calc(var(--nav-z) + 2) !important;
    width: 50vw !important;
    min-width: 0 !important;
    max-width: 50vw !important;
    max-height: none !important;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: calc(env(safe-area-inset-top, 0px) + 22px) 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border-width: 0 0 0 1px;
    border-style: solid;
    border-color: rgba(245, 208, 122, 0.28);
    border-radius: 24px 0 0 24px;
    background:
      radial-gradient(circle at 80% 0%, rgba(245, 208, 122, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(15, 12, 7, 0.995), rgba(7, 6, 4, 0.995));
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.58), inset 1px 0 0 rgba(255, 244, 210, 0.08);
    scrollbar-width: none;
    animation: nav-sidebar-in 220ms ease-out both;
  }

  .mobile-nav-panel::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .mobile-nav-links,
  .mobile-preferences {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .mobile-nav-links a,
  .mobile-logout {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 13px;
    font-size: 0.92rem;
    justify-content: flex-start;
  }

  .mobile-preferences {
    padding-top: 12px;
    border-top: 1px solid rgba(245, 208, 122, 0.16);
  }

  .mobile-preferences .theme-select,
  .mobile-preferences .language-select {
    min-height: 44px;
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-backdrop {
    background: rgba(23, 33, 31, 0.3);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .mobile-nav-panel {
    border-color: rgba(91, 119, 103, 0.28);
    background:
      radial-gradient(circle at 80% 0%, rgba(111, 152, 121, 0.18), transparent 34%),
      linear-gradient(180deg, rgba(252, 254, 252, 0.995), rgba(232, 239, 234, 0.995));
    box-shadow: -28px 0 70px rgba(35, 52, 46, 0.24), inset 1px 0 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes nav-sidebar-in {
  from {
    transform: translateX(104%);
  }

  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel {
    animation: none !important;
  }
}

/* Clean flow top menu. This replaces the old fixed site-header/site-navbar stack. */
.top-menu-bar,
.top-menu-bar * {
  box-sizing: border-box;
}

.top-menu-bar {
  position: relative !important;
  z-index: 1000 !important;
  width: min(1180px, calc(100% - 32px));
  min-height: 62px;
  margin: calc(env(safe-area-inset-top, 0px) + 8px) auto 0 !important;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  border: 1px solid rgba(245, 208, 122, 0.34);
  border-radius: 18px;
  color: #fff8e8;
  background: linear-gradient(180deg, rgba(25, 20, 11, 0.96), rgba(8, 7, 5, 0.94));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 244, 210, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  backdrop-filter: blur(18px) saturate(1.12);
  overflow: visible;
}

.top-menu-bar .brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4d17b;
}

.top-menu-bar .brand-logo {
  width: auto;
  height: 38px;
  flex: 0 0 auto;
}

.top-menu-bar .brand-name {
  max-width: 260px;
  overflow: hidden;
  color: #f4d17b;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-menu-bar .desktop-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(245, 208, 122, 0.18);
  border-radius: 14px;
  background: rgba(255, 244, 210, 0.06);
}

.top-menu-bar .desktop-nav a {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: #fff8e8;
  font-size: 0.86rem;
  font-weight: 900;
  white-space: nowrap;
}

.top-menu-bar .desktop-nav a:hover,
.top-menu-bar .desktop-nav a:focus-visible {
  background: rgba(245, 208, 122, 0.12);
}

.top-menu-bar .navbar-actions {
  justify-self: end;
  display: flex;
  align-items: center;
}

.top-menu-bar .account-menu {
  position: relative;
}

.top-menu-bar .account-trigger,
.top-menu-bar .mobile-menu-trigger {
  border: 1px solid rgba(245, 208, 122, 0.3);
  color: #fff8e8;
  background: rgba(255, 244, 210, 0.07);
  box-shadow: none;
}

.top-menu-bar .account-trigger {
  min-height: 40px;
  padding: 5px 10px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 13px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
}

.top-menu-bar .account-avatar {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: #0b0905;
  background: linear-gradient(135deg, #8d6425, #f5d07a, #fff2bc);
}

.top-menu-bar .menu-chevron {
  position: relative;
  width: 10px;
  height: 10px;
  font-size: 0;
}

.top-menu-bar .menu-chevron::before {
  content: "";
  position: absolute;
  inset: 1px 2px 3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg);
}

.top-menu-bar .account-trigger[aria-expanded="true"] .menu-chevron::before {
  transform: translateY(2px) rotate(225deg);
}

.top-menu-bar .account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1002;
  width: min(310px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(245, 208, 122, 0.3);
  border-radius: 18px;
  color: #fff8e8;
  background: linear-gradient(180deg, rgba(25, 20, 11, 0.98), rgba(8, 7, 5, 0.96));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 244, 210, 0.08);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.top-menu-bar .dropdown-link,
.top-menu-bar .mobile-nav-links a,
.top-menu-bar .mobile-logout {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  color: #fff8e8;
  font-weight: 900;
}

.top-menu-bar .dropdown-link:hover,
.top-menu-bar .dropdown-link:focus-visible {
  background: rgba(245, 208, 122, 0.12);
}

.top-menu-bar .dropdown-link-strong {
  color: #0b0905;
  background: linear-gradient(135deg, #8d6425, #f5d07a, #fff2bc);
}

.top-menu-bar .dropdown-link-danger {
  color: #ffd7d2;
}

.top-menu-bar .dropdown-divider {
  height: 1px;
  margin: 10px 0;
  background: rgba(245, 208, 122, 0.2);
}

.top-menu-bar .dropdown-label {
  margin: 0 0 8px;
  color: #c9b98f;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-menu-bar .nav-preference {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  color: #fff8e8;
  font-size: 0.82rem;
  font-weight: 900;
}

.top-menu-bar .theme-select,
.top-menu-bar .language-select {
  width: 100%;
  max-width: none;
  min-height: 42px;
  border-radius: 11px;
  border-color: rgba(245, 208, 122, 0.24);
  color: #fff8e8;
  background: rgba(5, 4, 3, 0.96);
  box-shadow: none;
}

.top-menu-bar .mobile-menu-trigger,
.top-menu-bar .mobile-nav-backdrop {
  display: none;
}

.page-main {
  min-height: calc(100vh - 150px);
  position: relative;
  z-index: 1;
}

body:not(.home-page) .page-main {
  padding-top: 0;
}

body:not(.home-page) .messages {
  margin-top: 16px;
}

.home-page .video-hero {
  margin-top: 0;
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar {
  border-color: rgba(91, 119, 103, 0.28);
  color: #17211f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(235, 242, 237, 0.95));
  box-shadow: 0 18px 44px rgba(35, 52, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .brand,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .brand-name,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .desktop-nav a,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .dropdown-link,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .nav-preference {
  color: #17211f;
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .desktop-nav,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .account-trigger {
  border-color: rgba(91, 119, 103, 0.24);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .account-avatar,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .dropdown-link-strong {
  color: #ffffff;
  background: linear-gradient(135deg, #2f5c47, #87aa8e);
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .account-dropdown {
  border-color: rgba(91, 119, 103, 0.28);
  color: #17211f;
  background: linear-gradient(180deg, rgba(252, 254, 252, 0.98), rgba(232, 239, 234, 0.96));
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .dropdown-label {
  color: #40514b;
}

html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .theme-select,
html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .language-select {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.26);
  background: rgba(255, 255, 255, 0.94);
}

@media (max-width: 920px) {
  .top-menu-bar {
    width: min(520px, calc(100% - 16px)) !important;
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 15px;
  }

  .top-menu-bar .desktop-nav,
  .top-menu-bar .navbar-actions {
    display: none !important;
  }

  .top-menu-bar .brand {
    width: auto;
    min-width: 0;
    gap: 8px;
  }

  .top-menu-bar .brand-logo {
    height: 32px;
  }

  .top-menu-bar .brand-name {
    max-width: calc(100vw - 118px);
    font-size: 0.86rem;
  }

  .top-menu-bar .mobile-menu-trigger {
    width: 42px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    flex-direction: column;
    gap: 4px;
    border-radius: 11px;
  }

  .top-menu-bar .mobile-menu-trigger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .top-menu-bar .mobile-menu-trigger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .top-menu-bar .mobile-menu-trigger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .top-menu-bar .mobile-menu-trigger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .top-menu-bar .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1001;
    display: block;
    border: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.58);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
  }

  .top-menu-bar .mobile-nav-backdrop[hidden],
  .top-menu-bar .mobile-nav-panel[hidden] {
    display: none !important;
  }

  .top-menu-bar .mobile-nav-panel {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    z-index: 1002 !important;
    width: 50vw !important;
    min-width: 0 !important;
    max-width: 50vw !important;
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top, 0px) + 22px) 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    border-width: 0 0 0 1px;
    border-style: solid;
    border-color: rgba(245, 208, 122, 0.28);
    border-radius: 24px 0 0 24px;
    background:
      radial-gradient(circle at 80% 0%, rgba(245, 208, 122, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(15, 12, 7, 0.995), rgba(7, 6, 4, 0.995));
    box-shadow: -28px 0 80px rgba(0, 0, 0, 0.58), inset 1px 0 0 rgba(255, 244, 210, 0.08);
    animation: nav-sidebar-in 220ms ease-out both;
  }

  .top-menu-bar .mobile-nav-links,
  .top-menu-bar .mobile-preferences {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .top-menu-bar .mobile-nav-links a,
  .top-menu-bar .mobile-logout {
    min-height: 46px;
    border: 1px solid rgba(245, 208, 122, 0.16);
    background: rgba(255, 244, 210, 0.055);
  }

  .top-menu-bar .mobile-preferences {
    padding-top: 12px;
    border-top: 1px solid rgba(245, 208, 122, 0.16);
  }

  body:not(.home-page) .page-main {
    padding-top: 0;
  }

  body:not(.home-page) .messages {
    margin-top: 12px;
  }

  html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .mobile-nav-backdrop {
    background: rgba(23, 33, 31, 0.3);
  }

  html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .mobile-nav-panel {
    border-color: rgba(91, 119, 103, 0.28);
    background:
      radial-gradient(circle at 80% 0%, rgba(111, 152, 121, 0.18), transparent 34%),
      linear-gradient(180deg, rgba(252, 254, 252, 0.995), rgba(232, 239, 234, 0.995));
  }

  html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .mobile-nav-links a,
  html[data-theme="silver-sage"] body:not(.login-page) .top-menu-bar .mobile-logout {
    color: #17211f;
    border-color: rgba(91, 119, 103, 0.18);
    background: rgba(255, 255, 255, 0.68);
  }
}

/* Home page: let the video hero sit behind the menu bar. */
html[data-theme] body.home-page {
  --home-nav-overlap: calc(env(safe-area-inset-top, 0px) + 78px);
}

html[data-theme] body.home-page .page-main {
  margin-top: calc(var(--home-nav-overlap) * -1);
}

html[data-theme] body.home-page .video-hero {
  margin-top: 0 !important;
  min-height: 100dvh !important;
  height: 100dvh;
  padding-top: var(--home-nav-overlap) !important;
}

html[data-theme] body.home-page .video-hero-media,
html[data-theme] body.home-page .video-hero-media.is-autoplay-managed {
  display: block;
  visibility: visible;
  opacity: 1;
}

html[data-theme] body.home-page .video-hero-content {
  top: calc(var(--home-nav-overlap) + clamp(14px, 4svh, 42px)) !important;
}

html[data-theme] body.home-page .top-menu-bar.top-menu-bar {
  border-color: rgba(245, 208, 122, 0.34);
  color: #fff8e8;
  background:
    linear-gradient(180deg, rgba(12, 10, 6, 0.42), rgba(8, 7, 5, 0.28));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 244, 210, 0.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
}

html[data-theme] body.home-page .top-menu-bar .brand,
html[data-theme] body.home-page .top-menu-bar .brand-name,
html[data-theme] body.home-page .top-menu-bar .desktop-nav a,
html[data-theme] body.home-page .top-menu-bar .dropdown-link,
html[data-theme] body.home-page .top-menu-bar .nav-preference {
  color: #fff8e8;
}

html[data-theme] body.home-page .top-menu-bar .desktop-nav,
html[data-theme] body.home-page .top-menu-bar .account-trigger {
  border-color: rgba(245, 208, 122, 0.22);
  background: rgba(255, 244, 210, 0.08);
}

html[data-theme] body.home-page .top-menu-bar .account-dropdown,
html[data-theme] body.home-page .top-menu-bar .mobile-nav-panel {
  border-color: rgba(245, 208, 122, 0.3);
  color: #fff8e8;
  background:
    radial-gradient(circle at 80% 0%, rgba(245, 208, 122, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(15, 12, 7, 0.985), rgba(7, 6, 4, 0.985));
}

html[data-theme] body.home-page .top-menu-bar .theme-select,
html[data-theme] body.home-page .top-menu-bar .language-select {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.24);
  background: rgba(5, 4, 3, 0.96);
}

@media (max-width: 920px) {
  html[data-theme] body.home-page {
    --home-nav-overlap: calc(env(safe-area-inset-top, 0px) + 66px);
  }

  html[data-theme] body.home-page .video-hero-content {
    top: calc(var(--home-nav-overlap) + 12px) !important;
  }
}

/* Login page theme parity. The main theme blocks intentionally skip .login-page. */
body.login-page {
  --bg: #080705;
  --surface: rgba(23, 20, 14, 0.86);
  --surface-strong: rgba(34, 29, 18, 0.94);
  --surface-dark: #090806;
  --surface-dark-2: #17130d;
  --ink: #fff8e8;
  --muted: #c9b98f;
  --line: rgba(213, 175, 92, 0.22);
  --line-strong: rgba(245, 208, 122, 0.36);
  --blue: #d9ad55;
  --blue-deep: #f4d17b;
  --green: #b88a3c;
  --green-deep: #d9ad55;
  --sky: rgba(244, 209, 123, 0.14);
  --mint: rgba(70, 82, 47, 0.22);
  --red: #ffb4a8;
  --success: #9ee6b4;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.36);
  --background: #080705;
  --foreground: #fff8e8;
  --card: rgba(23, 20, 14, 0.86);
  --card-foreground: #fff8e8;
  --primary: #d9ad55;
  --primary-foreground: #0b0905;
  --secondary: #b88a3c;
  --accent: #f5d07a;
  --border: rgba(245, 208, 122, 0.24);
  --muted-foreground: #c9b98f;
  --gradient-start: #050403;
  --gradient-end: #171109;
  color: var(--foreground);
  background:
    radial-gradient(circle at 18% 6%, rgba(244, 209, 123, 0.16), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(93, 82, 45, 0.22), transparent 28%),
    linear-gradient(180deg, #050403 0%, #0c0905 42%, #171109 100%);
}

body.login-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(245, 208, 122, 0.07), transparent 24%, rgba(255, 255, 255, 0.025) 46%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(245, 208, 122, 0.045) 0 1px, transparent 1px 120px);
  opacity: 0.55;
  mask-image: linear-gradient(180deg, black 0%, rgba(0, 0, 0, 0.7) 52%, transparent 100%);
}

body.login-page a {
  color: #f4d17b;
}

body.login-page .page-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(245, 208, 122, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 208, 122, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
}

body.login-page .site-footer {
  border-color: rgba(245, 208, 122, 0.34);
  color: #fff8e8;
  background:
    linear-gradient(180deg, rgba(25, 20, 11, 0.9), rgba(11, 9, 6, 0.86));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 244, 210, 0.08);
}

body.login-page .site-footer a,
body.login-page .site-footer p {
  color: #c9b98f;
}

body.login-page .login-auth-shell {
  color: #fff8e8;
}

body.login-page .auth-form {
  border-color: rgba(245, 208, 122, 0.26);
  color: #fff8e8;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 208, 122, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(38, 31, 18, 0.92), rgba(13, 11, 7, 0.94));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 244, 210, 0.08);
}

body.login-page .auth-form h2 {
  color: #fff8e8;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 0.95;
}

body.login-page .auth-form label,
body.login-page .auth-form p {
  color: #c9b98f;
}

body.login-page .login-eyebrow {
  color: #f4d17b;
  border-color: rgba(245, 208, 122, 0.24);
  background: rgba(245, 208, 122, 0.1);
}

body.login-page .login-eyebrow span + span::before {
  color: rgba(201, 185, 143, 0.7);
}

body.login-page input,
body.login-page select,
body.login-page textarea {
  color: #fff8e8;
  border-color: rgba(245, 208, 122, 0.26);
  background: rgba(7, 6, 4, 0.82);
}

body.login-page input::placeholder,
body.login-page textarea::placeholder {
  color: rgba(201, 185, 143, 0.72);
}

body.login-page input:hover,
body.login-page select:hover,
body.login-page textarea:hover,
body.login-page input:focus-visible,
body.login-page select:focus-visible,
body.login-page textarea:focus-visible {
  border-color: rgba(245, 208, 122, 0.52);
  box-shadow: 0 0 0 6px rgba(245, 208, 122, 0.12);
}

body.login-page .button.primary {
  color: #0b0905;
  border-color: rgba(255, 242, 188, 0.48);
  background: linear-gradient(135deg, #8d6425 0%, #f0c96d 48%, #fff2bc 100%);
  box-shadow: 0 16px 34px rgba(217, 173, 85, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

body.login-page .message,
body.login-page .errorlist {
  color: #ffd7d2;
  border-color: rgba(255, 176, 168, 0.32);
  background: rgba(180, 35, 24, 0.14);
}

html[data-theme="silver-sage"] body.login-page {
  --bg: #edf1ed;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(250, 252, 250, 0.96);
  --surface-dark: #21392f;
  --surface-dark-2: #2f5042;
  --ink: #17211f;
  --muted: #40514b;
  --line: rgba(91, 119, 103, 0.22);
  --line-strong: rgba(105, 132, 117, 0.32);
  --blue: #557c67;
  --blue-deep: #2f5c47;
  --green: #6f9879;
  --green-deep: #345f49;
  --sky: #f3f6f3;
  --mint: #e0e9e2;
  --red: #9f1f1f;
  --success: #166534;
  --shadow: 0 28px 80px rgba(35, 52, 46, 0.14);
  --shadow-soft: 0 18px 44px rgba(35, 52, 46, 0.1);
  --background: #edf1ed;
  --foreground: #17211f;
  --card: rgba(255, 255, 255, 0.84);
  --card-foreground: #17211f;
  --primary: #345f49;
  --primary-foreground: #ffffff;
  --secondary: #dce7df;
  --accent: #6f9879;
  --border: rgba(91, 119, 103, 0.24);
  --muted-foreground: #40514b;
  --gradient-start: #f8faf7;
  --gradient-end: #dfe8e1;
  color: var(--foreground);
  background:
    radial-gradient(circle at 16% 8%, rgba(111, 152, 121, 0.22), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(52, 95, 73, 0.14), transparent 30%),
    linear-gradient(180deg, #f8faf7 0%, #edf1ed 48%, #dfe8e1 100%);
}

html[data-theme="silver-sage"] body.login-page::before {
  background:
    linear-gradient(135deg, rgba(111, 152, 121, 0.1), transparent 26%, rgba(255, 255, 255, 0.42) 48%, transparent 72%),
    repeating-linear-gradient(90deg, rgba(52, 95, 73, 0.055) 0 1px, transparent 1px 124px);
  opacity: 0.62;
}

html[data-theme="silver-sage"] body.login-page a {
  color: #2f5c47;
}

html[data-theme="silver-sage"] body.login-page .page-grid {
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(52, 95, 73, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 152, 121, 0.07) 1px, transparent 1px);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar {
  border-color: rgba(91, 119, 103, 0.28);
  color: #17211f;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(235, 242, 237, 0.95));
  box-shadow: 0 18px 44px rgba(35, 52, 46, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .brand,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .brand-name,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .desktop-nav a,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-link,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-nav-links a,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-logout,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .nav-preference {
  color: #17211f;
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .desktop-nav,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .account-trigger,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-menu-trigger {
  border-color: rgba(91, 119, 103, 0.24);
  color: #17211f;
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .account-avatar,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-link-strong {
  color: #ffffff;
  background: linear-gradient(135deg, #2f5c47, #87aa8e);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .account-dropdown,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-nav-panel {
  border-color: rgba(91, 119, 103, 0.28);
  color: #17211f;
  background:
    radial-gradient(circle at 80% 0%, rgba(111, 152, 121, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(252, 254, 252, 0.995), rgba(232, 239, 234, 0.995));
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-nav-backdrop {
  background: rgba(23, 33, 31, 0.3);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-label {
  color: #40514b;
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-divider {
  background: rgba(91, 119, 103, 0.2);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-preferences {
  border-color: rgba(91, 119, 103, 0.2);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .desktop-nav a:hover,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .desktop-nav a:focus-visible,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-link:hover,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-link:focus-visible {
  background: rgba(111, 152, 121, 0.14);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-nav-links a,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .mobile-logout {
  border-color: rgba(91, 119, 103, 0.18);
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .dropdown-link-danger {
  color: #8a1f17;
}

html[data-theme="silver-sage"] body.login-page .top-menu-bar .theme-select,
html[data-theme="silver-sage"] body.login-page .top-menu-bar .language-select {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.26);
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="silver-sage"] body.login-page .site-footer {
  border-color: rgba(91, 119, 103, 0.28);
  color: #17211f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 244, 240, 0.84));
  box-shadow: 0 18px 48px rgba(35, 52, 46, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="silver-sage"] body.login-page .site-footer a,
html[data-theme="silver-sage"] body.login-page .site-footer p {
  color: #40514b;
}

html[data-theme="silver-sage"] body.login-page .login-auth-shell {
  color: #17211f;
}

html[data-theme="silver-sage"] body.login-page .auth-form {
  border-color: rgba(91, 119, 103, 0.24);
  color: #17211f;
  background:
    radial-gradient(circle at 100% 0%, rgba(111, 152, 121, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 246, 243, 0.94));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

html[data-theme="silver-sage"] body.login-page .auth-form h2,
html[data-theme="silver-sage"] body.login-page .auth-form label {
  color: #17211f;
}

html[data-theme="silver-sage"] body.login-page .auth-form p {
  color: #40514b;
}

html[data-theme="silver-sage"] body.login-page .login-eyebrow {
  color: #2f5c47;
  border-color: rgba(52, 95, 73, 0.24);
  background: rgba(111, 152, 121, 0.12);
}

html[data-theme="silver-sage"] body.login-page .login-eyebrow span + span::before {
  color: rgba(64, 81, 75, 0.72);
}

html[data-theme="silver-sage"] body.login-page input,
html[data-theme="silver-sage"] body.login-page select,
html[data-theme="silver-sage"] body.login-page textarea {
  color: #17211f;
  border-color: rgba(91, 119, 103, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

html[data-theme="silver-sage"] body.login-page input::placeholder,
html[data-theme="silver-sage"] body.login-page textarea::placeholder {
  color: rgba(64, 81, 75, 0.78);
}

html[data-theme="silver-sage"] body.login-page input:hover,
html[data-theme="silver-sage"] body.login-page select:hover,
html[data-theme="silver-sage"] body.login-page textarea:hover,
html[data-theme="silver-sage"] body.login-page input:focus-visible,
html[data-theme="silver-sage"] body.login-page select:focus-visible,
html[data-theme="silver-sage"] body.login-page textarea:focus-visible {
  border-color: rgba(52, 95, 73, 0.52);
  box-shadow: 0 0 0 6px rgba(111, 152, 121, 0.12);
}

html[data-theme="silver-sage"] body.login-page .button.primary {
  color: #ffffff;
  border-color: rgba(52, 95, 73, 0.48);
  background: linear-gradient(135deg, #2f5c47 0%, #5f8d6d 52%, #87aa8e 100%);
  box-shadow: 0 16px 34px rgba(52, 95, 73, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

html[data-theme="silver-sage"] body.login-page .message {
  color: #1f5139;
  border-color: rgba(52, 95, 73, 0.24);
  background: rgba(245, 249, 246, 0.94);
}

html[data-theme="silver-sage"] body.login-page .errorlist {
  color: #9f1f1f;
  border-color: rgba(154, 48, 39, 0.2);
  background: rgba(255, 236, 233, 0.72);
}

.contact-action-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.contact-choice {
  position: relative;
}

.contact-choice summary {
  list-style: none;
  user-select: none;
}

.contact-choice summary::-webkit-details-marker {
  display: none;
}

.contact-choice-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  min-width: 180px;
  padding: 8px;
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.contact-choice-panel a {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border-radius: 12px;
  color: var(--foreground);
  font-weight: 800;
}

.contact-choice-panel a:hover,
.contact-choice-panel a:focus-visible {
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

@media (max-width: 540px) {
  .contact-action-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .contact-action-row .button,
  .contact-choice summary {
    width: 100%;
  }

  .contact-choice-panel {
    position: static;
    margin-top: 8px;
  }
}

body.contact-page .page-main {
  min-height: 0 !important;
  overflow: visible;
}

body.contact-page .page-hero {
  overflow: visible;
  z-index: 5;
}

body.contact-page .contact-choice[open] {
  z-index: 30;
}

body.contact-page .site-footer {
  margin-top: clamp(14px, 2vw, 22px);
}

@media (max-width: 540px) {
  body.contact-page .site-footer {
    width: min(100%, calc(100% - 18px));
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  body.contact-page .site-footer nav {
    flex-wrap: wrap;
  }
}

.nav-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.top-menu-bar .nav-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top-menu-bar .desktop-nav a,
.top-menu-bar .dropdown-link,
.top-menu-bar .mobile-nav-links a,
.top-menu-bar .mobile-logout,
.top-menu-bar .account-trigger {
  gap: 8px;
}

.top-menu-bar .desktop-nav a .nav-icon {
  width: 0.96rem;
  height: 0.96rem;
  opacity: 0.9;
}

.top-menu-bar .account-avatar .nav-icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.15;
}

.top-menu-bar .dropdown-link .nav-icon,
.top-menu-bar .mobile-nav-links a .nav-icon,
.top-menu-bar .mobile-logout .nav-icon {
  width: 1.02rem;
  height: 1.02rem;
  opacity: 0.92;
}

.top-menu-bar .dropdown-label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.top-menu-bar .dropdown-label .nav-icon {
  width: 0.88rem;
  height: 0.88rem;
  opacity: 0.86;
}

.top-menu-bar .nav-preference-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-menu-bar .nav-preference-label .nav-icon {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.9;
}

@media (max-width: 920px) {
  .top-menu-bar .mobile-nav-links a,
  .top-menu-bar .mobile-logout {
    justify-content: flex-start;
  }

  .top-menu-bar .mobile-preferences .nav-preference-label {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .top-menu-bar .mobile-nav-panel,
  .mobile-nav-panel {
    right: 0 !important;
    left: auto !important;
    width: 50vw !important;
    min-width: 0 !important;
    max-width: 50vw !important;
  }

  .top-menu-bar .mobile-nav-links,
  .top-menu-bar .mobile-preferences,
  .mobile-nav-links,
  .mobile-preferences {
    min-width: 0 !important;
  }

  .top-menu-bar .mobile-nav-links a,
  .top-menu-bar .mobile-logout,
  .mobile-nav-links a,
  .mobile-logout {
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .top-menu-bar .mobile-nav-links a span,
  .top-menu-bar .mobile-logout span,
  .mobile-nav-links a span,
  .mobile-logout span,
  .top-menu-bar .nav-preference,
  .top-menu-bar .nav-preference-label,
  .top-menu-bar .theme-select,
  .top-menu-bar .language-select {
    min-width: 0 !important;
    max-width: 100% !important;
  }
}
