:root {
  --surface: #ffffff;
  --surface-muted: #f2f7fb;
  --surface-strong: #ecf5fb;
  --ink-strong: #17344a;
  --ink-soft: #597083;
  --border-soft: rgba(43, 99, 140, 0.12);
  --shadow-soft: 0 18px 40px rgba(31, 68, 103, 0.12);
  --app-font-family-body: "Manrope", sans-serif;
  --app-font-family-heading: "Manrope", sans-serif;
  --type-xs: 0.75rem;
  --type-sm: 0.875rem;
  --type-md: 1rem;
  --type-lg: 1.25rem;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(111, 181, 214, 0.12), transparent 30%),
    linear-gradient(180deg, #f5fbff 0%, #eaf2f8 100%);
  color: var(--ink-strong);
}

.app-frame {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-stage-shell {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
}

.app-stage {
  width: clamp(25rem, calc(100vw - 1rem), 50rem);
  max-width: calc(100vw - 1rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.app-stage__inner {
  height: 100%;
  min-height: 0;
  padding: 1rem;
}

.stage-page {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hero-card,
.phase-card,
.landing-form-panel {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.hero-card,
.landing-form-panel {
  padding: 1.05rem;
}

.phase-card {
  padding: 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-muted) 100%);
}

.compact-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

.hero-title {
  color: var(--ink-strong);
  font-size: clamp(1.5rem, 5vw, 1.75rem);
}

.hero-copy {
  color: var(--ink-soft);
  font-size: var(--type-md);
}

.eyebrow {
  display: block;
  width: 100%;
  color: #3f789a;
  font-size: var(--type-xs);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: #153b52;
  color: white;
  font-size: var(--type-xs);
  font-weight: 700;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #fff 0%, #f7fbfe 100%);
}

.mini-stat--soft {
  background: var(--surface-strong);
}

.mini-stat__value {
  font-size: var(--type-md);
  font-weight: 700;
  color: var(--ink-strong);
}

.mini-stat__label {
  font-size: var(--type-xs);
  color: var(--ink-soft);
}

.landing-page {
  justify-content: space-between;
}

.splash-page {
  justify-content: space-between;
  min-height: 100%;
}

.splash-page__center {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  text-align: center;
}

.splash-page__hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
}

.splash-version {
  color: var(--ink-soft);
  font-size: var(--type-xs);
  line-height: 1;
}

.landing-hero {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.landing-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.landing-bullets span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--border-soft);
  color: var(--ink-strong);
  font-size: var(--type-xs);
  font-weight: 700;
}

.landing-form-title {
  font-size: calc(var(--type-lg) * 1.08);
  font-weight: 700;
  color: var(--ink-strong);
}

.compact-control {
  min-height: 3.15rem;
  border-radius: 1rem;
}

.surface-note {
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #f8fbfe 0%, #eef5fa 100%);
  border: 1px solid var(--border-soft);
  color: var(--ink-soft);
  font-size: var(--type-sm);
}

.surface-note--tight {
  padding: 0.7rem 0.85rem;
  font-size: var(--type-xs);
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid var(--border-soft);
  cursor: pointer;
}

.consent-check__input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  flex: 0 0 auto;
  border: 1px solid rgba(43, 99, 140, 0.28);
  border-radius: 0.35rem;
  background: #ffffff;
  accent-color: var(--color-accent-violet);
  cursor: pointer;
}

.consent-check__input::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 0.18rem;
  background: var(--color-accent-violet);
  transform: scale(0);
  transition: transform 120ms ease;
}

.consent-check__input:checked::before {
  transform: scale(1);
}

.consent-check__copy {
  color: var(--ink-soft);
  font-size: var(--type-sm);
}

.consent-check__copy a {
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: none;
}

.consent-check__copy a:hover {
  color: #1a5d84;
}

.consent-check:focus-within {
  border-color: rgba(118, 88, 196, 0.35);
  box-shadow: 0 0 0 4px rgba(118, 88, 196, 0.08);
}

.privacy-page {
  justify-content: center;
  gap: 0.9rem;
}

.privacy-page__hero {
  max-width: 32rem;
}

.privacy-panel {
  padding: 1rem;
}

.privacy-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.privacy-intro {
  color: var(--ink-strong);
  font-size: var(--type-md);
}

.privacy-stack {
  display: grid;
  gap: 0.75rem;
}

.privacy-item {
  padding: 0.85rem 0.9rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
}

.privacy-item__title {
  margin: 0 0 0.35rem;
  color: var(--ink-strong);
  font-size: var(--type-md);
  font-weight: 700;
}

.privacy-item__copy {
  color: var(--ink-soft);
  font-size: var(--type-sm);
}

.privacy-meta {
  color: var(--ink-soft);
  font-size: var(--type-xs);
}

.app-cta,
.question-actions__next {
  width: 100%;
  flex: 1 1 auto;
  min-height: 3.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: calc(var(--type-md) * 1.05);
  font-weight: 800;
  border: none;
  background: linear-gradient(135deg, #7658C4 0%, #9B7BD4 100%);
  box-shadow: 0 14px 32px rgba(118, 88, 196, 0.28);
}

.app-cta--compact {
  width: auto;
  min-width: 5.5rem;
  min-height: 2.8rem;
  padding-inline: 1rem;
  font-size: var(--type-md);
  box-shadow: 0 10px 24px rgba(27, 110, 235, 0.22);
}

.question-screen {
  min-height: 100%;
  justify-content: space-between;
  gap: 0.75rem;
}

.question-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  padding-right: 3.75rem;
}

.question-header__back {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
}

.question-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.question-progress__bar {
  flex: 1 1 auto;
  min-width: 0;
}

.soft-progress {
  height: 0.65rem;
  background: #d0d1d4;
  border-radius: 999px;
}

.soft-progress .progress-bar {
  background: linear-gradient(90deg, #0a8e0d 0%, #14910f 100%);
}

.question-progress__count {
  flex: 0 0 auto;
  color: #232a31;
  font-size: var(--type-sm);
  font-weight: 700;
}

.question-title {
  font-size: clamp(0.95rem, 2.8vw, 1.05rem);
  font-weight: 500;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.question-card-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.9rem;
  border-radius: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid rgba(43, 99, 140, 0.08);
  box-shadow: 0 10px 28px rgba(34, 76, 112, 0.12);
}

.question-card-panel__body {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 13.5rem;
  text-align: center;
}

.question-card-panel__selection {
  margin-top: 0.75rem;
  min-height: 4.4rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1.4rem;
  background: #f0f1f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.question-card-panel__selection-label {
  display: block;
  font-size: var(--type-sm);
  color: #282d32;
}

.question-card-panel__selection-value {
  margin-top: 0.25rem;
  color: #2f2f2f;
  font-size: calc(var(--type-md) * 1.08);
  font-weight: 700;
}

.question-text {
  color: #1f2328;
  font-size: clamp(1rem, 2.6vw, 1.25rem);
  font-weight: 600;
  animation: question-text-entry 350ms ease-out forwards;
}

@keyframes question-text-entry {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.question-text--center {
  width: min(100%, 32rem);
  min-height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rating-bar-container {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.65rem;
  margin-bottom: 0.85rem;
  min-width: 0;
}

.bar-track {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 4rem;
  display: flex;
  align-items: center;
}

.bar-pill {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 4rem;
  border-radius: 999px;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(180, 175, 168, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.1);
}

.segment {
  min-height: 4rem;
  border: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #18212a;
  padding: 0.35rem 0.2rem;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.segment:hover {
  filter: brightness(0.89);
}

.seg-x {
  background: #f06d57;
  border-radius: 999px 0 0 999px;
}

.seg-down {
  background: #f2b4aa;
}

.seg-neutral {
  background: #d9d6ca;
}

.seg-up {
  background: #a8d094;
}

.seg-fire {
  background: #49b74b;
  border-radius: 0 999px 999px 0;
}

.seg-icon {
  font-size: min(calc(var(--type-lg) * 1.3), 1.75rem);
  pointer-events: none;
}

.seg-icon-image {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.selected-bubble {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: left 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 0 0 6px rgba(210, 205, 198, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.13);
}

.selected-bubble.is-entering {
  animation: bubble-entry 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.selected-bubble.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes bubble-entry {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }

  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.bub-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid rgba(200, 195, 188, 0.6);
}

.selected-bubble .seg-icon-image--bubble {
  width: 2.8rem;
  height: 2.8rem;
}

.bubble-x {
  box-shadow:
    0 0 0 4px rgba(232, 112, 90, 0.22),
    0 4px 16px rgba(0, 0, 0, 0.13);
}

.bubble-x .bub-inner {
  background: #e8705a;
  border-color: #d05a45;
}

.bubble-down {
  box-shadow:
    0 0 0 4px rgba(242, 181, 173, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.bubble-down .bub-inner {
  background: #f5c8c0;
  border-color: rgba(210, 160, 150, 0.5);
}

.bubble-neutral {
  box-shadow:
    0 0 0 4px rgba(210, 205, 198, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.bubble-neutral .bub-inner {
  background: #e8e4de;
  border-color: rgba(190, 186, 180, 0.5);
}

.bubble-up {
  box-shadow:
    0 0 0 4px rgba(120, 200, 110, 0.3),
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.bubble-up .bub-inner {
  background: #c8e8c0;
  border-color: rgba(150, 200, 140, 0.5);
}

.bubble-fire {
  box-shadow:
    0 0 0 4px rgba(76, 175, 80, 0.25),
    0 4px 16px rgba(0, 0, 0, 0.12);
}

.bubble-fire .bub-inner {
  background: #4caf50;
  border-color: #3a9a44;
}

.labels-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.2rem;
}

.label-item {
  text-align: center;
  color: #a09990;
  font-size: var(--type-xs);
  line-height: 1rem;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.label-item.active {
  color: #3a3530;
  font-weight: 500;
}

.question-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.2rem;
  min-width: 0;
}

.back-button,
.question-actions__back {
  width: 3.7rem;
  height: 3.7rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(34, 76, 112, 0.08);
  color: #17344a;
  text-decoration: none;
  font-size: min(calc(var(--type-lg) * 1.1), 1.5rem);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.back-button:hover,
.question-actions__back:hover {
  transform: translateY(-1px);
  border-color: rgba(43, 99, 140, 0.2);
  box-shadow: 0 12px 26px rgba(34, 76, 112, 0.12);
}

.question-actions__back--ghost,
.back-button--ghost {
  display: none;
}

.question-actions__back--ghost {
  width: 0;
  padding: 0;
  margin: 0;
  border: none;
}

.app-cta:disabled,
.question-actions__next:disabled {
  opacity: 0.55;
  box-shadow: none;
}

.teaser-screen {
  min-height: 100%;
  justify-content: space-between;
}

.teaser-screen__header {
  align-items: center;
}

.teaser-screen__title {
  width: 100%;
}

.teaser-card {
  justify-content: space-between;
}

.teaser-carousel {
  gap: 0.9rem;
}

.teaser-carousel__viewport {
  position: relative;
}

.teaser-carousel__track {
  position: relative;
}

.teaser-carousel__slide {
  display: none;
}

.teaser-carousel__slide.is-active {
  display: block;
}

.teaser-card__body {
  min-height: 15.5rem;
  padding-inline: 0.5rem;
}

.teaser-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
}

.teaser-card__kicker {
  color: #3f789a;
  font-size: var(--type-sm);
  font-weight: 800;
  text-transform: uppercase;
}

.teaser-card__headline {
  color: #17344a;
  font-size: clamp(1.5rem, 7vw, 1.75rem);
}

.teaser-card__summary {
  color: #597083;
  font-size: var(--type-md);
}

.teaser-card__copy--unlock {
  align-items: stretch;
  gap: 0.65rem;
  text-align: left;
}

.teaser-card__headline--unlock {
  text-align: center;
  font-size: clamp(1.25rem, 6vw, 1.6rem);
  line-height: 1.12;
}

.teaser-card__summary--unlock {
  text-align: center;
  line-height: 1.25;
}

.teaser-unlock-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.teaser-unlock-list__item {
  color: #3d566b;
  font-size: clamp(0.86rem, 3.6vw, 0.98rem);
  line-height: 1.24;
}

.teaser-unlock-list__item strong {
  color: #17344a;
}

.teaser-unlock-list__item--gift {
  margin-top: 0.1rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-soft);
}

.payment-dev-bypass-note {
  margin-top: 0.25rem;
  text-align: center;
}

.teaser-card__insight {
  background: linear-gradient(180deg, #f6f8fb 0%, #eef2f6 100%);
}

.teaser-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.teaser-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.teaser-carousel__dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(23, 52, 74, 0.18);
}

.teaser-carousel__dot.is-active {
  width: 1.8rem;
  background: #17344a;
}

.teaser-carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.teaser-carousel__control {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: #17344a;
  font-size: min(calc(var(--type-md) * 1.2), 1.75rem);
  box-shadow: 0 10px 24px rgba(34, 76, 112, 0.08);
}

.teaser-metrics {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.teaser-metric {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  border: 1px solid var(--border-soft);
}

.teaser-metric__rank {
  color: #3f789a;
  font-size: var(--type-xs);
  font-weight: 800;
}

.teaser-metric__name {
  color: #17344a;
  font-size: var(--type-md);
}

.teaser-metric__score {
  min-width: 3.2rem;
  text-align: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #edf5ff;
  color: #17344a;
  font-size: var(--type-sm);
  font-weight: 800;
}

.teaser-recommendations {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.teaser-ranking {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.teaser-ranking__item {
  min-height: 4.35rem;
  padding: 0.8rem 0.65rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  box-shadow: 0 10px 24px rgba(34, 76, 112, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
}

.teaser-ranking__position {
  color: #3f789a;
  font-size: var(--type-sm);
  font-weight: 700;
}

.teaser-ranking__name {
  color: #17344a;
  font-size: var(--type-sm);
}

.teaser-screen__actions {
  margin-top: 0.9rem;
}

.premium-auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.premium-auth-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.9rem;
}

.premium-auth-intro {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.premium-auth-intro__title {
  color: #17344a;
  font-size: calc(var(--type-lg) * 1.1);
  font-weight: 700;
}

.premium-auth-intro__copy {
  color: #597083;
  font-size: var(--type-sm);
  line-height: 1.35;
}

.premium-auth-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.premium-auth-switch__button {
  min-height: 2.7rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: #ffffff;
  color: #597083;
  font-size: var(--type-sm);
  font-weight: 700;
}

.premium-auth-switch__button.is-active {
  background: #17344a;
  border-color: #17344a;
  color: #ffffff;
}

.premium-auth-panels {
  display: grid;
  gap: 0.7rem;
}

.premium-auth-form.is-hidden {
  display: none;
}

.premium-auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.2rem 0 0;
  border-top: 1px solid rgba(43, 99, 140, 0.1);
}

.premium-auth-form__title {
  color: #17344a;
  font-size: var(--type-md);
}

.premium-auth-form__copy {
  color: #597083;
  font-size: var(--type-sm);
}

.dashboard-screen {
  min-height: 100%;
  justify-content: space-between;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  min-width: 0;
}

.admin-card {
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: #fff;
  box-shadow: 0 8px 20px rgba(34, 76, 112, 0.07);
  min-width: 0;
}

.admin-card--hero {
  padding: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f3f8fc 100%);
}

.admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-hero__copy {
  min-width: 0;
}

.admin-hero__title {
  color: #112f48;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
}

.admin-hero__subtitle {
  max-width: 48rem;
  color: #5b7084;
  font-size: var(--type-md);
  line-height: 1.25;
}

.admin-hero__actions {
  display: flex;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.admin-card__header {
  display: grid;
  gap: 0.2rem;
}

.admin-scale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.admin-scale-value {
  margin-top: 0.25rem;
  color: #597083;
  font-size: var(--type-sm);
}

.admin-table-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  min-width: 0;
}

.admin-meta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  min-width: 0;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  border-radius: 0.85rem;
  border: 1px solid var(--border-soft);
  background: white;
}

.admin-table-wrap--data {
  max-height: 28rem;
}

.admin-table-wrap table {
  margin-bottom: 0;
  min-width: 100%;
}

.admin-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6fafd;
  color: #17344a;
  font-size: var(--type-xs);
}

.admin-table-wrap td {
  max-width: 16rem;
  color: #233d55;
  font-size: var(--type-xs);
  vertical-align: top;
  word-break: break-word;
}

.admin-status-list {
  display: grid;
  gap: 0.55rem;
}

.admin-status-list .surface-note {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.admin-card--env {
  grid-column: 1 / -1;
}

.admin-env-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.admin-env-field {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.admin-env-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  color: #668196;
  font-size: var(--type-xs);
}

.admin-env-meta code {
  color: #17344a;
}

.dashboard-screen__header {
  gap: 0.75rem;
}

.dashboard-screen__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.dashboard-screen__title {
  margin: 0;
  max-width: none;
  text-align: left;
}

.dashboard-screen__pdf {
  min-width: 4rem;
  min-height: 3rem;
  border-radius: 1.1rem;
  padding-inline: 1rem;
  font-size: var(--type-md);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #153b52;
  border: none;
  box-shadow: 0 10px 24px rgba(34, 76, 112, 0.16);
}

.dashboard-screen__summary {
  width: 100%;
}

.dashboard-card-panel {
  justify-content: space-between;
}

.dashboard-card-panel__hero {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dashboard-card-panel__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.dashboard-metric {
  min-height: 5rem;
  padding: 0.9rem 0.7rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
}

.dashboard-metric__label {
  color: #597083;
  font-size: var(--type-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-metric__value {
  color: #17344a;
  font-size: min(calc(var(--type-lg) * 1.28), 1.75rem);
  font-weight: 700;
}

.dashboard-card-panel__insight {
  background: linear-gradient(180deg, #edf5ff 0%, #e7f0fb 100%);
}

.dashboard-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.dashboard-meta__item {
  min-height: 4.5rem;
  padding: 0.85rem 0.8rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
}

.dashboard-meta__label {
  color: #597083;
  font-size: var(--type-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-meta__value {
  color: #17344a;
  font-size: var(--type-md);
}

.dashboard-ranking {
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 24px rgba(34, 76, 112, 0.08);
}

.dashboard-ranking__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-ranking__title {
  color: #17344a;
  font-size: calc(var(--type-md) * 1.05);
  font-weight: 700;
}

.daily-screen {
  min-height: 100%;
  justify-content: center;
}

.daily-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

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

.daily-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.daily-module-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem;
  border-radius: 1.2rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  color: #17344a;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 76, 112, 0.08);
}

.daily-module-card:hover {
  color: #17344a;
  transform: translateY(-1px);
}

.daily-module-card span {
  color: #597083;
  font-size: var(--type-sm);
}

.db-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.db-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.55rem;
}

.db-columns__item {
  padding: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: var(--type-xs);
}

.db-table {
  font-size: var(--type-sm);
}

.db-table code {
  word-break: break-word;
  color: #17344a;
}

.dashboard-ranking__meta {
  color: #597083;
  font-size: var(--type-sm);
}

.ranking-summary {
  padding: 0.9rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid var(--border-soft);
}

.summary-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.summary-ranking-list--full {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.summary-ranking-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  background: #f3f8fc;
}

.summary-ranking-item__name {
  min-width: 0;
  flex: 1 1 auto;
  color: var(--ink-strong);
  font-size: var(--type-sm);
}

.summary-ranking-item__score {
  min-width: 2.8rem;
  text-align: center;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--border-soft);
  font-size: var(--type-xs);
}

.ranking-details {
  margin-top: 0.75rem;
}

.ranking-details summary {
  cursor: pointer;
  color: #1a5d84;
  font-size: var(--type-sm);
  font-weight: 700;
}

@media (min-width: 768px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid--primary {
    grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.35fr);
  }

  .admin-scale-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .admin-env-form .btn {
    grid-column: 1 / -1;
  }

  .app-stage__inner {
    padding: 2rem;
  }

  .hero-card,
  .landing-form-panel {
    padding: 1.2rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 4vw, 1.75rem);
  }

  .question-card-panel__body {
    min-height: 16rem;
  }
}

@media (max-width: 767px) {
  .question-screen {
    gap: 0.65rem;
  }

  .question-header {
    gap: 0.6rem;
  }

  .question-progress__count {
    font-size: var(--type-sm);
  }

  .question-title {
    font-size: clamp(0.9rem, 3.8vw, 1rem);
    font-weight: 500;
  }

  .question-card-panel {
    padding: 0.8rem;
    border-radius: 1.5rem;
  }

  .question-card-panel__body {
    min-height: 11rem;
  }

  .question-card-panel__selection {
    min-height: 3.9rem;
    padding: 0.65rem 0.8rem;
  }

  .question-card-panel__selection-label {
    font-size: var(--type-sm);
  }

  .question-card-panel__selection-value {
    font-size: var(--type-md);
  }

  .question-text {
    font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  }

  .question-text--center {
    width: min(100%, 23rem);
  }

  .rating-bar-container {
    gap: 0.65rem;
    margin-top: 0.55rem;
    margin-bottom: 0.7rem;
    padding-inline: 0.35rem;
  }

  .bar-track,
  .bar-pill,
  .segment {
    min-height: 3.4rem;
  }

  .selected-bubble {
    width: 4.45rem;
    height: 4.45rem;
  }

  .label-item {
    font-size: var(--type-xs);
    line-height: 1rem;
  }

  .question-actions {
    gap: 0.65rem;
    margin-top: 0;
  }

  .question-actions__back {
    width: 3.2rem;
    height: 3.2rem;
    font-size: min(calc(var(--type-lg) * 1.24), 1.75rem);
  }

  .app-cta,
  .question-actions__next {
    min-height: 3.25rem;
    font-size: var(--type-md);
  }

  .consent-check {
    gap: 0.65rem;
    padding: 0.8rem 0.85rem;
  }

  .consent-check__copy {
    font-size: var(--type-sm);
  }

  .privacy-page {
    gap: 0.75rem;
  }

  .privacy-panel {
    padding: 0.85rem;
    border-radius: 1.5rem;
  }

  .privacy-content {
    gap: 0.75rem;
  }

  .privacy-intro {
    font-size: var(--type-sm);
  }

  .privacy-item {
    padding: 0.75rem 0.8rem;
  }

  .privacy-item__title {
    font-size: var(--type-sm);
  }

  .privacy-item__copy {
    font-size: var(--type-sm);
  }

  .back-button,
  .question-header__back,
  .question-actions__back {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 0.75rem);
    left: calc(env(safe-area-inset-left) + 0.75rem);
    right: auto;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    z-index: 1100;
  }

  .question-header {
    padding-right: 0;
  }

  .question-actions__back--ghost,
  .back-button--ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .app-frame,
  .app-stage-shell {
    min-height: 100svh;
  }

  .app-stage {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: auto;
  }

  .app-stage__inner {
    padding: 0.85rem 0.85rem 4.5rem;
  }

  .stage-page {
    gap: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 10vw, 1.75rem);
  }

  .question-card-panel {
    border-radius: 1.5rem;
  }

  .question-card-panel__body {
    min-height: 14rem;
  }

  .question-text {
    font-size: clamp(0.95rem, 4.8vw, 1.1rem);
  }

  .selected-bubble {
    width: 4.2rem;
    height: 4.2rem;
  }

  .back-button,
  .question-header__back,
  .question-actions__back {
    top: calc(env(safe-area-inset-top) + 0.55rem);
    left: calc(env(safe-area-inset-left) + 0.55rem);
    width: 2.65rem;
    height: 2.65rem;
  }
}
