@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Condensed:wght@300;400;500;700&display=swap");

:root {
  --bg: #090b0d;
  --bg-deep: #050608;
  --panel: #17191c;
  --panel-2: #1d2024;
  --panel-3: #22262a;
  --line: rgba(118, 237, 248, .11);
  --line-strong: rgba(118, 237, 248, .22);
  --text: #f5f6f7;
  --muted: #969b9e;
  --muted-2: #666b6e;
  --accent: #62f2f5;
  --accent-2: #7ff7ff;
  --accent-soft: rgba(88, 242, 238, .10);
  --danger: #ff2d2d;
  --shadow: 0 22px 70px rgba(0, 0, 0, .42);
  --safe-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px), var(--tg-js-content-safe-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px), var(--tg-js-content-safe-bottom, 0px));
  --safe-left: max(env(safe-area-inset-left, 0px), var(--tg-content-safe-area-inset-left, 0px), var(--tg-js-content-safe-left, 0px));
  --safe-right: max(env(safe-area-inset-right, 0px), var(--tg-content-safe-area-inset-right, 0px), var(--tg-js-content-safe-right, 0px));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { min-height: 100dvh; overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 30% at 50% 31%, rgba(83, 232, 245, .060) 0%, rgba(83, 232, 245, .026) 42%, transparent 74%),
    linear-gradient(180deg, #090b0d 0%, #07090b 52%, #050708 100%);
}

.app-shell { width: min(100%, 720px); margin: 0 auto; padding: 22px 17px calc(126px + var(--safe-bottom)); position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; transition: opacity .2s ease, transform .2s ease; }
.topbar.hidden { display: none; }
.eyebrow { color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: .24em; margin-bottom: 7px; text-shadow: 0 0 16px rgba(88,242,238,.18); }
h1 { margin: 0; font-size: clamp(28px, 8vw, 40px); line-height: 1; letter-spacing: -.05em; }
.avatar { width: 43px; height: 43px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #242628, #17191b); border: 1px solid var(--line); color: var(--accent); font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.03); }

.content { display: grid; gap: 14px; }
.hero, .section-card, .analysis-history-card, .instruction-card, .result-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(34,36,38,.98), rgba(23,24,26,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.hero { position: relative; overflow: hidden; min-height: 240px; padding: 24px; border-radius: 26px; }
.hero::after { content: ""; position: absolute; width: 170px; height: 170px; border-radius: 50%; right: -60px; top: -60px; border: 26px solid rgba(88,242,238,.045); }
.kicker { color: var(--accent); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .16em; }
.hero h2 { max-width: 340px; margin: 18px 0 10px; font-size: 32px; line-height: 1.01; letter-spacing: -.035em; }
.hero p, .section-card p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.primary, .secondary, .ghost-button {
  width: 100%; border: 0; border-radius: 16px; min-height: 52px; padding: 0 18px; font-weight: 850; cursor: pointer; transition: transform .15s ease, opacity .15s ease, border-color .15s ease;
}
.primary { background: var(--accent); color: #071011; box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 30px rgba(88,242,238,.09); }
.primary:active, .secondary:active, .ghost-button:active { transform: scale(.985); }
.primary:disabled { opacity: .32; cursor: default; box-shadow: none; }
.secondary { background: #1b1d1f; color: var(--text); border: 1px solid rgba(255,255,255,.07); }
.ghost-button { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.card { min-height: 126px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 17px; }
.card .value { font-size: 29px; font-weight: 900; letter-spacing: -.05em; }
.card .label { margin-top: 5px; color: var(--muted); font-size: 12px; }
.card .tag { display: inline-flex; margin-top: 18px; padding: 6px 8px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: .04em; }

.section-card { border-radius: 24px; padding: 21px; }
.section-card h2 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.04em; }
.placeholder-list { display: grid; gap: 9px; margin-top: 20px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 15px; border-radius: 15px; background: var(--panel-2); border: 1px solid rgba(255,255,255,.035); }
.row strong { font-size: 19.5px; }
.row span { color: var(--muted); font-size: 12px; }

/* Analysis home */
.analysis-home { display: grid; gap: 22px; }
.analysis-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.analysis-copy .kicker { margin-bottom: 8px; }
.analysis-copy h2 { margin: 0; font-size: 31px; line-height: .98; letter-spacing: -.05em; }
.new-analysis-btn { width: auto; min-width: 142px; padding: 0 17px; }
.history-block { display: grid; gap: 12px; }
.history-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.history-title h3 { margin: 0; font-size: 15px; text-transform: uppercase; letter-spacing: .13em; color: #d7dbdc; }
.history-title span { color: var(--muted-2); font-size: 11px; }
.history-list { display: grid; gap: 10px; }
.analysis-history-card { border-radius: 20px; padding: 12px; display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; }
.history-photo { width: 66px; height: 66px; border-radius: 16px; object-fit: cover; background: #101112; border: 1px solid rgba(255,255,255,.06); }
.history-body { min-width: 0; }
.history-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.history-date { color: var(--muted); font-size: 11px; }
.history-arrow { color: var(--accent); font-size: 18px; line-height: 1; }
.history-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.history-score { display: flex; align-items: baseline; gap: 5px; }
.history-score strong { font-size: 23px; line-height: 1; letter-spacing: -.04em; }
.history-score span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.empty-history { min-height: 190px; display: grid; place-items: center; text-align: center; color: var(--muted-2); border: 1px dashed rgba(255,255,255,.08); border-radius: 21px; background: rgba(255,255,255,.012); }
.empty-history strong { display: block; color: #b9bdbf; font-size: 14px; margin-bottom: 5px; }
.empty-history span { font-size: 12px; }
.skeleton-card { height: 92px; border-radius: 20px; border: 1px solid rgba(255,255,255,.035); background: linear-gradient(90deg, #17191b 25%, #202224 38%, #17191b 60%); background-size: 400% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Capture steps */
.analysis-step { display: grid; gap: 12px; }
.step-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.instruction-card { min-height: 180px; border-radius: 24px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 16px; }
.instruction-copy h2 { margin: 0 0 8px; font-size: 29px; line-height: 1; letter-spacing: -.045em; }
.instruction-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.capture-tile { position: relative; width: 112px; aspect-ratio: 1; border-radius: 21px; border: 1px dashed var(--line-strong); background: rgba(88,242,238,.035); overflow: hidden; display: grid; place-items: center; cursor: pointer; }
.capture-tile.has-photo { border-style: solid; }
.capture-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.capture-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 48%, rgba(0,0,0,.36)); opacity: 0; transition: opacity .15s ease; }
.capture-tile.has-photo .capture-overlay { opacity: 1; }
.plus-icon { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(10,17,18,.76); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.plus-icon::before, .plus-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; border-radius: 2px; background: var(--accent); transform: translate(-50%,-50%); }
.plus-icon::after { transform: translate(-50%,-50%) rotate(90deg); }
.capture-hint { margin-top: 9px; color: var(--muted-2); font-size: 11px; text-align: center; }
.step-actions { display: grid; gap: 8px; margin-top: 4px; }
.hidden-input { position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Analysis loader */
.analysis-loader { min-height: 62dvh; display: grid; place-items: center; text-align: center; }
.loader-inner { display: grid; justify-items: center; }
.scan-loader { position: relative; width: 104px; height: 104px; margin-bottom: 24px; }
.scan-loader::before { content: ""; position: absolute; inset: 8px; border-radius: 29px; border: 1px solid rgba(88,242,238,.22); box-shadow: 0 0 34px rgba(88,242,238,.07); }
.scan-loader::after { content: ""; position: absolute; left: 18px; right: 18px; height: 2px; top: 18px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 17px rgba(88,242,238,.7); animation: scanLine .82s ease-in-out infinite alternate; }
.scan-face { position: absolute; inset: 27px 30px 25px; border: 2px solid rgba(245,246,247,.85); border-top-color: transparent; border-radius: 45% 45% 48% 48%; }
.scan-face::before { content: ""; position: absolute; width: 28px; height: 12px; border: 2px solid rgba(245,246,247,.85); border-bottom: 0; border-radius: 12px 12px 0 0; left: 50%; top: -8px; transform: translateX(-50%); }
@keyframes scanLine { from { transform: translateY(0); } to { transform: translateY(65px); } }
.analysis-loader h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.analysis-loader p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.loader-dots { display: flex; gap: 5px; margin-top: 18px; }
.loader-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .25; animation: loaderDot .8s infinite alternate; }
.loader-dots i:nth-child(2) { animation-delay: .14s; }
.loader-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes loaderDot { to { opacity: 1; transform: translateY(-3px); } }

/* Result */
.result-screen {
  --result-photo-size: clamp(155px, 43vw, 174px);
  position: relative;
  display: grid;
  gap: 6px;
  padding-top: 0;
  isolation: isolate;
}
.result-screen::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -42px;
  right: -42px;
  top: 205px;
  height: 285px;
  background: radial-gradient(ellipse 68% 58% at 50% 54%, rgba(73, 235, 245, .085) 0%, rgba(73, 235, 245, .040) 42%, transparent 76%);
}

/* One compact brand cluster: scanner — ShizoLooks — Telegram. */
.result-brand {
  width: min(calc(100vw - 60px), 286px);
  margin: 0 auto 4px;
  display: grid;
  grid-template-columns: 44px max-content 42px;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.result-brand-name {
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(18px, 5.0vw, 20.5px);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.042em;
  white-space: nowrap;
}
.brand-icon {
  display: grid;
  place-items: center;
}
.scan-brand {
  width: 44px;
  height: 44px;
  color: rgba(249,250,250,.98);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.scan-brand svg {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.24));
}
.telegram-brand {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(155deg, #31bfe9 5%, #209cd3 52%, #1489c8 100%);
  box-shadow:
    inset 0 1px rgba(255,255,255,.24),
    inset 0 -1px rgba(0,65,119,.14),
    0 5px 16px rgba(18,139,198,.10);
}
.telegram-brand svg { width: 25px; height: 25px; }

/* Geometry intentionally stays close to the reference: photo overlap + two-panel card. */
.result-stack {
  position: relative;
  padding-top: calc(var(--result-photo-size) - 22px);
  margin-top: 0;
}
.result-photo-wrap {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: var(--result-photo-size);
  height: var(--result-photo-size);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  border: 1.5px solid rgba(188,197,199,.29);
  background: #17191a;
  box-shadow:
    0 13px 34px rgba(0,0,0,.36),
    0 0 0 1px rgba(92,225,220,.025),
    0 0 18px rgba(64,224,216,.035);
}
.result-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #17191a;
  display: block;
}

.result-grid {
  position: relative;
  width: 94%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.result-panel {
  min-height: 165px;
  padding: 38px 16px 15px;
  border: 1px solid rgba(126, 242, 250, .11);
  background:
    radial-gradient(circle at 50% -14%, rgba(112,243,249,.065), transparent 37%),
    linear-gradient(180deg, rgba(35,37,40,.96) 0%, rgba(25,27,30,.985) 100%);
  box-shadow:
    0 16px 42px rgba(0,0,0,.34),
    0 0 12px rgba(109,247,253,.16),
    0 0 30px rgba(109,247,253,.18),
    0 0 62px rgba(109,247,253,.10),
    inset 0 1px rgba(255,255,255,.022);
}
.result-panel:first-child { border-radius: 13px 3px 13px 13px; }
.result-panel:last-child { border-radius: 3px 13px 13px 13px; }
.result-panel + .result-panel { border-left-color: rgba(118, 235, 246, .07); }
.result-title {
  color: #84fff9;
  font-family: "Roboto Condensed", "Arial Narrow", sans-serif;
  font-size: 19.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .05em;
  text-shadow:
    0 0 2px rgba(148,255,252,.98),
    0 0 6px rgba(111,255,248,.78),
    0 0 13px rgba(91,246,240,.44),
    0 0 24px rgba(91,246,240,.20);
}
.result-mainline {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  min-width: 0;
}
.result-number {
  flex: 0 0 auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28.8px, 7.49vw, 33.5px);
  font-weight: 680;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums lining-nums;
  color: #f6f7f7;
  text-shadow: none;
}
.result-number-int {
  font-size: clamp(27px, 7.07vw, 30.7px);
  font-weight: 680;
  letter-spacing: -.045em;
}
.result-dot {
  width: 6px;
  height: 6px;
  margin-left: 1px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow:
    0 0 4px 1px currentColor,
    0 0 10px 3px color-mix(in srgb, currentColor 72%, transparent),
    0 0 18px 5px color-mix(in srgb, currentColor 30%, transparent);
}
.result-rank {
  min-width: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(10px, 2.95vw, 12px);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  color: #e7eaea;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -.02em;
}
.score-track {
  position: relative;
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  background: #3d4044;
  overflow: hidden;
  width: 98%;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.36),
    inset 0 0 0 1px rgba(255,255,255,.025);
}
.score-fill {
  position: relative;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bar-color) 89%, white 11%) 0%,
    var(--bar-color) 65%,
    color-mix(in srgb, var(--bar-color) 92%, black 8%) 100%);
  box-shadow:
    0 0 5px color-mix(in srgb, var(--bar-color) 96%, transparent),
    0 0 12px color-mix(in srgb, var(--bar-color) 84%, transparent),
    0 0 24px color-mix(in srgb, var(--bar-color) 58%, transparent),
    0 0 40px color-mix(in srgb, var(--bar-color) 30%, transparent),
    0 9px 28px color-mix(in srgb, var(--bar-color) 36%, transparent),
    inset 0 1px rgba(255,255,255,.30);
  transition: width .66s cubic-bezier(.16,.78,.18,1);
}
.result-note {
  width: 94%;
  margin: 7px auto 0;
  color: #4b5052;
  font-size: 8.5px;
  text-align: right;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.result-actions {
  width: 94%;
  margin: 1px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}


/* Face breakdown */
.feature-section {
  width: 94%;
  margin: 18px auto 0;
  display: grid;
  gap: 11px;
}
.feature-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 2px;
}
.feature-kicker {
  color: #5ee9ed;
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
}
.feature-section-head h3 {
  margin: 5px 0 0;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.035em;
  color: #eff3f4;
}
.feature-section-head > span {
  color: #596165;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.feature-card {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 14px 13px 13px;
  border-radius: 16px;
  border: 1px solid rgba(111, 225, 234, .075);
  background:
    radial-gradient(circle at 18% 0%, rgba(81,224,235,.036), transparent 43%),
    linear-gradient(155deg, rgba(27,30,33,.97), rgba(19,21,24,.985));
  box-shadow:
    0 10px 25px rgba(0,0,0,.20),
    0 0 17px rgba(83,224,234,.028),
    inset 0 1px rgba(255,255,255,.018);
  overflow: hidden;
}
.feature-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.feature-title {
  color: #edf1f2;
  font-size: 11px;
  line-height: 1.05;
  font-weight: 760;
  letter-spacing: .01em;
}
.feature-en {
  margin-top: 4px;
  color: #667075;
  font-size: 7.5px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.feature-score {
  flex: 0 0 auto;
  color: #f4f6f7;
  font-size: 24px;
  line-height: .9;
  font-weight: 650;
  letter-spacing: -.055em;
  font-variant-numeric: tabular-nums lining-nums;
}
.feature-track {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: #34383b;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.38);
}
.feature-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--feature-color);
  box-shadow:
    0 0 5px color-mix(in srgb, var(--feature-color) 76%, transparent),
    0 0 10px color-mix(in srgb, var(--feature-color) 32%, transparent);
  transition: width .62s cubic-bezier(.16,.78,.18,1);
}
.result-footer {
  width: 94%;
  margin: 16px auto 0;
  padding-bottom: 10px;
}
.result-footer .result-note {
  width: 100%;
  margin: 0 0 7px;
}
.result-footer .result-actions {
  width: 100%;
  margin: 0;
}

/* Premium persistent bottom navigation */
.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(9px + var(--safe-bottom));
  width: min(calc(100% - 18px), 560px);
  min-height: 70px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% -65%, rgba(88,242,238,.075), transparent 48%),
    linear-gradient(180deg, rgba(26,28,29,.93), rgba(17,19,20,.96));
  border: 1px solid rgba(126, 241, 236, .105);
  box-shadow:
    0 18px 50px rgba(0,0,0,.52),
    0 0 22px rgba(61,229,221,.028),
    inset 0 1px rgba(255,255,255,.035);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  transition: opacity .22s ease, transform .22s ease;
}
.dock.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(125%);
}
.nav-item {
  position: relative;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  padding: 7px 4px 6px;
  background: transparent;
  color: #686f72;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  overflow: hidden;
  transition:
    color .18s ease,
    background .18s ease,
    transform .14s ease,
    box-shadow .18s ease;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scaleX(.55);
  box-shadow: 0 0 8px rgba(88,242,238,.65), 0 0 15px rgba(88,242,238,.22);
  transition: opacity .18s ease, transform .18s ease;
}
.nav-item:active { transform: scale(.965); }
.nav-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: currentColor;
  transition: color .18s ease, filter .18s ease, transform .18s ease;
}
.nav-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.015em;
  color: currentColor;
}
.nav-item.active {
  color: #eefdfc;
  background:
    radial-gradient(circle at 50% 20%, rgba(88,242,238,.11), transparent 62%),
    linear-gradient(180deg, rgba(88,242,238,.055), rgba(88,242,238,.018));
  box-shadow:
    inset 0 0 0 1px rgba(101,241,235,.055),
    inset 0 1px rgba(255,255,255,.025);
}
.nav-item.active::before {
  opacity: .95;
  transform: translateX(-50%) scaleX(1);
}
.nav-item.active .nav-icon {
  color: var(--accent);
  filter: drop-shadow(0 0 5px rgba(88,242,238,.38));
  transform: translateY(-1px);
}
.nav-item.active .nav-label { color: #f1f6f6; }

/* Keep content clear of the fixed navigation on every analysis sub-screen. */
.result-screen,
.analysis-step,
.analysis-loader {
  margin-bottom: 6px;
}

@media (max-width: 390px) {

  .feature-section { width: 95%; margin-top: 16px; }
  .feature-grid { gap: 7px; }
  .feature-card { min-height: 98px; padding: 13px 11px 12px; border-radius: 15px; }
  .feature-title { font-size: 10px; }
  .feature-en { font-size: 7px; }
  .feature-score { font-size: 22px; }
  .feature-track { left: 11px; right: 11px; bottom: 12px; }
  .result-footer { width: 95%; }

  .analysis-head { align-items: stretch; flex-direction: column; }
  .new-analysis-btn { width: 100%; }
  .instruction-card { grid-template-columns: minmax(0, 1fr) 96px; padding: 17px; }
  .capture-tile { width: 96px; }
  .instruction-copy h2 { font-size: 26px; }
  .result-brand { width: min(calc(100vw - 44px), 276px); grid-template-columns: 40px max-content 38px; gap: 10px; }
  .scan-brand, .scan-brand svg { width: 40px; height: 40px; }
  .telegram-brand { width: 38px; height: 38px; border-radius: 10px; }
  .telegram-brand svg { width: 23px; height: 23px; }
  .result-brand-name { font-size: 17.8px; }
  .result-title { font-size: 19.5px; letter-spacing: .045em; }
  .result-grid { width: 95%; gap: 6px; }
  .result-panel { min-height: 158px; padding: 34px 13px 14px; }
  .result-number { font-size: clamp(27px, 8.18vw, 31.6px); font-weight: 680; }
  .result-number-int { font-size: clamp(25.1px, 7.35vw, 28.8px); font-weight: 680; }
  .result-rank { font-size: clamp(9.8px, 3vw, 11px); }
  .score-track { margin-top: 15px; height: 9px; width: 98%; }
  .dock { width: calc(100% - 12px); bottom: calc(6px + var(--safe-bottom)); min-height: 66px; padding: 5px; border-radius: 21px; gap: 2px; }
  .nav-item { min-height: 56px; border-radius: 16px; padding-inline: 2px; }
  .nav-icon, .nav-icon svg { width: 22px; height: 22px; }
  .nav-label { font-size: 8.5px; }
}

@media (min-width: 600px) {
  .app-shell { padding-top: 32px; }
  .hero { min-height: 270px; padding: 29px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .result-screen { --result-photo-size: 174px; }
  .result-panel { min-height: 168px; padding: 40px 18px 16px; }
  .result-grid, .result-note, .result-actions, .feature-section, .result-footer { width: 92%; }
  .result-brand { width: min(100%, 320px); gap: 16px; }
}

/* v0.8.1 polish */
.topbar { justify-content: flex-start; }
.topbar-copy { min-width: 0; }

.content { will-change: transform, opacity; }
.content.page-slide-right { animation: pageSlideRight .24s cubic-bezier(.16,.8,.2,1); }
.content.page-slide-left { animation: pageSlideLeft .24s cubic-bezier(.16,.8,.2,1); }
@keyframes pageSlideRight {
  from { opacity: .55; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pageSlideLeft {
  from { opacity: .55; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

.analysis-head { justify-content: flex-end; }
.new-analysis-btn { min-width: 170px; }

.ambient {
  background:
    radial-gradient(ellipse 68% 28% at 50% 30%, rgba(76, 233, 246, .055) 0%, rgba(76, 233, 246, .018) 46%, transparent 74%),
    linear-gradient(180deg, #080a0c 0%, #06080a 50%, #040608 100%);
}

.result-screen::before {
  left: -36px;
  right: -36px;
  top: 180px;
  height: 340px;
  background:
    radial-gradient(ellipse 72% 60% at 50% 38%, rgba(76, 236, 246, .11) 0%, rgba(76,236,246,.050) 43%, transparent 78%),
    radial-gradient(ellipse 56% 44% at 50% 65%, rgba(36, 196, 208, .05) 0%, transparent 80%);
}

.result-brand { margin-bottom: 8px; }
.result-stack { padding-top: calc(var(--result-photo-size) - 16px); }
.result-grid { gap: 8px; }
.result-panel {
  border-color: rgba(124, 241, 248, .13);
  box-shadow:
    0 16px 36px rgba(0,0,0,.25),
    0 0 22px rgba(86, 236, 240, .06),
    inset 0 1px rgba(255,255,255,.028);
}
.score-track {
  height: 10px;
}
.score-fill {
  box-shadow:
    0 0 8px color-mix(in srgb, var(--bar-color) 96%, transparent),
    0 0 18px color-mix(in srgb, var(--bar-color) 84%, transparent),
    0 0 34px color-mix(in srgb, var(--bar-color) 58%, transparent),
    0 8px 24px color-mix(in srgb, var(--bar-color) 32%, transparent),
    inset 0 1px rgba(255,255,255,.34);
}

.section-head-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1px;
}
.section-head-simple h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -.035em;
  color: #f1f6f7;
  text-shadow: 0 0 18px rgba(98,242,245,.11);
}

.feature-section,
.info-section {
  width: 94%;
  margin: 16px auto 0;
  display: grid;
  gap: 10px;
}
.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.feature-card,
.info-card {
  position: relative;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid rgba(110, 238, 246, .095);
  background:
    radial-gradient(circle at 50% -6%, rgba(86, 236, 240, .078), transparent 42%),
    linear-gradient(155deg, rgba(28,31,34,.985), rgba(17,19,22,.99));
  box-shadow:
    0 14px 34px rgba(0,0,0,.24),
    0 0 24px rgba(80,233,236,.045),
    inset 0 0 0 1px rgba(255,255,255,.018),
    inset 0 1px rgba(255,255,255,.03);
  overflow: hidden;
}
.feature-card::after,
.info-card::after {
  content: "";
  position: absolute;
  inset: auto 10px 0 10px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(98,242,245,.16), transparent);
}
.feature-card {
  min-height: 110px;
  padding: 15px 14px 14px;
}
.feature-title {
  font-size: 11.5px;
  font-weight: 820;
  letter-spacing: .02em;
  color: #eef7f8;
}
.feature-score {
  font-size: 23px;
  font-weight: 760;
}
.feature-track {
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 6px;
  background: #35393d;
}
.feature-fill {
  box-shadow:
    0 0 7px color-mix(in srgb, var(--feature-color) 85%, transparent),
    0 0 15px color-mix(in srgb, var(--feature-color) 46%, transparent),
    0 0 28px color-mix(in srgb, var(--feature-color) 20%, transparent);
}

.info-card {
  min-height: 116px;
  padding: 14px 14px 15px;
}
.info-card-title {
  font-size: 11px;
  line-height: 1.05;
  font-weight: 820;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #67eff4;
  text-shadow: 0 0 16px rgba(103,239,244,.22);
}
.info-card-text {
  margin-top: 10px;
  color: #d4dadb;
  font-size: 11.5px;
  line-height: 1.42;
}
.metric-card .info-card-text { color: #bfc5c7; }
.plan-card .info-card-text { color: #dde3e4; }

.result-footer {
  width: 94%;
  margin: 18px auto 0;
  padding-bottom: 14px;
}
.result-actions { margin-top: 0; }

.nav-item {
  transition:
    color .18s ease,
    background .18s ease,
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .18s ease;
}
.nav-item.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(101,241,235,.055),
    inset 0 1px rgba(255,255,255,.025),
    0 8px 18px rgba(72,227,223,.05);
}
.nav-icon, .nav-label { transition: transform .18s ease, color .18s ease, filter .18s ease; }
.nav-item.active .nav-label { transform: translateY(-1px); }

@media (max-width: 390px) {
  .feature-section,
  .info-section,
  .result-footer { width: 95%; }
  .feature-grid,
  .info-grid { gap: 8px; }
  .feature-card { min-height: 102px; padding: 13px 12px 12px; border-radius: 16px; }
  .feature-title { font-size: 10.5px; }
  .feature-score { font-size: 21px; }
  .feature-track { left: 12px; right: 12px; bottom: 12px; }
  .info-card { min-height: 112px; padding: 13px 12px 14px; border-radius: 16px; }
  .info-card-title { font-size: 10px; }
  .info-card-text { font-size: 10.5px; line-height: 1.38; }
}

/* v0.8.2 — no horizontal scrolling + full-width info blocks + refined features */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
.app-shell,
.content,
.result-screen,
.analysis-home,
.analysis-step,
.analysis-loader {
  max-width: 100%;
  overflow-x: hidden;
}
.content {
  contain: layout paint;
}

/* Full-width metric and improvement blocks */
.info-grid {
  grid-template-columns: 1fr !important;
  gap: 9px;
}
.info-card {
  width: 100%;
  min-height: 0;
  padding: 15px 16px 16px;
  border-radius: 17px;
  border: 1px solid rgba(113, 235, 243, .09);
  background:
    linear-gradient(90deg, rgba(89,236,243,.045), transparent 18%),
    linear-gradient(155deg, rgba(26,29,32,.985), rgba(16,18,21,.99));
  box-shadow:
    0 12px 30px rgba(0,0,0,.22),
    0 0 18px rgba(80,231,236,.032),
    inset 0 1px rgba(255,255,255,.025);
}
.info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103,246,248,.85), rgba(103,246,248,.08));
  box-shadow: 0 0 9px rgba(103,246,248,.34);
}
.info-card-title {
  padding-left: 4px;
  font-size: 11.5px;
  letter-spacing: .055em;
}
.info-card-text {
  margin-top: 8px;
  padding-left: 4px;
  font-size: 12px;
  line-height: 1.48;
}

/* Details of appearance — redesigned as premium compact instruments */
.feature-grid {
  gap: 9px;
}
.feature-card {
  min-height: 118px;
  padding: 12px 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(116, 238, 246, .105);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--feature-color) 13%, transparent) 0%, transparent 42%),
    linear-gradient(160deg, rgba(29,32,35,.99), rgba(17,19,22,.995));
  box-shadow:
    0 14px 32px rgba(0,0,0,.24),
    0 0 15px rgba(88,237,241,.038),
    inset 0 1px rgba(255,255,255,.03),
    inset 0 0 24px rgba(77,229,235,.018);
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--feature-color) 52%, transparent), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--feature-color) 25%, transparent);
}
.feature-card::after {
  inset: auto 13px 0 13px;
  background: linear-gradient(90deg, transparent, rgba(98,242,245,.09), transparent);
}
.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 14px;
  margin-bottom: 8px;
}
.feature-index {
  color: rgba(128, 243, 246, .46);
  font-size: 8px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .12em;
}
.feature-orb {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--feature-color);
  box-shadow:
    0 0 6px color-mix(in srgb, var(--feature-color) 90%, transparent),
    0 0 13px color-mix(in srgb, var(--feature-color) 42%, transparent);
}
.feature-head {
  align-items: flex-end;
  gap: 8px;
}
.feature-title {
  max-width: 105px;
  color: #f2f7f8;
  font-size: 11px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: .018em;
}
.feature-score {
  color: #f7f9f9;
  font-size: 25px;
  line-height: .82;
  font-weight: 760;
  letter-spacing: -.06em;
  text-shadow: 0 0 16px color-mix(in srgb, var(--feature-color) 11%, transparent);
}
.feature-track {
  left: 13px;
  right: 13px;
  bottom: 14px;
  height: 6px;
  background: #303438;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.44),
    0 0 0 1px rgba(255,255,255,.012);
}
.feature-fill {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--feature-color) 89%, white 11%),
    var(--feature-color));
  box-shadow:
    0 0 6px color-mix(in srgb, var(--feature-color) 92%, transparent),
    0 0 14px color-mix(in srgb, var(--feature-color) 55%, transparent),
    0 0 26px color-mix(in srgb, var(--feature-color) 20%, transparent);
}

@media (max-width: 390px) {
  .feature-grid { gap: 8px; }
  .feature-card { min-height: 112px; padding: 11px 11px 13px; border-radius: 16px; }
  .feature-card-top { margin-bottom: 7px; }
  .feature-title { font-size: 10px; max-width: 96px; }
  .feature-score { font-size: 23px; }
  .feature-track { left: 11px; right: 11px; bottom: 12px; height: 5px; }
  .info-card { padding: 14px 14px 15px; border-radius: 16px; }
  .info-card-title { font-size: 10.5px; }
  .info-card-text { font-size: 11px; line-height: 1.45; }
}

/* v0.8.3 — analysis flow, scan stage, staged result reveal */

/* Analysis header */
.analysis-home .analysis-head { justify-content: flex-end; }

/* Profile skip */
.skip-profile {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(103, 239, 246, .16);
  background: rgba(80, 232, 240, .035);
  color: #aeb7b9;
  font-weight: 760;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.018);
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.skip-profile:active {
  transform: scale(.985);
  color: #eaf8f9;
  border-color: rgba(103,239,246,.30);
  background: rgba(80,232,240,.06);
}

/* Confirmation modal */
.analysis-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2,4,6,.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.analysis-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.analysis-modal {
  width: min(100%, 360px);
  border-radius: 24px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(105, 241, 247, .18);
  background:
    radial-gradient(circle at 50% 0%, rgba(83,234,242,.08), transparent 38%),
    linear-gradient(180deg, rgba(28,31,34,.995), rgba(14,16,19,.998));
  box-shadow:
    0 30px 80px rgba(0,0,0,.58),
    0 0 32px rgba(80,229,235,.08),
    inset 0 1px rgba(255,255,255,.035);
  transform: translateY(14px) scale(.97);
  transition: transform .2s cubic-bezier(.2,.85,.2,1);
  text-align: center;
}
.analysis-modal-backdrop.is-open .analysis-modal {
  transform: translateY(0) scale(1);
}
.modal-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(105,241,247,.18);
  background: rgba(83,234,242,.035);
  box-shadow: 0 0 24px rgba(82,231,237,.06), inset 0 0 18px rgba(82,231,237,.025);
}
.modal-icon span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  opacity: .9;
  filter: drop-shadow(0 0 5px rgba(98,242,245,.35));
}
.modal-icon span:nth-child(1) { left: 10px; top: 10px; border-left: 2px solid; border-top: 2px solid; border-radius: 4px 0 0 0; }
.modal-icon span:nth-child(2) { right: 10px; top: 10px; border-right: 2px solid; border-top: 2px solid; border-radius: 0 4px 0 0; }
.modal-icon span:nth-child(3) { left: 10px; bottom: 10px; border-left: 2px solid; border-bottom: 2px solid; border-radius: 0 0 0 4px; }
.modal-icon span:nth-child(4) { right: 10px; bottom: 10px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 4px 0; }
.modal-kicker {
  color: var(--accent);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.analysis-modal h3 {
  margin: 8px 0 8px;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.04em;
}
.analysis-modal p {
  margin: 0 auto;
  max-width: 290px;
  color: #9ea7aa;
  font-size: 12px;
  line-height: 1.52;
}
.modal-actions {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 8px;
  margin-top: 18px;
}
.modal-actions .primary,
.modal-actions .secondary {
  min-height: 48px;
  border-radius: 15px;
  padding-inline: 12px;
  font-size: 12px;
}

/* 5-second visual analysis stage */
.analysis-scan-stage {
  width: min(100%, 430px);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding-top: 4px;
  padding-bottom: 12px;
}
.scan-stage-brand {
  text-align: center;
  color: #f4f8f9;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
}
.analysis-photo-scan {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(102, 238, 247, .18);
  background: #0b0e10;
  box-shadow:
    0 22px 52px rgba(0,0,0,.36),
    0 0 26px rgba(79,229,237,.08),
    inset 0 0 0 1px rgba(255,255,255,.018);
}
.analysis-photo-scan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.88) contrast(1.04) brightness(.88);
}
.scan-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3,7,8,.20), transparent 28%, transparent 70%, rgba(2,6,8,.34)),
    radial-gradient(circle at 50% 50%, transparent 30%, rgba(4,9,11,.17) 100%);
  pointer-events: none;
}
.scan-mesh {
  position: absolute;
  inset: 8% 12% 7%;
  width: 76%;
  height: 85%;
  overflow: visible;
  filter: drop-shadow(0 0 3px rgba(98,242,245,.42));
}
.mesh-lines path {
  fill: none;
  stroke: rgba(103, 244, 246, .38);
  stroke-width: .42;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: meshDraw 1.15s ease forwards, meshPulse 2s ease-in-out 1.1s infinite alternate;
}
.mesh-b path { stroke: rgba(154, 252, 250, .52); animation-delay: .24s, 1.35s; }
.mesh-points circle {
  fill: rgba(126, 250, 248, .84);
  opacity: 0;
  animation: meshPointIn .5s ease forwards, meshPointPulse 1.5s ease-in-out .6s infinite alternate;
}
.mesh-points circle:nth-child(3n) { animation-delay: .18s, .8s; }
.mesh-points circle:nth-child(3n+1) { animation-delay: .32s, .95s; }
.mesh-points circle:nth-child(3n+2) { animation-delay: .46s, 1.1s; }
@keyframes meshDraw { to { stroke-dashoffset: 0; } }
@keyframes meshPulse { from { opacity: .55; } to { opacity: .95; } }
@keyframes meshPointIn { to { opacity: .86; } }
@keyframes meshPointPulse { to { opacity: .45; } }

.scan-sweep {
  position: absolute;
  left: 7%;
  right: 7%;
  height: 2px;
  top: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(125,250,248,.45) 10%, #78fbf7 50%, rgba(125,250,248,.45) 90%, transparent);
  box-shadow: 0 0 8px rgba(105,245,243,.72), 0 0 24px rgba(88,235,241,.34);
  animation: scanSweep 1.35s cubic-bezier(.33,.03,.36,.97) infinite alternate;
}
@keyframes scanSweep {
  from { top: 12%; opacity: .68; }
  to { top: 87%; opacity: 1; }
}
.scan-crosshair {
  position: absolute;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(111,246,246,.30);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(86,232,239,.10);
  animation: crosshairPulse 1.6s ease-in-out infinite alternate;
}
.scan-crosshair::before,
.scan-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(112,247,245,.38);
}
.scan-crosshair::before { width: 12px; height: 1px; left: 13px; top: 18px; }
.scan-crosshair::after { width: 1px; height: 12px; left: 18px; top: 13px; }
.scan-crosshair-a { left: 16%; top: 30%; }
.scan-crosshair-b { right: 14%; bottom: 24%; animation-delay: .45s; }
@keyframes crosshairPulse { to { transform: scale(1.12); opacity: .58; } }

.scan-corners i {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: rgba(118,248,246,.75);
  filter: drop-shadow(0 0 5px rgba(98,242,245,.28));
}
.scan-corners i:nth-child(1) { left: 12px; top: 12px; border-left: 2px solid; border-top: 2px solid; border-radius: 8px 0 0 0; }
.scan-corners i:nth-child(2) { right: 12px; top: 12px; border-right: 2px solid; border-top: 2px solid; border-radius: 0 8px 0 0; }
.scan-corners i:nth-child(3) { left: 12px; bottom: 12px; border-left: 2px solid; border-bottom: 2px solid; border-radius: 0 0 0 8px; }
.scan-corners i:nth-child(4) { right: 12px; bottom: 12px; border-right: 2px solid; border-bottom: 2px solid; border-radius: 0 0 8px 0; }

.scan-status-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 42px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(105, 238, 246, .11);
  background: linear-gradient(160deg, rgba(25,28,31,.985), rgba(15,17,20,.99));
  box-shadow: 0 12px 28px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.022);
}
.scan-status-label {
  color: var(--accent);
  font-size: 8px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .15em;
}
.scan-status-card h2 {
  margin: 6px 0 4px;
  font-size: 17px;
  line-height: 1.06;
  letter-spacing: -.035em;
  transition: opacity .11s ease, transform .11s ease;
}
.scan-status-card p {
  margin: 0;
  color: #7f898c;
  font-size: 10.5px;
  line-height: 1.35;
  transition: opacity .11s ease, transform .11s ease;
}
.phase-changing { opacity: 0 !important; transform: translateY(3px); }
.scan-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(102,240,245,.13);
  display: grid;
  place-items: center;
  background: rgba(78,229,236,.025);
}
.scan-spinner span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid rgba(105,241,246,.13);
  border-top-color: var(--accent);
  border-right-color: rgba(115,247,248,.55);
  box-shadow: 0 0 10px rgba(88,235,241,.12);
  animation: spinScan .72s linear infinite;
}
@keyframes spinScan { to { transform: rotate(360deg); } }
.scan-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #272c2f;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.45);
}
.scan-progress span {
  display: block;
  width: 3%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #43dfe7, #82fbf7);
  box-shadow: 0 0 8px rgba(92,240,242,.65), 0 0 18px rgba(86,230,237,.30);
}
.scan-step-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}
.scan-step-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #31383b;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.scan-step-dots i.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(98,242,245,.65);
  transform: scale(1.12);
}

/* Result staging */
.result-staged .feature-section.staged-section {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
}
.result-staged .feature-section.staged-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.result-staged .feature-card {
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}
.result-staged .feature-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.late-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.late-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Full-perimeter neon on feature cards */
.feature-card {
  border-color: color-mix(in srgb, var(--feature-color) 36%, rgba(128,238,245,.13));
  background: linear-gradient(160deg, rgba(28,31,34,.992), rgba(17,19,22,.997));
  box-shadow:
    0 14px 32px rgba(0,0,0,.24),
    0 0 8px color-mix(in srgb, var(--feature-color) 22%, transparent),
    0 0 18px color-mix(in srgb, var(--feature-color) 11%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--feature-color) 7%, transparent),
    inset 0 1px rgba(255,255,255,.03);
}
.feature-card::before {
  content: none !important;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--feature-color) 17%, transparent);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--feature-color) 5%, transparent);
}

/* Remove left accent rail from metric/plan cards */
.info-card {
  background: linear-gradient(155deg, rgba(25,28,31,.988), rgba(15,17,20,.995));
}
.info-card::before {
  content: none !important;
  display: none !important;
}
.info-card-title,
.info-card-text {
  padding-left: 0 !important;
}

@media (max-width: 390px) {
  .analysis-scan-stage { gap: 12px; }
  .analysis-photo-scan { border-radius: 20px; }
  .scan-stage-brand { font-size: 18px; }
  .scan-status-card { min-height: 78px; padding: 13px; border-radius: 16px; }
  .scan-status-card h2 { font-size: 15.5px; }
  .scan-status-card p { font-size: 10px; }
  .modal-actions { grid-template-columns: 1fr 1.1fr; }
}

/* v0.8.4 — real MediaPipe validation, optimized scan, edge neon */
html,
body,
.app-shell,
.content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}
body,
.app-shell,
.content {
  touch-action: pan-y pinch-zoom;
}
.content {
  contain: layout;
}

/* Less expensive fixed dock rendering on Telegram WebView. */
.dock {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background: linear-gradient(180deg, rgba(25,28,30,.985), rgba(14,16,18,.992));
  box-shadow:
    0 16px 36px rgba(0,0,0,.46),
    0 0 14px rgba(61,229,221,.025),
    inset 0 1px rgba(255,255,255,.035);
}

/* MediaPipe photo validation */
.face-validation {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 25px;
  margin-top: 13px;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.045);
  background: rgba(255,255,255,.018);
  color: #777f82;
  font-size: 9.5px;
  line-height: 1.25;
}
.face-validation-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #596064;
}
.face-validation.checking {
  color: #b8c1c3;
  border-color: rgba(98,242,245,.11);
}
.face-validation.checking .face-validation-dot {
  background: var(--accent);
  box-shadow: 0 0 7px rgba(98,242,245,.48);
  animation: validationPulse .8s ease-in-out infinite alternate;
}
.face-validation.valid {
  color: #baf7f5;
  border-color: rgba(98,242,245,.15);
  background: rgba(98,242,245,.035);
}
.face-validation.valid .face-validation-dot {
  background: #62f2f5;
  box-shadow: 0 0 8px rgba(98,242,245,.55);
}
.face-validation.error {
  color: #e6a3a3;
  border-color: rgba(255,76,76,.13);
  background: rgba(255,60,60,.025);
}
.face-validation.error .face-validation-dot {
  background: #ff5050;
  box-shadow: 0 0 7px rgba(255,70,70,.35);
}
@keyframes validationPulse { to { opacity: .35; transform: scale(.78); } }

.capture-tile.is-checking,
.capture-tile.is-valid,
.capture-tile.is-invalid {
  border-style: solid;
}
.capture-tile.is-checking { border-color: rgba(98,242,245,.24); }
.capture-tile.is-valid {
  border-color: rgba(98,242,245,.34);
  box-shadow: 0 0 14px rgba(98,242,245,.07);
}
.capture-tile.is-invalid { border-color: rgba(255,72,72,.24); }
.capture-check-spinner {
  position: absolute;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(98,242,245,.16);
  border-top-color: var(--accent);
  background: rgba(5,10,12,.52);
  box-shadow: 0 0 14px rgba(98,242,245,.10);
  animation: spinScan .7s linear infinite;
}
.capture-valid-mark {
  position: absolute;
  z-index: 4;
  right: 7px;
  top: 7px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #58efee;
  color: #061112;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(88,239,238,.28);
}

/* Real landmark canvas: no fake SVG mesh animation. */
.mediapipe-mesh-canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scan-photo-shade { z-index: 2; }
.scan-sweep { z-index: 4; will-change: top, opacity; }
.scan-corners { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.scan-data-badge {
  position: absolute;
  z-index: 6;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(105,242,246,.17);
  background: rgba(4,9,11,.72);
  color: #c6f8f7;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 0 0 12px rgba(75,229,236,.07);
}
.scan-data-badge span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(98,242,245,.56);
}
.scan-progress span {
  width: 100% !important;
  transform: scaleX(.03);
  transform-origin: left center;
  will-change: transform;
}
.analysis-photo-scan {
  box-shadow:
    0 20px 44px rgba(0,0,0,.34),
    0 0 18px rgba(79,229,237,.06),
    inset 0 0 0 1px rgba(255,255,255,.018);
}
.scan-status-card {
  box-shadow: 0 10px 22px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.022);
}

/* Continuous left/right glow from the main score area through appearance details. */
.result-focus-zone {
  position: relative;
  display: grid;
  gap: 6px;
  isolation: isolate;
}
.result-focus-zone::before,
.result-focus-zone::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 116px;
  bottom: -4px;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(98,242,245,.24) 14%,
    rgba(98,242,245,.31) 48%,
    rgba(98,242,245,.18) 82%,
    transparent 100%);
}
.result-focus-zone::before {
  left: 5px;
  box-shadow: 5px 0 13px rgba(98,242,245,.13), 10px 0 24px rgba(98,242,245,.055);
}
.result-focus-zone::after {
  right: 5px;
  box-shadow: -5px 0 13px rgba(98,242,245,.13), -10px 0 24px rgba(98,242,245,.055);
}
.result-panel {
  box-shadow:
    0 14px 30px rgba(0,0,0,.24),
    0 0 13px rgba(86,236,240,.055),
    inset 0 1px rgba(255,255,255,.028);
}

/* Details: full perimeter neon, no decorative bar at the top. */
.feature-card::before {
  content: none !important;
  display: none !important;
}
.feature-card::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 0 !important;
  border-radius: inherit;
  pointer-events: none;
  background: none !important;
  border: 1px solid color-mix(in srgb, var(--feature-color) 22%, transparent);
  box-shadow:
    inset 0 0 8px color-mix(in srgb, var(--feature-color) 5%, transparent),
    0 0 8px color-mix(in srgb, var(--feature-color) 8%, transparent);
}
.feature-card {
  box-shadow:
    0 12px 25px rgba(0,0,0,.22),
    0 0 10px color-mix(in srgb, var(--feature-color) 13%, transparent),
    inset 0 1px rgba(255,255,255,.025);
}

/* Metric description + plan: clean full turquoise outline, no left rail. */
.info-card {
  border: 1px solid rgba(98,242,245,.20) !important;
  background: linear-gradient(155deg, rgba(24,28,30,.992), rgba(14,17,19,.997)) !important;
  box-shadow:
    0 11px 24px rgba(0,0,0,.21),
    0 0 8px rgba(98,242,245,.075),
    0 0 17px rgba(98,242,245,.035),
    inset 0 0 9px rgba(98,242,245,.022),
    inset 0 1px rgba(255,255,255,.025) !important;
}
.info-card::before {
  content: none !important;
  display: none !important;
}
.info-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: none;
  border: 1px solid rgba(122,248,250,.055);
}

/* Reveal details by pairs: transparency 100% -> 0% (opacity 0 -> 1). */
.result-staged .feature-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .42s ease, transform .42s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.result-staged .feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.result-staged .feature-card.is-visible:nth-child(n) {
  will-change: auto;
}
.result-staged .feature-section.staged-section {
  transition: opacity .30s ease, transform .30s ease;
}
.late-reveal {
  transition: opacity .34s ease, transform .34s cubic-bezier(.2,.8,.2,1);
}

@media (max-width: 390px) {
  .result-focus-zone::before { left: 3px; }
  .result-focus-zone::after { right: 3px; }
  .face-validation { font-size: 9px; }
  .scan-data-badge { right: 10px; bottom: 10px; }
}


/* v0.8.5 edge neon + details cleanup + optimization */
.content,
.result-screen,
.result-focus-zone,
.feature-section,
.feature-grid,
.feature-card,
.info-card {
  overflow-x: clip;
}
.result-focus-zone {
  position: relative;
  gap: 8px;
  padding-inline: 8px;
  contain: layout paint;
}
.result-focus-zone::before,
.result-focus-zone::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -42px;
  bottom: -10px;
  width: 18px;
  pointer-events: none;
  opacity: .96;
  background-repeat: no-repeat;
}
.result-focus-zone::before {
  left: 0;
  background-image:
    linear-gradient(90deg, rgba(112,246,248,.92), rgba(112,246,248,.92)),
    linear-gradient(180deg, rgba(112,246,248,.96), rgba(112,246,248,.18) 18%, rgba(112,246,248,.28) 82%, rgba(112,246,248,.90)),
    linear-gradient(90deg, rgba(112,246,248,.92), rgba(112,246,248,.92)),
    linear-gradient(90deg, rgba(112,246,248,.92), rgba(112,246,248,.92));
  background-size: 12px 1px, 1px calc(100% - 18px), 12px 1px, 12px 1px;
  background-position: 0 0, 0 9px, 0 calc(100% - 1px), 0 9px;
  box-shadow: 5px 0 13px rgba(98,242,245,.15), 10px 0 26px rgba(98,242,245,.08);
}
.result-focus-zone::after {
  right: 0;
  background-image:
    linear-gradient(90deg, rgba(112,246,248,.92), rgba(112,246,248,.92)),
    linear-gradient(180deg, rgba(112,246,248,.96), rgba(112,246,248,.18) 18%, rgba(112,246,248,.28) 82%, rgba(112,246,248,.90)),
    linear-gradient(90deg, rgba(112,246,248,.92), rgba(112,246,248,.92)),
    linear-gradient(90deg, rgba(112,246,248,.92), rgba(112,246,248,.92));
  background-size: 12px 1px, 1px calc(100% - 18px), 12px 1px, 12px 1px;
  background-position: right 0 top 0, right 0 top 9px, right 0 bottom 0, right 0 top 9px;
  box-shadow: -5px 0 13px rgba(98,242,245,.15), -10px 0 26px rgba(98,242,245,.08);
}

.feature-section {
  width: 94%;
  margin-top: 10px;
}
.feature-section .section-head-simple {
  height: 14px;
  margin-bottom: 4px;
  position: relative;
}
.feature-section .section-head-simple h3 { display: none !important; }
.feature-section .section-head-simple::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(98,242,245,0), rgba(98,242,245,.16) 12%, rgba(98,242,245,.22) 50%, rgba(98,242,245,.16) 88%, rgba(98,242,245,0));
  box-shadow: 0 0 14px rgba(98,242,245,.08);
}
.feature-grid { gap: 10px; }
.feature-card {
  min-height: 110px;
  padding: 10px 13px 14px;
  border-radius: 17px;
  border: 1px solid color-mix(in srgb, var(--feature-color) 32%, rgba(118,238,246,.10));
  background:
    linear-gradient(160deg, rgba(26,29,32,.992), rgba(15,17,20,.998));
  box-shadow:
    0 10px 22px rgba(0,0,0,.20),
    0 0 10px color-mix(in srgb, var(--feature-color) 11%, transparent),
    0 0 22px color-mix(in srgb, var(--feature-color) 05%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.016);
  contain: layout paint;
}
.feature-card::before,
.feature-card::after {
  content: none !important;
  display: none !important;
}
.feature-orb {
  position: absolute;
  top: 12px;
  right: 13px;
  width: 5px;
  height: 5px;
}
.feature-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.feature-title {
  max-width: calc(100% - 18px);
  margin-top: 1px;
  color: #8afaff;
  font-size: 13px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow:
    0 0 2px rgba(138,250,255,.80),
    0 0 8px rgba(98,242,245,.44),
    0 0 16px rgba(98,242,245,.16);
}
.feature-score {
  font-size: 24px;
  font-weight: 770;
}
.feature-track {
  left: 13px;
  right: 13px;
  bottom: 12px;
  height: 6px;
  background: #2f3337;
}
.feature-fill {
  box-shadow:
    0 0 6px color-mix(in srgb, var(--feature-color) 86%, transparent),
    0 0 13px color-mix(in srgb, var(--feature-color) 42%, transparent);
}

.info-section { width: 94%; gap: 9px; }
.info-card {
  border: 1px solid rgba(98,242,245,.18) !important;
  box-shadow:
    0 10px 22px rgba(0,0,0,.20),
    0 0 9px rgba(98,242,245,.06),
    0 0 18px rgba(98,242,245,.03),
    inset 0 0 0 1px rgba(255,255,255,.014) !important;
  contain: layout paint;
}
.info-card::after { display: none !important; }

.mediapipe-mesh-canvas { contain: strict; }
.analysis-photo-scan, .scan-status-card { contain: layout paint; }
.scan-sweep { animation-duration: 1.8s; }
.scan-spinner { opacity: .92; }

.result-staged .feature-card {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .34s ease, transform .34s ease;
}
.result-staged .feature-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 390px) {
  .result-focus-zone { padding-inline: 6px; }
  .result-focus-zone::before { left: -1px; top: -38px; bottom: -8px; width: 16px; }
  .result-focus-zone::after { right: -1px; top: -38px; bottom: -8px; width: 16px; }
  .feature-card { min-height: 104px; padding: 9px 11px 13px; }
  .feature-title { font-size: 12px; }
  .feature-score { font-size: 22px; }
}


/* v0.8.6 — real continuous neon frame; remove v0.8.5 side-band artifact */
.result-focus-zone {
  position: relative;
  width: 100%;
  margin: -8px auto 0;
  padding: 22px 8px 14px;
  display: grid;
  gap: 6px;
  isolation: isolate;
  overflow: visible !important;
  contain: layout paint;
}
.result-focus-zone::before,
.result-focus-zone::after {
  content: none !important;
  display: none !important;
}
.focus-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.focus-frame path {
  fill: none;
  stroke: rgba(100, 242, 247, .40);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(98,242,245,.24));
}
.result-focus-zone > :not(.focus-frame) {
  position: relative;
  z-index: 1;
}
.result-focus-zone .result-brand {
  margin: 0 auto 8px;
}
.result-focus-zone .result-stack {
  margin-top: 0;
}
.feature-divider {
  width: 94%;
  height: 1px;
  margin: 16px auto 7px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(98,242,245,.16) 8%,
    rgba(98,242,245,.34) 50%,
    rgba(98,242,245,.16) 92%,
    transparent 100%);
  box-shadow: 0 0 8px rgba(98,242,245,.10);
}
.feature-section {
  width: 94%;
  margin: 0 auto;
  gap: 10px;
}
.feature-section .section-head-simple,
.feature-section .section-divider {
  display: none !important;
}
.feature-grid { gap: 10px; }
.feature-card {
  min-height: 108px;
  padding: 10px 13px 13px;
  border-radius: 17px;
  border: 1px solid rgba(98,242,245,.25) !important;
  background: linear-gradient(160deg, rgba(25,28,31,.994), rgba(15,17,20,.998)) !important;
  box-shadow:
    0 10px 22px rgba(0,0,0,.20),
    0 0 7px rgba(98,242,245,.075),
    inset 0 0 0 1px rgba(255,255,255,.012) !important;
  contain: layout paint;
}
.feature-card::before,
.feature-card::after {
  content: none !important;
  display: none !important;
}
.feature-orb {
  top: 12px;
  right: 13px;
}
.feature-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.feature-title {
  max-width: calc(100% - 20px);
  margin-top: 0;
  color: #87fbff;
  font-size: 13px;
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: .018em;
  text-transform: uppercase;
  text-shadow:
    0 0 2px rgba(135,251,255,.72),
    0 0 7px rgba(98,242,245,.34),
    0 0 13px rgba(98,242,245,.12);
}
.feature-score {
  font-size: 24px;
  font-weight: 760;
  line-height: .9;
  text-shadow: none;
}
.feature-track {
  left: 13px;
  right: 13px;
  bottom: 12px;
  height: 6px;
}
.feature-fill {
  box-shadow:
    0 0 5px color-mix(in srgb, var(--feature-color) 78%, transparent),
    0 0 10px color-mix(in srgb, var(--feature-color) 32%, transparent);
}
/* Keep glow cheap on Telegram WebView. */
.result-panel,
.info-card,
.feature-card {
  will-change: auto !important;
}
.result-screen::before {
  opacity: .72;
}
@media (max-width: 390px) {
  .result-focus-zone {
    width: 100%;
    margin-top: -6px;
    padding: 20px 6px 12px;
  }
  .focus-frame path { stroke-width: .9px; }
  .feature-divider { width: 95%; margin-top: 14px; }
  .feature-section { width: 95%; }
  .feature-card { min-height: 102px; padding: 9px 11px 12px; }
  .feature-title { font-size: 12px; }
  .feature-score { font-size: 22px; }
}


/* v0.8.7 — full analysis frame + softly beveled corners */
.result-focus-zone {
  width: 100%;
  margin: -8px auto 0;
  padding: 24px 8px 22px;
  gap: 8px;
  overflow: visible !important;
  contain: layout;
}
.focus-frame {
  inset: 0;
  overflow: visible;
}
.focus-frame path {
  stroke: rgba(106, 244, 248, .46);
  stroke-width: .95px;
  stroke-linejoin: round;
  stroke-linecap: round;
  filter: drop-shadow(0 0 3px rgba(98,242,245,.20));
}
.result-focus-zone .info-section {
  width: 94%;
  margin: 18px auto 0;
}
.result-focus-zone .result-footer {
  width: 94%;
  margin: 18px auto 0;
  padding-bottom: 0;
}
.result-focus-zone .result-actions {
  width: 100%;
  margin: 0;
}
.result-focus-zone .late-reveal {
  position: relative;
  z-index: 1;
}
@media (max-width: 390px) {
  .result-focus-zone {
    margin-top: -6px;
    padding: 22px 6px 18px;
  }
  .result-focus-zone .info-section,
  .result-focus-zone .result-footer {
    width: 95%;
  }
  .focus-frame path { stroke-width: .9px; }
}


/* v0.8.8 — fixed-pixel analysis frame; no stretched SVG corners */
.result-focus-zone {
  --frame-inset: 2px;
  --frame-cut: 9px;
  --frame-diagonal: 12.73px;
  --frame-thickness: 1px;
  --frame-color: rgba(106, 244, 248, .46);
  --frame-glow: rgba(98, 242, 245, .20);
  padding-top: 24px;
  padding-bottom: 22px;
  overflow: visible !important;
  contain: layout;
}

/* The frame is assembled from fixed-pixel segments. Its corners therefore
   stay identical regardless of how tall the analysis result becomes. */
.focus-frame {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.focus-frame path { display: none !important; }
.focus-frame .frame-edge {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  background: var(--frame-color);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 0 3px var(--frame-glow);
  transform-origin: center center;
  backface-visibility: hidden;
}
.focus-frame .frame-top,
.focus-frame .frame-bottom {
  left: calc(var(--frame-inset) + var(--frame-cut));
  right: calc(var(--frame-inset) + var(--frame-cut));
  height: var(--frame-thickness);
}
.focus-frame .frame-top { top: var(--frame-inset); }
.focus-frame .frame-bottom { bottom: var(--frame-inset); }
.focus-frame .frame-left,
.focus-frame .frame-right {
  top: calc(var(--frame-inset) + var(--frame-cut));
  bottom: calc(var(--frame-inset) + var(--frame-cut));
  width: var(--frame-thickness);
}
.focus-frame .frame-left { left: var(--frame-inset); }
.focus-frame .frame-right { right: var(--frame-inset); }

/* 9px bevels: almost sharp, only the 1px stroke itself is softly rounded. */
.focus-frame .frame-top-left,
.focus-frame .frame-top-right,
.focus-frame .frame-bottom-left,
.focus-frame .frame-bottom-right {
  width: var(--frame-diagonal);
  height: var(--frame-thickness);
}
.focus-frame .frame-top-left {
  left: calc(var(--frame-inset) - 1.865px);
  top: calc(var(--frame-inset) + 4px);
  transform: rotate(-45deg);
}
.focus-frame .frame-top-right {
  right: calc(var(--frame-inset) - 1.865px);
  top: calc(var(--frame-inset) + 4px);
  transform: rotate(45deg);
}
.focus-frame .frame-bottom-left {
  left: calc(var(--frame-inset) - 1.865px);
  bottom: calc(var(--frame-inset) + 4px);
  transform: rotate(45deg);
}
.focus-frame .frame-bottom-right {
  right: calc(var(--frame-inset) - 1.865px);
  bottom: calc(var(--frame-inset) + 4px);
  transform: rotate(-45deg);
}

/* Keep the top connector safely above the Telegram brand and the bottom
   connector safely below the action buttons. */
.result-focus-zone .result-brand { margin-top: 1px; }
.result-focus-zone .result-footer { margin-bottom: 1px; }

@media (max-width: 390px) {
  .result-focus-zone {
    --frame-inset: 2px;
    --frame-cut: 8px;
    --frame-diagonal: 11.31px;
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .focus-frame .frame-top-left,
  .focus-frame .frame-top-right { top: calc(var(--frame-inset) + 3.5px); }
  .focus-frame .frame-bottom-left,
  .focus-frame .frame-bottom-right { bottom: calc(var(--frame-inset) + 3.5px); }
  .focus-frame .frame-top-left,
  .focus-frame .frame-bottom-left { left: calc(var(--frame-inset) - 1.655px); }
  .focus-frame .frame-top-right,
  .focus-frame .frame-bottom-right { right: calc(var(--frame-inset) - 1.655px); }
}


/* v0.8.9 — aligned continuous frame with true rounded corners */
.result-focus-zone {
  --frame-radius: 20px;
  --frame-thickness: 1px;
  --frame-color: rgba(106, 244, 248, .46);
  --frame-glow: rgba(98, 242, 245, .18);
  width: 100%;
  margin: 0 auto;
  padding: 28px 10px 26px;
  gap: 8px;
  overflow: visible !important;
  contain: layout;
}

/* One real rounded rectangle. No SVG stretching and no diagonal/cut segments. */
.focus-frame {
  position: absolute;
  z-index: 0;
  top: 10px;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  box-sizing: border-box;
  border: var(--frame-thickness) solid var(--frame-color);
  border-radius: var(--frame-radius);
  background: transparent;
  box-shadow:
    0 0 4px var(--frame-glow),
    inset 0 0 4px rgba(98, 242, 245, .035);
  overflow: hidden;
  pointer-events: none;
}

/* Retire all fixed-pixel bevel pieces from v0.8.8. */
.focus-frame path,
.focus-frame .frame-edge {
  display: none !important;
}

/* Exact horizontal centering of scanner / title / Telegram cluster. */
.result-focus-zone .result-brand {
  grid-template-columns: 44px max-content 44px;
  margin: 0 auto 8px;
}
.result-focus-zone .telegram-brand {
  justify-self: center;
}
.result-focus-zone .scan-brand {
  justify-self: center;
}

/* Keep every major result block on the same horizontal axis. */
.result-focus-zone .result-grid,
.result-focus-zone .feature-divider,
.result-focus-zone .feature-section,
.result-focus-zone .info-section,
.result-focus-zone .result-footer {
  width: 94%;
  margin-left: auto;
  margin-right: auto;
}
.result-focus-zone .result-footer {
  margin-top: 18px;
  margin-bottom: 0;
}
.result-focus-zone .result-actions {
  width: 100%;
  margin: 0;
}

@media (max-width: 390px) {
  .result-focus-zone {
    --frame-radius: 18px;
    margin-top: 0;
    padding: 26px 8px 24px;
  }
  .focus-frame {
    top: 9px;
  }
  .result-focus-zone .result-grid,
  .result-focus-zone .feature-divider,
  .result-focus-zone .feature-section,
  .result-focus-zone .info-section,
  .result-focus-zone .result-footer {
    width: 95%;
  }
}

/* v0.9.0 — generated feature visuals + compact expandable result sections */
.feature-card.has-visual {
  min-height: 114px;
  padding-right: 66px;
}
.feature-card.has-visual .feature-orb {
  display: none;
}
.feature-visual {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  width: 50px;
  height: 50px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  opacity: .96;
  filter: drop-shadow(0 0 5px rgba(90,245,244,.20));
}
.feature-card.has-visual .feature-title {
  max-width: 100%;
}
.feature-card.has-visual .feature-head {
  min-width: 0;
}

/* Closed state mirrors the supplied compact cards; content expands below. */
.accordion-section {
  gap: 0 !important;
}
.result-accordion {
  width: 100%;
  border: 1px solid rgba(98,242,245,.22);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 20%, rgba(65,228,235,.06), transparent 25%),
    linear-gradient(155deg, rgba(23,29,32,.985), rgba(13,19,22,.995));
  box-shadow:
    0 10px 22px rgba(0,0,0,.20),
    0 0 8px rgba(98,242,245,.055),
    inset 0 1px rgba(255,255,255,.02);
  transition:
    border-color .34s ease,
    box-shadow .42s cubic-bezier(.22,1,.36,1);
}
.result-accordion-summary {
  width: 100%;
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 24px;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.result-accordion-summary:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.28);
}
.result-accordion-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #67f8f5;
  border: 1px solid rgba(98,242,245,.11);
  background: rgba(48,204,211,.075);
  box-shadow: inset 0 0 12px rgba(98,242,245,.035);
}
.result-accordion-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.result-accordion-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.result-accordion-copy strong {
  color: #eef3f4;
  font-size: 14px;
  line-height: 1.05;
  font-weight: 770;
  letter-spacing: -.015em;
}
.result-accordion-copy small {
  display: block;
  color: #7f949f;
  font-size: 10px;
  line-height: 1.25;
  white-space: normal;
}
.result-accordion-chevron {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #dfe6e8;
}
.result-accordion-chevron svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.result-accordion-chevron {
  transform-origin: 50% 50%;
  will-change: transform;
  transition: transform .46s cubic-bezier(.22,1,.36,1);
}
.result-accordion.is-open .result-accordion-chevron {
  transform: rotate(180deg);
}

/* Animate the real content height in both directions. No native <details>
   snap-open/snap-close: the page, frame and footer all move continuously. */
.result-accordion-reveal {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition:
    grid-template-rows .52s cubic-bezier(.22,1,.36,1),
    opacity .28s ease,
    visibility 0s linear .52s;
  will-change: grid-template-rows, opacity;
}
.result-accordion.is-open .result-accordion-reveal {
  grid-template-rows: 1fr;
  opacity: 1;
  visibility: visible;
  transition:
    grid-template-rows .52s cubic-bezier(.22,1,.36,1),
    opacity .34s ease .04s,
    visibility 0s linear 0s;
}
.result-accordion-body {
  min-height: 0;
  overflow: hidden;
}
.result-accordion-content {
  padding: 0 10px;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    padding .48s cubic-bezier(.22,1,.36,1),
    border-color .32s ease,
    opacity .26s ease,
    transform .48s cubic-bezier(.22,1,.36,1);
}
.result-accordion.is-open .result-accordion-content {
  padding: 2px 10px 10px;
  border-top-color: rgba(98,242,245,.075);
  opacity: 1;
  transform: translateY(0);
}
.result-accordion-body .info-grid {
  padding-top: 9px;
}
.result-accordion-body .info-card {
  border-radius: 14px;
}
.result-accordion.is-open {
  border-color: rgba(98,242,245,.30);
  box-shadow:
    0 12px 26px rgba(0,0,0,.24),
    0 0 10px rgba(98,242,245,.075),
    inset 0 1px rgba(255,255,255,.025);
}

@media (prefers-reduced-motion: reduce) {
  .result-accordion-reveal,
  .result-accordion-content,
  .result-accordion-chevron {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

@media (max-width: 390px) {
  .feature-card.has-visual {
    min-height: 108px;
    padding-right: 58px;
  }
  .feature-visual {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
  }
  .result-accordion-summary {
    min-height: 58px;
    grid-template-columns: 35px minmax(0,1fr) 22px;
    gap: 9px;
    padding: 8px 10px;
  }
  .result-accordion-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }
  .result-accordion-copy strong { font-size: 13px; }
  .result-accordion-copy small { font-size: 9px; }
}

/* v0.9.2 — use the analysis frame as the real outer gutter.
   All major result blocks now sit almost flush to the frame while keeping
   one consistent safe breathing gap. */
.result-focus-zone {
  --result-frame-gap: 6px;
  padding-left: var(--result-frame-gap);
  padding-right: var(--result-frame-gap);
}

.result-focus-zone .result-grid,
.result-focus-zone .feature-divider,
.result-focus-zone .feature-section,
.result-focus-zone .info-section,
.result-focus-zone .result-footer {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Keep the two-column cards roomy instead of spending width on empty gutters. */
.result-focus-zone .feature-grid {
  gap: 8px;
}

.result-focus-zone .result-grid {
  gap: 6px;
}

/* Footer actions follow the exact same edges as cards and accordions. */
.result-focus-zone .result-footer,
.result-focus-zone .result-actions {
  width: 100%;
}

@media (max-width: 390px) {
  .result-focus-zone {
    --result-frame-gap: 5px;
    padding-left: var(--result-frame-gap);
    padding-right: var(--result-frame-gap);
  }

  .result-focus-zone .result-grid,
  .result-focus-zone .feature-divider,
  .result-focus-zone .feature-section,
  .result-focus-zone .info-section,
  .result-focus-zone .result-footer {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .result-focus-zone .feature-grid {
    gap: 7px;
  }
}


/* v0.9.3 — faster result reveal + low-jank accordions + compact accordion stack */

/* Match the vertical distance between the two accordions to the feature-card
   grid gap (Hair / Angularity row). The first accordion keeps a small section
   break from the detail grid; the second sits directly beneath it. */
.result-focus-zone .accordion-section {
  margin-top: 12px;
}
.result-focus-zone .accordion-section + .accordion-section {
  margin-top: 8px;
}

/* JS drives one explicit pixel height measurement per toggle. This avoids the
   expensive intrinsic grid-template-rows 0fr -> 1fr interpolation. */
.result-accordion-reveal {
  display: block !important;
  height: 0;
  grid-template-rows: none !important;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  contain: layout style;
  transition:
    height .40s cubic-bezier(.22,.76,.25,1),
    opacity .22s ease,
    visibility 0s linear .40s;
  will-change: auto;
}
.result-accordion-reveal.is-animating {
  will-change: height, opacity;
}
.result-accordion.is-open .result-accordion-reveal {
  grid-template-rows: none !important;
  opacity: 1;
  visibility: visible;
  transition:
    height .40s cubic-bezier(.22,.76,.25,1),
    opacity .24s ease .02s,
    visibility 0s linear 0s;
}
.result-accordion-content {
  transform: translate3d(0,-4px,0);
  transition:
    padding .34s cubic-bezier(.22,.76,.25,1),
    border-color .24s ease,
    opacity .20s ease,
    transform .34s cubic-bezier(.22,.76,.25,1);
}
.result-accordion.is-open .result-accordion-content {
  transform: translate3d(0,0,0);
}
.result-accordion-chevron {
  transition: transform .34s cubic-bezier(.22,.76,.25,1);
}

/* The large info-card glows are visually almost identical at this strength but
   much cheaper to repaint while their parent height is animating. */
.result-accordion-body .info-card {
  box-shadow:
    0 7px 16px rgba(0,0,0,.16),
    0 0 7px rgba(98,242,245,.045),
    inset 0 0 0 1px rgba(255,255,255,.012) !important;
  contain: layout paint style;
}

/* Icons have been preloaded and decoded; never animate the icon itself later
   than its card. */
.feature-visual {
  opacity: .98;
  content-visibility: visible;
}

/* The cards still appear in pairs, only without the previous 1-2 second tail. */
.result-staged .feature-card {
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.8,.2,1);
}
.late-reveal {
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}

@media (prefers-reduced-motion: reduce) {
  .result-accordion-reveal {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Keep accordion inner geometry constant while the outer wrapper animates.
   This prevents scrollHeight from changing mid-animation and removes the tiny
   end-of-open jump that can happen when padding itself transitions. */
.result-accordion-content,
.result-accordion.is-open .result-accordion-content {
  padding: 2px 10px 10px !important;
}


/* v0.9.4 — Telegram fullscreen + premium profile */
html.telegram-fullscreen .app-shell {
  /* The safe top is synced from Telegram JS and includes native Close/Menu
     controls. Keep one small visual gap after the Telegram chrome. */
  padding-top: calc(8px + var(--safe-top));
  padding-left: calc(17px + var(--safe-left));
  padding-right: calc(17px + var(--safe-right));
}

.profile-page {
  display: grid;
  gap: 12px;
  width: 100%;
}

.profile-identity-card,
.profile-subscriptions {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(105, 241, 247, .16);
  background:
    radial-gradient(circle at 18% 0%, rgba(91, 241, 245, .075), transparent 38%),
    linear-gradient(155deg, rgba(27, 30, 33, .992), rgba(14, 17, 19, .998));
  box-shadow:
    0 15px 38px rgba(0, 0, 0, .28),
    0 0 22px rgba(76, 235, 240, .045),
    inset 0 1px rgba(255, 255, 255, .03);
}

.profile-identity-card {
  min-height: 112px;
  border-radius: 24px;
  padding: 17px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 14px;
}

.profile-identity-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -82px;
  top: -90px;
  border-radius: 50%;
  border: 22px solid rgba(91, 241, 245, .026);
  pointer-events: none;
}

.profile-avatar-shell {
  width: 72px;
  height: 72px;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(103, 248, 247, .72), rgba(103, 248, 247, .10) 52%, rgba(255,255,255,.08));
  box-shadow: 0 0 20px rgba(87, 239, 242, .11);
}

.profile-avatar-image,
.profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  display: grid;
  place-items: center;
  object-fit: cover;
  background: linear-gradient(145deg, #22272a, #101315);
  border: 1px solid rgba(255,255,255,.035);
}

.profile-avatar-fallback {
  color: var(--accent);
  font-size: 27px;
  font-weight: 850;
  text-shadow: 0 0 15px rgba(98,242,245,.28);
}

.profile-identity-copy { min-width: 0; }
.profile-nickname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f5f9f9;
  font-size: clamp(20px, 6vw, 27px);
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.045em;
}

.profile-sub-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  color: #7f898c;
  font-size: 11px;
  font-weight: 700;
}
.profile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #687174;
  box-shadow: 0 0 0 3px rgba(104,113,116,.08);
}
.profile-sub-status.is-active { color: #aafbf5; }
.profile-sub-status.is-active .profile-status-dot {
  background: var(--accent);
  box-shadow: 0 0 7px rgba(98,242,245,.72), 0 0 0 3px rgba(98,242,245,.09);
}

.profile-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #79f8f7;
  background: rgba(89, 239, 243, .055);
  border: 1px solid rgba(101, 243, 247, .11);
  box-shadow: inset 0 0 18px rgba(89,239,243,.035);
}
.profile-mark svg { width: 19px; height: 19px; }

.profile-subscriptions {
  border-radius: 26px;
  padding: 19px;
}

.profile-subscriptions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}
.profile-premium-kicker {
  color: var(--accent);
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 0 13px rgba(98,242,245,.20);
}
.profile-subscriptions h2 {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -.045em;
}
.profile-premium-orb {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #68f3f4;
  border: 1px solid rgba(102,243,247,.16);
  background:
    radial-gradient(circle at 50% 30%, rgba(96,246,248,.14), transparent 68%),
    rgba(77,231,236,.035);
  box-shadow: 0 0 25px rgba(80,234,239,.06), inset 0 1px rgba(255,255,255,.025);
}
.profile-premium-orb svg { width: 24px; height: 24px; filter: drop-shadow(0 0 5px rgba(98,242,245,.36)); }

.profile-plan-list { display: grid; gap: 8px; }
.profile-plan {
  width: 100%;
  min-height: 73px;
  border-radius: 18px;
  padding: 12px 13px 12px 15px;
  border: 1px solid rgba(120, 237, 245, .095);
  background: linear-gradient(155deg, rgba(28,31,34,.94), rgba(18,21,23,.985));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.018);
  transition: transform .15s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.profile-plan:active { transform: scale(.988); }
.profile-plan.is-selected {
  border-color: rgba(99, 243, 246, .43);
  background:
    radial-gradient(circle at 18% 50%, rgba(88,242,238,.095), transparent 44%),
    linear-gradient(155deg, rgba(27,35,37,.985), rgba(15,22,24,.995));
  box-shadow:
    0 0 18px rgba(82,234,239,.065),
    inset 0 0 0 1px rgba(98,242,245,.045),
    inset 0 1px rgba(255,255,255,.025);
}
.profile-plan-main { min-width: 0; display: grid; gap: 5px; }
.profile-plan-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-plan-title-row strong { color: #f4f8f8; font-size: 17px; line-height: 1; letter-spacing: -.025em; }
.profile-plan-caption { color: #717a7d; font-size: 10px; font-weight: 560; }
.profile-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 7px;
  color: #7ffcf8;
  background: rgba(90, 242, 239, .08);
  border: 1px solid rgba(102,243,247,.10);
  font-size: 7.5px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.profile-plan-price { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; }
.profile-plan-price b { color: #f5f8f8; font-size: 21px; line-height: 1; font-weight: 820; letter-spacing: -.045em; }
.profile-plan-star { width: 20px; height: 20px; color: #f4d64c; filter: drop-shadow(0 0 6px rgba(244,214,76,.28)); }
.profile-plan-star svg { width: 20px; height: 20px; display: block; }

.profile-subscribe-button {
  width: 100%;
  min-height: 56px;
  margin-top: 12px;
  padding: 0 18px;
  border: 0;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #061011;
  background: linear-gradient(100deg, #68f0f1, #78f8f5);
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 12px 28px rgba(91,240,241,.09), inset 0 1px rgba(255,255,255,.34);
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.profile-subscribe-button:active { transform: scale(.988); filter: brightness(.95); }
.profile-subscribe-button strong { font-size: 17px; }
.profile-cta-star { width: 18px; height: 18px; color: #182022; }
.profile-cta-star svg { width: 18px; height: 18px; display: block; }
.profile-subscribe-note {
  margin: 9px auto 0 !important;
  max-width: none !important;
  color: #5f686a !important;
  text-align: center;
  font-size: 9px !important;
  line-height: 1.35 !important;
}

@media (max-width: 390px) {
  .profile-identity-card { grid-template-columns: 64px minmax(0,1fr) 34px; gap: 12px; padding: 15px; min-height: 100px; }
  .profile-avatar-shell { width: 64px; height: 64px; border-radius: 20px; }
  .profile-avatar-image, .profile-avatar-fallback { border-radius: 18px; }
  .profile-mark { width: 34px; height: 34px; }
  .profile-subscriptions { padding: 16px; border-radius: 23px; }
  .profile-subscriptions h2 { font-size: 23px; }
  .profile-plan { min-height: 69px; border-radius: 16px; padding-left: 13px; }
  .profile-plan-title-row strong { font-size: 16px; }
  .profile-plan-price b { font-size: 20px; }
}

/* v0.9.5 — clean profile header, Telegram premium sticker and working nutrition */
.profile-identity-card {
  grid-template-columns: 72px minmax(0, 1fr) !important;
}
.profile-identity-card::after { display: none !important; }
.profile-mark { display: none !important; }

.premium-sticker {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
}
.premium-sticker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(98,242,245,.22));
}
.premium-sticker-fallback {
  display: none;
  color: var(--accent);
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 9px rgba(98,242,245,.42);
}
.premium-sticker.is-fallback img { display: none; }
.premium-sticker.is-fallback .premium-sticker-fallback { display: block; }
.premium-sticker-lg { width: 31px; height: 31px; }
.premium-sticker-price { width: 21px; height: 21px; }
.premium-sticker-cta { width: 19px; height: 19px; }
.profile-plan-star,
.profile-cta-star { display: none !important; }
.profile-premium-orb { overflow: hidden; }

.nutrition-page {
  width: 100%;
  display: grid;
  gap: 9px;
  padding-bottom: 8px;
}
.nutrition-hero,
.nutrition-macro-card,
.nutrition-water-card,
.nutrition-entry-panel,
.nutrition-log {
  border: 1px solid rgba(104, 241, 247, .15);
  background:
    radial-gradient(circle at 16% 0%, rgba(91,241,245,.065), transparent 36%),
    linear-gradient(155deg, rgba(27,30,33,.992), rgba(14,17,19,.998));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.24);
}
.nutrition-hero {
  border-radius: 25px;
  padding: 19px;
}
.nutrition-kicker {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-shadow: 0 0 12px rgba(98,242,245,.18);
}
.nutrition-hero-row {
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.nutrition-main-number {
  color: #f5f8f8;
  font-size: clamp(36px, 10vw, 48px);
  line-height: .9;
  font-weight: 840;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.nutrition-main-number small {
  color: #70797c;
  font-size: .37em;
  font-weight: 700;
  letter-spacing: -.02em;
}
.nutrition-main-caption {
  margin-top: 10px;
  color: #818a8d;
  font-size: 10px;
  font-weight: 650;
}
.nutrition-ring {
  --nutrition-pct: 0deg;
  width: 67px;
  height: 67px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, #171c1e 54%, transparent 56%),
    conic-gradient(var(--accent) var(--nutrition-pct), rgba(255,255,255,.065) 0deg);
  box-shadow: 0 0 20px rgba(98,242,245,.07), inset 0 0 0 1px rgba(255,255,255,.025);
}
.nutrition-ring span {
  color: #dffefe;
  font-size: 13px;
  font-weight: 800;
}
.nutrition-track {
  position: relative;
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.32);
}
.nutrition-track-main { margin-top: 18px; height: 8px; }
.nutrition-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #43dfe7, #82fbf7);
  box-shadow: 0 0 10px rgba(98,242,245,.35);
}
.nutrition-macros {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.nutrition-macro-card {
  min-width: 0;
  min-height: 87px;
  border-radius: 18px;
  padding: 13px 12px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}
.nutrition-macro-head { min-width: 0; display: grid; gap: 6px; }
.nutrition-macro-head > span {
  color: #8e999c;
  font-size: 9px;
  font-weight: 720;
}
.nutrition-macro-head b {
  color: #f3f7f7;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.nutrition-macro-head small {
  color: #687174;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0;
}
.nutrition-water-card {
  min-height: 94px;
  border-radius: 20px;
  padding: 15px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 64px;
  align-items: center;
  gap: 14px;
}
.nutrition-water-title {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nutrition-water-value {
  margin: 7px 0 10px;
  color: #f4f8f8;
  font-size: 21px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.04em;
}
.nutrition-water-value span { color: #717a7d; font-size: 10px; font-weight: 650; letter-spacing: 0; }
.nutrition-water-add {
  min-height: 49px;
  border-radius: 15px;
  border: 1px solid rgba(101,243,247,.16);
  background: rgba(91,241,245,.07);
  color: var(--accent);
  font-size: 15px;
  font-weight: 840;
  cursor: pointer;
}
.nutrition-water-add:active { transform: scale(.975); }
.nutrition-add-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(101,243,247,.24);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #061011;
  background: linear-gradient(100deg, #68f0f1, #78f8f5);
  font-weight: 840;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(91,240,241,.08), inset 0 1px rgba(255,255,255,.28);
}
.nutrition-add-button:active { transform: scale(.988); }
.nutrition-add-button.is-hidden { display: none; }
.nutrition-add-plus {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #061011;
  border: 1px solid rgba(6,16,17,.22);
  font-size: 19px;
  line-height: 1;
}
.nutrition-entry-panel {
  display: none;
  border-radius: 21px;
  padding: 16px;
}
.nutrition-entry-panel.is-open { display: block; animation: nutritionPanelIn .22s cubic-bezier(.2,.8,.2,1); }
@keyframes nutritionPanelIn { from { opacity: .2; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.nutrition-entry-title {
  color: #f4f8f8;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -.03em;
}
.nutrition-input-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.nutrition-input-grid label {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.055);
  display: grid;
  gap: 6px;
}
.nutrition-input-grid label span { color: #747d80; font-size: 8.5px; font-weight: 720; }
.nutrition-input-grid input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  color: #f4f8f8;
  font-size: 18px;
  font-weight: 780;
}
.nutrition-input-grid input::placeholder { color: #40474a; }
.nutrition-entry-actions { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nutrition-entry-actions .primary,
.nutrition-entry-actions .secondary { min-height: 46px; border-radius: 14px; }
.nutrition-log {
  border-radius: 21px;
  padding: 15px;
}
.nutrition-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}
.nutrition-log-head h3 { margin: 0; color: #eef4f4; font-size: 15px; letter-spacing: -.02em; }
.nutrition-log-head span { color: #60696c; font-size: 9px; }
.nutrition-log-list { display: grid; gap: 7px; }
.nutrition-log-row {
  min-height: 54px;
  border-radius: 14px;
  padding: 9px 9px 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255,255,255,.022);
  border: 1px solid rgba(255,255,255,.045);
}
.nutrition-log-row > div { min-width: 0; display: grid; gap: 4px; }
.nutrition-log-row strong { color: #edf4f4; font-size: 12px; }
.nutrition-log-row span { color: #737d7f; font-size: 8.5px; }
.nutrition-delete {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: #81898b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.nutrition-empty {
  padding: 18px 10px;
  color: #60696c;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 390px) {
  .profile-identity-card { grid-template-columns: 64px minmax(0,1fr) !important; }
  .premium-sticker-lg { width: 28px; height: 28px; }
  .nutrition-hero { padding: 17px; border-radius: 22px; }
  .nutrition-ring { width: 61px; height: 61px; }
  .nutrition-macro-card { min-height: 83px; padding: 12px 10px; }
  .nutrition-macro-head b { font-size: 16px; }
  .nutrition-macro-head small { font-size: 7px; }
}


/* v0.9.6 — fullscreen Telegram chrome clearance */
html.telegram-fullscreen .analysis-home {
  width: 100%;
}

html.telegram-fullscreen .analysis-home .analysis-head,
html.telegram-fullscreen .analysis-home .history-block {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

html.telegram-fullscreen .analysis-home .analysis-head {
  margin-bottom: 0;
}

html.telegram-fullscreen .analysis-home .new-analysis-btn {
  min-height: 54px;
  border-radius: 18px;
}

/* Fixed dock always has its own breathing room; history/result content never
   disappears behind it even on devices with a home indicator. */
html.telegram-fullscreen .app-shell {
  padding-bottom: calc(126px + var(--safe-bottom));
}

@media (max-width: 390px) {
  html.telegram-fullscreen .app-shell {
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }
  html.telegram-fullscreen .analysis-home { gap: 20px; }
}


/* v0.9.7 — richer Analysis home + reliable premium asset */
.premium-sticker-fallback { display: none !important; }
.premium-sticker img {
  transform: translateZ(0);
  backface-visibility: hidden;
}

.analysis-dashboard {
  gap: 15px !important;
}
.analysis-dashboard .analysis-head {
  display: block;
  width: 100%;
}
.analysis-launch-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(101, 242, 247, .19);
  border-radius: 25px;
  padding: 17px;
  background:
    radial-gradient(circle at 12% 0%, rgba(94, 245, 247, .115), transparent 36%),
    radial-gradient(circle at 94% 90%, rgba(70, 213, 226, .065), transparent 31%),
    linear-gradient(155deg, rgba(25, 30, 32, .995), rgba(11, 15, 17, .998));
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 16px 42px rgba(0,0,0,.28),
    0 0 24px rgba(80,235,240,.025);
  isolation: isolate;
}
.analysis-launch-card::before,
.analysis-launch-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.analysis-launch-card::before {
  width: 92px;
  height: 92px;
  right: -29px;
  top: -31px;
  border-radius: 50%;
  border: 1px solid rgba(98,242,245,.10);
  box-shadow: 0 0 0 17px rgba(98,242,245,.018), 0 0 0 35px rgba(98,242,245,.009);
}
.analysis-launch-card::after {
  left: 17px;
  right: 17px;
  top: 92px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(101,243,247,.13), transparent);
}
.analysis-launch-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .14;
  background-image:
    linear-gradient(rgba(92,240,244,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92,240,244,.08) 1px, transparent 1px);
  background-size: 27px 27px;
  mask-image: linear-gradient(110deg, rgba(0,0,0,.85), transparent 62%);
  -webkit-mask-image: linear-gradient(110deg, rgba(0,0,0,.85), transparent 62%);
}
.analysis-launch-top {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 62px;
}
.analysis-launch-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #73fbf8;
  border: 1px solid rgba(101,243,247,.18);
  background: rgba(79,231,236,.055);
  box-shadow: inset 0 0 22px rgba(82,235,240,.055), 0 0 18px rgba(82,235,240,.035);
}
.analysis-launch-icon svg { width: 35px; height: 35px; filter: drop-shadow(0 0 5px rgba(99,243,246,.20)); }
.analysis-launch-copy { min-width: 0; }
.analysis-launch-kicker {
  margin-bottom: 5px;
  color: #68f5f2;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: .19em;
}
.analysis-launch-copy h2 {
  margin: 0;
  color: #f6f8f8;
  font-size: clamp(19px, 5.5vw, 25px);
  line-height: 1;
  letter-spacing: -.045em;
}
.analysis-launch-copy p {
  margin: 6px 0 0;
  color: #727d80;
  font-size: 9.5px;
  line-height: 1.3;
}
.analysis-count-chip {
  min-width: 45px;
  height: 43px;
  padding: 5px 7px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(101,243,247,.10);
  background: rgba(255,255,255,.018);
}
.analysis-count-chip b { color: #eefafa; font-size: 15px; line-height: 1; }
.analysis-count-chip span { margin-top: 3px; color: #627073; font-size: 6.5px; text-transform: uppercase; letter-spacing: .06em; }
.analysis-last-strip {
  width: 100%;
  min-height: 58px;
  margin: 14px 0 9px;
  padding: 7px 9px 7px 7px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 17px;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--last-accent) 7%, transparent), transparent 34%),
    rgba(255,255,255,.018);
  cursor: pointer;
  transition: transform .15s ease, border-color .18s ease, background .18s ease;
}
.analysis-last-strip:active { transform: scale(.992); }
.analysis-last-strip img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--last-accent) 30%, transparent);
}
.analysis-last-copy { min-width: 0; display: grid; gap: 3px; }
.analysis-last-copy small,
.analysis-last-potential small { color: #687477; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.analysis-last-copy strong { display: flex; align-items: baseline; gap: 6px; font-size: 20px; line-height: 1; letter-spacing: -.04em; }
.analysis-last-copy i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--last-accent); font-size: 9px; font-style: normal; font-weight: 750; letter-spacing: 0; }
.analysis-last-potential { display: grid; justify-items: end; gap: 3px; }
.analysis-last-potential b { font-size: 19px; line-height: 1; letter-spacing: -.045em; }
.analysis-last-arrow { color: #66f3f1; font-size: 22px; line-height: 1; }
.analysis-first-hint {
  min-height: 35px;
  margin: 13px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d777a;
  font-size: 9px;
}
.analysis-first-hint span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(98,242,245,.6); }
.analysis-launch-button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 52px !important;
  border-radius: 17px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 19px !important;
  font-size: 14px;
  box-shadow: inset 0 1px rgba(255,255,255,.25), 0 11px 29px rgba(86,237,241,.09) !important;
}
.analysis-launch-button-icon {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(6,16,17,.10);
  font-size: 17px;
  line-height: 1;
}

.analysis-dashboard .history-block { gap: 9px; }
.analysis-dashboard .history-title { padding: 2px 3px 1px; }
.history-title-copy { display: grid; gap: 4px; }
.analysis-dashboard .history-title h3 {
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: none;
  color: #eff3f3;
}
.history-kicker { color: #5edfe2 !important; font-size: 6.5px !important; font-weight: 900; letter-spacing: .19em; }
.history-count-pill {
  min-width: 30px;
  height: 26px;
  padding: 0 8px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  color: #87f9f6 !important;
  background: rgba(91,238,242,.055);
  border: 1px solid rgba(101,243,247,.11);
  font-size: 10px !important;
  font-weight: 800;
}
.analysis-dashboard .history-list { gap: 8px; }
.analysis-dashboard .analysis-history-card {
  position: relative;
  min-height: 90px;
  border-radius: 19px;
  padding: 10px;
  grid-template-columns: 66px minmax(0,1fr);
  gap: 11px;
  overflow: hidden;
  border-color: rgba(118,237,248,.10);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--history-accent) 4%, transparent), transparent 27%),
    linear-gradient(145deg, rgba(29,32,34,.985), rgba(18,20,22,.995));
  box-shadow: inset 0 1px rgba(255,255,255,.023), 0 9px 25px rgba(0,0,0,.18);
  transition: transform .14s ease, border-color .18s ease;
}
.analysis-dashboard .analysis-history-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  bottom: 17px;
  width: 2px;
  border-radius: 0 999px 999px 0;
  background: var(--history-accent);
  box-shadow: 0 0 9px color-mix(in srgb, var(--history-accent) 60%, transparent);
  opacity: .9;
}
.analysis-dashboard .analysis-history-card:active { transform: scale(.992); }
.history-photo-shell { position: relative; width: 66px; height: 66px; }
.analysis-dashboard .history-photo { width: 66px; height: 66px; border-radius: 15px; border-color: color-mix(in srgb, var(--history-accent) 22%, rgba(255,255,255,.05)); }
.history-photo-index {
  position: absolute;
  left: 5px;
  bottom: 5px;
  min-width: 20px;
  height: 17px;
  padding: 0 5px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #eafafa;
  background: rgba(5,9,10,.72);
  border: 1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(5px);
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: .08em;
}
.analysis-dashboard .history-meta { margin-bottom: 9px; }
.history-date-wrap { min-width: 0; display: flex; align-items: center; gap: 7px; }
.analysis-dashboard .history-date { color: #8a9396; font-size: 9px; }
.history-rank {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--history-accent);
  font-size: 7.5px;
  font-weight: 800;
}
.analysis-dashboard .history-arrow { font-size: 22px; color: #64efef; opacity: .88; }
.analysis-dashboard .history-scores { gap: 11px; }
.analysis-dashboard .history-score { min-width: 0; display: grid; gap: 5px; }
.history-score-line { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.analysis-dashboard .history-score strong { font-size: 20px; }
.analysis-dashboard .history-score span { color: #737d80; font-size: 6.5px; letter-spacing: .07em; }
.history-mini-track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
}
.history-mini-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--history-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--history-accent) 45%, transparent);
}
.history-score-potential .history-mini-track i { background: var(--history-potential); box-shadow: 0 0 8px color-mix(in srgb, var(--history-potential) 45%, transparent); }
.analysis-dashboard .empty-history {
  min-height: 165px;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 14px;
  padding: 18px;
  place-items: center start;
  text-align: left;
  border-style: solid;
  border-color: rgba(103,242,247,.09);
  background: linear-gradient(145deg, rgba(25,28,30,.78), rgba(13,16,18,.88));
}
.empty-history-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #65f1ef;
  border-radius: 15px;
  border: 1px solid rgba(103,242,247,.13);
  background: rgba(87,235,240,.045);
}
.empty-history-icon svg { width: 33px; height: 33px; }
.analysis-dashboard .empty-history strong { color: #e8eeee; font-size: 13px; }
.analysis-dashboard .empty-history span { display: block; max-width: 230px; margin-top: 5px; color: #687275; font-size: 9px; line-height: 1.45; }

@media (max-width: 390px) {
  .analysis-launch-card { padding: 15px; border-radius: 22px; }
  .analysis-launch-top { grid-template-columns: 46px minmax(0,1fr) auto; gap: 9px; }
  .analysis-launch-icon { width: 46px; height: 46px; border-radius: 14px; }
  .analysis-launch-icon svg { width: 32px; height: 32px; }
  .analysis-launch-copy p { font-size: 8.5px; }
  .analysis-count-chip { min-width: 41px; height: 40px; }
  .analysis-last-strip { grid-template-columns: 41px minmax(0,1fr) auto 15px; gap: 7px; }
  .analysis-last-strip img { width: 41px; height: 41px; border-radius: 12px; }
  .analysis-last-copy strong { font-size: 18px; }
  .analysis-last-potential b { font-size: 17px; }
  .analysis-dashboard .analysis-history-card { grid-template-columns: 61px minmax(0,1fr); gap: 9px; }
  .history-photo-shell, .analysis-dashboard .history-photo { width: 61px; height: 61px; }
  .analysis-dashboard .history-score strong { font-size: 18px; }
}

/* v0.9.8 — cleaner Analysis home + compositor-first result rendering */

/* Analysis home: remove the old top-right counter/circle and tighten the stack. */
.analysis-dashboard {
  gap: 10px !important;
}
.analysis-launch-card::before {
  content: none !important;
  display: none !important;
}
.analysis-launch-card {
  padding: 15px 16px 14px;
  box-shadow:
    inset 0 1px rgba(255,255,255,.03),
    0 10px 26px rgba(0,0,0,.20) !important;
}
.analysis-launch-top {
  grid-template-columns: 48px minmax(0,1fr) !important;
  gap: 10px !important;
  min-height: 56px;
}
.analysis-launch-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  box-shadow: inset 0 0 16px rgba(82,235,240,.04) !important;
}
.analysis-launch-card::after {
  top: 82px;
}
.analysis-last-strip {
  margin: 10px 0 7px;
}
.analysis-launch-button {
  min-height: 50px !important;
  justify-content: center !important;
  padding: 0 16px !important;
  text-align: center;
  box-shadow:
    inset 0 1px rgba(255,255,255,.20),
    0 7px 18px rgba(86,237,241,.07) !important;
}
.analysis-launch-button-icon,
.analysis-count-chip,
.history-kicker {
  display: none !important;
}
.analysis-dashboard .history-block {
  gap: 7px;
}
.analysis-dashboard .history-title {
  padding: 0 3px 1px;
}
.history-title-copy {
  gap: 0;
}
.analysis-dashboard .history-title h3 {
  font-size: 16px;
}
.analysis-dashboard .history-list {
  gap: 7px;
}

/* Fixed blurred surfaces are expensive during iOS Telegram scrolling. In the
   long result screen use the same visual density without backdrop sampling. */
html.analysis-result-mode .dock {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  background:
    radial-gradient(circle at 50% -65%, rgba(88,242,238,.055), transparent 48%),
    linear-gradient(180deg, rgba(24,27,28,.985), rgba(15,18,19,.995));
  box-shadow:
    0 13px 34px rgba(0,0,0,.42),
    inset 0 1px rgba(255,255,255,.03);
}

/* Result progress: glass rail, subtle quarter markers and a clean luminous fill.
   No endpoint dot. The only animated property is transform (GPU/compositor). */
.score-track,
.feature-track {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.035);
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)),
    #252a2d !important;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.42),
    inset 0 0 0 1px rgba(255,255,255,.012) !important;
}
.score-track {
  height: 11px;
  margin-top: 15px;
}
.feature-track {
  height: 7px !important;
}
.score-track::before,
.feature-track::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: .20;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(230,255,255,.32) calc(25% - 1px),
    rgba(230,255,255,.32) 25%
  );
}
.score-track::after,
.feature-track::after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 2px;
  right: 2px;
  top: 1px;
  height: 1px;
  pointer-events: none;
  opacity: .34;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
}
.score-fill,
.feature-fill {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  backface-visibility: hidden;
  will-change: transform;
}
.score-fill {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--bar-color) 82%, white 18%),
    var(--bar-color) 58%,
    color-mix(in srgb, var(--bar-color) 90%, white 10%)
  ) !important;
  box-shadow:
    0 0 6px color-mix(in srgb, var(--bar-color) 60%, transparent),
    inset 0 1px rgba(255,255,255,.28) !important;
  transition: transform .48s cubic-bezier(.16,.78,.18,1) !important;
}
.feature-fill {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--feature-color) 84%, white 16%),
    var(--feature-color)
  ) !important;
  box-shadow:
    0 0 5px color-mix(in srgb, var(--feature-color) 52%, transparent) !important;
  transition: transform .44s cubic-bezier(.16,.78,.18,1) var(--bar-delay, 0ms) !important;
}

/* Keep the result reveal on the compositor. One class batch from JS supplies
   delays; no per-card timers and no width layout animation. */
.result-staged .feature-card {
  transition:
    opacity .24s ease var(--reveal-delay, 0ms),
    transform .24s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms) !important;
}
.result-staged .feature-card.is-visible {
  will-change: auto !important;
}
.late-reveal {
  transition:
    opacity .24s ease var(--reveal-delay, 0ms),
    transform .24s cubic-bezier(.2,.8,.2,1) var(--reveal-delay, 0ms) !important;
}

/* Cheaper paint on a long result page while preserving the neon hierarchy. */
.result-panel {
  box-shadow:
    0 10px 24px rgba(0,0,0,.28),
    0 0 12px rgba(109,247,253,.08),
    inset 0 1px rgba(255,255,255,.02) !important;
  contain: layout paint style;
}
.feature-card {
  box-shadow:
    0 7px 16px rgba(0,0,0,.17),
    0 0 7px color-mix(in srgb, var(--feature-color) 7%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.012) !important;
  contain: layout paint style;
}
.feature-visual {
  filter: none !important;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.result-focus-zone .accordion-section {
  contain: layout style;
}
.result-accordion:not(.is-open) .info-grid {
  content-visibility: hidden;
}
.result-accordion.is-open .info-grid {
  content-visibility: visible;
}
.result-focus-zone .result-footer {
  contain: layout paint style;
}

@media (max-width: 390px) {
  .analysis-dashboard { gap: 9px !important; }
  html.telegram-fullscreen .analysis-home { gap: 9px !important; }
  .analysis-launch-card { padding: 14px 15px 13px; }
  .analysis-launch-top { grid-template-columns: 44px minmax(0,1fr) !important; gap: 9px !important; }
  .analysis-launch-icon { width: 44px; height: 44px; }
  .analysis-launch-card::after { top: 77px; }
  .analysis-last-strip { margin-top: 9px; }
  .score-track { height: 10px; }
  .feature-track { height: 6px !important; }
}


/* v0.9.9 — Nutrition becomes a real ShizoLooks dashboard */
.nutrition-page {
  gap: 8px !important;
  contain: layout style;
}
.nutrition-goal-card,
.nutrition-weight-card,
.nutrition-recommend-card,
.nutrition-quick-card {
  border: 1px solid rgba(104,241,247,.13);
  background:
    radial-gradient(circle at 18% 0%, rgba(91,241,245,.055), transparent 34%),
    linear-gradient(155deg, rgba(25,29,31,.992), rgba(13,16,18,.998));
  box-shadow: inset 0 1px rgba(255,255,255,.022), 0 10px 26px rgba(0,0,0,.20);
}
.nutrition-goal-card { border-radius: 22px; padding: 15px; }
.nutrition-goal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nutrition-goal-top h2 { margin: 5px 0 0; font-size: 25px; line-height: 1; letter-spacing: -.045em; }
.nutrition-day-score { min-width: 82px; text-align: right; display: grid; grid-template-columns: auto auto; justify-content: end; align-items: baseline; column-gap: 2px; }
.nutrition-day-score small { grid-column: 1 / -1; margin-bottom: 4px; color: #737d80; font-size: 8px; font-weight: 700; }
.nutrition-day-score strong { color: var(--accent); font-size: 27px; line-height: .9; letter-spacing: -.05em; text-shadow: 0 0 14px rgba(98,242,245,.13); }
.nutrition-day-score span { color: #667073; font-size: 9px; font-weight: 700; }
.nutrition-goal-switch { margin-top: 13px; padding: 3px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3px; border-radius: 14px; background: rgba(255,255,255,.028); border: 1px solid rgba(255,255,255,.035); }
.nutrition-goal-switch button { min-width: 0; min-height: 37px; border: 0; border-radius: 11px; background: transparent; color: #6f797c; font-size: 9px; font-weight: 760; cursor: pointer; transition: transform .14s ease, background-color .14s ease, color .14s ease; }
.nutrition-goal-switch button.is-active { color: #061011; background: var(--accent); box-shadow: inset 0 1px rgba(255,255,255,.24); }
.nutrition-goal-switch button:active { transform: scale(.975); }
.nutrition-hero { padding: 16px 17px !important; border-radius: 22px !important; box-shadow: inset 0 1px rgba(255,255,255,.022), 0 10px 25px rgba(0,0,0,.19) !important; }
.nutrition-hero-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 8px; font-weight: 850; letter-spacing: .10em; }
.nutrition-streak { padding: 5px 7px; border-radius: 8px; color: #9aa5a7; letter-spacing: .02em; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.035); }
.nutrition-hero-row { margin-top: 14px !important; }
.nutrition-track i { width: 100% !important; transform-origin: left center; transform: scaleX(var(--nutrition-progress, 0)); will-change: transform; transition: transform .42s cubic-bezier(.2,.8,.2,1); }
.nutrition-macro-card { min-height: 82px !important; padding: 12px 10px !important; box-shadow: inset 0 1px rgba(255,255,255,.02), 0 7px 17px rgba(0,0,0,.15) !important; }
.nutrition-water-card { min-height: 86px !important; padding: 13px 14px !important; box-shadow: inset 0 1px rgba(255,255,255,.02), 0 8px 20px rgba(0,0,0,.16) !important; }
.nutrition-insights-row { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: 7px; }
.nutrition-weight-card,
.nutrition-recommend-card { min-width: 0; min-height: 170px; border-radius: 19px; padding: 13px; }
.nutrition-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nutrition-card-head > span { color: #e6eeee; font-size: 10px; font-weight: 800; }
.nutrition-card-head > small { color: #626c6f; font-size: 7.5px; font-weight: 700; }
.nutrition-weight-main { margin-top: 10px; display: flex; align-items: baseline; gap: 3px; }
.nutrition-weight-main strong { color: #f2f7f7; font-size: 27px; line-height: .9; letter-spacing: -.05em; }
.nutrition-weight-main > span { color: #687275; font-size: 9px; font-weight: 700; }
.nutrition-weight-main em { margin-left: auto; padding: 4px 6px; border-radius: 7px; color: #929c9e; background: rgba(255,255,255,.03); font-size: 8px; font-style: normal; font-weight: 780; }
.nutrition-weight-main em.is-up { color: #f5b75d; }
.nutrition-weight-main em.is-down { color: #69ebe5; }
.nutrition-weight-chart { display: block; width: 100%; height: 42px; margin: 7px 0 6px; overflow: visible; }
.nutrition-weight-axis { fill: none; stroke: rgba(255,255,255,.045); stroke-width: .7; vector-effect: non-scaling-stroke; }
.nutrition-weight-line { fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px rgba(98,242,245,.24)); }
.nutrition-weight-empty { min-height: 55px; margin: 8px 0 5px; display: grid; align-items: center; color: #596366; font-size: 7.8px; line-height: 1.35; }
.nutrition-weight-entry { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px; }
.nutrition-weight-entry input { width: 100%; min-width: 0; min-height: 33px; padding: 0 9px; border: 1px solid rgba(255,255,255,.05); border-radius: 10px; outline: 0; background: rgba(255,255,255,.025); color: #f0f5f5; font-size: 11px; font-weight: 720; }
.nutrition-weight-entry button { min-height: 33px; padding: 0 9px; border: 1px solid rgba(103,242,247,.12); border-radius: 10px; background: rgba(98,242,245,.07); color: var(--accent); font-size: 8px; font-weight: 800; cursor: pointer; }
.nutrition-recommend-card { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.nutrition-recommend-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -38px; bottom: -34px; border-radius: 50%; border: 15px solid rgba(98,242,245,.025); pointer-events: none; }
.nutrition-recommend-card > strong { margin-top: 24px; color: #edf4f4; font-size: 14px; line-height: 1.12; letter-spacing: -.025em; }
.nutrition-recommend-card > p { margin: 8px 0 0; color: #737d80; font-size: 8.4px; line-height: 1.48; }
.nutrition-recommend-card.is-accent { border-color: rgba(98,242,245,.22); }
.nutrition-recommend-card.is-good > strong { color: #9ff8d6; }
.nutrition-recommend-card.is-warn > strong { color: #f1bd72; }
.nutrition-quick-card { border-radius: 20px; padding: 13px; }
.nutrition-quick-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.nutrition-quick-grid button { min-width: 0; min-height: 66px; padding: 9px; display: grid; align-content: center; gap: 3px; text-align: left; border: 1px solid rgba(255,255,255,.045); border-radius: 13px; background: rgba(255,255,255,.021); color: #e7eeee; cursor: pointer; transition: transform .14s ease, border-color .14s ease, background-color .14s ease; }
.nutrition-quick-grid button:active { transform: scale(.975); border-color: rgba(98,242,245,.15); background: rgba(98,242,245,.035); }
.nutrition-quick-grid strong { overflow: hidden; text-overflow: ellipsis; color: #eaf0f0; font-size: 9px; white-space: nowrap; }
.nutrition-quick-grid span { overflow: hidden; text-overflow: ellipsis; color: #707a7d; font-size: 7px; white-space: nowrap; }
.nutrition-quick-grid small { color: var(--accent); font-size: 6.5px; font-weight: 760; }
.nutrition-add-button { min-height: 50px !important; border-radius: 16px !important; box-shadow: 0 7px 18px rgba(91,240,241,.06), inset 0 1px rgba(255,255,255,.25) !important; }
.nutrition-entry-panel,
.nutrition-log { box-shadow: inset 0 1px rgba(255,255,255,.02), 0 8px 22px rgba(0,0,0,.17) !important; }

@media (max-width: 390px) {
  .nutrition-goal-card { padding: 13px; }
  .nutrition-goal-top h2 { font-size: 22px; }
  .nutrition-day-score strong { font-size: 24px; }
  .nutrition-insights-row { grid-template-columns: 1fr; }
  .nutrition-weight-card, .nutrition-recommend-card { min-height: 0; }
  .nutrition-recommend-card > strong { margin-top: 16px; }
  .nutrition-quick-grid { gap: 5px; }
  .nutrition-quick-grid button { padding: 8px 7px; }
}


/* v0.10.0 — normalize Analysis typography, restore clean progress bars,
   and rebalance Nutrition for Telegram phone widths. */

/* Analysis home: slightly larger, more readable typography without inflating cards. */
.analysis-launch-kicker {
  font-size: 8.5px !important;
  letter-spacing: .17em;
}
.analysis-launch-copy h2 {
  font-size: clamp(22px, 6vw, 28px) !important;
  line-height: 1.02;
}
.analysis-launch-copy p {
  margin-top: 7px;
  font-size: 11.5px !important;
  line-height: 1.38;
  color: #808a8d;
}
.analysis-last-copy small,
.analysis-last-potential small {
  font-size: 8.5px !important;
  letter-spacing: .065em;
}
.analysis-last-copy strong { font-size: 21px !important; }
.analysis-last-copy i { font-size: 10px !important; }
.analysis-last-potential b { font-size: 20px !important; }
.analysis-launch-button { font-size: 15.5px !important; }
.analysis-dashboard .history-title h3 { font-size: 18px !important; }
.history-count-pill {
  min-width: 32px;
  height: 28px;
  font-size: 11.5px !important;
}
.analysis-dashboard .history-date { font-size: 10.5px !important; }
.history-rank { font-size: 9px !important; }
.analysis-dashboard .history-score strong { font-size: 21px !important; }
.analysis-dashboard .history-score span { font-size: 8.5px !important; }
.analysis-dashboard .analysis-history-card { min-height: 94px; }

/* Result progress bars: back to a simple, familiar rail + fill.
   We keep transform-based animation so scrolling/rendering stays compositor-friendly. */
.score-track,
.feature-track {
  isolation: auto !important;
  border: 0 !important;
  overflow: hidden;
  border-radius: 999px !important;
  background: #373b3e !important;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.38),
    inset 0 0 0 1px rgba(255,255,255,.025) !important;
}
.score-track {
  width: 98%;
  height: 10px !important;
  margin-top: 16px !important;
}
.feature-track { height: 6px !important; }
.score-track::before,
.score-track::after,
.feature-track::before,
.feature-track::after {
  content: none !important;
  display: none !important;
}
.score-fill,
.feature-fill {
  width: 100% !important;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: 0 50%;
  backface-visibility: hidden;
  will-change: transform;
}
.score-fill {
  background: var(--bar-color) !important;
  box-shadow:
    0 0 7px color-mix(in srgb, var(--bar-color) 55%, transparent),
    inset 0 1px rgba(255,255,255,.20) !important;
  transition: transform .62s cubic-bezier(.16,.78,.18,1) !important;
}
.feature-fill {
  background: var(--feature-color) !important;
  box-shadow: 0 0 5px color-mix(in srgb, var(--feature-color) 44%, transparent) !important;
  transition: transform .56s cubic-bezier(.16,.78,.18,1) var(--bar-delay, 0ms) !important;
}

/* Nutrition: one consistent size hierarchy. Tiny 6–9px labels are removed. */
.nutrition-page {
  gap: 10px !important;
  padding-bottom: 12px;
}
.nutrition-goal-card {
  border-radius: 21px;
  padding: 17px !important;
}
.nutrition-kicker { font-size: 10px !important; }
.nutrition-goal-top h2 {
  margin-top: 6px;
  font-size: 26px !important;
  line-height: 1.02;
}
.nutrition-day-score { min-width: 88px; }
.nutrition-day-score small {
  margin-bottom: 5px;
  font-size: 10px !important;
}
.nutrition-day-score strong { font-size: 30px !important; }
.nutrition-day-score span { font-size: 10.5px !important; }
.nutrition-goal-switch {
  margin-top: 15px;
  padding: 4px;
  gap: 4px;
  border-radius: 15px;
}
.nutrition-goal-switch button {
  min-height: 42px;
  border-radius: 11px;
  font-size: 11.5px !important;
  font-weight: 780;
}

.nutrition-hero {
  padding: 18px !important;
  border-radius: 21px !important;
}
.nutrition-hero-meta {
  font-size: 10px !important;
  letter-spacing: .075em;
}
.nutrition-streak {
  padding: 6px 8px;
  font-size: 9.5px;
}
.nutrition-hero-row { margin-top: 16px !important; }
.nutrition-main-number {
  font-size: clamp(38px, 10.5vw, 48px) !important;
}
.nutrition-main-number small { font-size: .40em; }
.nutrition-main-caption {
  margin-top: 9px;
  font-size: 11.5px !important;
}
.nutrition-ring {
  width: 70px;
  height: 70px;
}
.nutrition-ring span { font-size: 14px; }
.nutrition-track {
  height: 7px;
  background: #363b3d;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.32);
}
.nutrition-track-main {
  margin-top: 17px;
  height: 8px;
}
.nutrition-track i {
  background: var(--accent) !important;
  box-shadow: 0 0 7px rgba(98,242,245,.22) !important;
}

.nutrition-macros { gap: 8px; }
.nutrition-macro-card {
  min-height: 94px !important;
  padding: 14px 12px !important;
  border-radius: 17px;
  gap: 11px;
}
.nutrition-macro-head { gap: 7px; }
.nutrition-macro-head > span { font-size: 11.5px !important; }
.nutrition-macro-head b { font-size: 19px !important; }
.nutrition-macro-head small { font-size: 9.5px !important; }

.nutrition-water-card {
  min-height: 96px !important;
  padding: 15px 16px !important;
  border-radius: 19px;
  grid-template-columns: minmax(0,1fr) 68px;
}
.nutrition-water-title { font-size: 11.5px !important; }
.nutrition-water-value {
  margin: 7px 0 10px;
  font-size: 23px !important;
}
.nutrition-water-value span { font-size: 10.5px !important; }
.nutrition-water-add {
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
}

/* On phones the insight cards need full width; side-by-side forced tiny typography. */
.nutrition-insights-row {
  grid-template-columns: 1fr !important;
  gap: 9px;
}
.nutrition-weight-card,
.nutrition-recommend-card {
  min-height: 0 !important;
  border-radius: 19px;
  padding: 15px !important;
}
.nutrition-card-head > span { font-size: 13px !important; }
.nutrition-card-head > small { font-size: 9.5px !important; }
.nutrition-weight-main { margin-top: 12px; }
.nutrition-weight-main strong { font-size: 31px !important; }
.nutrition-weight-main > span { font-size: 10.5px !important; }
.nutrition-weight-main em {
  padding: 5px 7px;
  font-size: 9.5px !important;
}
.nutrition-weight-chart {
  height: 55px;
  margin: 10px 0 8px;
}
.nutrition-weight-empty {
  min-height: 58px;
  margin: 10px 0 8px;
  font-size: 10.5px !important;
  line-height: 1.45;
}
.nutrition-weight-entry { gap: 7px; }
.nutrition-weight-entry input {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 11px;
  font-size: 13px !important;
}
.nutrition-weight-entry button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 10.5px !important;
}
.nutrition-recommend-card > strong {
  margin-top: 16px !important;
  font-size: 17px !important;
  line-height: 1.18;
}
.nutrition-recommend-card > p {
  margin-top: 9px;
  max-width: 420px;
  font-size: 11.5px !important;
  line-height: 1.5;
}

.nutrition-quick-card {
  border-radius: 19px;
  padding: 15px !important;
}
.nutrition-quick-grid {
  margin-top: 11px;
  gap: 7px;
}
.nutrition-quick-grid button {
  min-height: 76px;
  padding: 10px;
  border-radius: 13px;
  gap: 4px;
}
.nutrition-quick-grid strong { font-size: 11.5px !important; }
.nutrition-quick-grid span { font-size: 9.5px !important; }
.nutrition-quick-grid small { font-size: 8.5px !important; }
.nutrition-add-button {
  min-height: 53px !important;
  border-radius: 16px !important;
  font-size: 14.5px;
}

.nutrition-entry-panel,
.nutrition-log {
  border-radius: 19px;
  padding: 16px !important;
}
.nutrition-entry-title { font-size: 18px; }
.nutrition-input-grid label span { font-size: 10px !important; }
.nutrition-input-grid input { font-size: 19px; }
.nutrition-entry-actions .primary,
.nutrition-entry-actions .secondary { font-size: 13px; }
.nutrition-log-head h3 { font-size: 17px !important; }
.nutrition-log-head span { font-size: 10px !important; }
.nutrition-log-row {
  min-height: 60px;
  padding: 10px 10px 10px 13px;
}
.nutrition-log-row strong { font-size: 13px !important; }
.nutrition-log-row span { font-size: 10px !important; }
.nutrition-empty { font-size: 11.5px !important; }

@media (max-width: 390px) {
  .analysis-launch-copy h2 { font-size: 22px !important; }
  .analysis-launch-copy p { font-size: 11px !important; }
  .analysis-last-copy strong { font-size: 20px !important; }
  .analysis-dashboard .history-title h3 { font-size: 17.5px !important; }

  .nutrition-goal-card { padding: 15px !important; }
  .nutrition-goal-top h2 { font-size: 24px !important; }
  .nutrition-day-score strong { font-size: 28px !important; }
  .nutrition-goal-switch button { min-height: 40px; font-size: 11px !important; }
  .nutrition-hero { padding: 16px !important; }
  .nutrition-main-number { font-size: 38px !important; }
  .nutrition-ring { width: 66px; height: 66px; }
  .nutrition-macro-card { min-height: 90px !important; padding: 13px 10px !important; }
  .nutrition-macro-head > span { font-size: 11px !important; }
  .nutrition-macro-head b { font-size: 18px !important; }
  .nutrition-macro-head small { font-size: 9px !important; }
  .nutrition-quick-grid { gap: 6px; }
  .nutrition-quick-grid button { min-height: 72px; padding: 9px 8px; }
  .nutrition-quick-grid strong { font-size: 11px !important; }
  .nutrition-quick-grid span { font-size: 9px !important; }
  .nutrition-quick-grid small { font-size: 8px !important; }
}

/* Onboarding */
html.onboarding-mode body { overflow-x: hidden; }
.onboarding-mode .app-shell {
  width: min(100%, 760px);
  padding: calc(24px + var(--safe-top)) 18px calc(32px + var(--safe-bottom));
}
.onboarding-screen {
  position: relative;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 56px);
  display: grid;
  align-items: stretch;
}
.onboarding-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  min-height: 100%;
  padding: 24px 18px 18px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.06), transparent 36%),
    radial-gradient(circle at 10% 14%, rgba(114,123,134,.12), transparent 26%),
    radial-gradient(circle at 90% 12%, rgba(114,123,134,.12), transparent 28%),
    linear-gradient(180deg, #1f2125 0%, #131518 44%, #0b0d10 100%);
  box-shadow: 0 26px 60px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.04);
}
.onboarding-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(255,255,255,.02) 50%, transparent 100%),
    radial-gradient(ellipse 50% 26% at 50% 14%, rgba(237,241,246,.08) 0%, rgba(237,241,246,.03) 42%, transparent 70%);
}
.onboarding-shell.compact { min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 86px); justify-content: center; }
.onboarding-brand {
  position: relative;
  z-index: 2;
  text-align: center;
  font-family: 'Roboto Condensed', Inter, sans-serif;
  font-size: 11px;
  letter-spacing: .34em;
  color: rgba(236,239,244,.8);
  text-transform: uppercase;
}
.onboarding-brand-sub {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  text-align: center;
  color: rgba(170,176,182,.72);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.onboarding-copy {
  position: relative;
  z-index: 2;
  margin: 22px auto 0;
  max-width: 540px;
  text-align: center;
}
.onboarding-copy h2 {
  margin: 0;
  font-size: clamp(31px, 9vw, 42px);
  line-height: .98;
  letter-spacing: -.05em;
}
.onboarding-copy h2 span {
  color: #eef1f4;
  text-shadow: 0 0 18px rgba(255,255,255,.08);
}
.onboarding-copy p {
  margin: 13px auto 0;
  max-width: 500px;
  color: rgba(198,203,208,.8);
  font-size: 14px;
  line-height: 1.58;
}
.start-choice-portrait {
  position: relative;
  margin: 24px auto 0;
  width: min(100%, 340px);
  aspect-ratio: 1 / 1.08;
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 18%),
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.12), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,.05), transparent 38%),
    linear-gradient(180deg, #292c31 0%, #17191d 55%, #0d0f12 100%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 14px 40px rgba(0,0,0,.28);
}
.start-choice-portrait::before,
.start-choice-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: grayscale(1) saturate(.1) contrast(1.08) brightness(.96);
  mix-blend-mode: screen;
}
.start-choice-portrait::before {
  clip-path: polygon(0 0, 52% 0, 48% 100%, 0 100%);
  background-image: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.02)), url('/static/assets/onboarding/male-front.jpg');
}
.start-choice-portrait::after {
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 48% 100%);
  background-image: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.02)), url('/static/assets/onboarding/female-front.jpg');
}
.start-choice-scan,
.start-choice-scan.secondary {
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  border: 1px solid rgba(210,216,223,.14);
  pointer-events: none;
}
.start-choice-scan::before,
.start-choice-scan.secondary::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  height: 1px;
  top: 28%;
  background: linear-gradient(90deg, transparent, rgba(244,248,250,.85), transparent);
  box-shadow: 0 0 18px rgba(255,255,255,.24);
}
.start-choice-scan.secondary { inset: auto 36px 34px 36px; height: 32%; }
.start-choice-scan.secondary::before { top: 58%; left: 8%; right: 8%; }
.start-choice-copy { margin-top: 20px; }
.onboarding-actions {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.onboarding-actions.split { grid-template-columns: 1fr 1fr; }
.onboarding-actions.stacked { max-width: 420px; margin-inline: auto; }
.onboarding-note,
.onboarding-hint {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  text-align: center;
  color: rgba(170,176,182,.72);
  font-size: 11.5px;
  line-height: 1.5;
}
.hero-portraits {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.hero-face {
  position: relative;
  min-height: 254px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.075);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) saturate(.18) contrast(1.03) brightness(.98);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 18px 44px rgba(0,0,0,.26);
}
.hero-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 18%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.10) 68%, rgba(0,0,0,.34) 100%),
    radial-gradient(circle at 50% 14%, rgba(255,255,255,.12), transparent 33%);
}
.hero-face.male-front { background-image: url('/static/assets/onboarding/male-front.jpg'); }
.hero-face.female-front { background-image: url('/static/assets/onboarding/female-front.jpg'); }
.hero-copy { margin-top: 18px; }
.profile-mesh-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}
.mesh-card {
  position: relative;
  min-height: 190px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.07);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1) saturate(.1) contrast(1.08) brightness(.93);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 16px 34px rgba(0,0,0,.22);
}
.mesh-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(0,0,0,.22) 100%);
}
.mesh-card.female-profile { background-image: url('/static/assets/onboarding/female-profile.jpg'); }
.mesh-card.male-profile { background-image: url('/static/assets/onboarding/male-profile.jpg'); }
.mesh-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.mesh-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(248,250,252,.94);
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 0 12px rgba(255,255,255,.18);
}
.mesh-divider {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(185,191,198,.72);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.mesh-divider span {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.32), transparent);
}
.mesh-divider small {
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}
.journey-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.journey-card {
  min-height: 148px;
  padding: 16px 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  text-align: left;
  display: grid;
  align-content: start;
  gap: 12px;
}
.journey-card.active {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 16px 30px rgba(0,0,0,.18);
}
.journey-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.journey-icon svg { width: 22px; height: 22px; stroke: rgba(249,251,252,.95); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.journey-card strong { font-size: 16px; line-height: 1.15; }
.journey-card small { color: rgba(188,194,198,.76); font-size: 11px; line-height: 1.45; }
.fact-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  margin-top: 22px;
  padding: 15px 15px 15px 13px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}
.fact-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-weight: 800;
}
.fact-card p { margin: 0; color: rgba(200,205,210,.84); font-size: 12.5px; line-height: 1.58; }
.fact-card strong { color: #fff; }
.mini-form-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.mini-field {
  display: grid;
  gap: 8px;
  padding: 13px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}
.mini-field span { color: rgba(195,201,206,.78); font-size: 11px; }
.mini-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.mini-field input::placeholder { color: rgba(255,255,255,.2); }
.goal-section {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}
.goal-section h3 { margin: 0 0 12px; font-size: 18px; letter-spacing: -.03em; }
.goal-choice-grid {
  display: grid;
  gap: 10px;
}
.goal-chip {
  width: 100%;
  text-align: left;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  display: grid;
  gap: 4px;
}
.goal-chip.active {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.035));
}
.goal-chip strong { font-size: 15px; }
.goal-chip small { color: rgba(189,194,199,.76); font-size: 11.5px; }
.form-shell .onboarding-actions { margin-top: 20px; }
@media (max-width: 520px) {
  .onboarding-shell { padding: 22px 16px 16px; border-radius: 30px; }
  .hero-face { min-height: 218px; border-radius: 24px; }
  .mesh-card { min-height: 158px; }
  .journey-card { min-height: 134px; }
}
@media (max-width: 420px) {
  .onboarding-copy h2 { font-size: 30px; }
  .onboarding-copy p { font-size: 13px; }
  .profile-mesh-row { grid-template-columns: 1fr; }
  .mesh-divider { order: 2; grid-template-columns: 44px auto 44px; align-items: center; }
  .mesh-divider span { width: 44px; height: 1px; }
  .journey-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .journey-card { padding: 14px 12px; }
  .mini-form-grid { grid-template-columns: 1fr; }
  .onboarding-actions.split { grid-template-columns: 1fr; }
  .start-choice-portrait { width: min(100%, 300px); }
}

/* v0.10.2 onboarding static refinements */
.onboarding-mode,
.onboarding-mode body,
.onboarding-mode .app-shell,
.onboarding-mode .content {
  overflow: hidden;
}
.onboarding-mode .app-shell {
  padding: calc(18px + var(--safe-top)) 14px calc(18px + var(--safe-bottom));
}
.onboarding-mode .content {
  display: block;
}
.onboarding-screen {
  height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 36px);
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 36px);
}
.static-onboarding-shell {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  padding: 18px 16px 16px;
  border-radius: 30px;
}
.compact-copy {
  margin-top: 16px;
}
.compact-copy h2 {
  font-size: clamp(28px, 8vw, 38px);
}
.compact-copy p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.onboarding-hero-portraits {
  margin-top: 16px;
  gap: 10px;
}
.onboarding-hero-portraits .hero-face {
  min-height: 238px;
  border-radius: 24px;
}
.animated-scan-face::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  opacity: .9;
}
.animated-scan-face::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  box-shadow: 0 0 14px rgba(255,255,255,.18);
  animation: onboardingScan 2.4s ease-in-out infinite alternate;
}
@keyframes onboardingScan {
  from { transform: translateY(0); opacity: .75; }
  to { transform: translateY(138px); opacity: 1; }
}
.onboarding-static-spacer {
  flex: 1 1 auto;
  min-height: 10px;
}
.pinned-actions {
  margin-top: 14px;
}
.single-action { grid-template-columns: 1fr; }
.compact-journey-grid {
  margin-top: 18px;
  gap: 10px;
}
.compact-journey-grid .journey-card {
  min-height: 126px;
  padding: 14px 12px;
  gap: 10px;
  transition: transform .16s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.compact-journey-grid .journey-card strong { font-size: 15px; }
.compact-journey-grid .journey-card small { font-size: 10.5px; }
.compact-journey-grid .journey-card.tap-pop,
.goal-chip.tap-pop {
  animation: tapPop .28s ease;
}
@keyframes tapPop {
  0% { transform: scale(1); }
  45% { transform: scale(.96); }
  100% { transform: scale(1.02); }
}
.compact-journey-grid .journey-card.active {
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.18);
}
.compact-journey-grid .journey-card.active .journey-icon {
  background: rgba(255,255,255,.12);
  transform: scale(1.06);
}
.journey-icon {
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.journey-icon svg {
  width: 23px;
  height: 23px;
  stroke: rgba(248,250,252,.96);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.static-hint { margin-top: 10px; font-size: 11px; }
.registration-copy { margin-top: 14px; }
.compact-fact-card {
  margin-top: 14px;
  padding: 12px 12px 12px 11px;
  gap: 10px;
}
.compact-fact-card p { font-size: 11.5px; line-height: 1.45; }
.static-mini-form-grid {
  margin-top: 12px;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.static-mini-form-grid .mini-field {
  padding: 10px 10px 9px;
  border-radius: 16px;
  gap: 6px;
}
.static-mini-form-grid .mini-field span { font-size: 10px; }
.static-mini-form-grid .mini-field input {
  font-size: 21px;
  line-height: 1;
}
.compact-goal-section {
  margin-top: 14px;
}
.compact-goal-section h3 {
  margin-bottom: 9px;
  font-size: 16px;
}
.static-goal-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.static-goal-grid .goal-chip {
  padding: 11px 10px;
  border-radius: 16px;
  min-height: 92px;
  align-content: start;
  transition: transform .16s ease, border-color .18s ease, background .18s ease;
}
.static-goal-grid .goal-chip strong { font-size: 13px; }
.static-goal-grid .goal-chip small { font-size: 10px; line-height: 1.35; }
@media (max-width: 430px) {
  .onboarding-mode .app-shell { padding-inline: 12px; }
  .static-onboarding-shell { padding: 16px 14px 14px; }
  .onboarding-brand { font-size: 10px; }
  .onboarding-brand-sub { margin-top: 6px; font-size: 10px; }
  .compact-copy h2 { font-size: 29px; }
  .compact-copy p { font-size: 12.4px; }
  .onboarding-hero-portraits .hero-face { min-height: 214px; }
  @keyframes onboardingScan {
    from { transform: translateY(0); opacity: .75; }
    to { transform: translateY(122px); opacity: 1; }
  }
  .compact-journey-grid { gap: 8px; }
  .compact-journey-grid .journey-card { min-height: 118px; padding: 13px 11px; }
  .compact-journey-grid .journey-card strong { font-size: 14px; }
  .compact-journey-grid .journey-card small { font-size: 10px; }
  .compact-fact-card p { font-size: 11px; }
  .static-mini-form-grid .mini-field input { font-size: 19px; }
  .static-goal-grid .goal-chip { min-height: 86px; padding: 10px 9px; }
  .static-goal-grid .goal-chip strong { font-size: 12px; }
  .static-goal-grid .goal-chip small { font-size: 9.5px; }
}

/* v0.10.3 onboarding fixes */
.screen-one .hero-face {
  border-color: rgba(98,242,245,.34);
  box-shadow:
    inset 0 1px rgba(255,255,255,.06),
    0 0 0 1px rgba(98,242,245,.14),
    0 0 18px rgba(98,242,245,.16),
    0 0 34px rgba(98,242,245,.10),
    0 18px 44px rgba(0,0,0,.28);
}
.screen-one .animated-scan-face::before {
  border-color: rgba(98,242,245,.26);
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.10), 0 0 14px rgba(98,242,245,.10);
}
.screen-one .animated-scan-face::after {
  background: linear-gradient(90deg, transparent, rgba(98,242,245,.95), transparent);
  box-shadow: 0 0 14px rgba(98,242,245,.38);
}
.screen-two .onboarding-actions,
.screen-three .onboarding-actions,
.screen-one .onboarding-actions {
  position: relative;
  z-index: 12;
  pointer-events: auto;
}
.screen-two .pinned-actions,
.screen-three .pinned-actions,
.screen-one .pinned-actions {
  margin-top: auto;
}
.onboarding-static-spacer {
  pointer-events: none;
}
.screen-two .journey-grid {
  margin-bottom: 4px;
}

/* v0.10.4 stronger neon */
.screen-one .hero-face {
  position: relative;
  isolation: isolate;
}
.screen-one .hero-face::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(98,242,245,.32), rgba(98,242,245,.08) 38%, rgba(127,247,255,.28) 100%);
  filter: blur(16px);
  opacity: .9;
}
.screen-one .hero-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, transparent 18%),
    linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 68%, rgba(0,0,0,.26) 100%),
    radial-gradient(circle at 50% 14%, rgba(98,242,245,.10), transparent 34%);
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.18), inset 0 0 24px rgba(98,242,245,.08);
}
.screen-one .animated-scan-face::before {
  inset: 8px;
  border-width: 1px;
}
.screen-one .animated-scan-face::after {
  left: 8%;
  right: 8%;
  height: 2px;
}
#ob-next-2 {
  touch-action: manipulation;
}

/* v0.10.5 onboarding polish */
.screen-one .onboarding-hero-portraits {
  position: relative;
}
.screen-one .onboarding-hero-portraits::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 34px;
  background: radial-gradient(circle at 50% 50%, rgba(98,242,245,.14), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}
.screen-one .hero-face {
  border-color: rgba(98,242,245,.42) !important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.08),
    0 0 0 1px rgba(98,242,245,.22),
    0 0 26px rgba(98,242,245,.22),
    0 0 56px rgba(98,242,245,.14),
    0 24px 46px rgba(0,0,0,.30) !important;
}
.screen-one .hero-face::before {
  inset: -8px !important;
  border-radius: 32px !important;
  background: linear-gradient(135deg, rgba(89,247,255,.44), rgba(89,247,255,.12) 40%, rgba(89,247,255,.36) 100%) !important;
  filter: blur(18px) !important;
  opacity: 1 !important;
}
.screen-one .hero-face::after {
  box-shadow:
    inset 0 0 0 1px rgba(98,242,245,.26),
    inset 0 0 28px rgba(98,242,245,.10),
    inset 0 0 46px rgba(98,242,245,.06) !important;
}
.screen-one .animated-scan-face::before {
  border-color: rgba(98,242,245,.34) !important;
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.14), 0 0 18px rgba(98,242,245,.14) !important;
}
.screen-one .animated-scan-face::after {
  background: linear-gradient(90deg, transparent, rgba(98,242,245,.98), transparent) !important;
  box-shadow: 0 0 18px rgba(98,242,245,.44) !important;
}
.screen-two .journey-grid {
  margin-bottom: 10px;
}
.screen-two .pinned-actions {
  padding-top: 6px;
}
#ob-next-2,
#ob-back-2,
#ob-next-1,
#ob-back-3,
#ob-finish {
  pointer-events: auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}

/* v0.10.6 sharp side frames + solid interactions */
.screen-one .onboarding-hero-portraits {
  position: relative;
  padding-inline: 6px;
}
.screen-one .hero-face {
  border-radius: 14px !important;
  overflow: visible !important;
  position: relative;
}
.screen-one .hero-face::before {
  inset: -10px !important;
  border-radius: 6px !important;
  background:
    linear-gradient(135deg, rgba(86,244,255,.24), rgba(86,244,255,.08) 34%, rgba(86,244,255,.20) 100%),
    linear-gradient(180deg, rgba(7,18,22,.84), rgba(7,14,18,.38)) !important;
  filter: blur(0) !important;
  opacity: 1 !important;
  box-shadow:
    0 0 0 1px rgba(86,244,255,.18),
    0 0 22px rgba(86,244,255,.18),
    0 18px 30px rgba(0,0,0,.22);
}
.screen-one .hero-face::after {
  border-radius: 14px !important;
}
.screen-one .animated-scan-face::before {
  inset: 7px !important;
  border-radius: 10px !important;
}
.screen-one .animated-scan-face::after {
  left: 10% !important;
  right: 10% !important;
}
.screen-two .journey-card,
.screen-two #ob-next-2,
.screen-two #ob-back-2,
.screen-three .goal-chip,
.screen-three #ob-back-3,
.screen-three #ob-finish,
.screen-one #ob-next-1 {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
.screen-two .journey-card > *,
.screen-three .goal-chip > * {
  pointer-events: none;
}

/* v0.10.7 clean neon photo cards — no protruding shapes */
.screen-one .onboarding-hero-portraits {
  padding-inline: 0 !important;
}
.screen-one .onboarding-hero-portraits::before {
  display: none !important;
}
.screen-one .hero-face {
  position: relative;
  overflow: hidden !important;
  isolation: auto !important;
  border-radius: 24px !important;
  border: 1px solid rgba(98,242,245,.42) !important;
  box-shadow:
    inset 0 0 0 1px rgba(98,242,245,.08),
    0 0 18px rgba(98,242,245,.18),
    0 0 34px rgba(98,242,245,.10),
    0 18px 40px rgba(0,0,0,.28) !important;
}
.screen-one .hero-face::before,
.screen-one .animated-scan-face::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: transparent !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow:
    inset 0 0 0 1px rgba(98,242,245,.12),
    inset 0 0 20px rgba(98,242,245,.055) !important;
  pointer-events: none !important;
}
.screen-one .hero-face::after,
.screen-one .animated-scan-face::after {
  content: "" !important;
  position: absolute !important;
  z-index: 3 !important;
  left: 10% !important;
  right: 10% !important;
  top: 18% !important;
  bottom: auto !important;
  height: 1.5px !important;
  border-radius: 2px !important;
  background: linear-gradient(90deg, transparent, rgba(98,242,245,.98), transparent) !important;
  box-shadow: 0 0 14px rgba(98,242,245,.42) !important;
  pointer-events: none !important;
  animation: onboardingScan 2.4s ease-in-out infinite alternate !important;
}

/* v0.11.0: 5-tab dock + ShizoGPT */
.dock {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 390px) {
  .dock { gap: 1px; padding-inline: 4px; }
  .nav-item { padding-inline: 1px; }
  .nav-label { font-size: 7.9px; }
  .nav-icon, .nav-icon svg { width: 22px; height: 22px; }
}

.shizogpt-page {
  display: grid;
  grid-template-rows: auto auto minmax(300px, 1fr) auto auto;
  gap: 12px;
  min-height: calc(100dvh - 150px - var(--safe-top) - var(--safe-bottom));
  margin-bottom: 2px;
}
.shizogpt-head-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 15%, rgba(98,242,245,.11), transparent 42%),
    linear-gradient(145deg, rgba(31,34,37,.98), rgba(18,20,22,.98));
  border: 1px solid rgba(98,242,245,.13);
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 15px 34px rgba(0,0,0,.18);
}
.shizogpt-head-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(98,242,245,.16), rgba(98,242,245,.035));
  border: 1px solid rgba(98,242,245,.22);
  box-shadow: 0 0 22px rgba(98,242,245,.08), inset 0 1px rgba(255,255,255,.05);
}
.shizogpt-head-logo span {
  color: var(--accent);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.06em;
  text-shadow: 0 0 12px rgba(98,242,245,.35);
}
.shizogpt-kicker {
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .19em;
}
.shizogpt-head-copy h2 {
  margin: 3px 0 3px;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -.045em;
}
.shizogpt-head-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.shizogpt-online {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  color: #dffdfd;
  background: rgba(98,242,245,.055);
  border: 1px solid rgba(98,242,245,.10);
  font-size: 9px;
  font-weight: 800;
}
.shizogpt-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 9px rgba(98,242,245,.7);
}
.shizogpt-suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 1px 1px 2px;
}
.shizogpt-suggestions::-webkit-scrollbar { display: none; }
.shizogpt-suggestions button {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 12px;
  padding: 0 11px;
  border: 1px solid rgba(255,255,255,.065);
  background: rgba(255,255,255,.025);
  color: #c8cecf;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.shizogpt-suggestions button:active {
  transform: scale(.97);
  border-color: rgba(98,242,245,.20);
  background: rgba(98,242,245,.055);
}
.shizogpt-dialog {
  min-height: 300px;
  max-height: 51dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.055);
  background:
    radial-gradient(circle at 50% 0%, rgba(98,242,245,.035), transparent 38%),
    linear-gradient(180deg, rgba(14,16,18,.94), rgba(10,12,14,.97));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.shizogpt-empty {
  align-self: center;
  justify-self: center;
  width: min(100%, 330px);
  text-align: center;
  padding: 34px 20px;
}
.shizogpt-orb {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98,242,245,.16);
  background: rgba(98,242,245,.035);
  box-shadow: 0 0 30px rgba(98,242,245,.07);
}
.shizogpt-orb span {
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 7px 7px 7px 2px;
  box-shadow: 0 0 12px rgba(98,242,245,.25);
}
.shizogpt-empty strong { display: block; font-size: 18px; letter-spacing: -.03em; }
.shizogpt-empty p { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.55; }
.shizogpt-turn { display: grid; gap: 8px; }
.shizogpt-message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.user-message {
  justify-self: end;
  color: #071011;
  background: linear-gradient(180deg, #7af7f7, #5fe8eb);
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px rgba(98,242,245,.07);
}
.assistant-message {
  justify-self: start;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 8px;
  color: #e9eeee;
  background: linear-gradient(145deg, #1b1e21, #141719);
  border: 1px solid rgba(98,242,245,.08);
  border-bottom-left-radius: 6px;
}
.shizogpt-mini-logo {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(98,242,245,.08);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}
.shizogpt-error { border-color: rgba(255,75,75,.16); color: #ffb5b5; }
.shizogpt-thinking > div { display: flex; align-items: center; gap: 4px; min-height: 25px; }
.shizogpt-thinking i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .25;
  animation: shizoGPTDot .7s ease-in-out infinite alternate;
}
.shizogpt-thinking i:nth-child(2) { animation-delay: .13s; }
.shizogpt-thinking i:nth-child(3) { animation-delay: .26s; }
@keyframes shizoGPTDot { to { opacity: 1; transform: translateY(-2px); } }
.shizogpt-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: end;
  gap: 8px;
  padding: 7px;
  border-radius: 19px;
  background: linear-gradient(180deg, #1a1d20, #131517);
  border: 1px solid rgba(98,242,245,.10);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 10px 24px rgba(0,0,0,.15);
}
.shizogpt-composer textarea {
  resize: none;
  width: 100%;
  min-height: 44px;
  max-height: 104px;
  border: 0;
  outline: 0;
  padding: 11px 10px;
  border-radius: 13px;
  background: transparent;
  color: #f4f7f7;
  font-size: 13px;
  line-height: 1.45;
}
.shizogpt-composer textarea::placeholder { color: #676e71; }
.shizogpt-composer button {
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #071011;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(98,242,245,.10);
  transition: transform .14s ease, opacity .14s ease;
}
.shizogpt-composer button:active { transform: scale(.96); }
.shizogpt-composer button:disabled { opacity: .4; }
.shizogpt-composer button svg { width: 21px; height: 21px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.shizogpt-footnote { text-align: center; color: #62696c; font-size: 9px; }

.scan-error-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.scan-error-actions[hidden] { display: none; }
.scan-spinner.is-error { opacity: .28; animation: none; }

/* v0.11.1 — ShizoGPT: fixed workspace, only dialogue scrolls */
html.shizogpt-mode,
html.shizogpt-mode body {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

html.shizogpt-mode .app-shell {
  position: fixed;
  inset: 0;
  width: min(100%, 720px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding-top: calc(var(--safe-top) + 6px) !important;
  padding-right: calc(var(--safe-right) + 12px) !important;
  padding-bottom: calc(var(--safe-bottom) + 90px) !important;
  padding-left: calc(var(--safe-left) + 12px) !important;
  overflow: hidden !important;
}

html.shizogpt-mode .content {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden !important;
}

.shizogpt-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
  overflow: hidden;
}

.shizogpt-dialog {
  width: 100%;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 14px 12px 16px;
  border-radius: 20px;
  touch-action: pan-y;
}
.shizogpt-dialog::-webkit-scrollbar { display: none; }

.shizogpt-suggestions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  overflow: hidden;
  touch-action: manipulation;
}
.shizogpt-suggestions button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 11px;
  font-size: 9.5px;
}

.shizogpt-composer {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  padding: 6px;
  border-radius: 18px;
}
.shizogpt-composer textarea {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 12px 10px;
  overflow: hidden !important;
  resize: none;
  line-height: 22px;
}
.shizogpt-composer button {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.shizogpt-footnote,
.shizogpt-head-card {
  display: none !important;
}

@media (max-width: 390px) {
  html.shizogpt-mode .app-shell {
    padding-right: calc(var(--safe-right) + 9px) !important;
    padding-bottom: calc(var(--safe-bottom) + 84px) !important;
    padding-left: calc(var(--safe-left) + 9px) !important;
  }
  .shizogpt-page { gap: 7px; }
  .shizogpt-dialog {
    padding: 12px 10px 14px;
    border-radius: 18px;
  }
  .shizogpt-suggestions { gap: 5px; }
  .shizogpt-suggestions button {
    min-height: 32px;
    padding-inline: 7px;
    font-size: 9px;
  }
  .shizogpt-composer {
    min-height: 56px;
    grid-template-columns: minmax(0, 1fr) 44px;
    padding: 6px;
  }
  .shizogpt-composer textarea {
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
  }
  .shizogpt-composer button {
    width: 44px;
    height: 44px;
  }
}


/* v0.11.2 — ShizoGPT polish + cleaner analysis copy */
.shizogpt-page {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.shizogpt-page-title {
  padding: 2px 4px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(236, 251, 255, .92);
  text-shadow: 0 0 14px rgba(98,242,245,.16);
}
.shizogpt-suggestions button {
  font-size: 11.5px;
  line-height: 1.15;
  min-height: 40px;
  padding: 0 10px;
}
@media (max-width: 390px) {
  .shizogpt-page-title {
    font-size: 12px;
  }
  .shizogpt-suggestions button {
    min-height: 38px;
    font-size: 10.5px;
    padding-inline: 8px;
  }
}


/* v0.11.3 — ShizoGPT typing, taller dialog, nav/profile polish */
html.shizogpt-mode .app-shell {
  padding-top: max(calc(var(--safe-top) - 10px), 0px) !important;
}
.shizogpt-page {
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 5px;
}
.shizogpt-page-title {
  padding: 0 4px 1px;
  font-size: 12px;
  line-height: 1.1;
  letter-spacing: .20em;
}
.shizogpt-dialog {
  padding-top: 10px;
  border-radius: 18px;
}
.shizogpt-typing-target {
  white-space: pre-wrap;
  min-width: 0;
}
.shizogpt-typing-target.is-typing::after {
  content: '';
  display: inline-block;
  width: 5px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -.12em;
  border-radius: 3px;
  background: var(--accent);
  opacity: .8;
  animation: shizoCursor .7s steps(1) infinite;
}
@keyframes shizoCursor { 50% { opacity: .15; } }

/* Profile — clearer hierarchy and useful progress summary */
.profile-page-v2 { gap: 10px; }
.profile-identity-v2 {
  min-height: 104px;
  padding: 15px 16px;
  grid-template-columns: 68px minmax(0,1fr) 38px !important;
  border-radius: 22px;
}
.profile-identity-v2 .profile-avatar-shell { width: 68px; height: 68px; border-radius: 20px; }
.profile-identity-v2 .profile-avatar-image,
.profile-identity-v2 .profile-avatar-fallback { border-radius: 18px; }
.profile-brand-mini {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(98,242,245,.16);
  background: rgba(98,242,245,.055);
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.04em;
  box-shadow: inset 0 0 16px rgba(98,242,245,.04);
}
.profile-progress-card {
  padding: 15px;
  border-radius: 22px;
  border: 1px solid rgba(105,241,247,.13);
  background: linear-gradient(155deg, rgba(23,27,30,.98), rgba(13,16,18,.99));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.profile-progress-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.profile-progress-head > div { display: grid; gap: 4px; }
.profile-progress-head small { color: var(--accent); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.profile-progress-head strong { font-size: 17px; letter-spacing: -.03em; }
.profile-progress-head > span { color: #6d777a; font-size: 9px; }
.profile-progress-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}
.profile-progress-grid > div {
  min-width: 0;
  padding: 11px 9px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.045);
  background: rgba(255,255,255,.018);
  display: grid;
  gap: 5px;
}
.profile-progress-grid b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -.04em;
  color: #f3f8f8;
}
.profile-progress-grid span { color: #717b7e; font-size: 8.5px; line-height: 1.2; }
.profile-subscriptions-v2 { padding: 17px; border-radius: 23px; }
.profile-subscriptions-v2 .profile-subscriptions-head { margin-bottom: 9px; }
.profile-premium-desc {
  margin: 0 0 13px !important;
  color: #7d878a !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
}
.profile-subscriptions-v2 .profile-plan { min-height: 66px; }
.profile-subscriptions-v2 .profile-subscribe-button { margin-top: 10px; }

@media (max-width: 390px) {
  html.shizogpt-mode .app-shell { padding-top: max(calc(var(--safe-top) - 12px), 0px) !important; }
  .shizogpt-page-title { font-size: 11.5px; }
  .profile-identity-v2 { grid-template-columns: 62px minmax(0,1fr) 36px !important; padding: 13px; }
  .profile-identity-v2 .profile-avatar-shell { width: 62px; height: 62px; }
  .profile-brand-mini { width: 36px; height: 36px; }
  .profile-progress-grid > div { padding: 10px 7px; }
  .profile-progress-grid b { font-size: 15px; }
  .profile-progress-grid span { font-size: 8px; }
}

/* v0.11.3 final chat vertical fit */
html.shizogpt-mode .app-shell {
  padding-top: max(calc(var(--safe-top) - 18px), 0px) !important;
}
.shizogpt-page-title {
  margin: 0;
  padding-bottom: 0;
}
@media (max-width: 390px) {
  html.shizogpt-mode .app-shell {
    padding-top: max(calc(var(--safe-top) - 18px), 0px) !important;
  }
}

/* v0.11.4 — onboarding cleanup, required registration, new icons */
.screen-one .onboarding-hero-portraits {
  overflow: visible;
}
.screen-one .hero-face {
  overflow: hidden !important;
  border-radius: 26px !important;
  border: 1px solid rgba(98,242,245,.40) !important;
  box-shadow:
    inset 0 0 0 1px rgba(98,242,245,.07),
    0 0 20px rgba(98,242,245,.16),
    0 0 42px rgba(98,242,245,.08),
    0 18px 40px rgba(0,0,0,.28) !important;
}
/* Kill every old corner/frame layer around the two onboarding photos. */
.screen-one .hero-face::before,
.screen-one .animated-scan-face::before {
  display: none !important;
  content: none !important;
}
/* Keep only the horizontal scan line inside the rounded photo itself. */
.screen-one .hero-face::after,
.screen-one .animated-scan-face::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  z-index: 3 !important;
  left: 10% !important;
  right: 10% !important;
  top: 18% !important;
  bottom: auto !important;
  width: auto !important;
  height: 1.5px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, transparent, rgba(98,242,245,.98), transparent) !important;
  box-shadow: 0 0 14px rgba(98,242,245,.40) !important;
  pointer-events: none !important;
  animation: onboardingScan 2.4s ease-in-out infinite alternate !important;
}
.screen-one .hero-copy p {
  max-width: 520px;
  color: rgba(215,220,224,.84);
  font-size: 13.5px;
  line-height: 1.56;
}

/* Requested onboarding pictograms. */
.journey-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: rgba(98,242,245,.045);
  border-color: rgba(98,242,245,.12);
}
.journey-icon svg {
  width: 25px;
  height: 25px;
  stroke: rgba(236,252,253,.96);
  stroke-width: 2;
}
.journey-card.active .journey-icon {
  background: rgba(98,242,245,.11) !important;
  border-color: rgba(98,242,245,.26);
  box-shadow: 0 0 18px rgba(98,242,245,.09);
}

/* Registration: gender lives between the section title and numeric fields. */
.registration-data-section {
  margin-top: 12px !important;
}
.registration-data-section > h3 {
  margin-bottom: 8px !important;
}
.sex-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
  margin-bottom: 8px;
}
.sex-chip {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
  color: rgba(223,227,230,.82);
  transition: transform .16s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.sex-chip strong {
  font-size: 12.5px;
  font-weight: 800;
}
.sex-chip.active {
  color: #061214;
  border-color: rgba(98,242,245,.75);
  background: linear-gradient(180deg, #70f3f5, #55dde3);
  box-shadow: 0 7px 20px rgba(98,242,245,.10);
}
.registration-data-section .static-mini-form-grid {
  margin-top: 0 !important;
  margin-bottom: 8px;
}
.registration-data-section .static-goal-grid {
  margin-top: 0;
}
.registration-data-section .static-goal-grid .goal-chip {
  min-height: 76px;
  padding: 9px 9px;
}
.registration-data-section .static-goal-grid .goal-chip strong {
  font-size: 12.5px;
}
.registration-data-section .static-goal-grid .goal-chip small {
  font-size: 9.5px;
  line-height: 1.25;
}
.compact-form-shell .compact-fact-card {
  margin-top: 11px;
  padding-block: 10px;
}
.compact-form-shell .compact-fact-card p {
  font-size: 10.8px;
  line-height: 1.4;
}
.compact-form-shell .registration-copy {
  margin-top: 10px;
}
.compact-form-shell .registration-copy h2 {
  font-size: clamp(25px, 7.2vw, 34px);
}
.compact-form-shell .registration-copy p {
  font-size: 11.5px;
  line-height: 1.42;
}

.onboarding-validation-toast {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: 78px;
  max-width: calc(100% - 34px);
  transform: translate(-50%, 8px) scale(.98);
  opacity: 0;
  padding: 9px 13px;
  border-radius: 13px;
  border: 1px solid rgba(98,242,245,.20);
  background: rgba(10,14,17,.95);
  box-shadow: 0 10px 28px rgba(0,0,0,.32), 0 0 18px rgba(98,242,245,.07);
  color: rgba(241,245,246,.94);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.onboarding-validation-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.journey-card.is-missing,
.goal-chip.is-missing,
.sex-chip.is-missing,
.mini-field input.is-missing {
  animation: onboardingMissing .72s ease;
}
@keyframes onboardingMissing {
  0%,100% { border-color: rgba(255,255,255,.08); }
  35%,70% { border-color: rgba(98,242,245,.66); box-shadow: 0 0 0 1px rgba(98,242,245,.12), 0 0 18px rgba(98,242,245,.10); }
}

@media (max-width: 430px) {
  .screen-one .hero-copy p { font-size: 12.4px; }
  .journey-icon { width: 40px; height: 40px; }
  .journey-icon svg { width: 23px; height: 23px; }
  .sex-chip { min-height: 39px; }
  .sex-chip strong { font-size: 12px; }
  .registration-data-section .static-goal-grid .goal-chip { min-height: 70px; }
  .compact-form-shell .compact-fact-card p { font-size: 10.2px; }
}
.mini-field.is-missing {
  animation: onboardingMissing .72s ease;
}

/* v0.11.5 — nutrition redesign */
html.nutrition-mode .app-shell {
  padding-top: calc(var(--safe-top) + 6px) !important;
  padding-right: calc(var(--safe-right) + 12px) !important;
  padding-left: calc(var(--safe-left) + 12px) !important;
}
html.nutrition-mode .content {
  gap: 0;
}
.nutrition-page {
  gap: 10px !important;
  padding-top: 0;
}
.nutrition-page-title {
  margin: 0 0 8px;
  padding-top: 1px;
  text-align: center;
  color: rgba(236,251,255,.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(98,242,245,.16);
}
.nutrition-hero {
  margin-top: 0 !important;
}
.nutrition-water-card.nutrition-water-panel {
  display: block !important;
  min-height: 0 !important;
  padding: 15px !important;
}
.nutrition-water-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nutrition-water-head > div { min-width: 0; }
.nutrition-water-title {
  font-size: 13px !important;
  font-weight: 820;
  letter-spacing: -.01em;
}
.nutrition-water-value {
  margin-top: 5px;
  font-size: 25px !important;
  line-height: 1;
  letter-spacing: -.045em;
}
.nutrition-water-value span {
  font-size: 11px !important;
}
.nutrition-water-reset {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.025);
  color: #808a8d;
  cursor: pointer;
  transition: transform .14s ease, color .14s ease, border-color .14s ease, background .14s ease;
}
.nutrition-water-reset:active {
  transform: rotate(-24deg) scale(.96);
  color: var(--accent);
  border-color: rgba(98,242,245,.20);
  background: rgba(98,242,245,.05);
}
.nutrition-water-reset svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nutrition-water-track {
  margin-top: 12px;
}
.nutrition-water-quick {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}
.nutrition-water-quick button {
  min-height: 40px;
  border: 1px solid rgba(98,242,245,.11);
  border-radius: 12px;
  background: rgba(98,242,245,.035);
  color: #dffbfc;
  font-size: 12px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.nutrition-water-quick button:active {
  transform: scale(.97);
  background: rgba(98,242,245,.09);
  border-color: rgba(98,242,245,.25);
}
.nutrition-water-manual {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 42px;
  gap: 7px;
}
.nutrition-water-input-wrap {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}
.nutrition-water-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f1f7f7;
  font-size: 14px;
  font-weight: 700;
}
.nutrition-water-input-wrap input::placeholder { color: #4f585b; }
.nutrition-water-input-wrap span {
  color: #778184;
  font-size: 11px;
  font-weight: 700;
}
#nutrition-water-custom {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(98,242,245,.18);
  border-radius: 12px;
  background: rgba(98,242,245,.08);
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
}
.nutrition-recommend-card.nutrition-recommend-wide {
  min-height: 0 !important;
  padding: 16px !important;
  border-radius: 19px;
}
.nutrition-recommend-card.nutrition-recommend-wide::after {
  display: none !important;
  content: none !important;
}
.nutrition-recommend-wide > strong {
  margin-top: 13px !important;
  font-size: 18px !important;
  line-height: 1.18;
}
.nutrition-recommend-wide > p {
  margin: 9px 0 0 !important;
  max-width: none !important;
  color: #8a9497 !important;
  font-size: 12px !important;
  line-height: 1.58 !important;
}
.nutrition-entry-panel-v2 {
  padding: 16px !important;
}
.nutrition-dish-field {
  margin-top: 14px;
  display: grid;
  gap: 7px;
}
.nutrition-dish-field > span,
.nutrition-meal-type-label {
  color: #838d90;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .02em;
}
.nutrition-dish-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 7px;
}
.nutrition-dish-row > input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 13px;
  outline: 0;
  background: rgba(255,255,255,.025);
  color: #f2f6f7;
  font-size: 13px;
  font-weight: 680;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.nutrition-dish-row > input:focus {
  border-color: rgba(98,242,245,.22);
  box-shadow: 0 0 0 3px rgba(98,242,245,.035);
}
.nutrition-dish-row > input.is-invalid {
  border-color: rgba(255,103,103,.42);
}
#nutrition-estimate {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(98,242,245,.16);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(98,242,245,.07);
  color: #cfffff;
  font-size: 10.5px;
  font-weight: 780;
  cursor: pointer;
}
#nutrition-estimate:disabled { opacity: .45; }
#nutrition-estimate svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nutrition-dish-field > small {
  color: #5f696c;
  font-size: 9.5px;
  line-height: 1.4;
}
.nutrition-meal-type-label {
  margin-top: 14px;
  margin-bottom: 7px;
}
.nutrition-meal-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}
.nutrition-meal-types button {
  min-height: 38px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: #8f999c;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
  transition: transform .14s ease, color .14s ease, background .14s ease, border-color .14s ease;
}
.nutrition-meal-types button.is-active {
  color: #dbfeff;
  border-color: rgba(98,242,245,.22);
  background: rgba(98,242,245,.08);
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.025);
}
.nutrition-meal-types button:active { transform: scale(.97); }
.nutrition-meal-types .meal-snack {
  grid-column: 1 / -1;
}
.nutrition-kbju-grid {
  margin-top: 14px;
}
.nutrition-kbju-grid.is-invalid label {
  border-color: rgba(255,103,103,.34);
}
@media (max-width: 390px) {
  html.nutrition-mode .app-shell {
    padding-right: calc(var(--safe-right) + 9px) !important;
    padding-left: calc(var(--safe-left) + 9px) !important;
  }
  .nutrition-page-title { font-size: 12px; margin-bottom: 7px; }
  .nutrition-water-quick { gap: 6px; }
  .nutrition-water-quick button { font-size: 11px; }
  .nutrition-recommend-wide > strong { font-size: 17px !important; }
  .nutrition-recommend-wide > p { font-size: 11.5px !important; }
  #nutrition-estimate span { display: none; }
  #nutrition-estimate { width: 46px; padding: 0; }
}

/* v0.11.6 — compact top chrome, nutrition entry modes, cleaner analysis home */
html.nutrition-mode .app-shell,
html.analysis-home-mode .app-shell {
  padding-top: max(calc(var(--safe-top) - 18px), 0px) !important;
}

.nutrition-page-title,
.analysis-page-title {
  margin: 0 0 5px;
  padding: 0 4px;
  text-align: center;
  color: rgba(236,251,255,.94);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .20em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(98,242,245,.16);
}

/* Nutrition: two clear modes instead of mixing AI and manual fields. */
.nutrition-entry-panel-v2 {
  border-radius: 21px;
}
.nutrition-entry-head {
  display: grid;
  gap: 11px;
}
.nutrition-entry-mode {
  width: 100%;
  min-height: 42px;
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.022);
}
.nutrition-entry-mode button {
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #7f898c;
  font-size: 11.5px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .14s ease, color .16s ease, background .16s ease, box-shadow .16s ease;
}
.nutrition-entry-mode button.is-active {
  color: #e5ffff;
  background: rgba(98,242,245,.085);
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.12);
}
.nutrition-entry-mode button:active { transform: scale(.98); }
.nutrition-dish-row-single { grid-template-columns: minmax(0,1fr); }
.nutrition-entry-quick,
.nutrition-entry-manual {
  margin-top: 13px;
}
.nutrition-entry-quick[hidden],
.nutrition-entry-manual[hidden] {
  display: none !important;
}
.nutrition-quick-ai-note {
  margin-bottom: 10px;
  color: #687275;
  font-size: 10px;
  line-height: 1.45;
}
.nutrition-estimate-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.nutrition-estimate-add svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nutrition-estimate-add:disabled { opacity: .5; }
.nutrition-entry-manual .nutrition-kbju-grid { margin-top: 0; }

/* Analysis home: same compact centered brand treatment as ShizoGPT/Nutrition. */
.analysis-dashboard {
  gap: 9px !important;
  padding-top: 0 !important;
}
.analysis-page-title {
  margin-bottom: 5px;
}
.analysis-dashboard .analysis-head {
  display: block;
}
.analysis-launch-card {
  overflow: hidden;
  padding: 15px 16px 14px !important;
  border-radius: 21px !important;
  border-color: rgba(98,242,245,.11) !important;
  background:
    radial-gradient(circle at 16% 2%, rgba(98,242,245,.055), transparent 32%),
    linear-gradient(150deg, rgba(26,30,32,.985), rgba(13,16,18,.995)) !important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 10px 28px rgba(0,0,0,.19) !important;
}
.analysis-launch-grid,
.analysis-launch-card::before,
.analysis-launch-card::after {
  display: none !important;
  content: none !important;
}
.analysis-launch-top {
  grid-template-columns: 44px minmax(0,1fr) !important;
  gap: 11px !important;
  min-height: 52px !important;
  align-items: center;
}
.analysis-launch-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(98,242,245,.13);
  background: rgba(98,242,245,.045);
  box-shadow: inset 0 0 16px rgba(98,242,245,.035) !important;
}
.analysis-launch-icon svg {
  width: 30px !important;
  height: 30px !important;
}
.analysis-launch-kicker {
  color: #6ceff1 !important;
  font-size: 7.5px !important;
  letter-spacing: .15em !important;
}
.analysis-launch-copy h2 {
  margin-top: 3px !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
.analysis-launch-copy p {
  margin-top: 6px !important;
  max-width: 420px;
  color: #7d878a !important;
  font-size: 10px !important;
  line-height: 1.42 !important;
}
.analysis-launch-button {
  border-radius: 14px !important;
  min-height: 48px !important;
}

/* Remove the colored rail on the left of analysis history cards. */
.analysis-dashboard .analysis-history-card::before {
  display: none !important;
  content: none !important;
}
.analysis-dashboard .analysis-history-card {
  background: linear-gradient(145deg, rgba(29,32,34,.985), rgba(18,20,22,.995)) !important;
}

@media (max-width: 390px) {
  html.nutrition-mode .app-shell,
  html.analysis-home-mode .app-shell {
    padding-top: max(calc(var(--safe-top) - 18px), 0px) !important;
  }
  .nutrition-page-title,
  .analysis-page-title { font-size: 11.5px; margin-bottom: 4px; }
  .nutrition-entry-mode button { font-size: 11px; }
  .analysis-launch-card { padding: 14px !important; }
  .analysis-launch-top { grid-template-columns: 42px minmax(0,1fr) !important; gap: 9px !important; }
  .analysis-launch-icon { width: 42px !important; height: 42px !important; }
  .analysis-launch-copy h2 { font-size: 21px !important; }
  .analysis-launch-copy p { font-size: 9.5px !important; }
}


/* v0.11.7 — profile title + result without outer frame */
.profile-page-title {
  margin: 0 0 2px;
  padding: 1px 4px 3px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(236, 251, 255, .92);
  text-shadow: 0 0 14px rgba(98,242,245,.16);
}

/* The result is no longer wrapped by a full-screen neon frame. */
.result-focus-zone .focus-frame,
.result-focus-zone::before,
.result-focus-zone::after {
  display: none !important;
  content: none !important;
}
.result-focus-zone {
  --result-frame-gap: 0px;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 390px) {
  .profile-page-title { font-size: 12px; }
  .result-focus-zone {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* v0.11.8 — compact top alignment, 4-tab dock, tighter result sections */
.dock {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Bring the main app screens closer to Telegram's native Close row without overlapping it. */
html.analysis-home-mode .app-shell,
html.analysis-result-mode .app-shell,
html.profile-mode .app-shell {
  padding-top: max(calc(var(--safe-top) - 30px), 0px) !important;
}

html.profile-mode .content {
  gap: 0;
}
.profile-page-v2 {
  gap: 8px !important;
  padding-top: 0 !important;
}
.profile-page-title {
  margin-bottom: 5px !important;
  padding-top: 0 !important;
}
.profile-identity-v2,
.profile-progress-card,
.profile-subscriptions-v2 {
  margin-top: 0 !important;
}

/* Analysis home follows the same compact header rhythm as GPT / Nutrition / Profile. */
.analysis-page-title {
  margin-bottom: 4px !important;
}
.analysis-dashboard {
  gap: 7px !important;
}
.analysis-dashboard .history-block {
  gap: 8px !important;
}

/* Result screen starts higher and keeps the content stack tighter. */
html.analysis-result-mode .result-screen {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
html.analysis-result-mode .result-focus-zone {
  padding-top: 0 !important;
  gap: 6px !important;
}
html.analysis-result-mode .result-brand {
  margin-top: 0 !important;
  margin-bottom: 3px !important;
}

/* Metrics / improvement plan: larger, clearer, and closer to each other + actions. */
.result-focus-zone .accordion-section {
  margin-top: 7px !important;
}
.result-focus-zone .accordion-section + .accordion-section {
  margin-top: 5px !important;
}
.result-accordion {
  border-radius: 17px !important;
}
.result-accordion-summary {
  min-height: 66px !important;
  grid-template-columns: 42px minmax(0,1fr) 24px !important;
  gap: 11px !important;
  padding: 10px 12px !important;
}
.result-accordion-icon {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
}
.result-accordion-icon svg {
  width: 25px !important;
  height: 25px !important;
}
.result-accordion-copy strong {
  font-size: 16px !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
}
.result-accordion-copy small {
  font-size: 10.8px !important;
  line-height: 1.28 !important;
}
.result-focus-zone .result-footer {
  margin-top: 7px !important;
  margin-bottom: 0 !important;
}
.result-actions {
  gap: 7px !important;
}

/* Nutrition quick estimation hint: explicitly ask for grams for better precision. */
.nutrition-quick-ai-note {
  font-size: 10.8px !important;
  line-height: 1.5 !important;
  color: #778285 !important;
}

@media (max-width: 390px) {
  html.analysis-home-mode .app-shell,
  html.analysis-result-mode .app-shell,
  html.profile-mode .app-shell {
    padding-top: max(calc(var(--safe-top) - 30px), 0px) !important;
  }
  .result-accordion-summary {
    min-height: 62px !important;
    grid-template-columns: 39px minmax(0,1fr) 22px !important;
    gap: 9px !important;
    padding: 9px 10px !important;
  }
  .result-accordion-icon {
    width: 39px !important;
    height: 39px !important;
  }
  .result-accordion-copy strong { font-size: 15px !important; }
  .result-accordion-copy small { font-size: 10px !important; }
  .result-focus-zone .accordion-section { margin-top: 6px !important; }
  .result-focus-zone .accordion-section + .accordion-section { margin-top: 5px !important; }
  .result-focus-zone .result-footer { margin-top: 6px !important; }
  .nav-label { font-size: 8.6px !important; }
}

html.analysis-flow-mode .app-shell {
  padding-top: max(calc(var(--safe-top) - 30px), 0px) !important;
}
html.analysis-flow-mode .topbar {
  margin-bottom: 12px !important;
}
html.analysis-flow-mode .eyebrow {
  margin-bottom: 4px !important;
}
@media (max-width: 390px) {
  html.analysis-flow-mode .app-shell {
    padding-top: max(calc(var(--safe-top) - 30px), 0px) !important;
  }
}


/* v0.11.9 — result safe offset, one-row GPT suggestions, analysis video export */
html.analysis-result-mode .app-shell {
  padding-top: max(calc(var(--safe-top) - 16px), 0px) !important;
}

.shizogpt-suggestions {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 5px !important;
  overflow: hidden !important;
}
.shizogpt-suggestions button {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 4px !important;
  font-size: 9.6px !important;
  line-height: 1.12 !important;
  white-space: normal !important;
  text-overflow: clip !important;
}

.analysis-download-btn {
  width: 100%;
  min-height: 50px;
  margin-top: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(98, 242, 245, .22);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(28, 42, 44, .96), rgba(18, 25, 27, .98));
  color: #efffff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .01em;
  box-shadow: inset 0 0 0 1px rgba(98, 242, 245, .035), 0 0 18px rgba(98, 242, 245, .05);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform .16s ease, border-color .16s ease, opacity .16s ease;
}
.analysis-download-btn:active { transform: scale(.985); }
.analysis-download-btn:disabled { cursor: default; opacity: .72; }
.analysis-download-btn svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.analysis-download-btn.is-loading svg { animation: videoDownloadPulse 1s ease-in-out infinite; }
.analysis-download-btn.is-sent {
  border-color: rgba(98, 242, 245, .38);
  background: rgba(27, 48, 49, .94);
}
@keyframes videoDownloadPulse {
  0%, 100% { opacity: .38; transform: translateY(1px); }
  50% { opacity: 1; transform: translateY(-1px); }
}

@media (max-width: 390px) {
  .shizogpt-suggestions { gap: 4px !important; }
  .shizogpt-suggestions button {
    min-height: 36px !important;
    padding-inline: 3px !important;
    font-size: 8.8px !important;
  }
  .analysis-download-btn {
    min-height: 48px;
    border-radius: 15px;
    font-size: 13px;
  }
}

/* v0.13.0 — dynamic ShizoGPT prompts, clean onboarding colors and Premium checkout */

/* First onboarding screen: keep the original photo colors, no grayscale filter. */
.screen-one .hero-face,
.screen-one .hero-face.male-front,
.screen-one .hero-face.female-front {
  filter: none !important;
  -webkit-filter: none !important;
}

/* A recognizable chef/kitchen knife for Surgery. */
.journey-icon-surgery .kitchen-knife-icon {
  width: 26px !important;
  height: 26px !important;
  overflow: visible;
}
.journey-icon-surgery .kitchen-knife-icon .knife-blade {
  fill: rgba(221, 239, 242, .10);
  stroke: rgba(220, 249, 250, .95);
  stroke-width: 1.35;
  stroke-linejoin: round;
}
.journey-icon-surgery .kitchen-knife-icon .knife-handle {
  fill: rgba(98,242,245,.10);
  stroke: var(--accent);
  stroke-width: 1.35;
  stroke-linejoin: round;
}
.journey-icon-surgery .kitchen-knife-icon path:last-child {
  stroke: rgba(98,242,245,.72);
  stroke-width: 1.2;
  stroke-linecap: round;
}

/* Suggestion tiles stay in one row; refreshed tile gets a small clean pulse. */
.shizogpt-suggestions button.suggestion-refresh {
  animation: shizoSuggestionRefresh .24s ease-out;
}
@keyframes shizoSuggestionRefresh {
  0% { transform: scale(.96); opacity: .45; }
  100% { transform: scale(1); opacity: 1; }
}

/* Profile: remove the old progress summary and make Premium the main content. */
.profile-page-v2 {
  gap: 9px !important;
}
.profile-premium-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 18px !important;
  border-radius: 25px !important;
  background:
    radial-gradient(circle at 86% 3%, rgba(98,242,245,.105), transparent 28%),
    linear-gradient(155deg, rgba(24,29,32,.99), rgba(12,15,17,.998)) !important;
  border-color: rgba(98,242,245,.18) !important;
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 16px 38px rgba(0,0,0,.25),
    0 0 34px rgba(98,242,245,.035) !important;
}
.profile-premium-card > *:not(.profile-premium-glow) {
  position: relative;
  z-index: 1;
}
.profile-premium-glow {
  position: absolute;
  z-index: 0;
  width: 180px;
  height: 180px;
  right: -92px;
  top: -98px;
  border-radius: 50%;
  border: 1px solid rgba(98,242,245,.13);
  box-shadow:
    0 0 0 22px rgba(98,242,245,.018),
    0 0 0 45px rgba(98,242,245,.009);
  pointer-events: none;
}
.profile-subscriptions-v2 .profile-subscriptions-head {
  align-items: center !important;
  margin-bottom: 10px !important;
}
.profile-subscriptions-v2 h2 {
  margin-top: 7px !important;
  font-size: 25px !important;
}
.profile-premium-orb {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  border-color: rgba(98,242,245,.20) !important;
  background: rgba(98,242,245,.035) !important;
  box-shadow: inset 0 0 22px rgba(98,242,245,.045), 0 0 24px rgba(98,242,245,.045) !important;
}
.premium-sticker-lg {
  width: 43px !important;
  height: 43px !important;
}
.premium-sticker img {
  filter: none !important;
}
.profile-premium-desc {
  max-width: 94%;
  margin-bottom: 14px !important;
  color: #899396 !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}
.profile-subscriptions-v2 .profile-plan-list {
  gap: 7px;
}
.profile-subscriptions-v2 .profile-plan {
  min-height: 64px !important;
  border-radius: 17px !important;
  padding: 11px 13px 11px 15px !important;
}
.profile-subscriptions-v2 .profile-plan.is-selected {
  border-color: rgba(98,242,245,.48) !important;
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.055), 0 0 20px rgba(98,242,245,.045) !important;
}
.profile-subscribe-button {
  min-height: 54px !important;
  margin-top: 11px !important;
}
.premium-sticker-payment {
  width: 30px !important;
  height: 30px !important;
}
.premium-sticker-payment-head {
  width: 40px !important;
  height: 40px !important;
}

/* Payment chooser */
.profile-payment-backdrop {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px calc(12px + var(--safe-right)) calc(16px + var(--safe-bottom)) calc(12px + var(--safe-left));
  background: rgba(2,5,6,.68);
  opacity: 0;
  transition: opacity .18s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.profile-payment-backdrop.is-open { opacity: 1; }
.profile-payment-sheet {
  position: relative;
  width: min(100%, 520px);
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(98,242,245,.18);
  background:
    radial-gradient(circle at 82% 0%, rgba(98,242,245,.08), transparent 30%),
    linear-gradient(155deg, rgba(25,29,32,.995), rgba(11,14,16,.999));
  box-shadow: 0 24px 70px rgba(0,0,0,.55), inset 0 1px rgba(255,255,255,.035);
  transform: translateY(16px) scale(.985);
  transition: transform .2s cubic-bezier(.2,.8,.2,1);
}
.profile-payment-backdrop.is-open .profile-payment-sheet {
  transform: translateY(0) scale(1);
}
.profile-payment-close {
  position: absolute;
  right: 13px;
  top: 13px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 11px;
  background: rgba(255,255,255,.025);
  color: #aab3b5;
  font-size: 24px;
  line-height: 1;
}
.profile-payment-head {
  padding-right: 42px;
  display: grid;
  grid-template-columns: 50px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-payment-premium {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(98,242,245,.14);
  background: rgba(98,242,245,.035);
}
.profile-payment-head small {
  display: block;
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}
.profile-payment-head h3 {
  margin: 4px 0 0;
  color: #f3f8f8;
  font-size: 21px;
  letter-spacing: -.035em;
}
.profile-payment-head p {
  margin: 5px 0 0;
  color: #737e80;
  font-size: 10.5px;
}
.profile-payment-methods {
  display: grid;
  gap: 8px;
}
.profile-payment-method {
  width: 100%;
  min-height: 67px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 43px minmax(0,1fr) 22px;
  align-items: center;
  gap: 11px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.022);
  text-align: left;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}
.profile-payment-method:active,
.profile-payment-method.is-selected {
  transform: scale(.988);
  border-color: rgba(98,242,245,.28);
  background: rgba(98,242,245,.05);
}
.profile-payment-method-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.055);
  background: rgba(255,255,255,.022);
}
.payment-method-svg {
  width: 28px;
  height: 28px;
  display: block;
}
.crypto-svg path {
  stroke: #77f5f3;
  stroke-width: 1.45;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.profile-payment-method-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.profile-payment-method-copy strong {
  color: #eef5f5;
  font-size: 14px;
}
.profile-payment-method-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #727d80;
  font-size: 9.5px;
}
.profile-payment-arrow {
  color: #697477;
  font-size: 25px;
  font-weight: 300;
  text-align: right;
}
.payment-stars-icon .premium-sticker {
  width: 31px !important;
  height: 31px !important;
}

@media (max-width: 390px) {
  .profile-premium-card { padding: 15px !important; }
  .profile-premium-orb { width: 52px !important; height: 52px !important; }
  .premium-sticker-lg { width: 38px !important; height: 38px !important; }
  .profile-subscriptions-v2 h2 { font-size: 22px !important; }
  .profile-payment-sheet { padding: 15px; border-radius: 23px; }
  .profile-payment-method { min-height: 63px; }
}


/* v0.13.1 — profile cleanup + centered premium payment chooser */
.profile-identity-v2 {
  grid-template-columns: 68px minmax(0,1fr) !important;
}
.profile-brand-mini,
.profile-premium-orb,
.profile-premium-glow {
  display: none !important;
}

.profile-premium-card {
  background:
    linear-gradient(155deg, rgba(24,29,32,.99), rgba(12,15,17,.998)) !important;
}
.profile-subscriptions-v2 .profile-subscriptions-head {
  display: block !important;
}
.profile-premium-desc {
  max-width: 100% !important;
}

.profile-subscriptions-v2 .profile-plan {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 12px !important;
}
.profile-plan-prices {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 4px;
  min-width: 88px;
}
.profile-currency {
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: #e9f1f2;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1;
  font-weight: 720;
}
.profile-currency b {
  color: #f7fbfb;
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.02em;
}
.profile-currency i {
  color: #7f8b8e;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 760;
}
.profile-currency-rub i {
  width: 15px;
  height: 15px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  color: #dbe3e4;
  font-size: 9px;
  font-weight: 850;
}
.profile-currency-usdt i {
  color: #78dcd8;
  letter-spacing: .02em;
}
.profile-plan-prices .premium-sticker-price {
  width: 16px !important;
  height: 16px !important;
}
.profile-subscribe-button {
  justify-content: center !important;
}

.profile-payment-backdrop {
  align-items: center !important;
  justify-content: center !important;
  padding: max(18px, var(--safe-top)) calc(14px + var(--safe-right)) max(18px, var(--safe-bottom)) calc(14px + var(--safe-left)) !important;
}
.profile-payment-sheet {
  width: min(100%, 470px) !important;
  padding: 20px !important;
  border-radius: 27px !important;
  transform: translateY(8px) scale(.975) !important;
}
.profile-payment-backdrop.is-open .profile-payment-sheet {
  transform: translateY(0) scale(1) !important;
}
.profile-payment-head-centered {
  display: block !important;
  padding: 2px 42px 0 !important;
  margin: 0 0 18px !important;
  text-align: center;
}
.profile-payment-head-centered small {
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}
.profile-payment-head-centered h3 {
  margin: 7px 0 0 !important;
  color: #f4f9f9;
  font-size: 23px !important;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.profile-payment-head-centered p {
  margin: 7px 0 0 !important;
  color: #778285;
  font-size: 10.5px !important;
}

.profile-payment-methods-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px !important;
}
.profile-payment-methods-grid .profile-payment-method {
  width: 100%;
  min-width: 0;
  min-height: 82px !important;
  padding: 10px !important;
  grid-template-columns: 36px minmax(0,1fr) !important;
  gap: 9px !important;
  border-radius: 17px !important;
  text-align: left;
}
.profile-payment-method-stars {
  grid-column: 1 / -1;
  width: calc(50% - 4px) !important;
  justify-self: center;
}
.profile-payment-methods-grid .profile-payment-method-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
}
.profile-payment-methods-grid .payment-method-svg {
  width: 24px !important;
  height: 24px !important;
}
.profile-payment-methods-grid .profile-payment-method-copy {
  gap: 4px !important;
}
.profile-payment-methods-grid .profile-payment-method-copy strong {
  color: #eef7f7;
  font-size: 11.5px !important;
  line-height: 1.15;
}
.profile-payment-methods-grid .profile-payment-method-copy small {
  color: #737f82;
  font-size: 9px !important;
}
.profile-payment-methods-grid .profile-payment-method.is-selected {
  border-color: rgba(98,242,245,.42) !important;
  background: rgba(98,242,245,.065) !important;
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.05), 0 0 18px rgba(98,242,245,.04);
}
.profile-payment-methods-grid .payment-stars-icon .premium-sticker {
  width: 27px !important;
  height: 27px !important;
}

.profile-payment-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 12px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(98,242,245,.24);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(98,242,245,.96), rgba(75,220,228,.94));
  color: #041012;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 9px 25px rgba(65,227,233,.10);
}
.profile-payment-submit:active { transform: scale(.988); }
.profile-pay-amount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.profile-pay-amount b {
  font-size: 14px;
  font-weight: 900;
}
.profile-pay-amount i {
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}
.profile-pay-stars .premium-sticker-cta {
  width: 19px !important;
  height: 19px !important;
}

@media (max-width: 390px) {
  .profile-identity-v2 {
    grid-template-columns: 62px minmax(0,1fr) !important;
  }
  .profile-subscriptions-v2 .profile-plan {
    gap: 8px !important;
  }
  .profile-plan-prices { min-width: 82px; }
  .profile-currency b { font-size: 11px; }
  .profile-payment-sheet {
    width: min(100%, 360px) !important;
    padding: 16px !important;
    border-radius: 24px !important;
  }
  .profile-payment-head-centered h3 { font-size: 21px !important; }
  .profile-payment-methods-grid { gap: 7px !important; }
  .profile-payment-methods-grid .profile-payment-method {
    min-height: 78px !important;
    grid-template-columns: 32px minmax(0,1fr) !important;
    padding: 9px !important;
    gap: 7px !important;
  }
  .profile-payment-methods-grid .profile-payment-method-icon {
    width: 32px !important;
    height: 32px !important;
  }
  .profile-payment-methods-grid .profile-payment-method-copy strong {
    font-size: 10.5px !important;
  }
  .profile-payment-methods-grid .profile-payment-method-copy small {
    font-size: 8.5px !important;
  }
}

/* v0.13.2 — profile + subscription flow inspired by the reference, in ShizoLooks cyan */
.profile-page-v3 {
  display: grid;
  gap: 14px;
  padding: 0 2px 8px;
}
.profile-page-v3 .profile-page-title {
  margin-bottom: 1px !important;
}
.profile-identity-reference {
  min-height: 128px;
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 27px;
  border: 1px solid rgba(118,139,143,.24);
  background: linear-gradient(155deg, rgba(28,33,36,.98), rgba(18,21,23,.99));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.profile-identity-reference .profile-avatar-shell {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, rgba(98,242,245,.55), rgba(98,242,245,.10));
}
.profile-identity-reference .profile-avatar-image,
.profile-identity-reference .profile-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50% !important;
  object-fit: cover;
}
.profile-identity-reference .profile-nickname {
  color: #f4f8f8;
  font-size: 27px;
  font-weight: 610;
  letter-spacing: -.035em;
}
.profile-sub-status-pill {
  width: fit-content;
  min-height: 31px;
  margin-top: 10px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(122,137,141,.18);
  background: rgba(255,255,255,.025);
  color: #727d80;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .12em;
}
.profile-sub-status-pill.is-active {
  color: #7cf1ef;
  border-color: rgba(98,242,245,.26);
  background: rgba(98,242,245,.06);
}
.profile-sub-status-pill .profile-status-dot { display: none !important; }

.profile-subscription-summary {
  padding: 24px 22px 20px;
  border-radius: 28px;
  border: 1px solid rgba(118,139,143,.24);
  background: linear-gradient(155deg, rgba(27,31,34,.99), rgba(16,19,21,.995));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.profile-summary-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .14em;
}
.profile-summary-plan {
  margin-top: 23px;
  color: #f2f6f6;
  font-size: 32px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -.05em;
}
.profile-subscription-summary > p {
  max-width: 94%;
  margin: 16px 0 0;
  color: #80898c;
  font-size: 16px;
  line-height: 1.45;
}
.profile-summary-separator {
  height: 1px;
  margin: 23px 0 18px;
  background: rgba(124,140,144,.17);
}
.profile-open-subscription {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(98,242,245,.36);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(87,238,241,.98), rgba(63,213,222,.98));
  color: #041012;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: 0 12px 32px rgba(54,222,228,.10);
}
.profile-open-subscription svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-open-subscription:active { transform: scale(.989); }

html.profile-subscription-mode,
html.profile-subscription-mode body {
  height: 100%;
  overflow: hidden !important;
}
html.profile-subscription-mode .app-shell {
  position: fixed;
  inset: 0;
  width: min(100%, 720px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding-top: max(calc(var(--safe-top) - 26px), 0px) !important;
  padding-right: calc(var(--safe-right) + 12px) !important;
  padding-bottom: calc(var(--safe-bottom) + 12px) !important;
  padding-left: calc(var(--safe-left) + 12px) !important;
  overflow: hidden !important;
}
html.profile-subscription-mode .content {
  display: block;
  width: 100%;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html.profile-subscription-mode .content::-webkit-scrollbar { display: none; }

.profile-subscription-page {
  width: 100%;
  min-height: 100%;
  padding: 0 2px 12px;
  display: grid;
  align-content: start;
  gap: 12px;
}
.profile-subscription-header {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 1px;
}
.profile-subscription-back {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126,143,147,.22);
  border-radius: 16px;
  background: rgba(26,30,33,.95);
  color: #edf4f4;
}
.profile-subscription-back svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-subscription-header h2 {
  margin: 0;
  color: #f1f6f6;
  font-size: 32px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.055em;
}
.profile-subscription-header h2 span { color: var(--accent); }

.profile-benefit-card,
.profile-method-card,
.profile-plan-reference {
  border: 1px solid rgba(118,139,143,.22);
  background: linear-gradient(155deg, rgba(27,31,34,.99), rgba(16,19,21,.995));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
}
.profile-benefit-card {
  padding: 20px 20px 18px;
  border-radius: 25px;
}
.profile-benefit-label,
.profile-method-title {
  color: #808b8e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}
.profile-benefit-problem {
  margin: 13px 0 0;
  color: #d5dddd;
  font-size: 16px;
  line-height: 1.42;
}
.profile-benefit-divider {
  margin: 17px 0 15px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.profile-benefit-divider span { height: 1px; background: rgba(121,137,141,.18); }
.profile-benefit-divider i {
  color: var(--accent);
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}
.profile-benefit-solution {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 13px;
  align-items: center;
}
.profile-benefit-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.profile-benefit-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-benefit-solution strong {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
}
.profile-benefit-solution p {
  margin: 6px 0 0;
  color: #f0f5f5;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 650;
}
.profile-benefit-dots {
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.profile-benefit-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #3d484b;
}
.profile-benefit-dots button.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(98,242,245,.28);
}

.profile-method-card {
  padding: 17px;
  border-radius: 23px;
}
.profile-method-title { color: var(--accent); }
.profile-method-grid {
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.profile-method {
  min-width: 0;
  min-height: 78px;
  padding: 9px 6px 8px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(127,143,147,.20);
  border-radius: 16px;
  background: rgba(8,11,13,.30);
  color: #8b9598;
  text-align: center;
  font-size: 9.5px;
  font-weight: 780;
}
.profile-method.is-selected {
  border-color: rgba(98,242,245,.62);
  background: rgba(98,242,245,.075);
  color: #eefafa;
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.06), 0 0 18px rgba(98,242,245,.035);
}
.profile-method-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.profile-method-icon .premium-sticker { width: 30px !important; height: 30px !important; }
.profile-method-symbol {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(98,242,245,.22);
  background: rgba(98,242,245,.055);
  color: #e6f8f8;
  font-weight: 900;
}
.profile-method-symbol-rub { font-size: 20px; }
.profile-method-symbol-usdt {
  width: 42px;
  border-radius: 10px;
  color: #78e7df;
  font-size: 8px;
  letter-spacing: .01em;
}

.profile-plan-reference-list {
  display: grid;
  gap: 9px;
}
.profile-plan-reference {
  width: 100%;
  min-height: 100px;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: minmax(0,1fr) 38px;
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  text-align: left;
  color: inherit;
}
.profile-plan-reference.is-selected {
  border-color: rgba(98,242,245,.66);
  background: linear-gradient(155deg, rgba(23,38,40,.99), rgba(15,23,25,.995));
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.07), 0 0 22px rgba(98,242,245,.025);
}
.profile-plan-reference-copy { display: grid; gap: 7px; }
.profile-plan-reference-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-plan-reference-title-row strong {
  color: #f0f5f5;
  font-size: 18px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.025em;
}
.profile-plan-reference-badge {
  padding: 4px 7px;
  border-radius: 7px;
  border: 1px solid rgba(98,242,245,.24);
  background: rgba(98,242,245,.07);
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-plan-reference-price {
  min-height: 24px;
  display: flex;
  align-items: center;
}
.profile-selected-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e5eded;
}
.profile-selected-price b {
  color: #edf4f4;
  font-size: 20px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.035em;
}
.profile-selected-price i {
  color: #808b8e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}
.profile-selected-price .premium-sticker-price { width: 19px !important; height: 19px !important; }
.profile-plan-reference-copy > small {
  color: #596568;
  font-size: 10px;
  font-weight: 650;
}
.profile-plan-reference-check {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #343f42;
  border-radius: 50%;
  color: #041012;
  font-size: 17px;
  font-weight: 950;
}
.profile-plan-reference.is-selected .profile-plan-reference-check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 13px rgba(98,242,245,.18);
}

.profile-subscription-pay {
  width: 100%;
  min-height: 56px;
  margin-top: 1px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(98,242,245,.34);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(89,239,242,.98), rgba(64,216,224,.98));
  color: #041012;
  font-size: 16px;
  font-weight: 900;
}
.profile-subscription-pay .profile-selected-price,
.profile-subscription-pay .profile-selected-price b,
.profile-subscription-pay .profile-selected-price i { color: #041012; }
.profile-subscription-pay .profile-selected-price b { font-size: 16px; }
.profile-subscription-pay .premium-sticker-price { width: 18px !important; height: 18px !important; }
.profile-subscription-pay:active { transform: scale(.989); }

@media (max-width: 390px) {
  .profile-identity-reference { grid-template-columns: 72px minmax(0,1fr); gap: 13px; padding: 15px 16px; min-height: 112px; }
  .profile-identity-reference .profile-avatar-shell { width: 72px; height: 72px; }
  .profile-identity-reference .profile-nickname { font-size: 23px; }
  .profile-sub-status-pill { min-height: 28px; padding-inline: 11px; font-size: 9.5px; }
  .profile-subscription-summary { padding: 20px 18px 17px; }
  .profile-summary-plan { margin-top: 18px; font-size: 28px; }
  .profile-subscription-summary > p { font-size: 14px; }
  .profile-open-subscription { min-height: 54px; font-size: 16px; }

  html.profile-subscription-mode .app-shell {
    padding-right: calc(var(--safe-right) + 9px) !important;
    padding-left: calc(var(--safe-left) + 9px) !important;
  }
  .profile-subscription-header { min-height: 54px; gap: 11px; }
  .profile-subscription-back { width: 44px; height: 44px; flex-basis: 44px; border-radius: 14px; }
  .profile-subscription-header h2 { font-size: 28px; }
  .profile-benefit-card { padding: 17px 17px 16px; border-radius: 22px; }
  .profile-benefit-problem { font-size: 14.5px; }
  .profile-benefit-solution { grid-template-columns: 40px minmax(0,1fr); gap: 11px; }
  .profile-benefit-icon { width: 40px; height: 40px; }
  .profile-benefit-solution p { font-size: 13.5px; }
  .profile-method-card { padding: 14px; border-radius: 21px; }
  .profile-method-grid { gap: 5px; }
  .profile-method { min-height: 72px; padding-inline: 4px; font-size: 8.6px; }
  .profile-method-icon { width: 31px; height: 31px; }
  .profile-method-symbol-rub { font-size: 18px; }
  .profile-method-symbol-usdt { width: 38px; font-size: 7.5px; }
  .profile-plan-reference { min-height: 92px; padding: 13px 14px; border-radius: 20px; }
  .profile-plan-reference-title-row strong { font-size: 17px; }
  .profile-selected-price b { font-size: 18px; }
  .profile-plan-reference-check { width: 31px; height: 31px; }
}

/* v0.13.3 — system BackButton subscription + creator/affiliate page */
.profile-subscription-summary-clean {
  padding-top: 19px;
}
.profile-subscription-summary-clean .profile-summary-heading {
  margin-top: 10px;
  color: #f2f7f7;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 850;
  letter-spacing: -.035em;
}
.profile-subscription-summary-clean .profile-summary-note {
  margin-top: 10px;
  color: #647174;
  font-size: 11.5px;
  line-height: 1.45;
  font-weight: 650;
}

.profile-earn-card {
  padding: 19px 18px 17px;
  border: 1px solid rgba(107,129,133,.24);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(25,31,34,.97), rgba(15,19,21,.99));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015), 0 15px 36px rgba(0,0,0,.20);
}
.profile-earn-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}
.profile-earn-card h2 {
  margin: 10px 0 0;
  color: #f2f7f7;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.profile-earn-card > p {
  margin: 9px 0 0;
  color: #9aa5a7;
  font-size: 13.5px;
  line-height: 1.5;
}
.profile-earn-meta {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.profile-earn-meta span {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(98,242,245,.14);
  background: rgba(98,242,245,.045);
  color: #788587;
  font-size: 9.5px;
  font-weight: 700;
}
.profile-earn-meta b {
  color: #dff7f7;
  font-weight: 850;
}
.profile-earn-open {
  width: 100%;
  min-height: 52px;
  margin-top: 15px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(98,242,245,.28);
  border-radius: 17px;
  background: rgba(98,242,245,.075);
  color: #eaf9f9;
  font-size: 15px;
  font-weight: 850;
}
.profile-earn-open svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* no in-content back header: Telegram native BackButton owns navigation */
.profile-subscription-page-system-back {
  padding-top: 3px;
}
.profile-subscription-page-system-back .profile-benefit-card {
  margin-top: 0;
}
.profile-benefit-dots,
.profile-subscription-header {
  display: none !important;
}

html.profile-earn-mode,
html.profile-earn-mode body {
  min-height: 100%;
  background: #070a0b;
}
html.profile-earn-mode body {
  overflow: hidden !important;
}
html.profile-earn-mode .app-shell {
  position: fixed;
  inset: 0;
  width: min(100%, 720px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding-top: calc(var(--safe-top) + 5px) !important;
  padding-right: calc(var(--safe-right) + 11px) !important;
  padding-bottom: calc(var(--safe-bottom) + 11px) !important;
  padding-left: calc(var(--safe-left) + 11px) !important;
  overflow: hidden !important;
}
html.profile-earn-mode .content {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
html.profile-earn-mode .content::-webkit-scrollbar { display: none; }

.profile-earn-page {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 2px 0 18px;
}
.profile-earn-page-brand {
  padding: 2px 4px 0;
  text-align: center;
  color: rgba(235,248,249,.92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.affiliate-video-card,
.affiliate-intro-card,
.affiliate-rules-card,
.affiliate-payout-card,
.affiliate-policy-card,
.affiliate-contact-card {
  border: 1px solid rgba(104,128,132,.24);
  border-radius: 23px;
  background: linear-gradient(155deg, rgba(24,30,33,.97), rgba(14,18,20,.995));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012), 0 12px 30px rgba(0,0,0,.18);
}
.affiliate-video-card { padding: 13px; }
.affiliate-video-head {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.affiliate-video-head div { min-width: 0; }
.affiliate-video-head small,
.affiliate-kicker,
.affiliate-section-title,
.affiliate-contact-card > small {
  display: block;
  color: var(--accent);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .12em;
}
.affiliate-video-head strong {
  display: block;
  margin-top: 3px;
  color: #eef5f5;
  font-size: 14px;
  font-weight: 800;
}
.affiliate-video-head > span {
  padding: 5px 7px;
  border-radius: 8px;
  border: 1px solid rgba(98,242,245,.18);
  color: #7c8b8e;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .09em;
}
.affiliate-example-video {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: min(52dvh, 520px);
  display: block;
  object-fit: cover;
  border-radius: 17px;
  background: #050708;
  border: 1px solid rgba(98,242,245,.14);
}
.affiliate-video-fallback {
  min-height: 160px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 17px;
  background: #090d0f;
  color: #697679;
  text-align: center;
  font-size: 12px;
}
.affiliate-intro-card,
.affiliate-rules-card,
.affiliate-payout-card,
.affiliate-policy-card,
.affiliate-contact-card { padding: 18px; }
.affiliate-intro-card h2 {
  margin: 9px 0 0;
  color: #f1f7f7;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.affiliate-intro-card > p,
.affiliate-contact-card > p {
  margin: 10px 0 0;
  color: #9aa6a8;
  font-size: 13.5px;
  line-height: 1.55;
}
.affiliate-rate-grid {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.affiliate-rate-grid > div {
  padding: 13px;
  border: 1px solid rgba(98,242,245,.13);
  border-radius: 15px;
  background: rgba(98,242,245,.035);
}
.affiliate-rate-grid b {
  display: block;
  color: #e9f8f8;
  font-size: 17px;
  font-weight: 900;
}
.affiliate-rate-grid span {
  display: block;
  margin-top: 5px;
  color: #697679;
  font-size: 9.5px;
  line-height: 1.35;
}
.affiliate-rule-list {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}
.affiliate-rule-list article {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.018);
  border: 1px solid rgba(116,136,140,.12);
}
.affiliate-rule-list article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(98,242,245,.07);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
}
.affiliate-rule-list strong {
  color: #edf4f4;
  font-size: 13px;
  font-weight: 850;
}
.affiliate-rule-list p {
  margin: 4px 0 0;
  color: #829093;
  font-size: 11.5px;
  line-height: 1.48;
}
.affiliate-payout-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 7px;
}
.affiliate-payout-grid > div {
  min-width: 0;
  min-height: 86px;
  padding: 10px 5px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border-radius: 15px;
  border: 1px solid rgba(98,242,245,.13);
  background: rgba(98,242,245,.03);
  color: #a2adaf;
  text-align: center;
  font-size: 9px;
  font-weight: 750;
}
.affiliate-payout-symbol,
.affiliate-payout-usdt {
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(98,242,245,.20);
  background: rgba(98,242,245,.055);
  color: #e8f8f8;
  font-weight: 900;
}
.affiliate-payout-symbol { font-size: 20px; }
.affiliate-payout-usdt { color: #75e5dd; font-size: 8px; }
.affiliate-premium-sticker { width: 32px !important; height: 32px !important; }
.affiliate-policy-card ul {
  margin: 13px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.affiliate-policy-card li {
  position: relative;
  padding-left: 19px;
  color: #899699;
  font-size: 11.5px;
  line-height: 1.5;
}
.affiliate-policy-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 7px rgba(98,242,245,.28);
}
.affiliate-contact-card h3 {
  margin: 8px 0 0;
  color: #f1f7f7;
  font-size: 22px;
  letter-spacing: -.02em;
}
.affiliate-contact-card button {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(98,242,245,.33);
  background: var(--accent);
  color: #041012;
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 390px) {
  .profile-subscription-summary-clean .profile-summary-heading { font-size: 23px; }
  .profile-earn-card h2 { font-size: 21px; }
  html.profile-earn-mode .app-shell {
    padding-right: calc(var(--safe-right) + 9px) !important;
    padding-left: calc(var(--safe-left) + 9px) !important;
  }
  .affiliate-intro-card h2 { font-size: 21px; }
  .affiliate-rate-grid { gap: 6px; }
  .affiliate-payout-grid { gap: 5px; }
  .affiliate-payout-grid > div { min-height: 82px; font-size: 8.3px; }
}

/* v0.13.4 — affiliate card generator, no video example */
.affiliate-card-create-entry {
  padding: 18px;
  border: 1px solid rgba(98,242,245,.20);
  border-radius: 23px;
  background:
    radial-gradient(circle at 86% 18%, rgba(98,242,245,.08), transparent 34%),
    linear-gradient(155deg, rgba(24,30,33,.98), rgba(14,18,20,.995));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012), 0 12px 30px rgba(0,0,0,.18);
}
.affiliate-card-create-entry h3 {
  margin: 9px 0 0;
  color: #f1f7f7;
  font-size: 21px;
  line-height: 1.13;
  letter-spacing: -.025em;
}
.affiliate-card-create-entry p {
  margin: 9px 0 0;
  color: #8e9a9d;
  font-size: 12.5px;
  line-height: 1.52;
}
.affiliate-card-create-entry button {
  width: 100%;
  min-height: 53px;
  margin-top: 14px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 16px;
  border: 1px solid rgba(98,242,245,.34);
  background: rgba(98,242,245,.07);
  color: #e9f8f8;
  font-size: 14px;
  font-weight: 900;
}
.affiliate-card-create-entry button svg {
  width: 19px;
  height: 19px;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.profile-affiliate-card-mode,
html.profile-affiliate-card-mode body {
  height: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}
html.profile-affiliate-card-mode .app-shell {
  position: fixed;
  inset: 0;
  width: min(100%, 720px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  padding-top: calc(var(--safe-top) + 5px) !important;
  padding-right: calc(var(--safe-right) + 11px) !important;
  padding-bottom: calc(var(--safe-bottom) + 11px) !important;
  padding-left: calc(var(--safe-left) + 11px) !important;
  overflow: hidden !important;
}
html.profile-affiliate-card-mode .content {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
html.profile-affiliate-card-mode .content::-webkit-scrollbar { display: none; }

.affiliate-card-page {
  width: 100%;
  display: grid;
  gap: 10px;
  padding: 2px 0 20px;
}
.affiliate-card-builder {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(104,128,132,.24);
  background:
    radial-gradient(circle at 84% 4%, rgba(98,242,245,.065), transparent 30%),
    linear-gradient(155deg, rgba(24,30,33,.98), rgba(14,18,20,.995));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.012), 0 14px 34px rgba(0,0,0,.20);
}
.affiliate-card-builder h2 {
  margin: 8px 0 0;
  color: #f1f7f7;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: -.032em;
}
.affiliate-card-builder-lead {
  margin: 9px 0 0;
  color: #8c999c;
  font-size: 12px;
  line-height: 1.5;
}
.affiliate-builder-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(118,137,141,.13);
}
.affiliate-builder-label {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.affiliate-builder-label b {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(98,242,245,.07);
  border: 1px solid rgba(98,242,245,.14);
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
}
.affiliate-builder-label span {
  color: #edf4f4;
  font-size: 13px;
  font-weight: 850;
}
.affiliate-builder-section > small {
  display: block;
  margin-top: 8px;
  color: #687679;
  font-size: 10px;
  line-height: 1.4;
}
.affiliate-photo-tile {
  position: relative;
  width: min(100%, 310px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 23px;
  border: 1px dashed rgba(98,242,245,.28);
  background: rgba(4,10,12,.62);
}
.affiliate-photo-tile.has-photo {
  border-style: solid;
  border-color: rgba(98,242,245,.30);
}
.affiliate-photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.affiliate-photo-plus {
  color: var(--accent);
  font-size: 43px;
  font-weight: 300;
  line-height: 1;
  text-shadow: 0 0 18px rgba(98,242,245,.22);
}
.affiliate-photo-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(4,9,11,.77);
  border: 1px solid rgba(255,255,255,.07);
  color: #d8e4e5;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(7px);
}
.affiliate-sex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}
.affiliate-sex-grid button,
.affiliate-rank-chip {
  min-height: 45px;
  padding: 0 10px;
  border-radius: 14px;
  border: 1px solid rgba(113,135,139,.19);
  background: rgba(255,255,255,.017);
  color: #8b999b;
  font-size: 12px;
  font-weight: 800;
}
.affiliate-sex-grid button.is-selected,
.affiliate-rank-chip.is-selected {
  border-color: rgba(98,242,245,.48);
  background: rgba(98,242,245,.09);
  color: #ecfbfb;
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.06), 0 0 18px rgba(98,242,245,.07);
}
.affiliate-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px;
}
.affiliate-generate-card {
  width: 100%;
  min-height: 55px;
  margin-top: 17px;
  border: 0;
  border-radius: 17px;
  background: var(--accent);
  color: #041012;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 0 22px rgba(98,242,245,.10);
}
.affiliate-generate-card:disabled {
  opacity: .32;
  cursor: default;
}
.affiliate-generate-card.is-loading { opacity: .70; }
.affiliate-generate-note {
  margin-top: 8px;
  color: #657376;
  text-align: center;
  font-size: 9.5px;
  line-height: 1.4;
}

@media (max-width: 390px) {
  html.profile-affiliate-card-mode .app-shell {
    padding-right: calc(var(--safe-right) + 9px) !important;
    padding-left: calc(var(--safe-left) + 9px) !important;
  }
  .affiliate-card-builder { padding: 16px; }
  .affiliate-card-builder h2 { font-size: 21px; }
  .affiliate-photo-tile { width: min(100%, 280px); }
  .affiliate-rank-chip { min-height: 42px; font-size: 11px; }
}

/* v0.14.0 — account settings, freemium gates and server-backed registration */
.profile-page-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.profile-page-title-row .profile-page-title { margin: 0; flex: 1; }
.profile-settings-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98,242,245,.18);
  border-radius: 14px;
  background: rgba(20,26,28,.78);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025), 0 0 18px rgba(98,242,245,.06);
}
.profile-settings-button svg {
  width: 21px;
  height: 21px;
  stroke: rgba(226,244,246,.82);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-settings-button:active { transform: scale(.96); }

html.profile-settings-mode,
html.profile-settings-mode body {
  min-height: 100%;
  background: #090b0d;
}
html.profile-settings-mode .app-shell {
  padding-top: calc(var(--safe-top) + 8px) !important;
  padding-bottom: calc(var(--safe-bottom) + 22px) !important;
  overflow: hidden;
}
html.profile-settings-mode .content {
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
html.profile-settings-mode .content::-webkit-scrollbar { display: none; }
.profile-settings-page {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 4px 2px 24px;
  display: grid;
  gap: 12px;
}
.profile-settings-head {
  padding: 12px 4px 4px;
}
.profile-settings-kicker {
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .18em;
}
.profile-settings-head h2 {
  margin: 5px 0 4px;
  font-size: 30px;
  line-height: 1;
}
.profile-settings-head p {
  margin: 0;
  color: rgba(222,233,235,.58);
  font-size: 13px;
  line-height: 1.45;
}
.profile-settings-card {
  border: 1px solid rgba(139,166,170,.18);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(28,33,36,.94), rgba(18,22,24,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}
.profile-settings-card + .profile-settings-card { margin-top: 2px; }
.profile-settings-row-copy strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}
.profile-settings-row-copy span {
  color: rgba(220,232,234,.5);
  font-size: 12px;
}
.profile-language-switch {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-language-switch button {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(132,158,163,.18);
  background: rgba(11,14,16,.7);
  font-weight: 850;
  color: rgba(226,238,240,.58);
}
.profile-language-switch button.is-selected {
  border-color: rgba(98,242,245,.5);
  background: rgba(45,178,183,.12);
  color: #dffeff;
  box-shadow: inset 0 0 0 1px rgba(98,242,245,.08), 0 0 18px rgba(98,242,245,.08);
}
.profile-delete-account {
  width: 100%;
  min-height: 46px;
  margin-top: 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,93,103,.26);
  background: rgba(108,31,36,.14);
  color: rgba(255,147,153,.92);
  font-weight: 800;
}
.profile-delete-confirm {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.profile-delete-confirm p {
  margin: 0 0 12px;
  color: rgba(234,223,224,.72);
  font-size: 12px;
  line-height: 1.48;
}
.profile-delete-confirm > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-delete-confirm button { min-height: 44px; border-radius: 13px; }
.profile-delete-confirm .danger {
  border: 1px solid rgba(255,90,100,.34);
  background: rgba(132,31,37,.24);
  color: #ffb0b5;
  font-weight: 850;
}
.account-deleted-screen {
  min-height: 65vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 10px;
  padding: 26px;
}
.account-deleted-screen strong { font-size: 25px; }
.account-deleted-screen p { margin: 0; color: rgba(224,235,237,.62); line-height: 1.5; }
.account-deleted-screen button {
  margin-top: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 15px;
  background: var(--accent);
  color: #061012;
  font-weight: 900;
}

.nutrition-quick-ai-note b {
  display: block;
  margin-top: 7px;
  color: rgba(115,239,242,.86);
  font-size: 11px;
}
.nutrition-premium-limit {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border-radius: 13px;
  border: 1px solid rgba(98,242,245,.32);
  background: rgba(54,199,203,.09);
  color: #c8fbfc;
  font-weight: 850;
}

.analysis-premium-ready {
  width: 100%;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 112px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 2px 18px;
}
.analysis-premium-ready-brand {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(235,250,252,.92);
}
.analysis-premium-ready-photo {
  width: min(62vw, 250px);
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(98,242,245,.34);
  box-shadow: 0 0 24px rgba(98,242,245,.09), 0 22px 46px rgba(0,0,0,.28);
}
.analysis-premium-ready-photo img { width: 100%; height: 100%; object-fit: cover; }
.analysis-premium-ready-card {
  width: 100%;
  border: 1px solid rgba(112,145,149,.22);
  border-radius: 24px;
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(25,30,33,.97), rgba(15,19,21,.97));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.analysis-premium-ready-card > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}
.analysis-premium-ready-card h2 { margin: 7px 0 6px; font-size: 26px; }
.analysis-premium-ready-card p { margin: 0 auto 15px; max-width: 520px; color: rgba(221,233,235,.63); font-size: 13px; line-height: 1.48; }
.analysis-premium-ready-card #analysis-premium-open,
.analysis-premium-ready-card .analysis-premium-back {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  font-weight: 850;
}
.analysis-premium-ready-card #analysis-premium-open {
  border: 0;
  background: var(--accent);
  color: #061012;
}
.analysis-premium-ready-card .analysis-premium-back {
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
  color: rgba(232,241,242,.74);
}

@media (max-width: 390px) {
  .profile-settings-page { gap: 10px; }
  .profile-settings-card { padding: 14px; border-radius: 20px; }
  .analysis-premium-ready-photo { width: min(58vw, 220px); }
  .analysis-premium-ready-card { padding: 16px 14px; }
}
.profile-page-title-row { position: relative; justify-content: center; }
.profile-page-title-row .profile-page-title { flex: none; width: 100%; text-align: center; }
.profile-settings-button { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.profile-settings-button:active { transform: translateY(-50%) scale(.96); }

/* v0.14.1 — safe-area polish + GPT paywall CTA + referrals */
html.analysis-flow-mode .app-shell {
  padding-top: calc(var(--safe-top) + 10px) !important;
}
html.analysis-flow-mode .topbar {
  margin-bottom: 14px !important;
}
@media (max-width: 390px) {
  html.analysis-flow-mode .app-shell {
    padding-top: calc(var(--safe-top) + 8px) !important;
  }
}

html.profile-subscription-mode .app-shell {
  padding-top: calc(var(--safe-top) + 10px) !important;
}
.profile-subscription-page-system-back {
  padding-top: 2px !important;
}

html.profile-settings-mode .app-shell {
  position: fixed !important;
  inset: 0 !important;
  width: min(100%, 720px) !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding-top: calc(var(--safe-top) + 12px) !important;
  padding-right: calc(var(--safe-right) + 12px) !important;
  padding-bottom: calc(var(--safe-bottom) + 18px) !important;
  padding-left: calc(var(--safe-left) + 12px) !important;
  overflow: hidden !important;
}
html.profile-settings-mode .content {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
.profile-settings-page {
  padding-top: 0 !important;
}
.profile-settings-head {
  padding-top: 2px !important;
}

.shizogpt-premium-cta {
  width: 100%;
  min-height: 44px;
  margin-top: 13px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(98,242,245,.34);
  background: rgba(98,242,245,.09);
  color: #dfffff;
  font-size: 12.5px;
  font-weight: 850;
  letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), 0 0 18px rgba(98,242,245,.055);
}
.shizogpt-premium-cta:active { transform: scale(.985); }

.profile-referral-card {
  padding: 19px 18px 17px;
  border: 1px solid rgba(98,242,245,.20);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 18%, rgba(98,242,245,.08), transparent 33%),
    linear-gradient(155deg, rgba(25,31,34,.98), rgba(15,19,21,.995));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.014), 0 15px 36px rgba(0,0,0,.18);
}
.profile-referral-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}
.profile-referral-card h2 {
  margin: 10px 0 0;
  color: #f2f7f7;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.profile-referral-card > p {
  margin: 9px 0 0;
  color: #97a3a5;
  font-size: 13px;
  line-height: 1.52;
}
.profile-referral-stats {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-referral-stats span {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid rgba(98,242,245,.11);
  background: rgba(7,12,14,.34);
  color: #718083;
  font-size: 9.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.profile-referral-stats b {
  color: #effcfc;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -.04em;
}
.profile-referral-open {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 17px;
  border: 1px solid rgba(98,242,245,.31);
  background: rgba(98,242,245,.075);
  color: #eafafa;
  font-size: 15px;
  font-weight: 850;
}
.profile-referral-open svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-referral-open:active { transform: scale(.989); }

html.profile-mode:not(.profile-subscription-mode):not(.profile-settings-mode):not(.profile-earn-mode):not(.profile-affiliate-card-mode) .app-shell {
  padding-top: calc(var(--safe-top) + 8px) !important;
}

/* v0.14.2 — profile/settings polish + real payment controls */
.profile-page-v3 > .profile-page-title {
  margin: 0 0 10px !important;
  text-align: center;
}
.profile-identity-reference {
  position: relative !important;
  padding-right: 62px !important;
}
.profile-identity-reference .profile-settings-button {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  transform: none !important;
  z-index: 3;
}
.profile-identity-reference .profile-settings-button:active {
  transform: scale(.96) !important;
}
.profile-identity-reference .profile-settings-button svg {
  width: 19px !important;
  height: 19px !important;
}

html.profile-settings-mode .app-shell {
  padding-top: calc(var(--tg-js-content-safe-top, var(--safe-top)) + 14px) !important;
}
.profile-settings-page-clean {
  gap: 10px !important;
  padding: 0 2px 22px !important;
}
.profile-settings-page-clean .profile-settings-head {
  padding: 0 4px 7px !important;
}
.profile-settings-page-clean .profile-settings-head h2 {
  margin-top: 6px !important;
  font-size: 27px !important;
}
.profile-settings-page-clean .profile-settings-card {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  column-gap: 12px;
  align-items: center;
  padding: 15px !important;
  border-radius: 20px !important;
}
.profile-settings-page-clean .profile-settings-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(98,242,245,.18);
  border-radius: 13px;
  background: rgba(98,242,245,.055);
  color: var(--accent);
}
.profile-settings-page-clean .profile-settings-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-settings-page-clean .profile-settings-icon-danger {
  border-color: rgba(255,99,110,.18);
  background: rgba(255,99,110,.05);
  color: #ff929a;
}
.profile-settings-page-clean .profile-language-switch,
.profile-settings-page-clean .profile-delete-account,
.profile-settings-page-clean .profile-delete-confirm {
  grid-column: 1 / -1;
}
.profile-settings-page-clean .profile-language-switch {
  margin-top: 12px !important;
}
.profile-settings-page-clean .profile-delete-account {
  margin-top: 12px !important;
}

.profile-bank-card-icon {
  width: 31px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-method.is-selected .profile-bank-card-icon {
  color: #eaffff;
  filter: drop-shadow(0 0 7px rgba(98,242,245,.18));
}
.profile-subscription-pay.is-loading {
  opacity: .78;
  pointer-events: none;
}

@media (max-width: 390px) {
  .profile-identity-reference { padding-right: 56px !important; }
  .profile-identity-reference .profile-settings-button { top: 12px !important; right: 12px !important; width: 36px !important; height: 36px !important; }
  .profile-settings-page-clean .profile-settings-card { padding: 14px !important; grid-template-columns: 39px minmax(0,1fr); gap: 10px; }
  .profile-settings-page-clean .profile-settings-icon { width: 39px; height: 39px; }
}


/* v0.14.2 final — settings button stays fully inside the profile card */
.profile-identity-reference .profile-settings-button {
  display: grid !important;
  place-items: center !important;
  overflow: visible !important;
  padding: 0 !important;
}
.profile-identity-reference .profile-settings-button svg {
  display: block !important;
  overflow: visible !important;
  flex: none !important;
}
.profile-settings-page-clean .profile-settings-head {
  margin-top: 2px !important;
}


/* v0.14.3 — unify Analysis/Profile scale with Nutrition */
.analysis-dashboard {
  gap: 11px !important;
}
.analysis-dashboard .analysis-page-title,
.profile-page-v3 > .profile-page-title {
  margin-bottom: 7px !important;
  font-size: 13px !important;
}
.analysis-launch-card {
  padding: 19px !important;
  border-radius: 25px !important;
  border-color: rgba(104,241,247,.15) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 14px 34px rgba(0,0,0,.24) !important;
}
.analysis-launch-top {
  grid-template-columns: 52px minmax(0,1fr) !important;
  min-height: 60px !important;
  gap: 13px !important;
}
.analysis-launch-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 16px !important;
}
.analysis-launch-icon svg {
  width: 35px !important;
  height: 35px !important;
}
.analysis-launch-kicker {
  font-size: 9px !important;
  letter-spacing: .16em !important;
}
.analysis-launch-copy h2 {
  margin-top: 4px !important;
  font-size: 26px !important;
  line-height: 1.02 !important;
}
.analysis-launch-copy p {
  margin-top: 8px !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
.analysis-last-strip {
  min-height: 70px !important;
  margin: 16px 0 11px !important;
  padding: 8px 11px 8px 8px !important;
  grid-template-columns: 52px minmax(0,1fr) auto 18px !important;
  gap: 11px !important;
  border-radius: 18px !important;
}
.analysis-last-strip img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 15px !important;
}
.analysis-last-copy small,
.analysis-last-potential small {
  font-size: 9px !important;
}
.analysis-last-copy strong { font-size: 23px !important; }
.analysis-last-copy i { font-size: 10.5px !important; }
.analysis-last-potential b { font-size: 22px !important; }
.analysis-first-hint {
  min-height: 42px !important;
  margin: 15px 0 10px !important;
  font-size: 11px !important;
}
.analysis-first-hint span {
  width: 8px !important;
  height: 8px !important;
}
.analysis-launch-button {
  min-height: 54px !important;
  border-radius: 18px !important;
  padding-inline: 19px !important;
  font-size: 16.5px !important;
}
.analysis-dashboard .history-block { gap: 11px !important; }
.analysis-dashboard .history-title { padding: 5px 3px 2px !important; }
.analysis-dashboard .history-title h3 {
  font-size: 20px !important;
  letter-spacing: -.025em !important;
}
.history-count-pill {
  min-width: 34px !important;
  height: 30px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}
.analysis-dashboard .history-list { gap: 9px !important; }
.analysis-dashboard .analysis-history-card {
  min-height: 108px !important;
  padding: 13px !important;
  grid-template-columns: 78px minmax(0,1fr) !important;
  gap: 13px !important;
  border-radius: 21px !important;
}
.history-photo-shell,
.analysis-dashboard .history-photo {
  width: 78px !important;
  height: 78px !important;
}
.analysis-dashboard .history-photo { border-radius: 17px !important; }
.analysis-dashboard .history-meta { margin-bottom: 10px !important; }
.analysis-dashboard .history-date { font-size: 11px !important; }
.history-rank { font-size: 10px !important; }
.analysis-dashboard .history-arrow { font-size: 24px !important; }
.analysis-dashboard .history-scores { gap: 13px !important; }
.analysis-dashboard .history-score strong { font-size: 24px !important; }
.analysis-dashboard .history-score span { font-size: 9px !important; }
.history-mini-track { height: 5px !important; }
.analysis-dashboard .empty-history {
  min-height: 190px !important;
  grid-template-columns: 56px minmax(0,1fr) !important;
  gap: 16px !important;
  padding: 20px !important;
  border-radius: 22px !important;
}
.empty-history-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 17px !important;
}
.analysis-dashboard .empty-history strong { font-size: 15px !important; }
.analysis-dashboard .empty-history span {
  max-width: 270px !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

/* Profile uses the same density/radii rhythm as Nutrition. */
.profile-page-v3 {
  gap: 10px !important;
  padding-inline: 0 !important;
}
.profile-identity-reference {
  min-height: 118px !important;
  grid-template-columns: 76px minmax(0,1fr) !important;
  gap: 14px !important;
  padding: 17px 18px !important;
  border-radius: 23px !important;
}
.profile-identity-reference .profile-avatar-shell {
  width: 76px !important;
  height: 76px !important;
}
.profile-identity-reference .profile-nickname {
  font-size: 24px !important;
}
.profile-sub-status-pill {
  min-height: 29px !important;
  margin-top: 8px !important;
  font-size: 10px !important;
}
.profile-subscription-summary,
.profile-referral-card,
.profile-earn-card {
  padding: 18px !important;
  border-radius: 22px !important;
}
.profile-summary-kicker,
.profile-referral-kicker,
.profile-earn-kicker {
  font-size: 10px !important;
}
.profile-summary-heading,
.profile-referral-card h2,
.profile-earn-card h2 {
  font-size: 22px !important;
}
.profile-subscription-summary > p,
.profile-referral-card > p,
.profile-earn-card > p {
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}
.profile-open-subscription,
.profile-referral-open,
.profile-earn-open {
  min-height: 54px !important;
  border-radius: 18px !important;
  font-size: 15px !important;
}

@media (max-width: 390px) {
  .analysis-launch-card { padding: 17px !important; border-radius: 22px !important; }
  .analysis-launch-top { grid-template-columns: 48px minmax(0,1fr) !important; gap: 11px !important; }
  .analysis-launch-icon { width: 48px !important; height: 48px !important; }
  .analysis-launch-copy h2 { font-size: 24px !important; }
  .analysis-launch-copy p { font-size: 11.5px !important; }
  .analysis-dashboard .history-title h3 { font-size: 19px !important; }
  .analysis-dashboard .analysis-history-card {
    min-height: 100px !important;
    grid-template-columns: 70px minmax(0,1fr) !important;
    gap: 11px !important;
    padding: 11px !important;
  }
  .history-photo-shell,
  .analysis-dashboard .history-photo { width: 70px !important; height: 70px !important; }
  .analysis-dashboard .history-score strong { font-size: 22px !important; }
  .profile-identity-reference {
    grid-template-columns: 72px minmax(0,1fr) !important;
    padding: 16px !important;
  }
  .profile-identity-reference .profile-avatar-shell { width: 72px !important; height: 72px !important; }
  .profile-identity-reference .profile-nickname { font-size: 23px !important; }
}


/* v0.14.4 — compact empty analysis history */
.analysis-dashboard .empty-history {
  min-height: 104px !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 13px 15px !important;
  border-radius: 19px !important;
  align-items: center !important;
}
.analysis-dashboard .empty-history-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
}
.analysis-dashboard .empty-history-icon svg {
  width: 25px !important;
  height: 25px !important;
}
.analysis-dashboard .empty-history strong {
  font-size: 14.5px !important;
  line-height: 1.15 !important;
  margin-bottom: 3px !important;
}
.analysis-dashboard .empty-history span {
  max-width: 310px !important;
  margin-top: 2px !important;
  font-size: 10.5px !important;
  line-height: 1.4 !important;
}
@media (max-width: 390px) {
  .analysis-dashboard .empty-history {
    min-height: 96px !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px 13px !important;
  }
  .analysis-dashboard .empty-history-icon {
    width: 40px !important;
    height: 40px !important;
  }
}

/* v0.15.0 — paid gift loop: one bonus analysis for a new friend */
.profile-gift-card {
  position: relative;
  overflow: hidden;
}
.profile-gift-card::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -72px;
  top: -88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,244,246,.105), rgba(99,244,246,0) 70%);
  pointer-events: none;
}
.profile-gift-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}
.profile-gift-title-row h2 {
  margin: 0 !important;
}
.profile-gift-count {
  flex: 0 0 auto;
  min-width: 46px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(105,245,247,.26);
  background: rgba(99,242,245,.085);
  color: #cfffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.03em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.015), 0 0 18px rgba(98,242,245,.05);
}
.profile-gift-card.has-gift .profile-gift-count {
  border-color: rgba(111,250,249,.44);
  background: rgba(99,242,245,.13);
  color: #efffff;
  text-shadow: 0 0 13px rgba(105,246,248,.28);
}
.profile-referral-open.is-empty {
  color: #b8c4c5;
  border-color: rgba(255,255,255,.085);
  background: rgba(255,255,255,.035);
}
.profile-referral-open.is-empty svg {
  stroke: #788487;
}
.profile-gift-footnote {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: #5f6d70;
  font-size: 9.5px;
  line-height: 1.45;
}
.analysis-first-hint.has-bonus-analysis {
  color: #bffafa !important;
  border-color: rgba(98,242,245,.19) !important;
  background: rgba(98,242,245,.06) !important;
}
.analysis-first-hint.has-bonus-analysis > span {
  background: var(--accent) !important;
  box-shadow: 0 0 10px rgba(98,242,245,.45) !important;
}


/* v0.15.1 — one visual scale across Profile / Nutrition / Analysis / ShizoGPT */
:root {
  --main-page-gap: 10px;
  --main-card-radius: 22px;
  --main-card-pad: 18px;
  --main-action-height: 54px;
  --main-page-title-size: 13px;
}

/* All four main tabs use the Profile proportions. */
.nutrition-page,
.analysis-home.analysis-dashboard,
.profile-page-v3,
.shizogpt-page {
  width: 100% !important;
  max-width: none !important;
}
.nutrition-page,
.analysis-home.analysis-dashboard,
.profile-page-v3 {
  gap: var(--main-page-gap) !important;
}
.nutrition-page-title,
.analysis-dashboard .analysis-page-title,
.profile-page-v3 > .profile-page-title,
.shizogpt-page-title {
  margin: 0 0 7px !important;
  padding: 0 4px !important;
  font-size: var(--main-page-title-size) !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
}

/* Nutrition cards now match Profile's 18px / 22px rhythm. */
.nutrition-hero,
.nutrition-water-card.nutrition-water-panel,
.nutrition-recommend-card.nutrition-recommend-wide,
.nutrition-entry-panel-v2,
.nutrition-log {
  padding: var(--main-card-pad) !important;
  border-radius: var(--main-card-radius) !important;
}
.nutrition-macro-card {
  min-height: 90px !important;
  padding: 14px 12px !important;
  border-radius: 18px !important;
}
.nutrition-main-number { font-size: 31px !important; }
.nutrition-main-caption { font-size: 11px !important; }
.nutrition-macro-head > span { font-size: 11px !important; }
.nutrition-macro-head b { font-size: 20px !important; }
.nutrition-water-title { font-size: 14px !important; }
.nutrition-water-value { font-size: 27px !important; }
.nutrition-recommend-wide > strong { font-size: 20px !important; }
.nutrition-recommend-wide > p { font-size: 12.5px !important; }
.nutrition-add-button,
.nutrition-entry-actions .primary,
.nutrition-entry-actions .secondary {
  min-height: var(--main-action-height) !important;
  border-radius: 18px !important;
  font-size: 15px !important;
}

/* Analysis home follows exactly the same card/button scale. */
.analysis-launch-card {
  padding: var(--main-card-pad) !important;
  border-radius: var(--main-card-radius) !important;
}
.analysis-launch-copy h2 { font-size: 24px !important; }
.analysis-launch-copy p { font-size: 12.5px !important; }
.analysis-launch-button {
  min-height: var(--main-action-height) !important;
  border-radius: 18px !important;
  font-size: 15px !important;
}
.analysis-dashboard .history-title h3 { font-size: 20px !important; }
.analysis-dashboard .analysis-history-card {
  border-radius: var(--main-card-radius) !important;
}

/* ShizoGPT used to look visibly smaller than Profile. Keep the fixed workspace,
   but use the same text, controls and corner scale. */
html.shizogpt-mode .app-shell {
  padding-right: calc(var(--safe-right) + 12px) !important;
  padding-left: calc(var(--safe-left) + 12px) !important;
}
.shizogpt-page { gap: var(--main-page-gap) !important; }
.shizogpt-dialog {
  padding: 16px 14px 18px !important;
  border-radius: var(--main-card-radius) !important;
  gap: 13px !important;
}
.shizogpt-message {
  padding: 12px 13px !important;
  border-radius: 17px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}
.shizogpt-mini-logo {
  width: 27px !important;
  height: 27px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
}
.assistant-message {
  grid-template-columns: 27px minmax(0,1fr) !important;
  gap: 9px !important;
}
.shizogpt-suggestions {
  gap: 7px !important;
}
.shizogpt-suggestions button {
  min-height: 42px !important;
  padding: 0 7px !important;
  border-radius: 13px !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}
.shizogpt-composer {
  min-height: var(--main-action-height) !important;
  grid-template-columns: minmax(0,1fr) 48px !important;
  padding: 6px !important;
  border-radius: 18px !important;
}
.shizogpt-composer textarea {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 12px 11px !important;
  font-size: 14px !important;
  line-height: 24px !important;
}
.shizogpt-composer button {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}
.shizogpt-limit-message {
  border-color: rgba(98,242,245,.16) !important;
  background: linear-gradient(145deg, rgba(24,31,33,.98), rgba(15,20,22,.99)) !important;
}
.shizogpt-limit-message > div {
  display: grid;
  gap: 5px;
}
.shizogpt-limit-message b {
  color: #eaffff;
  font-size: 13px;
}
.shizogpt-limit-message span:not(.shizogpt-mini-logo) {
  color: #9aa8aa;
  font-size: 12px;
  line-height: 1.5;
}

/* Dedicated 3 analyses / rolling 24h system-limit state. */
.analysis-daily-limit-screen {
  width: 100%;
  min-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 118px);
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 0 2px 28px;
}
.analysis-daily-limit-brand {
  text-align: center;
  color: rgba(236,251,255,.94);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.analysis-daily-limit-card {
  padding: 22px 20px;
  border: 1px solid rgba(98,242,245,.13);
  border-radius: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(98,242,245,.07), transparent 46%), linear-gradient(145deg, rgba(28,31,34,.985), rgba(16,18,20,.995));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 16px 38px rgba(0,0,0,.23);
  text-align: center;
}
.analysis-daily-limit-card > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}
.analysis-daily-limit-number {
  margin-top: 15px;
  color: #efffff;
  font-size: 54px;
  line-height: .9;
  font-weight: 900;
  letter-spacing: -.06em;
  text-shadow: 0 0 20px rgba(98,242,245,.12);
}
.analysis-daily-limit-number span {
  margin-left: 5px;
  color: #748184;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}
.analysis-daily-limit-card h2 {
  margin: 17px 0 0;
  font-size: 23px;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.analysis-daily-limit-card p {
  margin: 10px auto 0;
  max-width: 330px;
  color: #8d999b;
  font-size: 12.5px;
  line-height: 1.55;
}
.analysis-daily-limit-time {
  margin-top: 17px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 15px;
  background: rgba(255,255,255,.026);
  text-align: left;
}
.analysis-daily-limit-time small {
  color: #6f7b7e;
  font-size: 10px;
  font-weight: 750;
}
.analysis-daily-limit-time strong {
  color: var(--accent);
  font-size: 19px;
  line-height: 1;
}
.analysis-daily-limit-card button {
  width: 100%;
  min-height: var(--main-action-height);
  margin-top: 14px;
  border: 1px solid rgba(98,242,245,.27);
  border-radius: 18px;
  background: rgba(98,242,245,.09);
  color: #eaffff;
  font: inherit;
  font-size: 15px;
  font-weight: 850;
}

@media (max-width: 390px) {
  :root { --main-card-pad: 16px; --main-page-title-size: 12px; }
  html.shizogpt-mode .app-shell {
    padding-right: calc(var(--safe-right) + 9px) !important;
    padding-left: calc(var(--safe-left) + 9px) !important;
  }
  .shizogpt-suggestions { gap: 5px !important; }
  .shizogpt-suggestions button {
    min-height: 39px !important;
    padding-inline: 4px !important;
    font-size: 9.6px !important;
  }
  .shizogpt-message { font-size: 12.5px !important; }
  .nutrition-main-number { font-size: 29px !important; }
  .analysis-launch-copy h2 { font-size: 23px !important; }
  .analysis-daily-limit-card { padding: 20px 17px; border-radius: 22px; }
  .analysis-daily-limit-number { font-size: 49px; }
}


/* v0.15.1 final scale correction: Profile is the width reference. */
html.nutrition-mode .app-shell,
html.analysis-home-mode .app-shell,
html.profile-mode:not(.profile-subscription-mode):not(.profile-settings-mode):not(.profile-earn-mode):not(.profile-affiliate-card-mode) .app-shell,
html.shizogpt-mode .app-shell {
  padding-right: calc(var(--safe-right) + 17px) !important;
  padding-left: calc(var(--safe-left) + 17px) !important;
}
@media (max-width: 390px) {
  html.nutrition-mode .app-shell,
  html.analysis-home-mode .app-shell,
  html.profile-mode:not(.profile-subscription-mode):not(.profile-settings-mode):not(.profile-earn-mode):not(.profile-affiliate-card-mode) .app-shell,
  html.shizogpt-mode .app-shell {
    padding-right: calc(var(--safe-right) + 14px) !important;
    padding-left: calc(var(--safe-left) + 14px) !important;
  }
}

/* v0.15.2 — internal account ID + premium-only gift + free referral preview */
.profile-identity-reference {
  min-height: 132px !important;
}
.profile-id-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}
.profile-internal-id {
  min-height: 27px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(112, 242, 244, .14);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  color: #748588;
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .05em;
}
.profile-internal-id b {
  color: #b9cdcf;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .01em;
}
.profile-id-copy {
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(112, 242, 244, .12);
  border-radius: 9px;
  background: rgba(255,255,255,.025);
  color: #7f9597;
  transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}
.profile-id-copy svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.7;
}
.profile-id-copy:active { transform: scale(.94); }
.profile-id-copy.is-copied {
  color: #d9ffff;
  border-color: rgba(105,246,248,.36);
  background: rgba(99,242,245,.09);
}

.profile-free-referral-card {
  position: relative;
  overflow: hidden;
}
.profile-free-referral-card::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  right: -78px;
  top: -88px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,242,245,.08), rgba(98,242,245,0) 70%);
  pointer-events: none;
}
.profile-free-referral-title-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.profile-free-referral-title-row h2 {
  margin: 0 !important;
  min-width: 0;
}
.profile-free-referral-reward {
  flex: 0 0 auto;
  min-height: 31px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99,242,245,.25);
  border-radius: 11px;
  background: rgba(99,242,245,.075);
  color: #caffff;
  font-size: 11px;
  font-weight: 900;
}
.profile-free-referral-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  margin: 13px 0 11px;
}
.profile-free-referral-preview span {
  min-height: 49px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
  color: #6f8082;
  font-size: 9px;
  font-weight: 700;
}
.profile-free-referral-preview b {
  color: #d5ffff;
  font-size: 17px;
  line-height: 1;
}
.profile-free-referral-preview i {
  color: #526264;
  font-style: normal;
  font-size: 17px;
}
.profile-referral-visual-only {
  opacity: 1 !important;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 390px) {
  .profile-identity-reference { min-height: 127px !important; }
  .profile-internal-id { min-height: 25px; padding-inline: 9px; }
  .profile-id-copy { width: 25px; height: 25px; }
  .profile-free-referral-title-row { align-items: flex-start; }
  .profile-free-referral-reward { min-height: 28px; font-size: 10px; }
}

/* v0.15.3 — unified ID pill + working free referral share/copy */
.profile-id-line {
  gap: 0 !important;
}
.profile-internal-id.profile-id-copy {
  width: auto !important;
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 8px 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  border: 1px solid rgba(112, 242, 244, .14) !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.025) !important;
  color: #748588 !important;
}
.profile-internal-id.profile-id-copy > span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}
.profile-internal-id.profile-id-copy svg {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px;
  stroke: #83999b;
  stroke-width: 1.75;
  transition: stroke .15s ease, transform .15s ease;
}
.profile-internal-id.profile-id-copy:active {
  transform: scale(.975);
}
.profile-internal-id.profile-id-copy.is-copied {
  color: #d9ffff !important;
  border-color: rgba(105,246,248,.36) !important;
  background: rgba(99,242,245,.09) !important;
}
.profile-internal-id.profile-id-copy.is-copied svg {
  stroke: #d9ffff;
}

.profile-free-referral-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: 9px;
  margin-top: 1px;
}
.profile-free-referral-actions .profile-referral-open {
  width: 100%;
  margin: 0 !important;
}
.profile-free-referral-copy {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(109, 238, 241, .13);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: #9fb7b9;
  font: inherit;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.profile-free-referral-copy svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  stroke-width: 1.75;
}
.profile-free-referral-copy:active {
  transform: scale(.985);
}
.profile-free-referral-copy.is-copied {
  border-color: rgba(98,244,246,.38);
  background: rgba(98,244,246,.09);
  color: #dcffff;
}

@media (max-width: 390px) {
  .profile-internal-id.profile-id-copy {
    height: 27px !important;
    min-height: 27px !important;
    padding-inline: 9px 7px !important;
  }
  .profile-free-referral-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .profile-free-referral-copy {
    min-height: 46px;
    padding-inline: 9px;
    font-size: 9.8px;
  }
}

/* v0.15.4 — referral copy feedback + cleaner ShizoGPT assistant flow */
.profile-free-referral-copy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.008);
  transition: transform .16s ease, border-color .34s ease, background .34s ease, color .34s ease, box-shadow .34s ease;
}
.profile-free-referral-copy::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 10%, rgba(98,244,246,.18) 45%, rgba(98,244,246,.03) 70%, transparent 90%);
  transform: translateX(-55%);
}
.profile-free-referral-copy > svg,
.profile-free-referral-copy .profile-referral-copy-label,
.profile-free-referral-copy .profile-referral-copy-success {
  transition: opacity .24s ease, transform .3s cubic-bezier(.2,.75,.25,1), color .3s ease, filter .3s ease;
}
.profile-free-referral-copy .profile-referral-copy-label {
  opacity: 1;
  transform: translateY(0);
}
.profile-free-referral-copy .profile-referral-copy-success {
  position: absolute;
  left: 7px;
  right: 7px;
  top: 50%;
  opacity: 0;
  transform: translateY(calc(-50% + 7px)) scale(.97);
  color: #eaffff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: -.01em;
  text-shadow: 0 0 12px rgba(98,244,246,.38);
  pointer-events: none;
}
.profile-free-referral-copy.is-copied {
  border-color: rgba(98,244,246,.72) !important;
  background: rgba(98,244,246,.105) !important;
  color: #eaffff !important;
  box-shadow:
    inset 0 0 0 1px rgba(166,255,255,.08),
    0 0 0 1px rgba(98,244,246,.08),
    0 0 15px rgba(98,244,246,.24),
    0 0 29px rgba(98,244,246,.11) !important;
  animation: referralCopyNeon 1.5s ease both;
}
.profile-free-referral-copy.is-copied::before {
  animation: referralCopySweep .72s ease-out both;
}
.profile-free-referral-copy.is-copied > svg,
.profile-free-referral-copy.is-copied .profile-referral-copy-label {
  opacity: 0;
  transform: translateY(-6px) scale(.97);
}
.profile-free-referral-copy.is-copied .profile-referral-copy-success {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
@keyframes referralCopySweep {
  0% { opacity: 0; transform: translateX(-65%); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateX(65%); }
}
@keyframes referralCopyNeon {
  0% { box-shadow: inset 0 0 0 1px rgba(166,255,255,.02), 0 0 0 rgba(98,244,246,0); }
  28% { box-shadow: inset 0 0 0 1px rgba(166,255,255,.10), 0 0 18px rgba(98,244,246,.28), 0 0 34px rgba(98,244,246,.13); }
  72% { box-shadow: inset 0 0 0 1px rgba(166,255,255,.08), 0 0 14px rgba(98,244,246,.20), 0 0 26px rgba(98,244,246,.08); }
  100% { box-shadow: inset 0 0 0 1px rgba(166,255,255,.04), 0 0 4px rgba(98,244,246,.03); }
}

/* Let assistant text wrap naturally around the S badge. Long replies continue from
   the real left edge below the badge instead of keeping a permanent empty column. */
.shizogpt-message.assistant-message {
  display: block !important;
  text-align: left !important;
}
.shizogpt-message.assistant-message::after {
  content: "";
  display: table;
  clear: both;
}
.shizogpt-message.assistant-message > .shizogpt-mini-logo {
  float: left;
  margin: 0 9px 3px 0;
}
.shizogpt-message.assistant-message > .shizogpt-answer,
.shizogpt-message.assistant-message > .shizogpt-typing-target {
  display: block;
  min-width: 0;
  text-align: left;
}
.shizogpt-message.assistant-message.shizogpt-thinking > .shizogpt-answer {
  min-height: 27px;
  display: block !important;
  padding-top: 7px;
}
.shizogpt-message.assistant-message.shizogpt-thinking > .shizogpt-answer i {
  display: inline-block;
  margin-right: 4px;
}
.shizogpt-message.assistant-message > .shizogpt-premium-cta {
  clear: both;
  display: flex;
  width: 100% !important;
  max-width: none !important;
  min-height: 46px;
  margin: 13px 0 0 !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* v0.15.5 — native referral media sharing + analysis story CTA */
.profile-referral-story {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 72px;
  margin-top: 9px;
  padding: 8px 11px 8px 8px;
  display: grid;
  grid-template-columns: 42px minmax(0,1fr) 20px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(101,243,247,.13);
  border-radius: 16px;
  background:
    linear-gradient(100deg, rgba(98,242,245,.07), rgba(255,255,255,.016) 52%, rgba(98,242,245,.025)),
    rgba(10,14,16,.38);
  color: #efffff;
  font: inherit;
  text-align: left;
  box-shadow: inset 0 1px rgba(255,255,255,.018);
  transition: transform .16s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.profile-referral-story::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 12%, rgba(101,243,247,.06) 48%, transparent 75%);
  opacity: .55;
}
.profile-referral-story:active { transform: scale(.988); }
.profile-referral-story:disabled { opacity: .72; }
.profile-referral-story-thumb {
  width: 42px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(113,246,248,.28);
  background: #061012;
  box-shadow: 0 0 14px rgba(98,242,245,.08);
}
.profile-referral-story-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.profile-referral-story-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.profile-referral-story-copy strong {
  color: #efffff;
  font-size: 12.5px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.02em;
}
.profile-referral-story-copy small {
  color: #708487;
  font-size: 9.2px;
  line-height: 1.3;
  font-weight: 650;
}
.profile-referral-story > svg {
  width: 19px;
  height: 19px;
  justify-self: end;
  stroke: #63eff1;
  stroke-width: 1.8;
  filter: drop-shadow(0 0 7px rgba(98,242,245,.18));
}
.profile-free-referral-actions button:disabled {
  opacity: .72;
  cursor: wait;
}

.analysis-premium-ready-card {
  max-width: 620px;
}
.analysis-referral-alternative {
  position: relative;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(101,243,247,.13);
  border-radius: 18px;
  text-align: left;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(98,242,245,.075), transparent 42%),
    rgba(255,255,255,.018);
}
.analysis-referral-alternative::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  bottom: 15px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, transparent, rgba(99,244,246,.88), transparent);
  box-shadow: 0 0 10px rgba(99,244,246,.28);
}
.analysis-referral-alternative > span {
  display: block;
  margin-bottom: 5px;
  color: #61edef;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .17em;
}
.analysis-referral-alternative > strong {
  display: block;
  color: #f2f8f8;
  font-size: 17px;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.analysis-referral-alternative > p {
  margin: 6px 0 11px !important;
  max-width: none !important;
  color: #7e8d90 !important;
  font-size: 10.5px !important;
  line-height: 1.42 !important;
}
.analysis-referral-story-button {
  width: 100%;
  min-height: 64px;
  padding: 7px 11px 7px 7px;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 18px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(101,243,247,.22);
  border-radius: 14px;
  background: rgba(98,242,245,.07);
  color: #efffff;
  text-align: left;
  font: inherit;
  box-shadow: inset 0 0 18px rgba(98,242,245,.025), 0 0 18px rgba(98,242,245,.035);
  transition: transform .16s ease, border-color .18s ease, background .18s ease;
}
.analysis-referral-story-button:active { transform: scale(.988); }
.analysis-referral-story-button:disabled { opacity: .72; }
.analysis-referral-story-preview {
  width: 38px;
  height: 50px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid rgba(112,247,248,.28);
  background: #061012;
}
.analysis-referral-story-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.analysis-referral-story-copy { min-width: 0; display: grid; gap: 3px; }
.analysis-referral-story-copy b {
  color: #f2ffff;
  font-size: 11.5px;
  line-height: 1.08;
  font-weight: 900;
}
.analysis-referral-story-copy small {
  color: #6d8184;
  font-size: 8.8px;
  line-height: 1.2;
}
.analysis-referral-story-button > svg {
  width: 18px;
  height: 18px;
  stroke: #67f0f2;
  stroke-width: 1.85;
}

@media (max-width: 390px) {
  .profile-referral-story { min-height: 68px; grid-template-columns: 39px minmax(0,1fr) 18px; }
  .profile-referral-story-thumb { width: 39px; height: 52px; }
  .profile-referral-story-copy strong { font-size: 11.8px; }
  .profile-referral-story-copy small { font-size: 8.7px; }
  .analysis-referral-alternative { padding: 12px; }
}

/* v0.15.6 — unified left header, 5-tab dock, ShizoLab */
.dock {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 1px !important;
  padding-inline: 4px !important;
}
.nav-item { min-width: 0 !important; padding-inline: 1px !important; }
.nav-label { font-size: 8.2px !important; letter-spacing: -.02em !important; white-space: nowrap; }

/* Every primary page now uses the same left-aligned header as analysis capture steps. */
html.shizogpt-mode .app-shell,
html.shizolab-mode .app-shell,
html.nutrition-mode .app-shell,
html.profile-mode:not(.profile-subscription-mode):not(.profile-settings-mode):not(.profile-earn-mode):not(.profile-affiliate-card-mode) .app-shell,
html.analysis-home-mode .app-shell {
  padding-top: calc(var(--safe-top) + 10px) !important;
}
html.shizogpt-mode .topbar,
html.shizolab-mode .topbar,
html.nutrition-mode .topbar,
html.profile-mode:not(.profile-subscription-mode):not(.profile-settings-mode):not(.profile-earn-mode):not(.profile-affiliate-card-mode) .topbar,
html.analysis-home-mode .topbar {
  margin-bottom: 14px !important;
  display: flex !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
html.shizogpt-mode .topbar-copy,
html.shizolab-mode .topbar-copy,
html.nutrition-mode .topbar-copy,
html.profile-mode .topbar-copy,
html.analysis-home-mode .topbar-copy { text-align: left !important; }
html.shizogpt-mode .eyebrow,
html.shizolab-mode .eyebrow,
html.nutrition-mode .eyebrow,
html.profile-mode .eyebrow,
html.analysis-home-mode .eyebrow {
  margin-bottom: 4px !important;
  text-align: left !important;
}
html.shizogpt-mode #page-title,
html.shizolab-mode #page-title,
html.nutrition-mode #page-title,
html.profile-mode #page-title,
html.analysis-home-mode #page-title {
  text-align: left !important;
}
.shizogpt-page-title,
.nutrition-page-title,
.profile-page-v3 > .profile-page-title,
.analysis-page-title { display: none !important; }

/* ShizoLab main */
.shizolab-page {
  width: 100%;
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}
.shizolab-intro,
.lab-feature-hero,
.voice-meter-card,
.sleep-score-card,
.sleep-connect-card,
.sleep-plan-card,
.simple-lab-options,
.simple-lab-result {
  border: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(circle at 100% 0%, rgba(91,242,244,.055), transparent 40%),
    rgba(255,255,255,.024);
  border-radius: 22px;
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.shizolab-intro { padding: 18px 17px; }
.shizolab-intro > span,
.lab-feature-hero > span,
.sleep-connect-card > span,
.sleep-plan-card > span,
.simple-lab-result > span {
  display: block;
  color: #63eef1;
  font-size: 8.5px;
  font-weight: 950;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.shizolab-intro h2,
.lab-feature-hero h2 {
  margin: 7px 0 7px;
  color: #f2f7f8;
  font-size: 22px;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.shizolab-intro p,
.lab-feature-hero p {
  margin: 0;
  color: #819093;
  font-size: 11.5px;
  line-height: 1.5;
}
.shizolab-grid { display: grid; gap: 9px; }
.shizolab-tool {
  position: relative;
  width: 100%;
  min-height: 96px;
  padding: 13px 38px 13px 12px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 20px;
  background: rgba(255,255,255,.021);
  color: inherit;
  font: inherit;
  text-align: left;
  transition: transform .15s ease, border-color .18s ease, background .18s ease;
  overflow: hidden;
}
.shizolab-tool:active { transform: scale(.989); border-color: rgba(99,241,243,.22); background: rgba(99,241,243,.038); }
.shizolab-tool-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(103,242,244,.20);
  background: rgba(99,241,243,.045);
  box-shadow: inset 0 0 18px rgba(99,241,243,.025), 0 0 16px rgba(99,241,243,.035);
}
.shizolab-tool-icon svg { width: 29px; height: 29px; stroke: #67eff1; stroke-width: 1.5; }
.shizolab-tool-copy { min-width: 0; display: grid; gap: 3px; }
.shizolab-tool-copy small { color: #6d7c7f; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.shizolab-tool-copy strong { color: #f2f7f8; font-size: 16px; line-height: 1.05; letter-spacing: -.02em; }
.shizolab-tool-copy p { margin: 0; color: #78878a; font-size: 9.8px; line-height: 1.35; }
.shizolab-tool-badge {
  position: absolute;
  top: 10px;
  right: 11px;
  padding: 3px 5px;
  border: 1px solid rgba(98,240,242,.16);
  border-radius: 7px;
  color: #59dcdf;
  font-size: 6.8px;
  font-weight: 950;
  letter-spacing: .08em;
}
.shizolab-tool-arrow { position: absolute; right: 12px; bottom: 12px; width: 17px; height: 17px; stroke: #536164; stroke-width: 1.8; }

/* Feature pages */
.lab-feature-page { width: 100%; display: grid; gap: 11px; padding-bottom: 18px; }
.lab-feature-hero { padding: 17px 16px; }
.lab-feature-hero h2 { font-size: 21px; }
.lab-note {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 14px;
  color: #647174;
  background: rgba(255,255,255,.012);
  font-size: 9.5px;
  line-height: 1.45;
}

/* Voice Maxing */
.voice-meter-card { padding: 17px; display: grid; justify-items: center; gap: 12px; }
.voice-meter-orbit {
  position: relative;
  width: 148px;
  height: 148px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(98,242,245,.20);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(98,242,245,.075), rgba(7,12,14,.15) 60%, rgba(4,7,9,.35));
  box-shadow: 0 0 28px rgba(98,242,245,.06), inset 0 0 25px rgba(98,242,245,.035);
}
.voice-meter-orbit::before,
.voice-meter-orbit::after { content:''; position:absolute; border-radius:50%; border:1px solid rgba(98,242,245,.09); }
.voice-meter-orbit::before { inset: 13px; }
.voice-meter-orbit::after { inset: 28px; }
.voice-meter-orbit > span { position: relative; z-index: 2; color: #f2ffff; font-size: 42px; line-height: .9; font-weight: 900; letter-spacing: -.06em; }
.voice-meter-orbit > small { position: relative; z-index: 2; margin-top: 4px; color: #5fdddf; font-size: 9px; font-weight: 850; letter-spacing: .14em; }
.voice-meter-status { min-height: 30px; color: #829194; font-size: 10.5px; line-height: 1.4; text-align: center; }
.voice-meter-track { width: 100%; height: 5px; border-radius: 9px; background: rgba(255,255,255,.055); overflow: hidden; }
.voice-meter-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #67eff1; box-shadow: 0 0 12px rgba(103,239,241,.35); transition: width .11s linear; }
.voice-meter-card button {
  width: 100%; min-height: 48px; border: 1px solid rgba(99,243,245,.28); border-radius: 15px;
  background: rgba(99,243,245,.10); color: #eaffff; font: inherit; font-size: 12px; font-weight: 900;
}
.voice-results { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.voice-results > div { padding: 12px 8px; border: 1px solid rgba(255,255,255,.06); border-radius: 16px; background: rgba(255,255,255,.02); text-align: center; }
.voice-results > div small { display:block; color:#6c7a7d; font-size:7.5px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.voice-results > div strong { color:#efffff; font-size:24px; letter-spacing:-.04em; }
.voice-results > div span { color:#5fdcdf; font-size:8px; }
.voice-results > article { grid-column: 1/-1; padding: 14px; border: 1px solid rgba(100,242,244,.10); border-radius: 18px; background: rgba(100,242,244,.025); }
.voice-results > article > span { color:#61e9eb; font-size:7.5px; font-weight:950; letter-spacing:.15em; }
.voice-results > article h3 { margin:5px 0 5px; color:#f0f7f7; font-size:18px; }
.voice-results > article p { margin:0; color:#7b898c; font-size:10px; line-height:1.45; }

/* Sleep */
.sleep-score-card { padding: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sleep-score-card > div:first-child { display:grid; gap:2px; }
.sleep-score-card small { color:#617174; font-size:8px; font-weight:900; letter-spacing:.14em; }
.sleep-score-card strong { color:#f1f8f8; font-size:30px; line-height:1; letter-spacing:-.05em; }
.sleep-score-card span { color:#718083; font-size:9px; }
.sleep-score-ring { width:74px; height:74px; display:grid; place-items:center; align-content:center; border-radius:50%; border:1px solid rgba(97,239,241,.20); background:rgba(97,239,241,.035); }
.sleep-score-ring span { color:#efffff; font-size:25px; font-weight:900; line-height:1; }
.sleep-score-ring small { margin-top:3px; }
.sleep-connect-card,
.sleep-plan-card { padding: 14px; display:grid; gap:9px; }
.sleep-connect-card > button {
  min-height: 58px; padding: 9px 10px; display:grid; grid-template-columns:35px minmax(0,1fr) auto; column-gap:9px; align-items:center;
  border:1px solid rgba(255,255,255,.055); border-radius:15px; background:rgba(255,255,255,.018); color:inherit; font:inherit; text-align:left;
}
.sleep-connect-card > button > i { grid-row:1/3; width:35px; height:35px; display:grid; place-items:center; border-radius:11px; background:rgba(99,241,243,.05); color:#68ecee; font-size:15px; font-style:normal; font-weight:900; }
.sleep-connect-card > button > b { color:#eaf1f2; font-size:12px; }
.sleep-connect-card > button > small { color:#69777a; font-size:8.5px; }
.sleep-connect-card > button > em { grid-column:3; grid-row:1/3; padding:6px 8px; border-radius:9px; background:rgba(99,241,243,.07); color:#62e3e5; font-size:8px; font-style:normal; font-weight:850; }
.sleep-plan-card ul { margin:0; padding:0; list-style:none; display:grid; gap:7px; }
.sleep-plan-card li { position:relative; padding-left:15px; color:#7c8a8d; font-size:10px; line-height:1.4; }
.sleep-plan-card li::before { content:''; position:absolute; left:2px; top:.55em; width:5px; height:5px; border-radius:50%; background:#62e8ea; box-shadow:0 0 7px rgba(98,232,234,.25); }

/* Simple lab tools */
.simple-lab-options { padding: 9px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.simple-lab-options button { min-height:52px; padding:10px 9px; display:flex; align-items:center; justify-content:space-between; gap:8px; border:1px solid rgba(255,255,255,.055); border-radius:14px; background:rgba(255,255,255,.015); color:#cfd8da; font:inherit; font-size:10px; font-weight:800; text-align:left; }
.simple-lab-options button i { width:13px; height:13px; border:1px solid rgba(255,255,255,.16); border-radius:50%; }
.simple-lab-options button.is-selected { border-color:rgba(97,238,240,.28); background:rgba(97,238,240,.055); color:#f0ffff; }
.simple-lab-options button.is-selected i { border-color:#64eaec; box-shadow:inset 0 0 0 3px #101718; background:#64eaec; }
.simple-lab-result { padding:14px; }
.simple-lab-result h3 { margin:6px 0 5px; color:#eef5f6; font-size:17px; line-height:1.1; }
.simple-lab-result p { margin:0; color:#7b898c; font-size:10px; line-height:1.47; }

/* Free analysis referral alternative */
.analysis-referral-invite-button {
  width:100%; min-height:56px; margin-top:8px; padding:8px 10px; display:grid; grid-template-columns:34px minmax(0,1fr) auto; align-items:center; gap:9px;
  border:1px solid rgba(255,255,255,.07); border-radius:14px; background:rgba(255,255,255,.018); color:inherit; font:inherit; text-align:left;
}
.analysis-referral-invite-icon { width:34px; height:34px; display:grid; place-items:center; border-radius:11px; background:rgba(99,241,243,.06); border:1px solid rgba(99,241,243,.12); }
.analysis-referral-invite-icon svg { width:19px; height:19px; stroke:#64ecee; stroke-width:1.7; }
.analysis-referral-invite-button > span:nth-child(2) { display:grid; gap:2px; }
.analysis-referral-invite-button b { color:#efffff; font-size:11.5px; }
.analysis-referral-invite-button small { color:#6f7e81; font-size:8.5px; }
.analysis-referral-invite-button > i { min-width:30px; padding:5px 6px; border-radius:8px; background:rgba(99,241,243,.07); color:#62e6e8; font-size:8px; font-style:normal; font-weight:900; text-align:center; }

@media (max-width: 390px) {
  .nav-label { font-size: 7.8px !important; }
  .shizolab-intro h2, .lab-feature-hero h2 { font-size: 19.5px; }
  .shizolab-tool { min-height: 91px; grid-template-columns: 48px minmax(0,1fr); }
  .shizolab-tool-icon { width:48px; height:48px; }
  .shizolab-tool-copy strong { font-size:15px; }
  .voice-meter-orbit { width:136px; height:136px; }
  .voice-meter-orbit > span { font-size:38px; }
}

html.shizolab-mode .app-shell {
  padding-right: calc(var(--safe-right) + 17px) !important;
  padding-left: calc(var(--safe-left) + 17px) !important;
}
html.shizogpt-mode .app-shell {
  display: flex !important;
  flex-direction: column !important;
}
html.shizogpt-mode .topbar { flex: 0 0 auto !important; }
html.shizogpt-mode .content { flex: 1 1 auto !important; height: auto !important; }
@media (max-width: 390px) {
  html.shizolab-mode .app-shell {
    padding-right: calc(var(--safe-right) + 14px) !important;
    padding-left: calc(var(--safe-left) + 14px) !important;
  }
}
