/* Metal 3.6 — единая новая библиотека компонентов. Никаких старых стилей C/C.2. */
:root{color-scheme:light;--ink:#16202a;--muted:#52636e;--teal:#0cd2c6;--teal-dark:#048f8b;--line:#8798a34d;--silver:linear-gradient(152deg,#fcfdfefb 0%,#f1f2f5fc 28%,#d9dde5f7 100%);--steel:linear-gradient(144deg,#6c7782 0%,#96a0ac 43%,#b9c1cb 78%,#abb4be 100%);--radius:22px;--ease:cubic-bezier(.18,.76,.24,1);--font:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
*,*:before,*:after{box-sizing:border-box}html,body,#app{height:100%;min-height:100%;margin:0}body{font-family:var(--font);color:var(--ink);background:#a7b0ba;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--teal-dark);outline-offset:3px}button:active:not(:disabled){transform:scale(.987)}.hidden,[hidden]{display:none!important}.device{height:100dvh;width:100%;position:relative;overflow:hidden;isolation:isolate;background:var(--steel)}
.metal-bg{position:absolute;inset:0;background:radial-gradient(ellipse 75% 65% at 91% 5%,#d0d4dc7a,transparent 70%),radial-gradient(ellipse 68% 50% at 3% 90%,#b5b6c0,transparent 77%),var(--steel);z-index:-5;pointer-events:none}.sheen{position:absolute;inset:0;z-index:-4;width:100%;height:100%;pointer-events:none;opacity:.85}.texture{position:absolute;inset:0;z-index:-3;pointer-events:none;opacity:.045;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.48' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.5'/%3E%3C/svg%3E")}
.scroller{height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none;padding:0 16px calc(127px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch}.scroller::-webkit-scrollbar,.sheet::-webkit-scrollbar{display:none}.topline{display:flex;align-items:center;justify-content:space-between;margin:calc(max(42px,env(safe-area-inset-top,0px) + 8px)) 7px 0;height:46px}.brand{display:flex;align-items:center;gap:9px;color:#f8fafc;font-size:23px;letter-spacing:-.8px;font-weight:350;white-space:nowrap;text-shadow:0 1px 3px #24354128}.brand img{width:47px;height:23px;object-fit:contain}.icon-btn{display:grid;place-items:center;min-width:44px;min-height:44px;padding:0;border:0;border-radius:13px;background:transparent;color:inherit;box-shadow:none}.icon{display:inline-block;width:22px;height:22px;flex:0 0 auto;background:currentColor;mask-image:var(--icon);mask-size:contain;mask-position:center;mask-repeat:no-repeat;-webkit-mask-image:var(--icon);-webkit-mask-size:contain;-webkit-mask-position:center;-webkit-mask-repeat:no-repeat}.icon.small{width:17px;height:17px}.icon.big{width:24px;height:24px}.profile-btn{color:#eff6fb;margin-right:0}.profile-btn .icon{width:24px;height:24px}.topline .back{color:white;margin-left:-8px}.page-label{color:#eef5f9;font-size:12px;font-weight:500;letter-spacing:.02em;margin:8px 7px 4px}
.hero{margin:9px 8px 0;color:white;text-shadow:0 1px 2px #253a4a24}.hero h1{font-size:25px;font-weight:625;letter-spacing:-.9px;line-height:1.25;margin:0}.hero .date{margin-top:8px;font-size:15px;font-weight:350;color:#f8fbff}.balance{height:115px;position:relative;margin-top:4px;display:flex;align-items:center;justify-content:space-between;gap:14px}.balance-copy{flex:1;min-width:0;transform:translateY(-11px)}.balance-label{font-size:18px;font-weight:365}.progress-track{height:9px;border-radius:20px;background:linear-gradient(170deg,#bac3ce9a,#e4ebf1c8);box-shadow:inset 0 1px 3px #1c324a30,0 1px 1px #fafcffc0;overflow:hidden;display:block}.progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#02d0c3,#15e4d4 72%,#00c5b4);box-shadow:0 0 4px #0bdad055;transition:width 210ms var(--ease);width:var(--progress,0%)}.hero-track{margin-top:14px;max-width:215px}.ring{position:relative;width:99px;height:99px;top:-15px;flex:0 0 99px;display:grid;place-items:center;border:0;border-radius:50%;background:conic-gradient(from -8deg,#13e4d7 0 var(--progress,0%),#a0d6d2b9 var(--progress,0%) 100%);box-shadow:0 5px 11px #15333d27,inset 0 2px 2px #ddfffc9e}.ring:before{content:'';position:absolute;inset:8px;border-radius:50%;background:radial-gradient(circle at 42% 33%,#66747e,#5b6871 90%);box-shadow:inset 0 3px 10px #253b4857}.ring strong{z-index:1;color:white;font-size:24px;font-weight:590;letter-spacing:-.9px}.ring small{z-index:1;color:white;font-size:13px;font-weight:450}.ring.empty{background:conic-gradient(#a0d6d2a8 0% 100%)}.ring.empty strong{font-size:25px}.ring.empty:before{background:radial-gradient(circle at 42% 33%,#7b858c,#64727e)}
.metal-card,.feature-card{position:relative;color:var(--ink);text-align:left;border:1.35px solid #ffffffdf;background:var(--silver);box-shadow:0 11px 14px #3341522b,0 3px 5px #29313c23,inset 0 1.5px 2px #fff;border-radius:var(--radius);overflow:hidden;transition:transform 140ms var(--ease),box-shadow 140ms var(--ease)}.metal-card:before,.feature-card:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(171deg,#fff8 0%,transparent 27%,transparent 66%,#f3f8fd31 100%)}.metal-card strong,.feature-card h2,.feature-card h3{position:relative;z-index:1;font-weight:665;letter-spacing:-.52px}.metal-card strong{font-size:19px;line-height:1.16}.metal-card small{font-size:13px;color:#34424d;position:relative;z-index:1;font-weight:390}.metal-card .forward{position:absolute;right:12px;bottom:13px;color:#65727d;z-index:2}.metal-card .forward .icon{width:18px;height:18px}.today-card{display:block;width:100%;height:72px;margin:13px 0 14px;padding:12px 22px;text-align:left;border:1.35px solid #ffffffdf}.today-card strong{font-size:19px}.today-card small{display:block;margin-top:5px}.tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 10px}.tile{height:103px;display:flex;flex-direction:column;justify-content:flex-end;align-items:flex-start;padding:14px 13px 18px;gap:4px}.tile strong{font-size:18px}.tile small{font-size:12.6px;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;padding-right:4px}.tile .forward{right:7px;bottom:7px}.tile .forward .icon{width:14px;height:14px}.food-photo{position:absolute;top:0;right:0;width:79px;height:67px;object-fit:contain;pointer-events:none;z-index:1}.food.tile strong,.food.tile small{max-width:calc(100% - 3px)}.goal-card{margin-top:13px;min-height:98px;width:100%;padding:17px 22px 13px;display:block}.goal-card strong{font-size:19px}.goal-card small{display:block;margin-top:3px}.goal-card .progress-track{max-width:185px;margin-top:11px}.mountain{position:absolute;z-index:0;bottom:-12px;right:-15px;width:61%;height:100%;object-fit:cover;object-position:55% 47%;opacity:.82;mask-image:linear-gradient(to right,transparent 0%,black 50%);-webkit-mask-image:linear-gradient(to right,transparent 0%,black 50%)}.goal-card .text-part{position:relative;z-index:2;max-width:65%}.goal-card .forward{right:8px}.section-title{color:#f8fbff;font-weight:650;font-size:21px;line-height:1.15;margin:12px 7px 14px;letter-spacing:-.5px;text-shadow:0 1px 2px #28354326}.section-title .sub{font-size:13px;font-weight:420;color:#eff7fa;display:block;margin-top:6px;letter-spacing:0}.feature-card{padding:18px 17px;margin:0 0 12px}.feature-card h2{font-size:19px;margin:0}.feature-card h3{font-size:16px;margin:0}.feature-card p{font-size:13px;color:#4e606c;margin:5px 0 0;line-height:1.42}.feature-card .kicker{font-size:11px;color:#627581;font-weight:610;letter-spacing:.04em}.feature-card .amount{font-size:28px;letter-spacing:-1.1px;line-height:1.12;font-weight:650;margin:6px 0;color:#1c2c35}.feature-card .amount small{font-size:15px;letter-spacing:0;font-weight:500}.feature-card.tappable{cursor:pointer}.feature-card .row-end{position:absolute;right:18px;top:22px;color:#66757f}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.row.start{justify-content:flex-start}.muted{color:#596c78!important}.caption{color:#637380;font-size:12px;line-height:1.38}.label{font-size:13px;font-weight:600}.sp8{height:8px}.sp12{height:12px}.sp16{height:16px}.soft-line{height:1px;background:#7e90a342;margin:12px 0}.mini-summary{display:flex;gap:14px;justify-content:space-between}.mini-summary>div{flex:1}.mini-summary b{font-size:17px;display:block}.mini-summary small{color:#61717c;font-size:12px;display:block;margin-top:5px}.list-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:54px;border-bottom:1px solid #92a3b344;padding:7px 0}.list-row:last-child{border-bottom:none}.list-row .start{min-width:0;flex:1}.list-row strong{display:block;font-size:14px;font-weight:625;overflow-wrap:anywhere}.list-row small{display:block;font-size:12px;color:#60717d;margin-top:3px}.list-row .meta{font-size:12px;flex:0 0 auto;color:#50616f}.list-row .icon-btn{color:#65737d}.check-target{flex:0 0 44px;width:44px;height:44px;border:0;background:transparent;display:grid;place-items:center;padding:0}.checkmark{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;border:1.7px solid #8194a1;background:#ffffff90;color:transparent}.checkmark.checked{background:#18c9c0;border-color:#16bcb2;color:#07545c}.checkmark.checked .icon{width:17px;height:17px}.task-done .start strong{color:#72818a;text-decoration:line-through}.empty{padding:14px 0 5px;font-size:13px;color:#5a6d79;line-height:1.5}.empty .inline-link{margin-top:10px}.inline-link{border:0;padding:0;background:transparent;color:#087d82;font-weight:635;font-size:13px;min-height:44px}.text-button{background:transparent;border:0;color:#23414b;font-weight:600;min-height:44px;padding:0 7px}.primary{min-height:48px;border:0;border-radius:14px;background:linear-gradient(145deg,#26cfc5,#078c8e);color:white;font-weight:670;padding:12px 16px;text-shadow:0 1px 1px #15444b25;box-shadow:0 5px 9px #1c6c7140,inset 0 1px 1px #c9ffff8a}.primary.full{width:100%}.secondary{border:1px solid #ffffffcf;border-radius:14px;background:linear-gradient(152deg,#f7f9fb,#d9e1e7);color:#2e4752;min-height:44px;padding:10px 13px;font-weight:610}.danger{border:1px solid #c8a1a5;background:#f7eded;color:#9d3541;border-radius:14px;min-height:44px;padding:10px 13px;font-weight:630}.tiny-btn{border:0;background:transparent;color:#087e84;font-size:12px;font-weight:610;min-width:44px;min-height:44px}.pill-group{display:flex;gap:4px;padding:4px;background:#d4dde69c;border:1px solid #faffffe0;border-radius:17px;margin-bottom:14px;overflow-x:auto}.pill-group button{flex:1;border:0;background:transparent;border-radius:13px;min-height:44px;padding:9px 12px;font-size:13px;color:#50616d;white-space:nowrap}.pill-group button.active{background:linear-gradient(155deg,#fff,#e9f2f5);box-shadow:0 2px 5px #53657625;color:#176c70;font-weight:650}.mini-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #cbd6de;border-radius:99px;background:#ffffff74;color:#4b5c65;padding:7px 11px;font-size:12px}.chips{display:flex;flex-wrap:wrap;gap:8px}.step-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}.step-row:last-child{border:0}.step-num{width:30px;height:30px;border-radius:10px;background:#d6e2e8;border:1px solid white;display:grid;place-items:center;color:#506571;font-size:12px;font-weight:650;flex:0 0 30px}.step-row.completed .step-num{background:#0bcabd;color:#fff}.step-copy{flex:1;min-width:0}.step-copy strong{font-size:14px;display:block}.step-copy small{color:#6c7c86;font-size:12px;display:block}.step-row .icon-btn{color:#67747c}.stage-branch{margin-left:12px;padding-left:13px;border-left:2px solid #aab8c1}
.bottom-nav{position:absolute;z-index:5;bottom:calc(14px + env(safe-area-inset-bottom, 0px));left:14px;right:14px;height:65px;border-radius:29px;background:linear-gradient(145deg,#f7f9fbf2,#e6e9eff3 50%,#cdd3dcdf);box-shadow:0 9px 13px #46566627,inset 0 2px 2px #fff,0 0 0 1.4px #ffffffd9;display:flex;align-items:center;justify-content:space-around;padding:0 7px;backdrop-filter:blur(9px)}.nav-btn{height:50px;min-width:50px;border:0;background:transparent;border-radius:17px;display:grid;place-items:center;position:relative;color:#52626e;padding:7px}.nav-btn .icon{width:23px;height:23px}.nav-btn.active{color:#05b8ad}.nav-btn.active:before{content:'';position:absolute;inset:4px;border-radius:16px;background:radial-gradient(circle,#67dcd33a,transparent 72%)}.nav-btn .icon{z-index:1}.nav-btn.add{width:50px;height:50px;color:#faffff;isolation:isolate}.nav-btn.add:before{content:'';position:absolute;z-index:-1;inset:5px;border-radius:50%;border:1px solid #a9f9e998;background:linear-gradient(148deg,#31dbd1,#0bb7b2 47%,#077985);box-shadow:0 5px 9px #17535a40,inset 0 1.5px 2px #f2fffca6}.nav-btn.add .icon{width:22px;height:22px}
.backdrop{position:absolute;inset:0;z-index:9;background:#1c2c3b68;backdrop-filter:blur(3px)}.sheet{position:absolute;z-index:10;left:0;right:0;bottom:0;max-height:min(82%,calc(100% - env(safe-area-inset-top,0px) - 40px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;padding:9px 16px calc(25px + env(safe-area-inset-bottom,0px));border-radius:27px 27px 0 0;background:linear-gradient(153deg,#f7f8fa,#e8ebf0 53%,#d3dce5);box-shadow:0 -10px 34px #192b3c5e;animation:showSheet 230ms var(--ease) both}.sheet-handle{width:38px;height:4px;background:#a4aeb9;border-radius:999px;margin:0 auto 13px}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.sheet-head h2{font-size:21px;letter-spacing:-.5px;margin:0}.sheet-close{color:#465561}.sheet-body{font-size:14px;line-height:1.5}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;color:#52636d;font-size:12px;font-weight:600}.field input,.field textarea,.field select{width:100%;background:#f9fbfced;border:1px solid #b8c6d1;border-radius:12px;padding:10px 12px;font-size:15px;color:#162936;min-height:44px;min-width:0}.field textarea{resize:vertical;min-height:75px}.field .help{font-weight:400;color:#687680;font-size:11px}.field-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.field-row>*{min-width:0}.sheet-card{border:1px solid #fff;border-radius:17px;background:#ffffff85;padding:12px 14px;margin-bottom:12px}.sheet-card h3{font-size:15px;margin:0 0 8px}.sheet-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.sheet-actions>*{flex:1}.modal-error{font-size:13px;color:#a43440;padding:5px 0 9px}.modal-note{font-size:12px;color:#637480;line-height:1.45}.switch-row{display:flex;align-items:center;justify-content:space-between;min-height:50px;gap:12px;padding:4px 0}.switch{width:48px;min-width:48px;height:30px;border-radius:99px;border:1px solid #82919b85;background:#bdc6cf;position:relative;padding:0}.switch:after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 3px #40525d40;transition:transform 150ms ease}.switch[aria-checked=true]{background:#11c6bb}.switch[aria-checked=true]:after{transform:translateX(18px)}.option-list{display:flex;gap:8px;flex-wrap:wrap}.option{border:1px solid #c3d0d9;border-radius:12px;background:#f8fafbd1;padding:10px 12px;min-height:44px;color:#41535f;font-size:13px}.option.selected{background:#cdf3f0;border-color:#0ca79f;color:#076a69;font-weight:650}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.calendar-day{text-align:center;font-size:11px;color:#53646f;margin:5px 0}.calendar-cell{aspect-ratio:1;min-height:44px;display:grid;place-items:center;border:1px solid #d7dfe5;background:#f6f9fbbd;color:#374e5c;border-radius:11px;font-size:13px}.calendar-cell.selected{background:#17c7bb;color:#fff;border-color:#11b6aa}.calendar-cell:disabled{background:transparent;border:0}.greeting-foot{font-size:13px;color:#eef6fb;line-height:1.4;margin:3px 7px 14px}.empty-screen{color:#eef5f8;text-align:center;padding:30px 10px 20px}.empty-screen p{color:#f2f7fa;line-height:1.5;font-size:14px}.subtle-light{color:#f4f8fc;text-shadow:0 1px 1px #283a4829}.onboard{padding-top:16px}.onboard .feature-card{margin-top:14px}.onboard .hint{color:#eef8fb;font-size:13px;line-height:1.46;padding:0 5px;margin:0 0 12px}.onboard .dots{display:flex;gap:8px;justify-content:center;margin:16px 0}.onboard .dots i{height:6px;width:24px;border-radius:6px;background:#e6ecee7a}.onboard .dots i.active{background:#0cddd0}.notice{color:#f8fbfd;background:#2c475044;padding:10px 13px;border:1px solid #ffffff66;border-radius:14px;font-size:12px;line-height:1.5;margin:10px 0}.toast{position:absolute;bottom:calc(94px + env(safe-area-inset-bottom,0px));left:22px;right:22px;z-index:15;border-radius:12px;background:#203944ee;color:white;padding:12px 14px;text-align:center;font-size:13px;box-shadow:0 8px 22px #13273263;pointer-events:none}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@keyframes showSheet{from{transform:translateY(28px);opacity:.45}to{transform:translateY(0);opacity:1}}
@media (min-width:560px){body{display:grid;place-items:center;background:linear-gradient(145deg,#727e8b,#b6bec7)}.device{width:390px;height:min(844px,96dvh);border:5px solid #14191d;border-radius:47px;box-shadow:0 0 0 2px #c8cdd1,0 0 0 4px #343b43,0 24px 62px #2a35477a}.scroller{padding-bottom:131px}.topline{margin-top:48px}.bottom-nav{bottom:39px}}
@media (max-width:360px){.scroller{padding-left:12px;padding-right:12px}.hero h1{font-size:22px}.brand{font-size:21px}.ring{width:87px;height:87px;flex-basis:87px}.balance-label{font-size:16px}.tile{padding-left:11px;padding-right:9px}.tile strong{font-size:16px}.tile small{font-size:11.4px}.feature-card{padding:15px 13px}.goal-card{padding:14px 16px}.field-row{gap:8px}.sheet{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Интерактивная лестница этапов: лёгкий сдвиг ступеней, не SVG-рисунок */
.stair-step{margin-left:calc(var(--stair,0)*8px)!important;width:calc(100% - var(--stair,0)*8px);min-height:58px;background:linear-gradient(160deg,#f8fcffbd,#d2dfe6ba);border:1px solid #ffffffb9;border-radius:13px;padding:7px 9px;margin-bottom:7px;box-shadow:0 3px 5px #49596921}.stair-step .step-num{background:#e0eaf0;border:1px solid #fff}.stair-step.completed .step-num{background:#0ac4b7;color:white}
/* Область нажатия ступеньки — 44×44, визуальный номер остаётся компактным. */
.step-num{width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 44px;border:0;background:transparent;position:relative;isolation:isolate;color:#506571}
.step-num:before{content:'';position:absolute;inset:7px;border:1px solid #fff;border-radius:10px;background:#dfe9ef;z-index:-1}
.step-row.completed .step-num{background:transparent;color:#fff}
.step-row.completed .step-num:before{background:#0bcabd}
.stair-step .step-num{background:transparent;border:0}
