@font-face {
  font-family: "Inter";
  src: url("./legal/v1.6-2026-08-25/fonts/Inter-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./legal/v1.6-2026-08-25/fonts/Manrope-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #10292c;
  --ink-soft: #4e696d;
  --muted: #718689;
  --aqua: #18b9ad;
  --aqua-deep: #0b8f87;
  --aqua-pale: #dcf8f3;
  --mint: #effcf8;
  --gold: #d7ad3f;
  --gold-light: #fff0a8;
  --sun: #f4d85a;
  --coral: #e98363;
  --pearl: #f8fbf9;
  --white: #ffffff;
  --line: rgba(17, 67, 70, 0.12);
  --line-strong: rgba(17, 67, 70, 0.2);
  --shadow: 0 28px 90px rgba(19, 72, 72, 0.2);
  --font-display: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-ui: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #edf8f5;
  color: var(--ink);
  font-family: var(--font-ui);
  letter-spacing: 0;
}

body {
  min-height: 100dvh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
label:focus-within {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.app-stage {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 16px;
}

[hidden] {
  display: none !important;
}

body.auth-pending .app-frame {
  visibility: hidden;
}

body.web-auth-visible .app-frame {
  display: none;
}

.web-access {
  position: relative;
  width: min(940px, calc(100vw - 32px));
  min-height: min(660px, calc(100dvh - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  background: rgba(248, 252, 250, 0.96);
  box-shadow: var(--shadow);
}

.web-access__visual {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  color: var(--white);
  background: #dff5f0;
}

.web-access__visual > img,
.web-access__visual-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.web-access__visual > img {
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.84) brightness(1.06);
  transform: scale(1.025);
}

.web-access__visual-veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(7, 48, 51, 0.05), rgba(8, 45, 47, 0.28)),
    linear-gradient(90deg, rgba(7, 64, 64, 0.12), transparent 70%);
}

.web-access__brand {
  position: absolute;
  z-index: 3;
  top: 34px;
  left: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 1.125rem/1 var(--font-display);
}

.web-access__brand .brand__mark {
  width: 40px;
  height: 40px;
}

.web-access__visual > p {
  position: absolute;
  z-index: 3;
  left: 36px;
  bottom: 30px;
  margin: 0;
  font: 700 0.9375rem/1.4 var(--font-display);
}

.web-access__signal {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
}

.web-access__signal i {
  width: 3px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold-light);
  animation: access-pulse 1.4s ease-in-out infinite;
}

.web-access__signal i:nth-child(2) { height: 24px; animation-delay: 120ms; }
.web-access__signal i:nth-child(3) { height: 16px; animation-delay: 240ms; }

@keyframes access-pulse {
  0%, 100% { transform: scaleY(0.72); opacity: 0.62; }
  50% { transform: scaleY(1); opacity: 1; }
}

.web-access__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 68px);
}

.web-access__security {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--aqua-deep);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.web-access__security svg {
  width: 18px;
  height: 18px;
}

.web-access__panel h1 {
  margin: 0 0 16px;
  font: 800 clamp(2rem, calc(4vw * var(--app-font-scale)), 2.875rem)/1.08 var(--font-display);
}

.web-access__panel > p {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.web-access__primary,
.web-access__telegram {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.web-access__primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(10, 56, 58, 0.18);
}

.web-access__telegram {
  margin-top: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.web-access__primary svg,
.web-access__telegram svg {
  width: 20px;
  height: 20px;
}

.web-access__primary:disabled {
  cursor: wait;
  opacity: 0.72;
}

.web-access__panel > small {
  display: block;
  margin-top: 22px;
  color: #6d8184;
  font-size: 0.75rem;
  line-height: 1.55;
}

.web-access__status {
  min-height: 21px;
  margin-top: 12px;
  color: var(--aqua-deep);
  font-size: 0.8125rem;
  font-weight: 700;
}

.web-access__status.is-error {
  color: #b1533b;
}

.web-access__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
  color: #718689;
  font-size: 0.6875rem;
  font-weight: 700;
}

.web-access__divider::before,
.web-access__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.web-access__name {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
}

.web-access__name > span {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 700;
}

.web-access__name input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
}

.web-access__secondary {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--aqua-deep);
  border: 1px solid rgba(11, 143, 135, 0.32);
  border-radius: 8px;
  background: var(--aqua-pale);
  font-weight: 800;
  cursor: pointer;
}

.web-access__secondary svg {
  width: 19px;
  height: 19px;
}

.web-access__secondary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.app-frame {
  position: relative;
  width: min(100%, 480px);
  height: min(940px, calc(100dvh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--pearl);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  scrollbar-width: none;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

body.web-mode .app-frame {
  border-color: rgba(24, 185, 173, 0.16);
}

.app-frame::-webkit-scrollbar {
  display: none;
}

.app-frame.is-secondary .living-hero {
  display: none;
}

.living-hero {
  position: relative;
  height: 690px;
  min-height: 690px;
  overflow: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(250, 255, 253, .98) 0%, rgba(247, 254, 251, .8) 36%, rgba(234, 251, 247, .08) 68%),
    url("./assets/myepigen-day-morning.webp") 58% center / cover no-repeat,
    #f6fcfa;
  isolation: isolate;
}

.living-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, rgba(248, 251, 249, 0.82) 72%, var(--pearl));
  pointer-events: none;
}

.living-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% top;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.01);
  transform-origin: center top;
  transition: transform 240ms ease-out;
  will-change: transform;
}

#miniapp-hero-avatar {
  z-index: 1;
  inset: 4% -3% 0 auto;
  width: min(66%, 560px);
  height: 96%;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0;
  filter: saturate(.82) contrast(.98) drop-shadow(0 30px 45px rgba(21, 105, 100, .16));
  -webkit-mask-image: linear-gradient(90deg, transparent 0 44%, rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, .48) 68%, #000 82%);
  mask-image: linear-gradient(90deg, transparent 0 44%, rgba(0, 0, 0, .12) 55%, rgba(0, 0, 0, .48) 68%, #000 82%);
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.015);
  transition: opacity 240ms ease, transform 240ms ease-out;
  pointer-events: none;
}

html[data-profile-gender="male"] #miniapp-hero-avatar,
html[data-profile-gender="female"] #miniapp-hero-avatar {
  opacity: .92;
}

html[data-profile-gender="unknown"] #miniapp-hero-avatar {
  display: none;
}

.profile-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% top;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(1.01);
  transform-origin: center top;
  transition: transform 240ms ease-out;
  will-change: transform;
}

.living-hero__canvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

.living-hero__veil {
  position: absolute;
  z-index: 3;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.76) 31%, transparent 64%),
    linear-gradient(180deg, rgba(255, 247, 196, 0.14) 0%, rgba(246, 253, 250, 0.14) 36%, rgba(224, 249, 244, 0.72) 100%);
  pointer-events: none;
}

.topbar,
.view-topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: max(18px, env(safe-area-inset-top)) 22px 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
}

.brand__mark {
  position: relative;
  display: block;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  filter: drop-shadow(0 0 9px rgba(24, 185, 173, 0.28));
  transform: translate3d(var(--brand-shift-x, 0), var(--brand-shift-y, 0), 0);
  transition: transform 180ms ease-out, filter 180ms ease-out;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand__mark::before {
  inset: 1px;
  border: 1px solid rgba(24, 185, 173, 0.18);
  animation: brand-halo 3.6s ease-in-out infinite;
}

.brand__mark::after {
  inset: 10px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 0 14px rgba(24, 185, 173, 0.24);
}

.brand__mark i {
  position: absolute;
  z-index: 1;
  inset: 4px 10px;
  border: 1.25px solid var(--aqua);
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: brand-orbit 12s linear infinite;
}

.brand__mark i:nth-child(1) { transform: rotate(0deg); }
.brand__mark i:nth-child(2) { transform: rotate(45deg); animation: brand-orbit 15s linear infinite reverse; }
.brand__mark i:nth-child(3) { transform: rotate(90deg); animation-duration: 18s; border-color: rgba(24, 185, 173, 0.74); }
.brand__mark i:nth-child(4) { transform: rotate(135deg); animation: brand-orbit 21s linear infinite reverse; border-color: rgba(215, 173, 63, 0.84); }

.brand__mark b {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 11px rgba(244, 216, 90, 0.94), 0 0 24px rgba(24, 185, 173, 0.34);
  transform: translate(-50%, -50%);
}

.brand:hover .brand__mark {
  filter: drop-shadow(0 0 13px rgba(24, 185, 173, 0.46));
}

@keyframes brand-orbit {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes brand-halo {
  50% { transform: scale(1.08); border-color: rgba(215, 173, 63, 0.24); }
}

.brand.compact strong {
  font-size: 0.875rem;
}

.brand.compact .brand__mark {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.icon-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.8;
}

.icon-button.subtle {
  background: transparent;
  border-color: var(--line);
}

.icon-button.glass {
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.hero-copy {
  position: relative;
  z-index: 6;
  width: 64%;
  padding: 56px 0 0 24px;
}

.micro-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--aqua-deep);
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.micro-label i {
  width: 16px;
  height: 1px;
  background: var(--aqua);
}

.hero-copy h1,
.view-hero__copy h1,
.simple-header h1,
.profile-visual__copy h1 {
  margin: 13px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: 4.125rem;
  line-height: 0.88;
}

.hero-copy > p {
  max-width: 226px;
  margin: 0;
  color: #36585a;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.52;
}

.twin-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 225px;
  margin-top: 25px;
  padding: 11px 12px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(15, 124, 119, 0.24);
  border-radius: 8px;
  background: rgba(250, 253, 250, 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 10px 34px rgba(33, 91, 87, 0.1);
  cursor: pointer;
}

.twin-status > span:first-child {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.twin-status b {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 800;
}

.twin-status small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.twin-status svg {
  width: 16px;
  height: 16px;
}

.hero-score {
  position: absolute;
  z-index: 6;
  left: 22px;
  right: 22px;
  bottom: 25px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(251, 253, 250, 0.78);
  box-shadow: 0 18px 52px rgba(16, 64, 64, 0.15);
  backdrop-filter: blur(18px) saturate(1.25);
}

.hero-score__ring,
.focus-orbit,
.profile-score-ring {
  --angle: calc(var(--score) * 3.6deg);
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--aqua) var(--angle), rgba(17, 73, 74, 0.1) 0);
}

.hero-score__ring {
  width: 88px;
  height: 88px;
}

.hero-score__ring::before,
.focus-orbit::before,
.profile-score-ring::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(250, 253, 250, 0.94);
}

.hero-score__ring::before { inset: 7px; }

.hero-score__ring > span,
.focus-orbit > span,
.profile-score-ring > * {
  position: relative;
  z-index: 1;
}

.hero-score__ring span {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-score__ring strong {
  font-family: var(--font-display);
  font-size: 1.9375rem;
  line-height: 1;
}

.hero-score__ring small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.5rem;
  font-weight: 700;
}

.hero-score__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.hero-score__copy span,
.hero-score__copy small {
  color: var(--ink-soft);
  font-size: 0.625rem;
}

.hero-score__copy strong {
  margin: 5px 0 6px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.2;
}

.app-view {
  display: none;
  min-height: 650px;
  padding-bottom: 104px;
  background: var(--pearl);
}

.app-view.active {
  display: block;
  animation: view-enter 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-band {
  position: relative;
  padding: 30px 24px;
  border-bottom: 1px solid var(--line);
}

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

.section-heading.compact {
  align-items: center;
}

.section-heading h2,
.route-preview__head h2 {
  margin: 6px 0 0;
  max-width: 310px;
  font-family: var(--font-display);
  font-size: 1.4375rem;
  font-weight: 750;
  line-height: 1.18;
}

.streak,
.goal-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 8px 10px;
  color: #765614;
  border: 1px solid rgba(194, 153, 55, 0.22);
  border-radius: 8px;
  background: #fff5d8;
  font-size: 0.625rem;
  font-weight: 700;
}

.streak svg {
  width: 14px;
  height: 14px;
}

.focus-layout {
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-top: 24px;
}

.focus-orbit {
  width: 134px;
  height: 134px;
  background:
    conic-gradient(from -90deg, var(--gold) 0 52deg, var(--aqua) 52deg var(--angle), rgba(15, 81, 82, 0.09) var(--angle));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 16px 40px rgba(17, 94, 91, 0.1);
}

.focus-orbit::before {
  inset: 11px;
  box-shadow: inset 0 0 32px rgba(31, 177, 165, 0.08);
}

.focus-orbit > span {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.focus-orbit strong {
  font-family: var(--font-display);
  font-size: 1.9375rem;
}

.focus-orbit small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.focus-copy {
  min-width: 0;
}

.focus-copy__time {
  color: var(--aqua-deep);
  font-size: 0.625rem;
  font-weight: 700;
}

.focus-copy h3 {
  margin: 6px 0 7px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.focus-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
  color: var(--aqua-deep);
  border: 0;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 750;
  cursor: pointer;
}

.text-action svg {
  width: 15px;
  height: 15px;
}

.vitals-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.vital-item {
  min-width: 0;
  padding: 25px 18px 23px 0;
}

.vital-action {
  width: 100%;
  color: inherit;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.vital-action:focus-visible,
.tracker:focus-visible {
  outline: 2px solid rgba(22, 185, 174, 0.7);
  outline-offset: 3px;
}

.vital-item:nth-child(even) {
  padding-right: 0;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.vital-item:nth-child(n+3) {
  border-top: 1px solid var(--line);
}

.vital-item > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.625rem;
  font-weight: 650;
}

.vital-item > span svg {
  width: 14px;
  height: 14px;
  color: var(--aqua-deep);
}

.vital-item > strong {
  display: block;
  margin-top: 9px;
  font-family: var(--font-display);
  font-size: 1.4375rem;
}

.vital-item > strong b {
  font: inherit;
}

.vital-item > strong small {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 600;
}

.meter {
  height: 4px;
  margin-top: 13px;
  overflow: hidden;
  background: rgba(17, 67, 70, 0.1);
}

.meter i {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--aqua-deep);
  animation: meter-grow 800ms ease-out both;
}

.meter.gold i { background: var(--gold); }
.meter.aqua i { background: #4cbfc3; }
.meter.coral i { background: var(--coral); }

.tracker-section {
  padding-bottom: 28px;
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.tracker {
  min-width: 0;
  min-height: 95px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 12px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.tracker.done {
  border-color: rgba(22, 185, 174, 0.35);
  background: linear-gradient(135deg, rgba(229, 249, 245, 0.95), rgba(255, 255, 255, 0.88));
}

.tracker > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.tracker > span svg {
  width: 17px;
  height: 17px;
  color: var(--aqua-deep);
}

.tracker b {
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.tracker small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.tracker > svg {
  width: 16px;
  height: 16px;
  color: var(--aqua-deep);
}

.day-timeline {
  position: relative;
  margin-top: 24px;
}

.day-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 34px;
  left: 53px;
  width: 1px;
  background: linear-gradient(var(--aqua), rgba(18, 110, 106, 0.12));
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 43px 14px minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
}

.timeline-event time {
  padding-top: 3px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
}

.timeline-event > i {
  position: relative;
  z-index: 2;
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border: 2px solid var(--pearl);
  border-radius: 50%;
  background: #93aaa9;
  box-shadow: 0 0 0 1px #93aaa9;
}

.timeline-event.is-done > i {
  background: var(--aqua);
  box-shadow: 0 0 0 1px var(--aqua), 0 0 12px rgba(22, 185, 174, 0.4);
}

.timeline-event.is-next > i {
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 15px rgba(201, 160, 70, 0.5);
}

.timeline-event > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 0 19px;
}

.timeline-event > div span {
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-event > div strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.timeline-event > div small {
  color: var(--ink-soft);
  font-size: 0.5625rem;
  line-height: 1.45;
}

.timeline-event > button {
  position: absolute;
  right: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--gold-light);
  cursor: pointer;
}

.timeline-event > button svg {
  width: 15px;
  height: 15px;
}

.live-feature {
  position: relative;
  height: 295px;
  overflow: hidden;
  cursor: pointer;
}

.live-feature > img,
.view-hero > img,
.atlas-tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-feature > img {
  object-position: 56% 50%;
  transition: transform 600ms ease;
}

.live-feature:hover > img {
  transform: scale(1.025);
}

.live-feature__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 47, 49, 0.88), rgba(7, 47, 49, 0.36) 63%, rgba(7, 47, 49, 0.1));
}

.live-feature__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 26px 24px;
  color: white;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8a76;
  box-shadow: 0 0 0 5px rgba(255, 138, 118, 0.17);
  animation: live-dot 1.8s ease-in-out infinite;
}

.live-feature h2 {
  max-width: 300px;
  margin: 12px 0 7px;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.05;
}

.live-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.625rem;
}

.play-control {
  position: absolute;
  right: 24px;
  bottom: 25px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border: 0;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.play-control svg {
  width: 18px;
  fill: currentColor;
}

.route-preview {
  cursor: pointer;
}

.route-preview__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.route-preview__head > strong {
  padding-top: 4px;
  color: var(--aqua-deep);
  font-size: 0.625rem;
}

.route-track,
.route-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 28px;
}

.route-track::before,
.route-map::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line-strong);
}

.route-track span,
.route-map span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.route-track i {
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 3px solid var(--pearl);
  border-radius: 50%;
  background: #acbcbb;
  box-shadow: 0 0 0 1px #acbcbb;
}

.route-track .complete i,
.route-track .active i {
  background: var(--aqua);
  box-shadow: 0 0 0 1px var(--aqua);
}

.route-track .active i {
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), 0 0 14px rgba(199, 161, 74, 0.55);
}

.route-track b,
.route-map b {
  margin-top: 11px;
  font-size: 0.5625rem;
}

.route-track small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.view-hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  color: white;
}

.view-hero > img {
  position: absolute;
  inset: 0;
}

.view-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 35, 38, 0.1), rgba(5, 38, 41, 0.82)),
    linear-gradient(90deg, rgba(4, 45, 47, 0.46), transparent 70%);
}

.view-topbar {
  color: inherit;
}

.view-topbar > span {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.view-topbar.on-light {
  padding-right: 0;
  padding-left: 0;
  color: var(--ink);
}

.view-hero__copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 35px;
}

.view-hero__copy h1 {
  max-width: 390px;
  font-size: 2.625rem;
  line-height: 1.04;
}

.view-hero__copy p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.75rem;
  line-height: 1.55;
}

.primary-action,
.outline-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 13px 17px;
  border: 0;
  border-radius: 8px;
  background: var(--gold-light);
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 750;
  cursor: pointer;
}

.primary-action svg,
.outline-action svg {
  width: 16px;
  height: 16px;
}

.player-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.player-main {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
}

.player-main svg {
  width: 17px;
  fill: currentColor;
}

.player-line > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.player-line span {
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
}

.player-line strong {
  margin: 4px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-line small {
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.audio-progress {
  position: relative;
  height: 21px;
  display: flex;
  justify-content: space-between;
  margin: 18px 0 0 61px;
  padding-top: 9px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.audio-progress::before,
.audio-progress i {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
}

.audio-progress::before {
  right: 0;
  background: rgba(17, 67, 70, 0.1);
}

.audio-progress i {
  width: 31%;
  z-index: 1;
  background: var(--aqua);
}

.broadcast-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.broadcast-list article:last-child {
  border-bottom: 0;
}

.broadcast-list time {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.broadcast-list time b {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.broadcast-list time small {
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.broadcast-list article > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.broadcast-list article span {
  color: var(--aqua-deep);
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.broadcast-list article strong {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.broadcast-list article small {
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.broadcast-list article > svg {
  width: 18px;
  color: var(--aqua-deep);
}

.simple-header {
  padding: 0 24px 32px;
  background:
    linear-gradient(155deg, rgba(235, 249, 244, 0.96), rgba(248, 251, 249, 0.9)),
    url("./assets/myepigen-atlas-hero.png") center / cover;
}

.simple-header > .eyebrow {
  margin-top: 36px;
}

.simple-header h1 {
  max-width: 420px;
  font-size: 2.625rem;
  line-height: 1.05;
}

.simple-header > p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.calendar-band {
  position: relative;
  padding: 24px 0 30px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 18px;
}

.calendar-toolbar strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
}

.calendar-toolbar strong span {
  color: var(--ink-soft);
  font-weight: 500;
}

.calendar-scroll {
  overflow: hidden;
  padding: 0 18px;
}

.calendar-canvas {
  width: 100%;
}

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

.weekdays {
  margin-bottom: 6px;
}

.weekdays span {
  padding: 0;
  color: #839493;
  font-size: 0.5rem;
  font-weight: 700;
  text-align: center;
}

.day {
  position: relative;
  min-width: 0;
  height: 88px;
  padding: 7px 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfc;
}

.day > b {
  color: #90a09f;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  line-height: 1;
}

.day.muted { opacity: 0.38; }

.day.event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(145deg, #f6fffb, #dff7f4);
}

.day.event::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px rgba(22, 185, 174, 0.42);
}

.day.event.gold::after {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 160, 70, 0.42);
}

.day.event.aqua { background: linear-gradient(145deg, #f8fffd, #d8f3f1); }
.day.event.mint { background: linear-gradient(145deg, #f7fff9, #e2f7e9); }
.day.event.gold { background: linear-gradient(145deg, #fffdf4, #f7edc9); }

.day.event.today {
  border-color: rgba(197, 161, 74, 0.55);
  box-shadow: inset 0 0 0 1px rgba(197, 161, 74, 0.16);
}

.day.event > span {
  max-width: 100%;
  margin-top: 4px;
  padding: 2px 3px;
  overflow: hidden;
  color: var(--aqua-deep);
  background: rgba(62, 202, 190, 0.15);
  font-size: 0.3125rem;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.day.event > strong {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.4375rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.day.event > small {
  display: none;
}

.day.event > button,
.day.event > .day-action {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff3b8;
}

.day.event > button svg,
.day.event > .day-action svg {
  width: 9px;
  height: 9px;
}

.next-event > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin-top: 17px;
}

.next-event time {
  display: flex;
  flex-direction: column;
}

.next-event time b {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.next-event time small,
.next-event > div > div span {
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.next-event > div > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.next-event > div > div strong {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.library-header {
  padding-bottom: 28px;
}

.library-search {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.library-search svg {
  width: 18px;
  color: var(--ink-soft);
}

.library-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.75rem;
}

.library-search input::placeholder { color: #7b8f90; }

.atlas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  background: #eef6f4;
}

.atlas-tile {
  position: relative;
  height: 246px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #dcebea;
  cursor: pointer;
}

.atlas-tile.large,
.atlas-tile.wide {
  grid-column: 1 / -1;
  height: 292px;
}

.atlas-tile > img {
  transition: transform 600ms ease;
}

.atlas-tile:hover > img { transform: scale(1.025); }

.atlas-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 32%, rgba(6, 43, 45, 0.88));
}

.atlas-tile > span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 14px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  color: white;
}

.atlas-tile small {
  color: #a5eee7;
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
}

.atlas-tile strong {
  margin: 6px 0 5px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.1;
}

.atlas-tile.large strong,
.atlas-tile.wide strong { font-size: 1.5625rem; }

.atlas-tile b {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.5rem;
  font-weight: 500;
  line-height: 1.35;
}

.library-tools > button,
.profile-actions > button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.library-tools > button:last-child,
.profile-actions > button:last-child { border-bottom: 0; }

.library-tools > button > svg:first-child,
.profile-actions > button > svg:first-child {
  width: 36px;
  height: 36px;
  padding: 8px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.library-tools > button > span,
.profile-actions > button > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.library-tools strong,
.profile-actions strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.library-tools small,
.profile-actions small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.library-tools > button > svg:last-child,
.profile-actions > button > svg:last-child {
  width: 17px;
  height: 17px;
}

.profile-visual {
  position: relative;
  height: 590px;
  overflow: hidden;
  color: white;
  background: #cfe3e1;
}

.profile-visual__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 41, 43, 0.08) 22%, rgba(5, 41, 43, 0.74));
}

.profile-visual__copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 34px;
}

.profile-visual__copy .eyebrow { color: #bff5ee; }

.profile-visual__copy h1 {
  font-size: 3rem;
  line-height: 1;
}

.profile-visual__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.6875rem;
}

.outline-action {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.profile-score-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.profile-score-ring {
  width: 112px;
  height: 112px;
  flex-direction: column;
}

.profile-score-ring::before { inset: 9px; }

.profile-score-ring strong,
.profile-score-ring span {
  display: block;
  text-align: center;
}

.profile-score-ring strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.profile-score-ring span {
  max-width: 65px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.profile-score-band h2 {
  margin: 6px 0 7px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.25;
}

.profile-score-band p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.625rem;
  line-height: 1.5;
}

.goal-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.goal-numbers span {
  display: flex;
  flex-direction: column;
  padding: 17px 13px;
  border-right: 1px solid var(--line);
}

.goal-numbers span:first-child { padding-left: 0; }
.goal-numbers span:last-child { border-right: 0; }

.goal-numbers small {
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.goal-numbers strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.goal-numbers b {
  color: var(--aqua-deep);
  font-size: 0.5rem;
}

.route-map::before { top: 15px; }

.route-map i {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  color: #718584;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--pearl);
  font-style: normal;
  font-size: 0.5625rem;
}

.route-map .done i,
.route-map .active i {
  color: white;
  border-color: var(--aqua);
  background: var(--aqua);
}

.route-map .done i svg {
  width: 14px;
  height: 14px;
}

.route-map .active i {
  color: var(--ink);
  border-color: var(--gold);
  background: var(--gold-light);
  box-shadow: 0 0 18px rgba(199, 161, 74, 0.4);
}

.system-scores {
  margin-top: 20px;
}

.system-scores article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.system-scores article:last-child { border-bottom: 0; }

.system-scores img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.system-scores span {
  display: flex;
  flex-direction: column;
}

.system-scores span b {
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.system-scores span small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.system-scores > article > strong {
  min-width: 38px;
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 1.4375rem;
  text-align: right;
}

.audit-atlas {
  position: relative;
  height: 410px;
  margin: 22px -24px 0;
  overflow: hidden;
  background: #dfeeed;
  isolation: isolate;
}

.audit-atlas > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.03);
}

.audit-atlas__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(248, 251, 249, 0.84), transparent 51%),
    linear-gradient(180deg, transparent 38%, rgba(10, 49, 51, 0.78));
}

.audit-atlas__signal {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.audit-atlas__signal > i {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 1px rgba(7, 99, 96, 0.32), 0 0 20px rgba(31, 198, 184, 0.74);
}

.audit-atlas__signal > i::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(29, 180, 170, 0.36);
  border-radius: 50%;
  animation: signal-pulse 2.8s ease-out infinite;
}

.audit-atlas__signal span {
  min-width: 82px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 6px;
  background: rgba(250, 253, 251, 0.76);
  box-shadow: 0 8px 24px rgba(18, 78, 76, 0.11);
  backdrop-filter: blur(12px);
}

.audit-atlas__signal strong {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1;
}

.audit-atlas__signal small {
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.audit-atlas__signal.recovery { top: 71px; left: 27px; }
.audit-atlas__signal.energy { top: 151px; left: 46px; }
.audit-atlas__signal.movement { top: 111px; right: 19px; flex-direction: row-reverse; }
.audit-atlas__signal.energy > i { background: var(--gold); box-shadow: 0 0 0 1px rgba(139, 105, 27, 0.28), 0 0 20px rgba(224, 187, 84, 0.76); }
.audit-atlas__signal.movement > i { background: #80c5d0; }

.audit-atlas__focus {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 25px;
  left: 24px;
  display: flex;
  flex-direction: column;
  color: white;
}

.audit-atlas__focus span {
  color: #adf1e8;
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-atlas__focus strong {
  max-width: 330px;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.audit-atlas__focus small {
  max-width: 330px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.625rem;
  line-height: 1.45;
}

.audit-report-link {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 0 0;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.audit-report-link span {
  display: flex;
  flex-direction: column;
}

.audit-report-link b {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.audit-report-link small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
  line-height: 1.45;
}

.audit-report-link svg {
  width: 18px;
  height: 18px;
  color: var(--aqua-deep);
}

.avatar-studio-view {
  --avatar-stage-bg: #e7f1ef;
  background: #f7faf8;
}

.avatar-studio-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f9fbf7 0%, #e6f2ef 62%, #f7faf8 100%);
}

.avatar-topbar {
  position: relative;
  z-index: 8;
}

.avatar-topbar > span {
  color: var(--ink-soft);
  font-size: 0.6875rem;
  font-weight: 700;
}

.avatar-studio-copy {
  position: relative;
  z-index: 6;
  padding: 24px 24px 0;
}

.avatar-studio-copy h1 {
  margin: 9px 0 10px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 0.98;
}

.avatar-studio-copy p {
  max-width: 350px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.avatar-body-stage {
  --lean-opacity: 0;
  --plus-opacity: 0;
  --weight-120-opacity: 0;
  --weight-150-opacity: 0;
  --muscle-4-opacity: 0;
  --muscle-8-opacity: 0;
  position: relative;
  height: 670px;
  margin-top: 20px;
  overflow: hidden;
  background: var(--avatar-stage-bg);
  isolation: isolate;
}

.avatar-body-stage::before,
.avatar-body-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.avatar-body-stage::before {
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 250, 247, 0.72), transparent 20%, transparent 80%, rgba(246, 250, 247, 0.72)),
    linear-gradient(180deg, rgba(245, 250, 247, 0.08) 48%, rgba(9, 56, 58, 0.44));
}

.avatar-body-stage::after {
  right: 22px;
  bottom: 38px;
  left: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(189, 237, 230, 0.88), transparent);
  box-shadow: 0 0 14px rgba(70, 210, 194, 0.72);
}

.avatar-body-stage__images,
.avatar-state {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avatar-state {
  object-fit: cover;
  object-position: center center;
  transform: scale(var(--avatar-width-scale, 1), var(--avatar-height-scale, 1));
  transform-origin: center bottom;
  transition: opacity 180ms ease, filter 180ms ease, transform 320ms ease;
  will-change: opacity;
}

.avatar-state-current { opacity: 1; }
.avatar-body-stage[data-visual-state]:not([data-visual-state="current"]) .avatar-state-current { opacity: 0; }
.avatar-state-lean { opacity: var(--lean-opacity); }
.avatar-state-plus { opacity: var(--plus-opacity); }
.avatar-state-weight-120 { opacity: var(--weight-120-opacity); }
.avatar-state-weight-150 { opacity: var(--weight-150-opacity); }
.avatar-state-muscle-4 { opacity: var(--muscle-4-opacity); }
.avatar-state-muscle-8 { opacity: var(--muscle-8-opacity); }

.avatar-body-stage[data-age-group="mature"] .avatar-state { filter: saturate(0.97) contrast(1.01); }
.avatar-body-stage[data-age-group="senior"] .avatar-state { filter: saturate(0.92) contrast(1.025); }

.avatar-body-stage__canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: 0;
  touch-action: none;
  transition: opacity 420ms ease;
}

.avatar-body-stage.has-live-avatar .avatar-state { opacity: 0 !important; }
.avatar-body-stage.has-live-avatar .avatar-body-stage__canvas { opacity: 1; }

.avatar-body-stage.is-comparing .avatar-state:not(.avatar-state-current) {
  opacity: 0;
}

.avatar-body-stage.is-comparing .avatar-state-current {
  opacity: 1 !important;
}

.avatar-body-stage.has-live-avatar.is-comparing .avatar-body-stage__canvas {
  opacity: 0;
}

.avatar-scan-line {
  position: absolute;
  z-index: 5;
  top: 14%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 217, 203, 0.96), transparent);
  box-shadow: 0 0 18px rgba(56, 207, 194, 0.88);
  animation: avatar-scan 5.5s ease-in-out infinite;
}

.avatar-body-orbit {
  position: absolute;
  z-index: 5;
  top: 44%;
  left: 50%;
  width: 310px;
  height: 94px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(44, 179, 168, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(49, 187, 177, 0.1);
  pointer-events: none;
}

.avatar-body-orbit i {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(213, 173, 67, 0.9);
}

.avatar-body-orbit i:nth-child(1) { left: -3px; }
.avatar-body-orbit i:nth-child(2) { right: -3px; }
.avatar-body-orbit i:nth-child(3) { top: 0; left: 50%; }

.avatar-stage-readout {
  position: absolute;
  z-index: 6;
  right: 22px;
  bottom: 64px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: white;
}

.avatar-stage-readout > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar-stage-readout > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70ded2;
  box-shadow: 0 0 14px rgba(111, 225, 213, 0.94);
}

.avatar-stage-readout b {
  font-size: 0.625rem;
}

.avatar-stage-readout > strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.avatar-stage-readout > strong small {
  font-size: 0.6875rem;
}

.avatar-compare {
  position: absolute;
  z-index: 7;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 6px;
  background: rgba(250, 253, 251, 0.72);
  box-shadow: 0 9px 28px rgba(24, 76, 74, 0.12);
  backdrop-filter: blur(12px);
  cursor: pointer;
  touch-action: none;
}

.avatar-compare svg {
  width: 15px;
  height: 15px;
  color: var(--aqua-deep);
}

.avatar-compare span {
  font-size: 0.5625rem;
  font-weight: 700;
}

.simulation-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  font-weight: 800;
  text-transform: uppercase;
}

.simulation-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px rgba(23, 185, 174, 0.72);
}

.body-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf4f2;
}

.body-presets button {
  min-height: 40px;
  padding: 7px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
}

.body-presets button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 6px 18px rgba(14, 76, 75, 0.09);
}

.body-control {
  display: block;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.body-control > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.body-control b {
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.body-control output {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
}

.body-control input {
  width: 100%;
  height: 28px;
  margin: 12px 0 4px;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.body-control:focus-within {
  outline: 0;
}

.body-control input:focus-visible {
  outline: 0;
}

.body-control input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 2px 9px rgba(6, 79, 78, 0.3), 0 0 0 1px rgba(10, 118, 113, 0.22), 0 0 0 5px rgba(22, 185, 174, 0.16);
}

.body-control input::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-light), var(--aqua), #a7d8df);
}

.body-control input::-moz-range-track {
  height: 5px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--gold-light), var(--aqua), #a7d8df);
}

.body-control input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -10px;
  appearance: none;
  border: 6px solid white;
  border-radius: 50%;
  background: var(--aqua-deep);
  box-shadow: 0 2px 9px rgba(6, 79, 78, 0.3), 0 0 0 1px rgba(10, 118, 113, 0.22);
}

.body-control input::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 5px solid white;
  border-radius: 50%;
  background: var(--aqua-deep);
  box-shadow: 0 2px 9px rgba(6, 79, 78, 0.3);
}

.body-control > small {
  display: flex;
  justify-content: space-between;
  color: #75898b;
  font-size: 0.5rem;
}

.body-control > small i {
  font-style: normal;
}

.body-range-scale {
  position: relative;
  display: block !important;
  height: 29px;
  margin-top: 3px;
}

.body-range-scale i {
  position: absolute;
  top: 0;
  left: var(--at);
  display: flex;
  min-width: 54px;
  flex-direction: column;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.15;
  transform: translateX(-50%);
  white-space: nowrap;
}

.body-range-scale i::before {
  width: 1px;
  height: 5px;
  margin-bottom: 3px;
  background: rgba(12, 130, 127, 0.34);
  content: "";
}

.body-range-scale i em {
  margin-top: 2px;
  color: #829496;
  font-size: 0.4375rem;
  font-style: normal;
  font-weight: 500;
}

.body-range-scale .range-start {
  align-items: flex-start;
  transform: none;
}

.body-range-scale .range-end {
  align-items: flex-end;
  transform: translateX(-100%);
}

.body-range-scale .range-current {
  color: var(--aqua-deep);
}

.body-range-scale .range-current::before {
  background: var(--gold);
}

.body-composition-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.body-composition-strip span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 15px 10px;
  border-right: 1px solid var(--line);
}

.body-composition-strip span:first-child { padding-left: 0; }
.body-composition-strip span:last-child { border-right: 0; }

.body-composition-strip small {
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.body-composition-strip strong {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.simulation-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  margin: 20px 0 0;
  padding: 14px 0 0;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.simulation-note > svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.simulation-note span {
  display: flex;
  flex-direction: column;
}

.simulation-note b {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.simulation-note small {
  margin-top: 4px;
  font-size: 0.5625rem;
  line-height: 1.5;
}

.capture-count {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.capture-lead {
  max-width: 370px;
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: 0.625rem;
  line-height: 1.55;
}

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

.capture-shot {
  min-width: 0;
  cursor: pointer;
}

.capture-shot input { display: none; }

.capture-shot__preview {
  position: relative;
  height: 226px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49.6%, rgba(17, 130, 126, 0.13) 50%, transparent 50.4%),
    linear-gradient(transparent 49.6%, rgba(17, 130, 126, 0.13) 50%, transparent 50.4%),
    #edf5f3;
}

.capture-shot__preview::before {
  content: "";
  position: absolute;
  top: 24px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(12, 130, 127, 0.22);
  border-radius: 50%;
}

.capture-shot__preview::after {
  content: "";
  position: absolute;
  top: 82px;
  width: 86px;
  height: 118px;
  border: 1px solid rgba(12, 130, 127, 0.22);
  border-radius: 48% 48% 20% 20%;
}

.capture-shot__preview.side::after {
  width: 59px;
  border-radius: 46% 58% 25% 20%;
  transform: translateX(7px);
}

.capture-shot__preview > svg {
  position: relative;
  z-index: 2;
  width: 25px;
  height: 25px;
  color: var(--aqua-deep);
}

.capture-shot__preview img {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  object-fit: cover;
}

.capture-shot.has-image .capture-shot__preview img { display: block; }

.capture-shot > b,
.capture-shot > small {
  display: block;
  padding: 0 4px;
}

.capture-shot > b {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.capture-shot > small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.avatar-profile-source {
  margin-top: 24px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--line);
}

.avatar-profile-source__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.avatar-profile-source__head span {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
}

.avatar-profile-source__head small {
  color: var(--aqua-deep);
  font-size: 0.5rem;
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
}

.avatar-profile-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 78px;
  gap: 7px;
}

.avatar-profile-fields > label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding: 9px 10px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f9f7;
}

.avatar-profile-fields > label > span {
  grid-column: 1 / -1;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 0.4375rem;
  font-weight: 700;
  text-transform: uppercase;
}

.avatar-profile-fields input {
  min-width: 0;
  width: 100%;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 800;
}

.avatar-profile-fields input::-webkit-inner-spin-button,
.avatar-profile-fields input::-webkit-outer-spin-button { appearance: none; }

.avatar-profile-fields > label > small {
  padding-bottom: 2px;
  color: var(--ink-soft);
  font-size: 0.4375rem;
}

.avatar-gender {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #edf4f2;
}

.avatar-gender button {
  border: 0;
  border-radius: 4px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 0.625rem;
  font-weight: 800;
  cursor: pointer;
}

.avatar-gender button.active {
  color: var(--ink);
  background: white;
  box-shadow: 0 5px 14px rgba(14, 76, 75, 0.1);
}

.avatar-cloud-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin-top: 16px;
  color: var(--ink-soft);
  cursor: pointer;
}

.avatar-cloud-consent[hidden] { display: none; }

.avatar-cloud-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--aqua-deep);
}

.avatar-cloud-consent span {
  display: flex;
  flex-direction: column;
}

.avatar-cloud-consent b {
  color: var(--ink);
  font-size: 0.5625rem;
}

.avatar-cloud-consent small {
  margin-top: 3px;
  font-size: 0.5rem;
  line-height: 1.45;
}

.avatar-build-action {
  width: 100%;
  min-height: 60px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 11px 14px;
  color: white;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  cursor: pointer;
}

.avatar-build-action:disabled {
  color: #809395;
  background: #e4ecea;
  cursor: default;
}

.avatar-build-action > svg:first-child {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.avatar-build-action > svg:last-child {
  width: 17px;
  height: 17px;
}

.avatar-build-action span {
  display: flex;
  flex-direction: column;
}

.avatar-build-action b {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.avatar-build-action small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.68;
  font-size: 0.5rem;
}

.avatar-build-progress {
  position: relative;
  height: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  opacity: 0;
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  transition: 260ms ease;
}

.avatar-build-progress.active {
  height: 38px;
  opacity: 1;
}

.avatar-build-progress > i {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(14, 138, 132, 0.2);
  border-top-color: var(--aqua-deep);
  border-radius: 50%;
  animation: avatar-spin 0.8s linear infinite;
}

.avatar-build-progress.complete > i {
  border: 0;
  background: var(--aqua);
  animation: none;
}

.privacy-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.privacy-line > svg {
  width: 19px;
  height: 19px;
  color: var(--aqua-deep);
}

.privacy-line span {
  display: flex;
  flex-direction: column;
}

.privacy-line b {
  font-size: 0.5625rem;
}

.privacy-line small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.45;
}

.avatar-route__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 7px;
}

.avatar-route__head h2 {
  max-width: 300px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.18;
}

.avatar-route__head > strong {
  flex: 0 0 auto;
  color: var(--aqua-deep);
  font-size: 0.625rem;
}

.avatar-route__line {
  position: relative;
  height: 78px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 28px;
}

.avatar-route__line > i,
.avatar-route__line > b {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 2px;
}

.avatar-route__line > i { background: rgba(16, 65, 68, 0.12); }
.avatar-route__line > b { right: auto; width: var(--progress); background: var(--aqua); }

.avatar-route__line > span {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: 25px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.avatar-route__line > span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--pearl);
  border-radius: 50%;
  background: #afc1c1;
  box-shadow: 0 0 0 1px rgba(13, 90, 90, 0.2);
}

.avatar-route__line > span:nth-of-type(2) { align-items: center; }
.avatar-route__line > span:nth-of-type(2)::before { left: calc(50% - 7px); }
.avatar-route__line > span:last-child { align-items: flex-end; }
.avatar-route__line > span:last-child::before { right: 0; left: auto; }
.avatar-route__line > span.done::before,
.avatar-route__line > span.active::before { background: var(--aqua); }
.avatar-route__line > span.active::before { box-shadow: 0 0 0 1px var(--aqua), 0 0 16px rgba(24, 185, 174, 0.62); }

.avatar-route__line small {
  margin-top: 4px;
  font-family: var(--font-ui);
  font-size: 0.5rem;
}

.avatar-route > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.625rem;
  line-height: 1.55;
}

.micro-rating {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.micro-chart {
  display: grid;
  gap: 13px;
  margin-top: 22px;
}

.micro-chart > span {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 33px;
  align-items: center;
  gap: 10px;
}

.micro-chart b,
.micro-chart strong {
  font-size: 0.5625rem;
}

.micro-chart strong {
  color: var(--ink-soft);
  text-align: right;
}

.micro-chart i {
  height: 7px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(17, 67, 70, 0.08);
}

.micro-chart u {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #ead17d);
  text-decoration: none;
}

.micro-chart span:nth-child(n+5) u {
  background: linear-gradient(90deg, var(--aqua-deep), #65cbc1);
}

.profile-actions > button > b {
  font-size: 0.625rem;
}

.profile-actions > button > b.online { color: var(--aqua-deep); }

.movement-hero,
.system-hero {
  position: relative;
  height: 570px;
  overflow: hidden;
  color: white;
  background: #bcdad7;
}

.movement-hero > img,
.system-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.movement-hero > img { object-position: 55% 50%; }
.system-hero > img { object-position: 54% 50%; }

.movement-hero__veil,
.system-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 41, 43, 0.08), rgba(4, 41, 43, 0.82));
}

.movement-hero__copy,
.system-hero__copy {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 31px;
}

.movement-hero__copy .eyebrow,
.system-hero__copy .eyebrow {
  color: #b9f3ec;
}

.movement-hero__copy h1,
.system-hero__copy h1 {
  max-width: 390px;
  margin: 9px 0 10px;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.03;
}

.movement-hero__copy > p,
.system-hero__copy > p {
  max-width: 370px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.6875rem;
  line-height: 1.55;
}

.movement-hero__copy > div {
  display: flex;
  gap: 18px;
  margin-top: 17px;
}

.movement-hero__copy > div span {
  display: flex;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.5rem;
}

.movement-hero__copy > div b {
  color: white;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.mode-switch button {
  min-width: 0;
  padding: 10px 3px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 0.5rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mode-switch button.active {
  color: white;
  background: var(--ink);
}

.training-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.training-card {
  position: relative;
  min-height: 116px;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 8px 13px 8px 8px;
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.training-card.featured {
  border-color: rgba(23, 179, 169, 0.3);
  background: linear-gradient(135deg, #f7fffc, #e4f7f3);
}

.training-card.selected {
  border-color: var(--aqua-deep);
  box-shadow: inset 0 0 0 1px var(--aqua-deep), 0 10px 24px rgba(16, 137, 132, 0.12);
}

.training-card > img {
  width: 98px;
  height: 98px;
  object-fit: cover;
  border-radius: 6px;
}

.training-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.training-card small {
  color: var(--aqua-deep);
  font-size: 0.4375rem;
  font-weight: 700;
  text-transform: uppercase;
}

.training-card strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.training-card b {
  color: var(--ink-soft);
  font-size: 0.5rem;
  font-weight: 500;
}

.training-card > svg {
  width: 33px;
  height: 33px;
  padding: 9px;
  border-radius: 50%;
  background: var(--gold-light);
}

.system-hero__copy .questionnaire-total {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}

.questionnaire-total strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.questionnaire-total span {
  max-width: 110px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.5rem;
  line-height: 1.35;
}

.questionnaire-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) 35px;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.questionnaire-list > button:last-child { border-bottom: 0; }

.system-number {
  color: #9babab;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
}

.questionnaire-list > button > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.questionnaire-list > button strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.questionnaire-list > button small {
  margin: 4px 0 9px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.questionnaire-list > button > div > i {
  height: 3px;
  overflow: hidden;
  background: rgba(17, 67, 70, 0.08);
}

.questionnaire-list > button u {
  display: block;
  width: var(--value);
  height: 100%;
  background: var(--aqua);
  text-decoration: none;
}

.questionnaire-list > button > b {
  min-width: 34px;
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  text-align: right;
}

.questionnaire-list > button.complete > b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua-pale);
}

.questionnaire-list > button.complete > b svg {
  width: 14px;
  height: 14px;
}

.questionnaire-list > button.active {
  margin: 0 -12px;
  width: calc(100% + 24px);
  padding-right: 12px;
  padding-left: 12px;
  background: linear-gradient(90deg, rgba(226, 248, 243, 0.74), transparent);
}

.devices-header {
  position: relative;
  min-height: 465px;
  overflow: hidden;
}

.devices-header::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 310px;
  height: 310px;
  border: 1px solid rgba(24, 177, 168, 0.17);
  border-radius: 50%;
  box-shadow: inset 0 0 50px rgba(24, 177, 168, 0.08), 0 0 0 28px rgba(24, 177, 168, 0.035);
}

.device-pulse {
  position: absolute;
  z-index: 2;
  right: 31px;
  bottom: 42px;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
}

.device-pulse > i {
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(17, 157, 150, 0.32);
  border-radius: 50%;
  animation: signal-pulse 3s ease-out infinite;
}

.device-pulse > i:nth-child(2) { animation-delay: 1.2s; }

.device-pulse > b {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 16px 36px rgba(8, 62, 64, 0.28);
}

.device-pulse > b svg {
  width: 27px;
  height: 27px;
  color: #85e5dc;
}

.device-list article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.device-list article:last-child { border-bottom: 0; }

.device-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f6f3;
}

.device-logo svg {
  width: 20px;
  height: 20px;
  color: var(--aqua-deep);
}

.device-logo.google { background: #f4edcf; }
.device-logo.ring { background: #e8edf7; }
.device-logo.whoop { background: #f6e8e2; }

.device-list article > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.device-list strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.device-list small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.device-list article > button {
  padding: 8px 9px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 0.5rem;
  font-weight: 700;
}

.device-list article.connected > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--aqua-deep);
  border-color: rgba(22, 185, 174, 0.28);
  background: var(--aqua-pale);
}

.device-list article.connected > button i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
}

.sync-summary > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sync-summary > div span {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 4px;
  border-right: 1px solid var(--line);
}

.sync-summary > div span:last-child { border-right: 0; }

.sync-summary b {
  font-family: var(--font-display);
  font-size: 1rem;
}

.sync-summary small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.lab-view {
  min-height: 100%;
  background:
    radial-gradient(circle at 84% 12%, rgba(241, 210, 117, 0.16), transparent 24%),
    linear-gradient(180deg, #f8fcfa 0%, #eef8f5 100%);
}

.voice-header,
.genetics-header,
.privacy-header {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(21, 142, 137, 0.12);
  background:
    radial-gradient(circle at 78% 68%, rgba(92, 219, 207, 0.2), transparent 30%),
    radial-gradient(circle at 22% 18%, rgba(247, 223, 148, 0.18), transparent 25%),
    linear-gradient(155deg, #fbfdfb 0%, #edf8f4 58%, #f7f9ed 100%);
}

.voice-header::after,
.genetics-header::after,
.privacy-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  bottom: -150px;
  width: 410px;
  height: 410px;
  border: 1px solid rgba(20, 171, 162, 0.18);
  border-radius: 50%;
  box-shadow:
    inset 0 0 70px rgba(59, 205, 193, 0.08),
    0 0 0 34px rgba(49, 197, 187, 0.035),
    0 0 0 78px rgba(217, 182, 72, 0.025);
}

.voice-header > p,
.genetics-header > p,
.privacy-header > p {
  max-width: 300px;
}

.voice-orbit,
.dna-field,
.privacy-shield {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 34px;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
}

.voice-orbit > i {
  position: absolute;
  width: calc(42px + var(--wave, 0px));
  height: calc(42px + var(--wave, 0px));
  border: 1px solid rgba(19, 169, 159, 0.38);
  border-radius: 50%;
  animation: signal-pulse 3.2s ease-out infinite;
}

.voice-orbit > i:nth-child(1) { --wave: 32px; }
.voice-orbit > i:nth-child(2) { --wave: 68px; animation-delay: 0.8s; }
.voice-orbit > i:nth-child(3) { --wave: 100px; animation-delay: 1.6s; }

.voice-orbit > b,
.privacy-shield {
  width: 68px;
  height: 68px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--aqua-deep), #0b6062);
  box-shadow: 0 18px 40px rgba(10, 94, 94, 0.22), inset 0 0 20px rgba(106, 226, 215, 0.22);
}

.voice-orbit > b {
  display: grid;
  place-items: center;
}

.voice-orbit > b svg,
.privacy-shield svg {
  width: 27px;
  height: 27px;
  color: #a5eee5;
}

.dna-field {
  transform: rotate(-8deg);
}

.dna-field::before,
.dna-field::after {
  content: "";
  position: absolute;
  inset: 16px 52px;
  border: 2px solid rgba(17, 164, 156, 0.48);
  border-top: 0;
  border-bottom: 0;
  border-radius: 50%;
  transform: rotate(28deg);
}

.dna-field::after {
  border-color: rgba(213, 172, 58, 0.44);
  transform: rotate(-28deg);
}

.dna-field i,
.dna-field b,
.dna-field span {
  position: absolute;
  left: 38px;
  right: 38px;
  height: 1px;
  background: linear-gradient(90deg, var(--aqua), var(--gold));
  box-shadow: 0 0 12px rgba(42, 191, 181, 0.34);
}

.dna-field i:nth-child(1) { top: 34px; transform: rotate(14deg); }
.dna-field i:nth-child(2) { top: 62px; transform: rotate(-12deg); }
.dna-field b { top: 88px; transform: rotate(15deg); }
.dna-field span { top: 112px; transform: rotate(-10deg); }

.privacy-shield {
  right: 54px;
  bottom: 54px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  transform: rotate(8deg);
}

.privacy-shield svg {
  width: 38px;
  height: 38px;
  transform: rotate(-8deg);
}

.voice-workspace,
.genetics-workspace,
.privacy-workspace {
  padding-top: 28px;
  padding-bottom: 110px;
}

.section-heading.compact > strong,
#voice-mode-badge,
#privacy-region {
  padding: 7px 9px;
  color: var(--aqua-deep);
  border: 1px solid rgba(20, 169, 160, 0.22);
  border-radius: 6px;
  background: rgba(232, 249, 244, 0.74);
  font-size: 0.5rem;
  text-transform: uppercase;
}

.voice-preset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 20px;
}

.voice-preset-grid > button {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 13px 11px;
  text-align: left;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.voice-preset-grid > button > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.voice-preset-grid > button span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.voice-preset-grid b {
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.voice-preset-grid small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-preset-grid > button.active {
  border-color: rgba(14, 159, 151, 0.42);
  background: linear-gradient(135deg, #f8fffc, #e7f7f2);
  box-shadow: inset 0 0 0 1px rgba(34, 184, 174, 0.08);
}

.module-consent,
.module-toggle,
.device-import {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.module-consent input {
  width: 18px;
  height: 18px;
  accent-color: var(--aqua-deep);
}

.module-consent span,
.module-toggle > span,
.device-import > span {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.module-consent b,
.module-toggle b,
.device-import b {
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.module-consent small,
.module-toggle small,
.device-import small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.4;
}

.module-toggle {
  justify-content: space-between;
}

.module-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.module-toggle > i {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 24px;
  background: #d8e3e1;
  transition: 180ms ease;
}

.module-toggle > i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(10, 60, 62, 0.18);
  transition: 180ms ease;
}

.module-toggle input:checked + i { background: var(--aqua); }
.module-toggle input:checked + i::after { transform: translateX(18px); }

.voice-record-action,
.module-primary-action {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 16px;
  color: white;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #0d5558, #087d79);
  box-shadow: 0 12px 28px rgba(8, 85, 86, 0.16);
}

.voice-record-action {
  justify-content: flex-start;
  color: var(--ink);
  border: 1px solid rgba(18, 167, 158, 0.24);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.voice-record-action > svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  color: white;
  border-radius: 50%;
  background: var(--aqua-deep);
}

.voice-record-action span {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.voice-record-action b { font-family: var(--font-display); font-size: 0.75rem; }
.voice-record-action small { margin-top: 3px; color: var(--ink-soft); font-size: 0.5rem; }
.voice-record-action.is-recording > svg { background: var(--coral); animation: live-dot 0.8s ease-in-out infinite; }
.voice-record-action:disabled,
.module-primary-action:disabled { opacity: 0.48; box-shadow: none; }

#voice-preview {
  width: 100%;
  height: 38px;
  margin: 10px 0 4px;
}

.module-primary-action svg { width: 18px; height: 18px; }
.module-primary-action span { font-family: var(--font-display); font-size: 0.6875rem; }

.module-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  line-height: 1.45;
}

.module-status.is-error { color: #a24840; }

.genetics-drop,
.device-import {
  cursor: pointer;
}

.genetics-drop {
  min-height: 132px;
  display: grid;
  place-items: center;
  gap: 10px;
  margin: 18px 0;
  padding: 24px;
  text-align: center;
  border: 1px dashed rgba(18, 162, 154, 0.42);
  border-radius: 8px;
  background: rgba(248, 255, 252, 0.72);
}

.genetics-drop input,
.device-import input { display: none; }

.genetics-drop > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.genetics-drop span { display: flex; flex-direction: column; }
.genetics-drop b { font-family: var(--font-display); font-size: 0.8125rem; }
.genetics-drop small { margin-top: 5px; color: var(--ink-soft); font-size: 0.5rem; }

.genetics-summary {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.genetics-summary > span {
  min-height: 78px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--aqua) 0 36%, var(--gold) 36% 52%, #e1ece9 52%);
  box-shadow: inset 0 0 0 10px #f7fbf9;
}

.genetics-summary b { font-family: var(--font-display); font-size: 1.375rem; }
.genetics-summary small { max-width: 60px; color: var(--ink-soft); font-size: 0.375rem; text-align: center; }
.genetics-summary p { margin: 0; color: var(--ink-soft); font-size: 0.5625rem; line-height: 1.5; }

.genetics-results article,
.capability-list article {
  display: grid;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.genetics-results article {
  grid-template-columns: minmax(0, 1fr) auto;
}

.genetics-results article > span,
.capability-list article > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.genetics-results b,
.capability-list b { font-family: var(--font-display); font-size: 0.6875rem; }
.genetics-results small,
.capability-list small { margin-top: 4px; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.4; }
.genetics-results strong { color: var(--aqua-deep); font-family: var(--font-display); font-size: 0.6875rem; }

.capability-list { margin: 15px 0 24px; }
.capability-list article { grid-template-columns: 34px minmax(0, 1fr) auto; }
.capability-list article > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.capability-list article > strong {
  max-width: 92px;
  color: var(--aqua-deep);
  font-size: 0.4375rem;
  text-align: right;
  text-transform: uppercase;
}

.privacy-actions > button {
  width: 100%;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  text-align: left;
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.privacy-actions > button > svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.privacy-actions > button span { display: flex; flex-direction: column; }
.privacy-actions b { font-family: var(--font-display); font-size: 0.6875rem; }
.privacy-actions small { margin-top: 4px; color: var(--ink-soft); font-size: 0.5rem; }
.privacy-actions > button.danger > svg { color: #a24840; background: #f8e8e5; }
.privacy-actions > button.danger b { color: #923c35; }

.questionnaire-form {
  margin: 0;
  padding-top: 24px;
  padding-bottom: 110px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fcfa, #edf7f4);
}

.questionnaire-form[hidden] { display: none; }

.questionnaire-form > label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.questionnaire-form > label > span {
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.questionnaire-form input[type="range"] {
  width: 100%;
  accent-color: var(--aqua-deep);
}

.questionnaire-form [data-range-output] {
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  text-align: right;
}

.questionnaire-form select,
.questionnaire-form textarea {
  width: 100%;
  padding: 12px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  outline: 0;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.625rem;
}

.questionnaire-form select:focus,
.questionnaire-form textarea:focus { border-color: var(--aqua); }

.device-import {
  margin-top: 18px;
  padding: 15px 0;
}

.device-import > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.bottom-nav {
  position: sticky;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 86px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 9px 8px max(9px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(17, 67, 70, 0.1);
  background: rgba(249, 252, 250, 0.92);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 -12px 30px rgba(17, 67, 70, 0.07);
}

.bottom-nav button {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 4px 2px;
  color: #6d8182;
  border: 0;
  border-radius: 16px;
  background: transparent;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.bottom-nav button::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 32px;
  height: 3px;
  opacity: 0;
  border-radius: 0 0 6px 6px;
  background: var(--aqua);
}

.bottom-nav button.active {
  color: var(--ink);
}

.bottom-nav button.active::before { opacity: 1; }

.bottom-nav svg {
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid rgba(17, 112, 109, 0.08);
  border-radius: 12px;
  background: rgba(226, 241, 237, 0.68);
  stroke-width: 1.9;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bottom-nav button.active svg {
  color: #075856;
  border-color: rgba(20, 168, 158, 0.22);
  background: linear-gradient(145deg, #e7f8f3, #cdece4);
  box-shadow: 0 7px 16px rgba(20, 120, 114, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

.bottom-nav button:focus-visible {
  outline: 2px solid var(--aqua-deep);
  outline-offset: 1px;
}

.bottom-nav .ai-nav {
  color: var(--ink);
  overflow: visible;
}

.bottom-nav .ai-nav::before {
  display: none;
}

.ai-nav__mark {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  margin: -4px 0 0;
  overflow: hidden;
  color: white;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 27%, rgba(255,255,255,.98) 0 5%, transparent 19%),
    radial-gradient(circle at 68% 69%, rgba(112,237,225,.98), transparent 38%),
    conic-gradient(from 210deg, #0b5c60, #63ddd1, #c4fff4, #8068d9, #0b5c60);
  box-shadow: 0 8px 22px rgba(18, 127, 124, .25), 0 0 18px rgba(93, 223, 211, .2), inset 0 0 0 1px rgba(255,255,255,.72), inset 0 -10px 18px rgba(5,59,64,.25);
  font-style: normal;
  font-size: 0.5625rem;
  font-weight: 800;
  line-height: 1;
  isolation: isolate;
  animation: ai-plasma-breathe 4.8s ease-in-out infinite;
}

.ai-nav__mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  border: 1px solid rgba(226,255,251,.72);
  border-radius: inherit;
  background: radial-gradient(circle at 58% 36%, rgba(255,255,255,.44), transparent 43%);
  filter: blur(.35px);
  pointer-events: none;
}

@keyframes ai-plasma-breathe {
  0%, 100% { transform: translateY(-1px) scale(.98); filter: hue-rotate(0deg); }
  50% { transform: translateY(-2px) scale(1.045); filter: hue-rotate(12deg); }
}

.bottom-nav button[data-view="live"] {
  color: #df2f38;
}

.bottom-nav button[data-view="live"] svg {
  color: #df2f38;
  border-color: rgba(223, 47, 56, 0.16);
  background: rgba(255, 231, 232, 0.9);
}

.bottom-nav button[data-view="live"].active svg {
  color: #fff;
  background: linear-gradient(145deg, #fa5b63, #d91f2a);
  box-shadow: 0 7px 18px rgba(201, 31, 43, 0.22);
}

.bottom-nav button[data-view="live"]::before {
  background: #df2f38;
}

.bottom-nav button[data-view="live"].active {
  color: #c91f2b;
}

html[data-theme="dark"] .bottom-nav button[data-view="live"] {
  color: #ff5b63;
}

html[data-theme="dark"] .bottom-nav svg {
  border-color: rgba(90, 213, 202, 0.13);
  background: rgba(21, 53, 55, 0.86);
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.55rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-fab {
  display: none !important;
  position: fixed;
  z-index: 48;
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: calc(93px + env(safe-area-inset-bottom));
  align-items: center;
  width: 52px;
  height: 52px;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 26px;
  color: white;
  background: rgba(12, 65, 67, 0.9);
  box-shadow: 0 13px 38px rgba(4, 55, 58, 0.28);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.ai-fab__mark {
  position: relative;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(91, 220, 206, 0.14);
}

.ai-fab__mark i {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(130, 245, 233, 0.68);
  border-radius: 50%;
  animation: assistant-orbit 5s linear infinite;
}

.ai-fab__mark i::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px var(--gold-light);
}

.ai-fab__mark b {
  font-size: 0.5625rem;
}

.ai-fab > span:last-child {
  margin-top: -2px;
  font-size: 0.4375rem;
  font-weight: 700;
}

.sheet-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  background: rgba(7, 27, 29, 0.42);
  backdrop-filter: blur(5px);
}

.sheet-backdrop.active { display: block; }

.bottom-sheet {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 0;
  width: min(480px, 100vw);
  max-height: 82dvh;
  display: none;
  padding: 10px 22px max(20px, env(safe-area-inset-bottom));
  overflow-y: auto;
  transform: translate(-50%, 100%);
  border-radius: 18px 18px 0 0;
  background: #fbfdfb;
  box-shadow: 0 -28px 80px rgba(9, 53, 55, 0.24);
}

.bottom-sheet.active {
  display: block;
  animation: sheet-up 360ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 15px;
  border-radius: 4px;
  background: rgba(17, 67, 70, 0.16);
}

.bottom-sheet > header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.bottom-sheet > header > div:not(.assistant-emblem):not(.quick-log-emblem) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.bottom-sheet > header span {
  color: var(--aqua-deep);
  font-size: 0.5625rem;
  font-weight: 750;
  text-transform: uppercase;
}

.bottom-sheet > header strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 0.875rem;
}

.assistant-emblem {
  position: relative;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: var(--ink);
}

.assistant-emblem i {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--aqua);
  border-radius: 50%;
}

.assistant-emblem b { font-size: 0.625rem; }

.quick-log-emblem {
  width: 32px;
  height: 32px;
  display: grid;
  flex: 0 0 32px;
  place-items: center;
  color: var(--ink);
}

.quick-log-emblem svg {
  width: 19px;
  height: 19px;
}

.quick-log-form {
  display: grid;
  gap: 16px;
  padding: 24px 0 4px;
}

.quick-log-form > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.quick-log-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-log-options:empty {
  display: none;
}

.quick-log-options button {
  min-height: 44px;
  padding: 9px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}

.quick-log-options button.active {
  color: var(--aqua-deep);
  border-color: rgba(22, 185, 174, 0.6);
  background: var(--aqua-pale);
  box-shadow: inset 0 0 0 1px rgba(22, 185, 174, 0.16);
}

.quick-log-field {
  display: grid;
  gap: 8px;
}

.quick-log-field > span:first-child {
  color: var(--ink-soft);
  font-size: 0.625rem;
  font-weight: 700;
}

.quick-log-field > span:last-child {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.quick-log-field input {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.quick-log-field b {
  color: var(--ink-soft);
  font-size: 0.625rem;
}

.quick-log-status {
  min-height: 18px;
  color: var(--aqua-deep);
  font-size: 0.625rem;
  line-height: 1.4;
}

.quick-log-status.is-error {
  color: #9d3e38;
}

.quick-log-submit {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: white;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.quick-log-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.quick-log-submit svg {
  width: 17px;
  height: 17px;
}

.chat-body {
  min-height: 260px;
  padding: 26px 0 18px;
}

.assistant-message {
  max-width: 88%;
  padding: 15px;
  border: 1px solid rgba(22, 185, 174, 0.2);
  border-radius: 8px;
  background: var(--aqua-pale);
}

.assistant-message span {
  color: var(--aqua-deep);
  font-size: 0.5rem;
}

.assistant-message p {
  margin: 6px 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

.assistant-source {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.5625rem;
  line-height: 1.4;
}

.assistant-bridge-message button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 15px;
  border: 1px solid rgba(11, 137, 133, 0.28);
  border-radius: 6px;
  background: var(--aqua-deep);
  color: #fff;
  font: 700 0.6875rem/1 var(--font-sans);
}

.assistant-bridge-message button svg {
  width: 17px;
  height: 17px;
}

.assistant-bridge-message button span {
  color: inherit;
  font: inherit;
}

.user-message {
  max-width: 84%;
  margin: 12px 0 0 auto;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-size: 0.6875rem;
  line-height: 1.45;
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.quick-prompts button {
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  font-size: 0.5625rem;
  cursor: pointer;
}

.chat-input {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.chat-input input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.6875rem;
}

.chat-input button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.chat-input button:last-child {
  color: white;
  background: var(--ink);
}

.chat-input svg {
  width: 17px;
  height: 17px;
}

.avatar-preview {
  position: relative;
  height: 360px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 8px;
  background: #d9ece9;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}

.avatar-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 52%, rgba(6, 45, 47, 0.68));
}

.avatar-preview > span {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 13px auto;
  align-items: center;
  gap: 3px 8px;
  color: white;
}

.avatar-preview > span i {
  grid-row: 1 / 3;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 12px var(--aqua);
}

.avatar-preview > span b {
  font-family: var(--font-display);
  font-size: 1.4375rem;
}

.avatar-preview > span small {
  font-size: 0.5rem;
}

.avatar-caption {
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.upload-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.upload-action input { display: none; }

.upload-action > svg:first-of-type {
  width: 38px;
  height: 38px;
  padding: 9px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.upload-action span {
  display: flex;
  flex-direction: column;
}

.upload-action strong {
  font-family: var(--font-display);
  font-size: 0.75rem;
}

.upload-action small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.upload-action > svg:last-child {
  width: 17px;
  height: 17px;
}

.analysis-header {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid rgba(21, 142, 137, 0.12);
  background:
    linear-gradient(155deg, rgba(251, 253, 251, 0.97), rgba(232, 248, 244, 0.96)),
    url("./assets/myepigen-atlas-hero.png") center / cover;
}

.analysis-header > p {
  max-width: 292px;
}

.analysis-field {
  position: absolute;
  right: 32px;
  bottom: 36px;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  color: var(--aqua-deep);
  border: 1px solid rgba(19, 169, 159, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: 0 18px 42px rgba(12, 93, 92, 0.12);
}

.analysis-field::before,
.analysis-field::after,
.analysis-field span,
.analysis-field b {
  content: "";
  position: absolute;
  background: rgba(22, 185, 173, 0.22);
}

.analysis-field::before { width: 1px; top: 0; bottom: 0; left: 31px; }
.analysis-field::after { height: 1px; left: 0; right: 0; bottom: 29px; }
.analysis-field span { width: 1px; top: 0; bottom: 0; right: 28px; }
.analysis-field b { height: 1px; left: 0; right: 0; top: 32px; }

.analysis-field svg {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  padding: 11px;
  border: 1px solid rgba(11, 143, 135, 0.26);
  border-radius: 50%;
  background: #f5fffc;
}

.analysis-workspace {
  padding-top: 28px;
  padding-bottom: 120px;
}

.analysis-workspace .section-heading > strong {
  min-width: 36px;
  text-align: center;
}

.analysis-drop {
  min-height: 116px;
}

.analysis-list {
  display: grid;
  margin: 6px 0 18px;
  border-top: 1px solid var(--line);
}

.analysis-list > article,
.analysis-empty {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.analysis-list > article > svg,
.analysis-empty > svg {
  width: 36px;
  height: 36px;
  padding: 9px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.analysis-list > article > span,
.analysis-empty > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.analysis-list b,
.analysis-empty b {
  font-family: var(--font-display);
  font-size: 0.6875rem;
}

.analysis-list small,
.analysis-empty small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.35;
}

.analysis-list article > div {
  display: flex;
  gap: 5px;
}

.analysis-list article > div button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  cursor: pointer;
}

.analysis-list article > div button:disabled {
  cursor: not-allowed;
  opacity: 0.34;
}

.analysis-list article > div svg {
  width: 15px;
  height: 15px;
}

.analysis-empty {
  grid-template-columns: 38px minmax(0, 1fr);
}

.audit-sheet,
.account-link-sheet,
.consent-sheet {
  max-height: min(88dvh, 820px);
}

.audit-sheet__body,
.account-link-sheet__body,
.consent-sheet__body {
  display: grid;
  gap: 16px;
  padding: 22px 0 4px;
}

.audit-sheet__summary {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.audit-sheet__ring {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background: conic-gradient(var(--aqua) calc(var(--score) * 1%), #dce9e6 0);
  box-shadow: inset 0 0 0 11px #fbfdfb;
}

.audit-sheet__ring strong {
  font: 800 1.75rem/1 var(--font-display);
}

.audit-sheet__ring small {
  max-width: 72px;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 0.4375rem;
  text-align: center;
}

.audit-sheet__summary > div:last-child {
  min-width: 0;
}

.audit-sheet__summary > div:last-child > span,
.audit-sheet__actions > span {
  color: var(--aqua-deep);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-sheet__summary > div:last-child > strong {
  display: block;
  margin-top: 5px;
  font: 750 0.9375rem/1.25 var(--font-display);
}

.audit-sheet__summary p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 0.5625rem;
  line-height: 1.5;
}

.audit-sheet__signals {
  display: grid;
}

.audit-sheet__signals article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.audit-sheet__signals article span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.audit-sheet__signals b {
  font: 700 0.6875rem/1.2 var(--font-display);
}

.audit-sheet__signals small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.4;
}

.audit-sheet__signals article > strong {
  color: var(--aqua-deep);
  font: 800 1.25rem/1 var(--font-display);
  text-align: right;
}

.audit-sheet__actions ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: audit-action;
}

.audit-sheet__actions li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
  line-height: 1.45;
  counter-increment: audit-action;
}

.audit-sheet__actions li::before {
  content: counter(audit-action);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--aqua-deep);
  border: 1px solid rgba(22, 185, 173, 0.24);
  border-radius: 50%;
  background: var(--aqua-pale);
  font-size: 0.5rem;
  font-weight: 800;
}

.audit-sheet__evidence,
.consent-sheet__note {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(22, 185, 173, 0.18);
  border-radius: 8px;
  background: var(--aqua-pale);
}

.audit-sheet__evidence > svg,
.consent-sheet__note > svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: white;
}

.audit-sheet__evidence p,
.consent-sheet__note span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.audit-sheet__evidence b,
.consent-sheet__note b {
  font-size: 0.5625rem;
  line-height: 1.4;
}

.audit-sheet__evidence small,
.consent-sheet__note small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.4;
}

.audit-sheet__time {
  color: var(--muted);
  font-size: 0.5rem;
  text-align: right;
}

.account-link-sheet__body p,
.consent-sheet__body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.625rem;
  line-height: 1.55;
}

.account-link-sheet__body > section,
.account-link-sheet__body > form {
  display: grid;
  gap: 12px;
}

.account-link-code {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px dashed rgba(11, 143, 135, 0.42);
  border-radius: 8px;
  background: var(--aqua-pale);
  cursor: pointer;
}

.account-link-code strong {
  color: var(--aqua-deep);
  font: 800 1.5625rem/1 var(--font-display);
  letter-spacing: 0;
}

.account-link-code small,
#account-link-expiry {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

#account-link-telegram label {
  display: grid;
  gap: 7px;
}

#account-link-telegram label > span {
  color: var(--ink-soft);
  font-size: 0.5625rem;
  font-weight: 700;
}

#account-link-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: white;
  font: 800 1.125rem/1 var(--font-display);
  letter-spacing: 0;
  text-transform: uppercase;
}

.account-link-sheet__done {
  display: grid;
  place-items: center;
  padding: 20px 0;
  text-align: center;
}

.account-link-sheet__done > svg {
  width: 54px;
  height: 54px;
  padding: 13px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.account-link-sheet__done strong {
  margin-top: 11px;
  font: 800 1rem/1.2 var(--font-display);
}

.account-link-sheet__done p {
  max-width: 310px;
  margin-top: 7px;
}

.consent-sheet {
  z-index: 100;
}

.consent-sheet__list {
  display: grid;
  border-top: 1px solid var(--line);
}

.consent-sheet__list label {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.consent-sheet__list input {
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  accent-color: var(--aqua-deep);
}

.consent-sheet__list span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.consent-sheet__list b,
.consent-sheet__list a {
  color: var(--ink);
  font: 700 0.625rem/1.35 var(--font-display);
}

.consent-sheet__list a {
  color: var(--aqua-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-sheet__list small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.consent-sheet__actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}

.consent-sheet__actions button {
  min-height: 50px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.5625rem;
  font-weight: 800;
  cursor: pointer;
}

#consent-decline-action {
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: white;
}

#consent-accept-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: white;
  border: 1px solid var(--ink);
  background: var(--ink);
}

#consent-accept-action svg {
  width: 16px;
  height: 16px;
}

#consent-accept-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: calc(102px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 15px;
  opacity: 0;
  transform: translate(-50%, 20px);
  pointer-events: none;
  color: white;
  border-radius: 8px;
  background: rgba(9, 59, 61, 0.94);
  box-shadow: 0 12px 35px rgba(9, 59, 61, 0.24);
  font-size: 0.625rem;
  transition: 240ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 16px;
  height: 16px;
  color: #8ce7dc;
}

@keyframes signal-pulse {
  from { opacity: 0.8; transform: scale(0.55); }
  to { opacity: 0; transform: scale(1.5); }
}

@keyframes avatar-scan {
  0%, 100% { opacity: 0; transform: translateY(0); }
  12% { opacity: 0.8; }
  48% { opacity: 0.62; }
  76% { opacity: 0.76; }
  90% { opacity: 0; transform: translateY(480px); }
}

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

@keyframes heartbeat-wave {
  0% { opacity: 0.85; transform: scale(0.35); }
  55%, 100% { opacity: 0; transform: scale(2.2); }
}

@keyframes live-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes meter-grow {
  from { width: 0; }
}

@keyframes assistant-orbit {
  to { transform: rotate(360deg); }
}

@keyframes sheet-up {
  to { transform: translate(-50%, 0); }
}

@media (max-width: 760px) {
  .web-access {
    width: min(100%, 520px);
    min-height: 100dvh;
    max-height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(190px, 30dvh) auto;
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    border-radius: 0;
  }

  .web-access__visual {
    min-height: 190px;
  }

  .web-access__visual > img {
    object-position: center 45%;
  }

  .web-access__brand {
    top: 22px;
    left: 22px;
  }

  .web-access__visual > p {
    left: 24px;
    bottom: 20px;
  }

  .web-access__signal {
    right: 24px;
    bottom: 20px;
  }

  .web-access__panel {
    justify-content: flex-start;
    padding: 28px 24px max(28px, env(safe-area-inset-bottom));
  }

  .web-access__security {
    margin-bottom: 20px;
  }

  .web-access__panel h1 {
    font-size: 2.125rem;
  }
}

@media (max-width: 560px) {
  .app-stage { padding: 0; }

  .app-frame {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ai-fab {
    right: 14px;
  }
}

@media (max-width: 390px) {
  .living-hero { height: 650px; min-height: 650px; }
  .hero-copy { width: 62%; padding-left: 18px; }
  .hero-copy h1 { font-size: 3.5rem; }
  .hero-copy > p { max-width: 205px; font-size: 0.8125rem; }
  .twin-status { min-width: 205px; }
  .hero-score { left: 16px; right: 16px; gap: 14px; padding: 13px; }
  .hero-score__ring { width: 78px; height: 78px; }
  .hero-score__ring strong { font-size: 1.6875rem; }
  .hero-score__copy strong { font-size: 0.9375rem; }
  .section-band { padding-right: 18px; padding-left: 18px; }
  .section-heading h2, .route-preview__head h2 { font-size: 1.3125rem; }
  .focus-layout { grid-template-columns: 118px minmax(0, 1fr); gap: 16px; }
  .focus-orbit { width: 118px; height: 118px; }
  .focus-orbit strong { font-size: 1.6875rem; }
  .focus-copy h3 { font-size: 1.125rem; }
  .focus-copy p { font-size: 0.6875rem; }
  .bottom-nav { padding-right: 3px; padding-left: 3px; }
  .bottom-nav span { font-size: 0.5rem; }
  .bottom-nav .ai-nav { gap: 3px; }
  .ai-nav__mark { width: 28px; height: 28px; flex-basis: 28px; margin-top: -1px; }
  .profile-score-band { grid-template-columns: 96px minmax(0, 1fr); }
  .profile-score-ring { width: 94px; height: 94px; }
  .avatar-studio-copy h1 { font-size: 2.25rem; }
  .avatar-body-stage { height: 610px; }
  .avatar-body-orbit { width: 260px; height: 82px; }
  .analysis-header > p { max-width: 218px; }
  .analysis-field { right: 20px; bottom: 28px; width: 94px; height: 94px; }
  .audit-sheet__summary { grid-template-columns: 92px minmax(0, 1fr); gap: 13px; }
  .audit-sheet__ring { width: 90px; height: 90px; box-shadow: inset 0 0 0 9px #fbfdfb; }
  .consent-sheet__actions { grid-template-columns: 1fr; }
  .capture-shot__preview { height: 204px; }
  .avatar-profile-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) 66px; gap: 5px; }
  .avatar-profile-fields > label { padding-right: 7px; padding-left: 7px; }
  .audit-atlas { height: 390px; }
  .audit-atlas__signal span { min-width: 72px; padding: 6px 7px; }
  .audit-atlas__signal small { font-size: 0.4375rem; }
}

/* Functional parity: profile, questionnaires, library, calendar and journals. */
.profile-fact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.profile-fact-grid article {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.profile-fact-grid article > svg {
  width: 32px;
  height: 32px;
  padding: 8px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.profile-fact-grid article > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-fact-grid small,
.profile-fact-grid b {
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.35;
}

.profile-fact-grid strong {
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 0.75rem;
  line-height: 1.25;
}

.profile-fact-empty {
  grid-column: 1 / -1;
  min-height: 78px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  text-align: left;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
}

.profile-fact-empty > svg:first-child {
  width: 36px;
  height: 36px;
  padding: 9px;
  color: var(--aqua-deep);
  border-radius: 50%;
  background: var(--aqua-pale);
}

.profile-fact-empty > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-fact-empty strong { font-family: var(--font-display); font-size: 0.75rem; }
.profile-fact-empty small { margin-top: 4px; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.4; }
.profile-fact-empty > svg:last-child { width: 17px; height: 17px; }

.profile-system-grid {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.profile-system-card {
  position: relative;
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 12px;
  padding: 13px 0 16px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.profile-system-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-system-card strong { font-family: var(--font-display); font-size: 0.75rem; line-height: 1.3; }
.profile-system-card small { margin-top: 4px; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.35; }
.profile-system-card > b { color: var(--aqua-deep); font-family: var(--font-display); font-size: 1.0625rem; text-align: right; }
.profile-system-card > i {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 3px;
  overflow: hidden;
  background: rgba(17, 67, 70, 0.08);
}

.profile-system-card > i::after {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--aqua-deep), var(--aqua), var(--gold));
}

.questionnaire-stage-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(6rem, 1fr));
  gap: 6px;
  margin-top: 20px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(224, 239, 236, 0.72);
}

.questionnaire-stage-tabs > button {
  --stage-accent: var(--aqua-deep);
  --stage-soft: rgba(34, 181, 169, 0.1);
  --stage-deep: #08786f;
  min-width: 0;
  min-height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px 8px;
  color: var(--stage-deep);
  border: 1px solid color-mix(in srgb, var(--stage-accent) 34%, transparent);
  border-radius: 6px;
  background: var(--stage-soft);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.questionnaire-stage-tabs > button::before {
  content: "";
  position: absolute;
  top: 0;
  right: 10px;
  left: 10px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: var(--stage-accent);
}

.questionnaire-stage-tabs > button[data-questionnaire-stage="start"] {
  --stage-accent: #16aa9d;
  --stage-soft: rgba(22, 170, 157, 0.11);
  --stage-deep: #087c73;
}

.questionnaire-stage-tabs > button[data-questionnaire-stage="deep"] {
  --stage-accent: #7b68d9;
  --stage-soft: rgba(123, 104, 217, 0.11);
  --stage-deep: #5b49b7;
}

.questionnaire-stage-tabs > button[data-questionnaire-stage="epigen"] {
  --stage-accent: #d2a137;
  --stage-soft: rgba(210, 161, 55, 0.13);
  --stage-deep: #8c6615;
}

.questionnaire-stage-tabs strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9375rem);
  white-space: nowrap;
}

.questionnaire-stage-tabs small { margin-top: 4px; color: var(--ink-soft); font-size: 0.6875rem; line-height: 1.35; }
.questionnaire-stage-tabs > button.active {
  color: white;
  border-color: var(--stage-accent);
  background: linear-gradient(145deg, var(--stage-deep), var(--stage-accent));
  box-shadow: 0 9px 22px color-mix(in srgb, var(--stage-accent) 27%, transparent);
  transform: translateY(-1px);
}
.questionnaire-stage-tabs > button.active small { color: rgba(255, 255, 255, 0.72); }

.questionnaire-stage-tabs > button:focus-visible {
  outline: 2px solid var(--stage-accent);
  outline-offset: 2px;
}

.questionnaire-list:has([data-questionnaire-stage="start"].active) {
  --questionnaire-stage-accent: #16aa9d;
  --questionnaire-stage-soft: rgba(22, 170, 157, 0.09);
}

.questionnaire-list:has([data-questionnaire-stage="deep"].active) {
  --questionnaire-stage-accent: #7b68d9;
  --questionnaire-stage-soft: rgba(123, 104, 217, 0.09);
}

.questionnaire-list:has([data-questionnaire-stage="epigen"].active) {
  --questionnaire-stage-accent: #d2a137;
  --questionnaire-stage-soft: rgba(210, 161, 55, 0.11);
}

.questionnaire-stage-copy {
  margin: 12px 0 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  border-left: 3px solid var(--questionnaire-stage-accent, var(--aqua-deep));
  background: var(--questionnaire-stage-soft, rgba(22, 170, 157, 0.09));
  font-size: 0.8125rem;
  line-height: 1.5;
}

#questionnaire-list { margin-top: 6px; }

.questionnaire-card {
  width: 100%;
  min-height: 96px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) minmax(48px, auto);
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.questionnaire-card > i {
  color: #8aa0a2;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 750;
}

.questionnaire-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.questionnaire-card small { color: var(--questionnaire-stage-accent, var(--aqua-deep)); font-size: 0.6875rem; font-weight: 700; line-height: 1.35; text-transform: uppercase; }
.questionnaire-card strong { margin-top: 6px; overflow-wrap: anywhere; font-family: var(--font-display); font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem); line-height: 1.3; }
.questionnaire-card span > b { margin-top: 4px; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 500; line-height: 1.4; }
.questionnaire-card u {
  height: 3px;
  margin-top: 9px;
  overflow: hidden;
  background: rgba(17, 67, 70, 0.08);
  text-decoration: none;
}

.questionnaire-card u::after { content: ""; display: block; width: var(--value); height: 100%; background: var(--questionnaire-stage-accent, var(--aqua)); }
.questionnaire-card > b { max-width: 9rem; color: var(--questionnaire-stage-accent, var(--aqua-deep)); font-size: 0.75rem; line-height: 1.3; text-align: right; overflow-wrap: anywhere; }
.questionnaire-card.complete > b { width: 28px; height: 28px; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: var(--aqua-pale); }

html[data-theme="dark"] .questionnaire-stage-tabs {
  border-color: rgba(144, 218, 209, 0.15);
  background: rgba(7, 30, 29, 0.82);
}

html[data-theme="dark"] .questionnaire-stage-tabs > button {
  color: color-mix(in srgb, var(--stage-accent) 78%, white);
  border-color: color-mix(in srgb, var(--stage-accent) 42%, transparent);
  background: color-mix(in srgb, var(--stage-accent) 16%, rgba(8, 35, 33, 0.94));
}

html[data-theme="dark"] .questionnaire-stage-tabs > button.active {
  color: white;
  background: linear-gradient(145deg, color-mix(in srgb, var(--stage-deep) 82%, #071c1a), var(--stage-accent));
}

html[data-theme="dark"] .questionnaire-stage-copy {
  color: rgba(227, 242, 239, 0.78);
  background: color-mix(in srgb, var(--questionnaire-stage-accent, #16aa9d) 13%, rgba(8, 35, 33, 0.92));
}
.questionnaire-card.complete > b svg { width: 13px; height: 13px; }
.questionnaire-card.active { margin: 0 -10px; width: calc(100% + 20px); padding-right: 10px; padding-left: 10px; background: linear-gradient(90deg, rgba(220, 248, 243, 0.72), transparent); }

.questionnaire-form .section-heading p {
  margin: 7px 0 0;
  max-width: 300px;
  color: var(--ink-soft);
  font-size: 0.5625rem;
  line-height: 1.45;
}

.questionnaire-page-progress { margin: 20px 0 6px; }
.questionnaire-page-progress > span { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 0.5rem; }
.questionnaire-page-progress > i { height: 4px; display: block; overflow: hidden; background: rgba(17, 67, 70, 0.09); }
.questionnaire-page-progress u { display: block; width: var(--value); height: 100%; background: linear-gradient(90deg, var(--aqua-deep), var(--aqua), var(--gold)); text-decoration: none; }

.questionnaire-fields { display: grid; gap: 12px; margin-top: 18px; }
.questionnaire-field { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.78); }
.questionnaire-field.has-safety-signal { border-left: 3px solid var(--coral); }
.questionnaire-field > div:first-child { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 9px; align-items: start; }
.questionnaire-field > div:first-child > span { color: var(--aqua-deep); font-family: var(--font-display); font-size: 0.5625rem; font-weight: 750; }
.questionnaire-field > div:first-child > label { font-family: var(--font-display); font-size: 0.6875rem; font-weight: 700; line-height: 1.42; }
.questionnaire-field > div:first-child > label b { display: inline-block; margin-left: 5px; color: #a24840; font-family: var(--font-ui); font-size: 0.375rem; font-weight: 700; text-transform: uppercase; }

.questionnaire-choice-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 13px 0 0;
  padding: 0;
  border: 0;
}

.questionnaire-choice-grid > label { position: relative; min-width: 0; }
.questionnaire-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.questionnaire-choice-grid label > span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 9px 10px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(248, 252, 250, 0.92);
  font-size: 0.5rem;
  line-height: 1.35;
}

.questionnaire-choice-grid input:checked + span { color: var(--ink); border-color: rgba(18, 167, 158, 0.55); background: var(--aqua-pale); box-shadow: inset 3px 0 var(--aqua-deep); }
.questionnaire-choice-grid input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 2px; }

.questionnaire-value-field {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
}

.questionnaire-value-field input,
.questionnaire-value-field textarea {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.625rem;
}

.questionnaire-value-field textarea { resize: vertical; }
.questionnaire-value-field b { flex: 0 0 auto; color: var(--ink-soft); font-size: 0.5rem; }

.questionnaire-safety {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  color: #7e342f;
  border: 1px solid rgba(208, 103, 86, 0.25);
  border-radius: 8px;
  background: #fff0ec;
  font-size: 0.5rem;
  line-height: 1.45;
}

.questionnaire-safety > svg { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(233, 131, 99, 0.16); }
.questionnaire-form-actions { display: grid; grid-template-columns: minmax(96px, 0.7fr) minmax(0, 1.3fr); gap: 8px; margin-top: 18px; }
.questionnaire-form-actions > button[hidden] { display: none; }

.module-secondary-action {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.module-secondary-action svg { width: 17px; height: 17px; }
.module-secondary-action span { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 0.625rem; }

.library-category-list {
  display: flex;
  gap: 6px;
  margin: 18px -24px 14px;
  padding: 0 24px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.library-category-list::-webkit-scrollbar { display: none; }
.library-category-list > button { flex: 0 0 auto; min-height: 34px; padding: 8px 11px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.74); font-size: 0.5rem; font-weight: 700; }
.library-category-list > button.active { color: white; border-color: var(--ink); background: var(--ink); }

.library-results { border-top: 1px solid var(--line); }
.library-result-card {
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.library-result-card > svg { width: 36px; height: 36px; padding: 9px; color: var(--aqua-deep); border-radius: 50%; background: var(--aqua-pale); }
.library-result-card > span { min-width: 0; display: flex; flex-direction: column; }
.library-result-card strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 0.6875rem; line-height: 1.35; }
.library-result-card small { margin-top: 4px; display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.library-result-card > b { max-width: 74px; padding: 5px 6px; overflow-wrap: anywhere; color: var(--aqua-deep); border: 1px solid rgba(18, 167, 158, 0.2); border-radius: 5px; background: rgba(220, 248, 243, 0.7); font-size: 0.375rem; text-align: center; text-transform: uppercase; }
.library-empty { min-height: 180px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; text-align: center; }
.library-empty > svg { width: 38px; height: 38px; padding: 9px; color: var(--aqua-deep); border-radius: 50%; background: var(--aqua-pale); }
.library-empty strong { font-family: var(--font-display); font-size: 0.75rem; }
.library-empty span { max-width: 230px; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.45; }

.library-detail-body,
.calendar-detail-body { margin-top: 16px; }
.library-detail-summary { margin: 0 0 14px; padding: 12px; color: var(--ink); border-left: 3px solid var(--gold); background: #fff8dc; font-family: var(--font-display); font-size: 0.625rem; line-height: 1.5; }
.library-detail-copy { color: var(--ink-soft); font-size: 0.5625rem; line-height: 1.65; }
.library-detail-copy p { margin: 0 0 12px; }
.library-detail-body > .module-secondary-action { margin-top: 16px; }

.library-calculator { margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.library-calculator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.library-calculator-grid > label { min-width: 0; display: grid; gap: 5px; }
.library-calculator-grid > label > span:first-child { color: var(--ink-soft); font-size: 0.5rem; }
.library-calculator-grid > label > span:last-child { min-height: 44px; display: flex; align-items: center; gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.library-calculator-grid input,
.library-calculator-grid select { min-width: 0; width: 100%; padding: 10px 0; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.5625rem; }
.library-calculator-grid b { color: var(--ink-soft); font-size: 0.4375rem; }
.library-calculator-result { min-height: 48px; display: block; margin-top: 10px; padding: 12px; color: var(--aqua-deep); border: 1px solid rgba(18, 167, 158, 0.22); border-radius: 7px; background: var(--aqua-pale); font-family: var(--font-display); font-size: 0.625rem; line-height: 1.5; }

.library-module { display: grid; gap: 14px; color: var(--ink); }
.library-module-loading,
.library-module-error { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; }
.library-module-loading svg { width: 30px; height: 30px; color: var(--aqua-deep); animation: module-spin 1s linear infinite; }
.library-module-loading strong,
.library-module-error strong { font-family: var(--font-display); font-size: 0.8125rem; }
.library-module-loading span,
.library-module-error span { max-width: 260px; color: var(--ink-soft); font-size: 0.625rem; line-height: 1.5; }
@keyframes module-spin { to { transform: rotate(360deg); } }

.library-module-search { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; }
.library-module-search svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--aqua-deep); }
.library-module-search input { min-width: 0; width: 100%; padding: 12px 0; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.6875rem; }
.library-module-filters { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
.library-module-filters select { min-width: 0; min-height: 43px; padding: 0 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: white; font: inherit; font-size: 0.5625rem; }
.library-module-status { margin: 0; color: var(--ink-soft); font-size: 0.5625rem; line-height: 1.45; }
.library-module-safety { margin: 0; padding: 12px; color: #70581b; border-left: 3px solid var(--gold); background: #fff8dc; font-size: 0.5625rem; line-height: 1.55; }
.library-module-empty { padding: 24px 0; color: var(--ink-soft); text-align: center; }

.food-search-results,
.nutrient-results,
.genetics-gene-list { display: grid; gap: 7px; }
.food-result,
.nutrient-result { width: 100%; min-height: 62px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 9px; padding: 10px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.86); text-align: left; }
.food-result > span,
.nutrient-result > span { min-width: 0; display: grid; gap: 3px; }
.food-result strong,
.nutrient-result strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 0.6875rem; line-height: 1.35; }
.food-result small,
.nutrient-result small { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.food-result > b,
.nutrient-result > b { color: var(--aqua-deep); font-size: 0.5rem; white-space: nowrap; }
.food-result > svg { width: 16px; height: 16px; color: var(--ink-soft); }
.food-more { margin-top: 4px; }

.product-detail,
.nutrient-detail { display: grid; gap: 13px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-strong); scroll-margin-top: 18px; }
.product-detail-header,
.nutrient-detail-header { display: grid; gap: 5px; }
.product-detail-header > span,
.nutrient-detail-header > span { color: var(--aqua-deep); font-size: 0.5rem; font-weight: 800; text-transform: uppercase; }
.product-detail-header > strong,
.nutrient-detail-header > strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 1.0625rem; line-height: 1.2; }
.product-detail-header > small { color: var(--ink-soft); font-size: 0.5rem; line-height: 1.35; }
.nutrient-detail-header > p { margin: 0; color: var(--ink-soft); font-size: 0.5625rem; line-height: 1.55; }
.product-macro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.product-macro-grid article,
.nutrient-standard-grid article { min-width: 0; min-height: 72px; display: grid; align-content: center; gap: 2px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #f8fbfa; }
.product-macro-grid small,
.nutrient-standard-grid small { color: var(--ink-soft); font-size: 0.4375rem; }
.product-macro-grid strong,
.nutrient-standard-grid strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 0.8125rem; }
.product-macro-grid span,
.nutrient-standard-grid span { color: var(--ink-soft); font-size: 0.375rem; }
.product-nutrient-list { display: grid; border-top: 1px solid var(--line); }
.product-nutrient-list > div { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); font-size: 0.5rem; }
.product-nutrient-list strong { font-size: 0.5rem; }
.product-nutrient-list b { color: var(--aqua-deep); font-size: 0.4375rem; text-align: right; }
.product-portion-field { display: grid; gap: 6px; }
.product-portion-field > span:first-child { color: var(--ink-soft); font-size: 0.5rem; }
.product-portion-field > span:last-child { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 7px; background: white; }
.product-portion-field input { min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.6875rem; }
.product-portion-field b { color: var(--ink-soft); font-size: 0.5625rem; }

.nutrient-standard-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.nutrient-food-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nutrient-food-columns section { min-width: 0; border: 1px solid var(--line); border-radius: 7px; background: white; overflow: hidden; }
.nutrient-food-columns section > strong { display: block; padding: 10px; color: var(--aqua-deep); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 0.5625rem; }
.nutrient-food-columns section > div { min-height: 38px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 7px 9px; border-bottom: 1px solid var(--line); font-size: 0.4375rem; }
.nutrient-food-columns section > div:last-child { border-bottom: 0; }
.nutrient-food-columns b { color: var(--aqua-deep); white-space: nowrap; }
.nutrient-safety-note { margin: 0; padding: 11px; color: var(--ink-soft); border-left: 3px solid var(--aqua); background: var(--aqua-pale); font-size: 0.5rem; line-height: 1.55; }

.genetics-group-list { display: flex; gap: 6px; margin: 0 -18px; padding: 0 18px 6px; overflow-x: auto; scrollbar-width: none; }
.genetics-group-list::-webkit-scrollbar { display: none; }
.genetics-group-list button { flex: 0 0 auto; max-width: 220px; min-height: 36px; padding: 7px 10px; overflow-wrap: anywhere; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 0.5rem; }
.genetics-group-list button.active { color: white; border-color: var(--ink); background: var(--ink); }
.gene-card { padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, 0.86); }
.gene-card header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.gene-card header > span { display: grid; gap: 2px; }
.gene-card header strong { font-family: var(--font-display); font-size: 0.8125rem; }
.gene-card header small { color: var(--aqua-deep); font-size: 0.5rem; }
.gene-card header > b { max-width: 120px; color: var(--ink-soft); font-size: 0.4375rem; line-height: 1.35; text-align: right; }
.gene-card section { margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.gene-card section > strong { color: var(--aqua-deep); font-size: 0.5rem; }
.gene-card section > p { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.5rem; line-height: 1.55; }
.genetics-restricted { margin: 11px 0 0; padding: 10px; color: #70581b; background: #fff8dc; font-size: 0.5rem; line-height: 1.55; }

.food-log-form { margin-top: 16px; }
.food-name-field { display: grid; gap: 6px; }
.food-name-field > span,
.food-macro-grid label > span { color: var(--ink-soft); font-size: 0.5rem; }
.food-name-field textarea { width: 100%; min-height: 72px; padding: 11px; resize: vertical; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; outline: 0; background: white; font: inherit; font-size: 0.625rem; line-height: 1.45; }
.food-name-field textarea:focus { border-color: var(--aqua); }
.food-macro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.food-macro-grid label { min-width: 0; min-height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.food-macro-grid label > span { grid-column: 1 / -1; }
.food-macro-grid input { min-width: 0; width: 100%; padding: 6px 0 2px; color: var(--ink); border: 0; outline: 0; background: transparent; font: inherit; font-size: 0.8125rem; font-weight: 700; }
.food-macro-grid b { color: var(--ink-soft); font-size: 0.5rem; }

.calendar-detail-body time { display: inline-flex; padding: 7px 9px; color: var(--aqua-deep); border: 1px solid rgba(18, 167, 158, 0.2); border-radius: 6px; background: var(--aqua-pale); font-size: 0.5rem; font-weight: 700; }
.calendar-detail-body > p:not(.module-status) { margin: 13px 0 16px; color: var(--ink-soft); font-size: 0.625rem; line-height: 1.55; }
.calendar-detail-body .module-secondary-action { margin-top: 8px; }
.day.event { cursor: pointer; }
.day.event:focus-visible { outline: 2px solid var(--aqua); outline-offset: -2px; }

/* Unified route, health wheel and complete micronutrient dashboard. */
.personal-route {
  background: #f1f8f6;
}

.personal-route__subtitle {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.625rem;
  line-height: 1.55;
}

.personal-route__track {
  --route-count: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--route-count), minmax(88px, 1fr));
  gap: 10px;
  margin-top: 24px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.personal-route__track::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--line-strong);
}

.route-checkpoint {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: 32px auto;
  justify-items: start;
  gap: 8px;
}

.route-checkpoint__marker {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid #aebfbd;
  border-radius: 50%;
  background: var(--pearl);
  font: 750 0.5625rem/1 var(--font-display);
}

.route-checkpoint.done .route-checkpoint__marker {
  color: white;
  border-color: var(--aqua-deep);
  background: var(--aqua-deep);
}

.route-checkpoint.active .route-checkpoint__marker {
  color: #70551a;
  border-color: var(--gold);
  background: #fff7dc;
  box-shadow: 0 0 0 4px rgba(215, 173, 63, 0.14);
}

.route-checkpoint__copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.route-checkpoint__copy strong {
  overflow-wrap: anywhere;
  font: 750 0.625rem/1.3 var(--font-display);
}

.route-checkpoint__copy small {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.4;
}

.personal-route__track.compact {
  margin-top: 12px;
}

.personal-route__track.compact .route-checkpoint__copy strong {
  font-size: 0.5rem;
}

.personal-route__track.compact .route-checkpoint__copy small {
  font-size: 0.4375rem;
}

.route-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.health-wheel-layout {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(220px, 1fr);
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}

.health-wheel {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  justify-self: center;
}

.health-wheel > svg,
.audit-wheel-compact__visual > svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  transform: rotate(-90deg);
}

.health-wheel__base,
.health-wheel__segment-track,
.health-wheel__segment-value {
  fill: none;
  stroke-width: 28;
}

.health-wheel__base {
  stroke: rgba(17, 67, 70, 0.06);
}

.health-wheel__segment-track {
  stroke: rgba(17, 67, 70, 0.09);
  stroke-linecap: round;
}

.health-wheel__segment-value {
  stroke-linecap: round;
  transition: stroke-dasharray 420ms ease;
}

.health-wheel__center,
.audit-wheel-compact__center {
  position: absolute;
  inset: 28%;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.health-wheel__center strong {
  font: 800 2.75rem/1 var(--font-display);
}

.health-wheel__center span,
.health-wheel__center small,
.audit-wheel-compact__center small {
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.health-wheel__center small {
  margin-top: 5px;
  color: var(--aqua-deep);
  font-weight: 750;
}

.health-wheel__summary {
  min-width: 0;
}

.health-wheel__summary > span {
  color: var(--aqua-deep);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.health-wheel__summary h3 {
  margin: 7px 0 0;
  font: 750 1.25rem/1.25 var(--font-display);
}

.health-wheel__summary p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 0.625rem;
  line-height: 1.5;
}

.health-wheel-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 18px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.health-wheel-legend__item {
  min-width: 0;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.health-wheel-legend__swatch {
  width: 9px;
  height: 26px;
  border-radius: 3px;
  background: var(--system-color);
}

.health-wheel-legend__item > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.health-wheel-legend__item strong {
  overflow-wrap: anywhere;
  font: 700 0.5625rem/1.25 var(--font-display);
}

.health-wheel-legend__item small {
  color: var(--ink-soft);
  font-size: 0.4375rem;
}

.health-wheel-legend__item > b {
  color: var(--ink);
  font: 800 1rem/1 var(--font-display);
}

.health-wheel-legend__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 0;
  color: var(--ink-soft);
  font-size: 0.5625rem;
}

.health-wheel-history {
  min-height: 104px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.health-wheel-history svg {
  width: 100%;
  max-width: 320px;
  height: 82px;
  display: block;
}

.health-wheel-history__area {
  fill: rgba(18, 155, 146, 0.08);
}

.health-wheel-history__line {
  fill: none;
  stroke: var(--aqua-deep);
  stroke-width: 2;
}

.health-wheel-history__point {
  fill: var(--gold);
  stroke: white;
  stroke-width: 1.5;
}

.health-wheel-history__labels {
  max-width: 320px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.4375rem;
}

.health-wheel-history__labels strong {
  color: var(--ink);
  font-size: 0.5625rem;
}

.health-wheel-history__labels span:last-child {
  text-align: right;
}

.health-wheel-history__empty {
  min-height: 82px;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  font-size: 0.5rem;
  text-align: center;
}

.micro-chart--complete {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 24px;
}

.micro-group {
  min-width: 0;
}

.micro-group h3 {
  margin: 0 0 5px;
  padding-bottom: 9px;
  color: var(--aqua-deep);
  border-bottom: 1px solid var(--line-strong);
  font: 750 0.6875rem/1.2 var(--font-display);
}

.micro-item {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.micro-item__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.micro-item__heading strong,
.micro-item__heading b {
  font: 700 0.5625rem/1.3 var(--font-display);
}

.micro-item__heading b {
  color: var(--ink-soft);
  text-align: right;
}

.micro-item__meter {
  height: 7px;
  overflow: hidden;
  border-radius: 7px;
  background: rgba(17, 67, 70, 0.08);
}

.micro-item__meter i {
  width: var(--micro-value);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--aqua-deep);
}

.micro-group:first-child .micro-item__meter i {
  background: var(--gold);
}

.micro-item small {
  color: var(--ink-soft);
  font-size: 0.4375rem;
  line-height: 1.35;
}

.micro-item.unavailable {
  opacity: 0.58;
}

.micro-item.unavailable .micro-item__meter i {
  width: 0;
}

.audit-sheet__wheel,
.audit-sheet__route,
.audit-sheet__micros {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.audit-sheet__wheel > span,
.audit-sheet__route > span,
.audit-sheet__micros > div:first-child > span {
  color: var(--aqua-deep);
  font-size: 0.5rem;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-sheet__micros > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.audit-sheet__micros > div:first-child > strong {
  font: 750 0.6875rem/1 var(--font-display);
}

.audit-wheel-compact__layout {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.audit-wheel-compact__visual {
  position: relative;
  width: 116px;
  aspect-ratio: 1;
}

.audit-wheel-compact__center {
  inset: 29%;
}

.audit-wheel-compact__center strong {
  font: 800 1.375rem/1 var(--font-display);
}

.audit-wheel-compact__list {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.audit-wheel-compact__list > div {
  min-width: 0;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  font-size: 0.4375rem;
}

.audit-wheel-compact__list i {
  width: 7px;
  height: 16px;
  border-radius: 2px;
  background: var(--system-color);
}

.audit-wheel-compact__list span {
  overflow-wrap: anywhere;
}

.audit-wheel-compact__list b {
  font-size: 0.5rem;
}

.audit-wheel-compact__list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.5rem;
  line-height: 1.4;
}

.audit-sheet__micros .micro-chart--complete.compact {
  grid-template-columns: 1fr;
  gap: 13px;
  margin-top: 12px;
}

.audit-sheet__micros .micro-chart--complete.compact .micro-item {
  padding: 7px 0;
}

@media (max-width: 560px) {
  .health-wheel-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .health-wheel {
    max-width: 300px;
  }

  .health-wheel__center strong {
    font-size: 2.375rem;
  }

  .health-wheel-legend,
  .micro-chart--complete {
    grid-template-columns: 1fr;
  }

  .micro-chart--complete {
    gap: 18px;
  }

  .personal-route__track {
    grid-template-columns: repeat(var(--route-count), minmax(0, 1fr));
    overflow-x: visible;
    scrollbar-width: none;
  }
}

@media (max-width: 390px) {
  .profile-fact-grid { grid-template-columns: 1fr; }
  .profile-fact-grid article { min-height: 72px; }
  .questionnaire-stage-tabs { grid-template-columns: repeat(3, minmax(6rem, 1fr)); }
  .questionnaire-choice-grid { grid-template-columns: 1fr; }
  .questionnaire-form-actions { grid-template-columns: 92px minmax(0, 1fr); }
  .library-result-card { grid-template-columns: 34px minmax(0, 1fr); }
  .library-result-card > b { grid-column: 2; justify-self: start; max-width: 100%; }
  .library-calculator-grid { grid-template-columns: 1fr; }
  .library-module-filters,
  .nutrient-food-columns { grid-template-columns: 1fr; }
  .food-result,
  .nutrient-result { grid-template-columns: minmax(0, 1fr) auto; }
  .food-result > svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__mark::before,
  .brand__mark i {
    animation: none !important;
  }

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


/* module=profile; channel=miniapp,web; layer=ui; scenario=app.navigation */
/* One composition layer for the approved light / cosmic interface. */
html {
  --surface-card: rgba(248,255,254,.73); --surface-glass: rgba(224,245,245,.66);
  --line-glass: rgba(255,255,255,.88); --ink: #103d4b; --muted: #4e7480;
  --app-scene: url("./assets/avatar-background-aqua.webp");
  --avatar-environment: var(--app-scene); --shell-ink: var(--ink); --shell-glass: var(--surface-glass);
}
:root[data-theme="dark"] {
  --surface-card: rgba(13,48,63,.65); --surface-glass: rgba(27,67,81,.65);
  --line-glass: rgba(160,232,240,.39); --ink: #f1fcff; --muted: #b3d2db;
  --app-scene: url("./assets/avatar-background-cosmos.webp"); --ink-soft: #c1dce1;
}
html[data-avatar-scene="cosmos"] { --avatar-environment: url("./assets/avatar-background-cosmos.webp"); }
html[data-avatar-scene="sea"] { --avatar-environment: radial-gradient(ellipse at 75% 12%,#fff1cc,transparent 35%),linear-gradient(180deg,#bee9ea 0 43%,#49b4c3 44% 64%,#175774 100%); }
html[data-avatar-scene="provence"] { --avatar-environment: radial-gradient(ellipse at 70% 13%,#fff1c9,transparent 38%),linear-gradient(175deg,#cee2ed 0 35%,#c6b4dc 36% 60%,#687299 100%); }
:root .app-redesign .app-frame { background:linear-gradient(155deg,#e1f2ef,#edf7f5 42%,#dcebec); border-color:var(--line-glass); color:var(--ink); isolation:isolate; }
:root .app-redesign .app-view { background:transparent; }
:root .app-redesign :is(.section-band,.simple-header) { background-color:transparent; background-image:none; }
.app-redesign .app-chrome {
  position:sticky; top:0; z-index:75; display:flex; align-items:center; justify-content:space-between;
  min-height:82px; padding:13px 20px; background:var(--surface-glass); border:0; color:var(--ink); backdrop-filter:blur(18px);
}
.app-redesign .app-frame:has(#profile.active,#home.active) .app-chrome { position:relative; margin-bottom:-82px; background:transparent; backdrop-filter:none; }
.app-redesign .app-chrome .brand { position:relative; z-index:2; gap:10px; color:var(--ink); }
.app-redesign .app-chrome .brand strong { font-size:1rem; letter-spacing:.01em; }
/* One shared wordmark for every app view, including first-run and live heroes. */
.app-redesign .app-frame :is(.view-topbar,.topbar) > .brand,
.app-redesign .profile-onboarding__brand { display:none; }
.app-redesign .profile-onboarding { padding-top:96px; }
.app-redesign .app-frame:has(#profile.active #profile-onboarding:not([hidden])) .app-chrome .brand { color:#eefcf9; }

.app-redesign .app-menu-toggle { position:relative; z-index:2; display:grid; place-items:center; flex:0 0 52px; width:52px; height:52px; padding:12px; border:1px solid var(--line-glass); border-radius:50%; color:var(--ink); background:var(--surface-glass); box-shadow:inset 0 1px 2px #ffffff65,0 5px 18px #12526716; backdrop-filter:blur(12px); cursor:pointer; touch-action:manipulation; transition:transform .24s ease,background .24s ease; }
.app-redesign .app-menu-toggle[aria-expanded="true"] { transform:rotate(90deg); background:var(--surface-card); }
.app-redesign .app-menu-toggle > *, .app-redesign .bottom-nav button > *,.app-redesign .app-menu button > * { pointer-events:none; }
.app-redesign .app-menu-toggle::before,.app-redesign .app-menu-toggle::after { pointer-events:none; }
.app-redesign .app-menu-backdrop { position:fixed; inset:0; z-index:0; width:100%; height:100%; padding:0; margin:0; border:0; border-radius:0; background:linear-gradient(90deg,transparent 30%,#315f7010 57%,#16384763 100%); cursor:default; animation:menu-atmosphere .2s ease-out; }
html[data-theme="dark"] .app-redesign .app-menu-backdrop { background:linear-gradient(90deg,transparent 25%,#03172418 55%,#03172499 100%); }
.app-redesign .app-menu { position:absolute; z-index:2; right:20px; top:calc(100% + 3px); display:flex; flex-direction:column; gap:10px; width:min(212px,calc(100% - 40px)); padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
.app-redesign .app-menu button { display:flex; flex-direction:row-reverse; align-items:center; justify-content:flex-start; width:100%; gap:10px; min-height:48px; padding:0; border:0; border-radius:0; background:transparent; color:var(--ink); text-align:right; font:600 .9375rem/1.25 var(--font-ui); cursor:pointer; animation:emblem-arrive .3s cubic-bezier(.2,.8,.2,1) both; }
.app-redesign .app-menu button > svg:first-child { flex:0 0 48px; width:48px; height:48px; padding:12px; border:1px solid #ffffffda; border-radius:50%; color:#267d87; background:radial-gradient(ellipse at 28% 15%,#fffffff5,#dcf6f3cb 60%,#9bcad3db); box-shadow:inset 0 2px 3px #fff,0 5px 15px #06354c29; stroke-width:1.6; backdrop-filter:blur(14px); transition:transform .18s ease; }
.app-redesign .app-menu button > span { min-width:0; padding:4px 7px; border-radius:9px; color:#123b48; background:#effcf0a6; text-shadow:0 1px 3px #fff9; font-size:.8125rem; backdrop-filter:blur(5px); }
.app-redesign .app-menu button > svg:last-child,.app-redesign .app-menu button small,.app-menu__eyebrow { display:none; }
.app-redesign .app-menu button:nth-of-type(2) { animation-delay:50ms; }
.app-redesign .app-menu button:nth-of-type(3) { animation-delay:100ms; }
.app-redesign .app-menu button:nth-of-type(4) { animation-delay:150ms; }
.app-redesign .app-menu button:hover > svg:first-child { transform:translateY(-2px); }
html[data-theme="dark"] .app-redesign .app-menu button > svg:first-child { color:#dcffff; border-color:#b3e8f07d; background:radial-gradient(ellipse at 28% 15%,#587f86c9,#1d4c5ad6 62%,#0a2639e0); box-shadow:inset 0 1px 3px #d3ffff70,0 5px 18px #0003; }
html[data-theme="dark"] .app-redesign .app-menu button > span { color:#f4ffff; background:#082d42a8; text-shadow:0 2px 8px #031b27; }
.app-menu[hidden],.app-menu-backdrop[hidden],.epigen-input-menu[hidden] { display:none!important; }

/* Three permanent controls; the central control keeps the existing atom. */
:root .app-redesign .bottom-nav { z-index:76; grid-template-columns:1fr 1.15fr 1fr!important; min-height:90px; padding:8px 14px max(10px,env(safe-area-inset-bottom)); border-top:1px solid var(--line-glass); border-radius:25px 25px 0 0; background:var(--surface-glass); color:var(--ink); backdrop-filter:blur(22px); box-shadow:0 -4px 20px #104f5c10; }
.app-redesign .bottom-nav button { display:grid; grid-template-rows:56px auto; justify-items:center; align-items:center; align-content:center; min-height:68px; gap:6px; color:var(--ink); font-size:.8125rem; letter-spacing:0; }
.app-redesign .bottom-nav button::before { display:none; }
html .app-redesign .bottom-nav button > span:not(.epigen-logo-button) { font-size:.8125rem; line-height:1.3; font-weight:500; color:inherit; }
html .app-redesign .bottom-nav button > svg { transform:none!important; width:48px!important; height:48px!important; padding:10px!important; border-radius:17px!important; border:1px solid var(--line-glass)!important; background:var(--surface-glass)!important; color:var(--ink)!important; stroke:currentColor!important; box-shadow:inset 0 1px 2px #ffffffb0,0 4px 12px #184b5b15; }
html .app-redesign .bottom-nav button[data-view="live"] > svg { background:linear-gradient(145deg,#ff7780,#f82e47)!important; border-color:#ffa8b1!important; color:#fff!important; box-shadow:inset 0 1px 4px #fff8,0 0 17px #ff5e7955; }
.app-redesign .bottom-nav .ai-nav { touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; overflow:visible; }
html .app-redesign .bottom-nav .epigen-logo-button { display:grid; place-items:center; flex:none; width:56px; height:56px; margin:0; border:1px solid #9adbe06e; border-radius:50%; background:radial-gradient(ellipse at 28% 16%,#ffffff80,#9fdae33b 62%,#71bac34d); box-shadow:inset 0 1px 2px #f0ffffb0,0 0 19px #49d2d538; transform:none; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark { display:block; flex:0 0 auto; width:48px; height:48px; margin:0; padding:0; border-radius:50%; transform-style:preserve-3d; perspective:160px; }
html .app-redesign .epigen-logo-button .brand__mark { width:48px; height:48px; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark::before { inset:0; border-color:#8ddfdf70; background:radial-gradient(ellipse at 30% 20%,#e5ffff3b,transparent 70%); animation:none; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark::after { inset:40%; background:radial-gradient(circle at 30% 25%,#fff7bd,#f4d353 55%,#c38d35); box-shadow:0 0 12px #efd16b80; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark i { inset:6% 28%; border:2px solid #40c5c3; border-radius:50%; transform:rotateZ(var(--orbit-angle,0deg)) rotateY(36deg); animation:epigen-orbit-3d 18s linear infinite; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark i:nth-child(2) { --orbit-angle:45deg; border-color:#e5c568; animation-duration:23s; animation-direction:reverse; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark i:nth-child(3) { --orbit-angle:90deg; animation-duration:26s; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark i:nth-child(4) { --orbit-angle:135deg; border-color:#d6b761; animation-duration:30s; animation-direction:reverse; }
.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark b { width:10px; height:10px; background:radial-gradient(circle at 30% 25%,#fff8c2,#e9bd4c); box-shadow:0 0 10px #f3d55d80; }

/* Input choice remains separate from navigation and preserves long-press targets. */
.epigen-input-menu { position:fixed; z-index:90; bottom:calc(110px + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); display:grid; grid-template-columns:1fr 1fr; gap:10px; width:min(330px,calc(100vw - 32px)); padding:18px; border-radius:26px; color:var(--ink); background:var(--surface-card); border:1px solid var(--line-glass); box-shadow:0 20px 60px #041e3840; backdrop-filter:blur(25px); animation:input-menu-reveal .24s ease-out both; }
.epigen-input-menu > span { grid-column:1/-1; padding:0 4px 7px; font:650 .875rem var(--font-display); color:var(--muted); }
.epigen-input-menu button { display:flex; flex-direction:column; align-items:center; gap:8px; min-height:112px; padding:17px 10px; border:1px solid var(--line-glass); border-radius:19px; color:var(--ink); background:var(--surface-glass); cursor:pointer; }
.epigen-input-menu button svg { width:26px; height:26px; color:var(--aqua-deep); }
.epigen-input-menu button strong { font-size:1rem; }
.epigen-input-menu button small { font-size:.75rem; color:var(--muted); }
.epigen-input-menu button[aria-pressed="true"],.epigen-input-menu button.is-target { border-color:#27b7b6; box-shadow:inset 0 0 0 1px #27b7b6; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; clip-path:inset(50%)!important; white-space:nowrap!important; border:0!important; }

/* Transparent foregrounds never stretch the person or inherit old image masks. */
.app-redesign #profile .profile-visual { height:clamp(390px,65svh,740px); min-height:0; color:var(--ink); background:var(--avatar-environment) center / cover no-repeat; isolation:isolate; }
:root[data-theme] .app-redesign .living-hero { height:clamp(360px,52svh,440px); min-height:0; color:var(--ink); background:var(--avatar-environment) center / cover no-repeat; }
html[data-avatar-layered="true"] .app-redesign #miniapp-profile-avatar:not([data-personal-avatar="true"]),
html[data-avatar-layered="true"] .app-redesign #miniapp-hero-avatar:not([data-personal-avatar="true"]) { position:absolute; z-index:1; inset:70px 0 0 auto; width:88%; height:calc(100% - 70px); object-fit:contain; object-position:right bottom; opacity:1; filter:none; -webkit-mask-image:none; mask-image:none; transform:none; pointer-events:none; }
html[data-avatar-layered="true"] .app-redesign #miniapp-hero-avatar:not([data-personal-avatar="true"]) { inset:72px 0 0 auto; width:78%; height:calc(100% - 72px); }
html .app-redesign #miniapp-profile-avatar[data-personal-avatar="true"] { inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 35%; opacity:1; transform:none; -webkit-mask-image:none; mask-image:none; }
html .app-redesign #miniapp-hero-avatar[data-personal-avatar="true"] { width:clamp(118px,34vw,178px); height:clamp(118px,34vw,178px); inset:110px 20px auto auto; object-fit:cover; object-position:50% 40%; opacity:1; transform:none; -webkit-mask-image:none; mask-image:none; }
.app-redesign .profile-visual__veil,.app-redesign .living-hero__veil { z-index:2; background:linear-gradient(90deg,#e6f6f35e,transparent 55%),linear-gradient(0deg,#d2e9eb73,transparent 30%); pointer-events:none; }
html[data-theme="dark"] .app-redesign :is(.profile-visual__veil,.living-hero__veil) { background:linear-gradient(90deg,#05222e59,transparent 60%),linear-gradient(0deg,#05222e66,transparent 35%); }
.app-redesign .profile-visual:has([data-personal-avatar="true"]) .profile-visual__veil { background:linear-gradient(0deg,#05212ee0,transparent 80%); }
.app-redesign .profile-visual:has([data-personal-avatar="true"]) .profile-visual__copy { color:#fff; }
.app-redesign .profile-visual__copy { z-index:3; left:24px; right:24px; bottom:28px; max-width:82%; color:#fff; text-shadow:0 2px 15px #082e3a38; }
.app-redesign .profile-visual__copy .eyebrow { color:inherit; font-size:.6875rem; letter-spacing:.12em; }
.app-redesign .profile-visual__copy h1 { margin:9px 0; font-size:clamp(2rem,7vw,3rem); line-height:1.05; letter-spacing:-.045em; }
.app-redesign .profile-visual__copy p { max-width:28ch; color:inherit; font-size:.8125rem; line-height:1.4; }
.app-redesign .profile-avatar-entry { display:inline-flex; align-items:center; gap:9px; margin-top:14px; padding:11px 13px; min-height:46px; border:1px solid #e5ffffaa; border-radius:16px; color:#fff; background:#c9f6f238; box-shadow:inset 0 1px 1px #ffffff6b,0 4px 18px #082e3a1a; backdrop-filter:blur(16px); font:600 .8125rem var(--font-ui); cursor:pointer; }
.app-redesign .profile-avatar-entry small { display:block; margin-top:3px; font-size:.6875rem; font-weight:450; color:#e0f8f6; }
.app-redesign .profile-avatar-entry > svg { width:18px; height:18px; }
.app-redesign .living-hero::after { display:none; }
.app-redesign .living-hero .hero-copy { position:absolute; z-index:3; bottom:24px; left:20px; max-width:62%; padding:0; color:var(--ink); }
.app-redesign .living-hero .hero-copy h1 { font-size:clamp(2rem,7vw,3rem); line-height:1.08; letter-spacing:-.04em; margin:9px 0; }
.app-redesign .living-hero .hero-copy > p { display:none; }
.app-redesign .living-hero .micro-label { color:var(--muted); font-size:.75rem; }
.app-redesign .living-hero .twin-status { display:flex; width:fit-content; min-width:0; max-width:100%; margin-top:12px; padding:10px 12px; border:1px solid var(--line-glass); border-radius:14px; color:var(--ink); background:var(--surface-card); backdrop-filter:blur(12px); }
.app-redesign .living-hero .twin-status b { font-size:.8125rem; }
.app-redesign .living-hero .twin-status small { color:var(--muted); font-size:.6875rem; }
.app-redesign #home { background:transparent; }
.app-redesign #home > .hero-score { position:relative; inset:auto; margin:16px 20px; width:auto; border:1px solid var(--line-glass); background:var(--surface-card); color:var(--ink); box-shadow:0 5px 18px #104e5d0c; }
.app-redesign .section-band { padding:20px; }
.app-redesign .section-heading h2 { font-family:var(--font-display); font-size:clamp(1.125rem,4.5vw,1.375rem); letter-spacing:-.025em; line-height:1.2; }
.app-redesign .section-heading .eyebrow { font-size:.6875rem; letter-spacing:.1em; }
.app-redesign #library .library-header { padding-top:18px; }
.app-redesign .assistant-empty-prompts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.app-redesign .assistant-empty-prompts button { min-width:0; padding:12px 10px; min-height:48px; font-size:.875rem; line-height:1.4; }
.app-redesign #settings #epigen-input-setting { font:inherit; border:1px solid var(--line-glass); border-radius:12px; padding:10px; background:var(--surface-glass); color:var(--ink); max-width:130px; }
.app-redesign #settings .assistant-profile-context { min-height:48px; margin:14px 0; padding:12px 18px; border-radius:14px; border:1px solid #a0525235; background:#ab4c4c0b; }
.app-redesign #settings .assistant-profile-context[aria-pressed="true"] { color:#167d66; background:#3aa38c18; border-color:#37a38e55; }
.app-redesign #settings input[role="switch"] { accent-color:#098979; }
.app-redesign #profile > :is(.profile-score-band,.profile-precision-route,.profile-start-blocks),
.app-redesign #profile .profile-visual > .view-topbar,.app-redesign .living-hero .topbar,
.app-redesign #home :is(#home-personal-route,.day-focus),.app-redesign #library .library-header .view-topbar,
/* Onboarding visibility belongs to first-run-onboarding and its hidden attribute.
   Hiding it here would blank the required-profile state, which hides the hero. */
.app-redesign .epigen-feature-settings,.app-redesign .profile-settings-actions,.app-redesign [data-plan-chooser] { display:none!important; }
.app-redesign #calendar .view-topbar { display:none; }
.app-redesign .avatar-studio-copy { padding:16px 20px; }
.app-redesign .avatar-studio-copy h1 { font-size:1.875rem; margin:8px 0; }
.app-redesign .avatar-studio-copy > p,.app-redesign .avatar-studio-copy > .eyebrow { display:none; }
.app-redesign .avatar-studio-hero { display:flex; flex-direction:column; padding-bottom:0; }
.app-redesign .avatar-studio-hero .avatar-topbar { order:0; }
.app-redesign .avatar-studio-hero .avatar-studio-copy { order:1; }
.app-redesign .avatar-studio-hero .avatar-body-stage { order:2; }
.app-redesign .avatar-studio-hero .avatar-preview-note { order:3; }
.app-redesign .avatar-studio-hero .avatar-scene-picker { order:4; }
.app-redesign :is(.app-menu,.epigen-input-menu,.profile-day-switch,.app-chrome) button:focus-visible { outline:3px solid #54bac9; outline-offset:4px; }
@keyframes emblem-arrive { from { opacity:0; transform:translateY(-16px) scale(.86); } to { opacity:1; transform:none; } }
@keyframes input-menu-reveal { from { opacity:0; transform:translate(-50%,14px) scale(.94); } to { opacity:1; transform:translate(-50%,0) scale(1); } }
@keyframes menu-atmosphere { from { opacity:0; } to { opacity:1; } }
@keyframes epigen-orbit-3d { from { transform:rotateZ(var(--orbit-angle,0deg)) rotateY(36deg) rotateX(0deg); } to { transform:rotateZ(calc(var(--orbit-angle,0deg) + 360deg)) rotateY(36deg) rotateX(360deg); } }
@media(max-width:360px) { .app-redesign .app-chrome { padding-inline:16px; } .app-redesign .app-menu { right:16px; gap:9px; } .app-redesign .app-menu button > svg:first-child { width:48px; height:48px; flex-basis:48px; padding:12px; } .app-redesign .profile-visual__copy { left:16px; } }
@media(prefers-reduced-motion:reduce) { .app-redesign .app-menu button,.app-redesign .app-menu-backdrop,.epigen-input-menu,.app-redesign :is(.app-chrome,.epigen-logo-button) .brand__mark i { animation:none; } .app-redesign .app-menu-toggle,.app-redesign .app-menu button > svg:first-child { transition:none; } }


/* Mobile framing follows the accepted full-height profile composition. */
:root[data-theme="dark"] .app-redesign .app-frame {
  background:radial-gradient(ellipse at 95% 0,#143f51,transparent 52%),linear-gradient(165deg,#082735,#091e2d 70%,#102e3d);
}
.app-redesign .profile-visual .profile-visual__veil {
  background:linear-gradient(0deg,#073c49d9 0%,#0b505985 20%,#174d5221 42%,transparent 60%);
}
html[data-theme="dark"] .app-redesign .profile-visual .profile-visual__veil {
  background:linear-gradient(0deg,#041d2be8 0%,#072e3e8c 22%,#0525331a 48%,transparent 62%);
}
.app-redesign .app-frame:has(#home.active) .app-menu-backdrop {
  background:linear-gradient(90deg,transparent 10%,#dcefea4d 46%,#2b596b9c 100%);
}
html[data-theme="dark"] .app-redesign .app-frame:has(#home.active) .app-menu-backdrop {
  background:linear-gradient(90deg,transparent 10%,#08273870 46%,#041b2dcc 100%);
}
.app-redesign #profile > .section-band,
.app-redesign #home > .section-band { background:var(--surface-card); backdrop-filter:blur(14px); }
@media (max-width: 700px) {
  .app-redesign #profile .profile-visual { height:calc(100svh - 92px); min-height:540px; max-height:960px; }
  html[data-avatar-layered="true"] .app-redesign #miniapp-profile-avatar:not([data-personal-avatar="true"]) {
    top:clamp(160px,23svh,200px); right:20px; bottom:0; left:auto;
    width:92%; height:calc(100% - clamp(160px,23svh,200px));
    object-fit:contain; object-position:right bottom;
  }
  :root[data-theme] .app-redesign .living-hero { height:clamp(360px,48svh,440px); }
  html[data-avatar-layered="true"] .app-redesign #miniapp-hero-avatar:not([data-personal-avatar="true"]) {
    top:90px; right:8px; bottom:0; left:auto; width:78%; height:calc(100% - 90px);
    object-fit:contain; object-position:right bottom;
  }
  .app-redesign .profile-visual__copy h1 { font-size:clamp(2rem,8.5vw,3.15rem); }
  .app-redesign .profile-visual__copy p { max-width:27ch; }
  .app-redesign .profile-avatar-entry { min-height:50px; padding:11px 16px; }
  .app-redesign .app-menu-toggle { width:48px; height:48px; flex-basis:48px; padding:11px; }
}


/* module=profile; channel=miniapp,web; layer=ui; scenario=questionnaire.entry */
.app-redesign #questionnaires { padding:24px clamp(18px,4vw,32px) 36px; }
.app-redesign #canonical-questionnaires { width:100%; max-width:720px; margin:0 auto; color:var(--ink); }
.app-redesign #canonical-questionnaires > h2 { margin:8px 0 18px; font:650 clamp(1.5625rem,4.7vw,2rem)/1.16 var(--font-display); letter-spacing:-.035em; overflow-wrap:anywhere; }
.app-redesign #canonical-questionnaires .questionnaire-eyebrow { margin:0; color:var(--aqua-deep); font:700 .6875rem/1.4 var(--font-ui); letter-spacing:.12em; }
.app-redesign #canonical-questionnaires > .module-status { margin:0 0 24px; max-width:46ch; font:400 .9375rem/1.6 var(--font-ui); color:var(--ink-soft); }
.app-redesign #canonical-questionnaires[data-state="empty"] { max-width:580px; padding:clamp(22px,4vw,36px); border:1px solid var(--line-glass); border-radius:28px; background:var(--surface-glass); box-shadow:0 12px 36px #1746550c,inset 0 1px 0 #ffffff65; }
.app-redesign #canonical-questionnaires[data-state="empty"] > :is(.module-primary-action,.module-secondary-action) { min-height:52px; width:100%; margin:12px 0 0; padding:14px 18px; border-radius:17px; font:600 .875rem/1.4 var(--font-ui); text-align:center; text-decoration:none; white-space:normal; overflow-wrap:anywhere; }
.app-redesign #canonical-questionnaires[data-state="empty"] > .module-primary-action { color:#f4ffff; background:linear-gradient(135deg,#12656a,#0b8987); box-shadow:0 7px 20px #0c64621c; }
.app-redesign #canonical-questionnaires[data-state="empty"] > .module-secondary-action { color:var(--ink); border:1px solid var(--line-glass); background:transparent; box-shadow:none; }
