/* hyf.id shared component styles.
   Requires --hyfid-brand-* custom properties (from @hyfid/ui-theme/tokens.css
   or a generateCssVars() <style> block) to be in scope. */

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

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

input::placeholder,
textarea::placeholder {
  font-weight: var(--hyfid-type-weight-regular, 400);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── Page layout ─────────────────────────────────────────────────────────── */

.hyfid-background-network {
  background-color: var(--hyfid-surface-canvas, var(--hyfid-brand-background, #F4F1EB));
  background-image: var(--hyfid-background-network-image);
  background-size: var(--hyfid-background-network-size, 720px 480px);
  background-position: var(--hyfid-background-network-position, center top);
}

.hyfid-background-network--inverse,
[data-hyfid-color-mode="dark"] .hyfid-background-network {
  color-scheme: dark;
  background-color: var(--hyfid-chrome-bg, #080D0B);
  background-image: var(--hyfid-background-chrome-gradient), var(--hyfid-background-network-inverse-image);
  background-size: auto, var(--hyfid-background-network-size, 720px 480px);
  background-position: center, var(--hyfid-background-network-position, center top);
}

/* Centered narrow page shell used by most session flow pages */
.hyfid-page {
  box-sizing: border-box;
  width: min(420px, calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-9, 48px) auto;
  padding: var(--hyfid-space-7, 32px) var(--hyfid-space-6, 24px) var(--hyfid-space-6, 24px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-panel);
  overflow: hidden;
  border-color: transparent;
}

/* Wider variant for review / queue pages */
.hyfid-page--wide {
  box-sizing: border-box;
  width: min(760px, calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-9, 48px) auto;
  padding: var(--hyfid-space-7, 32px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-panel);
  overflow: hidden;
  border-color: transparent;
}

[data-hyfid-color-mode="dark"] .hyfid-page,
[data-hyfid-color-mode="dark"] .hyfid-page--wide {
  box-shadow: var(--hyfid-elevation-surface, inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.09), 0 2px 4px -1px rgba(42, 39, 34, 0.08));
}

.hyfid-page h1,
.hyfid-page--wide h1 {
  margin: 0 0 10px;
  color: var(--hyfid-brand-primary, #0E1116);
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui, sans-serif));
  font-size: var(--hyfid-type-size-display-sm, 2.2rem);
  font-weight: var(--hyfid-type-weight-bold, 700);
  line-height: var(--hyfid-type-line-tight, 1.05);
  letter-spacing: var(--hyfid-type-letter-display, -0.03em);
  text-wrap: balance;
}

@media (max-width: 480px) {
  .hyfid-page h1,
  .hyfid-page--wide h1 {
    font-size: var(--hyfid-type-size-display-xs, 1.8rem);
  }
}

.hyfid-page h2,
.hyfid-page--wide h2 {
  color: var(--hyfid-brand-primary, #0E1116);
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui, sans-serif));
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

/* Grid form */
.hyfid-form {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
}

/* ─── Composition layout primitives ──────────────────────────────────────── */

.hyfid-app-page {
  box-sizing: border-box;
  width: min(var(--hyfid-layout-max-content, 1200px), calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-7, 32px) auto var(--hyfid-space-10, 64px);
  display: grid;
  gap: var(--hyfid-space-5, 20px);
}

.hyfid-app-page--narrow {
  width: min(var(--hyfid-page-max-narrow, 760px), calc(100% - var(--hyfid-space-7, 32px)));
}

.hyfid-app-page--wide {
  width: min(var(--hyfid-layout-max-wide, 1200px), calc(100% - var(--hyfid-space-7, 32px)));
}

.hyfid-stack,
.hyfid-grid {
  box-sizing: border-box;
}

.hyfid-stack {
  display: grid;
}

.hyfid-stack--gap-xs {
  gap: var(--hyfid-space-1, 4px);
}

.hyfid-stack--gap-sm {
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-stack--gap-md {
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-stack--gap-lg {
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-stack--gap-xl {
  gap: var(--hyfid-space-5, 20px);
}

.hyfid-stack--align-start {
  align-items: start;
}

.hyfid-stack--align-center {
  align-items: center;
}

.hyfid-stack--align-end {
  align-items: end;
}

.hyfid-stack--align-stretch {
  align-items: stretch;
}

.hyfid-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.hyfid-cluster--gap-xs {
  gap: var(--hyfid-space-1, 4px);
}

.hyfid-cluster--gap-sm {
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-cluster--gap-md {
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-cluster--gap-lg {
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-cluster--justify-start {
  justify-content: flex-start;
}

.hyfid-cluster--justify-center {
  justify-content: center;
}

.hyfid-cluster--justify-end {
  justify-content: flex-end;
}

.hyfid-cluster--justify-between {
  justify-content: space-between;
}

.hyfid-grid {
  display: grid;
  min-width: 0;
}

.hyfid-grid--gap-sm {
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-grid--gap-md {
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-grid--gap-lg {
  gap: var(--hyfid-space-5, 20px);
}

.hyfid-grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.hyfid-grid--one {
  grid-template-columns: minmax(0, 1fr);
}

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

@media (max-width: 720px) {
  .hyfid-grid--two {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── App shell composition ──────────────────────────────────────────────── */

.hyfid-layout {
  width: min(var(--hyfid-layout-max-content, 1200px), calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-8, 40px) auto;
  display: grid;
  gap: var(--hyfid-space-5, 20px);
}

.hyfid-layout--split {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: start;
}

.hyfid-layout--stack {
  width: min(760px, calc(100% - var(--hyfid-space-7, 32px)));
}

.hyfid-card--hero {
  background: var(--hyfid-chrome-bg, var(--hyfid-text-primary, #0E1116));
  color: var(--hyfid-chrome-text, var(--hyfid-surface-canvas, #F4F1EB));
  border-color: var(--hyfid-chrome-bg, var(--hyfid-text-primary, #0E1116));
}

.hyfid-brand-lockup {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: var(--hyfid-space-2, 8px);
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui, sans-serif));
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  font-weight: var(--hyfid-type-weight-semibold, 600);
  line-height: var(--hyfid-type-line-label, 1.25);
  letter-spacing: var(--hyfid-type-letter-display, -0.03em);
  text-transform: none;
}

.hyfid-brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: var(--hyfid-radius-mark, 4px);
}

.hyfid-brand-mark--transparent {
  display: none;
}

[data-hyfid-color-mode="dark"] .hyfid-brand-mark--paper {
  display: none;
}

[data-hyfid-color-mode="dark"] .hyfid-brand-mark--transparent {
  display: block;
}

.hyfid-brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.hyfid-brand-word {
  display: block;
  font-size: var(--hyfid-type-size-lg, 1rem);
  font-weight: var(--hyfid-type-weight-bold, 700);
  line-height: 1;
}

.hyfid-brand-context {
  display: block;
  margin-top: 2px;
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-family: var(--hyfid-type-font-label, var(--hyfid-brand-label-font, "Inter", "Segoe UI", system-ui, sans-serif));
  font-weight: var(--hyfid-type-weight-bold, 700);
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  line-height: 1.1;
}

.hyfid-card--hero .hyfid-brand-lockup {
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.76));
}

.hyfid-card--hero .hyfid-brand-context {
  color: var(--hyfid-chrome-text-faint, rgba(241, 238, 232, 0.62));
}

.hyfid-surface-nav {
  position: sticky;
  top: 0;
  z-index: var(--hyfid-z-nav, 20);
  border-bottom: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  background: color-mix(in srgb, var(--hyfid-surface-canvas, #F4F1EB) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
}

.hyfid-surface-nav__inner {
  width: min(var(--hyfid-layout-max-content, 1200px), calc(100% - var(--hyfid-space-7, 32px)));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-5, 20px);
}

.hyfid-surface-nav__brand {
  text-decoration: none;
}

.hyfid-surface-nav__tools {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--hyfid-space-3, 12px);
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-md, 0.875rem);
  font-weight: var(--hyfid-type-weight-medium, 500);
  letter-spacing: var(--hyfid-type-letter-nav, -0.003em);
}

.hyfid-surface-nav__help,
.hyfid-surface-nav__account {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--hyfid-radius-control, 8px);
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-md, 0.875rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-button, var(--hyfid-brand-button-font, "Inter", "Segoe UI", system-ui, sans-serif));
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-button-contact, 0 1px 2px rgba(42, 39, 34, 0.08));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
  font-weight: var(--hyfid-type-weight-medium, 500);
  letter-spacing: var(--hyfid-type-letter-nav, -0.003em);
}

.hyfid-surface-nav__help {
  gap: var(--hyfid-space-2, 8px);
  padding: 0 var(--hyfid-space-3, 12px);
  border: 1px solid var(--hyfid-brand-form-border, #D9D4CA);
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  text-decoration: none;
  box-shadow: var(--hyfid-elevation-button-contact, 0 1px 2px rgba(42, 39, 34, 0.08));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
}

.hyfid-surface-nav__account {
  gap: var(--hyfid-space-2, 8px);
  max-width: 280px;
  padding: var(--hyfid-space-1, 4px) var(--hyfid-space-3, 12px) var(--hyfid-space-1, 4px) var(--hyfid-space-1, 4px);
  border: 1px solid var(--hyfid-brand-form-border, #D9D4CA);
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  cursor: pointer;
}

.hyfid-surface-nav__avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hyfid-radius-round, 999px);
  background: var(--hyfid-surface-avatar, #ECE8E0);
  color: var(--hyfid-text-primary, #0E1116);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-solid, 1);
  box-shadow: var(--hyfid-elevation-avatar);
}

.hyfid-surface-nav__account-label,
.hyfid-surface-nav__loading {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hyfid-surface-menu {
  position: absolute;
  top: calc(100% + var(--hyfid-space-2, 8px));
  right: 0;
  z-index: var(--hyfid-z-menu, 40);
  min-width: 250px;
  display: grid;
  gap: var(--hyfid-space-1, 4px);
  padding: calc(var(--hyfid-space-2, 8px) - 2px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, 8px);
  background: var(--hyfid-surface-panel-raised, #FFFFFF);
  box-shadow: var(--hyfid-elevation-raised, inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.12), 0 4px 10px -2px rgba(42, 39, 34, 0.12));
}

.hyfid-surface-menu__identity {
  display: grid;
  gap: calc(var(--hyfid-space-1, 4px) / 2);
  min-width: 0;
  padding: var(--hyfid-space-3, 12px);
  border-bottom: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  margin-bottom: var(--hyfid-space-1, 4px);
}

.hyfid-surface-menu__identity strong,
.hyfid-surface-menu__identity span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hyfid-surface-menu__identity span {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-label, 1.25);
}

.hyfid-surface-menu__item {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-3, 12px);
  width: 100%;
  padding: 0 10px;
  border: 0;
  border-radius: var(--hyfid-radius-control, 8px);
  background: transparent;
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-md, 0.875rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-button, var(--hyfid-brand-button-font, "Inter", "Segoe UI", system-ui, sans-serif));
  font-weight: var(--hyfid-type-weight-medium, 500);
  letter-spacing: var(--hyfid-type-letter-nav, -0.003em);
}

.hyfid-surface-menu__item:hover,
.hyfid-surface-menu__item:focus-visible,
.hyfid-surface-nav__help:hover,
.hyfid-surface-nav__account:hover {
  background: var(--hyfid-surface-muted, var(--hyfid-brand-scrolled, #F4F1EB));
}

.hyfid-feature-card {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-5, 20px);
  border-radius: var(--hyfid-radius-surface, 8px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  background: var(--hyfid-surface-panel-raised, #FFFFFF);
  border-color: transparent;
  box-shadow: var(--hyfid-elevation-surface);
  transition: var(--hyfid-motion-interactive);
}

.hyfid-card--hero .hyfid-feature-card {
  border-color: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 12%, transparent);
  background: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 6%, transparent);
}

.hyfid-inline-auth-shell {
  position: relative;
  width: 100%;
  min-height: calc(100dvh - 84px);
  margin: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: var(--hyfid-space-10, 64px) var(--hyfid-space-4, 16px) 52px;
  color: var(--hyfid-chrome-text, #F1EEE8);
  color-scheme: dark;
  background:
    var(--hyfid-background-chrome-gradient),
    var(--hyfid-background-network-inverse-image);
  background-size: auto, var(--hyfid-background-network-size, 720px 480px);
  background-position: center, var(--hyfid-background-network-position, center top);
}

.hyfid-inline-auth-shell__header {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--hyfid-layout-max-content, 1200px), calc(100% - var(--hyfid-space-7, 32px)));
  min-height: 64px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-inline-auth-shell__brand {
  color: var(--hyfid-chrome-text, #F1EEE8);
  text-decoration: none;
}

.hyfid-inline-auth-shell__brand .hyfid-brand-lockup,
.hyfid-inline-auth-shell__brand .hyfid-brand-context {
  color: inherit;
}

.hyfid-inline-auth-shell__about {
  position: static;
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.72));
  font-weight: var(--hyfid-type-weight-bold, 700);
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  text-decoration: underline;
  text-decoration-color: transparent;
  z-index: 2;
}

.hyfid-inline-auth-shell__about:hover {
  text-decoration-color: currentColor;
}

.hyfid-inline-auth-shell__content {
  display: grid;
  gap: var(--hyfid-space-4, 16px);
  width: min(520px, 100%);
}

.hyfid-inline-auth-frame {
  display: block;
  width: 100%;
  min-height: 500px;
  border: 0;
  border-radius: var(--hyfid-radius-surface, 8px);
  background: var(--hyfid-chrome-surface, #121911);
}

.hyfid-inline-auth-note {
  margin: 0;
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.68));
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-inline-auth-note--highlight {
  font-feature-settings: var(--hyfid-type-font-features, "calt", "cv11", "ss03"), "tnum";
  font-weight: var(--hyfid-type-weight-bold, 700);
  color: var(--hyfid-brand-action, #C9F24A);
}

.hyfid-inline-auth-shell + .hyfid-legal-footer {
  width: 100%;
  margin: 0;
  padding: var(--hyfid-space-5, 20px) max(var(--hyfid-space-4, 16px), calc((100vw - 1180px) / 2)) var(--hyfid-space-7, 32px);
  border-top: 1px solid color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 12%, transparent);
  background: var(--hyfid-chrome-bg, #0E1116);
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.68));
}

.hyfid-inline-auth-shell + .hyfid-legal-footer a,
.hyfid-inline-auth-shell + .hyfid-legal-footer .hyfid-legal-footer__brand {
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.68));
}

.hyfid-inline-auth-shell + .hyfid-legal-footer .hyfid-ask-ai {
  --hyfid-ask-ai-accent: var(--hyfid-chrome-indicator, #c9f24a);
  --hyfid-ask-ai-line: rgba(255, 255, 255, 0.14);
  --hyfid-ask-ai-text: rgba(255, 255, 255, 0.88);
  --hyfid-ask-ai-muted: rgba(255, 255, 255, 0.55);
}

.hyfid-legal-footer {
  display: block;
  width: min(1180px, calc(100% - var(--hyfid-space-7, 32px)));
  margin: 0 auto;
  padding: var(--hyfid-space-5, 20px) 0 var(--hyfid-space-7, 32px);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
}

.hyfid-legal-footer__main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-legal-footer__identity {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-legal-footer__brand {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  text-decoration: none;
}

.hyfid-legal-footer__brand .hyfid-brand-mark {
  width: 24px;
  height: 24px;
}

.hyfid-legal-footer__brand .hyfid-brand-word {
  font-size: var(--hyfid-type-size-md, 0.875rem);
}

.hyfid-legal-footer__tagline {
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  font-weight: var(--hyfid-type-weight-bold, 700);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.hyfid-legal-footer a {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.hyfid-legal-footer a:hover {
  text-decoration-color: currentColor;
}

/* Session supplies a locale selector alongside the legal navigation. Keep the
   controls together so a constrained popup wraps the utilities, not the whole footer. */
[data-hyfid-session-footer] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--hyfid-space-5, 20px);
}

[data-hyfid-session-footer-brand] {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

[data-hyfid-session-footer-utilities] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: var(--hyfid-space-5, 20px);
  row-gap: var(--hyfid-space-3, 12px);
  min-width: 0;
}

[data-hyfid-session-footer-utilities] nav {
  min-width: 0;
}

@media (max-width: 480px) {
  [data-hyfid-session-footer] {
    grid-template-columns: 1fr;
  }

  [data-hyfid-session-footer-utilities],
  [data-hyfid-session-footer-utilities] nav {
    justify-content: flex-start;
  }
}

body.hyfid-overlay-open {
  overflow: hidden;
}

.hyfid-framed-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--hyfid-z-overlay, 60);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: var(--hyfid-space-5, 20px);
}

.hyfid-framed-overlay__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--hyfid-overlay-scrim, rgba(14, 17, 22, 0.58));
  cursor: pointer;
}

.hyfid-framed-overlay__panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(520px, 100%);
  height: min(720px, calc(100dvh - var(--hyfid-space-8, 40px)));
  overflow: hidden;
  border-radius: var(--hyfid-radius-dialog, 8px);
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-overlay, 0 0 0 1px rgba(42, 39, 34, 0.10), 0 12px 32px -8px rgba(42, 39, 34, 0.22));
}

.hyfid-framed-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-3, 12px);
  min-height: 56px;
  padding: var(--hyfid-space-3, 12px);
  border-bottom: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
}

.hyfid-framed-overlay__close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-control, 8px);
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-xl, 1.125rem)/var(--hyfid-type-line-solid, 1) var(--hyfid-type-font-button, system-ui, sans-serif);
  cursor: pointer;
  box-shadow: var(--hyfid-elevation-button-contact, 0 1px 2px rgba(42, 39, 34, 0.08));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
}

.hyfid-framed-overlay__close:hover {
  background: var(--hyfid-surface-muted, var(--hyfid-brand-scrolled, #F4F1EB));
}

.hyfid-framed-overlay__body {
  min-width: 0;
  min-height: 0;
}

.hyfid-framed-overlay__body > iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
}

.hyfid-legal-document {
  width: min(740px, calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-7, 32px) auto var(--hyfid-space-10, 64px);
  display: grid;
  gap: var(--hyfid-space-7, 32px);
}

.hyfid-legal-document__header {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  padding-bottom: var(--hyfid-space-5, 20px);
  border-bottom: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
}

.hyfid-legal-document__body {
  line-height: var(--hyfid-type-line-loose, 1.65);
  font-size: var(--hyfid-type-size-lg, 1rem);
}

.hyfid-legal-document__body h1 {
  display: none;
}

.hyfid-legal-document__body h2 {
  margin: 2em 0 0.6em;
  font-size: var(--hyfid-type-size-xl, 1.125rem);
  line-height: var(--hyfid-type-line-title, 1.2);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-legal-document__body h3 {
  margin: 1.5em 0 0.4em;
  font-size: var(--hyfid-type-size-lg, 1rem);
  line-height: var(--hyfid-type-line-title, 1.2);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-legal-document__body p {
  margin: 0 0 1em;
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
}

.hyfid-legal-document__body ul {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

.hyfid-legal-document__body li {
  margin-bottom: 0.4em;
}

.hyfid-legal-document__body code {
  padding: 0.1em 0.35em;
  border-radius: var(--hyfid-radius-mark, 4px);
  background: var(--hyfid-surface-muted, var(--hyfid-brand-scrolled, #F4F1EB));
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
}

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

@media (max-width: 640px) {
  .hyfid-surface-nav__inner {
    width: min(100%, calc(100% - var(--hyfid-space-5, 20px)));
    min-height: auto;
    padding: calc(var(--hyfid-space-3, 12px) - 2px) 0;
    flex-wrap: wrap;
  }

  .hyfid-surface-nav__tools {
    max-width: 58%;
    margin-left: auto;
  }

  .hyfid-surface-nav__help {
    display: none;
  }

  .hyfid-surface-nav__account-label {
    max-width: 132px;
  }

  .hyfid-surface-menu {
    right: 0;
    min-width: min(260px, calc(100vw - var(--hyfid-space-5, 20px)));
  }

  .hyfid-layout,
  .hyfid-layout--stack {
    width: min(100%, calc(100% - var(--hyfid-space-5, 20px)));
    margin: var(--hyfid-space-5, 20px) auto;
  }

  .hyfid-legal-footer {
    width: min(100%, calc(100% - var(--hyfid-space-5, 20px)));
    padding-bottom: var(--hyfid-space-5, 20px);
  }

  .hyfid-legal-footer__main {
    align-items: flex-start;
    flex-direction: column;
  }

  .hyfid-inline-auth-shell {
    min-height: calc(100dvh - 112px);
    padding: 72px calc(var(--hyfid-space-3, 12px) - 2px) var(--hyfid-space-8, 40px);
  }

  .hyfid-inline-auth-shell__about {
    position: static;
  }

  .hyfid-inline-auth-shell__content {
    gap: var(--hyfid-space-3, 12px);
  }

  .hyfid-inline-auth-frame {
    min-height: 520px;
  }

  .hyfid-framed-overlay {
    padding: 0;
  }

  .hyfid-framed-overlay__panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}

/* ─── Typography roles ───────────────────────────────────────────────────── */

.hyfid-heading,
.hyfid-text {
  margin: 0;
}

.hyfid-heading {
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui, sans-serif));
  font-weight: var(--hyfid-type-weight-bold, 700);
  letter-spacing: var(--hyfid-type-letter-heading, -0.015em);
}

.hyfid-heading--page {
  font-size: var(--hyfid-type-size-display-sm, 2.2rem);
  line-height: var(--hyfid-type-line-tight, 1.05);
  text-wrap: balance;
  letter-spacing: var(--hyfid-type-letter-display, -0.03em);
}

.hyfid-heading--display {
  font-size: var(--hyfid-type-size-display-lg, clamp(3rem, 7vw, 4.5rem));
  line-height: var(--hyfid-type-line-tight, 1.05);
  letter-spacing: var(--hyfid-type-letter-display, -0.03em);
  text-wrap: balance;
}

.hyfid-heading--section {
  font-size: var(--hyfid-type-size-xl, 1.125rem);
  line-height: var(--hyfid-type-line-title, 1.2);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-heading--card,
.hyfid-heading--subsection {
  font-size: var(--hyfid-type-size-lg, 1rem);
  line-height: var(--hyfid-type-line-title, 1.2);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-text {
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-text--muted {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
}

.hyfid-text--note {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-text--eyebrow,
.hyfid-text--label {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-label, 550);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.hyfid-text--eyebrow {
  text-transform: none;
}

.hyfid-text--prose {
  max-width: var(--hyfid-layout-max-prose, 65ch);
  line-height: var(--hyfid-type-line-copy, 1.55);
  text-wrap: pretty;
}

.hyfid-text--mono {
  font-family: var(--hyfid-type-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-feature-settings: var(--hyfid-type-font-features, "calt", "cv11", "ss03"), "tnum";
  font-variant-numeric: tabular-nums;
}

.hyfid-num {
  font-feature-settings: var(--hyfid-type-font-features, "calt", "cv11", "ss03"), "tnum";
  font-variant-numeric: tabular-nums;
}

[data-hyfid-skip-link] {
  position: fixed;
  top: var(--hyfid-space-3, 12px);
  left: var(--hyfid-space-3, 12px);
  z-index: var(--hyfid-z-toast, 80);
  transform: translateY(-180%);
  padding: var(--hyfid-space-2, 8px) var(--hyfid-space-3, 12px);
  border-radius: var(--hyfid-radius-control, 8px);
  background: var(--hyfid-brand-action, #C9F24A);
  color: var(--hyfid-brand-inverse, #0E1116);
  font-weight: var(--hyfid-type-weight-semibold, 600);
  text-decoration: none;
  transition: transform var(--hyfid-motion-duration-base, 200ms) var(--hyfid-motion-ease-standard, ease);
}

[data-hyfid-skip-link]:focus {
  transform: translateY(0);
}

@media print {
  [data-hyfid-skip-link] {
    display: none !important;
  }
}

.hyfid-icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hyfid-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;
}

.hyfid-text-link {
  width: fit-content;
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  text-decoration: underline;
  text-decoration-color: transparent;
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-label, 550);
}

.hyfid-text-link:hover,
.hyfid-text-link:focus-visible {
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  text-decoration-color: currentColor;
}

/* ─── Composition surfaces ───────────────────────────────────────────────── */

.hyfid-panel {
  display: grid;
  gap: var(--hyfid-space-4, 16px);
  padding: var(--hyfid-space-6, 24px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-panel);
  border-color: transparent;
}

.hyfid-panel--span {
  grid-column: 1 / -1;
}

.hyfid-panel--error {
  border-color: var(--hyfid-status-error-border, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 30%, transparent));
  color: var(--hyfid-status-error-text, var(--hyfid-brand-error, #B83A2C));
}

.hyfid-panel--success {
  border-color: var(--hyfid-status-success-border, color-mix(in srgb, var(--hyfid-brand-success, #1F8A55) 30%, transparent));
  color: var(--hyfid-status-success-text, var(--hyfid-brand-success, #1F8A55));
}

.hyfid-panel--info {
  border-color: var(--hyfid-status-info-border, color-mix(in srgb, var(--hyfid-status-info, #2A6BD9) 30%, transparent));
}

.hyfid-panel--danger {
  border-color: var(--hyfid-status-error-border, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 30%, transparent));
  background: var(--hyfid-status-error-bg, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 10%, var(--hyfid-surface-panel, #FFFFFF)));
  color: var(--hyfid-status-error-text, var(--hyfid-brand-error, #B83A2C));
}

.hyfid-panel > hr {
  width: 100%;
  height: 1px;
  margin: var(--hyfid-space-1, 4px) 0;
  border: 0;
  background: var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
}

.hyfid-empty-state {
  align-content: center;
  min-height: var(--hyfid-empty-state-min-block, 160px);
}

.hyfid-explainer-panel {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-6, 24px);
  border-radius: var(--hyfid-radius-surface, 8px);
  background: var(--hyfid-chrome-bg, var(--hyfid-text-primary, #0E1116));
  color: var(--hyfid-chrome-text, var(--hyfid-surface-canvas, #F4F1EB));
  box-shadow: var(--hyfid-elevation-chrome, 0 18px 54px -14px rgba(42, 39, 34, 0.42));
}

.hyfid-explainer-panel__badge {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  padding: 0 var(--hyfid-space-3, 12px);
  border: 1px solid color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 16%, transparent);
  border-radius: var(--hyfid-radius-control, 8px);
  background: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 8%, transparent);
  color: var(--hyfid-chrome-text, rgba(241, 238, 232, 0.82));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-explainer-panel h2,
.hyfid-explainer-panel p {
  margin: 0;
}

.hyfid-explainer-panel h2 {
  max-width: 680px;
  color: var(--hyfid-chrome-text, var(--hyfid-surface-canvas, #F4F1EB));
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui, sans-serif));
  font-size: var(--hyfid-type-size-title, 1.75rem);
  line-height: var(--hyfid-type-line-heading, 1.12);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-explainer-panel p {
  max-width: 720px;
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.72));
  line-height: var(--hyfid-type-line-copy, 1.55);
}

.hyfid-list {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-choice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-choice-card {
  display: grid;
  gap: var(--hyfid-space-1, 4px);
  padding: var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: inherit;
  text-decoration: none;
  border-color: transparent;
  box-shadow: var(--hyfid-elevation-surface);
  transition: var(--hyfid-motion-interactive);
}

.hyfid-choice-card strong {
  font-size: var(--hyfid-type-size-lg, 1rem);
  line-height: var(--hyfid-type-line-title, 1.2);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-choice-card span {
  color: var(--hyfid-brand-secondary, #4A463F);
}

.hyfid-choice-card:focus-visible {
  outline: var(--hyfid-focus-outline-width, 2px) solid var(--hyfid-focus-outline-color, var(--hyfid-brand-outline, #0E1116));
  outline-offset: var(--hyfid-focus-outline-offset, 3px);
}

.hyfid-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--hyfid-space-4, 16px);
  min-width: 0;
  padding: var(--hyfid-space-4, 16px) 0;
  border-top: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
}

.hyfid-list-row:first-child {
  padding-top: 0;
  border-top: 0;
}

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

.hyfid-list-row__media {
  min-width: 0;
}

.hyfid-list-row__main {
  display: grid;
  gap: var(--hyfid-space-1, 4px);
  min-width: 0;
}

.hyfid-list-row__main strong,
.hyfid-list-row__main span,
.hyfid-list-row__main p,
.hyfid-list-row__supporting {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hyfid-list-row__supporting {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-list-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-list-row__actions .primaryAction,
.hyfid-list-row__actions .secondaryAction,
.hyfid-list-row__actions .destructiveAction,
.hyfid-action-group--compact .primaryAction,
.hyfid-action-group--compact .secondaryAction,
.hyfid-action-group--compact .destructiveAction {
  min-height: 34px;
  padding: var(--hyfid-space-2, 8px) var(--hyfid-space-3, 12px);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-semibold, 600);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.optionLink,
.hyfid-action-group .optionLink,
.hyfid-stack .optionLink {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.hyfid-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-action-group--start {
  justify-content: flex-start;
}

.hyfid-action-group--end {
  justify-content: flex-end;
}

.hyfid-action-group--compact {
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-button--block {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.hyfid-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-meta-field {
  display: grid;
  gap: var(--hyfid-space-1, 4px);
  min-width: 0;
  padding: var(--hyfid-space-3, 12px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-muted, var(--hyfid-brand-scrolled, #F4F1EB));
}

.hyfid-meta-field span {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-bold, 700);
}

.hyfid-meta-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hyfid-search-field {
  display: block;
  min-width: min(320px, 100%);
}

.hyfid-search-field__control {
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  min-height: 46px;
  padding: 0 var(--hyfid-space-3, 12px);
  border: 1px solid color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 20%, transparent);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-chrome-text, #F1EEE8);
  box-shadow: var(--hyfid-elevation-input);
}

.hyfid-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
}

.hyfid-search-field input::placeholder {
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.68));
}

.hyfid-search-field input:focus-visible {
  outline: none;
}

.hyfid-search-field:focus-within .hyfid-search-field__control {
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline, #0E1116) 18%, transparent));
}

.hyfid-tab-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-tab-filter {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-3, 12px);
  padding: 0 var(--hyfid-space-3, 12px);
  border: 1px solid color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 18%, transparent);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 7%, transparent);
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.72));
  cursor: pointer;
  transition: var(--hyfid-motion-button, background-color 160ms ease, border-color 160ms ease, color 160ms ease);
  font-weight: var(--hyfid-type-weight-medium, 500);
  letter-spacing: var(--hyfid-type-letter-nav, -0.003em);
}

.hyfid-tab-filter strong {
  min-width: 28px;
  padding: calc(var(--hyfid-space-1, 4px) - 1px) var(--hyfid-space-2, 8px);
  border-radius: var(--hyfid-radius-round, 999px);
  background: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 12%, transparent);
  color: var(--hyfid-chrome-text, #F1EEE8);
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  line-height: var(--hyfid-type-line-label, 1.25);
}

.hyfid-tab-filter--active {
  border-color: var(--hyfid-brand-action, #C9F24A);
  background: var(--hyfid-brand-action, #C9F24A);
  color: var(--hyfid-brand-primary, #0E1116);
}

.hyfid-tab-filter--active strong {
  background: color-mix(in srgb, var(--hyfid-brand-primary, #0E1116) 10%, transparent);
  color: inherit;
}

.hyfid-tab-filter:focus-visible,
.hyfid-search-field__control:focus-visible,
.hyfid-list-row__actions :is(a, button):focus-visible,
.hyfid-action-group :is(a, button):focus-visible {
  outline: var(--hyfid-focus-outline-width, 2px) solid var(--hyfid-focus-outline-color, var(--hyfid-brand-outline, #0E1116));
  outline-offset: var(--hyfid-focus-outline-offset, 3px);
}

.hyfid-avatar-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  background: var(--hyfid-surface-avatar, #ECE8E0);
  color: var(--hyfid-text-primary, #0E1116);
  object-fit: contain;
  font-weight: var(--hyfid-type-weight-bold, 700);
  box-shadow: var(--hyfid-elevation-avatar);
  border-color: transparent;
}

.hyfid-code-block {
  padding: var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-muted, var(--hyfid-brand-scrolled, #F4F1EB));
  overflow-wrap: anywhere;
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-3xl, 1.375rem)/var(--hyfid-type-line-title, 1.2) var(--hyfid-type-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
}

.hyfid-code-block--concealed {
  filter: blur(var(--hyfid-blur-concealed, 6px));
  user-select: none;
}

.hyfid-skeleton-block {
  display: block;
  min-height: var(--hyfid-skeleton-block-size, 44px);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 10%, transparent),
    color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 18%, transparent),
    color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 10%, transparent)
  );
  background-size: 220% 100%;
  animation: hyfid-skeleton-shimmer var(--hyfid-motion-skeleton-duration, 1.2s) ease-in-out infinite;
}

.hyfid-skeleton-block--stat {
  min-width: 132px;
  min-height: 74px;
}

.hyfid-skeleton-block--tab {
  min-width: 104px;
  min-height: 44px;
}

.hyfid-skeleton-block--search {
  width: min(320px, 100%);
  min-height: 46px;
}

@keyframes hyfid-skeleton-shimmer {
  from {
    background-position: 120% 0;
  }

  to {
    background-position: -120% 0;
  }
}

@media (max-width: 720px) {
  .hyfid-list-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .hyfid-list-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

/* Definition list used for detail rows */
.hyfid-dl {
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-dl-row {
  display: grid;
  gap: var(--hyfid-space-1, 4px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  border-radius: var(--hyfid-radius-field, var(--hyfid-brand-form-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #fff));
  border: 1px solid var(--hyfid-brand-form-border, #D9D4CA);
}

.hyfid-dl-row dt {
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  font-weight: var(--hyfid-type-weight-label, 550);
  color: var(--hyfid-brand-secondary, #4A463F);
  text-transform: none;
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.hyfid-dl-row dd {
  margin: 0;
  word-break: break-word;
}

.hyfid-form-stack {
  display: grid;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-form-field {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-form-label {
  font-weight: var(--hyfid-type-weight-label, 550);
  color: var(--hyfid-text-label, #2A2722);
}

.hyfid-form-help {
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-form-error {
  color: var(--hyfid-brand-error, #B83A2C);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-option-group {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-option-row {
  display: flex;
  align-items: flex-start;
  gap: var(--hyfid-space-3, 12px);
  line-height: var(--hyfid-type-line-body, 1.5);
  cursor: pointer;
}

.hyfid-option-row input[type="checkbox"],
.hyfid-option-row input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  accent-color: var(--hyfid-brand-action, #C9F24A);
}

.hyfid-option-row input[type="radio"] {
  accent-color: var(--hyfid-brand-outline, #0E1116);
}

.hyfid-inline-field-group {
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-inline-field-group input {
  display: block;
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}

.hyfid-disclosure {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
  color: var(--hyfid-brand-secondary, #4A463F);
}

.hyfid-disclosure summary {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hyfid-brand-secondary, #4A463F);
  cursor: pointer;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-md, 0.875rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, inherit));
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}

.hyfid-disclosure p {
  margin: 0;
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-resource-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-code-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: var(--hyfid-space-1, 4px) var(--hyfid-space-2, 8px);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #fff));
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  color: var(--hyfid-brand-secondary, #4A463F);
  font-family: var(--hyfid-type-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

/* ─── Redemption artifacts ───────────────────────────────────────────────── */

.hyfid-redemption-card {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel-raised, #FFFFFF);
  border-color: transparent;
  box-shadow: var(--hyfid-elevation-surface);
  transition: var(--hyfid-motion-interactive);
}

.hyfid-barcode-frame {
  display: grid;
  justify-items: center;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-5, 20px);
  border: 1px solid color-mix(in srgb, var(--provider-accent, var(--hyfid-brand-primary, #0E1116)) 25%, var(--hyfid-surface-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
}

.hyfid-barcode-frame img {
  width: min(320px, 100%);
  max-height: 260px;
  object-fit: contain;
  image-rendering: pixelated;
}

.hyfid-barcode-frame--compact img {
  width: min(220px, 100%);
  max-height: 180px;
}

.hyfid-code-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: var(--hyfid-space-3, 12px);
}

@media (max-width: 560px) {
  .hyfid-code-action-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─── Sensitive form states ──────────────────────────────────────────────── */

.hyfid-danger-zone {
  display: block;
  padding: var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-status-error-border, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 30%, transparent));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
}

.hyfid-danger-zone summary {
  cursor: pointer;
  color: var(--hyfid-status-error-text, var(--hyfid-brand-error, #B83A2C));
  font-weight: var(--hyfid-type-weight-bold, 700);
}

.hyfid-danger-zone[open] summary {
  margin-bottom: var(--hyfid-space-3, 12px);
}

.hyfid-danger-confirmation {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-status-error-border, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 30%, transparent));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-status-error-bg, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 10%, var(--hyfid-surface-panel, #FFFFFF)));
  color: var(--hyfid-status-error-text, var(--hyfid-brand-error, #B83A2C));
}

.hyfid-danger-confirmation label {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
  font-weight: var(--hyfid-type-weight-bold, 700);
}

.hyfid-danger-confirmation input {
  min-height: 42px;
  border: 1px solid var(--hyfid-status-error-border, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 30%, transparent));
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  padding: var(--hyfid-space-2, 8px) var(--hyfid-space-3, 12px);
  font: inherit;
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-input);
}

.hyfid-challenge-form {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-4, 16px) 0 calc(var(--hyfid-space-1, 4px) / 2) var(--hyfid-space-4, 16px);
  border-left: 3px solid var(--hyfid-status-info, #2A6BD9);
  background: transparent;
}

.hyfid-challenge-form .hyfid-heading--subsection {
  font-size: var(--hyfid-type-size-lg, 1rem);
}

.hyfid-otp-field {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-otp-field > span {
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-otp-slots {
  display: grid;
  width: min(100%, 340px);
  margin-inline: auto;
  gap: var(--hyfid-space-3, 12px);
  grid-template-columns: repeat(var(--hyfid-otp-slots, 6), minmax(0, 1fr));
}

.hyfid-otp-slot {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 1px solid var(--hyfid-brand-form-border, #D9D4CA);
  border-radius: var(--hyfid-radius-field, var(--hyfid-brand-form-radius, 8px));
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-text-primary, var(--hyfid-brand-primary, #0E1116));
  text-align: center;
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-title, 1.75rem)/var(--hyfid-type-line-solid, 1) var(--hyfid-type-font-body, var(--hyfid-brand-font, system-ui));
  font-feature-settings: var(--hyfid-type-font-features, "calt", "cv11", "ss03"), "tnum";
  box-shadow: var(--hyfid-elevation-input);
}

.hyfid-otp-slot:focus {
  outline: none;
  border-color: var(--hyfid-brand-outline, var(--hyfid-brand-primary, #0E1116));
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline, #0E1116) 18%, transparent));
}

.hyfid-otp-slot:disabled {
  opacity: var(--hyfid-opacity-disabled, 0.6);
}

/* Stateful configuration fields */
.hyfid-stateful-field {
  box-sizing: border-box;
  display: grid;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-brand-form-border, #D9D4CA);
  border-left: 4px solid var(--hyfid-brand-outline, #0E1116);
  border-radius: var(--hyfid-radius-field, var(--hyfid-brand-form-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #fff));
}

.hyfid-stateful-field--provided {
  border-left-color: var(--hyfid-brand-success, #0f7a3a);
}

.hyfid-stateful-field--redactedsafe,
.hyfid-stateful-field--pending,
.hyfid-stateful-field--inherited {
  border-left-color: var(--hyfid-brand-outline, #0E1116);
}

.hyfid-stateful-field--neverprovided,
.hyfid-stateful-field--expired,
.hyfid-stateful-field--failing {
  border-left-color: var(--hyfid-brand-error, #a10000);
}

.hyfid-stateful-field__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-stateful-field__label {
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  font-weight: var(--hyfid-type-weight-label, 550);
  color: var(--hyfid-text-label, #2A2722);
}

.hyfid-stateful-field__state,
.hyfid-stateful-field__meta {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  padding: calc(var(--hyfid-space-1, 4px) - 1px) var(--hyfid-space-2, 8px);
  border-radius: var(--hyfid-radius-round, 999px);
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-form-border, #D9D4CA) 72%, transparent);
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  line-height: var(--hyfid-type-line-title, 1.2);
}

.hyfid-stateful-field__value {
  color: var(--hyfid-brand-primary, #0E1116);
  word-break: break-word;
}

.hyfid-stateful-field__nudge {
  margin: 0;
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-stateful-field__button {
  width: max-content;
  border: 0;
  background: transparent;
  color: var(--hyfid-brand-primary, #0E1116);
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-title, 1.2) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  text-decoration: underline;
  cursor: pointer;
}

.hyfid-stateful-field__button:focus-visible {
  outline: var(--hyfid-focus-outline-width, 2px) solid var(--hyfid-focus-outline-color, var(--hyfid-brand-outline, #0E1116));
  outline-offset: var(--hyfid-focus-outline-offset, 3px);
}

.hyfid-otp-timer {
  color: var(--hyfid-brand-secondary, #4A463F);
  margin: 0;
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-otp-resend-prompt {
  margin: 0;
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.hyfid-otp-resend-prompt .ghostButton {
  display: inline;
  min-height: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.hyfid-otp-resend-prompt .ghostButton:disabled {
  color: var(--hyfid-brand-disabled, #BAB4A8);
  text-decoration: none;
}

.hyfid-otp-expiry {
  margin: 0;
}

.otp-timer {
  color: var(--hyfid-brand-secondary, #4A463F);
  margin: 0;
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}

.otp-timer-urgent,
.otp-timer-expired {
  color: var(--hyfid-brand-error, #B83A2C);
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-resend-button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hyfid-brand-secondary, #4A463F);
  cursor: pointer;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-body, 1.5) var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hyfid-resend-button:disabled {
  color: var(--hyfid-brand-disabled, #BAB4A8);
  cursor: default;
  text-decoration: none;
}

@media (max-width: 520px) {
  .hyfid-otp-slot {
    font-size: var(--hyfid-type-size-2xl, 1.25rem);
  }
}

/* Legal consent micro-copy */
.hyfid-legal {
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  color: var(--hyfid-brand-secondary, #4A463F);
  line-height: var(--hyfid-type-line-body, 1.5);
  margin-top: 6px;
}

.hyfid-legal a {
  color: inherit;
  text-decoration: underline;
}

.hyfid-page-header {
  display: none;
}

@media (max-width: 640px) {
  .hyfid-page-header {
    display: none;
  }
}

/* Redirect / handoff progress */
.hyfid-redirect-page {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-redirect-page > .hyfid-brand-lockup {
  padding: calc(var(--hyfid-space-2, 8px) - 2px) var(--hyfid-space-3, 12px);
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 72%, transparent);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  line-height: var(--hyfid-type-line-label, 1.25);
}

.hyfid-redirect-page > .hyfid-brand-lockup .hyfid-lockup-mark {
  width: 18px;
  height: 18px;
}

.hyfid-redirect-progress {
  width: 96px;
  height: 96px;
  margin: var(--hyfid-space-1, 4px) 0 2px;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: var(--hyfid-radius-round, 999px);
  background:
    radial-gradient(circle, var(--hyfid-brand-form-background, #fff) 0 48%, transparent 49%),
    conic-gradient(
      from 0deg,
      var(--hyfid-brand-action, #C9F24A),
      color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 20%, var(--hyfid-brand-primary, #0E1116)),
      color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 58%, transparent),
      var(--hyfid-brand-action, #C9F24A)
    );
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 60%, transparent),
    var(--hyfid-elevation-raised, inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.12), 0 4px 10px -2px rgba(42, 39, 34, 0.12));
  animation: hyfid-redirect-spin 1.05s linear infinite;
}

.hyfid-redirect-progress::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: inherit;
  background: var(--hyfid-brand-form-background, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 64%, transparent);
}

.hyfid-redirect-progress img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: var(--hyfid-radius-mark, 4px);
  animation: hyfid-redirect-counter-spin 1.05s linear infinite;
}

.hyfid-redirect-track {
  width: min(100%, 280px);
  height: 4px;
  overflow: hidden;
  border-radius: var(--hyfid-radius-round, 999px);
  background: color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 74%, transparent);
}

.hyfid-redirect-track::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    var(--hyfid-brand-action, #C9F24A),
    color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 40%, var(--hyfid-brand-primary, #0E1116)),
    transparent
  );
  animation: hyfid-redirect-track 1s ease-in-out infinite;
}

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

@keyframes hyfid-redirect-counter-spin {
  to { transform: rotate(-360deg); }
}

@keyframes hyfid-redirect-track {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
  .hyfid-redirect-progress,
  .hyfid-redirect-progress img,
  .hyfid-redirect-track::before {
    animation: none;
  }
}

/* ─── Locale switcher ─────────────────────────────────────────────────────── */

.hyfid-locale-switcher {
  display: inline-flex;
  padding: 0;
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hyfid-locale-label {
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-xs, 0.75rem)/var(--hyfid-type-line-title, 1.2) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  color: var(--hyfid-brand-secondary, #4A463F);
}

.hyfid-locale-label select {
  display: inline-block;
  width: auto;
  font: inherit;
  padding: calc(var(--hyfid-space-2, 8px) - 2px) var(--hyfid-space-7, 32px) calc(var(--hyfid-space-2, 8px) - 2px) var(--hyfid-space-3, 12px);
  min-height: auto;
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-form-border, #D9D4CA) 72%, transparent);
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-brand-primary, #0E1116);
  box-shadow: var(--hyfid-elevation-input);
}

@media (max-width: 640px) {
  .hyfid-locale-switcher {
    display: inline-flex;
    width: auto;
  }
  .hyfid-locale-label {
    justify-content: flex-start;
    width: auto;
  }
}

/* ─── Back button ─────────────────────────────────────────────────────────── */

.hyfid-back-button {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  margin: 0 0 var(--hyfid-space-5, 20px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hyfid-brand-secondary, #4A463F);
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-md, 0.875rem)/var(--hyfid-type-line-title, 1.2) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  cursor: pointer;
}
.hyfid-back-button:hover {
  text-decoration: underline;
}
.hyfid-back-button:focus-visible {
  outline: var(--hyfid-focus-outline-width, 2px) solid var(--hyfid-focus-outline-color, var(--hyfid-brand-outline, #0E1116));
  outline-offset: var(--hyfid-focus-outline-offset, 3px);
  border-radius: var(--hyfid-radius-mark, 4px);
}

[data-hyfid-color-mode="dark"] .hyfid-back-button {
  color: var(--hyfid-brand-primary, #F1EEE8);
  text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
}

/* ─── Powered-by footer ───────────────────────────────────────────────────── */

.hyfid-powered-footer {
  box-sizing: border-box;
  width: min(420px, calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-4, 16px) auto var(--hyfid-space-6, 24px);
  display: grid;
  justify-items: center;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-4, 16px) 0 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 78%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--hyfid-brand-secondary, #4A463F);
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-xs, 0.75rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-footnote, var(--hyfid-brand-footnote-font, system-ui));
}
.hyfid-powered-footer a,
.hyfid-powered-footer a:visited {
  color: var(--hyfid-brand-primary, #0E1116) !important;
  text-decoration: none !important;
}
.hyfid-powered-footer a:hover {
  text-decoration: underline !important;
}
.hyfid-footer-brand,
.hyfid-footer-links {
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  flex-wrap: wrap;
}
.hyfid-footer-brand {
  justify-content: center;
}
.hyfid-footer-links {
  justify-content: center;
  color: var(--hyfid-brand-secondary, #4A463F);
}
.hyfid-footer-powered {
  color: var(--hyfid-brand-secondary, #4A463F);
  font-weight: 600;
}
.hyfid-footer-mark {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  color: var(--hyfid-brand-primary, #0E1116);
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui));
  font-size: var(--hyfid-type-size-base, 0.9375rem);
  font-weight: var(--hyfid-type-weight-bold, 700);
}
.hyfid-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  min-width: 0;
  color: var(--hyfid-brand-primary, #0E1116);
  font-family: var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, "Geist", system-ui));
  font-weight: var(--hyfid-type-weight-bold, 700);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}
.hyfid-lockup-mark {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: var(--hyfid-radius-mark, 4px);
}
.hyfid-lockup-word,
.hyfid-lockup-context {
  min-width: 0;
  overflow-wrap: anywhere;
}
.hyfid-brand-word,
.hyfid-lockup-word {
  font-family: "Geist", system-ui, sans-serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}
.hyfid-lockup-context {
  color: var(--hyfid-brand-secondary, #4A463F);
  font-family: var(--hyfid-type-font-label, var(--hyfid-brand-label-font, "Inter", system-ui));
  font-weight: var(--hyfid-type-weight-semibold, 600);
}
.hyfid-footer-mark .hyfid-lockup-mark {
  width: 18px;
  height: 18px;
}
.hyfid-footer-sep {
  color: color-mix(in srgb, var(--hyfid-brand-secondary, #4A463F) 42%, transparent);
  font-weight: 400;
}

/* ─── Progress steps ──────────────────────────────────────────────────────── */

.hyfid-progress {
  box-sizing: border-box;
  width: min(420px, calc(100% - var(--hyfid-space-7, 32px)));
  margin: var(--hyfid-space-8, 40px) auto var(--hyfid-space-3, 12px);
  padding: 0 var(--hyfid-space-6, 24px);
  min-height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--hyfid-brand-primary, #0E1116);
  box-shadow: none;
}
.hyfid-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--hyfid-space-3, 12px);
}
.hyfid-progress + .hyfid-page,
.hyfid-progress + .hyfid-page--wide {
  margin-top: 0;
}
.hyfid-progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(var(--hyfid-progress-step-count, 3), minmax(0, 1fr));
  align-items: start;
  gap: 0;
  width: 100%;
}
.hyfid-progress-step {
  display: grid;
  grid-template-rows: 28px auto;
  justify-items: center;
  gap: var(--hyfid-space-2, 8px);
  min-width: 0;
  min-height: 54px;
  padding: 0 6px;
  position: relative;
}
.hyfid-progress-step + .hyfid-progress-step::before {
  content: "";
  position: absolute;
  top: 13px;
  right: calc(50% + 14px);
  left: calc(-50% + 14px);
  height: 2px;
  border-radius: var(--hyfid-radius-mark, 4px);
  background: color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 70%, transparent);
  z-index: 0;
}
.hyfid-progress-step-done + .hyfid-progress-step::before {
  background: color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 78%, var(--hyfid-brand-inverse, #0E1116));
}
.hyfid-progress-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: var(--hyfid-brand-form-background, #fff);
  color: var(--hyfid-brand-secondary, #4A463F);
  border: 1px solid var(--hyfid-brand-form-border, #D9D4CA);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-solid, 1) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
}
.hyfid-progress-check {
  width: 16px;
  height: 16px;
  display: block;
}
.hyfid-progress-number {
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}
.hyfid-progress-step-done .hyfid-progress-dot {
  background: var(--hyfid-brand-action, #C9F24A);
  color: var(--hyfid-brand-inverse, #0E1116);
}
.hyfid-progress-step-active .hyfid-progress-dot {
  background: var(--hyfid-brand-action, #C9F24A);
  color: var(--hyfid-brand-inverse, #0E1116);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 82%, var(--hyfid-brand-inverse, #0E1116));
}
.hyfid-progress-label {
  min-width: 0;
  overflow: visible;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-title, 1.2) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  color: var(--hyfid-brand-secondary, #4A463F);
  margin: 0;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.hyfid-progress-step-active .hyfid-progress-label {
  color: var(--hyfid-brand-primary, #0E1116);
}
.hyfid-progress-step-done .hyfid-progress-label {
  color: var(--hyfid-brand-primary, #0E1116);
}
.hyfid-flow-close-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 82%, transparent);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: color-mix(in srgb, var(--hyfid-brand-form-background, #fff) 72%, transparent);
  color: var(--hyfid-brand-secondary, #4A463F);
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-2xl, 1.25rem)/var(--hyfid-type-line-solid, 1) var(--hyfid-type-font-button, var(--hyfid-brand-button-font, system-ui));
  cursor: pointer;
}
.hyfid-flow-close-button:hover {
  background: var(--hyfid-brand-form-background, #fff);
  color: var(--hyfid-brand-primary, #0E1116);
}
[data-hyfid-color-mode="dark"] .hyfid-flow-close-button {
  background: color-mix(in srgb, var(--hyfid-brand-form-background, #121911) 86%, transparent);
  color: var(--hyfid-brand-primary, #F1EEE8);
}
[data-hyfid-color-mode="dark"] .hyfid-flow-close-button:hover {
  background: var(--hyfid-brand-scrolled, #172017);
}
.hyfid-flow-popup .hyfid-progress-row,
.hyfid-flow-embedded .hyfid-progress-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.hyfid-flow-popup .hyfid-flow-close-button,
.hyfid-flow-embedded .hyfid-flow-close-button {
  display: none;
}

/* ─── Typography utilities ────────────────────────────────────────────────── */

.eyebrow {
  display: block;
  font-size: var(--hyfid-type-size-xs, 0.75rem);
  font-weight: var(--hyfid-type-weight-medium, 500);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
  text-transform: none;
  color: var(--hyfid-brand-secondary, #4A463F);
  margin: 0 0 var(--hyfid-space-2, 8px);
}
.lede,
.panelCopy {
  margin: 0;
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-lg, 1rem);
  line-height: var(--hyfid-type-line-copy, 1.55);
}
.note,
.muted {
  color: var(--hyfid-brand-secondary, #4A463F);
  margin: 0;
}
.small {
  font-size: var(--hyfid-type-size-md, 0.875rem);
}
.error {
  color: var(--hyfid-brand-error, #B83A2C);
  margin: 0;
}

/* ─── Alert / notice ──────────────────────────────────────────────────────── */

.notice {
  color: #3F3B34;
  background: var(--hyfid-surface-muted, var(--hyfid-brand-background, #F4F1EB));
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  margin: 0;
}
.notice--soft {
  color: var(--hyfid-brand-secondary, #4A463F);
  background: color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 28%, var(--hyfid-brand-form-background, #fff));
  border-color: color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 80%, transparent);
}
[data-hyfid-color-mode="dark"] .notice {
  color: var(--hyfid-brand-primary, #F1EEE8);
  background: var(--hyfid-brand-form-background, #121911);
}
[data-hyfid-color-mode="dark"] .notice--soft {
  color: var(--hyfid-brand-secondary, rgba(241, 238, 232, 0.68));
  background: color-mix(in srgb, var(--hyfid-brand-scrolled, #172017) 84%, transparent);
}
.debug {
  color: var(--hyfid-brand-success, #1F8A55);
  font-weight: 600;
}

/* ─── Action buttons ──────────────────────────────────────────────────────── */

.primaryAction {
  --hyfid-action-border-color: var(--hyfid-brand-action-border, #A8D62E);
  --hyfid-action-hover-color: color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 88%, var(--hyfid-brand-inverse, #0E1116));
  --hyfid-action-active-color: color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 78%, var(--hyfid-brand-inverse, #0E1116));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  min-height: 46px;
  border: 1px solid var(--hyfid-action-border-color);
  cursor: pointer;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  text-decoration: none;
  background: var(--hyfid-brand-action, #C9F24A);
  color: var(--hyfid-brand-inverse, #0E1116);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  line-height: var(--hyfid-type-line-label, 1.25);
  box-shadow: var(--hyfid-elevation-button-accent-contact, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(42, 39, 34, 0.14));
  transition: var(--hyfid-motion-interactive, all 200ms ease);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}
.primaryAction:disabled {
  background: var(--hyfid-brand-disabled, #BAB4A8);
  color: color-mix(in srgb, var(--hyfid-brand-inverse, #0E1116) 74%, transparent);
  cursor: not-allowed;
  border-color: var(--hyfid-brand-disabled, #BAB4A8);
  box-shadow: none;
}
.primaryAction:hover:not(:disabled) {
  background: var(--hyfid-action-hover-color);
  transform: translateY(-1px);
}
.primaryAction:focus-visible {
  outline: none;
  box-shadow:
    var(--hyfid-elevation-button-accent-contact, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(42, 39, 34, 0.14)),
    var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline, #0E1116) 20%, transparent));
}
.primaryAction:active:not(:disabled) {
  background: var(--hyfid-action-active-color);
  transform: translateY(1px) scale(0.99);
}
[data-hyfid-color-mode="dark"] .primaryAction:disabled {
  background: color-mix(in srgb, var(--hyfid-brand-primary, #F1EEE8) 18%, transparent);
  color: color-mix(in srgb, var(--hyfid-brand-primary, #F1EEE8) 62%, transparent);
  border-color: color-mix(in srgb, var(--hyfid-brand-primary, #F1EEE8) 10%, transparent);
}

.destructiveAction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 82%, var(--hyfid-brand-inverse, #0E1116));
  cursor: pointer;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  text-decoration: none;
  background: var(--hyfid-brand-error, #B83A2C);
  color: #fff;
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  line-height: var(--hyfid-type-line-label, 1.25);
  box-shadow: var(--hyfid-elevation-button-accent-contact, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(42, 39, 34, 0.14));
  transition: var(--hyfid-motion-interactive, all 200ms ease);
}
[data-hyfid-color-mode="dark"] .destructiveAction {
  color: #0E1116;
}
.destructiveAction:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.destructiveAction:hover:not(:disabled) {
  background: color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 82%, #000);
  transform: translateY(-1px);
}
.destructiveAction:focus-visible {
  outline: none;
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 30%, transparent));
}

.dangerButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  min-height: 46px;
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 35%, transparent);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 8%, var(--hyfid-brand-form-background, #fff));
  color: var(--hyfid-brand-error, #B83A2C);
  cursor: pointer;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  line-height: var(--hyfid-type-line-label, 1.25);
}
.dangerButton:disabled { opacity: 0.5; cursor: not-allowed; }
.dangerButton:hover:not(:disabled) {
  background: color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 14%, var(--hyfid-brand-form-background, #fff));
  border-color: color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 55%, transparent);
}
.dangerButton:focus-visible {
  outline: none;
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 22%, transparent));
}

.secondaryAction,
.secondaryButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  min-height: 46px;
  border: 1px solid var(--hyfid-brand-border, #E3DED4);
  cursor: pointer;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  text-decoration: none;
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-brand-secondary, #4A463F);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  line-height: var(--hyfid-type-line-label, 1.25);
  transition: var(--hyfid-motion-interactive, all 200ms ease);
  box-shadow: var(--hyfid-elevation-button-contact, 0 1px 2px rgba(42, 39, 34, 0.08));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}
.secondaryAction:disabled,
.secondaryButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondaryAction:hover:not(:disabled),
.secondaryButton:hover:not(:disabled) {
  background: var(--hyfid-state-hover, var(--hyfid-brand-background, #F4F1EB));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
  color: var(--hyfid-brand-primary, #0E1116);
  transform: translateY(-1px);
}
.secondaryAction:focus-visible,
.secondaryButton:focus-visible {
  outline: none;
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline, #0E1116) 20%, transparent));
}
.secondaryAction:active:not(:disabled),
.secondaryButton:active:not(:disabled) {
  background: var(--hyfid-state-active, var(--hyfid-brand-scrolled, #F4F1EB));
  transform: translateY(1px) scale(0.99);
}

.linkButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-2, 8px) var(--hyfid-space-3, 12px);
  border: 1px solid var(--hyfid-brand-border, #E3DED4);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: var(--hyfid-brand-secondary, #4A463F);
  text-decoration: none;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  font-size: var(--hyfid-type-size-md, 0.875rem);
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  line-height: var(--hyfid-type-line-label, 1.25);
  box-shadow: var(--hyfid-elevation-button-contact, 0 1px 2px rgba(42, 39, 34, 0.08));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}
.linkButton:hover {
  background: var(--hyfid-state-hover, var(--hyfid-brand-background, #F4F1EB));
  border-color: var(--hyfid-brand-form-border, #D9D4CA);
  color: var(--hyfid-brand-primary, #0E1116);
}
.linkButton:focus-visible {
  outline: none;
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline, #0E1116) 20%, transparent));
}

.ghostButton {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-2, 8px) var(--hyfid-space-3, 12px);
  border: none;
  background: transparent;
  color: var(--hyfid-brand-secondary, #4A463F);
  font-weight: var(--hyfid-type-weight-semibold, 600);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  line-height: var(--hyfid-type-line-label, 1.25);
  transition: var(--hyfid-motion-interactive, all 200ms ease);
}
.ghostButton:hover {
  text-decoration-color: currentColor;
  transform: translateY(-1px);
}
.ghostButton:focus-visible {
  outline: none;
  box-shadow: var(--hyfid-focus-ring, 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline, #0E1116) 20%, transparent));
  border-radius: var(--hyfid-radius-mark, 4px);
}

/* ─── Spinner ─────────────────────────────────────────────────────────────── */

.hyfid-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(14, 17, 22, 0.14);
  border-top-color: var(--hyfid-brand-primary, #0E1116);
  border-radius: 50%;
  animation: hyfid-spin 0.7s linear infinite;
}
[data-hyfid-color-mode="dark"] .hyfid-spinner {
  border-color: rgba(241, 238, 232, 0.18);
  border-top-color: var(--hyfid-brand-action, #C9F24A);
}
.hyfid-spinner--sm {
  width: 14px;
  height: 14px;
}
.hyfid-spinner--lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}
@keyframes hyfid-spin {
  to { transform: rotate(360deg); }
}

/* ─── Skeleton loader ─────────────────────────────────────────────────────── */

.hyfid-skeleton {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 40%, transparent) 25%,
    color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 80%, transparent) 50%,
    color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 40%, transparent) 75%
  );
  background-size: 200% 100%;
  animation: hyfid-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--hyfid-radius-field, var(--hyfid-brand-form-radius, 8px));
}
@keyframes hyfid-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Card ────────────────────────────────────────────────────────────────── */

.hyfid-card {
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  padding: var(--hyfid-space-5, 20px) var(--hyfid-space-6, 24px);
  box-shadow: var(--hyfid-elevation-surface);
  border-color: transparent;
  transition: var(--hyfid-motion-interactive);
}

/* ─── Badge / Tag ─────────────────────────────────────────────────────────── */

.hyfid-badge {
  display: inline-flex;
  align-items: center;
  padding: calc(var(--hyfid-space-1, 4px) / 2) var(--hyfid-space-2, 8px);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-2xs, 0.72rem)/var(--hyfid-type-line-body, 1.5) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  background: var(--hyfid-brand-background, #F4F1EB);
  color: var(--hyfid-brand-secondary, #4A463F);
  border: 1px solid var(--hyfid-brand-border, #E3DED4);
}
.hyfid-badge--success {
  background: color-mix(in srgb, var(--hyfid-brand-success, #1F8A55) 12%, var(--hyfid-brand-form-background, #fff));
  color: var(--hyfid-brand-success, #1F8A55);
}
.hyfid-badge--error {
  background: color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 12%, var(--hyfid-brand-form-background, #fff));
  color: var(--hyfid-brand-error, #B83A2C);
}
.hyfid-badge--neutral {
  background: color-mix(in srgb, var(--hyfid-brand-border, #E3DED4) 45%, var(--hyfid-brand-form-background, #fff));
  color: var(--hyfid-brand-secondary, #4A463F);
}

/* ─── Dropdown menu ──────────────────────────────────────────────────────── */

.hyfid-dropdown {
  position: relative;
  display: inline-flex;
}

.hyfid-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  z-index: var(--hyfid-z-menu, 40);
}

.hyfid-dropdown-menu--start {
  left: 0;
}

.hyfid-dropdown-menu--end {
  right: 0;
}

/* ─── Coupon offer cards ─────────────────────────────────────────────────── */

.hyfid-coupon-card {
  --hyfid-coupon-brand: var(--hyfid-brand-primary, #0E1116);
  --hyfid-coupon-page-background: var(--hyfid-brand-background, #F4F1EB);
  --hyfid-coupon-shadow: var(--hyfid-elevation-surface, inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.09), 0 2px 4px -1px rgba(42, 39, 34, 0.08));
  --hyfid-coupon-shadow-hover: var(--hyfid-elevation-raised, inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.12), 0 4px 10px -2px rgba(42, 39, 34, 0.12));
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 356px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel-raised, var(--hyfid-brand-form-background, #FFFFFF));
  color: inherit;
  text-align: left;
  font: inherit;
  box-shadow: var(--hyfid-coupon-shadow);
  cursor: pointer;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.hyfid-coupon-card:hover {
  box-shadow: var(--hyfid-coupon-shadow-hover);
  transform: translateY(-2px);
}

.hyfid-coupon-card:focus-visible {
  outline: var(--hyfid-focus-outline-width, 2px) solid var(--hyfid-focus-outline-color, color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 78%, var(--hyfid-brand-inverse, #0E1116)));
  outline-offset: var(--hyfid-focus-outline-offset, 3px);
}

.hyfid-coupon-card--muted {
  opacity: 0.7;
}

.hyfid-coupon-card--placeholder {
  pointer-events: none;
  cursor: default;
}

.hyfid-coupon-card--placeholder:hover {
  transform: none;
  box-shadow: var(--hyfid-coupon-shadow);
}

.hyfid-coupon-provider-head {
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  color: #fff;
  background: color-mix(in srgb, var(--hyfid-coupon-brand) 72%, var(--hyfid-brand-primary, #0E1116));
}

.hyfid-coupon-provider-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  background: var(--hyfid-coupon-brand);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  color: #fff;
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-md, 0.875rem)/var(--hyfid-type-line-solid, 1) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
}

.hyfid-coupon-provider-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-md, 0.875rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.hyfid-coupon-stage,
.hyfid-coupon-detail-stage {
  position: relative;
  flex: 1;
  min-height: 250px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hyfid-coupon-detail-stage {
  min-height: 0;
}

.hyfid-coupon-stage > img,
.hyfid-coupon-stage-fallback,
.hyfid-coupon-detail-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hyfid-coupon-stage-fallback {
  background:
    radial-gradient(circle at 72% 26%, rgba(201, 242, 74, 0.92), transparent 22%),
    linear-gradient(135deg, color-mix(in srgb, var(--hyfid-coupon-brand) 66%, #FFFFFF) 0%, #0E1116 48%, #EFF4DB 48%, #EFF4DB 100%);
}

.hyfid-coupon-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 17, 22, 0.30) 0%,
    rgba(14, 17, 22, 0) 28%,
    rgba(14, 17, 22, 0) 48%,
    rgba(14, 17, 22, 0.74) 80%,
    rgba(14, 17, 22, 0.93) 100%
  );
}

.hyfid-coupon-card__chip {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  filter: drop-shadow(var(--hyfid-elevation-mark));
}

.hyfid-coupon-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: calc(var(--hyfid-space-2, 8px) - 3px) var(--hyfid-space-3, 12px);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  white-space: nowrap;
}

.hyfid-coupon-chip--success {
  background: var(--hyfid-brand-action, #C9F24A);
  color: #16210A;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 70%, var(--hyfid-brand-inverse, #0E1116));
}

.hyfid-coupon-chip--inverse {
  background: var(--hyfid-brand-primary, #0E1116);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.hyfid-coupon-chip--warning {
  background: #8A5200;
  color: #fff;
}

.hyfid-coupon-chip--neutral {
  background: rgba(255, 255, 255, 0.92);
  color: var(--hyfid-brand-primary, #0E1116);
}

.hyfid-coupon-card__foot {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px) var(--hyfid-space-4, 16px);
  display: flex;
  flex-direction: column;
  gap: var(--hyfid-space-3, 12px);
  color: #fff;
}

.hyfid-coupon-card__title {
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-2xl, 1.25rem)/var(--hyfid-type-line-heading, 1.12) var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, system-ui));
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
  text-shadow: var(--hyfid-text-shadow-strong, 0 1px 12px rgba(7, 13, 10, 0.42));
  overflow-wrap: anywhere;
  font-weight: var(--hyfid-type-weight-semibold, 600);
}

.hyfid-coupon-perforation {
  position: relative;
  height: 14px;
  margin: 2px calc(var(--hyfid-space-4, 16px) * -1);
}

.hyfid-coupon-perforation::before,
.hyfid-coupon-perforation::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--hyfid-coupon-page-background);
  transform: translateY(-50%);
}

.hyfid-coupon-perforation::before {
  left: -9px;
}

.hyfid-coupon-perforation::after {
  right: -9px;
}

.hyfid-coupon-perforation span {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  border-top: 2px dashed currentColor;
  opacity: 0.85;
  transform: translateY(-50%);
}

.hyfid-coupon-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-coupon-verified {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  color: rgba(255, 255, 255, 0.92);
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-label, var(--hyfid-brand-label-font, system-ui));
  white-space: nowrap;
}

.hyfid-coupon-verified .hyfid-icon {
  color: var(--hyfid-brand-secondary, #6B6F65);
}

.hyfid-coupon-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-2, 8px) var(--hyfid-space-3, 12px);
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-label, 1.25) var(--hyfid-type-font-button, var(--hyfid-brand-button-font, system-ui));
  white-space: nowrap;
  font-weight: var(--hyfid-type-weight-semibold, 600);
  letter-spacing: var(--hyfid-type-letter-normal, -0.006em);
}

.hyfid-coupon-card__cta--primary {
  background: var(--hyfid-brand-action, #C9F24A);
  color: #16210A;
  border: 1px solid var(--hyfid-brand-action-border, #A8D62E);
  box-shadow: var(--hyfid-elevation-button-accent-contact, inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(42, 39, 34, 0.14));
}

.hyfid-coupon-card__cta--dark {
  background: var(--hyfid-brand-primary, #0E1116);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
}

.hyfid-coupon-card__cta--glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(4px);
}

.hyfid-coupon-card:hover .hyfid-coupon-card__cta--primary {
  background: color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 74%, #fff);
}

.hyfid-coupon-card:hover .hyfid-coupon-card__cta--glass {
  background: rgba(255, 255, 255, 0.24);
}

.hyfid-coupon-detail-summary {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: grid;
  justify-items: start;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-6, 24px);
  color: #fff;
}

.hyfid-coupon-detail-summary h2 {
  margin: 0;
  font: var(--hyfid-type-weight-bold, 700) var(--hyfid-type-size-display-sm, 2.2rem)/var(--hyfid-type-line-tight, 1.05) var(--hyfid-type-font-heading, var(--hyfid-brand-subheading-font, system-ui));
  letter-spacing: var(--hyfid-type-letter-display, -0.03em);
  text-shadow: var(--hyfid-text-shadow-strong, 0 1px 12px rgba(7, 13, 10, 0.42));
}

.hyfid-claim-card {
  min-width: 0;
  display: grid;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-claim-card__body {
  display: grid;
  gap: var(--hyfid-space-4, 16px);
}

.hyfid-claim-card__description {
  margin: 0;
  color: var(--hyfid-brand-secondary, #4F5A4F);
}

.hyfid-claim-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--hyfid-space-3, 12px);
}

/* Wallet home and interstitial shells */

.hyfid-wallet-home-shell {
  width: 100%;
  margin: 0 auto 48px;
  display: grid;
  gap: 0;
}

.hyfid-wallet-home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--hyfid-space-5, 20px);
  min-height: 0;
  padding: clamp(28px, 4vw, 40px) max(var(--hyfid-space-6, 24px), calc((100% - var(--hyfid-layout-max-content, 1200px)) / 2)) clamp(24px, 3vw, 32px);
  background: var(--hyfid-chrome-bg, var(--hyfid-text-primary, #0E1116));
  color: var(--hyfid-chrome-text, var(--hyfid-surface-canvas, #F4F1EB));
  box-shadow: var(--hyfid-elevation-chrome, 0 18px 54px -14px rgba(42, 39, 34, 0.42));
}

.hyfid-wallet-home-hero::after {
  display: none;
}

.hyfid-wallet-home-hero__content {
  position: relative;
  z-index: 1;
}

.hyfid-wallet-home-hero__copy {
  display: grid;
  gap: var(--hyfid-space-3, 12px);
  max-width: 690px;
}

.hyfid-wallet-home-hero .hyfid-brand-lockup {
  background: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 8%, transparent);
  border-color: color-mix(in srgb, var(--hyfid-chrome-text, #F1EEE8) 16%, transparent);
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.78));
}

.hyfid-wallet-home-hero .hyfid-brand-context,
.hyfid-wallet-home-hero .hyfid-text--eyebrow,
.hyfid-wallet-home-hero .hyfid-text--muted {
  color: var(--hyfid-chrome-text-muted, rgba(241, 238, 232, 0.72));
}

.hyfid-wallet-home-hero .hyfid-heading--page,
.hyfid-wallet-home-hero .hyfid-heading--display {
  color: var(--hyfid-chrome-text, #F1EEE8);
  max-width: 620px;
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  line-height: var(--hyfid-type-line-tight, 1.05);
}

.hyfid-wallet-zero-caption {
  margin: -4px 0 0;
  color: var(--hyfid-brand-action, #C9F24A);
  font-size: var(--hyfid-type-size-lg, 1rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-bold, 700);
  font-feature-settings: var(--hyfid-type-font-features, "calt", "cv11", "ss03"), "tnum";
}

.hyfid-wallet-home-hero .hyfid-wallet-controls {
  position: relative;
  z-index: 1;
  margin-top: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.hyfid-wallet-home-hero .hyfid-wallet-controls > .hyfid-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-width: 0;
}

.hyfid-wallet-home-hero .hyfid-wallet-controls .hyfid-search-field {
  min-width: 0;
}

.hyfid-wallet-home-hero .hyfid-wallet-controls .secondaryAction,
.hyfid-wallet-home-hero .hyfid-wallet-controls .primaryAction {
  white-space: nowrap;
}

.hyfid-wallet-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hyfid-space-5, 20px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hyfid-wallet-home-hero--loading .hyfid-heading--page,
.hyfid-wallet-home-hero--loading .hyfid-text--muted {
  max-width: 420px;
}

.hyfid-wallet-home-content {
  width: min(var(--hyfid-layout-max-content, 1200px), calc(100% - var(--hyfid-space-7, 32px)));
  margin: 0 auto;
  padding-top: 48px;
  display: grid;
  gap: var(--hyfid-space-7, 32px);
}

@media (max-width: 720px) {
  .hyfid-wallet-home-hero .hyfid-wallet-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.hyfid-wallet-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr));
  gap: var(--hyfid-space-6, 24px);
}

.hyfid-wallet-interstitial-shell {
  width: min(760px, calc(100% - var(--hyfid-space-7, 32px)));
  min-height: calc(100dvh - 120px);
  margin: var(--hyfid-space-7, 32px) auto var(--hyfid-space-9, 48px);
  display: grid;
  place-items: center;
}

.hyfid-wallet-interstitial-panel {
  width: 100%;
  box-sizing: border-box;
  display: grid;
  gap: var(--hyfid-space-5, 20px);
  padding: var(--hyfid-space-7, 32px);
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #D7D1C7) 72%, transparent);
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-overlay, 0 0 0 1px rgba(42, 39, 34, 0.10), 0 12px 32px -8px rgba(42, 39, 34, 0.22));
}

.hyfid-wallet-interstitial-header {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: var(--hyfid-space-5, 20px);
  align-items: flex-start;
}

.hyfid-wallet-interstitial-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  color: var(--hyfid-brand-secondary, #6B6258);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-bold, 700);
  white-space: nowrap;
}

.hyfid-wallet-interstitial-lockup .hyfid-lockup-mark {
  width: 18px;
  height: 18px;
}

.hyfid-wallet-interstitial-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--hyfid-space-2, 8px);
  padding-top: var(--hyfid-space-4, 16px);
  border-top: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #D7D1C7) 60%, transparent);
  text-align: center;
}

.hyfid-wallet-interstitial-footer .hyfid-brand-lockup {
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  font-weight: var(--hyfid-type-weight-bold, 700);
  color: var(--hyfid-brand-secondary, #6B6258);
  gap: var(--hyfid-space-2, 8px);
}

.hyfid-wallet-interstitial-footer .hyfid-lockup-mark {
  width: 20px;
  height: 20px;
}

[data-wallet-countdown] {
  text-align: center;
}

.hyfid-wallet-manual-code {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
  padding: var(--hyfid-space-4, 16px);
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #D7D1C7) 80%, transparent);
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-sunk, var(--hyfid-surface-muted, #F7F4EC));
}

.hyfid-wallet-manual-code strong {
  overflow-wrap: anywhere;
  color: var(--hyfid-brand-primary, #0E1116);
  font-size: var(--hyfid-type-size-2xl, 1.25rem);
  line-height: var(--hyfid-type-line-title, 1.2);
  font-family: var(--hyfid-type-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-variant-numeric: tabular-nums;
}

.hyfid-wallet-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: var(--hyfid-space-3, 12px);
}

.hyfid-wallet-actions .hyfid-wallet-continue-button {
  grid-column: 1 / -1;
}

.hyfid-wallet-actions form {
  display: contents;
}

.hyfid-wallet-platform-action {
  min-width: 0;
  min-height: 46px;
  padding: 0 var(--hyfid-space-4, 16px);
  display: inline-flex;
  gap: var(--hyfid-space-3, 12px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--hyfid-radius-control, var(--hyfid-brand-button-radius, 8px));
  border: 1px solid transparent;
  font-family: var(--hyfid-type-font-button, var(--hyfid-brand-button-font, inherit));
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  font-weight: var(--hyfid-type-weight-semibold, 600);
  text-decoration: none;
  cursor: pointer;
  background: rgb(17 17 17);
  color: rgb(255 255 255);
}

.hyfid-wallet-platform-action--google_wallet {
  background: rgb(26 115 232);
  border-color: rgb(21 88 176);
}

.hyfid-wallet-platform-action--apple_wallet {
  background: rgb(17 17 17);
  border-color: rgb(0 0 0);
}

.hyfid-wallet-platform-mark {
  min-width: 28px;
  min-height: 28px;
  padding: 0 var(--hyfid-space-2, 8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--hyfid-radius-mark, 6px);
  background: rgb(255 255 255);
  color: rgb(17 17 17);
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  font-weight: var(--hyfid-type-weight-heavy, 800);
  line-height: var(--hyfid-type-line-solid, 1);
}

.hyfid-wallet-platform-mark--google_wallet {
  color: rgb(26 115 232);
}

.hyfid-wallet-platform-mark--apple_wallet {
  min-width: 42px;
}

.hyfid-wallet-continue-button {
  background: var(--hyfid-brand-primary, #0E1116);
  color: rgb(255 255 255);
  box-shadow: inset 0 0 0 1px var(--hyfid-brand-primary, #0E1116);
}

.hyfid-wallet-continue-button:hover:not(:disabled) {
  background: color-mix(in srgb, var(--hyfid-brand-primary, #0E1116) 86%, var(--hyfid-brand-form-background, #fff));
}

.hyfid-wallet-summary-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  border: 1px solid color-mix(in srgb, var(--hyfid-brand-border, #D7D1C7) 72%, transparent);
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  background: var(--hyfid-surface-sunk, var(--hyfid-surface-muted, #F7F4EC));
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 120ms ease;
}

.hyfid-wallet-summary-row:hover {
  background: color-mix(in srgb, var(--hyfid-surface-sunk, #F7F4EC) 80%, var(--hyfid-brand-border, #D7D1C7));
}

.hyfid-wallet-summary-row__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--hyfid-radius-mark, 6px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hyfid-surface-avatar, #ECE8E0);
  box-shadow: var(--hyfid-elevation-avatar);
}

.hyfid-wallet-summary-row__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.hyfid-wallet-summary-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hyfid-wallet-summary-row__label {
  font-weight: var(--hyfid-type-weight-bold, 700);
  font-size: var(--hyfid-type-size-md, 0.9375rem);
  line-height: var(--hyfid-type-line-label, 1.25);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hyfid-wallet-summary-row__detail {
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
  color: var(--hyfid-brand-secondary, #6B6258);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hyfid-wallet-summary-row__chevron {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--hyfid-brand-secondary, #6B6258);
}

.hyfid-wallet-detail {
  position: fixed;
  inset: 0;
  z-index: var(--hyfid-z-overlay, 60);
  display: grid;
  place-items: center;
  padding: var(--hyfid-space-5, 20px);
}

.hyfid-wallet-detail__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--hyfid-overlay-scrim, rgba(14, 17, 22, 0.58));
  cursor: pointer;
}

.hyfid-wallet-detail__panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  height: min(780px, calc(100dvh - var(--hyfid-space-8, 40px)));
  max-height: min(780px, calc(100dvh - var(--hyfid-space-8, 40px)));
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-dialog, 8px);
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #FFFFFF));
  box-shadow: var(--hyfid-elevation-overlay, 0 0 0 1px rgba(42, 39, 34, 0.10), 0 12px 32px -8px rgba(42, 39, 34, 0.22));
}

.hyfid-wallet-detail__hero {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--hyfid-chrome-bg, var(--hyfid-text-primary, #0E1116));
}

.hyfid-wallet-detail__hero .hyfid-claim-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.hyfid-wallet-detail__content {
  min-width: 0;
  max-height: 100%;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: var(--hyfid-space-4, 16px);
  padding: var(--hyfid-space-6, 24px);
}

.hyfid-wallet-detail__close {
  position: absolute;
  top: var(--hyfid-space-3, 12px);
  right: var(--hyfid-space-3, 12px);
  z-index: 4;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-control, 8px);
  background: var(--hyfid-surface-panel, #FFFFFF);
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  cursor: pointer;
  font: var(--hyfid-type-weight-semibold, 600) var(--hyfid-type-size-sm, 0.8125rem)/var(--hyfid-type-line-solid, 1) var(--hyfid-type-font-button, var(--hyfid-brand-button-font, "Inter", "Segoe UI", system-ui, sans-serif));
}

.hyfid-wallet-detail-actions {
  display: grid;
  grid-template-columns: 1fr;
}

.hyfid-wallet-detail-actions form {
  display: contents;
}

.hyfid-wallet-detail-actions .primaryAction,
.hyfid-wallet-detail-actions .secondaryAction {
  width: 100%;
}

.hyfid-wallet-save-menu {
  width: 100%;
}

.hyfid-wallet-save-menu summary {
  list-style: none;
  cursor: pointer;
}

.hyfid-wallet-save-menu summary::-webkit-details-marker {
  display: none;
}

.hyfid-wallet-save-menu__options {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
  padding-top: var(--hyfid-space-2, 8px);
}

.hyfid-wallet-status-note {
  margin: 0;
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-surface, 8px);
  background: var(--hyfid-surface-muted, var(--hyfid-brand-scrolled, #F4F1EB));
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-body, 1.5);
  font-weight: var(--hyfid-type-weight-bold, 700);
}

.hyfid-wallet-terms-note {
  display: grid;
  gap: var(--hyfid-space-2, 8px);
  padding-top: var(--hyfid-space-3, 12px);
  border-top: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  font-size: var(--hyfid-type-size-sm, 0.8125rem);
}

.hyfid-wallet-terms-note p {
  margin: 0;
  color: var(--hyfid-text-muted, var(--hyfid-brand-secondary, #4A463F));
  line-height: var(--hyfid-type-line-body, 1.5);
}

@media (max-width: 560px) {
  .hyfid-wallet-home-shell {
    width: 100%;
    margin: 0 auto 36px;
  }

  .hyfid-wallet-home-hero {
    min-height: 0;
    padding: var(--hyfid-space-6, 24px) calc(var(--hyfid-space-3, 12px) - 2px) var(--hyfid-space-6, 24px);
  }

  .hyfid-wallet-home-hero .hyfid-wallet-controls {
    transform: none;
    gap: var(--hyfid-space-4, 16px);
  }

  .hyfid-wallet-home-hero .hyfid-wallet-controls > .hyfid-cluster {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hyfid-wallet-home-content {
    width: min(100%, calc(100% - var(--hyfid-space-5, 20px)));
    padding-top: 32px;
    gap: var(--hyfid-space-5, 20px);
  }

  .hyfid-wallet-home-hero .hyfid-heading--page,
  .hyfid-wallet-home-hero .hyfid-heading--display {
    font-size: clamp(2.25rem, 12vw, 3rem);
  }

  .hyfid-wallet-detail {
    padding: 0;
  }

  .hyfid-wallet-detail__panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 0;
  }

  .hyfid-wallet-detail__hero {
    min-height: 280px;
  }

  .hyfid-wallet-detail__content {
    max-height: none;
    padding: var(--hyfid-space-5, 20px);
  }

  .hyfid-wallet-interstitial-panel {
    padding: var(--hyfid-space-6, 24px);
  }

  .hyfid-wallet-interstitial-header {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .hyfid-wallet-home-hero .hyfid-wallet-controls > .hyfid-cluster {
    grid-template-columns: 1fr;
  }

  .hyfid-wallet-home-hero .hyfid-wallet-controls > .hyfid-cluster .primaryAction,
  .hyfid-wallet-home-hero .hyfid-wallet-controls > .hyfid-cluster .secondaryAction {
    width: 100%;
  }
}

.hyfid-coupon-skeleton-line {
  display: block;
  width: min(72%, 220px);
  height: 14px;
  border-radius: var(--hyfid-radius-round, 999px);
}

.hyfid-coupon-skeleton-line--short {
  width: 120px;
}

.hyfid-coupon-skeleton-line--wide {
  width: min(86%, 280px);
  height: 18px;
}

@media (max-width: 640px) {
  .hyfid-coupon-card__meta {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ─── Inline alert ────────────────────────────────────────────────────────── */

.hyfid-inline-alert {
  display: flex;
  gap: var(--hyfid-space-3, 12px);
  padding: var(--hyfid-space-3, 12px) var(--hyfid-space-4, 16px);
  border-radius: var(--hyfid-radius-surface, var(--hyfid-brand-radius, 8px));
  font-size: var(--hyfid-type-size-md, 0.875rem);
  line-height: var(--hyfid-type-line-body, 1.5);
}
.hyfid-inline-alert--info {
  background: var(--hyfid-status-info-bg, color-mix(in srgb, #2A6BD9 8%, var(--hyfid-brand-form-background, #fff)));
  border: 1px solid var(--hyfid-status-info-border, color-mix(in srgb, #2A6BD9 28%, transparent));
  color: var(--hyfid-status-info, #2A6BD9);
}
.hyfid-inline-alert--success {
  background: var(--hyfid-status-success-bg, color-mix(in srgb, var(--hyfid-brand-success, #1F8A55) 8%, var(--hyfid-brand-form-background, #fff)));
  border: 1px solid var(--hyfid-status-success-border, color-mix(in srgb, var(--hyfid-brand-success, #1F8A55) 28%, transparent));
  color: var(--hyfid-brand-success, #1F8A55);
}
.hyfid-inline-alert--warning {
  background: var(--hyfid-status-warning-bg, color-mix(in srgb, #d4890a 8%, var(--hyfid-brand-form-background, #fff)));
  border: 1px solid var(--hyfid-status-warning-border, color-mix(in srgb, #d4890a 28%, transparent));
  color: var(--hyfid-status-warning, #8a5800);
}
.hyfid-inline-alert--error {
  background: var(--hyfid-status-error-bg, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 8%, var(--hyfid-brand-form-background, #fff)));
  border: 1px solid var(--hyfid-status-error-border, color-mix(in srgb, var(--hyfid-brand-error, #B83A2C) 28%, transparent));
  color: var(--hyfid-brand-error, #B83A2C);
}
[data-hyfid-color-mode="dark"] .hyfid-inline-alert--info {
  background: rgba(122, 168, 255, 0.14);
  border-color: rgba(122, 168, 255, 0.30);
  color: #AFC6FF;
}
[data-hyfid-color-mode="dark"] .hyfid-inline-alert--success {
  background: rgba(95, 219, 154, 0.14);
  border-color: rgba(95, 219, 154, 0.30);
  color: #8EF0B7;
}
[data-hyfid-color-mode="dark"] .hyfid-inline-alert--warning {
  background: rgba(244, 184, 74, 0.16);
  border-color: rgba(244, 184, 74, 0.34);
  color: #FFD27A;
}
[data-hyfid-color-mode="dark"] .hyfid-inline-alert--error {
  background: rgba(255, 116, 102, 0.14);
  border-color: rgba(255, 116, 102, 0.34);
  color: #FF9A90;
}

/* ─── Modal / overlay ─────────────────────────────────────────────────────── */

.hyfid-modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--hyfid-overlay-scrim, rgba(14, 17, 22, 0.58));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--hyfid-z-overlay, 60);
  padding: var(--hyfid-space-4, 16px);
}
.hyfid-modal {
  background: var(--hyfid-surface-panel, var(--hyfid-brand-form-background, #fff));
  border: 1px solid var(--hyfid-surface-border, var(--hyfid-brand-border, #E3DED4));
  border-radius: var(--hyfid-radius-dialog, var(--hyfid-brand-radius, 8px));
  padding: var(--hyfid-space-7, 32px);
  max-width: 520px;
  width: 100%;
  box-shadow: var(--hyfid-elevation-overlay, 0 0 0 1px rgba(42, 39, 34, 0.10), 0 12px 32px -8px rgba(42, 39, 34, 0.22));
}
.hyfid-modal-title {
  font-size: var(--hyfid-type-size-xl, 1.125rem);
  font-weight: var(--hyfid-type-weight-semibold, 600);
  line-height: var(--hyfid-type-line-title, 1.2);
  color: var(--hyfid-brand-primary, #0E1116);
  margin: 0 0 var(--hyfid-space-2, 8px);
}
.hyfid-modal-body {
  color: var(--hyfid-brand-secondary, #4A463F);
  font-size: var(--hyfid-type-size-base, 0.9375rem);
  line-height: var(--hyfid-type-line-copy, 1.55);
  margin: 0 0 var(--hyfid-space-6, 24px);
}
.hyfid-modal-actions {
  display: flex;
  gap: var(--hyfid-space-3, 12px);
  justify-content: flex-end;
}
@media (max-width: 480px) {
  .hyfid-modal {
    padding: var(--hyfid-space-5, 20px);
  }
  .hyfid-modal-actions {
    flex-direction: column;
  }
}

.hyfid-card:hover {
  box-shadow: var(--hyfid-elevation-raised);
}

.hyfid-choice-card:hover {
  box-shadow: var(--hyfid-elevation-raised);
}

.hyfid-feature-card:hover {
  box-shadow: var(--hyfid-elevation-raised);
}

.hyfid-redemption-card:hover {
  box-shadow: var(--hyfid-elevation-raised);
}

.hyfid-card--hero .hyfid-feature-card,
.hyfid-card--hero .hyfid-feature-card:hover {
  box-shadow: var(--hyfid-elevation-chrome);
}
