/* Approved five-tab hierarchy. Today calorie hero and existing report/data controls are preserved. */
#hero-food-check[hidden]{display:none}
#hero-food-check{margin:0 0 24px}
.hero-food-panel{background:#07564e;color:#fff;border-radius:16px;padding:24px;border:0}
.hero-food-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px;color:#c8f4eb;font-size:12px}
.hero-food-panel h2{margin:0 0 12px;max-width:16ch;color:#fff;font:700 28px/1.12 var(--body,Arial,sans-serif);letter-spacing:-.03em;text-wrap:balance}
.hero-food-panel p{color:#e0f4ef;line-height:1.55;font-size:13px;max-width:65ch}
.hero-food-intro{margin:0}
.hero-food-summary{margin:20px 0}
.hero-food-detail{min-width:0}
.hero-food-detail>b{font-size:15px;line-height:1.4}
.hero-food-detail p{font-size:12px;margin:5px 0 0}
.hero-food-action{display:block;min-height:48px;width:100%;padding:12px 16px;border:0;border-radius:10px;background:#fff;color:#07564e;font:700 14px/1.4 var(--body,Arial,sans-serif);cursor:pointer;text-align:center}
.hero-food-action:hover{background:#e0f4ef}
.hero-food-action:active{background:#c8f4eb}
.hero-food-action:focus-visible{outline:3px solid #f5d58a;outline-offset:4px}
.hero-food-panel .hero-food-note{margin:12px 0 0;font-size:11px;text-align:center}
.hero-food-empty{padding:12px 0}
.hero-food-chart{margin:20px 0 24px}
.hero-food-panel .hero-food-chart-title{font-size:12px;margin:0 0 6px}
.hero-food-scale{display:flex;justify-content:space-between;font-size:11px;color:#c8f4eb;margin-bottom:12px}
.hero-food-bars{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.hero-food-bar-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:13px;line-height:1.4;margin-bottom:5px;color:#fff}
.hero-food-bar-label b{flex:none;font-variant-numeric:tabular-nums}
.hero-food-track{height:8px;background:#37776e;border-radius:4px;overflow:hidden}
.hero-food-track i{display:block;height:100%;border-radius:4px}
.hero-food-track .hero-food-unknown{background-image:repeating-linear-gradient(135deg,transparent,transparent 4px,#9eaba6 4px,#9eaba6 6px)}
.hero-food-detail .hero-food-unavailable{font-weight:700}
#tab-nutrition .r4-report-tools{margin-bottom:8px}
#tab-nutrition .r4-range{font-size:12px;margin-bottom:14px}
#tab-nutrition #r2-nutrition-content>.c{border:0;box-shadow:none;border-radius:12px;padding:18px;margin-bottom:12px}
#tab-nutrition .r4-nutrient-row{padding-top:12px;padding-bottom:12px}
/* Compact secondary actions, without changing DOM order or hiding logging tools. */
#tab-log #q{min-height:48px;border-radius:10px}
#tab-log .r6-log-actions{gap:8px;margin:12px 0}
#tab-log .r6-log-actions>.kbtn{min-height:46px;padding:10px 14px;border-radius:10px}
#tab-log .r6-log-actions>div{display:flex;gap:8px}
#tab-log .r6-log-actions>div>button{flex:1;min-height:44px;padding:8px 10px;border-radius:10px}
#tab-log .r6-log-filters{padding:10px 14px;border-radius:10px;box-shadow:none}
#tab-log #r2-shelf-tabs{margin-top:16px;margin-bottom:0;border-bottom:1px solid var(--line,#d8e4df);border-radius:0;padding:0;background:transparent}
#tab-log #r2-shelf-tabs button{border-radius:0;background:transparent;min-height:44px;color:var(--mut,#52635e);border:0;border-bottom:2px solid transparent}
#tab-log #r2-shelf-tabs button[aria-pressed="true"]{color:var(--teal-ink,#07564e);border-bottom-color:var(--teal,#14b8a6)}
#tab-log #r2-shelf{margin-top:0;border:0;box-shadow:none;border-radius:0 0 12px 12px}
#tab-more>.c,#tab-more>details.c{box-shadow:none;border:0;border-radius:12px}
#tab-more>.r6-account-links{padding:0 18px}
#tab-more .r6-account-links>button,#tab-more .r6-account-links>a{min-height:72px;padding:16px 0}
#tab-more .r6-account-links small{font-size:12px;line-height:1.5}
#tab-more>h3{margin:24px 0 10px;font-size:13px;color:var(--mut,#52635e);font-weight:500}
#tab-more details.c>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
#tab-more details.c>summary::after{content:'+';margin-left:auto;color:var(--teal-ink,#07564e);font-size:20px}
#tab-more details.c[open]>summary::after{content:'−'}
#tab-more details.c .c{box-shadow:none;border:0;background:transparent;padding:12px 0}
#tab-more .hero-food-setting:focus-visible{outline:3px solid var(--teal-ink,#07564e);outline-offset:2px}
@media(max-width:359px){.hero-food-panel{padding:18px}.hero-food-detail>b{font-size:14px}.hero-food-panel h2{font-size:26px}}

/* Three feature doors on Today; logging remains above them. */
#today-features{display:grid;gap:18px;margin:20px 0 6px}
.hero-discovery,.hero-digest-entry{border-radius:16px;padding:24px;background:#e9f7f3;border:1px solid #c9e8df}
.hero-discovery h2,.hero-digest-entry h2,.hero-digest h2,.weight-entry h2{font:650 26px/1.2 var(--num);letter-spacing:-.025em;margin:12px 0;text-wrap:balance}
.hero-discovery p,.hero-digest-entry p,.hero-digest>p,.weight-entry>p{font-size:16px;line-height:1.55;color:#3b5951}
.hero-eyebrow{font-size:13px!important;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#08695d!important}
.hero-food-steps{padding-left:21px;margin:18px 0;color:#264f44;font-size:15px;line-height:1.6}
.hero-food-steps li{padding:3px 0 3px 3px}
.hero-discovery .hero-discovery-note{font-size:13px;margin-bottom:16px}
.hero-choice-actions{display:grid;gap:10px;margin-top:16px}
.hero-choice-actions button{min-height:48px;font-size:16px}
.hero-preference{margin:12px 0}.hero-preference summary,.hero-discovery>summary{min-height:44px;cursor:pointer;font-weight:650;padding:10px 0}
.hero-discovery>summary{color:#245b4d}.hero-discovery:not([open]):is(details){padding:12px 20px;background:#fff}
.hero-digest-entry{background:#fff;border-color:#dce8e3}
.hero-digest-tags{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
.hero-digest-tags span{padding:7px 12px;border-radius:20px;background:#f0f5f2;color:#38594d;font-size:13px}
.hero-digest-entry button{width:100%;min-height:48px;font-size:16px}
#weekly-digest{background:#f0f8f5;padding:22px;scroll-margin-top:16px}
#weekly-digest:focus{outline:none}
#weekly-digest .r6-week-grid{margin:20px 0;gap:12px}
#weekly-digest .r6-week-grid>div{background:#fff;padding:16px;border-radius:12px;min-width:0}
#weekly-digest .r6-week-grid b{font-size:24px;overflow-wrap:anywhere}
#weekly-digest .kv{padding:12px 0;gap:16px}
#weekly-digest .kv span{flex:1}#weekly-digest .kv b{text-align:right}
.weight-entry-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px}
.weight-entry input,.weight-entry select{width:100%;min-height:52px;font-size:18px}
.weight-entry>button{width:100%;margin-top:18px;min-height:50px}
.weight-entry label{display:block;margin:16px 0 8px}.weight-entry .hint{margin-top:12px}
.photo-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 10px}
.photo-comparison figure{min-width:0;margin:0}.photo-comparison label{display:block;font-size:14px;font-weight:650;margin-bottom:8px}
.photo-comparison select{width:100%;min-width:0;min-height:48px;font-size:14px;padding:10px 5px;margin-bottom:10px}
.photo-comparison img{display:block;width:100%;height:250px;object-fit:contain;background:#eef2f0;border-radius:10px}
.photo-thumbnail{padding:0;border:0;background:transparent;display:block;width:100%;cursor:pointer}
.photo-thumbnail img{display:block;width:100%}
#community-food-settings:empty{display:none}
#community-food-settings details{box-shadow:none;border:0;border-radius:12px}
#community-food-settings .check-row{align-items:flex-start;margin-top:16px}
#community-food-settings .check-row input{flex:0 0 22px;width:22px;height:22px;min-height:22px;margin-top:3px}
#community-food-settings small{display:block;margin-top:8px;font-size:14px;line-height:1.5}
.hero-food-panel p{font-size:15px}.hero-food-top{font-size:14px}.hero-food-panel .hero-food-note{font-size:12px}
.hero-food-action{font-size:16px}
@media(max-width:359px){.hero-discovery,.hero-digest-entry{padding:18px}.hero-discovery h2,.hero-digest-entry h2{font-size:24px}.photo-comparison img{height:210px}}

/* Premium welcome tour: product moments use the same deep-teal plane as Today. */
.feature-tour{width:min(100%,540px);max-width:100%;max-height:100dvh;height:100dvh;margin:auto;border:0;border-radius:0;padding:0;background:var(--card);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.feature-tour::backdrop{background:rgba(21,32,29,.76)}
.feature-tour-shell{min-height:100%;display:flex;flex-direction:column;padding:calc(14px + env(safe-area-inset-top)) 20px 0}
.feature-tour-top{position:static;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-shrink:0;padding:0;background:transparent;border:0;box-shadow:none}
.feature-tour-brand{display:flex;align-items:center;margin:0;font:700 15px/1.1 var(--num);color:var(--ink);letter-spacing:0;text-transform:none}
.feature-tour-brand small{display:block;margin-top:3px;font:500 12px var(--body);color:var(--mut)}
.feature-tour-skip{background:transparent;border:0;color:var(--mut);font:600 14px var(--body);min-height:44px;padding:10px 0 10px 12px;cursor:pointer}
.feature-tour-progress{display:flex;gap:6px;margin:8px 0 14px}
.feature-tour-progress span{height:4px;border-radius:3px;background:var(--line);flex:1}.feature-tour-progress .current{background:var(--teal-deep)}
.feature-tour-preview{position:relative;isolation:isolate;overflow:hidden;height:min(48dvh,400px);min-height:min(48dvh,400px);display:grid;place-items:center;flex-shrink:0;padding:18px;border:1px solid rgba(255,255,255,.16);border-radius:26px;color:#fff;background:linear-gradient(160deg,var(--hero-a) 0%,var(--hero-b) 100%);box-shadow:0 18px 38px rgba(4,33,29,.24),0 3px 8px rgba(4,33,29,.16)}
.feature-tour-preview::before{content:'';position:absolute;z-index:-1;width:300px;height:300px;right:-120px;top:-170px;border-radius:50%;background:radial-gradient(circle,rgba(46,230,207,.38),rgba(46,230,207,0) 64%)}
.feature-tour-preview::after{content:'';position:absolute;z-index:-1;width:240px;height:240px;left:-125px;bottom:-150px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.13),rgba(255,255,255,0) 64%)}
.feature-tour-preview :is(section,div,span,strong,small,p,svg){box-sizing:border-box}.feature-tour-preview small{color:inherit}
.feature-tour-content{padding:17px 2px 2px;flex:1}.feature-tour-content>.hero-eyebrow{margin:0 0 7px}.feature-tour-content h2{font:700 30px/1.08 var(--num);letter-spacing:-.04em;margin:0 0 9px;color:var(--ink);text-wrap:balance}
.feature-tour-content h2:focus{outline:none!important}.feature-tour-content>p{font-size:15px;line-height:1.48;color:var(--ink2);margin:0}
.feature-tour-content .feature-tour-note{font-size:12.5px;margin:9px 0 0;color:var(--mut)}
.feature-tour-content .feature-tour-status{font-size:12px;line-height:1.35;margin:7px 0;min-height:16px;color:var(--mut)}
.feature-tour-footer{display:flex;gap:9px;position:sticky;bottom:0;width:100%;background:var(--card);padding:9px 0 calc(12px + env(safe-area-inset-bottom));flex-shrink:0;border-top:1px solid var(--line)}
.feature-tour-footer button{flex:1;min-height:48px;border-radius:14px}.feature-tour-footer>.ghost{flex:0 0 78px}.feature-tour-footer button:disabled{opacity:.5;cursor:default}
.feature-tour-footer-ready{display:flex;flex-direction:column;align-items:stretch;gap:2px}.feature-tour-back-link{align-self:flex-start;flex:none!important;min-height:44px!important;padding:8px 0;border:0;background:transparent}.feature-tour-ready-actions{display:grid;gap:8px;width:100%}
.feature-tour :is(button,input):focus-visible{outline:3px solid var(--teal);outline-offset:3px}

/* The first and final cards are full-bleed hero moments. */
.feature-tour:is([data-step="1"],[data-step="6"]){background:radial-gradient(circle at 96% 14%,rgba(46,230,207,.26),rgba(46,230,207,0) 38%),radial-gradient(circle at 4% 58%,rgba(255,255,255,.1),rgba(255,255,255,0) 42%),linear-gradient(160deg,var(--hero-a) 0%,var(--hero-b) 100%);color:#fff}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-brand,.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-content h2{color:#fff}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-brand small,.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-content>p{color:rgba(255,255,255,.82)}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-skip,.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-content>.hero-eyebrow,.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-back-link{color:#fff!important}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-progress span{background:rgba(255,255,255,.2)}.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-progress .current{background:#fff}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-preview{background:transparent;border-color:transparent;box-shadow:none;border-radius:0;margin-inline:-20px;width:calc(100% + 40px)}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-preview::before,.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-preview::after{display:none}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-footer{background:transparent;border-top:0}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-footer .kbtn{background:#fff;color:var(--teal-ink);box-shadow:0 9px 24px rgba(0,0,0,.2)}
.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-footer .ghost{background:var(--glass);border-color:var(--glass-line);color:#fff}

/* Shared product fragments. */
.tour-marker-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.tour-marker-row i{font-style:normal;font:650 10.5px/1.2 var(--body);padding:6px 8px;border-radius:999px;background:#edf8f5;color:var(--teal-ink);white-space:nowrap}
.tour-ring{display:block;width:100%;height:100%;transform:rotate(-90deg)}.tour-ring circle{fill:none;stroke-width:9}.tour-ring-track{stroke:rgba(255,255,255,.18)}.tour-ring-value{stroke:var(--mint);stroke-linecap:round}

/* 01 · Welcome. */
.tour-welcome-stack{position:relative;width:100%;height:100%;max-width:340px}
.tour-snap-card,.tour-calorie-card,.tour-coach-badge{position:absolute;border-radius:18px;background:#fff;color:var(--ink);box-shadow:0 18px 36px rgba(0,32,28,.26),0 2px 6px rgba(0,32,28,.16)}
.tour-snap-card{left:0;top:12%;width:79%;padding:15px;transform:rotate(-2deg)}.tour-snap-card>span,.tour-coach-badge>span{display:block;font:750 9px/1 var(--body);letter-spacing:.1em;color:var(--teal-deep);margin-bottom:7px}.tour-snap-card>strong{display:block;font:700 17px/1.2 var(--num);letter-spacing:-.02em}
.tour-calorie-card{right:0;bottom:12%;width:152px;height:152px;display:grid;place-items:center;background:linear-gradient(160deg,var(--hero-a),var(--hero-b));color:#fff;border:1px solid rgba(255,255,255,.2);transform:rotate(3deg)}.tour-calorie-card .tour-ring{position:absolute;inset:13px;width:126px;height:126px}.tour-calorie-card>span{position:relative;text-align:center}.tour-calorie-card strong{display:block;font:700 24px/1 var(--num)}.tour-calorie-card small{display:block;margin-top:5px;font:500 11px var(--body);color:rgba(255,255,255,.76)}.tour-ring-welcome .tour-ring-value{stroke-dasharray:63 100;animation:tour-ring-welcome .65s ease-out both}
.tour-coach-badge{left:7%;bottom:10%;z-index:2;padding:12px 14px;min-width:168px}.tour-coach-badge>strong{font:700 13px/1.2 var(--body);color:var(--teal-ink)}

/* 02 · Snap. */
.tour-label-scan{position:relative;width:100%;height:100%;max-width:330px}.tour-ingredients-label{position:absolute;inset:4% 7% 25%;overflow:hidden;padding:18px;border-radius:12px;background:#fffdf6;color:#1f2926;box-shadow:0 18px 36px rgba(0,32,28,.25);transform:rotate(-1deg)}
.tour-ingredients-label>span,.tour-result-card>span{display:block;font:800 9px/1 var(--body);letter-spacing:.12em;color:#52615d}.tour-ingredients-label>strong{display:block;margin:7px 0 11px;font:700 18px/1.2 var(--num)}.tour-ingredients-label p{margin:0;font:600 12px/1.55 var(--body);color:#26322f}.tour-scan-line{position:absolute;left:10px;right:10px;bottom:10px;height:2px;border-radius:2px;background:#20e6cf;box-shadow:0 0 0 1px rgba(255,255,255,.65),0 0 16px #14b8a6;opacity:0;animation:tour-scan .64s ease-out both}
.tour-result-card{position:absolute;z-index:2;left:1%;right:1%;bottom:3%;padding:15px 16px;border-radius:17px;background:#fff;color:var(--ink);box-shadow:0 16px 36px rgba(0,32,28,.3);animation:tour-result-up .64s ease-out both}.tour-result-card>strong{display:block;margin-top:6px;font:700 18px/1.2 var(--num);color:var(--teal-ink)}

/* 03 · Log. */
.tour-log-demo{position:relative;width:100%;height:100%;max-width:330px}.tour-generic-product{position:absolute;left:7%;top:7%;width:45%;height:60%;padding:18px 14px;border-radius:18px 18px 24px 24px;background:linear-gradient(160deg,#fff,#e6f5f1);color:var(--ink);box-shadow:0 18px 34px rgba(0,32,28,.24);text-align:center}.tour-generic-product>span{display:block;font:800 8.5px/1 var(--body);letter-spacing:.13em;color:var(--teal-deep)}.tour-generic-product>strong{display:block;margin:9px 0 3px;font:700 20px/1 var(--num)}.tour-generic-product>small{font-size:10px;color:var(--mut)}.tour-barcode{position:absolute;left:20%;right:20%;bottom:16%;height:40px;background:repeating-linear-gradient(90deg,#17211e 0 2px,transparent 2px 4px,#17211e 4px 5px,transparent 5px 8px)}
.tour-reticle{position:absolute;inset:8%;animation:tour-lock .6s ease-out both}.tour-reticle i{position:absolute;width:24px;height:24px;border-color:var(--mint);border-style:solid}.tour-reticle i:nth-child(1){left:0;top:0;border-width:3px 0 0 3px}.tour-reticle i:nth-child(2){right:0;top:0;border-width:3px 3px 0 0}.tour-reticle i:nth-child(3){right:0;bottom:0;border-width:0 3px 3px 0}.tour-reticle i:nth-child(4){left:0;bottom:0;border-width:0 0 3px 3px}
.tour-diary-card{position:absolute;z-index:2;right:1%;bottom:12%;width:78%;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;padding:13px;border-radius:16px;background:#fff;color:var(--ink);box-shadow:0 16px 34px rgba(0,32,28,.3);animation:tour-diary-drop .62s ease-out both}.tour-diary-card>span{font:800 9px var(--body);letter-spacing:.1em;color:var(--teal-deep)}.tour-diary-card strong,.tour-diary-card small{display:block}.tour-diary-card strong{font:700 13px/1.2 var(--body)}.tour-diary-card small{margin-top:3px;font-size:10.5px;color:var(--mut)}.tour-diary-card>b{font:700 10px var(--body);color:var(--good)}.tour-diary-card>p{grid-column:2/-1;margin:0;font-size:9.5px;color:var(--mut)}
.tour-log-chips{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:5px}.tour-log-chips span{padding:5px 8px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.12);font:650 9.5px var(--body);white-space:nowrap}

/* 04 · Coach. */
.tour-coach-demo{width:100%;max-width:330px}.tour-goal-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin-bottom:10px}.tour-goal-chips span{display:grid;place-items:center;min-height:32px;padding:3px 6px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.08);font:650 13px/1.1 var(--body);text-align:center;white-space:normal;text-wrap:balance}.tour-goal-chips .selected{background:#fff;color:var(--teal-ink);border-color:#fff}
.tour-target-card{display:grid;grid-template-columns:132px 1fr;gap:10px;align-items:center;padding:13px;border-radius:20px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.22);box-shadow:0 16px 32px rgba(0,32,28,.2)}.tour-target-ring{position:relative;width:126px;height:126px;display:grid;place-items:center}.tour-target-ring .tour-ring{position:absolute;inset:0}.tour-target-ring>span{position:relative;text-align:center}.tour-target-ring strong{display:block;font:700 24px/1 var(--num)}.tour-target-ring small{display:block;margin-top:4px;font:600 10px var(--body);color:rgba(255,255,255,.72)}.tour-ring-target .tour-ring-value{stroke-dasharray:92 100;animation:tour-ring-target .65s ease-out both}
.tour-macro-row{display:grid;gap:6px}.tour-macro-row>span{padding:8px 10px;border-radius:11px;background:rgba(255,255,255,.1)}.tour-macro-row small,.tour-macro-row b{display:block}.tour-macro-row small{font:500 9.5px var(--body);color:rgba(255,255,255,.68)}.tour-macro-row b{margin-top:2px;font:700 13px var(--num)}.tour-progress-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding:10px 12px;border-radius:13px;background:#fff;color:var(--ink)}.tour-progress-line span{font:800 9px var(--body);letter-spacing:.1em;color:var(--teal-deep)}.tour-progress-line strong{font:700 11.5px var(--body);text-align:right}

/* 05 · Insights. */
.tour-insights-demo{width:100%;max-width:330px}.tour-insights-main{display:grid;grid-template-columns:158px 1fr;gap:13px;align-items:center}.tour-level-donut{position:relative;width:154px;height:154px;display:grid;place-items:center}.tour-level-donut svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.tour-level-donut circle{fill:none;stroke-width:11;stroke-linecap:butt}.tour-donut-track{stroke:rgba(255,255,255,.13)}.tour-donut-good{stroke:#8ee0ce;stroke-dasharray:82 100;animation:tour-donut .65s ease-out both}.tour-donut-four{stroke:#bea3dd;stroke-dasharray:14 86;stroke-dashoffset:-82}.tour-donut-unknown{stroke:#d3d8d6;stroke-dasharray:4 96;stroke-dashoffset:-96}.tour-level-donut>span{position:relative;text-align:center}.tour-level-donut strong{display:block;font:700 31px/1 var(--num)}.tour-level-donut small{display:block;width:9ch;margin-top:5px;font:600 10px/1.2 var(--body);color:rgba(255,255,255,.72)}.tour-insight-stats{display:grid;gap:8px}.tour-insight-stats span{padding:11px;border-radius:13px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.16)}.tour-insight-stats small,.tour-insight-stats b{display:block}.tour-insight-stats small{font:500 10px var(--body);color:rgba(255,255,255,.68)}.tour-insight-stats b{margin-top:2px;font:700 19px var(--num)}
.tour-mini-trend{margin-top:8px;padding:10px 12px 6px;border-radius:14px;background:rgba(255,255,255,.1)}.tour-mini-trend>div{display:flex;justify-content:space-between;font:750 9px var(--body);letter-spacing:.08em}.tour-mini-trend svg{display:block;width:100%;height:58px}.tour-mini-trend path{fill:none}.tour-trend-goal{stroke:rgba(255,255,255,.55);stroke-width:1.5;stroke-dasharray:5 4}.tour-trend-line{stroke:var(--mint);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.tour-mini-trend circle{fill:#fff;stroke:var(--teal-deep);stroke-width:1.5}.tour-swap-line{margin:8px 3px 0!important;font:500 10.5px/1.35 var(--body)!important;color:rgba(255,255,255,.78)!important}.tour-swap-line strong{color:#fff}

/* 06 · Ready. */
.tour-ready-mark{display:grid;justify-items:center;gap:18px}.tour-ready-mark svg{width:176px;height:176px;overflow:visible}.tour-ready-mark circle{fill:rgba(255,255,255,.1);stroke:rgba(255,255,255,.28);stroke-width:2}.tour-ready-mark path{fill:none;stroke:#fff;stroke-width:8;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:80;stroke-dashoffset:0;animation:tour-check .65s ease-out both}.tour-ready-mark span{font:800 11px var(--body);letter-spacing:.18em;color:#fff}

@keyframes tour-ring-welcome{from{stroke-dasharray:0 100}to{stroke-dasharray:63 100}}
@keyframes tour-ring-target{from{stroke-dasharray:0 100}to{stroke-dasharray:92 100}}
@keyframes tour-donut{from{stroke-dasharray:0 100}to{stroke-dasharray:82 100}}
@keyframes tour-check{from{stroke-dashoffset:80}to{stroke-dashoffset:0}}
@keyframes tour-scan{0%{bottom:calc(100% - 12px);opacity:0}14%,70%{opacity:1}100%{bottom:10px;opacity:0}}
@keyframes tour-result-up{0%,38%{opacity:0;transform:translateY(22px)}100%{opacity:1;transform:none}}
@keyframes tour-lock{from{opacity:.35;transform:scale(1.16)}to{opacity:1;transform:none}}
@keyframes tour-diary-drop{0%,28%{opacity:0;transform:translateY(-18px)}100%{opacity:1;transform:none}}
@media(min-width:600px){.feature-tour{height:auto;max-height:94dvh;border-radius:24px}.feature-tour-shell{min-height:760px}}
@media(max-height:820px){.feature-tour-preview{height:min(43dvh,344px);min-height:min(43dvh,344px)}.feature-tour-content{padding-top:13px}.feature-tour-content h2{font-size:27px}.feature-tour-content>p{font-size:14px}.feature-tour-footer{padding-top:7px;padding-bottom:calc(9px + env(safe-area-inset-bottom))}.tour-snap-card{top:7%}.tour-calorie-card{bottom:8%;width:140px;height:140px}.tour-calorie-card .tour-ring{inset:12px;width:116px;height:116px}.tour-coach-badge{bottom:6%}.tour-target-card{grid-template-columns:116px 1fr}.tour-target-ring{width:112px;height:112px}.tour-level-donut{width:140px;height:140px}.tour-insights-main{grid-template-columns:144px 1fr}.tour-ready-mark svg{width:148px;height:148px}}
@media(max-width:374px){.feature-tour-shell{padding-inline:18px}.feature-tour:is([data-step="1"],[data-step="6"]) .feature-tour-preview{margin-inline:-18px;width:calc(100% + 36px)}.feature-tour-preview{padding:14px}.tour-diary-card{width:82%}.tour-mini-trend svg{height:50px}}
@media(prefers-reduced-motion:reduce){.feature-tour-preview *{animation:none!important;transition:none!important}}

/* Levels 1-4 explainer (level-guide.js) */
.level-guide-link{background:none;border:0;padding:6px 0;min-height:44px;font:600 13px/1.2 inherit;font-family:inherit;color:var(--teal-ink,#065F55);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.sunday-legend+.level-guide-link{color:#fff;align-self:start}
.level-guide{width:min(560px,100vw);max-height:88vh;margin:auto auto 0;border:0;border-radius:22px 22px 0 0;padding:22px 20px calc(22px + env(safe-area-inset-bottom,0px));background:#fff;color:var(--ink,#15201D);overflow:auto}
.level-guide::backdrop{background:rgba(6,40,35,.45)}
.level-guide-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.level-guide-head h2{margin:0;font-size:22px;line-height:1.2}
.level-guide-close{min-height:44px;padding:0 14px;border-radius:12px;border:1px solid #d7e3e0;background:#fff;color:var(--teal-ink,#065F55);font:600 14px/1 inherit;font-family:inherit}
.level-guide-intro{margin:8px 0 14px;color:#3d4a47;font-size:15px}
.level-guide-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.level-guide-list li{display:grid;grid-template-columns:14px 1fr;gap:12px;padding:14px;border-radius:14px;background:#f4f8f7}
.level-guide-list i{width:14px;height:14px;border-radius:50%;margin-top:3px}
.level-guide-list b{display:block;font-size:16px}
.level-guide-list p{margin:4px 0;font-size:14px;color:#3d4a47}
.level-guide-list small{display:block;font-size:13px;color:#52605c}
.level-guide-extra{display:grid;gap:8px;margin-top:14px;font-size:14px;color:#3d4a47}
.level-guide-extra p{margin:0}
.level-guide-note{font-size:13px;color:#52605c}
