:root {
  --bg0: #f3efe7;
  --bg1: #fbf8f2;
  --panel: rgba(240, 244, 248, 0.08);
  --panel2: rgba(240, 244, 248, 0.14);
  --line: rgba(255, 255, 255, 0.12);
  --line-blue: rgba(112, 145, 171, 0.28);
  --line-blue-soft: rgba(172, 201, 224, 0.08);
  --ink: #4b5f6f;
  --ink-strong: #243747;
  --muted: #607282;
  --heading-ink: #607282;
  --accent: #d1b65f;
  --accent2: #5d778b;
  --ok: #90ae98;
  --bad: #b6888f;
  --button-fill: rgba(87, 118, 144, 0.18);
  --button-fill-strong: rgba(92, 126, 154, 0.24);
  --brand-wordmark: #ea3a1a;
  --signal-gradient: linear-gradient(90deg, rgba(95, 120, 139, 0.94), rgba(141, 160, 174, 0.82));
  --brand-pop: #86685d;
  --brand-pop-soft: #95776b;
  --brand-pop-line: linear-gradient(90deg, rgba(134, 104, 93, 0.94), rgba(149, 119, 107, 0.82));
  --warm-ink: #5f5130;
  --warm-muted: #75694a;
  --warm-fill-top: rgba(232, 216, 166, 0.24);
  --warm-fill-bottom: rgba(214, 193, 133, 0.12);
  --warm-fill-strong-top: rgba(244, 231, 189, 0.94);
  --warm-fill-strong-bottom: rgba(226, 206, 149, 0.8);
  --warm-line: rgba(188, 166, 104, 0.48);
  --warm-line-soft: rgba(188, 166, 104, 0.28);
  --warm-shadow: 0 12px 26px rgba(140, 119, 60, 0.1);
  --warm-shadow-soft: 0 10px 22px rgba(140, 119, 60, 0.08);
  --info-ink: #5b7183;
  --info-icon: #6b8294;
  --info-fill-top: rgba(102, 128, 148, 0.14);
  --info-fill-bottom: rgba(118, 144, 163, 0.1);
  --info-line: rgba(112, 145, 171, 0.24);
  --success-ink: #355744;
  --success-fill-top: rgba(154, 198, 171, 0.46);
  --success-fill-bottom: rgba(129, 175, 148, 0.28);
  --success-line: rgba(103, 148, 121, 0.54);
  --success-shadow: 0 10px 24px rgba(61, 95, 73, 0.12);
  --danger-ink: #694149;
  --danger-fill-top: rgba(206, 154, 160, 0.44);
  --danger-fill-bottom: rgba(179, 125, 132, 0.26);
  --danger-line: rgba(157, 98, 107, 0.5);
  --danger-shadow: 0 10px 24px rgba(102, 62, 69, 0.1);
  --panel-shadow-soft: 0 10px 24px rgba(1, 8, 16, 0.14);
  --space-panel: 24px;
  --space-card: 20px;
  --space-section: 18px;
  --space-stack: 16px;
  --space-surface: 16px;
  --space-compact: 12px;
  --shadow: 0 26px 70px rgba(1, 8, 16, 0.34);
  --season-image: none;
  --season-image-size: auto auto;
  --season-image-position: center bottom;
  --season-top-solid: 0px;
  --season-top-clear: 0px;
  --season-left-solid: 0px;
  --season-left-clear: 0px;
  --season-right-solid: 0px;
  --season-right-clear: 0px;
  --season-corner-inner: 0px;
  --season-corner-radius: 0px;
  --season-image-wash: rgba(255, 255, 255, 0.16);
  --season-fade-solid: rgba(255, 255, 255, 1);
  --season-fade-clear: rgba(255, 255, 255, 0);
  --r: 20px;
  --r2: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--body-bg, #f6f2ea);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(ellipse at left top, var(--season-fade-solid) 0px, var(--season-fade-solid) var(--season-corner-inner), var(--season-fade-clear) var(--season-corner-radius)),
    radial-gradient(ellipse at right top, var(--season-fade-solid) 0px, var(--season-fade-solid) var(--season-corner-inner), var(--season-fade-clear) var(--season-corner-radius)),
    linear-gradient(180deg, var(--season-fade-solid) 0px, var(--season-fade-solid) var(--season-top-solid), var(--season-fade-clear) var(--season-top-clear)),
    radial-gradient(ellipse at center top, rgba(255, 255, 255, 0.38) 0px, rgba(255, 255, 255, 0.22) var(--season-top-solid), rgba(255, 255, 255, 0) var(--season-top-clear)),
    linear-gradient(90deg, var(--season-fade-solid) 0px, var(--season-fade-solid) var(--season-left-solid), var(--season-fade-clear) var(--season-left-clear)),
    linear-gradient(270deg, var(--season-fade-solid) 0px, var(--season-fade-solid) var(--season-right-solid), var(--season-fade-clear) var(--season-right-clear)),
    linear-gradient(180deg, var(--season-image-wash), var(--season-image-wash)),
    var(--season-image),
    radial-gradient(circle at 14% 10%, rgba(141, 176, 198, 0.14), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(228, 196, 91, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, var(--season-image-size), auto, auto, auto;
  background-position: left top, right top, center top, center top, left top, right top, center top, var(--season-image-position), 14% 10%, 84% 18%, center top;
  background-attachment: fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed, fixed;
}

button,
input,
select {
  font: inherit;
}

button {
  appearance: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(96px);
  opacity: 0.14;
}

body::before {
  top: -8rem;
  left: -7rem;
  background: rgba(127, 157, 177, 0.12);
}

body::after {
  right: -8rem;
  bottom: -12rem;
  background: rgba(209, 182, 95, 0.1);
}

.app-shell {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-icon {
  display: inline-block;
  flex: 0 0 auto;
  height: 1em;
  width: auto;
  min-width: 1em;
  overflow: visible;
  vertical-align: -0.125em;
  fill: currentColor;
}

.main {
  margin-top: var(--space-card);
}

.main--content-enter {
  animation: mainContentEnter 260ms ease both;
}

.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line-blue);
  border-radius: var(--r2);
  box-shadow:
    var(--panel-shadow-soft),
    inset 0 0 0 1px var(--line-blue-soft);
  backdrop-filter: blur(18px);
}

.fade-up {
  animation: fadeUp 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.topbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px var(--space-panel);
  box-shadow:
    var(--panel-shadow-soft),
    inset 0 0 0 1px var(--line-blue-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: auto;
  height: clamp(62px, 8.2vw, 84px);
  max-width: min(42vw, 240px);
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.brand-copy h1,
.hero h2,
.card-head h3,
.onboarding h2,
.question-focus {
  margin: 0;
  color: var(--heading-ink);
  line-height: 1.18;
}

.brand-copy h1 {
  color: var(--brand-wordmark);
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  -webkit-text-stroke: 1.2px rgba(22, 16, 14, 0.58);
  text-shadow: 0 1px 3px rgba(17, 12, 10, 0.2), 0 0 4px rgba(17, 12, 10, 0.08);
}

.brand-copy {
  display: grid;
  align-content: center;
  gap: 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.71rem;
}

.topbar-mid {
  min-width: 0;
  text-align: right;
  justify-self: end;
  justify-items: end;
  align-content: center;
  display: grid;
  gap: 4px;
}

.greeting-line,
.status-line,
.muted,
.message {
  margin: 0;
}

.greeting-line {
  color: var(--ink-strong);
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.28;
  letter-spacing: -0.015em;
}

.status-line,
.muted,
.message {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.status-line {
  color: var(--warm-muted);
  justify-self: end;
  line-height: 1.36;
}

.meta-row,
.slide-progress,
.actions,
.feedback-row {
  display: flex;
  align-items: center;
}

.feedback-row {
  gap: var(--space-compact);
}

.meta-row {
  flex-wrap: wrap;
  gap: 8px;
}

.card-stack,
.auth-layout,
.stack,
.hero,
.auth-card,
.onboarding,
.progress-card,
.practice-card,
.profile-card,
.question-shell,
.progress-mini-grid {
  display: grid;
  gap: var(--space-card);
}

.hero,
.auth-card,
.onboarding,
.progress-card,
.practice-card,
.profile-card {
  padding: var(--space-panel);
}

.auth-layout {
  align-items: stretch;
}

.hero h2 {
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero p + p {
  margin-top: 2px;
}

.stack label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.5;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  color: var(--ink-strong);
  background: rgba(6, 14, 25, 0.34);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input[type="range"] {
  min-height: auto;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

input[type="range"]:focus {
  border: 0;
  box-shadow: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(106, 129, 147, 0.2), rgba(143, 165, 181, 0.12));
  box-shadow: inset 0 1px 2px rgba(14, 26, 38, 0.12);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(106, 129, 147, 0.2), rgba(143, 165, 181, 0.12));
  box-shadow: inset 0 1px 2px rgba(14, 26, 38, 0.12);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  border: 1px solid rgba(104, 129, 149, 0.42);
  background: linear-gradient(180deg, rgba(241, 245, 248, 0.98), rgba(193, 206, 216, 0.96));
  box-shadow:
    0 6px 18px rgba(1, 8, 16, 0.18),
    0 0 0 3px rgba(255, 255, 255, 0.08);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(104, 129, 149, 0.42);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(241, 245, 248, 0.98), rgba(193, 206, 216, 0.96));
  box-shadow:
    0 6px 18px rgba(1, 8, 16, 0.18),
    0 0 0 3px rgba(255, 255, 255, 0.08);
}

input:focus {
  border-color: rgba(228, 196, 91, 0.5);
  box-shadow: 0 0 0 4px rgba(228, 196, 91, 0.12);
}

.primary-button,
.ghost-button,
.option-button,
.nav-button,
.chip {
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.primary-button,
.ghost-button,
.option-button,
.chip {
  padding: 12px 16px;
}

.primary-button {
  border: 1px solid rgba(188, 166, 104, 0.42);
  background: linear-gradient(180deg, rgba(232, 216, 166, 0.78), rgba(214, 193, 133, 0.6));
  color: var(--warm-ink);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.18),
    var(--warm-shadow-soft);
}

.ghost-button,
.chip {
  color: var(--ink);
  background: linear-gradient(180deg, var(--button-fill-strong), var(--button-fill));
  border: 1px solid rgba(112, 145, 171, 0.26);
  box-shadow: inset 0 1px 0 rgba(196, 217, 233, 0.05);
}

.chip.active {
  background: linear-gradient(180deg, rgba(232, 216, 166, 0.52), rgba(214, 193, 133, 0.32));
  border-color: var(--warm-line-soft);
  color: var(--warm-ink);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.12);
}

.auth-hero-copy {
  display: grid;
  align-content: start;
  gap: var(--space-section);
  min-width: 0;
  min-height: 100%;
}

.auth-section-eyebrow {
  margin: 0;
}

.auth-section-title {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.auth-section-title--primary {
  font-size: clamp(1.2rem, 3.2vw, 1.7rem);
}

.auth-section-title--secondary {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.38;
}

.hero .auth-section-title,
.auth-card .auth-section-title {
  color: var(--ink-strong);
}


.hero,
.auth-card,
.auth-form {
  min-height: 100%;
  align-content: start;
}

.hero .eyebrow,
.auth-card label span {
  color: var(--warm-muted);
}

.hero .muted {
  color: var(--warm-ink);
  max-width: none;
}

.auth-hero-sections {
  display: grid;
  gap: 32px;
  margin-top: 14px;
}

.auth-hero-section {
  display: grid;
  gap: var(--space-section);
}

.auth-hero-section .eyebrow {
  margin: 0;
  color: var(--warm-muted);
}

.auth-hero-section .auth-section-title,
.auth-card .auth-section-title--secondary {
  color: var(--ink-strong);
}

.auth-section-copy {
  margin: 0;
}

.auth-card label {
  gap: 8px;
  min-width: 0;
}

.auth-form {
  gap: var(--space-section);
  min-width: 0;
}

.auth-form-actions {
  display: grid;
  gap: 0;
  margin-top: 0;
  min-width: 0;
}

.auth-switch-button {
  margin-top: 0;
}

.auth-card input,
#customVocabForm input,
#accountForm input,
.profile-password-form input {
  min-width: 0;
  border-color: var(--warm-line-soft);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  color: var(--warm-ink);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.auth-layout > *,
.auth-card > *,
.hero > * {
  min-width: 0;
}

.auth-form .primary-button,
.auth-form .ghost-button {
  width: 100%;
  max-width: 100%;
}

.public-hero-cta {
  margin-top: auto;
}

.public-hero-cta-button {
  min-height: 112px;
}

.public-landing-hero {
  display: flex;
}

.public-landing-hero .auth-hero-copy {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
}

.public-bullet-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.public-bullet-list li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.public-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: currentColor;
}

.auth-card input::placeholder,
#customVocabForm input::placeholder,
#accountForm input::placeholder,
.profile-password-form input::placeholder {
  color: var(--warm-muted);
}

.auth-card input:-webkit-autofill,
.auth-card input:-webkit-autofill:hover,
.auth-card input:-webkit-autofill:focus,
#customVocabForm input:-webkit-autofill,
#customVocabForm input:-webkit-autofill:hover,
#customVocabForm input:-webkit-autofill:focus,
#accountForm input:-webkit-autofill,
#accountForm input:-webkit-autofill:hover,
#accountForm input:-webkit-autofill:focus,
.profile-password-form input:-webkit-autofill,
.profile-password-form input:-webkit-autofill:hover,
.profile-password-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--warm-ink);
  box-shadow: 0 0 0 1000px rgba(232, 216, 166, 0.2) inset, inset 0 1px 0 rgba(255, 248, 228, 0.08);
  transition: background-color 9999s ease-out 0s;
}

.auth-card input:focus,
#customVocabForm input:focus,
#accountForm input:focus,
.profile-password-form input:focus {
  border-color: rgba(188, 166, 104, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.12),
    0 0 0 4px rgba(188, 166, 104, 0.12);
}

.auth-card label.is-error span,
#accountForm label.is-error span,
.profile-password-form label.is-error span {
  color: var(--danger-ink);
}

.auth-card input.is-error,
#customVocabForm input.is-error,
#accountForm input.is-error,
.profile-password-form input.is-error {
  border-color: var(--danger-line);
  background: linear-gradient(180deg, var(--danger-fill-top), var(--danger-fill-bottom));
  color: var(--danger-ink);
  box-shadow:
    inset 0 1px 0 rgba(252, 239, 241, 0.18),
    0 0 0 4px rgba(157, 98, 107, 0.12);
}

.auth-card input.is-error:focus,
#customVocabForm input.is-error:focus,
#accountForm input.is-error:focus,
.profile-password-form input.is-error:focus {
  border-color: var(--danger-line);
  box-shadow:
    inset 0 1px 0 rgba(252, 239, 241, 0.22),
    0 0 0 4px rgba(157, 98, 107, 0.16);
}

.auth-card .primary-button,
.auth-card .ghost-button,
.onboarding .actions .ghost-button,
.onboarding .actions .primary-button,
.profile-form .primary-button,
.support-page-actions .primary-button,
.help-button,
.report-button {
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--warm-line-soft);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  color: var(--warm-ink);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.10),
    inset 0 1px 0 rgba(255, 248, 228, 0.08);
  transition:
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 160ms ease,
    min-height 220ms ease,
    padding 220ms ease;
}

.auth-card .primary-button,
.auth-card .ghost-button,
.onboarding .actions .ghost-button,
.onboarding .actions .primary-button,
.profile-form .primary-button,
.support-page-actions .primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}

.auth-card .primary-button,
.auth-card .ghost-button {
  width: 100%;
}

.auth-card .primary-button:hover,
.auth-card .ghost-button:hover,
.auth-card .primary-button.is-engaged,
.auth-card .ghost-button.is-engaged,
.onboarding .actions .ghost-button:hover,
.onboarding .actions .primary-button:hover,
.profile-form .primary-button:hover,
.support-page-actions .primary-button:hover {
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.16),
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}
.auth-form .message {
  min-height: 0;
}

.auth-form .message:empty {
  display: none;
}

.onboarding-shell {
  min-height: auto;
}

.onboarding {
  min-height: 0;
  padding: 20px 22px;
  gap: 18px;
  grid-template-rows: auto 1fr auto;
}

.onboarding-head {
  display: grid;
  gap: 8px;
}

.slide-progress {
  display: block;
}

.slide-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.slide-track {
  position: relative;
  min-height: 248px;
  height: 248px;
  transition: height 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-page {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  gap: var(--space-stack);
  width: 100%;
  pointer-events: none;
  z-index: 1;
  background: transparent;
  border-radius: 0;
}

.slide-page > * {
  position: relative;
  z-index: 1;
}

.slide-page.is-enter-forward,
.slide-page.is-enter-back {
  z-index: 2;
}

.slide-page:last-child {
  pointer-events: auto;
}

.slide-page-content {
  display: grid;
  align-content: start;
  gap: var(--space-stack);
}

.slide-page-content h2 {
  max-width: none;
  color: var(--heading-ink);
}

.setup-block {
  display: grid;
  gap: var(--space-section);
}

.setup-block-title {
  color: var(--warm-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.onboarding .setup-range-stack.panel-surface,
.profile-form .setup-range-stack.panel-surface {
  padding: var(--space-surface) var(--space-section);
  gap: var(--space-compact);
}

.actions {
  justify-content: stretch;
  gap: var(--space-compact);
}

.onboarding .actions .ghost-button,
.onboarding .actions .primary-button {
  flex: 1 1 0;
  min-width: 0;
}
.dashboard,
.card-stack {
  gap: var(--space-card);
}

.practice-card,
.progress-card,
.profile-card {
  position: relative;
}

.practice-card.panel,
.progress-card.panel,
.profile-card.panel {
  isolation: isolate;
  border: 1px solid var(--line-blue);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(240, 244, 248, 0.16), rgba(240, 244, 248, 0.04));
  box-shadow:
    0 18px 42px rgba(1, 8, 16, 0.18),
    inset 0 0 0 1px var(--line-blue-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(36px) saturate(1.24);
  -webkit-backdrop-filter: blur(36px) saturate(1.24);
}

.practice-card.panel::before,
.progress-card.panel::before,
.profile-card.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.03));
}

.practice-card.panel::after,
.progress-card.panel::after,
.profile-card.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 24px 42px rgba(255, 255, 255, 0.10);
}

.practice-card.panel > *,
.progress-card.panel > *,
.profile-card.panel > * {
  position: relative;
  z-index: 1;
}

.practice-card {
  gap: 28px;
  overflow: visible;
}

.progress-card,
.profile-card {
  overflow: hidden;
}

.profile-card {
  gap: var(--space-panel);
}

.practice-head,
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.practice-body {
  min-height: 340px;
  display: grid;
  align-content: start;
  position: relative;
  overflow: visible;
}

.practice-body.swap-out .question-shell {
  animation: questionSwap 160ms ease reverse both;
}

.practice-body.swap-in .question-shell {
  animation: questionSwap 240ms ease both;
}

.pill,
.mini-status,
.feedback-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 34px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
}

.pill {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--warm-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid var(--warm-line);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}

.pill-mode,
.pill-level,
.pill-domain {
  border-width: 1px;
  border-style: solid;
}

.mini-status {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.question-shell {
  gap: 28px;
}

.question-intro {
  display: grid;
  gap: 3px;
  align-content: start;
}

.question-shell--phrase .question-intro {
  gap: var(--space-compact);
}

.question-support {
  width: 100%;
  display: grid;
  gap: 12px;
}

.question-focus {
  max-width: none;
  font-size: clamp(2.25rem, 8.6vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

.question-shell--phrase .question-focus {
  max-width: none;
  font-size: clamp(2rem, 6.7vw, 2.95rem);
  line-height: 1.18;
  letter-spacing: -0.028em;
}


.question-focus--long {
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.14;
}

.question-focus--phrase-lg {
  font-size: clamp(1.66rem, 5.3vw, 2.35rem);
  line-height: 1.16;
}

.question-focus--phrase-xl {
  font-size: clamp(1.44rem, 4.8vw, 2.02rem);
  line-height: 1.2;
}

.question-focus--loading {
  font-size: clamp(1.4rem, 4.4vw, 1.95rem);
  line-height: 1.18;
  letter-spacing: -0.024em;
}

.question-helper,
.question-prompt,
.example-line {
  margin: 0;
}

.question-prompt {
  max-width: none;
  color: var(--warm-ink);
  font-size: 1rem;
  line-height: 1.72;
  text-wrap: pretty;
}

.question-shell--phrase .question-prompt {
  max-width: none;
}

.question-helper {
  max-width: none;
  color: var(--warm-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.question-helper--challenge {
  color: var(--warm-ink);
}

.example-line {
  color: var(--muted);
  line-height: 1.7;
}

.help-button {
  width: 100%;
  display: block;
  text-align: left;
}

.help-button.is-open {
  padding: var(--space-card);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.16),
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}

.help-button-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.help-button-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-stack);
}

.help-button-title {
  color: var(--warm-ink);
  font-weight: 600;
}

.help-button-subtitle {
  color: var(--warm-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.help-chevron {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--warm-line-soft);
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.10),
    inset 0 1px 0 rgba(255, 248, 228, 0.08);
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.help-chevron svg {
  width: 16px;
  height: 16px;
}

.help-button.is-open .help-chevron {
  transform: rotate(180deg);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.16),
    inset 0 1px 0 rgba(255, 248, 228, 0.20);
}

.help-example {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  color: var(--muted);
  line-height: 1.7;
  transition:
    max-height 240ms ease,
    opacity 220ms ease,
    transform 220ms ease,
    margin-top 220ms ease;
}

.help-button.is-open .help-example {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}

.report-button {
  width: 100%;
  min-height: 54px;
  display: block;
  text-align: left;
  background: linear-gradient(180deg, rgba(232, 216, 166, 0.52), rgba(214, 193, 133, 0.38));
  border-color: rgba(188, 166, 104, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.12),
    inset 0 1px 0 rgba(255, 248, 228, 0.14);
}

.report-button-copy-wrap {
  display: grid;
  gap: 4px;
  text-align: left;
}

.report-button-glyph {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--warm-line-soft);
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 228, 0.10),
    inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.report-button-glyph svg {
  height: 16px;
  min-width: 16px;
}

.report-button-glyph .report-button-spinner {
  width: 16px;
  height: 16px;
}

.report-button-copy {
  color: var(--warm-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.question-answer-form {
  display: grid;
  gap: var(--space-compact);
}

.question-answer-input {
  width: 100%;
  min-height: calc((1.55em * 2) + 30px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(112, 145, 171, 0.24);
  background: linear-gradient(180deg, rgba(92, 126, 154, 0.16), rgba(87, 118, 144, 0.1));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(196, 217, 233, 0.08);
  line-height: 1.55;
  resize: none;
  overflow-y: auto;
  field-sizing: content;
}

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

.question-answer-input:focus {
  border-color: rgba(112, 145, 171, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(196, 217, 233, 0.12),
    0 0 0 4px rgba(112, 145, 171, 0.12);
}

.question-answer-input.is-error,
.question-answer-input.is-wrong {
  border-color: var(--danger-line);
  background: linear-gradient(180deg, var(--danger-fill-top), var(--danger-fill-bottom));
  color: var(--danger-ink);
  box-shadow:
    inset 0 1px 0 rgba(252, 239, 241, 0.18),
    0 0 0 4px rgba(157, 98, 107, 0.12);
}

.question-answer-input.is-correct {
  border-color: var(--success-line);
  background: linear-gradient(180deg, var(--success-fill-top), var(--success-fill-bottom));
  color: var(--success-ink);
  box-shadow:
    inset 0 1px 0 rgba(238, 246, 240, 0.18),
    0 0 0 4px rgba(103, 148, 121, 0.10);
}

.question-answer-input[disabled] {
  opacity: 1;
}

.question-answer-submit {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(112, 145, 171, 0.24);
  background: linear-gradient(180deg, rgba(92, 126, 154, 0.16), rgba(87, 118, 144, 0.1));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(196, 217, 233, 0.08);
}

.question-answer-submit:hover,
.question-answer-submit:focus-visible {
  background: linear-gradient(180deg, rgba(102, 136, 164, 0.22), rgba(87, 118, 144, 0.14));
  border-color: rgba(112, 145, 171, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(196, 217, 233, 0.12),
    0 0 0 4px rgba(112, 145, 171, 0.10);
}

.question-answer-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.options {
  display: grid;
  gap: var(--space-compact);
}

.options--delayed {
  opacity: 0.8;
  transform: translateY(1px);
  filter: blur(6px) saturate(0.97);
  pointer-events: none;
  transition:
    opacity 1000ms ease-in,
    transform 1000ms ease-in,
    filter 1000ms ease-in;
}

.options--delayed.is-waiting {
  opacity: 0.8;
  transform: translateY(1px);
  filter: blur(6px) saturate(0.97);
  pointer-events: none;
}

.options--delayed.is-revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0) saturate(1);
  pointer-events: auto;
}

.option-button {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(92, 126, 154, 0.16), rgba(87, 118, 144, 0.1));
  border: 1px solid rgba(112, 145, 171, 0.24);
  border-radius: 18px;
}

.option-button.correct {
  color: var(--success-ink);
  border-color: var(--success-line);
  box-shadow:
    inset 0 0 0 1px rgba(144, 174, 152, 0.34),
    var(--success-shadow);
  background: linear-gradient(180deg, var(--success-fill-top), var(--success-fill-bottom));
}

.option-button.wrong {
  color: var(--danger-ink);
  border-color: var(--danger-line);
  box-shadow:
    inset 0 0 0 1px rgba(182, 136, 143, 0.3),
    var(--danger-shadow);
  background: linear-gradient(180deg, var(--danger-fill-top), var(--danger-fill-bottom));
}

.option-button--locked {
  cursor: default;
  opacity: 1;
}

.option-button--locked.correct,
.option-button--locked.wrong {
  transform: none;
}

.word-line-shake {
  animation: shakeSoft 320ms ease;
}

.feedback-row {
  width: 100%;
}

.feedback-row:empty {
  display: none;
}

.feedback-row:not(:empty) {
  display: block;
  animation: fadeUp 220ms ease both;
}

.feedback-chip {
  width: 100%;
  min-height: 84px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 4px;
  padding: 15px 16px;
  border-radius: 18px;
}

.feedback-chip strong {
  color: var(--ink-strong);
  font-size: 1.04rem;
  line-height: 1.32;
}

.feedback-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.feedback-copy {
  color: var(--warm-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feedback-chip.ok {
  background: linear-gradient(180deg, var(--success-fill-top), var(--success-fill-bottom));
  border-color: var(--success-line);
  box-shadow:
    inset 0 1px 0 rgba(240, 251, 244, 0.22),
    var(--success-shadow);
}

.feedback-chip.ok strong,
.feedback-chip.ok .feedback-label,
.feedback-chip.ok .feedback-copy {
  color: var(--success-ink);
}

.feedback-chip.bad {
  background: linear-gradient(180deg, var(--danger-fill-top), var(--danger-fill-bottom));
  border-color: var(--danger-line);
  box-shadow:
    inset 0 1px 0 rgba(252, 239, 241, 0.18),
    var(--danger-shadow);
}

.feedback-chip.bad strong,
.feedback-chip.bad .feedback-label,
.feedback-chip.bad .feedback-copy {
  color: var(--danger-ink);
}

.progress-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-compact);
}

.metric {
  padding: var(--space-card);
  border-radius: var(--r);
  border: 1px solid rgba(145, 169, 186, 0.12);
  background: linear-gradient(180deg, rgba(240, 244, 248, 0.08), rgba(240, 244, 248, 0.02));
  box-shadow:
    inset 0 0 0 1px rgba(172, 201, 224, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.metric > span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.metric strong {
  display: block;
  margin-top: 10px;
  color: var(--ink-strong);
  font-size: 1.58rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.metric-new {
  border-color: rgba(145, 169, 186, 0.2);
  background: linear-gradient(180deg, rgba(220, 232, 242, 0.16), rgba(204, 220, 232, 0.06));
}

.metric-review {
  border-color: rgba(145, 169, 186, 0.2);
  background: linear-gradient(180deg, rgba(220, 232, 242, 0.16), rgba(204, 220, 232, 0.06));
}

.metric-accuracy {
  border-color: rgba(188, 166, 104, 0.22);
  background: linear-gradient(180deg, rgba(232, 216, 166, 0.16), rgba(214, 193, 133, 0.06));
}

.metric-accuracy > span {
  color: var(--warm-muted);
}

.metric-accuracy strong {
  color: var(--warm-ink);
}


.star-rating {
  --rating-fill: 0%;
  position: relative;
  display: inline-grid;
  align-items: end;
  height: calc(1.58rem * 1.2);
  min-height: calc(1.58rem * 1.2);
  margin-top: 10px;
  align-self: start;
  width: max-content;
  line-height: 1;
  overflow: visible;
}

.star-rating-base,
.star-rating-fill,
.star-rating-fill-clip {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  grid-area: 1 / 1;
  overflow: visible;
  line-height: inherit;
  height: calc(1.58rem * 1.2);
}

.star-rating-base {
  color: rgba(117, 105, 74, 0.28);
}

.star-rating-fill-clip {
  width: var(--rating-fill);
  overflow: hidden;
}

.star-rating-fill {
  color: var(--warm-ink);
}

.star-rating-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: 0 0 auto;
  overflow: visible;
}
.progress-track,
.progress-line {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(121, 140, 149, 0.15), rgba(161, 176, 184, 0.1));
  box-shadow: inset 0 1px 2px rgba(14, 26, 38, 0.12);
}

.progress-bar,
.progress-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(132, 164, 144, 0.92), rgba(164, 192, 174, 0.84));
  box-shadow:
    inset 0 0 0 1px rgba(118, 149, 130, 0.34),
    0 1px 4px rgba(120, 149, 129, 0.12);
}

.progress-line--loading {
  margin-top: var(--space-section);
}

.progress-fill--indeterminate {
  width: 42%;
  transform: translateX(-115%);
  transform-origin: center;
  animation: progressIndeterminate 1400ms ease-in-out infinite;
}

.profile-card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--heading-ink);
}

.message {
  min-height: 22px;
}

.message.is-error {
  color: var(--danger-ink);
}

.hidden {
  display: none !important;
}

.site-meta-stack {
  position: relative;
  isolation: isolate;
  --site-meta-gap: 28px;
  padding-bottom: var(--site-meta-gap);
}

.site-meta-stack::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  width: min(108%, 780px);
  height: 244px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.46) 28%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.08) 66%, rgba(255, 255, 255, 0) 78%);
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

.site-footer {
  position: relative;
  margin-top: var(--space-panel);
  --bottom-nav-height: 0px;
  padding: 28px 0 8px;
  text-align: center;
  color: var(--brand-wordmark);
  transition: margin-top 220ms ease;
}

.site-footer.with-nav {
  margin-top: calc(var(--bottom-nav-height) + 36px);
}

.site-footer p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-text-stroke: 0.55px rgba(22, 16, 14, 0.28);
  text-shadow: 0 1px 2px rgba(17, 12, 10, 0.1);
}

.site-footer p + p {
  margin-top: 8px;
  color: var(--brand-wordmark);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-text-stroke: 0.4px rgba(22, 16, 14, 0.22);
  text-shadow: 0 1px 2px rgba(17, 12, 10, 0.08);
}

.site-bottom-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: var(--site-meta-gap);
  margin-left: auto;
  margin-right: auto;
  max-width: min(100%, 720px);
  padding: 0 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
  color: var(--brand-wordmark);
  letter-spacing: 0.06em;
  -webkit-text-stroke: 0.48px rgba(22, 16, 14, 0.3);
  text-shadow: 0 1px 2px rgba(17, 12, 10, 0.16), 0 0 12px rgba(255, 255, 255, 0.18);
}

.site-bottom-links a {
  color: inherit;
  text-decoration: none;
}

.site-bottom-links span[aria-hidden="true"] {
  opacity: 0.72;
  font-weight: 500;
}

.site-bottom-links a:hover,
.site-bottom-links a:focus-visible {
  text-decoration: none;
}

.footer-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  margin: 0 5px;
  vertical-align: -1px;
  border-radius: 3px;
  background:
    linear-gradient(90deg, transparent 0 29%, #f4d45e 29% 41%, transparent 41% 100%),
    linear-gradient(180deg, transparent 0 39%, #f4d45e 39% 61%, transparent 61% 100%),
    #346b9a;
  box-shadow: 0 0 0 1px rgba(255, 244, 239, 0.26);
}
.bottom-nav {
  position: fixed;
  transition: top 220ms ease, transform 180ms ease, box-shadow 180ms ease;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 20;
  width: min(calc(100% - 32px), 728px);
  margin: 0 auto;
  padding: 18px var(--space-panel);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(var(--space-compact) + 4px);
}

.bottom-nav.is-docked {
  position: absolute;
  bottom: auto;
}

.nav-button {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 15px 6px 20px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 3px;
  background: linear-gradient(180deg, rgba(232, 216, 166, 0.72), rgba(214, 193, 133, 0.56));
  color: var(--warm-ink);
  border-radius: 16px;
  border: 1px solid rgba(188, 166, 104, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.18),
    var(--warm-shadow-soft);
}

.nav-button svg,
.nav-button i {
  height: 18px;
  min-width: 18px;
  font-size: 17px;
  line-height: 0.92;
  transition: color 180ms ease, transform 180ms ease;
}

.nav-button::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: background 160ms ease, box-shadow 180ms ease, opacity 180ms ease;
  opacity: 0;
}

.nav-button.active {
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}

.nav-button.active i,
.nav-button.active svg {
  color: var(--brand-pop);
}

.nav-button.active::after {
  opacity: 1;
  background: var(--brand-pop-line);
  box-shadow: 0 3px 10px rgba(169, 95, 84, 0.14);
}

@media (hover: hover) and (pointer: fine) {
  .primary-button:hover,
  .ghost-button:hover,
  .option-button:hover,
  .chip:hover,
  .nav-button:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(196, 217, 233, 0.05),
      0 10px 24px rgba(7, 17, 29, 0.14);
  }

}

.primary-button:active,
.ghost-button:active,
.option-button:active,
.chip:active,
.nav-button:active {
  transform: translateY(1px) scale(0.995);
}

.option-button:active {
  transform: translateY(1px);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes mainContentEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes progressIndeterminate {
  0% {
    transform: translateX(-115%);
  }

  55% {
    transform: translateX(85%);
  }

  100% {
    transform: translateX(150%);
  }
}

@keyframes questionSwap {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes ordverkSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes shakeSoft {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-4px);
  }

  50% {
    transform: translateX(3px);
  }

  75% {
    transform: translateX(-2px);
  }
}

@keyframes stepEnterForward {
  from {
    opacity: 1;
    transform: translateX(18px);
  }

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

@keyframes stepEnterBack {
  from {
    opacity: 1;
    transform: translateX(-18px);
  }

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

@keyframes stepExitForward {
  from {
    opacity: 0;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-12px);
  }
}

@keyframes stepExitBack {
  from {
    opacity: 0;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(12px);
  }
}

@media (min-width: 920px) {
  .app-shell {
    padding: 24px 20px 44px;
  }

  .bottom-nav {
    width: min(calc(100% - 40px), 720px);
  }

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

  .topbar {
    padding: 20px 22px;
  }
}

@media (max-width: 520px) {
  .topbar {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .topbar-mid {
    width: 100%;
    text-align: right;
  }

  .progress-mini-grid {
    grid-template-columns: 1fr;
  }

  .nav-button span {
    font-size: 0.73rem;
  }

}
.onboarding .setup-range-stack > span,
.onboarding .setup-range-status {
  color: var(--warm-muted);
}

.onboarding .setup-range-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: fit-content;
  margin: 0 auto;
  gap: 6px;
  white-space: nowrap;
}

.onboarding .setup-range-status strong {
  color: var(--warm-ink);
}

.onboarding .setup-range-control {
  overflow: visible;
  padding: 4px 10px 10px;
}

.onboarding .setup-range-control input[type="range"] {
  overflow: visible;
}

.onboarding .setup-range-control input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  box-shadow:
    0 4px 12px rgba(1, 8, 16, 0.14),
    0 0 0 2px rgba(255, 255, 255, 0.08);
}

.onboarding .setup-range-control input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  box-shadow:
    0 4px 12px rgba(1, 8, 16, 0.14),
    0 0 0 2px rgba(255, 255, 255, 0.08);
}

.onboarding .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  row-gap: 12px;
}

.onboarding .onboarding-chip {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--warm-muted);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  border: 1px solid var(--warm-line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.onboarding .onboarding-chip.active,
.onboarding .onboarding-chip[aria-pressed='true'] {
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}
.setup-info {
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  color: var(--info-ink);
  background: linear-gradient(180deg, var(--info-fill-top), var(--info-fill-bottom));
  border: 1px solid var(--info-line);
  box-shadow: inset 0 1px 0 rgba(216, 230, 241, 0.08);
  font-size: 0.82rem;
  line-height: 1.55;
}

.setup-info svg {
  margin-top: 0;
  align-self: center;
  color: var(--info-icon);
  font-size: 1rem;
  height: 18px;
  min-width: 18px;
}


.setup-info span {
  display: block;
}

@media (max-width: 560px) {
  .bottom-nav {
    padding: 14px 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .nav-button {
    min-height: 62px;
    padding: 12px 4px;
    gap: 0;
  }

  .nav-button span {
    display: none;
  }

  .nav-button::after {
    left: 12px;
    right: 12px;
    bottom: 8px;
  }

  .support-membership-actions {
    grid-template-columns: minmax(0, 1fr);
  }

}

.auth-utility {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-stack);
  margin-bottom: 16px;
  min-width: 0;
  width: 100%;
}

.auth-utility > * {
  min-width: 0;
  max-width: 100%;
}

.install-app-button {
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  padding: 13px 16px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.install-app-button-content {
  display: inline-grid;
  grid-template-columns: 16px auto;
  align-items: center;
  column-gap: 10px;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
}

.install-app-button-content > span,
.auth-switch-button {
  min-width: 0;
}

.install-app-button-content > span {
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: normal;
}

.install-app-button-content svg {
  height: 16px;
  min-width: 16px;
  justify-self: center;
}

.auth-switch-button {
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

 .auth-card-heading {
  margin: 0 0 2px;
  color: var(--warm-ink);
}

.ordverk-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(7, 14, 24, 0.26);
  opacity: 0;
  transition: opacity 160ms ease;
}

.ordverk-dialog-backdrop.is-visible {
  opacity: 1;
}

.ordverk-dialog {
  width: min(100%, 460px);
  max-height: calc(100dvh - 40px);
  padding: var(--space-card);
  border-radius: var(--r2);
  display: grid;
  gap: var(--space-section);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(249, 243, 228, 0.96), rgba(242, 233, 208, 0.9));
  border: 1px solid rgba(188, 166, 104, 0.46);
  box-shadow:
    0 18px 42px rgba(20, 14, 9, 0.2),
    inset 0 1px 0 rgba(255, 251, 240, 0.72);
  backdrop-filter: blur(10px);
  transform: translateY(8px);
  transition: transform 180ms ease;
}

.ordverk-dialog-backdrop.is-visible .ordverk-dialog {
  transform: translateY(0);
}

.ordverk-dialog-head {
  display: grid;
  gap: var(--space-compact);
}

.ordverk-dialog .eyebrow {
  margin: 0;
  color: var(--warm-muted);
}

.ordverk-dialog-title {
  margin: 0;
  color: var(--warm-ink);
  font-size: 1.08rem;
  line-height: 1.3;
}

.ordverk-dialog-copy {
  margin: 0;
  color: var(--warm-muted);
  line-height: 1.48;
}

.ordverk-dialog-feedback {
  display: block;
}

.ordverk-dialog-field {
  display: grid;
  gap: var(--space-compact);
}

.ordverk-dialog-field-label {
  color: var(--warm-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.ordverk-dialog-input {
  width: 100%;
  min-height: 112px;
  padding: 12px 14px;
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  border: 1px solid var(--warm-line-soft);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
  resize: vertical;
}

.ordverk-dialog-input::placeholder {
  color: var(--warm-muted);
}

.ordverk-dialog-input:focus {
  border-color: rgba(188, 166, 104, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.12),
    0 0 0 4px rgba(188, 166, 104, 0.12);
  outline: none;
}

.ordverk-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-compact);
}

.ordverk-dialog-actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.ordverk-dialog-actions .ghost-button,
.ordverk-dialog-actions .primary-button {
  min-height: 46px;
  border: 1px solid var(--warm-line-soft);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  color: var(--warm-ink);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.ordverk-dialog-actions .ghost-button:hover,
.ordverk-dialog-actions .primary-button:hover,
.ordverk-dialog-actions .ghost-button:focus-visible,
.ordverk-dialog-actions .primary-button:focus-visible {
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}

.ordverk-dialog-actions .primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.ordverk-dialog-actions .primary-button:disabled:hover,
.ordverk-dialog-actions .primary-button:disabled:focus-visible {
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  border-color: var(--warm-line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.ordverk-dialog--busy {
  pointer-events: none;
}

.ordverk-dialog-status {
  display: grid;
  justify-items: center;
  gap: var(--space-compact);
  text-align: center;
}

.ordverk-dialog-status .ordverk-dialog-copy {
  text-align: center;
}

.ordverk-support-countdown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  border: 1px solid var(--warm-line-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.ordverk-support-slide {
  display: grid;
  gap: var(--space-compact);
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
}

.ordverk-dialog--support .ordverk-dialog-title,
.ordverk-dialog--support .ordverk-dialog-copy {
  position: static;
}

.ordverk-dialog--support .ordverk-dialog-title {
  color: var(--warm-ink);
  font-size: 1.2rem;
  line-height: 1.28;
  white-space: nowrap;
}

.ordverk-support-countdown {
  justify-self: end;
}

.ordverk-dialog--support .ordverk-dialog-copy {
  color: var(--warm-muted);
  line-height: 1.6;
  max-width: none;
}

.ordverk-membership-copy {
  display: grid;
  gap: 8px;
}

.ordverk-membership-copy p {
  margin: 0;
  color: var(--warm-muted);
  line-height: 1.58;
}

.ordverk-membership-consents {
  display: grid;
  gap: 10px;
}

.ordverk-membership-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--warm-ink);
  font-size: 0.92rem;
  line-height: 1.48;
}

.ordverk-membership-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--warm-ink);
}

.ordverk-membership-consent a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(188, 166, 104, 0.34);
}

.ordverk-membership-consent a:hover,
.ordverk-membership-consent a:focus-visible {
  border-bottom-color: rgba(188, 166, 104, 0.58);
}


.support-goal-section--compact {
  gap: var(--space-section);
}

.support-goal-summary--compact {
  padding: var(--space-surface) var(--space-section);
}

.ordverk-dialog .support-goal-summary.panel-surface {
  border-color: rgba(145, 169, 186, 0.20);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 249, 252, 0.62));
  box-shadow:
    inset 0 0 0 1px rgba(172, 201, 224, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 10px 24px rgba(26, 42, 60, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.support-goal-summary--compact .profile-row {
  padding: 0 18px;
}

.support-goal-summary--compact .profile-row-label {
  font-size: 0.78rem;
}

.support-goal-summary--compact .profile-row-note {
  font-size: 0.72rem;
}

.support-goal-summary--compact .profile-row-value {
  font-size: 1rem;
}

.support-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.support-copy-block,
.support-benefits,
.support-fairness-copy {
  display: grid;
  gap: var(--space-section);
}

.legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--warm-muted);
  font-size: 0.9rem;
}

.legal-links a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(188, 166, 104, 0.24);
}

.legal-links a:hover,
.legal-links a:focus-visible {
  border-bottom-color: rgba(188, 166, 104, 0.48);
}

.legal-links--support {
  justify-content: center;
  margin-top: 4px;
}

.legal-links--membership {
  justify-content: flex-start;
}

.support-membership-section {
  gap: var(--space-section);
}

.support-membership-summary {
  padding: var(--space-surface) var(--space-section);
}

.support-membership-note {
  margin: 0;
  color: var(--warm-muted);
  line-height: 1.58;
}

.support-membership-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-compact);
}

.support-membership-button,
.support-membership-link {
  min-height: 46px;
}

.support-membership-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.support-plan-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  align-items: stretch;
  height: 100%;
}

.support-plan-card--quarter {
  border-color: rgba(188, 166, 104, 0.34);
  background: linear-gradient(180deg, rgba(247, 239, 213, 0.68), rgba(239, 228, 191, 0.38));
  box-shadow:
    inset 0 0 0 1px rgba(255, 247, 224, 0.16),
    inset 0 1px 0 rgba(255, 249, 233, 0.24),
    var(--warm-shadow-soft);
}

.support-plan-card--halfyear {
  border-color: rgba(188, 166, 104, 0.42);
  background: linear-gradient(180deg, rgba(242, 229, 184, 0.72), rgba(229, 210, 155, 0.46));
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 213, 0.18),
    inset 0 1px 0 rgba(255, 247, 222, 0.24),
    var(--warm-shadow-soft);
}

.support-plan-card--year {
  border-color: rgba(188, 166, 104, 0.54);
  background: linear-gradient(180deg, rgba(236, 218, 162, 0.78), rgba(219, 194, 126, 0.58));
  box-shadow:
    inset 0 0 0 1px rgba(255, 240, 199, 0.22),
    inset 0 1px 0 rgba(255, 245, 210, 0.26),
    var(--warm-shadow);
}

.support-plan-card.is-featured {
  border-color: var(--success-line);
  background: linear-gradient(180deg, var(--success-fill-top), var(--success-fill-bottom));
  box-shadow:
    inset 0 1px 0 rgba(240, 251, 244, 0.28),
    var(--success-shadow);
}

.support-plan-label,
.support-plan-price,
.support-plan-note,
.support-plan-monthly,
.support-panel-lead,
.support-fairness-copy p {
  margin: 0;
}

.support-plan-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.support-plan-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--warm-line-soft);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  color: var(--warm-ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.support-plan-badge--icon {
  min-width: auto;
  width: auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.support-plan-card--plus .support-plan-badge--icon {
  min-width: auto;
  width: auto;
}

.support-plan-badge-icons {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.support-plan-badge-icons--triple {
  gap: 1px;
}

.support-plan-badge-icon {
  width: 12px;
  height: 12px;
  display: block;
}

.support-plan-card--plus .support-plan-badge-icons--triple {
  gap: 2px;
}

.support-plan-card--plus .support-plan-badge-icon {
  width: 13px;
  height: 13px;
}

.support-plan-badge.is-placeholder {
  visibility: hidden;
}

.support-plan-label {
  color: var(--warm-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.support-plan-card--quarter .support-plan-label,
.support-plan-card--halfyear .support-plan-label,
.support-plan-card--year .support-plan-label {
  color: var(--warm-muted);
}

.support-plan-card.is-featured .support-plan-label {
  color: var(--success-ink);
}

.support-plan-price {
  color: var(--warm-ink);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.22;
}

.support-plan-card.is-featured .support-plan-price {
  color: var(--success-ink);
}

.support-plan-note {
  color: var(--warm-muted);
  font-size: 0.9rem;
  line-height: 1.52;
}

.support-plan-card--year .support-plan-price {
  color: var(--warm-ink);
}

.support-plan-card--year .support-plan-note,
.support-plan-card--year .support-plan-monthly,
.support-plan-card--year .support-plan-badge {
  color: var(--warm-ink);
}

.support-plan-card--year .support-plan-badge {
  border-color: var(--warm-line);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.18),
    var(--warm-shadow-soft);
}

.support-plan-monthly {
  margin-top: auto;
  margin-bottom: 8px;
  color: var(--warm-muted);
  font-size: 0.79rem;
  line-height: 1.45;
}

.support-plan-card.is-featured .support-plan-note,
.support-plan-card.is-featured .support-plan-monthly {
  color: var(--success-ink);
}

.support-plan-action {
  width: 100%;
  margin-top: 4px;
  min-height: 56px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--warm-line-soft);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  color: var(--warm-ink);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
  font-weight: 600;
}

.support-plan-action:hover,
.support-plan-action:focus-visible {
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}

.support-plan-card--plus {
  border-color: rgba(112, 145, 171, 0.40);
  background: linear-gradient(180deg, rgba(240, 244, 248, 0.16), rgba(240, 244, 248, 0.07));
  box-shadow:
    inset 0 0 0 1px rgba(214, 227, 238, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    var(--panel-shadow-soft);
}

.support-plan-copy {
  margin: 0;
  color: var(--warm-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.support-plan-copy--bridge {
  margin: 0;
  color: var(--warm-muted);
}

.support-plan-card--plus .support-plan-label,
.support-plan-card--plus .support-plan-price {
  color: var(--ink-strong);
}

.support-plan-card--plus .support-plan-note,
.support-plan-card--plus .support-plan-monthly {
  color: var(--ink);
}

.support-plan-card--plus .support-plan-badge {
  color: var(--ink-strong);
  border-color: rgba(112, 145, 171, 0.24);
  background: linear-gradient(180deg, var(--button-fill-strong), var(--button-fill));
  box-shadow: inset 0 1px 0 rgba(196, 217, 233, 0.05);
}

.support-plan-card--plus .support-plan-action {
  margin-top: 4px;
}

.support-plus-stack {
  display: grid;
  gap: var(--space-section);
}

.support-plan-card--plus.is-plus-featured {
  border-color: var(--success-line);
  background: linear-gradient(180deg, var(--success-fill-top), var(--success-fill-bottom));
  box-shadow:
    inset 0 0 0 1px rgba(226, 244, 233, 0.10),
    inset 0 1px 0 rgba(240, 251, 244, 0.22),
    var(--success-shadow);
}

.support-plan-card--plus.is-plus-featured .support-plan-label,
.support-plan-card--plus.is-plus-featured .support-plan-price,
.support-plan-card--plus.is-plus-featured .support-plan-note,
.support-plan-card--plus.is-plus-featured .support-plan-monthly,
.support-plan-card--plus.is-plus-featured .support-plan-badge {
  color: var(--success-ink);
}

.support-plan-card--plus.is-plus-featured .support-plan-badge {
  border-color: var(--success-line);
  background: linear-gradient(180deg, rgba(227, 244, 233, 0.66), rgba(196, 226, 208, 0.46));
  box-shadow: inset 0 1px 0 rgba(240, 251, 244, 0.20);
}

.support-plan-card--year .support-plan-badge--icon,
.support-plan-card--plus .support-plan-badge--icon,
.support-plan-card--plus.is-plus-featured .support-plan-badge--icon {
  min-height: auto;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.support-plan-card--plus.is-plus-featured .support-plan-action {
  border-color: var(--success-line);
  background: linear-gradient(180deg, rgba(227, 244, 233, 0.66), rgba(196, 226, 208, 0.46));
  color: var(--success-ink);
  box-shadow: inset 0 1px 0 rgba(240, 251, 244, 0.20);
}

.support-plan-card--plus.is-plus-featured .support-plan-action:hover,
.support-plan-card--plus.is-plus-featured .support-plan-action:focus-visible {
  background: linear-gradient(180deg, rgba(214, 238, 222, 0.84), rgba(184, 216, 196, 0.64));
  border-color: rgba(103, 148, 121, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(240, 251, 244, 0.26),
    var(--success-shadow);
}


.support-benefits-list {
  margin: 0;
}

.support-benefit-item .profile-report-head {
  align-items: center;
}

.support-benefit-item .profile-report-result {
  gap: 0;
}

.support-plan-grid--page {
  margin-top: 0;
}

.support-panel-lead,
.support-plan-copy,
.support-fairness-copy p {
  line-height: 1.68;
}

.support-panel-lead {
  color: var(--warm-ink);
}

.support-fairness-copy p {
  color: var(--warm-muted);
}

.support-page-actions {
  display: grid;
  gap: 10px;
}

.support-page-actions .primary-button,
.support-page-actions .ghost-button {
  justify-self: start;
  width: 100%;
}

.ordverk-dialog-spinner,
.report-button-spinner {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(188, 166, 104, 0.24);
  border-top-color: rgba(188, 166, 104, 0.8);
  animation: ordverkSpin 900ms linear infinite;
}

.report-button.is-busy {
  opacity: 0.92;
}

.report-button:disabled {
  cursor: default;
}

.profile-form {
  display: grid;
  gap: var(--space-section);
}

.profile-vocab-summary {
  display: grid;
  gap: var(--space-section);
  margin: 0;
  padding: var(--space-surface) var(--space-section);
}

.profile-lines {
  display: grid;
  gap: 0;
}


/* Profile vocab summary: show the 3 stats side-by-side inside one calm panel. */

.profile-vocab-summary .profile-lines {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
}

.profile-vocab-summary .profile-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 0 18px;
  border-top: 0;
}

.profile-vocab-summary .profile-row:first-child {
  padding-left: 0;
}

.profile-vocab-summary .profile-row:last-child {
  padding-right: 0;
}

.profile-vocab-summary .profile-row:not(:first-child) {
  border-left: 1px solid rgba(188, 166, 104, 0.16);
}

.profile-vocab-summary .profile-row-value {
  margin-top: auto;
  align-self: flex-start;
  text-align: left;
  justify-self: start;
  font-size: 1.12rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.profile-vocab-summary .profile-row-label {
  color: var(--muted);
}

.profile-vocab-summary .profile-row-note {
  color: rgba(96, 114, 130, 0.82);
}

.profile-vocab-summary .profile-row-value {
  color: var(--ink-strong);
}

.profile-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(188, 166, 104, 0.16);
}

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

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

.profile-label-group {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-row-label,
.profile-row-note {
  margin: 0;
  line-height: 1.58;
}

.profile-row-label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.profile-row-note {
  color: rgba(96, 114, 130, 0.82);
  font-size: 0.78rem;
}

.profile-row-value {
  color: var(--ink-strong);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.52;
  text-align: right;
  justify-self: end;
}

.profile-status-stack {
  display: grid;
  gap: var(--space-compact);
  margin: 0;
}

.profile-report-list {
  display: grid;
  gap: var(--space-compact);
  margin: 0;
  padding: 0;
}

.profile-report-item {
  display: grid;
  gap: var(--space-compact);
}

.profile-report-item:nth-child(even) {
  background: linear-gradient(180deg, rgba(240, 244, 248, 0.2), rgba(240, 244, 248, 0.1));
}

.profile-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.profile-report-main {
  display: grid;
  gap: 4px;
}

.profile-report-label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-report-result {
  display: inline-grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.profile-report-icon {
  --report-icon-bg: rgba(255, 255, 255, 0.32);
  --report-icon-border: rgba(112, 145, 171, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--report-icon-border);
  background: var(--report-icon-bg);
  color: var(--info-icon);
}

.profile-report-icon svg {
  height: 16px;
  min-width: 16px;
}

.profile-report-icon.is-reviewed {
  --report-icon-bg: rgba(112, 145, 171, 0.12);
  --report-icon-border: rgba(112, 145, 171, 0.22);
}

.profile-report-icon.is-pending {
  --report-icon-bg: rgba(112, 145, 171, 0.16);
  --report-icon-border: rgba(112, 145, 171, 0.24);
}

.profile-report-icon.is-neutral {
  --report-icon-bg: rgba(232, 216, 166, 0.18);
  --report-icon-border: rgba(188, 166, 104, 0.24);
  color: var(--warm-ink);
}

.profile-report-date,
.profile-report-ref,
.profile-report-copy {
  margin: 0;
}

.profile-report-veto-button {
  width: 100%;
  margin-top: var(--space-compact);
  font-weight: 700;
}

.profile-report-note {
  margin: 0;
  padding-left: var(--space-stack);
  border-left: 3px solid rgba(188, 166, 104, 0.34);
  color: var(--warm-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.profile-report-date {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.52;
}

.profile-report-ref {
  color: var(--ink-strong);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.profile-report-copy {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.62;
  padding-top: 2px;
}


.custom-vocab-form {
  margin-bottom: 0;
}

.profile-support-access-form {
  margin-bottom: 0;
}

.profile-support-access-button {
  width: 100%;
}

.profile-account-form {
  margin-bottom: 0;
}

.profile-account-heading,
.profile-password-heading {
  margin: 0 0 var(--space-section);
  color: var(--heading-ink);
  font-size: 1.3rem;
  line-height: 1.3;
}

.profile-text-field,
.custom-vocab-field {
  display: grid;
  gap: 10px;
}

.profile-text-field > span,
.custom-vocab-field > span {
  color: var(--warm-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.custom-vocab-list {
  margin-top: 0;
}

.custom-vocab-item {
  gap: var(--space-section);
  border-color: rgba(188, 166, 104, 0.24);
  background: linear-gradient(180deg, rgba(248, 242, 223, 0.30), rgba(239, 229, 194, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 214, 0.08),
    inset 0 1px 0 rgba(255, 248, 228, 0.14),
    var(--warm-shadow-soft);
}

.custom-vocab-item:nth-child(even) {
  background: linear-gradient(180deg, rgba(248, 242, 223, 0.30), rgba(239, 229, 194, 0.14));
}

.custom-vocab-item .profile-report-icon {
  --report-icon-bg: rgba(232, 216, 166, 0.18);
  --report-icon-border: rgba(188, 166, 104, 0.24);
  color: var(--warm-ink);
}

.custom-vocab-meta {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.custom-vocab-meta-row {
  display: grid;
  grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.custom-vocab-meta-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.custom-vocab-meta-value {
  color: var(--ink-strong);
  font-size: 0.9rem;
  line-height: 1.56;
}

.profile-empty-state,
.custom-vocab-empty,
.report-empty-state {
  margin: 0;
  color: var(--warm-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.profile-form .setup-range-stack,
.profile-form .setup-range-control,
.profile-form .setup-range-status,
.profile-range-surface {
  display: grid;
  gap: var(--space-compact);
}

.profile-section,
.profile-range-block {
  display: grid;
  gap: var(--space-section);
  padding: 0;
  padding-top: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.profile-form .setup-range-stack > span,
.profile-form .setup-range-status,
.profile-section-title {
  color: var(--warm-muted);
}

.profile-section-title {
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-form .setup-range-stack > span {
  font-size: 0.92rem;
  line-height: 1.55;
}

.profile-form .setup-range-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  width: fit-content;
  margin: 2px auto 0;
  gap: 6px;
  line-height: 1.55;
  white-space: nowrap;
}

.profile-form .setup-range-status strong {
  color: var(--warm-ink);
  font-size: 1rem;
}

.profile-form .setup-range-control,
#customVocabForm label {
  overflow: visible;
}

.profile-form .setup-range-control input[type='range'] {
  overflow: visible;
}

.profile-form .setup-range-control input[type='range']::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
}

.profile-form .setup-range-control input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
}

.profile-range-block {
  border-top: 0;
}

.profile-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  row-gap: 12px;
}

.profile-chip {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--warm-muted);
  background: linear-gradient(180deg, var(--warm-fill-top), var(--warm-fill-bottom));
  border: 1px solid var(--warm-line-soft);
  box-shadow: inset 0 1px 0 rgba(255, 248, 228, 0.08);
}

.profile-chip.active,
.profile-chip[aria-pressed='true'] {
  color: var(--warm-ink);
  background: linear-gradient(180deg, var(--warm-fill-strong-top), var(--warm-fill-strong-bottom));
  border-color: var(--warm-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.24),
    var(--warm-shadow);
}

.profile-form-message {
  min-height: 0;
  margin: 0;
}

.profile-form-message:empty {
  display: none;
}

.public-faq-row {
  grid-template-columns: 24px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 6px;
  align-items: start;
}

.public-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0;
  color: var(--ink-strong);
  justify-self: start;
  align-self: start;
}

.public-faq-icon svg {
  height: 20px;
  min-width: 20px;
}

#supportPanel.profile-card {
  gap: var(--space-panel);
  padding: var(--space-panel);
  align-content: start;
}

.panel-surface {
  padding: var(--space-surface) var(--space-section);
  border-radius: 16px;
  border: 1px solid rgba(145, 169, 186, 0.16);
  background: linear-gradient(180deg, rgba(240, 244, 248, 0.12), rgba(240, 244, 248, 0.055));
  box-shadow:
    inset 0 0 0 1px rgba(172, 201, 224, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    var(--panel-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-report-item {
  padding: var(--space-surface) var(--space-section);
  border-radius: 16px;
  border: 1px solid rgba(188, 166, 104, 0.24);
  background: linear-gradient(180deg, rgba(248, 242, 223, 0.30), rgba(239, 229, 194, 0.14));
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 214, 0.08),
    inset 0 1px 0 rgba(255, 248, 228, 0.14),
    var(--warm-shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.support-benefit-item {
  border-color: rgba(188, 166, 104, 0.28);
  background: linear-gradient(180deg, rgba(248, 242, 223, 0.36), rgba(239, 229, 194, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 245, 214, 0.10),
    inset 0 1px 0 rgba(255, 248, 228, 0.16),
    var(--warm-shadow);
}

.support-benefit-item .profile-report-label,
.support-benefit-item .profile-report-date,
.support-benefit-item .profile-report-copy {
  color: var(--warm-muted);
}

.support-benefit-item .profile-report-ref,
.support-benefit-item .profile-report-copy {
  color: var(--warm-ink);
}

.custom-vocab-item .profile-report-label,
.custom-vocab-item .profile-report-date,
.custom-vocab-item .custom-vocab-meta-label {
  color: var(--muted);
}

.custom-vocab-item .profile-report-ref,
.custom-vocab-item .custom-vocab-meta-value {
  color: var(--ink-strong);
}

.custom-vocab-item .profile-report-copy {
  color: var(--ink);
}

.support-plan-card--quarter {
  border-color: rgba(188, 166, 104, 0.24);
  background: linear-gradient(180deg, rgba(247, 239, 213, 0.82), rgba(239, 228, 191, 0.52));
  box-shadow:
    inset 0 1px 0 rgba(255, 249, 233, 0.24),
    var(--warm-shadow-soft);
}

.support-plan-card--halfyear {
  border-color: rgba(188, 166, 104, 0.34);
  background: linear-gradient(180deg, rgba(242, 229, 184, 0.84), rgba(229, 210, 155, 0.58));
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 222, 0.24),
    var(--warm-shadow-soft);
}

.support-plan-card.is-featured {
  border-color: var(--success-line);
  background: linear-gradient(180deg, var(--success-fill-top), var(--success-fill-bottom));
  box-shadow:
    inset 0 1px 0 rgba(240, 251, 244, 0.28),
    var(--success-shadow);
}

.auth-form .message .feedback-chip,
.profile-form-message .feedback-chip {
  min-height: 62px;
  padding: 12px 14px;
  gap: 6px;
}

@media (max-width: 640px) {
  .support-plan-grid {
    grid-template-columns: 1fr;
  }

  .panel-surface {
    padding: 12px;
  }

  .profile-vocab-summary {
    gap: 14px;
    padding: 16px;
  }

  .profile-form {
    gap: 18px;
  }

  .profile-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-row-value {
    text-align: left;
    justify-content: flex-start;
  }

  .profile-report-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .profile-report-result {
    justify-items: start;
    text-align: left;
  }

  .custom-vocab-meta-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-vocab-summary .profile-row {
    padding: 0 12px;
  }

  .profile-vocab-summary .profile-row:first-child {
    padding-left: 0;
  }

  .profile-vocab-summary .profile-row:last-child {
    padding-right: 0;
  }

  .profile-vocab-summary .profile-row-value {
    font-size: 1.02rem;
  }
}

.auth-form .message .feedback-chip strong,
.profile-form-message .feedback-chip strong {
  font-size: 0.98rem;
  line-height: 1.38;
}

.public-page {
  min-height: 100vh;
}

.public-page .site-footer {
  margin-top: var(--space-panel);
}
