: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;
}

.page-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(225, 248, 243, 0.84) 62%, rgba(255, 246, 191, 0.68)),
    url("./assets/myepigen-atlas-hero.png") center / cover;
}

.page-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(249, 253, 251, 0.58);
  backdrop-filter: blur(28px) saturate(0.92);
}

.page-atmosphere span {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 64vh;
  top: 18vh;
  background: linear-gradient(transparent, rgba(13, 139, 132, 0.25), transparent);
  transform: rotate(26deg);
}

.page-atmosphere span:nth-child(1) { left: 24%; }
.page-atmosphere span:nth-child(2) { left: 50%; height: 84vh; top: 7vh; opacity: 0.5; }
.page-atmosphere span:nth-child(3) { right: 24%; transform: rotate(-26deg); }

.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 18px/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 15px/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: 12px;
  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(32px, 4vw, 46px)/1.08 var(--font-display);
}

.web-access__panel > p {
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: 16px;
  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: 12px;
  line-height: 1.55;
}

.web-access__status {
  min-height: 21px;
  margin-top: 12px;
  color: var(--aqua-deep);
  font-size: 13px;
  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: 11px;
  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: 11px;
  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: #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;
}

.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: 16px;
  font-weight: 800;
}

.brand small {
  color: var(--ink-soft);
  font-size: 9px;
  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-cursor {
  --cursor-scale: 0.82;
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 54px;
  height: 54px;
  opacity: 0;
  border: 1px solid rgba(24, 185, 173, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate3d(-80px, -80px, 0) translate(-50%, -50%) scale(var(--cursor-scale));
  transition: opacity 160ms ease, scale 180ms ease;
  backdrop-filter: blur(1px) saturate(1.08);
}

.brand-cursor.visible { opacity: 1; }
.brand-cursor.active { --cursor-scale: 1.08; }

.brand-cursor::before,
.brand-cursor::after,
.brand-cursor i,
.brand-cursor span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.brand-cursor::before {
  inset: 7px;
  border: 1px solid rgba(24, 185, 173, 0.26);
}

.brand-cursor::after {
  inset: 50%;
  width: 4px;
  height: 4px;
  background: var(--sun);
  box-shadow: 0 0 12px rgba(244, 216, 90, 0.94), 0 0 22px rgba(24, 185, 173, 0.42);
  transform: translate(-50%, -50%);
}

.brand-cursor i {
  inset: 7px 20px;
  border: 1px solid rgba(24, 185, 173, 0.54);
  animation: brand-orbit 4.8s linear infinite;
}

.brand-cursor i:nth-child(2) { transform: rotate(45deg); animation-direction: reverse; animation-duration: 5.8s; }
.brand-cursor i:nth-child(3) { transform: rotate(90deg); animation-duration: 6.8s; }
.brand-cursor i:nth-child(4) { transform: rotate(135deg); border-color: rgba(215, 173, 63, 0.62); animation-direction: reverse; animation-duration: 7.8s; }
.brand-cursor span { inset: -6px; border: 1px solid rgba(215, 173, 63, 0.1); }

.brand.compact strong {
  font-size: 14px;
}

.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: 10px;
  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: 66px;
  line-height: 0.88;
}

.hero-copy > p {
  max-width: 226px;
  margin: 0;
  color: #36585a;
  font-family: var(--font-display);
  font-size: 15px;
  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__pulse {
  position: relative;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(26, 185, 174, 0.14);
}

.twin-status__pulse::before,
.twin-status__pulse::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 13px rgba(21, 184, 173, 0.8);
}

.twin-status__pulse::after {
  inset: 3px;
  border: 1px solid var(--aqua);
  background: transparent;
  animation: signal-pulse 2s ease-out infinite;
}

.twin-status > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.twin-status b {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
}

.twin-status small {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 9px;
}

.twin-status svg {
  width: 16px;
  height: 16px;
}

.heart-signal {
  position: absolute;
  z-index: 5;
  top: 31.5%;
  left: 63.5%;
  width: 54px;
  height: 54px;
  pointer-events: none;
}

.heart-signal i {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(222, 173, 67, 0.82);
  animation: heartbeat-wave 2.2s ease-out infinite;
}

.heart-signal i:nth-child(2) { animation-delay: 0.7s; }
.heart-signal i:nth-child(3) { animation-delay: 1.4s; }

.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: 31px;
  line-height: 1;
}

.hero-score__ring small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
  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: 10px;
}

.hero-score__copy strong {
  margin: 5px 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  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: 23px;
  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: 10px;
  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: 31px;
}

.focus-orbit small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.focus-orbit__marker {
  position: absolute;
  top: 6px;
  left: 61px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 15px rgba(197, 159, 67, 0.65);
}

.focus-copy {
  min-width: 0;
}

.focus-copy__time {
  color: var(--aqua-deep);
  font-size: 10px;
  font-weight: 700;
}

.focus-copy h3 {
  margin: 6px 0 7px;
  font-family: var(--font-display);
  font-size: 20px;
}

.focus-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  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: 11px;
  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: 10px;
  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: 23px;
}

.vital-item > strong b {
  font: inherit;
}

.vital-item > strong small {
  color: var(--ink-soft);
  font-size: 11px;
  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: 13px;
}

.tracker small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 9px;
}

.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: 10px;
  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: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.timeline-event > div strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.35;
}

.timeline-event > div small {
  color: var(--ink-soft);
  font-size: 9px;
  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: 9px;
  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: 30px;
  line-height: 1.05;
}

.live-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: 10px;
}

.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: 10px;
}

.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: 9px;
}

.route-track small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.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: 10px;
  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: 42px;
  line-height: 1.04;
}

.view-hero__copy p {
  max-width: 340px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  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: 11px;
  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: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.player-line strong {
  margin: 4px 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-line small {
  color: var(--ink-soft);
  font-size: 9px;
}

.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: 8px;
}

.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: 20px;
}

.broadcast-list time small {
  color: var(--ink-soft);
  font-size: 8px;
}

.broadcast-list article > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.broadcast-list article span {
  color: var(--aqua-deep);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.broadcast-list article strong {
  margin: 4px 0;
  font-family: var(--font-display);
  font-size: 12px;
}

.broadcast-list article small {
  color: var(--ink-soft);
  font-size: 9px;
}

.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: 42px;
  line-height: 1.05;
}

.simple-header > p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  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: 17px;
}

.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: 8px;
  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: 15px;
  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: 5px;
  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: 7px;
  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: 20px;
}

.next-event time small,
.next-event > div > div span {
  color: var(--ink-soft);
  font-size: 8px;
}

.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: 12px;
}

.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: 12px;
}

.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: 8px;
  font-weight: 700;
  text-transform: uppercase;
}

.atlas-tile strong {
  margin: 6px 0 5px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.1;
}

.atlas-tile.large strong,
.atlas-tile.wide strong { font-size: 25px; }

.atlas-tile b {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
  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: 12px;
}

.library-tools small,
.profile-actions small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.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: 48px;
  line-height: 1;
}

.profile-visual__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
}

.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: 24px;
}

.profile-score-ring span {
  max-width: 65px;
  color: var(--ink-soft);
  font-size: 8px;
}

.profile-score-band h2 {
  margin: 6px 0 7px;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.25;
}

.profile-score-band p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  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: 8px;
}

.goal-numbers strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 20px;
}

.goal-numbers b {
  color: var(--aqua-deep);
  font-size: 8px;
}

.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: 9px;
}

.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: 11px;
}

.system-scores span small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.system-scores > article > strong {
  min-width: 38px;
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 23px;
  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: 19px;
  line-height: 1;
}

.audit-atlas__signal small {
  color: var(--ink-soft);
  font-size: 8px;
}

.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: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-atlas__focus strong {
  max-width: 330px;
  margin-top: 7px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.2;
}

.audit-atlas__focus small {
  max-width: 330px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  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: 12px;
}

.audit-report-link small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  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: 11px;
  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: 40px;
  line-height: 0.98;
}

.avatar-studio-copy p {
  max-width: 350px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  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;
  transition: opacity 180ms ease, filter 180ms 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__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: 10px;
}

.avatar-stage-readout > strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.avatar-stage-readout > strong small {
  font-size: 11px;
}

.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: 9px;
  font-weight: 700;
}

.simulation-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aqua-deep);
  font-size: 9px;
  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: 10px;
  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: 13px;
}

.body-control output {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 17px;
  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: 8px;
}

.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: 8px;
  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: 7px;
  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: 8px;
}

.body-composition-strip strong {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 13px;
}

.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: 11px;
}

.simulation-note small {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.5;
}

.capture-count {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 15px;
}

.capture-lead {
  max-width: 370px;
  margin: 12px 0 20px;
  color: var(--ink-soft);
  font-size: 10px;
  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: 12px;
}

.capture-shot > small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 8px;
}

.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: 12px;
  font-weight: 800;
}

.avatar-profile-source__head small {
  color: var(--aqua-deep);
  font-size: 8px;
  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: 7px;
  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: 15px;
  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: 7px;
}

.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: 10px;
  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: 9px;
}

.avatar-cloud-consent small {
  margin-top: 3px;
  font-size: 8px;
  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: 12px;
}

.avatar-build-action small {
  margin-top: 3px;
  color: currentColor;
  opacity: 0.68;
  font-size: 8px;
}

.avatar-build-progress {
  position: relative;
  height: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  opacity: 0;
  color: var(--aqua-deep);
  font-size: 9px;
  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: 9px;
}

.privacy-line small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  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: 22px;
  line-height: 1.18;
}

.avatar-route__head > strong {
  flex: 0 0 auto;
  color: var(--aqua-deep);
  font-size: 10px;
}

.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: 13px;
}

.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: 8px;
}

.avatar-route > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.micro-rating {
  color: var(--aqua-deep);
  font-family: var(--font-display);
  font-size: 13px;
}

.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: 9px;
}

.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: 10px;
}

.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: 40px;
  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: 11px;
  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: 8px;
}

.movement-hero__copy > div b {
  color: white;
  font-family: var(--font-display);
  font-size: 18px;
}

.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: 8px;
  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: 7px;
  font-weight: 700;
  text-transform: uppercase;
}

.training-card strong {
  margin: 5px 0;
  font-family: var(--font-display);
  font-size: 15px;
}

.training-card b {
  color: var(--ink-soft);
  font-size: 8px;
  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: 28px;
}

.questionnaire-total span {
  max-width: 110px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 8px;
  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: 11px;
  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: 12px;
}

.questionnaire-list > button small {
  margin: 4px 0 9px;
  color: var(--ink-soft);
  font-size: 8px;
}

.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: 9px;
  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: 12px;
}

.device-list small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.device-list article > button {
  padding: 8px 9px;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-size: 8px;
  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: 16px;
}

.sync-summary small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
}

.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: 8px;
  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: 11px;
}

.voice-preset-grid small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 8px;
  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: 11px;
}

.module-consent small,
.module-toggle small,
.device-import small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  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: 12px; }
.voice-record-action small { margin-top: 3px; color: var(--ink-soft); font-size: 8px; }
.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: 11px; }

.module-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: var(--aqua-deep);
  font-size: 9px;
  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: 13px; }
.genetics-drop small { margin-top: 5px; color: var(--ink-soft); font-size: 8px; }

.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: 22px; }
.genetics-summary small { max-width: 60px; color: var(--ink-soft); font-size: 6px; text-align: center; }
.genetics-summary p { margin: 0; color: var(--ink-soft); font-size: 9px; 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: 11px; }
.genetics-results small,
.capability-list small { margin-top: 4px; color: var(--ink-soft); font-size: 8px; line-height: 1.4; }
.genetics-results strong { color: var(--aqua-deep); font-family: var(--font-display); font-size: 11px; }

.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: 7px;
  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: 11px; }
.privacy-actions small { margin-top: 4px; color: var(--ink-soft); font-size: 8px; }
.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: 11px;
}

.questionnaire-form input[type="range"] {
  width: 100%;
  accent-color: var(--aqua-deep);
}

.questionnaire-form [data-range-output] {
  color: var(--aqua-deep);
  font-size: 9px;
  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: 10px;
}

.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: 78px;
  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: 5px;
  padding: 5px 1px;
  color: #6d8182;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.bottom-nav button::before {
  content: "";
  position: absolute;
  top: -9px;
  width: 24px;
  height: 2px;
  opacity: 0;
  background: var(--aqua);
}

.bottom-nav button.active {
  color: var(--ink);
}

.bottom-nav button.active::before { opacity: 1; }

.bottom-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.bottom-nav .ai-nav {
  color: var(--ink);
}

.bottom-nav .ai-nav::before {
  display: none;
}

.ai-nav__mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  margin-top: -7px;
  margin-bottom: -1px;
  color: white;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(7, 53, 55, 0.22), inset 0 0 0 1px rgba(112, 229, 217, 0.35);
  font-style: normal;
  font-size: 8px;
  font-weight: 800;
}

.bottom-nav span {
  max-width: 100%;
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-fab {
  position: fixed;
  z-index: 48;
  right: max(18px, calc((100vw - 480px) / 2 + 18px));
  bottom: calc(93px + env(safe-area-inset-bottom));
  display: flex;
  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: 9px;
}

.ai-fab > span:last-child {
  margin-top: -2px;
  font-size: 7px;
  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) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.bottom-sheet > header span {
  color: var(--aqua-deep);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.bottom-sheet > header strong {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 14px;
}

.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: 10px; }

.quick-log-emblem {
  width: 45px;
  height: 45px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  border: 1px solid rgba(22, 185, 174, 0.3);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(225, 249, 245, 0.95), rgba(255, 248, 215, 0.86));
}

.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: 12px;
  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: 11px;
  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: 10px;
  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: 22px;
  font-weight: 700;
}

.quick-log-field b {
  color: var(--ink-soft);
  font-size: 10px;
}

.quick-log-status {
  min-height: 18px;
  color: var(--aqua-deep);
  font-size: 10px;
  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: 12px;
  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: 8px;
}

.assistant-message p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.assistant-source {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 9px;
  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 11px/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: 11px;
  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: 9px;
  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: 11px;
}

.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: 23px;
}

.avatar-preview > span small {
  font-size: 8px;
}

.avatar-caption {
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: 11px;
  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: 12px;
}

.upload-action small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.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: 11px;
}

.analysis-list small,
.analysis-empty small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  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 28px/1 var(--font-display);
}

.audit-sheet__ring small {
  max-width: 72px;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 7px;
  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: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.audit-sheet__summary > div:last-child > strong {
  display: block;
  margin-top: 5px;
  font: 750 15px/1.25 var(--font-display);
}

.audit-sheet__summary p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  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 11px/1.2 var(--font-display);
}

.audit-sheet__signals small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
}

.audit-sheet__signals article > strong {
  color: var(--aqua-deep);
  font: 800 20px/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: 9px;
  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: 8px;
  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: 9px;
  line-height: 1.4;
}

.audit-sheet__evidence small,
.consent-sheet__note small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 8px;
  line-height: 1.4;
}

.audit-sheet__time {
  color: var(--muted);
  font-size: 8px;
  text-align: right;
}

.account-link-sheet__body p,
.consent-sheet__body > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  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 25px/1 var(--font-display);
  letter-spacing: 0;
}

.account-link-code small,
#account-link-expiry {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 8px;
}

#account-link-telegram label {
  display: grid;
  gap: 7px;
}

#account-link-telegram label > span {
  color: var(--ink-soft);
  font-size: 9px;
  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 18px/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 16px/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 10px/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: 8px;
}

.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: 9px;
  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: 10px;
  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: 34px;
  }
}

@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: 56px; }
  .hero-copy > p { max-width: 205px; font-size: 13px; }
  .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: 27px; }
  .hero-score__copy strong { font-size: 15px; }
  .section-band { padding-right: 18px; padding-left: 18px; }
  .section-heading h2, .route-preview__head h2 { font-size: 21px; }
  .focus-layout { grid-template-columns: 118px minmax(0, 1fr); gap: 16px; }
  .focus-orbit { width: 118px; height: 118px; }
  .focus-orbit strong { font-size: 27px; }
  .focus-copy h3 { font-size: 18px; }
  .focus-copy p { font-size: 11px; }
  .bottom-nav { padding-right: 3px; padding-left: 3px; }
  .bottom-nav span { font-size: 8px; }
  .profile-score-band { grid-template-columns: 96px minmax(0, 1fr); }
  .profile-score-ring { width: 94px; height: 94px; }
  .avatar-studio-copy h1 { font-size: 36px; }
  .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: 7px; }
}

/* 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: 8px;
  line-height: 1.35;
}

.profile-fact-grid strong {
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: 12px;
  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: 12px; }
.profile-fact-empty small { margin-top: 4px; color: var(--ink-soft); font-size: 8px; 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: 12px; line-height: 1.3; }
.profile-system-card small { margin-top: 4px; color: var(--ink-soft); font-size: 8px; line-height: 1.35; }
.profile-system-card > b { color: var(--aqua-deep); font-family: var(--font-display); font-size: 17px; 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(0, 1fr));
  gap: 4px;
  margin-top: 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(224, 239, 236, 0.72);
}

.questionnaire-stage-tabs > button {
  min-width: 0;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 5px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.questionnaire-stage-tabs strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-display);
  font-size: 9px;
  white-space: nowrap;
}

.questionnaire-stage-tabs small { margin-top: 3px; color: var(--ink-soft); font-size: 7px; }
.questionnaire-stage-tabs > button.active { color: white; background: var(--ink); box-shadow: 0 8px 18px rgba(16, 41, 44, 0.16); }
.questionnaire-stage-tabs > button.active small { color: rgba(255, 255, 255, 0.72); }

.questionnaire-stage-copy {
  margin: 12px 0 8px;
  padding: 10px 12px;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  background: rgba(255, 248, 218, 0.5);
  font-size: 9px;
  line-height: 1.5;
}

#questionnaire-list { margin-top: 6px; }

.questionnaire-card {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 36px;
  align-items: center;
  gap: 11px;
  padding: 14px 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: 10px;
  font-style: normal;
  font-weight: 750;
}

.questionnaire-card > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.questionnaire-card small { color: var(--aqua-deep); font-size: 7px; font-weight: 700; text-transform: uppercase; }
.questionnaire-card strong { margin-top: 5px; overflow-wrap: anywhere; font-family: var(--font-display); font-size: 12px; line-height: 1.3; }
.questionnaire-card span > b { margin-top: 3px; color: var(--ink-soft); font-size: 8px; font-weight: 500; line-height: 1.35; }
.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(--aqua); }
.questionnaire-card > b { color: var(--aqua-deep); font-size: 9px; text-align: right; }
.questionnaire-card.complete > b { width: 28px; height: 28px; display: grid; place-items: center; justify-self: end; border-radius: 50%; background: var(--aqua-pale); }
.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: 9px;
  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: 8px; }
.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: 9px; font-weight: 750; }
.questionnaire-field > div:first-child > label { font-family: var(--font-display); font-size: 11px; 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: 6px; 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: 8px;
  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: 10px;
}

.questionnaire-value-field textarea { resize: vertical; }
.questionnaire-value-field b { flex: 0 0 auto; color: var(--ink-soft); font-size: 8px; }

.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: 8px;
  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: 10px; }

.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: 8px; 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: 11px; line-height: 1.35; }
.library-result-card small { margin-top: 4px; display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 8px; 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: 6px; 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: 12px; }
.library-empty span { max-width: 230px; color: var(--ink-soft); font-size: 8px; 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: 10px; line-height: 1.5; }
.library-detail-copy { color: var(--ink-soft); font-size: 9px; 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: 8px; }
.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: 9px; }
.library-calculator-grid b { color: var(--ink-soft); font-size: 7px; }
.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: 10px; 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: 13px; }
.library-module-loading span,
.library-module-error span { max-width: 260px; color: var(--ink-soft); font-size: 10px; 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: 11px; }
.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: 9px; }
.library-module-status { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.45; }
.library-module-safety { margin: 0; padding: 12px; color: #70581b; border-left: 3px solid var(--gold); background: #fff8dc; font-size: 9px; 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: 11px; line-height: 1.35; }
.food-result small,
.nutrient-result small { display: -webkit-box; overflow: hidden; color: var(--ink-soft); font-size: 8px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.food-result > b,
.nutrient-result > b { color: var(--aqua-deep); font-size: 8px; 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: 8px; font-weight: 800; text-transform: uppercase; }
.product-detail-header > strong,
.nutrient-detail-header > strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.product-detail-header > small { color: var(--ink-soft); font-size: 8px; line-height: 1.35; }
.nutrient-detail-header > p { margin: 0; color: var(--ink-soft); font-size: 9px; 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: 7px; }
.product-macro-grid strong,
.nutrient-standard-grid strong { overflow-wrap: anywhere; font-family: var(--font-display); font-size: 13px; }
.product-macro-grid span,
.nutrient-standard-grid span { color: var(--ink-soft); font-size: 6px; }
.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: 8px; }
.product-nutrient-list strong { font-size: 8px; }
.product-nutrient-list b { color: var(--aqua-deep); font-size: 7px; text-align: right; }
.product-portion-field { display: grid; gap: 6px; }
.product-portion-field > span:first-child { color: var(--ink-soft); font-size: 8px; }
.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: 11px; }
.product-portion-field b { color: var(--ink-soft); font-size: 9px; }

.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: 9px; }
.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: 7px; }
.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: 8px; 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: 8px; }
.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: 13px; }
.gene-card header small { color: var(--aqua-deep); font-size: 8px; }
.gene-card header > b { max-width: 120px; color: var(--ink-soft); font-size: 7px; 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: 8px; }
.gene-card section > p { margin: 6px 0 0; color: var(--ink-soft); font-size: 8px; line-height: 1.55; }
.genetics-restricted { margin: 11px 0 0; padding: 10px; color: #70581b; background: #fff8dc; font-size: 8px; 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: 8px; }
.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: 10px; 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: 13px; font-weight: 700; }
.food-macro-grid b { color: var(--ink-soft); font-size: 8px; }

.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: 8px; font-weight: 700; }
.calendar-detail-body > p:not(.module-status) { margin: 13px 0 16px; color: var(--ink-soft); font-size: 10px; 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; }

@media (max-width: 390px) {
  .profile-fact-grid { grid-template-columns: 1fr; }
  .profile-fact-grid article { min-height: 72px; }
  .questionnaire-stage-tabs strong { font-size: 8px; }
  .questionnaire-stage-tabs small { font-size: 6px; }
  .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,
  .brand-cursor i {
    animation: none !important;
  }

  .brand-cursor {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
