:root {
  color-scheme: light;
  --ink: #252d28; --muted: #636d64; --forest: #2c3830; --sage: #e0e7dd;
  --pale: #eef0e9; --line: #d4dbd1; --white: #fbfcf8; --lime: #e3eddb;
  --danger: #934336; --radius: 28px; --shadow: 0 14px 45px #2737290b;
  --sans: Arial, Helvetica, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: #edf0e9;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse at 90% 0%, #dce3d870, transparent 45%); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest); text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #687d55; outline-offset: 4px; }
button svg { pointer-events: none; }
svg { display: block; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .serif { font-family: var(--sans); font-weight: 400; letter-spacing: -.055em; line-height: 1.08; }
h1 { font-size: clamp(38px, 4.9vw, 66px); margin-bottom: 20px; }
h2 { font-size: 32px; margin-bottom: 16px; }
h3 { font-weight: 500; font-size: 17px; letter-spacing: -.025em; line-height: 1.4; margin-bottom: 10px; }
p { margin-bottom: 16px; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 1000; background: var(--forest); color: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { max-width: 1280px; margin: auto; padding: 0 36px; height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 35px; font-weight: 400; letter-spacing: -2px; }
.brand svg { width: 29px; height: 35px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-actions { display: flex; align-items: center; gap: 12px; }
.account-name { font-size: 13px; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; background: #d8e1d2; border-radius: 50%; font-size: 14px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; background: #ffffff65; border: 1px solid #ffffff55; border-radius: 50%; flex-shrink: 0; }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 13px; min-height: 49px; padding: 14px 24px; border: 1px solid var(--forest); border-radius: 100px; background: var(--forest); color: var(--white); text-decoration: none; font-size: 14px; font-weight: 400; line-height: 1.35; transition: background .2s, transform .2s; }
.button:hover { background: #17231b; }
.button:active { transform: translateY(1px); }
.button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.button-small { min-height: 43px; padding: 11px 18px; font-size: 13px; }
.button-outline { color: var(--forest); background: #ffffff35; border-color: #aab8a5; }
.button-outline:hover { background: #dce4d6; }
.button-light, .button-lime { background: #f9fbf1; border-color: #ffffff80; color: #29352a; }
.button-light:hover, .button-lime:hover { background: #e5eddc; }
.button-light svg { margin-left: 18px; }
.button-ghost { background: transparent; border-color: transparent; color: var(--ink); }
.button-ghost:hover { background: var(--sage); }
.button-danger { background: var(--danger); border-color: var(--danger); }
.button-wide { width: 100%; }
.text-button { min-height: 40px; padding: 9px 0; background: none; border: 0; color: var(--forest); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.eyebrow { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 500; line-height: 1.6; margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.8; }
main { max-width: 1208px; margin: auto; padding: 9px 0 0; min-height: calc(100vh - 250px); outline: none; }
.today-layout, .welcome-layout { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr); gap: 24px; }
.nature-hero { min-height: 682px; position: relative; display: flex; flex-direction: column; padding: 27px; border-radius: 35px; overflow: hidden; isolation: isolate; background: #a9b6a3; }
.nature-hero::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/hero-01.webp') center 49% / cover no-repeat; }
body.hero-01 .nature-hero::before { background-image: url('/assets/hero-01.webp'); }
body.hero-02 .nature-hero::before { background-image: url('/assets/hero-02.webp'); }
body.hero-03 .nature-hero::before { background-image: url('/assets/hero-03.webp'); }
body.hero-04 .nature-hero::before { background-image: url('/assets/hero-04.webp'); }
body.hero-05 .nature-hero::before { background-image: url('/assets/hero-05.webp'); }
body.hero-06 .nature-hero::before { background-image: url('/assets/hero-06.webp'); }
body.hero-07 .nature-hero::before { background-image: url('/assets/hero-07.webp'); }
body.hero-08 .nature-hero::before { background-image: url('/assets/hero-08.webp'); }
body.hero-09 .nature-hero::before { background-image: url('/assets/hero-09.webp'); }
body.hero-10 .nature-hero::before { background-image: url('/assets/hero-10.webp'); }
.nature-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #eef0e87a 0%, #b5beb910 18%, #1c30275c 34%, #14281fa6 62%, #14281fc9 100%); }
.hero-greeting { display: flex; align-items: center; gap: 13px; color: #24332b; }
.hero-avatar { width: 49px; height: 49px; display: grid; place-items: center; flex-shrink: 0; background: #f2f3e7a8; border: 1px solid #fff8; border-radius: 50%; font-size: 19px; backdrop-filter: blur(15px); }
.hero-avatar svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; }
.hero-greeting p { margin: 0 0 2px; font-size: 14px; line-height: 1.4; }
.hero-greeting>div>span { font-size: 11px; line-height: 1.4; display: block; }
.hero-message { color: #fffefa; margin-top: 128px; max-width: 570px; }
.hero-message .eyebrow { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: normal; height: auto; display: table; max-width: 100%; padding: 6px 11px; margin-bottom: 13px; border: 1px solid #ffffff30; border-radius: 50px; background: #263c2ee8; font-size: 10px; font-weight: 400; letter-spacing: .08em; color: #fcfff5; }
.hero-message h1 { text-shadow: 0 2px 18px #12291e30; font-weight: 400; font-size: clamp(42px, 4.8vw, 64px); letter-spacing: -.065em; margin-bottom: 16px; }
.hero-message>p { font-size: 14px; line-height: 1.75; color: #fafbf1; margin-bottom: 23px; }
.hero-message .button { font-size: 13px; min-height: 50px; }
.hero-progress { background: #e1e7d9bd; border: 1px solid #ffffff4d; border-radius: 27px; padding: 20px 21px 12px; backdrop-filter: blur(24px); color: #28372b; margin-top: 30px; }
.progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.progress-heading h2 { font-size: 20px; font-weight: 400; letter-spacing: -.04em; margin: 0; }
.progress-heading>span { display: block; border-radius: 50px; background: #fffef6; padding: 6px 13px; font-size: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin: 0 0 27px; }
.stat-card { border: 1px solid #ffffffa6; background: #fafbf4ab; padding: 22px; border-radius: 23px; min-width: 0; }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 12px; line-height: 1.5; min-height: 36px; color: #53634f; margin-bottom: 13px; }
.stat-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.stat-number { font-family: var(--sans); font-size: 35px; line-height: 1.15; font-weight: 400; letter-spacing: -.055em; overflow-wrap: anywhere; }
.stat-number>span { font-size: 18px; margin-left: 3px; }
.stat-card p { font-size: 11px; line-height: 1.7; color: #596952; margin: 10px 0 0; }
.hero-progress .stats-grid { gap: 0; margin: 0; }
.hero-progress .stat-card { background: transparent; border: 0; border-right: 1px solid #76856c40; border-radius: 0; padding: 0 14px; }
.hero-progress .stat-card:first-child { padding-left: 0; }
.hero-progress .stat-card:last-child { padding-right: 0; border-right: 0; }
.hero-progress .stat-top { font-size: 11px; min-height: 34px; margin-bottom: 10px; gap: 5px; }
.hero-progress .stat-top svg { width: 15px; height: 15px; }
.hero-progress .stat-number { font-size: 29px; }
.hero-progress .stat-card p { font-size: 11px; margin-top: 9px; color: #4a5c42; }
.progress-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 0 3px; margin-top: 14px; border: 0; border-top: 1px solid #76856c40; background: transparent; font-size: 11px; }
.progress-link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.today-aside { display: flex; flex-direction: column; gap: 21px; }
.thought-card { position: relative; border-radius: 30px; background: #e0e5d7; padding: 29px; flex: 1; overflow: hidden; }
.thought-card .eyebrow { font-size: 9px; color: #5c6d51; max-width: 210px; }
.thought-symbol { width: 61px; height: 61px; background: #f4f6eab3; border: 1px solid #fff9; border-radius: 50%; display: grid; place-items: center; margin: 24px 0; }
.thought-symbol svg { width: 27px; height: 27px; stroke: #59684d; fill: none; stroke-width: 1.1; }
.thought-card h2 { font-size: 30px; font-weight: 400; letter-spacing: -.05em; line-height: 1.12; margin-bottom: 16px; }
.thought-card>p { color: #53614b; font-size: 13px; line-height: 1.9; }
.thought-card>a { display: inline-flex; align-items: center; gap: 10px; color: #53614b; font-size: 11px; text-decoration: none; padding: 10px 0; }
.thought-card>a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.trigger-card { border: 1px solid #ced7c8; border-radius: 27px; padding: 25px; background: #f9faf3b3; }
.section-label { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 18px; }
.section-label h2 { font-family: var(--sans); font-size: 18px; font-weight: 400; letter-spacing: -.04em; margin: 0; }
.section-label>span { font-size: 11px; color: var(--muted); }
.trigger-card .section-label { margin-bottom: 7px; gap: 10px; }
.trigger-card .section-label h2 { font-size: 17px; }
.trigger-card .text-button { font-size: 11px; }
.trigger-card>p { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.trigger-card>p:last-child { font-size: 11px; margin: 8px 0 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid #c7d2bd; border-radius: 100px; background: #e8eddf; font-size: 11px; line-height: 1.5; }
.chip svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.lapse-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 15px 0 0; margin-top: 18px; border: 0; border-top: 1px solid #d2dacb; background: transparent; text-align: left; font-size: 12px; }
.lapse-link svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.activities-section { margin-top: 36px; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.activity-card { display: flex; flex-direction: column; min-width: 0; min-height: 251px; position: relative; isolation: isolate; overflow: hidden; border: 1px solid #ffffff60; border-radius: 29px; padding: 26px; text-align: left; transition: transform .2s, box-shadow .2s; }
.activity-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px #34493415; }
.activity-card::before, .activity-card::after { content: ''; position: absolute; z-index: -1; width: 180px; height: 180px; background: #ffffff2c; border-radius: 50%; right: -70px; top: -70px; }
.activity-card::after { width: 115px; height: 115px; top: 25px; right: -35px; background: #ffffff24; }
.activity-lavender { background: #d4c8db; color: #43374b; }
.activity-blue { background: #c5d5dd; color: #354a56; }
.activity-mint { background: #ccded3; color: #354f42; }
.activity-kicker { font-size: 9px; letter-spacing: .09em; line-height: 1.5; margin-bottom: 28px; }
.activity-title { font-size: 31px; font-weight: 400; letter-spacing: -.055em; line-height: 1.08; }
.activity-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 22px; }
.activity-bottom>span:first-child { font-size: 11px; }
.activity-play { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: #ffffff63; border: 1px solid #ffffff75; }
.activity-play svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.guest-hero { min-height: 722px; }
.guest-hero .hero-message { margin-top: 120px; }
.guest-hero .hero-message h1 { font-size: clamp(54px, 6vw, 79px); }
.guest-hero .hero-message>p { font-size: 16px; }
.hero-sos-link { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 12px 0 0; padding: 8px 0; border: 0; background: transparent; color: #fffff6; font-size: 12px; text-align: left; }
.hero-sos-link svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.hero-glass-note { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 20px; border-radius: 24px; background: #e4e8dcbf; border: 1px solid #ffffff59; backdrop-filter: blur(22px); color: #32402e; }
.hero-glass-note>svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.3; flex-shrink: 0; }
.hero-glass-note p { font-size: 13px; line-height: 1.6; margin: 0; }
.hero-glass-note p span { color: #53644c; font-size: 11px; }
.glass-login { margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border: 1px solid #fff8; border-radius: 50px; background: #fffef4a3; font-size: 11px; }
.glass-login svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.welcome-aside { border-radius: 31px; background: #f8faf2ba; padding: 32px 29px; border: 1px solid #ffffff80; }
.welcome-aside>.eyebrow { text-transform: none; color: #5c7052; font-size: 11px; letter-spacing: .07em; margin-bottom: 39px; }
.welcome-aside>h2 { font-size: 40px; margin-bottom: 22px; }
.aside-intro { font-size: 13px; line-height: 1.9; color: var(--muted); }
.guest-features { display: flex; flex-direction: column; gap: 21px; margin: 32px 0 29px; }
.guest-feature { display: flex; align-items: flex-start; gap: 15px; }
.feature-index { font-size: 13px; color: #6d7f61; padding-top: 2px; }
.guest-feature h3 { font-size: 14px; margin-bottom: 5px; font-weight: 500; }
.guest-feature p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0; }
.welcome-aside .button { font-size: 12px; }
.quiet-note { display: flex; align-items: flex-start; gap: 11px; color: var(--muted); font-size: 12px; line-height: 1.9; margin: 27px 0 0; padding-top: 20px; border-top: 1px solid #cdd6c8; }
.quiet-note svg { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.4; }
.site-footer { max-width: 1208px; margin: 30px auto 0; padding: 19px 0 135px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 10px; }
.site-footer p { display: flex; align-items: center; gap: 8px; margin: 0; }
.footer-leaf { font-size: 20px; color: #718865; }
.site-footer>div { display: flex; align-items: center; gap: 23px; }
.site-footer .text-button { font-size: 10px; color: var(--muted); text-decoration: none; }
.site-footer .text-button:hover { text-decoration: underline; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.date-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 50px; color: var(--muted); font-size: 10px; }
.status-dot { display: block; width: 6px; height: 6px; background: #6e875a; border-radius: 50%; }
.hero-copy { padding: 35px 0; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.loading-shell { padding: 45px 0; min-height: 55vh; }
.page-heading { max-width: 690px; padding: 22px 0 0; margin-bottom: 33px; }
.page-heading h1 { font-size: 47px; font-weight: 400; }
.page-heading p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.page-heading .eyebrow { color: #5f7555; }
.panel { background: #fbfcf7cf; border: 1px solid #ffffffa6; border-radius: 27px; padding: 29px; margin-bottom: 23px; }
.panel h2 { font-size: 28px; }
.panel>p { color: var(--muted); font-size: 13px; }
.panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-head h2 { margin: 0; font-size: 18px; font-weight: 400; letter-spacing: -.035em; }
.panel-head svg { width: 20px; height: 20px; stroke: #657b58; fill: none; stroke-width: 1.4; stroke-linecap: round; }
.settings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 19px; }
.field label, .field-label { font-size: 13px; font-weight: 400; }
.field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea { width: 100%; min-height: 49px; padding: 12px 14px; border: 1px solid #c6d0bf; border-radius: 13px; background: #fffffb; color: var(--ink); font-size: 14px; }
.field small { font-size: 11px; line-height: 1.8; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }
.check-row { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; line-height: 1.7; margin-bottom: 17px; }
.check-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--forest); flex-shrink: 0; }
.check-row small { display: block; font-size: 11px; color: var(--muted); }
.checkbox-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 9px 0 19px; }
.checkbox-chip { position: relative; }
.checkbox-chip input, .radio-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox-chip span { display: block; min-height: 41px; padding: 9px 14px; border: 1px solid #cdd7c6; border-radius: 50px; background: #eaf0e5; font-size: 12px; cursor: pointer; }
.checkbox-chip input:checked+span { color: white; background: var(--forest); border-color: var(--forest); }
.checkbox-chip input:focus-visible+span, .radio-pill input:focus-visible+span { outline: 3px solid #687d55; outline-offset: 3px; }
.form-divider { border: 0; border-top: 1px solid var(--line); margin: 27px 0; }
.form-error { color: var(--danger); font-size: 13px; line-height: 1.8; margin: 14px 0; }
.form-error:empty { display: none; }
.form-note { background: #e5ecdf; border: 1px solid #dbe4d4; border-radius: 15px; padding: 14px 16px; color: #53684a; font-size: 12px; line-height: 1.9; }
.help-box { padding: 18px; border: 1px solid #d3ddcb; border-radius: 17px; background: #edf2e7; font-size: 12px; line-height: 1.9; margin: 17px 0; }
.help-box h3 { font-size: 14px; }
.help-box ol { padding-left: 18px; margin: 0; }
.help-box p:last-child { margin-bottom: 0; }
.inline-actions { display: flex; gap: 11px; flex-wrap: wrap; margin: 19px 0; }
.push-state { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); margin: 14px 0; }
.push-state.inactive .status-dot { background: #ae9778; }
.full-row { grid-column: 1/-1; }
.save-bar { position: sticky; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 17px; padding: 15px 19px; margin-bottom: 20px; border: 1px solid #ffffffbf; border-radius: 21px; background: #f9fbf2e8; backdrop-filter: blur(20px); box-shadow: var(--shadow); font-size: 12px; color: var(--muted); }
.journey-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 25px; align-items: start; }
.journey-grid .panel { margin: 0; }
.journey-side { display: flex; flex-direction: column; gap: 23px; }
.soft-panel { background: #dde7d5; border-color: #eaf0e3; }
.soft-panel h2 { font-size: 30px; line-height: 1.13; }
.soft-panel p { font-size: 13px; line-height: 1.9; color: #53694b; }
.timeline-list { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: flex; gap: 15px; padding: 21px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border: 0; padding-bottom: 0; }
.timeline-mark { display: grid; place-items: center; width: 37px; height: 37px; flex-shrink: 0; border-radius: 50%; background: #dfe8d8; color: #526a46; }
.timeline-mark svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.timeline-item h3 { font-size: 14px; margin-bottom: 5px; }
.timeline-item p { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.9; }
.timeline-item time { font-size: 11px; color: var(--muted); white-space: nowrap; margin-left: auto; padding-left: 8px; }
.empty-state { padding: 25px 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.notification-entry { padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.notification-entry:last-child { border: 0; }
.notification-entry p { font-size: 12px; color: var(--muted); margin: 6px 0; }
.notification-status { font-size: 11px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 100; max-width: min(90vw, 560px); padding: 15px 23px; border: 1px solid #6d7f63; border-radius: 20px; background: #2e3c31; color: #f9fcf2; box-shadow: 0 8px 40px #20312326; font-size: 13px; }
.connection-banner { background: #e8dfc9; color: #6d592e; text-align: center; padding: 11px 20px; font-size: 12px; }
.error-panel { background: #fff1e6; border: 1px solid #dfbca8; border-radius: 17px; padding: 19px; margin-bottom: 20px; font-size: 13px; }
.auth-gate { max-width: 620px; text-align: center; margin: 0 auto; padding: 74px 20px; }
.auth-gate h1 { font-size: 45px; }
.auth-gate p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.auth-gate .hero-actions { justify-content: center; }
dialog { width: min(490px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #e3e9dc; border-radius: 29px; background: #fafcf6; color: var(--ink); box-shadow: 0 25px 120px #14271c30; overscroll-behavior: contain; }
dialog::backdrop { background: #1d302780; backdrop-filter: blur(7px); }
.modal-body { padding: 34px; }
.modal-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.modal-top h2 { font-size: 32px; font-weight: 400; margin: 3px 0 0; }
.modal-top .eyebrow { color: #6f815e; font-size: 9px; margin-bottom: 10px; }
.close-modal { display: grid; place-items: center; width: 36px; height: 36px; min-width: 36px; border: 1px solid #d2ddc9; border-radius: 50%; background: #e8efe0; font-size: 23px; line-height: 1; font-weight: 300; }
.modal-intro { color: var(--muted); font-size: 13px; line-height: 1.9; }
.modal-switch { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.modal-switch button { font-size: 12px; padding-left: 4px; }
.password-toggle { display: flex; justify-content: flex-end; margin: -7px 0 10px; }
.password-toggle button { font-size: 11px; min-height: 29px; }
.resources-list { padding-left: 20px; font-size: 13px; line-height: 1.9; }
.resources-list li { margin-bottom: 17px; }
.resources-list small { display: block; color: var(--muted); font-size: 12px; line-height: 1.8; }
.resource-note { font-size: 13px; line-height: 1.9; color: var(--muted); margin-bottom: 19px; }
.sos-modal { width: min(670px, calc(100% - 32px)); }
.sos-modal .modal-body { padding: 31px; }
.sos-tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid #d4dec9; border-radius: 100px; background: #e9efe2; margin: 22px 0; }
.sos-tab { flex: 1; min-height: 44px; padding: 11px 8px; border: 0; border-radius: 100px; background: transparent; font-size: 13px; }
.sos-tab.active { background: #36482f; color: white; }
.exercise { min-height: 329px; padding: 27px; border-radius: 23px; text-align: center; background: #e5e0ec; }
#exercise-move { background: #dce7ec; }
#exercise-distract { background: #deebe2; }
.exercise h3 { font-size: 27px; font-weight: 400; letter-spacing: -.045em; }
.exercise p { max-width: 390px; margin-left: auto; margin-right: auto; color: #5d5d68; font-size: 13px; line-height: 1.9; }
.breath-room { padding-top: 29px; }
.breath-circle { width: 135px; height: 135px; margin: 12px auto 27px; position: relative; display: grid; place-items: center; border-radius: 50%; background: #c8bfd7; color: #4c415e; box-shadow: 0 0 0 17px #d5ccdf, 0 0 0 34px #dfd8e7; }
.breath-circle::before { content: ''; position: absolute; inset: 10px; border: 1px solid #a89bbd; border-radius: 50%; }
.breath-circle span { position: relative; font-size: 19px; font-weight: 400; letter-spacing: -.03em; }
.breath-circle.breathing { animation: breathe 10s ease-in-out infinite; }
.breath-circle.paused { animation-play-state: paused; }
.breath-caption { font-size: 11px !important; margin-bottom: 5px !important; }
.exercise .text-button { font-size: 12px; color: #514a5e; }
.exercise-symbol { font-size: 56px; font-weight: 300; line-height: 1; color: #7b9395; margin: 5px 0 22px; }
.activity-options { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; max-width: 380px; margin: 21px auto; }
.activity-options button { min-height: 57px; padding: 14px 10px; border: 1px solid #bdccd3; border-radius: 15px; background: #fafdfb9c; color: #425863; font-size: 12px; }
.activity-options button.selected { background: #435e6b; border-color: #435e6b; color: white; }
.sos-form { margin-top: 26px; }
.sos-form h3 { font-size: 15px; }
.range-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.range-value { padding: 5px 12px; border-radius: 50px; background: #e3ecdc; font-size: 13px; font-weight: 500; }
.range-input { width: 100%; height: 37px; accent-color: #536b44; margin: 10px 0 0; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.sos-result { border: 0; padding: 0; margin: 21px 0; }
.sos-result legend { font-size: 13px; margin-bottom: 10px; }
.radio-list { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill { position: relative; flex: 1; }
.radio-pill span { display: block; text-align: center; padding: 12px 8px; border: 1px solid #d2ddc9; border-radius: 14px; background: #ecf2e6; cursor: pointer; font-size: 12px; }
.radio-pill input:checked+span { background: #384e2e; border-color: #384e2e; color: white; }
.notice { background: #ede6d7; border: 1px solid #ddd1b9; border-radius: 16px; padding: 14px 16px; color: #776444; font-size: 12px; line-height: 1.9; margin-bottom: 18px; }
.big-success { font-size: 36px; font-weight: 400; letter-spacing: -.05em; margin: 21px 0 15px; }
.success-mark { display: grid; place-items: center; width: 67px; height: 67px; margin: 17px 0; background: #e3ebda; border-radius: 50%; font-size: 25px; }
@keyframes breathe { 0%, 100% { transform: scale(.83); } 40% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .breath-circle.breathing { outline: 2px solid #aa9dbb; outline-offset: 10px; }
}
@media (max-width: 1280px) {
  main, .site-footer { margin-left: 36px; margin-right: 36px; }
}
@media (max-width: 1040px) {
  .today-layout, .welcome-layout { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 20px; }
  .nature-hero { padding: 25px; min-height: 710px; }
  .hero-message { margin-top: 145px; }
  .hero-message h1 { font-size: 52px; }
  .hero-progress { padding: 18px 16px 11px; }
  .hero-progress .stat-card { padding: 0 10px; }
  .hero-progress .stat-top { font-size: 11px; }
  .hero-progress .stat-top svg { display: none; }
  .hero-progress .stat-number { font-size: 25px; }
  .thought-card { padding: 24px; }
  .thought-card h2 { font-size: 27px; }
  .thought-card>p { font-size: 12px; }
  .trigger-card { padding: 22px; }
  .trigger-card .section-label { display: block; }
  .trigger-card .text-button { min-height: 30px; padding: 5px 0; }
  .welcome-aside { padding: 28px 23px; }
  .welcome-aside>h2 { font-size: 35px; }
  .guest-hero .hero-message { margin-top: 135px; }
  .hero-glass-note { padding: 18px; gap: 11px; }
  .hero-glass-note>svg { display: none; }
  .glass-login { padding: 11px 13px; gap: 7px; }
  .activity-card { padding: 24px; min-height: 240px; }
  .activity-title { font-size: 29px; }
  .settings-layout, .journey-grid { gap: 20px; }
  .panel { padding: 25px; }
}
@media (max-width: 800px) {
  .site-header { height: 84px; padding: 0 26px; }
  main, .site-footer { margin-left: 26px; margin-right: 26px; }
  .today-layout, .welcome-layout { grid-template-columns: 1fr; }
  .nature-hero { min-height: 725px; }
  .nature-hero::before { background-position: center 50%; }
  .hero-message { margin-top: 160px; }
  .hero-message h1 { font-size: 61px; }
  .hero-progress { margin-top: auto; }
  .hero-progress .stat-top { font-size: 12px; min-height: 37px; }
  .hero-progress .stat-number { font-size: 31px; }
  .hero-progress .stat-top svg { display: block; }
  .hero-progress .stat-card p { font-size: 11px; }
  .today-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .thought-card { padding: 25px; }
  .thought-symbol { display: none; }
  .thought-card h2 { font-size: 27px; }
  .thought-card .eyebrow { margin-bottom: 25px; }
  .trigger-card { padding: 24px; }
  .trigger-card .section-label { display: flex; }
  .trigger-card .section-label h2 { font-size: 16px; }
  .activity-grid { gap: 14px; }
  .activity-card { min-height: 232px; padding: 22px; }
  .activity-title { font-size: 27px; }
  .activity-kicker { font-size: 8px; }
  .activity-bottom { gap: 8px; }
  .activity-bottom>span:first-child { font-size: 10px; }
  .activity-play { width: 37px; height: 37px; flex-shrink: 0; }
  .welcome-aside { padding: 30px; }
  .welcome-aside>.eyebrow { margin-bottom: 20px; }
  .welcome-aside>h2 { font-size: 39px; }
  .welcome-aside>h2>br { display: none; }
  .guest-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin: 27px 0; }
  .guest-feature { display: block; }
  .feature-index { display: block; margin-bottom: 12px; }
  .guest-feature p { font-size: 11px; }
  .welcome-aside .button { width: auto; }
  .settings-layout { grid-template-columns: 1fr; gap: 0; }
  .journey-grid { grid-template-columns: 1fr; }
  .site-footer>div>span { display: none; }
}
@media (max-width: 570px) {
  .site-header { height: 75px; padding: 0 19px; gap: 12px; }
  .brand { font-size: 31px; gap: 8px; letter-spacing: -1.7px; }
  .brand svg { width: 24px; height: 30px; }
  .account-actions { gap: 9px; }
  .account-name { display: none; }
  .avatar { display: none; }
  .account-actions .icon-button { width: 39px; height: 39px; }
  .account-actions .button { font-size: 11px; min-height: 39px; padding: 10px 16px; }
  main { margin: 0 13px; padding: 0; min-height: calc(100vh - 250px); }
  .nature-hero { padding: 20px; border-radius: 30px; min-height: 715px; }
  .hero-greeting { gap: 10px; }
  .hero-avatar { width: 44px; height: 44px; font-size: 17px; }
  .hero-greeting p { font-size: 12px; margin-bottom: 4px; }
  .hero-greeting>div>span { font-size: 10px; max-width: 190px; }
  .hero-message { margin-top: 157px; }
  .hero-message .eyebrow { font-size: 9px; letter-spacing: .09em; margin-bottom: 14px; }
  .hero-message h1 { font-size: 47px; letter-spacing: -.065em; margin-bottom: 15px; }
  .hero-message>p { font-size: 12px; line-height: 1.85; margin-bottom: 21px; }
  .hero-message .button { font-size: 12px; min-height: 48px; padding: 13px 20px; }
  .button-light svg { margin-left: 12px; }
  .hero-progress { padding: 16px 14px 10px; border-radius: 23px; margin-top: 27px; }
  .progress-heading { margin-bottom: 17px; }
  .progress-heading h2 { font-size: 20px; }
  .progress-heading>span { font-size: 9px; padding: 6px 11px; }
  .hero-progress .stat-card { padding: 0 9px; }
  .hero-progress .stat-top { font-size: 11px; min-height: 42px; line-height: 1.5; margin-bottom: 9px; }
  .hero-progress .stat-top svg { display: none; }
  .hero-progress .stat-number { font-size: 24px; }
  .hero-progress .stat-number span { font-size: 15px; }
  .hero-progress .stat-card p { font-size: 11px; line-height: 1.7; margin-top: 8px; }
  .progress-link { font-size: 11px; margin-top: 14px; padding-top: 12px; }
  .today-layout { gap: 20px; }
  .today-aside { display: flex; flex-direction: column; gap: 17px; }
  .thought-card { padding: 26px; border-radius: 27px; }
  .thought-card .eyebrow { font-size: 9px; margin-bottom: 23px; }
  .thought-card h2 { font-size: 30px; max-width: 290px; margin-bottom: 15px; }
  .thought-card>p { font-size: 13px; line-height: 1.9; }
  .thought-card>a { font-size: 11px; padding-top: 3px; }
  .trigger-card { padding: 23px 25px; border-radius: 26px; }
  .trigger-card .section-label h2 { font-size: 18px; }
  .trigger-card .section-label { margin-bottom: 8px; }
  .trigger-card>p { font-size: 12px; }
  .chip { font-size: 11px; padding: 7px 12px; }
  .activities-section { margin: 28px 4px 0; }
  .activities-section>.section-label { display: block; margin-bottom: 17px; }
  .activities-section>.section-label h2 { font-size: 24px; letter-spacing: -.055em; margin-bottom: 7px; }
  .activities-section>.section-label>span { font-size: 11px; }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .activity-card { min-height: 222px; padding: 21px 17px 17px; border-radius: 26px; }
  .activity-kicker { font-size: 8px; letter-spacing: .06em; margin-bottom: 28px; }
  .activity-title { font-size: 27px; }
  .activity-bottom { padding-top: 20px; gap: 6px; align-items: flex-end; }
  .activity-bottom>span:first-child { font-size: 10px; line-height: 1.6; max-width: 70px; }
  .activity-play { width: 35px; height: 35px; }
  .activity-play svg { width: 18px; height: 18px; }
  .activity-mint { grid-column: 1/-1; min-height: 164px; padding: 21px; display: grid; grid-template-columns: 1fr auto; }
  .activity-mint .activity-kicker { grid-column: 1/-1; margin-bottom: 16px; }
  .activity-mint .activity-title>br { display: none; }
  .activity-mint .activity-title { max-width: 215px; }
  .activity-mint .activity-bottom { align-self: end; gap: 18px; padding-top: 0; }
  .activity-mint .activity-bottom>span:first-child { max-width: 76px; }
  .quiet-note { font-size: 11px; line-height: 1.9; margin: 24px 6px 0; padding-top: 19px; gap: 10px; }
  .quiet-note svg { width: 16px; height: 16px; }
  .guest-hero { min-height: 706px; }
  .guest-hero .hero-message { margin-top: 150px; }
  .guest-hero .hero-message h1 { font-size: 62px; }
  .guest-hero .hero-message>p { font-size: 13px; line-height: 1.85; }
  .hero-sos-link { font-size: 11px; margin-top: 10px; gap: 10px; }
  .hero-sos-link svg { width: 15px; height: 15px; flex-shrink: 0; }
  .hero-glass-note { padding: 17px 15px; gap: 10px; border-radius: 22px; margin-top: 36px; }
  .hero-glass-note p { font-size: 11px; }
  .hero-glass-note p span { font-size: 10px; }
  .glass-login { font-size: 10px; padding: 11px 13px; gap: 9px; }
  .glass-login svg { display: none; }
  .welcome-layout { gap: 21px; }
  .welcome-aside { padding: 27px; border-radius: 28px; }
  .welcome-aside>.eyebrow { margin-bottom: 26px; font-size: 10px; }
  .welcome-aside>h2 { font-size: 37px; line-height: 1.07; margin-bottom: 20px; }
  .aside-intro { font-size: 13px; line-height: 1.9; }
  .guest-features { display: flex; flex-direction: column; gap: 23px; margin: 28px 0; }
  .guest-feature { display: flex; gap: 16px; }
  .feature-index { padding-top: 1px; font-size: 12px; margin: 0; }
  .guest-feature h3 { font-size: 14px; }
  .guest-feature p { font-size: 12px; line-height: 1.8; }
  .welcome-aside .button { width: 100%; font-size: 12px; }
  .site-footer { display: block; margin: 22px 21px 0; padding: 20px 0 calc(125px + env(safe-area-inset-bottom)); font-size: 10px; }
  .site-footer>div { gap: 20px; margin-top: 10px; }
  .site-footer .text-button { font-size: 10px; }
  .page-top { padding: 12px 6px 0; margin-bottom: 22px; }
  .date-label { font-size: 9px; }
  .status-pill { font-size: 9px; padding: 5px 9px; }
  .page-heading { padding: 24px 8px 0; margin-bottom: 26px; }
  .page-heading h1 { font-size: 38px; }
  .page-heading p { font-size: 13px; line-height: 1.9; }
  .page-heading .eyebrow { font-size: 9px; margin-bottom: 17px; }
  .hero-copy { padding: 23px 8px; }
  .hero-copy h1 { font-size: 38px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { font-size: 12px; padding: 13px 18px; }
  .panel { padding: 24px 21px; border-radius: 25px; margin-bottom: 18px; }
  .panel-head { gap: 11px; margin-bottom: 23px; }
  .panel-head h2 { font-size: 18px; }
  .panel>p { font-size: 12px; }
  .field { margin-bottom: 20px; gap: 8px; }
  .field label { font-size: 12px; }
  .field input:not([type=checkbox]):not([type=radio]):not([type=range]), .field select, .field textarea { font-size: 16px; min-height: 49px; padding: 12px; }
  .field small { font-size: 11px; }
  .field-grid { gap: 0 12px; }
  .form-note { padding: 14px; font-size: 11px; line-height: 1.9; }
  .help-box { padding: 16px; font-size: 11px; }
  .help-box h3 { font-size: 13px; }
  .check-row { font-size: 12px; }
  .check-row small { font-size: 11px; }
  .push-state { font-size: 12px; }
  .inline-actions { gap: 9px; }
  .inline-actions .button { font-size: 12px; padding: 12px 15px; }
  .save-bar { bottom: calc(13px + env(safe-area-inset-bottom)); padding: 13px 14px; gap: 12px; margin-bottom: 18px; border-radius: 19px; }
  .save-bar>span { font-size: 10px; max-width: 110px; }
  .save-bar .button { min-height: 46px; font-size: 12px; padding: 12px 15px; gap: 9px; }
  .save-bar .button svg { width: 16px; height: 16px; }
  .stats-grid { gap: 8px; margin: 0 3px 24px; }
  .stat-card { padding: 16px 11px; border-radius: 18px; }
  .stat-top { font-size: 10px; min-height: 47px; gap: 4px; margin-bottom: 9px; line-height: 1.55; }
  .stat-top svg { display: none; }
  .stat-number { font-size: 25px; }
  .stat-number>span { font-size: 14px; }
  .stat-card p { font-size: 11px; line-height: 1.7; margin-top: 8px; }
  .journey-grid { gap: 18px; }
  .journey-side { gap: 18px; }
  .section-label h2 { font-size: 17px; }
  .section-label>span { font-size: 10px; }
  .timeline-item { gap: 11px; padding: 19px 0; }
  .timeline-mark { width: 32px; height: 32px; }
  .timeline-mark svg { width: 16px; height: 16px; }
  .timeline-item h3 { font-size: 13px; }
  .timeline-item p { font-size: 11px; }
  .timeline-item time { font-size: 10px; max-width: 64px; white-space: normal; text-align: right; line-height: 1.8; padding-left: 0; }
  .soft-panel h2 { font-size: 30px; }
  .soft-panel p { font-size: 12px; }
  .notification-entry { font-size: 12px; }
  .notification-entry p, .notification-status { font-size: 11px; }
  .small { font-size: 11px; line-height: 1.9; }
  .toast { bottom: calc(15px + env(safe-area-inset-bottom)); min-width: min(87vw, 410px); max-width: 91vw; text-align: center; font-size: 12px; padding: 15px 18px; border-radius: 19px; }
  .connection-banner { padding: 10px 18px; font-size: 11px; }
  .auth-gate { padding: 57px 13px; }
  .auth-gate h1 { font-size: 39px; }
  .auth-gate p { font-size: 13px; }
  .loading-shell { padding: 35px 10px; min-height: 65vh; }
  dialog { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 26px; }
  .modal-body { padding: 26px 24px; }
  .modal-top { gap: 13px; }
  .modal-top h2 { font-size: 30px; }
  .modal-intro { font-size: 12px; line-height: 1.9; }
  .sos-modal .modal-body { padding: 26px 21px; }
  .sos-tabs { margin: 20px 0; gap: 2px; }
  .sos-tab { font-size: 11px; padding: 11px 6px; }
  .exercise { min-height: 324px; padding: 24px 17px; border-radius: 22px; }
  .breath-room { padding-top: 29px; }
  .exercise p { font-size: 12px; line-height: 1.9; }
  .breath-caption { font-size: 10px !important; }
  .exercise .text-button { font-size: 11px; }
  .activity-options { gap: 10px; }
  .activity-options button { font-size: 11px; padding: 13px 8px; }
  .sos-form { margin-top: 25px; }
  .sos-form h3 { font-size: 14px; }
  .range-header { font-size: 12px; }
  .sos-result legend { font-size: 12px; }
  .radio-pill span { font-size: 11px; padding: 12px 6px; }
  .notice { font-size: 11px; padding: 14px; }
  .resources-list { font-size: 12px; }
  .resources-list small { font-size: 11px; }
  .resource-note { font-size: 12px; }
}
@media (max-width: 355px) {
  .site-header { padding: 0 15px; }
  main { margin-left: 10px; margin-right: 10px; }
  .nature-hero { padding: 17px; border-radius: 27px; min-height: 704px; }
  .hero-greeting { gap: 9px; }
  .hero-avatar { width: 39px; height: 39px; }
  .hero-greeting p { font-size: 11px; }
  .hero-greeting>div>span { font-size: 9px; max-width: 162px; }
  .hero-message h1 { font-size: 43px; }
  .hero-message { margin-top: 145px; }
  .hero-message .eyebrow { font-size: 8px; }
  .hero-progress { padding: 16px 12px 10px; }
  .hero-progress .stat-card { padding: 0 7px; }
  .hero-progress .stat-number { font-size: 21px; }
  .hero-progress .stat-top { font-size: 11px; }
  .hero-progress .stat-card p { font-size: 11px; }
  .guest-hero .hero-message h1 { font-size: 55px; }
  .hero-glass-note { padding: 15px 12px; gap: 7px; }
  .hero-glass-note p { font-size: 10px; }
  .hero-glass-note p span { font-size: 9px; }
  .glass-login { font-size: 9px; padding: 10px; }
  .hero-sos-link { font-size: 10px; }
  .activity-title { font-size: 24px; }
  .activity-card { padding: 20px 14px 16px; }
  .activity-kicker { font-size: 7px; }
  .activity-mint { padding: 21px 18px; }
  .activity-mint .activity-title { max-width: 160px; }
  .activity-mint .activity-bottom { gap: 9px; }
  .activity-mint .activity-bottom>span:first-child { max-width: 57px; font-size: 9px; }
  .field-grid { grid-template-columns: 1fr; }
  .save-bar>span { max-width: 80px; font-size: 9px; }
  .save-bar .button { font-size: 11px; padding: 12px 14px; }
  .stat-number { font-size: 21px; }
  .stat-top { font-size: 9px; }
  .sos-modal .modal-body { padding: 24px 17px; }
  .radio-pill span { font-size: 10px; }
}

/* A public, dismissible install suggestion. It never overlays navigation or SOS. */
.pwa-install-icon { width: 64px; height: 64px; border-radius: 19px; }
.pwa-install-dialog { overflow: auto; width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - 32px); border: 1px solid #fafff3; border-radius: 32px; padding: 0; color: #28372d; background: #f0f3e9; box-shadow: 0 25px 100px #0e241f45; }
.pwa-install-dialog::backdrop { background: #14251ee6; backdrop-filter: blur(5px); }
.pwa-install-dialog-body { padding: 28px; }
.pwa-install-dialog-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.pwa-install-close { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #bfcdb5; border-radius: 30px; padding: 7px 13px; background: #e2eada; color: #354a32; font-size: 12px; }
.pwa-install-close>span:first-child { font-size: 24px; line-height: 1; }
.pwa-install-dialog .eyebrow { color: #59704d; font-size: 10px; line-height: 1.7; margin-bottom: 15px; }
.pwa-install-dialog h2 { font-size: 36px; line-height: 1.1; margin-bottom: 20px; }
.pwa-install-dialog p { font-size: 14px; line-height: 1.85; color: #4d6146; }
.pwa-install-dialog .pwa-install-choice { font-size: 12px; margin-bottom: 24px; }
.pwa-install-actions { display: flex; flex-direction: column; align-items: stretch; gap: 7px; }
.pwa-install-actions .text-button { min-height: 44px; font-size: 13px; }
.pwa-install-sos { width: 100%; min-height: 44px; margin-top: 15px; padding-top: 17px; border-top: 1px solid #cad5c0; font-size: 12px; line-height: 1.6; }
.install-browser-note { padding: 17px; margin-bottom: 18px; border: 1px solid #cbd9bf; border-radius: 17px; background: #e8efdf; font-size: 12px; line-height: 1.9; }
.install-browser-note h3 { font-size: 15px; margin-bottom: 9px; }
.install-browser-note p:last-child { margin-bottom: 0; }
.install-address { padding: 9px 12px; border-radius: 10px; border: 1px solid #ccd9c2; background: #f9fbf2; overflow-wrap: anywhere; user-select: all; font-size: 12px; }
@media (max-width: 570px) {
  .pwa-install-dialog { max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom))); }
  .pwa-install-dialog-body { padding: 25px; }
  .pwa-install-dialog h2 { font-size: 34px; }
  .install-browser-note { font-size: 12px; padding: 16px; }
  .install-browser-note h3 { font-size: 14px; }
}
@media (max-width: 355px) { .pwa-install-dialog-body { padding: 22px; } .pwa-install-dialog h2 { font-size: 30px; } }

/* Native top-layer gate: the form dialog underneath stays open and intact. */
#portrait-gate {
  position: fixed; inset: 0; width: 100vw; height: 100dvh;
  max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0;
  padding: max(22px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
  overflow: auto; background: #eef0e9; color: #25392a; box-shadow: none;
}
#portrait-gate[open] { display: grid; place-items: center; }
#portrait-gate::backdrop { background: #eef0e9; backdrop-filter: none; }
.portrait-gate-body { max-width: 650px; margin: auto; text-align: center; }
.portrait-gate-icon { width: 83px; height: 83px; margin: 0 auto 19px; fill: none; stroke: #536c45; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#portrait-gate h2 { font-size: clamp(27px, 4vw, 39px); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 16px; }
#portrait-gate p { color: #5d7152; font-size: 14px; line-height: 1.8; margin: 0; }

.reminder-summary { display: flex; align-items: center; gap: 18px; margin: 26px 0 0; padding: 23px 25px; border: 1px solid #d3ddcb; border-radius: 26px; background: #e4ebdd; }
.reminder-summary-icon { display: grid; place-items: center; width: 45px; height: 45px; flex-shrink: 0; border: 1px solid #bdcdb1; border-radius: 50%; background: #f5f8ee9c; }
.reminder-summary-icon svg { width: 21px; height: 21px; fill: none; stroke: #526946; stroke-width: 1.5; }
.reminder-summary>div { flex: 1; min-width: 0; }
.reminder-summary h2 { font-size: 25px; margin: 0 0 9px; line-height: 1.1; }
.reminder-summary p { margin: 0; color: #52654b; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.reminder-summary .small { margin-top: 4px; font-size: 11px; }
.reminder-summary .button { flex-shrink: 0; }
.notification-settings { scroll-margin-top: 22px; outline: none; }
.notification-settings:focus-visible { outline: 3px solid #7a9366; outline-offset: 4px; }
@media (max-width: 800px) { .reminder-summary { flex-wrap: wrap; gap: 15px; } .reminder-summary .button { margin-left: 60px; } }
@media (max-width: 570px) {
  .reminder-summary { margin: 22px 4px 0; padding: 22px 21px; border-radius: 25px; gap: 12px; align-items: flex-start; }
  .reminder-summary-icon { width: 37px; height: 37px; }
  .reminder-summary-icon svg { width: 18px; height: 18px; }
  .reminder-summary>div { flex-basis: calc(100% - 49px); }
  .reminder-summary h2 { font-size: 23px; line-height: 1.13; margin-bottom: 10px; }
  .reminder-summary p { font-size: 12px; }
  .reminder-summary .small { font-size: 11px; line-height: 1.8; margin-top: 7px; }
  .reminder-summary .button { margin-left: 49px; font-size: 12px; padding: 12px 17px; min-height: 45px; }
  .notification-settings { scroll-margin-top: 15px; }
}
@media (max-width: 355px) { .reminder-summary .button { margin-left: 0; width: 100%; } }

/* Programme: public activities, with personal choices saved only on request. */
.programme-day-card { display: flex; align-items: center; gap: 28px; margin-top: 26px; padding: 29px; border: 1px solid #f6f4f8; border-radius: 29px; background: #ddd5e5; color: #43394b; }
.programme-day-card>div { flex: 1; min-width: 0; }
.programme-day-card .eyebrow { color: #68596e; font-size: 9px; margin-bottom: 14px; }
.programme-day-card h2 { font-size: 31px; line-height: 1.13; margin-bottom: 13px; max-width: 600px; }
.programme-day-card p { font-size: 13px; line-height: 1.9; margin-bottom: 12px; max-width: 660px; }
.programme-day-card .button { background: #4b4254; border-color: #4b4254; flex-shrink: 0; }
.programme-day-card .button:hover { background: #39303f; }
.programme-calendar-note { font-size: 11px; color: #675970; }
.journey-selector { display: flex; width: min(100%, 330px); gap: 5px; padding: 5px; margin: 14px 0 29px; border: 1px solid #d4ddcc; border-radius: 100px; background: #e2e9db; }
.journey-selector button { flex: 1; min-height: 45px; border: 0; border-radius: 50px; background: transparent; font-size: 13px; }
.journey-selector button.active { background: #fbfcf5; box-shadow: 0 2px 8px #3f51320a; }
.journey-selector button:disabled, .programme-index button:disabled, .radial-nav .nav-button:disabled { cursor: not-allowed; }
.programme-heading { padding: 22px 0 0; max-width: 790px; }
.programme-heading .eyebrow { color: #657b58; margin-bottom: 18px; }
.programme-heading h1 { font-size: 49px; margin-bottom: 18px; }
.programme-heading>p { color: #61705b; font-size: 14px; line-height: 1.9; max-width: 690px; }
.programme-context { display: flex; align-items: center; gap: 18px; padding: 18px 20px; margin: 0 0 24px; border: 1px solid #d4ddcb; border-radius: 20px; background: #e8eedf; }
.programme-context>span { display: block; flex-shrink: 0; max-width: 240px; padding: 8px 14px; border-radius: 50px; background: #f8fbf1; font-size: 12px; }
.programme-context p { margin: 0; color: #627158; font-size: 12px; line-height: 1.9; }
.programme-loading { padding: 13px 3px; color: #607253; font-size: 12px; }
.programme-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.programme-index { position: sticky; top: 20px; padding: 20px; border: 1px solid #d7dfd0; border-radius: 26px; background: #e6ecdf; }
.programme-phases { display: flex; gap: 7px; margin-bottom: 19px; }
.programme-phases button { flex: 1; padding: 12px 8px; min-height: 66px; border: 1px solid #ccd7c1; border-radius: 17px; background: #f6f9ef96; font-size: 12px; line-height: 1.5; }
.programme-phases button small { display: block; font-size: 10px; color: #65795b; margin-top: 4px; }
.programme-phases button.active { background: #354c2c; border-color: #354c2c; color: #fffef6; }
.programme-phases button.active small { color: #e1ead6; }
.programme-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.programme-day { position: relative; min-width: 0; min-height: 46px; padding: 8px 1px; border: 1px solid #c9d6be; border-radius: 13px; background: #f7faf1; color: #44593c; font-size: 11px; line-height: 1.3; }
.programme-day.current { border-color: #78965f; box-shadow: 0 0 0 1px #91aa7847; }
.programme-day.selected { background: #425c36; color: #fffef4; border-color: #425c36; }
.programme-status-dot { position: absolute; right: 3px; bottom: 2px; }
.programme-status-dot svg { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; }
.programme-status-later { position: absolute; right: 4px; bottom: -3px; font-size: 23px; }
.programme-count { font-size: 11px; line-height: 1.9; color: #5e7352; margin: 17px 0 21px; }
.programme-bonus { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px 12px; border: 1px solid #c5d3bb; border-radius: 17px; background: #f7f9edb3; text-align: left; margin: 0 0 13px; }
.programme-bonus>svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; flex-shrink: 0; }
.programme-bonus>svg:last-child { width: 16px; margin-left: auto; }
.programme-bonus>span { font-size: 12px; line-height: 1.5; }
.programme-bonus small { display: block; font-size: 10px; color: #697b5d; margin-top: 4px; }
.programme-bonus.active { background: #d6dec9; border-color: #869d71; }
.programme-index>.small { font-size: 10px; margin-bottom: 0; line-height: 1.8; }
.programme-reader { border: 1px solid #ffffffbf; border-radius: 29px; background: #fbfcf6; padding: 32px; scroll-margin-top: 20px; outline: none; }
.programme-reader:focus-visible { outline: 3px solid #94aa81; outline-offset: 4px; }
.programme-reader-label { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 25px; }
.programme-reader-label .eyebrow { color: #697d5b; margin: 0; font-size: 10px; }
.programme-reader-label .status-pill { background: #eaf0e2; border-color: #d6e0cd; color: #617652; }
.programme-reader>h2 { font-size: 37px; line-height: 1.12; max-width: 650px; margin-bottom: 22px; }
.programme-body { color: #5b6b52; font-size: 14px; line-height: 1.95; white-space: pre-line; }
.programme-small-action { padding: 22px 24px; border: 1px solid #e2daeb; border-radius: 21px; background: #e9e2ef; margin: 25px 0; }
.programme-small-action .eyebrow { font-size: 9px; color: #72607d; margin-bottom: 10px; }
.programme-small-action p { color: #574762; font-size: 16px; line-height: 1.7; margin: 0; }
.programme-reflection { margin: 24px 0 20px; }
.programme-reflection h3 { font-size: 15px; font-weight: 400; }
.programme-reflection p { font-size: 13px; line-height: 1.9; color: #69755e; white-space: pre-line; }
.programme-tool { margin-bottom: 25px; font-size: 12px; }
.programme-form { border-top: 1px solid #d6dfcd; padding-top: 25px; margin-top: 0; }
.programme-form fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.programme-form legend { font-size: 16px; line-height: 1.5; margin-bottom: 18px; padding: 0; }
.programme-status-options { display: flex; gap: 9px; margin-bottom: 23px; }
.programme-status-options .radio-pill span { border-radius: 50px; background: #edf2e6; font-size: 12px; min-height: 44px; }
.programme-status-options .radio-pill input:checked+span { background: #3d5731; border-color: #3d5731; }
.programme-form textarea { min-height: 135px; resize: vertical; line-height: 1.8; }
.programme-form .field small { align-self: flex-end; font-size: 10px; }
.programme-draft-state { margin: 1px 0 18px; color: #637257; font-size: 11px; line-height: 1.9; }
.programme-save-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.programme-save-actions .button { font-size: 12px; }
.programme-save-actions .text-button { font-size: 11px; }
.programme-saved { margin: 18px 0 0; font-size: 10px; }
.programme-guest-note { background: #e9f0e0; border: 1px solid #d6e1cb; border-radius: 20px; padding: 22px; }
.programme-guest-note h3 { font-size: 20px; line-height: 1.25; font-weight: 400; margin-bottom: 13px; }
.programme-guest-note p { font-size: 12px; line-height: 1.9; color: #5e7351; }
.programme-guest-note .small { margin: 14px 0 0; }
.programme-source { margin: 28px 0 0; padding: 24px 3px 0; border-top: 1px solid #d0dac8; color: #6a7761; }
.programme-source p { font-size: 11px; line-height: 1.9; margin-bottom: 12px; }
.programme-source a { font-size: 11px; }
.site-footer>div { flex-wrap: wrap; }
.programme-footer-source { font-size: 10px; color: var(--muted); text-decoration: none; line-height: 1.8; }
.programme-footer-source:hover { text-decoration: underline; }
@media (max-width: 960px) { .programme-layout { grid-template-columns: 280px minmax(0, 1fr); gap: 20px; } .programme-index { padding: 17px; } .programme-reader { padding: 27px; } .programme-reader>h2 { font-size: 32px; } }
@media (max-width: 800px) {
  .programme-day-card { flex-direction: column; align-items: flex-start; gap: 20px; }
  .programme-layout { grid-template-columns: 1fr; gap: 20px; }
  .programme-index { position: static; padding: 22px; }
  .programme-days { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .programme-phases { max-width: 450px; }
  .programme-heading h1 { font-size: 43px; }
  .programme-context { align-items: flex-start; }
}
@media (max-width: 570px) {
  .programme-day-card { margin: 22px 4px 0; padding: 25px; border-radius: 27px; gap: 18px; }
  .programme-day-card .eyebrow { font-size: 8px; margin-bottom: 14px; }
  .programme-day-card h2 { font-size: 29px; margin-bottom: 13px; }
  .programme-day-card p { font-size: 12px; line-height: 1.9; }
  .programme-calendar-note { font-size: 10px; line-height: 1.8; }
  .programme-heading { padding: 23px 9px 0; }
  .programme-heading .eyebrow { font-size: 8px; line-height: 1.8; margin-bottom: 18px; }
  .programme-heading h1 { font-size: 39px; line-height: 1.06; }
  .programme-heading>p { font-size: 13px; line-height: 1.9; }
  .journey-selector { margin: 16px 6px 23px; width: calc(100% - 12px); }
  .journey-selector button { font-size: 12px; }
  .programme-context { margin: 0 4px 20px; padding: 18px; border-radius: 20px; flex-direction: column; gap: 12px; }
  .programme-context>span { font-size: 11px; padding: 7px 12px; }
  .programme-context p { font-size: 11px; line-height: 1.9; }
  .programme-layout { gap: 19px; }
  .programme-index { padding: 21px; border-radius: 25px; }
  .programme-phases { gap: 9px; margin-bottom: 19px; }
  .programme-phases button { min-height: 65px; padding: 12px 8px; font-size: 12px; }
  .programme-days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
  .programme-day { min-height: 47px; font-size: 11px; border-radius: 13px; }
  .programme-count { font-size: 11px; line-height: 1.9; }
  .programme-bonus { padding: 15px 14px; }
  .programme-bonus>span { font-size: 13px; }
  .programme-bonus small { font-size: 10px; }
  .programme-index>.small { font-size: 10px; }
  .programme-reader { padding: 25px 22px; border-radius: 26px; scroll-margin-top: 16px; }
  .programme-reader-label { margin-bottom: 23px; gap: 10px; }
  .programme-reader-label .eyebrow { font-size: 9px; }
  .programme-reader-label .status-pill { font-size: 9px; padding: 5px 10px; }
  .programme-reader>h2 { font-size: 32px; line-height: 1.13; margin-bottom: 21px; }
  .programme-body { font-size: 13px; line-height: 1.95; }
  .programme-small-action { padding: 20px; border-radius: 19px; margin: 23px 0; }
  .programme-small-action p { font-size: 15px; line-height: 1.75; }
  .programme-reflection h3 { font-size: 14px; }
  .programme-reflection p { font-size: 12px; }
  .programme-form { padding-top: 23px; }
  .programme-form legend { font-size: 15px; }
  .programme-status-options { gap: 7px; margin-bottom: 21px; }
  .programme-status-options .radio-pill span { font-size: 11px; padding: 12px 5px; }
  .programme-form textarea { min-height: 150px; }
  .programme-draft-state { font-size: 11px; }
  .programme-save-actions { gap: 9px 16px; }
  .programme-save-actions .button { font-size: 12px; padding: 12px 16px; }
  .programme-guest-note { padding: 21px; }
  .programme-guest-note h3 { font-size: 21px; }
  .programme-source { margin: 25px 5px 0; padding-top: 21px; }
  .programme-source p, .programme-source a { font-size: 10px; line-height: 1.9; }
}
@media (max-width: 355px) { .programme-index { padding: 18px; } .programme-days { gap: 6px; } .programme-reader { padding: 24px 19px; } .programme-reader>h2 { font-size: 29px; } .programme-small-action { padding: 18px; } }

/* Product tracks: distinct measures and intentions, within the existing calm layout. */
.track-selector { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px 13px; margin: 0 0 20px; }
.track-selector label { font-size: 12px; font-weight: 600; }
.track-selector select { min-width: 0; max-width: 100%; min-height: 44px; padding: 9px 30px 9px 14px; margin: 0; border: 1px solid #9cae95; border-radius: 18px; background-color: #fbfcf8d9; color: #283c2c; font-size: 14px; }
.track-selector select:disabled { opacity: 1; color: #283c2c; }
.track-selector>span { grid-column: 2; font-size: 11px; color: #4a5c42; }
.observation-value { font-size: 20px; letter-spacing: -.04em; line-height: 1.3; overflow-wrap: anywhere; }
.other-tracks { margin-top: 28px; }
.other-tracks-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.other-track-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; padding: 24px; border: 1px solid #d4dbd1; background: #e5e9dfb0; border-radius: 24px; min-width: 0; }
.other-track-card:nth-child(2n) { background: #e4e5efad; }
.other-track-card:nth-child(3n) { background: #dee8e7bb; }
.other-track-card strong { font-size: 23px; font-weight: 400; letter-spacing: -.04em; line-height: 1.2; }
.other-track-card>span { font-size: 12px; }
.other-track-card .text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: auto; color: #344935; }
.other-track-card svg { width: 17px; height: 17px; stroke: currentColor; fill: none; }
.track-family { font-size: 11px; color: #52604e; }
.tracks-panel>p { font-size: 14px; line-height: 1.8; }
.track-settings-card { min-width: 0; margin: 28px 0; padding: 22px 20px 15px; border: 1px solid #c9d4c2; border-radius: 23px; background: #f7f9f1a3; }
.track-settings-card legend { max-width: 100%; padding: 0 10px; font-size: 23px; line-height: 1.4; letter-spacing: -.04em; overflow-wrap: anywhere; }
.track-settings-card .track-family { margin-bottom: 19px; }
.track-settings-card .remove-track { margin: 0 0 16px; font-size: 12px; }
.track-settings-card .field { min-width: 0; }
.track-settings-card .field input, .track-settings-card .field select { min-width: 0; max-width: 100%; }
.track-settings-card .field label { font-size: 12px; line-height: 1.65; }
.track-budget { padding: 16px 0 0; border-top: 1px solid #d8dfd1; margin-top: 4px; }
.track-budget summary { cursor: pointer; min-height: 44px; font-size: 13px; line-height: 1.65; }
.track-budget .small, .track-goal-note { font-size: 12px; line-height: 1.85; }
.track-goal-note { margin-bottom: 0; margin-top: 12px; }
.add-track-row { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.add-track-row .field { min-width: 170px; flex: 1; margin: 0; }
.add-track-row .button { margin-bottom: 0; }
.mix-fields { min-width: 0; border: 1px solid #c9d4c2; border-radius: 20px; padding: 18px; margin: 0 0 23px; }
.mix-fields legend { font-size: 15px; padding: 0 7px; }
.mix-fields p { margin-bottom: 0; }
@media (max-width: 900px) { .other-tracks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 570px) {
  .track-selector { grid-template-columns: 1fr; gap: 5px; margin-bottom: 19px; }
  .track-selector>span { grid-column: 1; font-size: 11px; }
  .track-selector select { width: 100%; font-size: 13px; }
  .hero-progress .observation-value { font-size: 17px; }
  .other-tracks { margin: 25px 4px 0; }
  .other-tracks .section-label { align-items: flex-start; gap: 10px; flex-direction: column; }
  .other-tracks-grid { grid-template-columns: 1fr; gap: 12px; }
  .other-track-card { padding: 22px; }
  .other-track-card strong { font-size: 25px; }
  .track-settings-card { padding: 19px 15px 16px; margin: 24px 0; border-radius: 20px; }
  .track-settings-card legend { font-size: 22px; }
  .track-settings-card .field-grid { grid-template-columns: 1fr; }
  .add-track-row { flex-direction: column; align-items: stretch; }
  .add-track-row .field { width: 100%; min-width: 0; }
  .add-track-row .button { align-self: flex-start; }
  .tracks-panel .form-note { font-size: 12px; line-height: 1.85; }
}
.tobacco-summary { display: flex; align-items: center; gap: 16px; padding: 14px 0 18px; margin: 0 0 18px; border-bottom: 1px solid #b7c4af; }
.tobacco-summary>div { display: flex; flex-direction: column; gap: 6px; min-width: 110px; flex-shrink: 0; }
.tobacco-summary strong { font-size: 25px; font-weight: 400; line-height: 1.1; letter-spacing: -.04em; }
.tobacco-summary p { font-size: 11px; line-height: 1.8; margin: 0; color: #43543d; }
.tobacco-summary .track-family { font-size: 11px; max-width: 160px; }
.empty-track-note { font-size: 14px; color: #344935; }
@media (max-width: 570px) { .tobacco-summary { align-items: flex-start; gap: 11px; } .tobacco-summary>div { min-width: 100px; } .tobacco-summary strong { font-size: 23px; } }
.track-live-fields { border: 0; margin: 0; padding: 0; min-width: 0; }
.archive-track { margin-bottom: 18px; font-size: 12px; }
.archived-track-note { line-height: 1.9; margin-bottom: 0; padding: 14px 16px; border-radius: 16px; background: #e6ebdf; color: #42513e; }

/* A quarter-circle of glass grows from the centre of the Menu button. */
.site-menu { --menu-top: max(21px, env(safe-area-inset-top)); --menu-right: max(24px, env(safe-area-inset-right)); --menu-radius: 220px; position: fixed; top: var(--menu-top); right: var(--menu-right); z-index: 35; width: 52px; height: 52px; }
.menu-toggle { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1px; width: 52px; height: 52px; border: 1px solid #fafff5; border-radius: 50%; background: #324c37; color: #fbfff5; box-shadow: 0 5px 23px #20332627; }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.menu-toggle>span { font-size: 9px; line-height: 1.1; }
.menu-toggle[aria-expanded="true"] { background: #ffffff30; color: #20362b; border-color: #ffffffb8; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.radial-nav { position: fixed; top: 0; right: 0; width: calc(var(--menu-radius) + var(--menu-right) + 10px); height: calc(var(--menu-radius) + var(--menu-top) + 5px); padding: 0; border: 1px solid #ffffff26; border-radius: 0 0 0 var(--menu-radius); background: linear-gradient(135deg, #ffffff30, #ffffff14); backdrop-filter: blur(8px) saturate(1.1); -webkit-backdrop-filter: blur(8px) saturate(1.1); box-shadow: 0 10px 32px #10251e24, inset 0 1px 0 #ffffff7a; transform-origin: var(--menu-radius) calc(var(--menu-top) + 26px); animation: glass-arc-in 220ms cubic-bezier(.2,.8,.2,1); }
.radial-nav .nav-button { pointer-events: none; position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 132px; min-width: 0; min-height: 72px; border: 0; padding: 0; border-radius: 0; color: #20362b; background: transparent; }
.radial-nav .nav-orb, .radial-nav .nav-label { pointer-events: auto; }
.radial-nav .nav-button:nth-child(1) { top: calc(var(--menu-top) - 4px); left: 12px; right: auto; }
.radial-nav .nav-button:nth-child(2) { top: calc(var(--menu-top) + 73px); left: 54px; right: auto; }
.radial-nav .nav-button:nth-child(3) { top: calc(var(--menu-top) + 134px); left: 128px; right: auto; }
.nav-orb { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffffc2; border-radius: 50%; background: #ffffff45; box-shadow: 0 4px 15px #15271f1c, inset 0 1px 0 #ffffff66; }
.nav-orb svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav-label { padding: 3px 7px; border: 0; border-radius: 40px; background: transparent; font-size: 11px; line-height: 1.4; white-space: nowrap; box-shadow: none; }
.radial-nav .nav-button.active .nav-orb { background: #324c37; border-color: #324c37; color: #fffef6; }
.radial-nav .nav-button:hover .nav-orb { background: #d3e0c7; color: #2d422c; }
.site-footer { padding-bottom: max(35px, env(safe-area-inset-bottom)); }
@keyframes glass-arc-in { from { opacity: 0; transform: scale(.12); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 570px) {
  .site-menu { --menu-top: max(11px, env(safe-area-inset-top)); --menu-right: max(13px, env(safe-area-inset-right)); }
  .hero-greeting>div>span { max-width: 100%; }
}
@media (max-width: 355px) { .site-menu { --menu-right: max(10px, env(safe-area-inset-right)); } .site-header .account-actions { margin-right: 52px; } .account-actions .button { padding-left: 11px; padding-right: 11px; } }
@media (prefers-reduced-motion: reduce) { .radial-nav { animation: none; } }

.site-header { padding-right: 86px; }
@media (max-width: 570px) { .site-header { padding-right: 80px; } }

/* The photograph starts the page; the fixed menu keeps its own clear corner. */
.hero-greeting { padding-right: 64px; min-height: 58px; }
.page-heading { padding-right: 70px; }
@media (max-width: 570px) { .hero-greeting { padding-right: 55px; min-height: 62px; } .page-heading { padding-right: 61px; } }

.hero-greeting .hero-brand-name { font-size: 36px; line-height: 1.1; letter-spacing: -.055em; margin-bottom: 6px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .radial-nav { background: #ffffffbf; } }

/* Privacy and explicit health consent share the existing panel language. */
.health-consent { margin:24px 0; padding:20px; border:1px solid #bac6b6; border-radius:22px; min-width:0; }
.health-consent legend { padding:0 8px; font-weight:600; }
.health-consent .check-row { align-items:flex-start; margin:18px 0; }
.health-consent input[type=checkbox] { flex-shrink:0; margin-top:4px; }
.consent-details { margin-top:20px; }
.consent-details summary { cursor:pointer; padding:12px 0; text-decoration:underline; }
.privacy-section { margin:26px 0; }
.privacy-section h3 { margin-bottom:12px; }
.privacy-details { display:grid; gap:12px; margin:18px 0; }
.privacy-details > div { padding:12px 0; border-bottom:1px solid #d2dace; }
.privacy-details dt { font-size:.85rem; color:#53644f; }
.privacy-details dd { margin:4px 0 0; overflow-wrap:anywhere; }
.privacy-info p { overflow-wrap:anywhere; }
.privacy-missing { color:#79542c; }
.account-privacy { margin-top:24px; }
.radial-nav .nav-label { max-width:132px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:570px) { .health-consent { padding:15px; } .privacy-info .button { white-space:normal; } }

.ip-stats-banner { position:fixed; z-index:40; bottom:max(16px,env(safe-area-inset-bottom)); right:max(16px,env(safe-area-inset-right)); width:min(430px,calc(100vw - 32px)); max-height:calc(100dvh - 36px); overflow:auto; padding:20px; border:1px solid #ffffffdf; border-radius:26px; background:#f8faf4f5; box-shadow:0 12px 50px #13261b33; color:#28382b; -webkit-backdrop-filter:blur(8px) saturate(1.1); backdrop-filter:blur(8px) saturate(1.1); }
.ip-stats-banner[hidden] { display:none; }
.ip-stats-heading { display:flex; align-items:center; gap:12px; justify-content:space-between; }
.ip-stats-heading h2 { margin:0; font-size:1.25rem; letter-spacing:-.03em; }
.ip-stats-close { flex:none; width:44px; height:44px; border:0; border-radius:50%; background:#e9eee4; font-size:26px; color:inherit; cursor:pointer; }
.ip-stats-description { font-size:.875rem; line-height:1.55; max-height:230px; overflow:auto; }
.ip-stats-description p { margin:12px 0; }
.ip-stats-actions { display:flex; gap:12px; margin:14px 0; }
.ip-stats-actions > button { flex:1; min-height:44px; }
@media(max-width:570px) { .ip-stats-banner { padding:17px; bottom:max(12px,env(safe-area-inset-bottom)); right:12px; width:calc(100vw - 24px); } }

.closed-test-notice { margin:16px max(84px,env(safe-area-inset-right)) 12px max(22px,env(safe-area-inset-left)); padding:14px 18px; border:1px solid #c1ccba; border-radius:18px; color:#293a2a; background:#eef2e6; font-size:.85rem; line-height:1.5; }
.closed-test-notice[hidden] { display:none; }
.closed-test-notice strong { display:block; font-size:.95rem; }
.closed-test-notice p { margin:6px 0; }
.closed-test-notice .text-button { min-height:36px; }
@media(max-width:570px) { .closed-test-notice { margin:12px 78px 12px 14px; padding:12px; } }
