/* v62 «Старт»: start card, habit bar, «Итоги недели», goal sheet and quick weigh-in (start.js), plus the
   approved app-wide touches: bigger «＋» without a caption, soft glows down the whole page, WHOOP-only parts
   hidden for people without WHOOP, and a calm Главная for a new person. Loaded last, after the app styles. */
:root{--st-ink:#123c53;--st-muted:#607a8c;--st-soft:#8aa0ad;--st-line:#dfedf2;--st-surface:#ffffff;--st-raised:#f1f7fa;
 --st-teal:#009fa9;--st-teal-ink:#038fa1;--st-accent-soft:#eaf9fa;--st-grad-a:#08b9bb;--st-grad-b:#028fac;
 --st-good:#0c7f5f;--st-good-bg:#e4f6ef;--st-amber-bg:#fff7e8;--st-amber-line:#f3dfb6;--st-amber-ink:#8a5a12;
 --st-tone-good:#0e9b6b;--st-tone-steady:#1f86c0;--st-tone-slip:#c47f0c;--st-sheet:#f5f9fc;--st-icon-shadow:drop-shadow(0 3px 6px #0d2a3a29);
 --glow-a:#fce6f3;--glow-b:#d8f6f5;--glow-c:#ebe6ff;--glow-d:#dbf1fb;--page-bg:#f5f9fc}
html[data-theme="dark"]{--st-ink:#f2f2f7;--st-muted:#aeaeb2;--st-soft:#8e8e93;--st-line:#3a3a3c;--st-surface:#1c1c1e;--st-raised:#2c2c2e;
 --st-teal:#80c8c2;--st-teal-ink:#80c8c2;--st-accent-soft:#243a37;--st-grad-a:#3b8f88;--st-grad-b:#2f7570;
 --st-good:#9ad2b3;--st-good-bg:#1f332b;--st-amber-bg:#2f2614;--st-amber-line:#4d3d1c;--st-amber-ink:#e6ca93;
 --st-tone-good:#62d4a6;--st-tone-steady:#7cc3ea;--st-tone-slip:#f0b24a;--st-sheet:#111113;--st-icon-shadow:none;
 --glow-a:#2a1a24;--glow-b:#14282a;--glow-c:#1f1b37;--glow-d:#0f2830;--page-bg:var(--canvas,#111113)}

/* Soft colour glows: the two familiar ones at the top, then alternating ones all the way down the page. */
html body,html[data-theme="dark"] body{background-color:var(--page-bg);background-repeat:no-repeat;background-image:
 radial-gradient(52% 430px at 95% 0,var(--glow-a),transparent),radial-gradient(60% 430px at 0 90px,var(--glow-b),transparent),
 radial-gradient(62% 400px at 100% 470px,var(--glow-c),transparent),radial-gradient(64% 420px at 0 780px,var(--glow-d),transparent),
 radial-gradient(62% 400px at 100% 1090px,var(--glow-a),transparent),radial-gradient(64% 420px at 0 1400px,var(--glow-b),transparent),
 radial-gradient(62% 400px at 100% 1710px,var(--glow-c),transparent),radial-gradient(64% 420px at 0 2020px,var(--glow-d),transparent),
 radial-gradient(62% 400px at 100% 2330px,var(--glow-a),transparent),radial-gradient(64% 420px at 0 2640px,var(--glow-b),transparent),
 radial-gradient(62% 400px at 100% 2950px,var(--glow-c),transparent),radial-gradient(64% 420px at 0 3260px,var(--glow-d),transparent),
 radial-gradient(62% 400px at 100% 3570px,var(--glow-a),transparent),radial-gradient(64% 420px at 0 3880px,var(--glow-b),transparent),
 radial-gradient(62% 400px at 100% 4190px,var(--glow-c),transparent),radial-gradient(64% 420px at 0 4500px,var(--glow-d),transparent)}

/* «＋» is clear on its own: no caption, a bigger tile (aria-label stays «Добавить еду»). */
#foodDiaryTab .add-icon{width:46px;height:46px;border-radius:15px;box-shadow:0 6px 14px #00909d38}
#foodDiaryTab .add-icon svg{width:26px;height:26px;stroke-width:2.4}
html[data-theme="dark"] #foodDiaryTab .add-icon{box-shadow:none}

/* People without WHOOP: no WHOOP tab (five columns), tiles, menu items or cards they could never fill. */
html[data-whoop="off"] #whoopApiTab,html[data-whoop="off"] [data-whoop-only],
html[data-whoop="off"] #todayTraining,html[data-whoop="off"] #energyComparison{display:none!important}
html[data-whoop="off"] .dashboard-tabs{grid-template-columns:repeat(5,minmax(0,1fr))!important}
/* v63: Gleb's icons on Главная (tiles, «Главное для вас» and its cards), Прогресс (headings) and Ещё (menu).
   Each icon is its own rounded tile: no coloured background, no extra corner clipping (dark rules included). */
img.feature-icon.start-tile{background:none!important;border-radius:0;object-fit:contain;filter:var(--st-icon-shadow)}
.heading-icon.start-heading,.briefing-icon.start-icon{background:none!important;padding:0;border-radius:0}
.heading-icon.start-heading .st-ico,.briefing-icon.start-icon img{width:100%;height:100%;display:block;filter:var(--st-icon-shadow)}
/* Ещё: every menu line on one line on 320–430 px phones; on narrow phones the icons are a little smaller. */
.menu-list b,.menu-list small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:390px){.menu-list .feature-icon{width:52px;height:52px;flex:0 0 52px;border-radius:16px}.menu-list>button,.menu-list>a{gap:12px}}
@media(max-width:360px){.menu-list .feature-icon{width:44px;height:44px;flex:0 0 44px;border-radius:14px}.menu-list>button,.menu-list>a{gap:10px}.menu-list small{font-size:10.5px}}
@media(max-width:340px){.menu-list{padding-left:12px;padding-right:12px}.menu-list .feature-icon{width:40px;height:40px;flex:0 0 40px;border-radius:12px}.menu-list>button,.menu-list>a{gap:8px}.menu-list small{font-size:10px}.menu-list>*>span:last-child{font-size:20px}}
/* Every tile line stays on one line on 320–430 px phones: a smaller icon and text up to 390 px,
   and from 360 px down the icon sits above centred text. */
#summaryView .quick-links b,#summaryView .quick-links small{white-space:nowrap;overflow-wrap:normal}
@media(max-width:390px){#summaryView .quick-links button{gap:8px;padding:9px 8px}
 #summaryView .quick-links .feature-icon{width:48px;height:48px;flex-basis:48px}
 #summaryView .quick-links b{font-size:15px}#summaryView .quick-links small{font-size:9.5px}}
@media(max-width:360px){#summaryView .quick-links button{flex-direction:column;justify-content:center;text-align:center;gap:6px;padding:10px 6px}
 #summaryView .quick-links button>span:last-child{text-align:center}
 #summaryView .quick-links .feature-icon{width:44px;height:44px;flex-basis:44px}}
/* A new person sees the start card, not a wall of advice that needs data first. */
#summaryView.start-fresh .practical-summary{display:none}

/* Cards */
.st-card{container-type:inline-size}
.st-card h2{margin:0;font-size:18px;letter-spacing:-.3px}
.st-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.st-head small{color:var(--st-muted);font-size:13px;white-space:nowrap}
.st-lead{margin:4px 0 0;color:var(--st-muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-bar{height:8px;border-radius:99px;background:var(--st-line);overflow:hidden;margin-top:12px}
.st-bar span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#46d4c0,#1aa6c1);transition:width .5s ease}
.st-steps{list-style:none;margin:12px 0 0;padding:0;display:grid}
.st-step{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--st-line)}
.st-step:first-child{border-top:0}
.st-ico{width:40px;height:40px;display:block;filter:var(--st-icon-shadow)}
.st-ico.big{width:48px;height:48px}
.st-neon{width:40px;height:40px;border-radius:11px;display:grid;place-items:center;background:radial-gradient(circle at 50% 36%,#1f5d55,#0b2522 74%);color:#8df6e0;box-shadow:inset 0 0 0 1.5px #44e2c78f;filter:var(--st-icon-shadow)}
.st-neon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 3px #4cf2d6)}
.st-step-text{min-width:0}
.st-step-text b{display:block;font-size:15px;line-height:1.25;color:var(--st-ink)}
.st-step-text small{display:block;color:var(--st-muted);font-size:13px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-step.is-done .st-step-text b{color:var(--st-muted);font-weight:600}
.st-step.is-done .st-step-text small{color:var(--st-good)}
.st-go{border:0;border-radius:12px;padding:8px 13px;font-size:14px;font-weight:650;background:linear-gradient(120deg,var(--st-grad-a),var(--st-grad-b));color:#fff;box-shadow:0 4px 12px #029bb920;white-space:nowrap;cursor:pointer}
.st-go.quiet{background:var(--st-accent-soft);color:var(--st-teal-ink);box-shadow:none}
.st-chev{color:var(--st-soft);font-size:20px;padding:0 4px}
@container (max-width:270px){.st-step{grid-template-columns:36px minmax(0,1fr) auto;gap:8px}.st-step .st-ico,.st-step .st-neon{width:36px;height:36px}.st-step-text b{font-size:14.5px}.st-step-text small{font-size:12.5px}.st-go{padding:7px 9px;font-size:13px}}
.st-soon{display:flex;align-items:center;gap:8px;margin-top:6px;padding-top:12px;border-top:1px solid var(--st-line);color:var(--st-muted);font-size:13px}
.st-pill{display:inline-block;padding:2px 8px;border-radius:99px;background:var(--st-raised);font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--st-muted);text-transform:uppercase}
.st-learn{margin-top:10px;padding:12px;border-radius:14px;background:var(--st-raised);display:grid;gap:9px}
.st-learn-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:center;font-size:13px;color:var(--st-ink)}
.st-learn-row .st-bar{grid-column:1/-1;margin:0;height:6px}
.st-learn-row span:nth-child(2){color:var(--st-muted);font-variant-numeric:tabular-nums}
.st-learn p{margin:0;font-size:13px;color:var(--st-muted)}

/* Habit bar */
.st-habit{display:grid;gap:12px}
.st-habit-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}
.st-level{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-weight:750;font-size:18px;color:var(--st-teal-ink);background:conic-gradient(var(--st-teal) calc(var(--p)*1%),var(--st-line) 0);position:relative}
.st-level::before{content:"";position:absolute;inset:5px;border-radius:50%;background:var(--st-surface)}
.st-level span{position:relative}
.st-habit-text b{display:block;font-size:15px;color:var(--st-ink)}
.st-habit-text small{display:block;color:var(--st-muted);font-size:12.5px;white-space:nowrap}
.st-streak{display:flex;align-items:center;gap:5px;font-weight:650;font-size:14px;white-space:nowrap;color:var(--st-ink)}
.st-streak em{font-style:normal}
.st-streak svg{width:18px;height:18px;fill:#f2a33a;stroke:none}
.st-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) auto;gap:6px;align-items:center}
.st-day{display:grid;justify-items:center;gap:4px;font-size:11px;color:var(--st-muted)}
.st-day i{width:22px;height:22px;border-radius:50%;border:2px solid var(--st-line);display:block}
.st-day.on i{background:linear-gradient(145deg,#46d4c0,#1aa6c1);border-color:transparent}
.st-day.today i{border-color:var(--st-teal)}
.st-day.future i{border-style:dashed;opacity:.6}
@container (max-width:280px){.st-habit-text b{font-size:14px}.st-streak em{display:none}}

/* «Итоги недели»: the change is the headline, coloured by how it fits the goal (never red). */
.st-review p{margin:0}
.st-delta{display:flex;align-items:baseline;gap:5px;margin-top:10px!important;color:var(--tone);font-variant-numeric:tabular-nums}
.st-delta b{font-size:34px;line-height:1;font-weight:760;letter-spacing:-.8px}
.st-delta span{font-size:18px;font-weight:700}
.st-why{margin-top:7px!important;font-size:16px;font-weight:600;color:var(--st-ink)}
.st-review .st-sub{color:var(--st-muted);font-size:14px;margin-top:3px!important}
.st-next{margin-top:12px!important;padding-top:11px;border-top:1px solid var(--st-line);font-size:14px;color:var(--st-ink)}
.st-next b{color:var(--st-teal-ink)}
.st-review.good{--tone:var(--st-tone-good)}
.st-review.steady{--tone:var(--st-tone-steady)}
.st-review.slip{--tone:var(--st-tone-slip)}
/* Two comparisons replace the old advice, never append another block. Fixed compact
   rows fit inside the former review's footprint, including on 320 px phones. */
.st-rolling{box-sizing:border-box;height:196px;display:flex;flex-direction:column;justify-content:space-between}
.st-card.st-rolling h2{font-size:16px;line-height:20px;white-space:nowrap;letter-spacing:-.35px}
.st-rolling .st-trend-period{font-size:11px;line-height:16px;color:var(--st-muted)}
.st-trend-row{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.st-rolling .st-trend-number{font-size:30px;line-height:38px;font-weight:750;color:var(--st-tone-steady);white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.st-trend-number small{font-size:13px;font-weight:600;letter-spacing:0}
.st-trend-basis{text-align:right;min-width:0;line-height:18px;font-size:13px}
.st-trend-basis small{display:block;font-size:9px;line-height:14px;color:var(--st-muted);white-space:nowrap}
.st-trend-basis b{font-weight:600;white-space:nowrap}
.st-trend-month{border-top:1px solid var(--st-line);padding-top:8px}
.st-trend-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;line-height:18px;font-size:13px}
.st-trend-label small{font-size:11px;color:var(--st-muted);white-space:nowrap}
.st-trend-month .st-trend-number{font-size:24px;line-height:34px}
@container(max-width:280px){.st-card.st-rolling h2{font-size:14px}.st-rolling .st-trend-number{font-size:25px}.st-trend-basis{font-size:11px}.st-trend-basis small{font-size:8px}.st-trend-label{font-size:12px}}

/* Goal sheet: full screen, above the tab bar */
body.start-open{overflow:hidden}
.st-sheet{position:fixed;inset:0;z-index:80;display:flex;flex-direction:column;background:var(--st-sheet);color:var(--st-ink);transform:translateY(102%);transition:transform .32s cubic-bezier(.2,.8,.2,1);outline:none}
.st-sheet.open{transform:none}
.st-sheet-bar{flex:none;display:flex;align-items:center;justify-content:space-between;padding:max(14px,env(safe-area-inset-top)) 14px 6px}
.st-sheet-bar button{border:0;background:var(--st-raised);border-radius:12px;width:36px;height:36px;color:var(--st-muted);font-size:18px;display:grid;place-items:center;cursor:pointer}
.st-dots{display:flex;gap:6px}
.st-dots i{width:7px;height:7px;border-radius:50%;background:var(--st-line)}
.st-dots i.on{background:var(--st-teal)}
.st-sheet-body{flex:1;overflow-y:auto;padding:10px 20px calc(28px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:14px;container-type:inline-size;max-width:560px;width:100%;margin:0 auto}
.st-sheet h2{margin:6px 0 0;font-size:26px;letter-spacing:-.6px;line-height:1.15;color:var(--st-ink)}
.st-sub{margin:0;color:var(--st-muted);font-size:15px}
.st-path{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:center;text-align:left;width:100%;border:1.5px solid var(--st-line);background:var(--st-surface);color:var(--st-ink);border-radius:20px;padding:16px;cursor:pointer}
.st-path b{display:block;font-size:17px}
.st-path small{display:block;color:var(--st-muted);font-size:13.5px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-path:hover{border-color:var(--st-teal)}
@container (max-width:300px){.st-path{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:14px 12px}.st-path .st-ico.big{width:42px;height:42px}.st-path b{font-size:16px}.st-path small{font-size:12.5px}}
.st-or{display:flex;align-items:center;gap:10px;color:var(--st-soft);font-size:13px}
.st-or::before,.st-or::after{content:"";flex:1;height:1px;background:var(--st-line)}
.st-presets{display:grid;gap:10px}
.st-presets button{width:100%;min-height:54px;border:1.5px solid var(--st-line);background:var(--st-surface);border-radius:16px;padding:14px 16px;font-size:16.5px;font-weight:650;color:var(--st-ink);cursor:pointer}
.st-presets button:hover{border-color:var(--st-teal)}
.st-sheet textarea{width:100%;min-height:128px;resize:none;border:1.5px solid var(--st-line);border-radius:16px;background:var(--st-surface);color:var(--st-ink);padding:14px;font:inherit;font-size:16px;line-height:1.45}
.st-hint{margin:0;color:var(--st-muted);font-size:13px}
.st-error{margin:0;color:var(--st-amber-ink);font-size:14px}
.st-error:empty{display:none}
.center{text-align:center}
.st-primary{width:100%;border:0;border-radius:16px;padding:16px;font-size:17px;font-weight:700;background:linear-gradient(120deg,var(--st-grad-a),var(--st-grad-b));color:#fff;box-shadow:0 6px 16px #029bb926;cursor:pointer}
.st-primary:disabled{opacity:.45;box-shadow:none;cursor:default}
.st-text-btn{border:0;background:none;color:var(--st-teal-ink);font-weight:650;font-size:15px;padding:6px;justify-self:center;cursor:pointer}
.st-quote{background:var(--st-surface);border:1px solid var(--st-line);border-radius:18px;padding:16px;font-size:17px;font-weight:650;line-height:1.35}
.st-quote small{display:block;color:var(--st-muted);font-weight:500;font-size:12px;text-transform:uppercase;letter-spacing:.1em;margin-bottom:6px}
.st-field{display:grid;gap:7px}
.st-field label{font-size:13px;font-weight:650;color:var(--st-muted)}
.st-light{font-weight:500}
.st-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;background:var(--st-raised);border-radius:14px}
.st-seg button{border:0;background:none;border-radius:11px;padding:10px 4px;font-size:14px;font-weight:600;color:var(--st-muted);white-space:nowrap;cursor:pointer}
.st-seg button[aria-pressed="true"]{background:var(--st-surface);color:var(--st-ink);box-shadow:0 1px 4px #0d2a3a1c}
.st-input{display:flex;align-items:center;min-width:0;border:1.5px solid var(--st-line);border-radius:14px;background:var(--st-surface);padding:0 14px}
.st-input input{flex:1;width:100%;min-width:0;border:0;background:none;color:var(--st-ink);padding:13px 0;font:inherit;font-size:17px;outline:none}
.st-input span{color:var(--st-muted);font-size:15px}
.st-input:focus-within{border-color:var(--st-teal)}
.st-input.big input{font-size:44px;font-weight:700;letter-spacing:-1px;text-align:center;padding:16px 0;font-variant-numeric:tabular-nums}
.st-input.big span{font-size:20px}
.st-note{display:grid;gap:3px;background:var(--st-amber-bg);border:1px solid var(--st-amber-line);border-radius:14px;padding:12px 14px;font-size:14px;color:var(--st-amber-ink)}
.st-calm{display:grid;gap:3px;background:var(--st-raised);border-radius:14px;padding:12px 14px;font-size:14px;color:var(--st-muted)}
.st-calm b,.st-note b{font-size:14px}
.st-tags{display:flex;flex-wrap:wrap;gap:6px}
.st-tags span{padding:6px 11px;border-radius:99px;background:var(--st-accent-soft);color:var(--st-teal-ink);font-size:13.5px;font-weight:650;white-space:nowrap}
.st-loading{display:grid;justify-items:center;gap:14px;padding:80px 0;color:var(--st-muted)}
.st-spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--st-line);border-top-color:var(--st-teal);animation:st-spin .8s linear infinite}
@keyframes st-spin{to{transform:rotate(360deg)}}
.st-done-mark{width:76px;height:76px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#46d4c0,#1aa6c1);color:#fff;justify-self:center;margin-top:30px;box-shadow:0 10px 24px #1aa6c140}
.st-done-mark svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.st-next-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;background:var(--st-surface);border:1px solid var(--st-line);border-radius:18px;padding:14px}
.st-next-card b{display:block;font-size:15px}
.st-next-card small{color:var(--st-muted)}

/* Quick weigh-in: a bottom sheet */
.st-scrim{position:fixed;inset:0;z-index:84;background:#0d2a3a40;opacity:0;transition:opacity .3s}
.st-scrim.on{opacity:1}
.st-mini{position:fixed;left:0;right:0;bottom:0;z-index:85;max-width:560px;margin:0 auto;background:var(--st-surface);color:var(--st-ink);border-radius:26px 26px 0 0;box-shadow:0 -10px 40px #0d2a3a30;padding:10px 20px calc(30px + env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr);gap:14px;transform:translateY(105%);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.st-mini.open{transform:none}
.st-grabber{width:38px;height:5px;border-radius:9px;background:var(--st-line);justify-self:center}
.st-mini h3{margin:0;font-size:20px}
.st-mini-note{margin:0;font-size:15px;color:var(--st-muted);white-space:nowrap}
.st-mini-note b{color:var(--st-ink)}
.st-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.st-row button{border-radius:14px;padding:14px;font-weight:700;font-size:16px;border:0;cursor:pointer}
.st-soft{background:var(--st-raised);color:var(--st-ink)}

/* Toast */
.st-toast{position:fixed;top:max(14px,env(safe-area-inset-top));left:50%;z-index:90;transform:translate(-50%,-30px);opacity:0;background:var(--st-surface);border:1px solid var(--st-line);border-radius:99px;padding:8px 14px;font-size:14px;font-weight:700;color:var(--st-teal-ink);box-shadow:0 8px 24px #0d2a3a25;transition:transform .3s,opacity .3s;white-space:nowrap;pointer-events:none}
.st-toast.on{transform:translate(-50%,0);opacity:1}
@media (prefers-reduced-motion:reduce){.st-sheet,.st-mini,.st-scrim,.st-toast,.st-bar span{transition:none}.st-spinner{animation:none}}

/* ---- v65 «Личный план» (approved preview, 05.10) ------------------------------------------------------- */
:root{--st-ink-2:#2d4f62;--st-ai-a:#7c5cff;--st-ai-b:#14b8d9;--st-ai-bg-a:#faf8ff;--st-ai-bg-b:#f1fbff;--st-ai-glow:#7c5cff26}
html[data-theme="dark"]{--st-ink-2:#d9d9e0;--st-ai-a:#9a87ff;--st-ai-b:#3fc8e4;--st-ai-bg-a:#25233b;--st-ai-bg-b:#1a2b33;--st-ai-glow:#7c5cff33}
/* Sheet controls: lighter labels, a calmer switch with a teal active state, fields as wide as the number, a firmer button */
.st-sheet-body{gap:16px}
.st-sheet .st-sub{font-size:14px;margin-top:-6px}
.st-field{gap:6px}
.st-field label,.st-sec{font-size:12.5px;font-weight:600;color:var(--st-muted);letter-spacing:.01em}
.st-seg{padding:3px;gap:3px}
.st-seg button{height:40px;padding:0 4px;transition:background .15s,color .15s}
.st-seg button[aria-pressed="true"]{background:var(--st-accent-soft);color:var(--st-teal-ink);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--st-teal) 50%,transparent)}
.st-input{height:48px;gap:6px;justify-content:flex-start;cursor:text}
.st-input input{flex:none;width:auto;padding:0;font-weight:600;font-variant-numeric:tabular-nums}
.st-input.big{height:auto;justify-content:center;padding:6px 14px}
.st-input.big input{padding:10px 0}
.st-primary{padding:14px;font-size:16.5px;border-radius:15px;transition:transform .08s,filter .08s}
.st-primary:active{transform:scale(.985);filter:brightness(.9)}
.st-text-btn:active{opacity:.6}
/* «Итоги недели»: «Дальше» is a small grey label, the step is one line under it */
.st-next{display:grid;gap:2px;font-weight:600}
.st-next small{font-size:12px;font-weight:600;color:var(--st-muted);letter-spacing:.02em}
.st-next span{display:block;font-size:14.5px;white-space:nowrap}
.st-next span::first-letter{text-transform:uppercase}

/* Plan card */
.st-plan-open{display:block;width:100%;padding:0;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}
.st-plan-head{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center}
.st-plan-head b{display:block;font-size:17px;letter-spacing:-.2px;white-space:nowrap;color:var(--st-ink)}
.st-plan-head small{display:block;color:var(--st-muted);font-size:13px;margin-top:2px;white-space:nowrap}
.st-plan.update .st-plan-head small{color:var(--st-teal-ink)}
.st-plan-btn{margin-top:12px;width:100%;padding:11px 13px}
.st-plan-left{margin:10px 0 0;font-size:13px;color:var(--st-muted);white-space:nowrap}
.st-plan-left b{color:var(--st-ink);font-weight:600}
.st-plan-learn{margin-top:12px;padding:10px 12px;gap:10px}
.st-plan-learn .st-learn-row{gap:6px 10px}
.st-plan-learn .st-learn-row>span:first-child{font-weight:600;font-size:13.5px}
.st-count{font-size:11.5px;font-weight:650;color:var(--st-muted);background:var(--st-surface);border:1px solid var(--st-line);border-radius:99px;padding:1px 8px;font-variant-numeric:tabular-nums;white-space:nowrap}
.st-segs{grid-column:1/-1;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.st-segs i{height:5px;border-radius:99px;background:var(--st-line)}
.st-segs i.on{background:linear-gradient(90deg,#46d4c0,#1aa6c1)}
.st-segs i.tip{box-shadow:0 0 6px #2fc6c48c}
.st-targets{list-style:none;margin:12px 0 0;padding:0;display:grid}
.st-target{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid var(--st-line)}
.st-target .st-ico{width:32px;height:32px}
.st-target b{font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--st-ink)}
.st-target small{color:var(--st-muted);font-size:12.5px;white-space:nowrap}
.st-weekline{margin:2px 0 0;color:var(--st-muted);font-size:13px;white-space:nowrap}
.st-weekline b{color:var(--st-ink);font-weight:650}
@container (max-width:270px){.st-plan-head{grid-template-columns:36px minmax(0,1fr) auto;gap:10px}.st-plan-head .st-ico{width:36px;height:36px}.st-plan-head b{font-size:16px}
 .st-plan-head small,.st-weekline,.st-plan-left{font-size:12.5px}.st-target b{font-size:15px}.st-target small{font-size:12px}}

/* Plan sheet */
.st-rows{display:grid;gap:8px}
.st-row-card{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;background:var(--st-surface);border:1px solid var(--st-line);border-radius:16px;padding:12px 14px}
.st-row-card b{display:block;font-size:17px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--st-ink)}
.st-row-card small{display:block;color:var(--st-muted);font-size:13px;margin-top:2px;white-space:nowrap}
.st-row-card.changed{border-color:var(--st-teal);box-shadow:0 0 0 1px var(--st-teal) inset}
.st-row-card.changed small{color:var(--st-teal-ink)}
.st-act-head{display:grid;justify-items:start;gap:12px}
.st-act-head .st-ico.big{width:56px;height:56px}
.st-act-head h2{margin:0}
.st-facts{display:grid;gap:10px;background:var(--st-raised);border-radius:12px;padding:14px 16px;font-size:14px}
.st-facts h4{margin:0 0 2px;font-size:12.5px;color:var(--st-muted);font-weight:600}
.st-fact{display:flex;justify-content:space-between;align-items:baseline;gap:10px;white-space:nowrap}
.st-fact span{font-size:13px;color:var(--st-muted)}
.st-fact b{font-size:15px;font-weight:700;color:var(--st-ink);font-variant-numeric:tabular-nums}
.st-med{display:grid;grid-template-columns:16px minmax(0,1fr);gap:8px;align-items:start;padding:0 4px;font-size:12.5px;line-height:1.4;color:var(--st-muted)}
.st-med svg{width:16px;height:16px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.st-med b{display:block;color:var(--st-ink-2);font-weight:600;white-space:nowrap}
/* AI card: its own look, so it reads as AI and not as another card */
.st-ai{display:grid;gap:16px;padding:16px 16px 18px;border-radius:20px;border:1px solid transparent;
 background:linear-gradient(135deg,var(--st-ai-bg-a),var(--st-ai-bg-b)) padding-box,linear-gradient(125deg,var(--st-ai-a),var(--st-ai-b)) border-box;box-shadow:0 8px 26px var(--st-ai-glow)}
.st-ai-top{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center}
.st-ai-top b{display:block;font-size:15px;white-space:nowrap;color:var(--st-ink)}
.st-ai-top small{display:block;font-size:12.5px;color:var(--st-muted);white-space:nowrap;margin-top:1px}
.st-ai-head{margin:0;font-size:16.5px;font-weight:680;line-height:1.2;color:var(--st-ink);text-wrap:balance}
.st-ai-body{margin:0;font-size:15px;line-height:1.4;color:var(--st-ink-2);text-wrap:balance}
.st-ai-wait{margin:0;display:flex;gap:10px;align-items:center;color:var(--st-muted);font-size:15px}
.st-spinner.sm{width:18px;height:18px;border-width:2px}
/* «Ваш обычный день»: a level meter, a round check, and the details of the chosen option */
.st-opts{display:grid;gap:10px}
.st-opt{display:grid;grid-template-columns:22px minmax(0,1fr) 22px;column-gap:14px;align-items:center;width:100%;text-align:left;font:inherit;color:var(--st-ink);border:1.5px solid var(--st-line);background:var(--st-surface);border-radius:18px;padding:14px 16px;cursor:pointer;transition:border-color .2s,background .2s,box-shadow .2s}
.st-opt:active{transform:scale(.99)}
.st-opt[aria-pressed="true"]{border-color:var(--st-teal);background:linear-gradient(160deg,var(--st-accent-soft),var(--st-surface) 70%);box-shadow:0 6px 18px color-mix(in srgb,var(--st-teal) 16%,transparent)}
.st-opt-level{display:flex;align-items:flex-end;gap:3px;height:16px}
.st-opt-level i{width:5px;border-radius:2px;background:var(--st-line)}
.st-opt-level i:nth-child(1){height:6px}.st-opt-level i:nth-child(2){height:11px}.st-opt-level i:nth-child(3){height:16px}
.st-opt-level i.on{background:linear-gradient(180deg,#46d4c0,#1aa6c1)}
.st-opt-text{min-width:0}
.st-opt-text b{display:block;font-size:16.5px;white-space:nowrap}
.st-opt-text small{display:block;color:var(--st-muted);font-size:13.5px;margin-top:2px;white-space:nowrap}
.st-opt-radio{width:22px;height:22px;border-radius:50%;border:2px solid var(--st-line);display:grid;place-items:center;color:transparent;transition:background .2s,border-color .2s}
.st-opt-radio svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.st-opt[aria-pressed="true"] .st-opt-radio{background:var(--st-teal);border-color:var(--st-teal);color:#fff}
.st-opt-more{grid-column:1/-1;display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}
.st-opt-more>span{overflow:hidden;display:grid;gap:5px;padding-left:36px}
.st-opt[aria-pressed="true"] .st-opt-more{grid-template-rows:1fr}
.st-opt[aria-pressed="true"] .st-opt-more>span{padding-top:12px}
.st-opt-more span span{position:relative;font-size:13.5px;color:var(--st-ink-2);white-space:nowrap}
.st-opt-more span span::before{content:"";position:absolute;left:-14px;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--st-teal)}
.st-act-hint{margin:2px 0 0;color:var(--st-muted);font-size:13px;white-space:nowrap}
.st-act-go{animation:st-rise .25s ease}
@keyframes st-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@container (max-width:300px){.st-row-card{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:11px 12px}.st-row-card .st-ico{width:36px;height:36px}.st-row-card b{font-size:16px}.st-row-card small{font-size:12.5px}
 .st-ai{padding:14px 14px 16px}.st-ai-top{grid-template-columns:36px minmax(0,1fr);gap:10px}.st-ai-top .st-ico{width:36px;height:36px}.st-med{padding:0;font-size:12px}
 .st-opt{column-gap:12px;padding:13px 14px}.st-opt-more>span{padding-left:34px}.st-opt-text small,.st-opt-more span span{font-size:12.5px}}

/* Главная tiles: Сон and Recovery first; «Питание» and «Вес» are full rows on phones, icon beside the text */
/* «Главное для вас» food card: a data summary, the remaining calories are the focus (home.js) */
.st-brief-main{display:grid;gap:2px;margin-top:2px}
.st-brief-main small{display:block;color:var(--st-muted);font-size:13px;white-space:nowrap}
.st-brief-main b{display:block;font-size:28px;line-height:1.1;font-weight:760;letter-spacing:-.6px;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--st-ink)}
.st-brief-main.over b{color:var(--st-tone-slip)}
.st-brief-data{margin:8px 0 0!important;font-size:14px;white-space:nowrap;color:var(--st-muted);font-variant-numeric:tabular-nums}
.st-brief-main+.st-brief-data{margin-top:12px!important}
.st-brief-data b{color:var(--st-ink);font-weight:700}
.st-brief-data i{font-style:normal;color:var(--st-soft);margin:0 3px}
.st-brief-lines span,.st-brief-note span{display:block;white-space:nowrap}
.st-brief-note{margin:8px 0 0!important;font-size:13px;line-height:1.45;color:var(--st-muted)}
/* «Сегодня» and «Еда сегодня»: two compact metrics (home.js, food-today.js) */
.st-pm{margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--st-raised);display:grid;gap:10px}
.st-pm-top{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:var(--st-muted);white-space:nowrap}
.st-pm-top b{color:var(--st-ink-2);font-weight:650}
.st-pm-top b.over{color:var(--st-tone-slip)}
.st-pm-val{margin-top:2px;font-size:14px;color:var(--st-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.st-pm-val b{font-size:17px;color:var(--st-ink);font-weight:700}
/* Text wraps on purpose: balanced headings, body text without a lone last word */
.st-sheet h2,.st-card h2,.briefing-title h3{text-wrap:balance}
.st-med span,.st-note,.st-calm{text-wrap:pretty}
@media (prefers-reduced-motion:reduce){.st-opt,.st-opt-more,.st-opt-radio,.st-seg button,.st-primary{transition:none}.st-act-go{animation:none}}
/* Dark theme: the app-wide rule html[data-theme="dark"] :is(button,input,…){background:var(--raised)} (wellness.css)
   is more specific than the sheet's own classes and turned every «Старт»/plan button and field grey. Restore them,
   hover included (a tapped button keeps :hover on phones). */
html[data-theme="dark"] :is(.st-primary,.st-go,.st-primary:hover,.st-go:hover){background:linear-gradient(120deg,var(--st-grad-a),var(--st-grad-b));color:#fff;border-color:transparent}
html[data-theme="dark"] :is(.st-go.quiet,.st-go.quiet:hover){background:var(--st-accent-soft);color:var(--st-teal-ink)}
html[data-theme="dark"] :is(.st-text-btn,.st-text-btn:hover,.st-plan-open,.st-plan-open:hover){background:none;color:var(--st-teal-ink)}
html[data-theme="dark"] :is(.st-plan-open,.st-plan-open:hover){color:inherit}
html[data-theme="dark"] :is(.st-seg button,.st-seg button:hover){background:none;color:var(--st-muted)}
html[data-theme="dark"] :is(.st-seg button[aria-pressed="true"],.st-seg button[aria-pressed="true"]:hover){background:var(--st-accent-soft);color:var(--st-teal-ink)}
html[data-theme="dark"] :is(.st-path,.st-presets button,.st-opt,.st-path:hover,.st-presets button:hover,.st-opt:hover){background:var(--st-surface);color:var(--st-ink);border-color:var(--st-line)}
html[data-theme="dark"] :is(.st-opt[aria-pressed="true"],.st-opt[aria-pressed="true"]:hover){background:linear-gradient(160deg,var(--st-accent-soft),var(--st-surface) 70%);border-color:var(--st-teal)}
html[data-theme="dark"] :is(.st-sheet-bar button,.st-sheet-bar button:hover,.st-soft,.st-soft:hover){background:var(--st-raised)}
html[data-theme="dark"] :is(#startSheet,#weightSheet) :is(.st-input input,.st-input input:hover){background:none;border:0}
html[data-theme="dark"] #startSheet textarea{background:var(--st-surface);border-color:var(--st-line)}

/* v99: compact home plan, one energy chart and WHOOP recovery zones. */
#homePlanDetails{border:0;margin:0 0 12px;padding:16px 18px}
#homePlanDetails>summary{list-style:none;cursor:pointer;min-height:44px;display:flex;align-items:center;color:var(--st-ink)}
#homePlanDetails>summary::-webkit-details-marker{display:none}
#homePlanDetails>summary .st-plan-head{width:100%}
#homePlanDetails>summary:focus-visible{outline:2px solid var(--st-teal);outline-offset:6px;border-radius:8px}
#homePlanDetails .st-plan-head small{white-space:normal;font-size:12px}
.st-plan-triangle{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--st-accent-soft);color:var(--st-teal-ink)}
.st-plan-triangle:after{content:'';border-left:5px solid transparent;border-right:5px solid transparent;border-top:6px solid currentColor;transition:transform .18s}
#homePlanDetails[open] .st-plan-triangle:after{transform:rotate(180deg)}
.st-plan-content{padding-top:12px}
.st-plan-context{font-size:12px;line-height:1.5;color:var(--st-muted);margin:0 0 8px;overflow-wrap:anywhere}
.st-plan-facts{list-style:none;margin:0;padding:0}
.st-plan-facts>li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:10px;align-items:center;padding:12px 0;border-top:1px solid var(--st-line)}
.st-plan-facts .st-ico{width:32px;height:32px}
.st-fact-label{font-weight:600;font-size:13px;color:var(--st-ink)}
.st-plan-pair{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);gap:6px;margin-top:6px;align-items:center;font-variant-numeric:tabular-nums}
.st-plan-pair small{display:block;color:var(--st-muted);font-size:10px;line-height:1.3;margin-bottom:3px}
.st-plan-pair b{display:block;font-size:14px;line-height:1.4;font-weight:650;color:var(--st-ink);overflow-wrap:anywhere}
.st-plan-pair>span:last-child b{color:#087681}
html[data-theme="dark"] .st-plan-pair>span:last-child b{color:var(--st-teal-ink)}
.st-plan-pair i{font-style:normal;color:var(--st-soft);align-self:end;padding-bottom:3px}
#homePlanDetails .st-weekline{font-size:12px;line-height:1.6;white-space:normal;margin:4px 0}
#summaryView .quick-links button[data-recovery="green"]{background:linear-gradient(125deg,#d3f2d7,#eaf8d1);border-color:#b4dcae;color:#204d2a}
#summaryView .quick-links button[data-recovery="yellow"]{background:linear-gradient(125deg,#fff0b8,#fff7d7);border-color:#e9d17e;color:#624b09}
#summaryView .quick-links button[data-recovery="red"]{background:linear-gradient(125deg,#ffdadb,#ffe8e4);border-color:#efb0b2;color:#792c35}
#summaryView .quick-links button[data-recovery]:not([data-recovery="unknown"]) :is(b,small){color:inherit}
html[data-theme="dark"] #summaryView .quick-links button[data-recovery="green"]{background:linear-gradient(125deg,#203b27,#2e4323);border-color:#46623a;color:#d3efc1}
html[data-theme="dark"] #summaryView .quick-links button[data-recovery="yellow"]{background:linear-gradient(125deg,#443816,#4b401e);border-color:#69582b;color:#ffe7a0}
html[data-theme="dark"] #summaryView .quick-links button[data-recovery="red"]{background:linear-gradient(125deg,#47252a,#492e2b);border-color:#6a3b40;color:#ffd1d5}
#energyComparison{margin:0 0 16px;min-width:0;--energy-intake:#087681;--energy-burn:#87539f}
html[data-theme="dark"] #energyComparison{--energy-intake:#80d4cc;--energy-burn:#c7a1e2}
#energyComparison #completedEnergyCard{padding:22px;margin:0;color:var(--st-ink);background:var(--st-surface);border:1px solid var(--st-line);border-radius:20px}
#energyComparison .energy-card-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#energyComparison .energy-card-heading h2{font-size:20px;letter-spacing:-.4px;margin:3px 0 0;color:var(--st-ink)}
#energyComparison .energy-card-heading label{font-size:11px;color:var(--st-muted);display:grid;gap:3px}
#energyComparison #energyWindow{font-size:14px!important;padding:8px 10px;margin:0;width:auto;min-height:40px;color:var(--st-ink);background:var(--st-raised);border:1px solid var(--st-line);border-radius:10px}
#energyComparison .energy-date{color:var(--st-muted);font-size:12px;line-height:1.5;margin:12px 0}
#energyComparison .energy-current{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}
#energyComparison .energy-current>div{border-radius:13px;padding:12px;background:var(--st-raised)}
#energyComparison .energy-current span{font-size:12px;line-height:1.4;display:block;color:var(--st-muted)}
#energyComparison .energy-current i{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:var(--energy-intake)}
#energyComparison .energy-current .energy-expenditure i{background:var(--energy-burn)}
#energyComparison .energy-current strong{display:block;font-size:clamp(24px,4vw,34px);font-variant-numeric:tabular-nums;letter-spacing:-.8px;line-height:1.2;margin-top:5px}
#energyComparison .energy-intake strong{color:var(--energy-intake)}
#energyComparison .energy-expenditure strong{color:var(--energy-burn)}
#completedEnergyPlot{width:100%;min-width:0;min-height:180px}
#completedEnergyPlot svg{display:block;width:100%;height:auto;overflow:visible}
#completedEnergyPlot text{font-family:inherit;font-size:12px;fill:var(--st-muted)}
#completedEnergyPlot .complete-grid{stroke:var(--st-line);stroke-width:1;stroke-dasharray:3 5}
#completedEnergyPlot circle{cursor:pointer;stroke:var(--st-surface);stroke-width:2}
#completedEnergyPlot circle:focus-visible{outline:none;stroke:var(--st-ink);stroke-width:3}
#energyComparison .energy-readout{font-size:12px;line-height:1.5;min-height:18px;margin:10px 0;color:var(--st-ink)}
#energyComparison .energy-note,#energyComparison .energy-empty{font-size:12px;line-height:1.6;color:var(--st-muted);overflow-wrap:anywhere;margin:10px 0 0}
#energyComparison .energy-empty{padding:25px 0;font-size:14px}
#energyComparison details{border-top:1px solid var(--st-line);padding-top:12px;margin-top:14px}
#energyComparison summary{font-size:12px;color:var(--st-muted);min-height:32px}
#energyComparison table{font-size:12px;color:var(--st-ink)}
#energyComparison th{background:var(--st-raised);color:var(--st-muted)}
#energyComparison :is(td,th){padding:9px 8px;border-color:var(--st-line)}
#completedEnergyExcluded table{white-space:normal;overflow-wrap:anywhere}
#completedEnergyExcluded th:first-child{width:92px}
@media(max-width:390px){#homePlanDetails{padding:14px}#homePlanDetails .st-plan-head{gap:9px;grid-template-columns:36px minmax(0,1fr) 28px}#homePlanDetails .st-plan-head b{font-size:16px}.st-plan-triangle{width:28px;height:28px}.st-plan-pair b{font-size:13px}.st-plan-facts>li{gap:8px;grid-template-columns:28px minmax(0,1fr)}.st-plan-facts .st-ico{width:28px;height:28px}#energyComparison #completedEnergyCard{padding:16px}#energyComparison .energy-card-heading h2{font-size:18px}#energyComparison .energy-current>div{padding:10px}#energyComparison .energy-current span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.st-plan-triangle:after{transition:none}}
#completedEnergyPlot circle[data-preliminary]{stroke:var(--energy-burn);stroke-width:2;fill:var(--st-surface)}
#completedEnergyPlot circle[data-preliminary]:focus-visible{stroke:var(--st-ink);stroke-width:3}
#energyComparison .eyebrow{color:var(--st-muted)}
#energyComparison #completedEnergyCard .energy-review-table td:nth-child(2){color:var(--energy-intake)}
#energyComparison #completedEnergyCard .energy-review-table td:nth-child(3){color:var(--energy-burn)}
#energyComparison #completedEnergyCard .energy-review-actions>span,
#energyComparison #completedEnergyCard .energy-row-accepted .energy-review-comment,
#energyComparison #completedEnergyCard .energy-decision,
#energyComparison #completedEnergyCard .energy-review-table td[data-label]::before{color:var(--st-muted)}
#energyComparison #completedEnergyCard .energy-review-table tr{border-color:var(--st-line)}
/* Additional observations stay secondary without narrowing the main cards. */
#practicalBriefing>.briefing-more{grid-column:1/-1;min-width:0;margin:8px 0 0;padding:0;border-top:1px solid var(--st-line);color:var(--st-ink)}
#practicalBriefing>.briefing-more>summary{min-height:44px;padding:12px 0;font-size:13px;font-weight:600;line-height:1.5;color:var(--st-muted);cursor:pointer}
#practicalBriefing>.briefing-more>summary:focus-visible{outline:2px solid var(--st-teal);outline-offset:3px;border-radius:4px}
#practicalBriefing>.briefing-more>.briefing-card{min-width:0;margin:0;padding:14px 0}
/* v100: the approved calorie-balance card. Red is intake; green is expenditure. */
#energyComparison{--energy-intake:#d85e61;--energy-burn:#168e65;--energy-deficit:#45bd87;--energy-surplus:#ef8586}
html[data-theme="dark"] #energyComparison{--energy-intake:#f28b8d;--energy-burn:#68d5aa;--energy-deficit:#48ba85;--energy-surplus:#eb8589}
#energyComparison #completedEnergyCard{padding:24px;border-radius:24px}
#energyComparison .energy-card-heading h2{font-size:24px;letter-spacing:-.6px;font-weight:750;line-height:1.2;margin:0}
#energyComparison .energy-period{font-size:14px;color:var(--st-muted);line-height:1.5;margin:7px 0 18px}
#energyComparison .energy-period-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;background:var(--st-raised);border:1px solid var(--st-line);border-radius:14px;margin-bottom:20px}
#energyComparison .energy-period-tabs button{margin:0;padding:10px 6px;min-height:44px;border:0;border-radius:10px;background:transparent;color:var(--st-muted);font:inherit;font-size:14px;line-height:1.3;white-space:nowrap;box-shadow:none}
#energyComparison .energy-period-tabs button[aria-pressed="true"]{background:#def2e9;color:#116448;font-weight:700}
html[data-theme="dark"] #energyComparison .energy-period-tabs button[aria-pressed="true"]{background:#254d3e;color:#a2ebcb}
#energyComparison .energy-period-tabs button:focus-visible,#energyComparison .energy-table-pages button:focus-visible{outline:2px solid var(--energy-burn);outline-offset:2px}
#energyComparison #energyWindow[hidden]{display:none!important}
#energyComparison #completedEnergyPlot{min-height:0}
#energyComparison #completedEnergyPlot svg{max-height:360px;touch-action:pan-y}
#energyComparison #completedEnergyPlot svg:focus-visible{outline:2px solid var(--energy-burn);outline-offset:4px;border-radius:5px}
#energyComparison #completedEnergyPlot text{font-size:11px;fill:var(--st-muted)}
#energyComparison #completedEnergyPlot .energy-unit{font-size:10px}
#energyComparison .energy-cursor{stroke:var(--st-muted);stroke-width:1;stroke-dasharray:4 5;pointer-events:none}
#energyComparison .energy-hit-area{cursor:crosshair}
#energyComparison .energy-balance-legend{display:flex;justify-content:space-between;gap:9px;flex-wrap:wrap;margin:8px 0 18px;font-size:12px;color:var(--st-ink)}
#energyComparison .energy-balance-legend span{display:inline-flex;align-items:center;gap:6px}
#energyComparison .energy-balance-legend i{width:18px;height:4px;border-radius:3px;background:var(--energy-burn);flex:none}
#energyComparison .energy-balance-legend .energy-intake-key{background:var(--energy-intake)}
#energyComparison .energy-balance-legend .energy-deficit-key{background:var(--energy-deficit);opacity:.4;height:12px}
#energyComparison .energy-balance-legend .energy-surplus-key{background:var(--energy-surplus);opacity:.5;height:12px}
#energyComparison .energy-selected{background:var(--st-raised);border-radius:17px;padding:17px 18px}
#energyComparison .energy-selected .energy-date{margin:0 0 14px;font-size:17px;font-weight:700;color:var(--st-ink)}
#energyComparison .energy-current{display:grid;gap:10px;margin:0}
#energyComparison .energy-current>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0;background:none;border-radius:0;grid-column:1/-1}
#energyComparison .energy-current span{font-size:14px;color:var(--st-ink)}
#energyComparison .energy-current i{width:8px;height:8px;margin-right:8px}
#energyComparison .energy-current strong{display:inline;margin:0;font-size:16px;line-height:1.4;letter-spacing:-.25px;color:var(--st-ink);white-space:nowrap}
#energyComparison .energy-current b{font-weight:650}
#energyComparison .energy-current small{font-size:12px;font-weight:500}
#energyComparison .energy-balance-row{border-top:1px solid var(--st-line);margin-top:14px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;font-weight:650}
#energyComparison [data-tone="deficit"]{color:var(--energy-burn)}
#energyComparison [data-tone="surplus"]{color:var(--energy-intake)}
#energyComparison [data-tone="unknown"]{color:var(--st-muted)}
#energyComparison .energy-balance-value{font-variant-numeric:tabular-nums;white-space:nowrap}
#energyComparison .energy-readout{font-size:12px;min-height:36px;line-height:1.5;margin:12px 0 0;color:var(--st-muted)}
#energyComparison .energy-guidance{font-size:11px;color:var(--st-muted);line-height:1.5;margin:4px 0 0}
#energyComparison .energy-note{font-size:11px;margin-top:6px}
#energyComparison .energy-table-pages{display:flex;justify-content:center;align-items:center;gap:14px;margin-top:12px;font-size:12px}
#energyComparison .energy-table-pages button{background:var(--st-raised);border:1px solid var(--st-line);border-radius:10px;min-height:44px;margin:0;padding:8px 14px;color:var(--st-ink)}
#energyComparison .energy-table-pages button:disabled{opacity:.4}
@media(max-width:600px){#energyComparison #completedEnergyCard{padding:18px;border-radius:21px}#energyComparison .energy-card-heading h2{font-size:23px}#energyComparison .energy-period{font-size:12px;margin-bottom:14px}#energyComparison .energy-period-tabs{margin-bottom:14px}#energyComparison .energy-period-tabs button{font-size:13px}#energyComparison .energy-balance-legend{display:grid;grid-template-columns:repeat(4,auto);gap:8px;font-size:11px}#energyComparison .energy-balance-legend i{width:13px}#energyComparison .energy-selected{padding:15px}#energyComparison .energy-current span{font-size:13px}#energyComparison .energy-balance-row{font-size:14px}}
@media(max-width:350px){#energyComparison #completedEnergyCard{padding:14px}#energyComparison .energy-card-heading h2{font-size:21px}#energyComparison .energy-balance-legend{grid-template-columns:repeat(2,1fr);row-gap:10px}#energyComparison .energy-current strong{font-size:14px}#energyComparison .energy-selected{padding:13px}}
