:root {
  --ink: #171717;
  --white: #ffffff;
  --paper: #f7f7f4;
  --blue: #a8b8c9;
  --blue-soft: #e8edf2;
  --red: #e10d0d;
  --red-soft: #f7e8e6;
  --muted: #747474;
  --font-main: "Avenir Next", Avenir, system-ui, sans-serif;
  --font-display: var(--font-main);
}

* { box-sizing: border-box; }
html { background: #e5e9ed; }

body {
  margin: 0;
  color: var(--ink);
  background: #e5e9ed;
  font-family: var(--font-main);
}

button { font: inherit; }

.app-shell {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 28px 16px;
}

.ambient { position: fixed; pointer-events: none; opacity: .35; }
.ambient-one { width: 340px; height: 340px; top: -210px; right: -120px; border: 1px dashed #6f7880; border-radius: 50%; }
.ambient-two { width: 110px; height: 110px; bottom: -40px; left: -34px; border-radius: 50%; background: var(--red); opacity: .12; }

.phone-frame {
  width: min(100%, 460px);
  min-height: calc(100vh - 56px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--paper);
}

.auth-error-page { display: grid; place-items: center; padding: 24px; }
.auth-error-card { max-width: 320px; text-align: center; }
.auth-error-card > span { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); font-size: 27px; font-weight: 800; }
.auth-error-card h1 { margin: 0 0 10px; font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.auth-error-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.topbar {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 12px;
  background: rgba(247,247,244,.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.topbar h1 { margin: 2px 0 0; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.eyebrow { margin: 0; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; }
.eyebrow.warm { color: var(--red); }
.brand-mark, .profile-dot, .icon-button { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.brand-mark { background: var(--red); color: var(--white); font-family: var(--font-main); font-size: 13px; font-weight: 700; letter-spacing: -.03em; }
.profile-dot { justify-self: end; background: var(--blue); color: var(--ink); font-weight: 800; }
.icon-button { border: 0; background: var(--blue-soft); color: var(--ink); cursor: pointer; font-size: 19px; }

.page-content { padding: 22px; animation: appear .22s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } }

.success-notice { display: grid; grid-template-columns: 34px 1fr 24px; gap: 10px; align-items: center; margin-bottom: 12px; padding: 13px; border-radius: 18px; background: #e6efe8; color: #31533a; }
.success-notice > span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #c9dfce; font-weight: 900; }
.success-notice strong, .success-notice small { display: block; }
.success-notice small { margin-top: 2px; color: #68806b; font-size: 10px; }
.success-notice button { border: 0; background: transparent; color: #68806b; cursor: pointer; font-size: 18px; }

.welcome-card { position: relative; padding: 14px 2px 23px; }
.welcome-card::after { content: ""; position: absolute; width: 116px; height: 54px; right: 2px; bottom: 8px; border-top: 1px dashed rgba(23,23,23,.28); border-radius: 50%; transform: rotate(-9deg); pointer-events: none; }
.welcome-card h2, .block-hero h2, .empty-state h2, .care-card h2 { margin: 8px 0 8px; font-family: var(--font-display); font-size: 31px; font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.welcome-card > p:last-child, .block-hero p, .empty-state p, .care-card p { position: relative; z-index: 1; margin: 0; max-width: 330px; color: var(--muted); line-height: 1.52; }

.current-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 30px;
  background: var(--blue);
  color: var(--ink);
}
.current-card::before { content: ""; position: absolute; width: 210px; height: 210px; top: -80px; right: -70px; border: 1px dashed rgba(23,23,23,.28); border-radius: 50%; }
.current-card::after { content: ""; position: absolute; width: 38px; height: 38px; top: 68px; right: 38px; border-radius: 50%; background: rgba(255,255,255,.65); }
.current-card-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; padding: 7px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.status-pill.small { padding: 5px 8px; font-size: 8px; }
.current-card .status-pill { background: rgba(255,255,255,.75); color: var(--ink); }
.block-number { color: var(--red); font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.current-visual { height: 128px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.current-visual img { width: min(82%, 265px); height: 118px; object-fit: contain; display: block; }
.current-card h3 { position: relative; z-index: 2; margin: 4px 0 6px; max-width: 300px; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.current-card > p { position: relative; z-index: 2; margin: 0 0 19px; max-width: 300px; color: #3d4854; font-size: 13px; line-height: 1.45; }

.primary-button, .secondary-button { width: 100%; border: 0; border-radius: 18px; padding: 15px 17px; font-weight: 700; letter-spacing: -.01em; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.primary-button { position: relative; z-index: 2; background: var(--red); color: var(--white); }
.primary-button:hover { background: #c90909; }
.secondary-button { justify-content: center; background: var(--blue-soft); color: var(--ink); }
.link-button { text-decoration: none; }

.progress-summary { margin: 16px 0; padding: 16px; border-radius: 22px; background: var(--white); }
.progress-summary > div:first-child { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 11px; }
.progress-summary strong { color: var(--ink); }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: #e5e6e5; }
.progress-track div { height: 100%; min-width: 0; border-radius: inherit; background: var(--red); transition: width .3s ease; }
.progress-track.large { height: 10px; margin: 14px 0; }

.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.menu-grid button { min-height: 130px; padding: 16px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; border-radius: 25px; background: var(--white); color: var(--ink); cursor: pointer; }
.menu-grid button:nth-child(2) { background: var(--blue-soft); }
.menu-grid button:nth-child(3) { background: var(--red-soft); }
.menu-grid button:hover { transform: translateY(-1px); }
.menu-grid b { margin-top: auto; font-size: 14px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.menu-grid small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.menu-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; font-size: 17px; }
.menu-icon.lilac, .menu-icon.rose { background: var(--red); color: var(--white); }
.menu-icon.peach, .menu-icon.mint { background: var(--blue); color: var(--ink); }

.section-intro { padding: 2px 2px 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.blocks-list { display: grid; gap: 11px; }
.block-card { display: grid; grid-template-columns: 42px 1fr; gap: 13px; padding: 16px; border: 0; border-radius: 24px; background: var(--white); }
.block-card.locked { background: #ececea; color: #5f5f5f; }
.block-card.available { background: var(--blue-soft); }
.block-card.completed { background: #e6efe8; }
.block-index { width: 40px; height: 40px; display: grid; place-items: center; position: relative; border-radius: 50%; background: var(--paper); font-weight: 800; }
.block-index span { position: absolute; right: -3px; bottom: -5px; min-width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); font-size: 9px; }
.block-title-row { display: flex; gap: 7px; justify-content: space-between; align-items: flex-start; }
.block-copy h3 { margin: 2px 0 6px; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; }
.block-copy p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.lock-note { display: inline-block; color: var(--red); font-size: 10px; font-weight: 700; }
.text-button { border: 0; padding: 3px 0; background: transparent; color: var(--red); font-size: 11px; font-weight: 800; cursor: pointer; }

.block-hero { position: relative; padding: 10px 2px 22px; }
.block-hero::after { content: ""; position: absolute; width: 74px; height: 74px; top: 4px; right: 3px; border: 1px dashed rgba(23,23,23,.26); border-radius: 50%; }
.block-hero h2 { margin-top: 13px; }
.lesson-list { display: grid; gap: 10px; }
.lesson-card { width: 100%; display: grid; grid-template-columns: 43px 1fr 15px; gap: 12px; align-items: center; padding: 15px; border: 0; border-radius: 22px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; }
.lesson-card:hover { background: var(--blue-soft); }
.lesson-card.studied { background: #e6efe8; }
.lesson-card > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--ink); font-size: 11px; font-weight: 800; }
.lesson-card.studied > span { background: #c9dfce; color: #31533a; }
.lesson-card small { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.lesson-card h3 { margin: 3px 0; font-size: 14px; }
.lesson-card p { margin: 0; color: var(--muted); font-size: 11px; }
.lesson-card > b { color: var(--red); font-size: 20px; }
.sticky-action { margin-top: 18px; }
.block-progress-note { margin: 16px 0 0; color: var(--muted); text-align: center; font-size: 11px; }

.lesson-heading { padding: 8px 2px 20px; }
.lesson-heading h2 { margin: 13px 0 0; max-width: 360px; font-family: var(--font-display); font-size: 31px; font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
.video-placeholder { min-height: 190px; margin-bottom: 12px; display: grid; place-items: center; align-content: center; gap: 10px; border-radius: 27px; background: var(--blue); color: var(--ink); }
.video-placeholder span { width: 54px; height: 54px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: rgba(255,255,255,.72); color: var(--red); font-size: 18px; }
.video-placeholder p { margin: 0; font-size: 11px; font-weight: 700; }
.video-placeholder small { color: #46525e; font-size: 9px; }
.lesson-video { width: 100%; max-height: 68vh; display: block; margin-bottom: 12px; border-radius: 27px; background: #171717; object-fit: contain; }
.lesson-video-embed { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 12px; overflow: hidden; border-radius: 27px; background: #171717; }
.lesson-video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.lesson-audio { width: 100%; display: block; margin-bottom: 12px; accent-color: var(--red); }
.lesson-copy p:first-child { margin-top: 0; }
.lesson-copy p:last-child { margin-bottom: 0; }
.pending-media { text-align: center; }
.media-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.test-result-preview { margin-top: 12px; padding: 17px; border-radius: 22px; background: var(--blue-soft); }
.test-result-preview small { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.test-result-preview p { margin: 8px 0 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.test-complete-button { width: 100%; margin-top: 12px; }
.audio-placeholder { margin-bottom: 12px; padding: 20px; display: flex; gap: 13px; align-items: center; border-radius: 25px; background: var(--blue-soft); }
.audio-placeholder > span { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: var(--red); font-size: 20px; }
.audio-placeholder strong, .audio-placeholder small { display: block; }
.audio-placeholder strong { font-size: 14px; }
.audio-placeholder small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.reading-card { padding: 21px; border-radius: 27px; background: var(--white); }
.reading-card p { margin: 0 0 15px; color: #4e4e4e; font-size: 14px; line-height: 1.65; }
.reading-card p:last-child { margin-bottom: 0; }
.reading-card h3 { margin: 2px 0 12px; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; }
.reading-card ul { margin: 0 0 16px; padding-left: 20px; color: #4e4e4e; font-size: 14px; line-height: 1.65; }
.reading-card li + li { margin-top: 5px; }
.app-guide { display: grid; gap: 8px; margin: 0 0 19px; }
.app-guide div { padding: 13px 14px; border-radius: 17px; background: var(--paper); }
.app-guide dt { font-size: 13px; font-weight: 800; }
.app-guide dd { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.assignment-copy { margin-bottom: 12px; }
.letter-field { display: block; padding: 17px; border-radius: 25px; background: var(--white); }
.letter-field > span { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.letter-field textarea { width: 100%; min-height: 230px; resize: vertical; border: 0; outline: 0; border-radius: 16px; padding: 15px; background: var(--paper); color: var(--ink); font: inherit; font-size: 14px; line-height: 1.55; }
.letter-field textarea:focus { background: var(--blue-soft); }
.letter-field small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.compact-field { margin-top: 12px; }
.compact-field textarea { min-height: 120px; }
.save-message { margin: 12px 0 0; padding: 13px 15px; border-radius: 17px; background: #e6efe8; color: #31533a; font-size: 12px; line-height: 1.45; }
.save-message.draft { background: var(--red-soft); color: #873737; }

.answer-list { display: grid; gap: 9px; }
.quality-row { display: grid; grid-template-columns: 27px 1fr 43px; gap: 8px; align-items: center; padding: 9px; border-radius: 18px; background: var(--white); }
.quality-row > span, .numbered-field > span { color: var(--muted); font-size: 10px; font-weight: 800; text-align: center; }
.quality-row input, .numbered-field textarea { width: 100%; border: 0; outline: 0; border-radius: 13px; padding: 12px; background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.quality-row input:focus, .numbered-field textarea:focus { background: var(--blue-soft); }
.source-toggle { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--blue-soft); color: var(--red); cursor: pointer; font-size: 19px; font-weight: 800; }
.numbered-field { display: grid; grid-template-columns: 27px 1fr; gap: 8px; align-items: start; padding: 9px; border-radius: 18px; background: var(--white); }
.numbered-field > span { padding-top: 13px; }
.numbered-field textarea { resize: vertical; line-height: 1.45; }
.form-section-title { margin: 25px 2px 11px; font-size: 17px; letter-spacing: -.02em; }

.impression-example { margin-top: 12px; padding: 20px; border-radius: 27px; background: var(--white); }
.life-wheel { width: 190px; aspect-ratio: 1; margin: 4px auto 20px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--red) 0 22%, var(--blue) 22% 47%, #d9dee3 47% 65%, #f2b9b5 65% 82%, #758da5 82% 100%); position: relative; }
.life-wheel::after { content: ""; width: 72px; aspect-ratio: 1; border-radius: 50%; background: var(--white); position: absolute; }
.life-wheel span { position: relative; z-index: 1; color: var(--ink); font-size: 11px; font-weight: 800; line-height: 1.15; text-align: center; }
.quality-pool { padding: 15px; border-radius: 18px; background: var(--paper); }
.quality-pool small { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.quality-pool p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.life-areas-example { display: grid; gap: 8px; margin-top: 12px; }
.life-areas-example article { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #ececea; }
.life-areas-example article:last-child { border-bottom: 0; }
.life-areas-example strong { display: block; font-size: 12px; }
.life-areas-example p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.area-dot { width: 10px; height: 10px; margin-top: 2px; border-radius: 50%; background: var(--red); }
.area-two { background: var(--blue); }
.area-three { background: #d9dee3; }
.area-four { background: #f2b9b5; }
.area-five { background: #758da5; }

.impressions-builder { display: grid; gap: 12px; margin-top: 12px; }
.builder-section { padding: 20px; border-radius: 27px; background: var(--white); }
.builder-section small { color: var(--red); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.builder-section h3 { margin: 5px 0 0; font-size: 19px; letter-spacing: -.025em; }
.quality-source-panel { background: var(--blue-soft); }
.quality-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.quality-chip { min-height: 32px; padding: 8px 11px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 11px; line-height: 1.2; }
button.quality-chip { cursor: pointer; }
.quality-chip.selected { background: var(--red); color: var(--white); }
.static-chips .quality-chip { background: rgba(255,255,255,.75); }
.prerequisite-note { margin-top: 14px; padding: 15px; border-radius: 19px; background: rgba(255,255,255,.72); }
.prerequisite-note strong { font-size: 12px; }
.prerequisite-note p { margin: 5px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.prerequisite-note button { padding: 0; border: 0; background: transparent; color: var(--red); font-size: 10px; font-weight: 800; cursor: pointer; }
.builder-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.builder-help { margin: 8px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.total-pill { min-width: 54px; padding: 9px 10px; border-radius: 999px; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 800; text-align: center; }
.total-pill.complete { background: #e6efe8; color: #31533a; }
.total-pill.over { background: var(--red-soft); color: #873737; }
.life-area-fields { display: grid; gap: 8px; }
.life-area-row { display: grid; grid-template-columns: 10px minmax(0,1fr) 69px auto; gap: 8px; align-items: center; }
.life-area-color { width: 10px; height: 10px; border-radius: 50%; }
.life-area-row > input, .life-area-row label { min-width: 0; border: 0; border-radius: 15px; background: var(--paper); }
.life-area-row > input { width: 100%; padding: 12px; outline: 0; color: var(--ink); font: inherit; font-size: 12px; }
.life-area-row label { display: flex; align-items: center; padding-right: 10px; }
.life-area-row label input { width: 100%; min-width: 0; padding: 12px 4px 12px 10px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: right; }
.life-area-row label span { color: var(--muted); font-size: 11px; }
.remove-area { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--red-soft); color: var(--red); cursor: pointer; font-size: 16px; }
.add-area-button { margin-top: 12px; padding: 10px 13px; border: 0; border-radius: 999px; background: var(--blue-soft); color: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.percentage-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; }
.percentage-note.warning { color: var(--red); font-weight: 700; }
.wheel-panel { background: var(--blue-soft); }
.dynamic-life-wheel { width: min(230px,78vw); aspect-ratio: 1; margin: 20px auto; display: grid; place-items: center; position: relative; border-radius: 50%; }
.dynamic-life-wheel::after { content: ""; width: 46%; aspect-ratio: 1; position: absolute; border-radius: 50%; background: var(--blue-soft); }
.dynamic-life-wheel > span { position: relative; z-index: 1; text-align: center; }
.dynamic-life-wheel strong, .dynamic-life-wheel small { display: block; }
.dynamic-life-wheel strong { font-family: var(--font-display); font-size: 25px; letter-spacing: -.04em; }
.dynamic-life-wheel small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.life-wheel-legend { display: grid; gap: 7px; }
.life-wheel-legend > div { display: grid; grid-template-columns: 10px 1fr; gap: 9px; align-items: center; }
.life-wheel-legend > div > span { width: 9px; height: 9px; border-radius: 50%; }
.life-wheel-legend .unallocated-dot { background: #ececea; }
.life-wheel-legend p { display: flex; justify-content: space-between; gap: 8px; margin: 0; color: var(--muted); font-size: 10px; }
.life-wheel-legend strong { color: var(--ink); }
.area-quality-list { display: grid; gap: 10px; }
.area-quality-card { padding: 15px; border-radius: 20px; background: var(--paper); }
.area-quality-card header { display: grid; grid-template-columns: 10px 1fr; gap: 9px; align-items: start; }
.area-quality-card header > span { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.area-quality-card h4 { margin: 0; font-size: 13px; }
.area-quality-card header small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: 0; }
.area-quality-card .quality-chips { margin-top: 12px; }
.area-quality-card .quality-chip { background: var(--white); }
.area-quality-card .quality-chip.selected { background: var(--red); }
.empty-quality-note { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.saved-result-card.impressions-result { background: var(--blue-soft); }

.recommendations-intro { padding: 15px 2px 22px; text-align: center; }
.recommendations-intro .sparkle { margin-bottom: 14px; }
.recommendations-intro h2 { margin: 0 0 8px; font-size: 27px; letter-spacing: -.03em; }
.recommendations-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.saved-result-card { width: 100%; padding: 20px; border: 0; border-radius: 26px; background: var(--white); color: var(--ink); text-align: left; cursor: pointer; }
.saved-result-card small { color: var(--red); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.saved-result-card h3 { margin: 9px 0; font-size: 18px; line-height: 1.3; }
.saved-result-card p { display: -webkit-box; overflow: hidden; margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.saved-result-card span { color: var(--red); font-size: 11px; font-weight: 800; }
.saved-results-list { display: grid; gap: 11px; }
.saved-result-card.blue-result { background: var(--blue-soft); }
.saved-result-card.soft-result { background: var(--red-soft); }

.metric-card, .simple-panel, .empty-state, .care-card { padding: 22px; border: 0; border-radius: 27px; background: var(--white); }
.metric-card { position: relative; overflow: hidden; }
.metric-card::after { content: ""; position: absolute; width: 90px; height: 90px; top: -40px; right: -25px; border-radius: 50%; background: var(--red-soft); }
.metric-card small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.metric-card strong { display: block; margin-top: 7px; font-family: var(--font-display); font-size: 46px; font-weight: 700; letter-spacing: -.04em; }
.metric-card strong i { color: var(--muted); font-family: var(--font-main); font-size: 16px; font-weight: 400; font-style: normal; }
.metric-card p, .simple-panel p { color: var(--muted); font-size: 13px; }
.simple-panel { margin-top: 12px; background: var(--blue-soft); }
.simple-panel h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.empty-state, .care-card { text-align: center; padding-top: 42px; padding-bottom: 42px; }
.sparkle, .care-heart { width: 62px; height: 62px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 27px; }
.care-heart { background: var(--blue-soft); color: var(--ink); }
.empty-state .secondary-button, .care-card .primary-button { margin-top: 22px; }

@media (max-width: 520px) {
  .app-shell { padding: 0; }
  .phone-frame {
    min-height: var(--tg-viewport-stable-height, 100vh);
    padding-left: max(var(--tg-content-safe-area-inset-left, 0px), env(safe-area-inset-left));
    padding-right: max(var(--tg-content-safe-area-inset-right, 0px), env(safe-area-inset-right));
    padding-bottom: max(var(--tg-content-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom));
    border-radius: 0;
  }
  .topbar { padding-top: calc(22px + max(var(--tg-content-safe-area-inset-top, 0px), env(safe-area-inset-top))); }
}

@media (max-width: 360px) {
  .page-content, .topbar { padding-left: 16px; padding-right: 16px; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid button { min-height: 105px; }
}
