:root{color-scheme:dark;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;color:#f3f4f0;background:#111315;--bg:#111315;--card:#1c1f22;--raised:#272b2f;--line:#34383c;--muted:#afb6ba;--accent:#d5ff5f;--green:#d5ff5f}body{line-height:1.5}button{min-height:46px;background:var(--raised);color:#f3f4f0;border-color:var(--line);border-radius:14px;padding:11px 17px;font-size:15px;font-weight:650;line-height:1.35}button:hover{background:#353b40}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.primary{background:var(--accent);border-color:var(--accent);color:#17200b}.primary:hover{background:#c5ef4c}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:34px;letter-spacing:-1px;line-height:1.15;margin:0 0 10px}h2{font-size:21px;line-height:1.3;margin:0;font-weight:700}h3{font-size:19px;line-height:1.35;margin:0 0 12px}p{line-height:1.6}.muted,.help,.sub{color:var(--muted)}.help{font-size:15px;line-height:1.65}.sub{font-size:14px;line-height:1.5;margin-top:7px}.positive{color:var(--accent)}.negative,.danger{color:#ffab9e}.padded{padding:22px}.sidebar{width:230px;padding:35px 20px;background:var(--bg);border-color:#272b2f;z-index:20}.brand{gap:12px}.brand-icon{height:46px;width:46px;background:var(--accent);color:#111315;font-weight:850;font-size:30px;line-height:1;display:flex;align-items:center;justify-content:center;border-radius:15px;letter-spacing:-3px;padding:0 3px 0 0}.brand-icon span{font-size:28px}.brand b{font-size:24px;letter-spacing:-1px}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.nav-label{font-size:11px;color:#9ba3a8;margin:48px 10px 18px}nav button{gap:13px;background:transparent;color:#aeb5ba;min-height:52px;font-weight:550}nav button svg{width:23px;height:23px;flex-shrink:0}nav button span{font-size:16px}nav button.active{background:#292f20;color:var(--accent)}.sidebar-bottom,.sidebar-bottom p{font-size:13px;color:var(--muted)}.local-dot{width:7px;height:7px;background:var(--accent)}main{margin-left:230px}header{height:auto;padding:24px 36px;background:transparent;border:0;gap:15px}.breadcrumb{font-size:14px;color:#9ba3a8}.profile>span{font-size:13px;color:var(--muted)}input,select{color:#f5f6f2;background:#141719;border-color:#444b50;border-radius:12px;padding:13px 14px;font-size:16px;min-height:50px}input:focus,select:focus{outline:2px solid var(--accent);border-color:transparent}.page{max-width:1160px;padding:0 36px 28px}.notice{font-size:14px;color:#b4bdc3;margin-bottom:25px;background:transparent;border:0;padding:0}.notice details{border:1px solid #343a30;border-radius:14px;background:#1c2119;padding:12px 15px}.notice summary{cursor:pointer;color:#d9efb1;font-weight:650}.notice summary span{color:#a9b29c;font-weight:400}.notice details p{margin:14px 0 4px;font-size:15px}.page-heading{gap:20px;margin:20px 0 25px}.page-heading p{font-size:16px;color:var(--muted)}.page-heading button{white-space:nowrap;font-size:15px;padding:12px 16px}body[data-screen=overview] .page-heading p{display:none}.card{background:var(--card);border-color:#2e3337;border-radius:23px;margin-bottom:20px}.card-head{padding:22px;gap:16px;flex-wrap:wrap}.card h2{font-size:21px}.home-top{display:grid;grid-template-columns:1.15fr 1fr;gap:20px;margin-bottom:20px}.home-top .card{margin:0}.wallet{background:linear-gradient(145deg,#242d1c,#1b2118 70%);border:1px solid #475b2a;border-radius:26px;padding:26px}.wallet-top{display:flex;justify-content:space-between;align-items:center;font-size:17px;font-weight:550;color:#e4edda;gap:10px}.wallet-date{color:#b9c5ac;font-size:14px;font-weight:400}.wallet-amount{font-size:clamp(44px,5vw,62px);letter-spacing:-2.7px;line-height:1.1;font-weight:700;color:var(--accent);margin:21px 0 12px;font-variant-numeric:tabular-nums}.wallet>p{color:#b9c5ac;font-size:14px;margin:0 0 24px;max-width:300px}.wallet-meta{display:grid;grid-template-columns:1fr 1fr;gap:16px;border-top:1px solid #3c4634;padding:20px 0}.wallet-meta span{display:block;color:#b7c1b0;font-size:13px;margin-bottom:6px}.wallet-meta b{font-size:21px;font-weight:600}.wallet-cta{width:100%;display:flex;justify-content:space-between;align-items:center;background:var(--accent);border:0;color:#17200b;border-radius:15px;padding:16px 19px;font-size:17px}.wallet-cta span{font-size:24px;line-height:1}.wallet-cta:hover{background:#c7f04f}.pill,.badge{font-size:13px;color:#c4ceba;border:1px solid #454e3a;border-radius:8px;padding:4px 9px;background:#252e20;font-weight:550}.upcoming .card-head{padding-bottom:13px}.upcoming-row{display:flex;gap:13px;align-items:center;padding:18px 22px;border-bottom:1px solid #303538}.round-icon{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0;border-radius:14px;font-size:25px;background:#30372a;color:var(--accent)}.expense-icon{background:#382e2a;color:#ffbe98}.upcoming-row div{flex:1;min-width:0}.upcoming-row b{font-size:15px;line-height:1.4;font-weight:550;display:block}.upcoming-row small{font-size:14px;color:var(--muted);display:block;margin-top:4px}.upcoming-row strong{font-size:18px;white-space:nowrap;font-weight:650}.upcoming-note{padding:19px 22px;font-size:14px;color:var(--muted)}.upcoming-note b{color:#e3e9dd;font-weight:600}.upcoming-note p{margin:7px 0 0;line-height:1.5}.goal-preview{padding:23px;display:flex;align-items:flex-start;gap:20px}.goal-preview>div{flex:1;min-width:0}.goal-preview>.icon{color:var(--accent);background:#2c3327}.goal-preview .muted{font-size:14px}.goal-preview h2{margin:6px 0 14px}.goal-preview p{margin:0;font-size:17px}.goal-preview p b{font-size:23px;font-weight:650}.progress{height:7px;background:#373d34;margin:15px 0 9px}.progress i{background:var(--accent)}.month-nav{gap:10px}.month-nav strong{font-size:16px;font-weight:550}.icon{display:grid;place-items:center;min-width:44px;min-height:44px;padding:6px;border:0;font-size:26px;background:#282d30;border-radius:13px}.tabs{border:1px solid #3a4045;background:#15181a;border-radius:12px;gap:4px}.tabs button{border-radius:8px;min-height:38px;padding:8px 15px;font-size:14px;color:var(--muted)}.tabs button.active{background:#353c30;color:#ecf8d4}.calendar{padding:0 16px 10px}.week div{font-size:12px;color:#a7b0b6;text-align:center;padding:12px 2px}.day{border:0;min-width:0;min-height:86px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:7px;padding:10px 2px;background:transparent;border-radius:13px;color:#f0f2ec;font-weight:450}.day:hover{background:#2a3033}.day.selected{background:#d5ff5f;color:#17200b;box-shadow:none}.day.today:not(.selected){box-shadow:inset 0 0 0 1px #8eab4d}.day.empty{pointer-events:none;background:transparent}.day-number{font-size:17px;line-height:1.3;font-weight:550;color:inherit;text-align:center}.today .day-number{color:inherit;background:transparent;width:auto;height:auto;margin:0;display:block}.day-pips{min-height:6px;display:flex;justify-content:center;gap:3px}.pip{display:inline-block;width:6px;height:6px;border-radius:50%;background:#c4ccd1;flex-shrink:0}.pip.income{background:#c8f472}.pip.expense{background:#ffb58d}.pip.transfer{background:#c1a9ff}.pip.purchase{background:#83d4f8}.selected .pip.income{background:#547925}.selected .pip.expense{background:#a04e26}.selected .pip.transfer{background:#7046a6}.selected .pip.purchase{background:#216b86}.day-count{font-size:11px;line-height:1.2;color:#b4bec5;white-space:nowrap}.selected .day-count{color:#314518}.legend{gap:10px 17px;padding:12px 22px 19px;font-size:12px;color:#b2bbc1}.legend span{display:flex;align-items:center;gap:6px}.legend i{width:6px;height:6px;margin:0}.month-summary{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:20px 22px;background:#181b1d;border-top:1px solid #33393d}.month-summary span{font-size:13px;color:var(--muted);display:block;margin-bottom:5px}.month-summary b{font-size:22px;font-weight:650}.row{gap:16px;padding:20px 22px;border-color:#34393d}.row>div:first-child{min-width:0}.row-title{font-size:16px;font-weight:600;overflow-wrap:anywhere}.row small{font-size:14px;line-height:1.5;margin-top:6px;color:var(--muted)}.row-actions{gap:10px}.row-amount{font-size:18px;font-weight:650}.row-actions button{font-size:14px;min-height:42px;padding:9px 12px}.info-box{padding:18px 22px;font-size:14px;color:var(--muted);line-height:1.65}.more-plan>summary{cursor:pointer;padding:21px 22px;color:#d5dfce;font-size:16px;font-weight:600}.more-plan .card{border:0;margin:0;border-radius:0}.more-plan .grid-two{gap:0;border-top:1px solid var(--line)}.side-card h3{font-size:19px}.side-card p{font-size:14px;color:var(--muted)}.stat-value{font-size:30px;font-weight:700;margin:15px 0;letter-spacing:-1px}.goal-title{font-size:17px;margin:18px 0 8px}.chart{padding:12px 0 0}.bar{background:#8caa4f}.bar.bad{background:#d48d76}.chart-label{gap:8px;font-size:12px;color:var(--muted);padding:10px 0 15px}.warning{background:#30271c;border-color:#695131;border-radius:17px;padding:18px 20px;margin:0 0 20px;font-size:15px;color:#f1d4a6;line-height:1.6}.warning p{margin:7px 0 0}.warning button{margin-top:12px}.empty-state{color:var(--muted);font-size:16px;line-height:1.7}.check-layout{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px}.check-card{padding:26px}.check-card h2{font-size:27px;margin:18px 0 25px}.check-card form button{font-size:17px;min-height:53px}.field{gap:9px;margin-bottom:21px;font-size:15px;font-weight:500;color:#d3d9dc;line-height:1.45}.field input,.field select{font-size:16px;min-width:0;color:#f5f6f2}.insight{background:#1d2320;border-color:#344137;padding:22px;border-radius:21px;color:var(--muted);font-size:15px;line-height:1.7}.insight b{font-size:18px;color:#e0e9d9}.insight p{margin:14px 0 0}.decision{padding:21px;border:1px solid #56722f;border-radius:18px;background:#26311e;margin:26px 0 20px}.decision.no{background:#34271e;border-color:#725239}.decision>span{font-size:14px;color:#c9d8b7}.decision.no>span{color:#f4c7a3}.decision h3{font-size:23px;line-height:1.3;margin:10px 0}.decision p{font-size:16px}.result-grid{gap:22px;padding:15px 0 23px}.result-grid small{font-size:14px;color:var(--muted);line-height:1.5}.result-grid b{font-size:25px;margin-top:8px}#checkResult>p{font-size:15px;line-height:1.65}.settings-body p{font-size:16px}.settings-body p.help{font-size:15px}.toolbar button{font-size:15px}.item-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.item-card{padding:22px}.item-card h3{font-size:20px;margin:18px 0 12px}.item-card .price{font-size:30px;font-weight:700}.item-card p{font-size:14px;color:var(--muted)}.item-tools{gap:8px;flex-wrap:wrap;margin-top:20px}.item-tools button{font-size:14px;flex:1}.item-tools button.danger{flex:0;min-width:42px}table{font-size:15px}th,td{padding:15px 18px;border-color:#333a3f}th{color:var(--muted);background:#171a1c}dialog{background:#1c2023;color:#f3f4f0;border:1px solid #424a4f;border-radius:25px;width:500px;max-width:calc(100vw - 24px);max-height:90dvh;padding:27px;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#050708b3;backdrop-filter:blur(6px)}.dialog-top{align-items:flex-start;gap:15px;margin-bottom:27px}.dialog-top h2{font-size:24px;line-height:1.3}.dialog-top button{flex-shrink:0;min-width:44px}.dialog-actions{gap:12px;margin-top:25px}.dialog-actions button{min-height:50px;min-width:105px}.form-error{font-size:15px;color:#ffab9e}.reserve-help{background:#252f1e;border:1px solid #475a34;border-radius:15px;padding:17px 18px;margin:0 0 23px;font-size:15px;color:#d5e4c7}.reserve-help>b{font-size:16px}.reserve-help p{margin:10px 0 0;line-height:1.6}#setup h2{margin:14px 0 0;font-size:27px}#telegramStatus{font-size:13px;color:#9fa9af}footer{font-size:13px;color:#a1aaaf;padding:20px 0;gap:20px}footer span{max-width:420px}.toast{bottom:26px;padding:16px 20px;border-radius:15px;background:var(--accent);color:#152108;font-size:15px;z-index:30;width:max-content;max-width:90vw}.product-banner,.eyebrow{display:none}button svg{pointer-events:none}
@media(max-width:1150px){.sidebar{width:190px;padding:30px 14px}.brand small{font-size:10px}.brand-icon{width:40px;height:40px}.brand b{font-size:22px}main{margin-left:190px}.page{padding:0 24px 25px}header{padding:23px 24px}.home-top{grid-template-columns:1fr}.item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.check-layout,.grid-two{grid-template-columns:1fr}.wallet-amount{font-size:56px}}
@media(max-width:760px){.sidebar{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;border:0;border-top:1px solid #34393b;padding:7px 5px calc(7px + env(safe-area-inset-bottom));background:#191c1ff5;backdrop-filter:blur(20px);display:block}.sidebar>.brand,.nav-label,.sidebar-bottom{display:none}nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:0;overflow:visible}nav button{flex-direction:column;gap:5px;min-width:0;padding:8px 2px;min-height:58px;border-radius:13px;font-weight:550;line-height:1.2;text-align:center;align-items:center;justify-content:center}nav button svg{width:23px;height:23px}nav button span{font-size:12px;white-space:nowrap}nav button.active{background:#2a3221}main{margin:0;max-width:100%;padding-bottom:calc(89px + env(safe-area-inset-bottom))}header{padding:20px 18px 15px;gap:12px;height:auto}.breadcrumb{font-size:0;font-weight:700;color:#f5f7ef}.breadcrumb>span:first-child{display:none}.breadcrumb>span:last-child{font-size:21px;letter-spacing:-.6px;margin:0}.profile>span{display:none}.profile select{font-size:14px;min-height:44px;max-width:166px;padding:9px 11px;background:#22272a;border-color:#394044}.page{padding:0 16px 18px}#telegramStatus{display:none}.notice{margin:0 0 19px;font-size:13px}.notice details{padding:11px 13px}.notice summary span{font-size:12px}.notice details p{font-size:14px}.page-heading{margin:22px 0 20px;gap:12px;align-items:flex-start}.page-heading h1{font-size:29px;margin-bottom:7px}.page-heading p{font-size:15px}.page-heading>button{font-size:14px;min-height:44px;padding:11px 13px;flex-shrink:0}body[data-screen=overview] .page-heading{margin-top:0;margin-bottom:17px;align-items:center}body[data-screen=overview] .page-heading>div{display:none}body[data-screen=overview] .page-heading>button{margin-left:auto;background:#262c2f;border-color:#3b4449;color:#d9e4cb;min-height:40px;padding:9px 14px}.home-top{gap:17px;margin-bottom:17px}.wallet{border-radius:25px;padding:23px 22px}.wallet-amount{font-size:52px;margin:20px 0 13px}.wallet>p{font-size:14px;line-height:1.6;margin-bottom:20px;max-width:260px}.wallet-meta{gap:16px;padding:18px 0 20px}.wallet-meta span{font-size:13px;line-height:1.5}.wallet-meta b{font-size:21px}.wallet-cta{font-size:17px;min-height:55px}.card{border-radius:22px;margin-bottom:17px}.card-head{padding:21px;gap:17px}.card h2{font-size:21px}.upcoming-row{padding:18px 20px;gap:12px}.upcoming-row b{font-size:15px}.upcoming-row strong{font-size:17px}.round-icon{width:38px;height:42px}.upcoming-note{padding:17px 20px}.goal-preview{padding:21px}.goal-preview p{font-size:15px}.goal-preview p b{font-size:22px}.calendar-card>.card-head{gap:20px}.calendar-card .card-head>div:first-child{width:100%}.calendar-card .month-nav{width:100%}.calendar-card .tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}.tabs button{font-size:15px;min-height:39px}.calendar{padding:0 8px 9px}.week div{font-size:12px;padding:11px 0}.day{min-height:79px;border-radius:12px;padding:10px 0;gap:7px}.day-number{font-size:17px}.day-count{font-size:11px}.day-pips{gap:2px}.pip{width:5px;height:5px}.legend{padding:9px 20px 19px;gap:10px 14px;font-size:12px}.month-summary{padding:20px;gap:16px}.month-summary b{font-size:20px}.row{padding:19px 20px;gap:14px;align-items:flex-start;flex-wrap:wrap}.row>div:first-child{flex:1;min-width:140px}.row-title{font-size:16px;line-height:1.45}.row small{font-size:14px;line-height:1.5}.row-actions{flex:1 0 auto;flex-wrap:wrap;max-width:100%;gap:10px}.row-amount{font-size:18px;margin-left:auto}.row-actions button{font-size:14px;min-height:43px}.info-box{font-size:14px;line-height:1.65;padding:16px 20px}.check-card{padding:23px 20px}.check-card h2{font-size:27px;margin:19px 0 27px}.check-card form{display:block}.field{font-size:16px;margin-bottom:23px;gap:10px}.field input,.field select{font-size:17px;min-height:54px;padding:14px}.check-card form input[name=purchaseAmount]{font-size:33px;letter-spacing:-1px;font-weight:650;min-height:76px;color:var(--accent)}.check-card form button{width:100%;font-size:17px;min-height:55px}.insight{font-size:15px;line-height:1.7;padding:22px 20px}.insight b{font-size:18px}.check-layout{gap:0}.check-layout>.insight{margin-bottom:18px}.result-grid{gap:22px 14px}.result-grid b{font-size:24px}.decision h3{font-size:24px}.toolbar button{font-size:15px;min-height:46px}.item-grid{grid-template-columns:1fr;gap:17px}.item-card{padding:23px}.item-card h3{font-size:22px}.item-card .price{font-size:34px}.item-card p{font-size:15px}.badge{font-size:13px;line-height:1.6}.item-tools button{font-size:15px;min-height:46px}.settings-body p{font-size:16px}.settings-body .help{font-size:15px}.more-plan>summary{font-size:16px;padding:20px}.chart-label{font-size:12px;flex-wrap:wrap}.warning{font-size:15px;padding:18px}.help{font-size:15px}.dialog-top h2{font-size:25px}dialog{width:100%;max-width:calc(100vw - 18px);padding:24px 21px;border-radius:24px;max-height:91dvh}#setup h2{font-size:28px}.dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;position:sticky;bottom:-24px;padding:15px 0 8px;background:#1c2023}.dialog-actions>button:only-child{grid-column:1/-1}.dialog-actions button{font-size:16px;min-height:53px}.reserve-help{font-size:15px;line-height:1.6;padding:17px}.reserve-help>b{font-size:16px}.toast{bottom:calc(94px + env(safe-area-inset-bottom));font-size:15px}footer{display:block;font-size:12px;padding:18px 2px 10px}footer span{display:block;margin-top:8px;max-width:310px}}
@media(max-width:360px){.page{padding-left:12px;padding-right:12px}header{padding-left:14px;padding-right:14px}.wallet{padding:22px 19px}.wallet-amount{font-size:46px}.upcoming-row{padding-left:17px;padding-right:17px;gap:9px}.upcoming-row strong{font-size:16px}.upcoming-row b{font-size:14px}.round-icon{width:31px;height:37px}.month-summary b{font-size:18px}.day{min-height:76px}.calendar{padding-left:5px;padding-right:5px}.item-card{padding:21px}.result-grid{grid-template-columns:1fr}.page-heading h1{font-size:27px}.page-heading{flex-wrap:wrap}.profile select{max-width:149px;font-size:13px}}
.sync-panel{border:1px solid #394334;background:#1b2218;border-radius:15px;padding:14px 16px;margin:0 0 16px;color:#d8e5cd;font-size:14px;line-height:1.5}.sync-panel>div:first-child{display:flex;align-items:center;gap:8px}.sync-panel b{font-weight:550}.sync-dot{width:7px;height:7px;background:#9ba3a8;border-radius:50%;flex-shrink:0}.sync-dot.connected{background:var(--accent)}.sync-panel small{display:block;color:#adbca2;margin:5px 0 0 15px;font-size:12px}.sync-panel p{font-size:14px;margin:12px 0;line-height:1.6}.sync-actions{display:flex;gap:9px;flex-wrap:wrap}.sync-panel button{font-size:14px;min-height:43px}.sync-refresh{margin-top:12px;background:transparent;min-height:36px!important;padding:6px 12px}.sync-conflict{border-color:#8b643a;background:#30271c;color:#ffe0bb}


.plan-preview{width:600px}.preview-balance{border:1px solid #455735;background:#252f1e;border-radius:16px;padding:20px;margin:22px 0}.preview-balance>span{display:block;color:#bdcdb0;font-size:14px}.preview-balance>b{display:block;font-size:36px;letter-spacing:-1px;margin:10px 0}.preview-balance p{font-size:15px;margin:10px 0 0}.preview-section{margin:26px 0}.preview-section h3{font-size:19px;margin-bottom:12px}.preview-section summary{cursor:pointer;font-size:17px}.preview-row{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #3a4145;padding:15px 0;align-items:flex-start}.preview-row>div{min-width:0}.preview-row b{font-size:16px;display:block;overflow-wrap:anywhere}.preview-row small{display:block;color:var(--muted);font-size:14px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere}.preview-row strong{font-size:17px;white-space:nowrap;flex-shrink:0}@media(max-width:360px){.preview-row{flex-wrap:wrap;gap:8px}.preview-row strong{margin-left:auto}}
