:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Inter,Segoe UI,sans-serif;font-size:14px;font-synthesis:none;-webkit-font-smoothing:antialiased;--bg:#f6f7f9;--surface:#fff;--surface2:#f1f2f5;--hover:#f5f6f8;--text:#202328;--muted:#8a9099;--sub:#626a75;--line:#eaecf0;--line-strong:#d9dde4;--accent:#343b46;--accent-text:#fff;--soft:#e5e7eb;--ring:#aab1bb;--positive:#5c7366;--negative:#9a6f68;--shadow:0 3px 24px rgba(32,38,50,.025);--glass:rgba(255,255,255,.94);color:var(--text);background:var(--bg);color-scheme:light}:root[data-theme=dark]{--bg:#121316;--surface:#1d1f23;--surface2:#292c31;--hover:#282b30;--text:#e8e9ec;--muted:#969ba4;--sub:#b1b5be;--line:#303238;--line-strong:#3c4046;--accent:#d5d9df;--accent-text:#202328;--soft:#3c4047;--ring:#adb4be;--positive:#9fb6a7;--negative:#bd918a;--shadow:0 3px 24px rgba(0,0,0,.08);--glass:rgba(28,30,34,.94);color-scheme:dark}*,*:before,*:after{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--ring);outline-offset:2px}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:650;letter-spacing:-.035em}.muted,.hint{font-size:13px;color:var(--muted);line-height:1.5}.app-shell{display:flex;min-height:100vh;min-height:100dvh}.sidebar{width:248px;flex:none;background:var(--surface);border-right:1px solid var(--line);height:100vh;height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;z-index:5}.brand{height:86px;display:flex;gap:12px;align-items:center;padding:0 24px;border-bottom:1px solid var(--line)}.brand-mark{background:var(--accent);color:var(--accent-text);display:inline-flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:12px;flex-shrink:0}.brand b{font-size:17px;letter-spacing:-.05em}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px;letter-spacing:0}.sidebar-items{overflow-y:auto;padding:20px 12px;flex:1;scrollbar-width:thin}.nav-label{color:var(--muted);font-size:10px;letter-spacing:.13em;text-transform:uppercase;font-weight:700;margin:17px 12px 9px}.nav-label:first-child{margin-top:0}.nav-link{width:100%;height:43px;display:flex;align-items:center;gap:13px;text-align:left;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--sub);font-weight:520;margin:2px 0;transition:background .15s,color .15s}.nav-link:hover{background:var(--hover);color:var(--text)}.nav-link.active{background:var(--surface2);color:var(--text);font-weight:650}.nav-count{margin-left:auto;font-size:11px;font-weight:600;background:var(--soft);border-radius:6px;padding:2px 6px}.sidebar-bottom{padding:14px;border-top:1px solid var(--line)}.profile{display:flex;align-items:center;gap:10px;border:0;background:transparent;width:100%;text-align:left;padding:6px;border-radius:9px;color:var(--sub)}.profile:hover{background:var(--hover)}.avatar,.topbar-avatar{display:flex;align-items:center;justify-content:center;background:var(--surface2);color:var(--sub);border:1px solid var(--line);border-radius:50%;width:38px;height:38px;font-weight:700}.profile-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.profile-copy b{color:var(--text);font-size:13px}.profile-copy small{font-size:11px;color:var(--muted)}.main-shell{flex:1;min-width:0}.topbar{height:86px;background:var(--glass);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(32px,calc((100% - 1160px)/2));gap:20px;position:sticky;top:0;z-index:4}.topbar-caption{display:flex;flex-direction:column;gap:6px}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--muted)}.topbar h1{font-size:22px;letter-spacing:-.045em}.topbar-actions{display:flex;align-items:center;gap:10px}.topbar-avatar{width:35px;height:35px;margin-left:5px;font-size:12px}.main-content{max-width:1224px;margin:0 auto;padding:32px 32px 64px;animation:fade .22s ease}.welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}.welcome .overline{font-size:12px;font-weight:650;text-transform:capitalize;color:var(--muted);margin-bottom:7px}.welcome h2{font-size:29px;font-weight:690;line-height:1.22}.welcome>div>span{display:block;color:var(--sub);font-size:14px;margin-top:8px}.stats-grid{display:grid;gap:16px;margin-bottom:30px}.stats-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.stats-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.card{background:var(--surface);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow);overflow:hidden}.card.padded{padding:20px}.stat{min-height:166px;display:flex;flex-direction:column;align-items:flex-start;padding:20px;gap:10px}.stat-icon{display:flex;align-items:center;justify-content:center;background:var(--surface2);border-radius:10px;width:34px;height:34px;color:var(--sub)}.stat-label{font-size:12px;color:var(--sub)}.stat b{font-size:24px;letter-spacing:-.045em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-weight:690}.stat small{font-size:11px;color:var(--muted)}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}.section{min-width:0;margin-bottom:28px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:24px;margin-bottom:14px}.section-heading h2{font-size:16px;letter-spacing:-.03em}.text-link{font-size:12px;color:var(--sub);display:inline-flex;gap:6px;align-items:center;background:none;border:none;padding:4px 0;font-weight:550}.text-link:hover{color:var(--text)}.entry{display:flex;align-items:center;min-height:69px;padding:12px 16px;gap:14px;border-bottom:1px solid var(--line)}.entry:last-child{border-bottom:0}.entry-icon{width:38px;height:38px;border-radius:10px;background:var(--surface2);color:var(--sub);display:flex;align-items:center;justify-content:center;flex-shrink:0}.entry-content{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.entry-content b{font-size:13px;font-weight:600;overflow-wrap:anywhere}.entry-content span{font-size:12px;color:var(--muted);overflow-wrap:anywhere}.entry-content[onClick]{cursor:pointer}.entry-right{margin-left:auto;font-size:12px;white-space:nowrap}.entry-right strong,.entry-right b{font-weight:650}.entry-action{flex:none}.amount{font-size:13px;font-weight:650;white-space:nowrap}.amount.positive{color:var(--positive)}.icon-button{background:transparent;border:0;color:var(--sub);border-radius:9px;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none}.icon-button:hover,.icon-button.active{background:var(--surface2);color:var(--text)}.button{min-height:39px;border-radius:10px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 15px;font-size:13px;font-weight:630;white-space:nowrap;transition:background .15s,transform .12s}.button:active:not(:disabled){transform:scale(.985)}.button.primary{background:var(--accent);color:var(--accent-text)}.button.primary:hover{filter:brightness(.93)}.button.subtle{background:var(--surface2);color:var(--text)}.button.subtle:hover{background:var(--soft)}.button.ghost{background:transparent;color:var(--sub)}.button.danger{background:var(--negative);color:#fff}.button.small{height:33px;min-height:33px;padding:0 11px;font-size:12px;border-radius:9px}.page-actions{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:0 0 24px;min-height:40px}.action-stack{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.date-input,.month-select{background:var(--surface);border:1px solid var(--line-strong);border-radius:10px;color:var(--text);padding:9px 12px;height:40px;max-width:100%}.segments{background:var(--surface2);padding:2px;border-radius:9px;min-height:34px;display:flex;align-items:center;gap:2px;margin-bottom:16px}.segments button{flex:1;min-width:0;white-space:nowrap;border:1px solid transparent;background:transparent;border-radius:7px;height:29px;padding:0 10px;font-size:12px;font-weight:520;color:var(--sub)}.segments button.selected{background:var(--surface);border-color:var(--line);box-shadow:0 3px 8px #0001;color:var(--text);font-weight:650}.padded>.segments{margin-bottom:8px}.task-row,.buy-row{border-bottom:1px solid var(--line);padding:15px 0;display:flex;align-items:center;gap:12px;min-height:71px}.task-row:last-child,.buy-row:last-child{border-bottom:0}.task-content{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;cursor:pointer}.task-content b,.buy-title b{font-size:13px;overflow-wrap:anywhere;font-weight:620}.task-content span,.buy-title small{font-size:12px;color:var(--muted);line-height:1.4}.struck{text-decoration:line-through;color:var(--muted)}.check-large,.task-check{border:1.6px solid var(--line-strong);background:transparent;width:23px;height:23px;border-radius:7px;flex:none;color:var(--accent-text);display:flex;align-items:center;justify-content:center}.check-large.checked,.task-check:hover{background:var(--accent);border-color:var(--accent)}.task-check{height:28px;width:28px}.priority{font-size:11px;background:var(--surface2);color:var(--sub);border-radius:6px;padding:5px 7px;white-space:nowrap}.quick-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:19px}.quick-grid{display:grid;grid-template-columns:1fr 1fr;padding:8px}.quick-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:transparent;border:0;border-radius:9px;padding:16px;color:var(--sub);font-weight:560;min-height:106px;text-align:left;position:relative}.quick-grid button:hover{background:var(--hover)}.quick-grid button span{color:var(--text);font-size:13px}.quick-grid button>svg:last-child{position:absolute;right:16px;bottom:19px}.ring-layout{display:flex;align-items:center;justify-content:center;gap:22px;padding:6px 0 14px}.ring{height:120px;width:120px;border-radius:50%;flex:none;background:conic-gradient(var(--ring) var(--ring),var(--surface2) 0);background:conic-gradient(var(--accent) var(--ring),var(--surface2) 0);display:grid;place-items:center}.ring>div{border-radius:50%;width:99px;height:99px;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.ring strong{font-size:25px;letter-spacing:-.05em}.ring span{font-size:11px;color:var(--muted)}.ring-value{font-size:24px;font-weight:700;letter-spacing:-.04em;margin:9px 0}.ring-value span{font-size:14px;font-weight:400;color:var(--muted)}.macro-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding-top:18px;margin-top:8px;border-top:1px solid var(--line)}.macro-row>div{display:flex;flex-direction:column;gap:5px}.macro-row b{font-size:15px}.progress{height:7px;background:var(--surface2);border-radius:30px;overflow:hidden}.progress.thin{height:6px}.progress>div{height:100%;background:var(--ring);border-radius:inherit;transition:width .2s}.macro-progress{margin:17px 0 0}.chart-line,.budget-row{margin:0 0 19px}.chart-line:last-child,.budget-row:last-of-type{margin-bottom:0}.chart-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin:0 0 8px}.chart-meta b{font-weight:600}.chart-meta span{color:var(--sub)}.water-big{display:flex;gap:15px;align-items:center;margin:12px 0 24px}.water-icon{width:56px;height:56px;background:var(--surface2);display:flex;align-items:center;justify-content:center;border-radius:16px;color:var(--sub)}.water-big>div{display:flex;flex-direction:column;gap:7px}.water-big b{font-size:28px;letter-spacing:-.05em}.water-big b small{font-size:14px;color:var(--muted);font-weight:400}.water-actions{display:flex;gap:10px;margin-top:26px}.water-actions>*{flex:1}.goal-grid,.vice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.goal-card,.vice-card{padding:22px;min-height:228px}.goal-title,.vice-head{display:flex;align-items:center;justify-content:space-between}.round-icon{display:flex;align-items:center;justify-content:center;width:39px;height:39px;border-radius:12px;background:var(--surface2);color:var(--sub)}.goal-card h3,.vice-card h3{font-size:17px;letter-spacing:-.035em;margin:16px 0 13px}.goal-total{font-size:23px;letter-spacing:-.035em;font-weight:700;margin-bottom:13px}.goal-total span{font-size:13px;font-weight:450;color:var(--muted)}.goal-note{display:flex;justify-content:space-between;margin:12px 0 20px}.goal-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.buy-title{display:flex;flex:1;flex-direction:column;gap:6px;min-width:0}.buy-price{font-weight:650;white-space:nowrap;font-size:13px}.info-line,.info-banner{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--sub);line-height:1.55}.info-line svg,.info-banner svg{flex:none}.info-banner{background:var(--surface2);border-radius:12px;padding:15px;margin-bottom:20px}.calc-layout{display:flex;justify-content:space-between;margin:26px 0 14px;font-size:14px}.calc-layout b{font-size:18px}.vice-card .muted{display:block;margin-bottom:17px}.vice-status{display:flex;gap:9px;align-items:center;margin:16px 0;font-size:13px}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--muted)}.status-dot.clean{background:var(--positive)}.status-dot.slip{background:var(--negative)}.vice-buttons{display:flex;gap:10px;margin-top:24px}.vice-buttons>*{flex:1}.calendar-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}.calendar-card{padding:18px}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr)}.calendar-week span{text-align:center;font-size:11px;color:var(--muted);padding:7px}.calendar-days button{background:transparent;color:var(--text);aspect-ratio:1;border:0;border-radius:10px;position:relative;font-size:13px}.calendar-days button.selected{background:var(--accent);color:var(--accent-text)}.calendar-days button.today:not(.selected){border:1px solid var(--line-strong)}.calendar-days i{display:block;background:var(--muted);height:4px;width:4px;border-radius:50%;position:absolute;bottom:6px;left:calc(50% - 2px)}.calendar-days button.selected i{background:var(--accent-text)}.bars-legend{display:flex;align-items:center;justify-content:flex-end;gap:18px;font-size:12px;color:var(--sub)}.bars-legend span{display:flex;gap:6px;align-items:center}.dot{height:8px;width:8px;display:inline-block;border-radius:3px}.dot.income,.bar.income{background:var(--accent)}.dot.expense,.bar.expense{background:var(--ring)}.bar-chart{display:flex;align-items:stretch;gap:16px;height:250px;padding-top:22px}.bar-group{flex:1;display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0}.bar-pair{flex:1;width:100%;display:flex;gap:4px;align-items:flex-end;justify-content:center;border-bottom:1px solid var(--line)}.bar{width:26%;border-radius:5px 5px 0 0;max-width:23px;min-height:2px;transition:height .3s}.bar-group span{font-size:11px;color:var(--muted)}.advice{white-space:pre-line;line-height:1.8;font-size:14px}.setting-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:21px}.setting-entry>div:first-child{display:flex;flex-direction:column;gap:6px}.setting-entry b{font-size:13px}.setting-switcher{display:flex;gap:9px;align-items:center;color:var(--sub)}.toggle{width:51px;height:31px;border:0;border-radius:22px;background:var(--soft);padding:2px;transition:background .18s}.toggle.on{background:var(--accent)}.toggle span{display:block;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 2px 5px #0002;transition:transform .18s}.toggle.on span{transform:translate(20px)}.settings-form{padding:21px}.setting-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin-bottom:20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field>span{font-size:12px;font-weight:570;color:var(--sub)}.field input,.field select,.field textarea{background:var(--surface2);color:var(--text);border:1px solid var(--line);height:43px;border-radius:9px;padding:0 12px;width:100%;min-width:0}.field textarea{height:auto;min-height:90px;padding:12px;resize:vertical}.field input::placeholder,.field textarea::placeholder{color:var(--muted)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:9px;min-height:182px;padding:28px;color:var(--sub)}.empty-icon{display:grid;place-items:center;height:44px;width:44px;background:var(--surface2);border-radius:12px;margin-bottom:3px}.empty b{font-size:13px;color:var(--text);font-weight:620}.empty span{font-size:12px;color:var(--muted);max-width:260px;line-height:1.5}.auth-screen{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;gap:18px;align-items:center;justify-content:center;padding:24px;text-align:center;color:var(--sub)}.auth-screen h1{font-size:24px;color:var(--text)}.auth-screen p{max-width:340px;line-height:1.6}.spin{animation:spin 1s linear infinite}.modal-backdrop{position:fixed;inset:0;z-index:20;background:#07090f7a;display:flex;align-items:center;justify-content:center;padding:18px;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.modal{background:var(--surface);color:var(--text);width:min(480px,100%);border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 80px #00000038;max-height:min(88dvh,760px);overflow:auto}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:19px 20px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:18px}.modal form{display:flex;flex-direction:column}.form-fields{padding:20px;display:flex;flex-direction:column;gap:17px}.modal-actions{padding:16px 20px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.photo-summary{display:flex;flex-direction:column;gap:15px;padding:20px}.photo-summary h3{font-size:16px}.photo-summary p{color:var(--sub);white-space:pre-line;line-height:1.65}.photo-summary b{font-size:23px}.photo-summary .muted{white-space:normal}.loading-card{background:var(--surface);padding:28px;display:flex;align-items:center;gap:13px;border-radius:14px;font-weight:630}.toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%);z-index:30;border-radius:11px;background:var(--accent);color:var(--accent-text);padding:12px 18px;box-shadow:0 7px 35px #0003;min-width:150px;max-width:calc(100vw - 36px);text-align:center;font-size:13px}.bottom-tabs,.mobile-more{display:none}.hidden{display:none!important}@keyframes fade{0%{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1150px){.sidebar{width:218px}.brand{padding:0 18px}.topbar{padding:0 22px}.main-content{padding:24px 22px 50px}.stats-grid.four{grid-template-columns:repeat(2,1fr)}}@media(max-width:800px){.sidebar{display:none}.main-shell{width:100%}.topbar{height:70px;padding:0 20px}.main-content{padding:23px 18px 95px}.topbar h1{font-size:20px}.topbar-actions{gap:5px}.topbar-avatar{display:none}.stats-grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}.two-col{grid-template-columns:1fr;gap:0}.bottom-tabs{z-index:8;display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--glass);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);border-top:1px solid var(--line);padding:6px 4px calc(env(safe-area-inset-bottom,0px) + 9px)}.bottom-tabs button{border:0;background:transparent;color:var(--muted);flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:5px 0 2px;font-size:10px;font-weight:540}.bottom-tabs button.selected{color:var(--text);font-weight:700}.mobile-more{display:block;position:fixed;inset:70px 0 61px;bottom:calc(61px + env(safe-area-inset-bottom,0px));z-index:5;background:var(--bg);overflow:auto;padding:24px 20px}.mobile-more h2{margin-bottom:20px}.more-grid{display:grid;gap:8px;grid-template-columns:1fr 1fr}.more-grid button{min-height:88px;display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);color:var(--text);padding:14px;border-radius:12px;text-align:left}.more-grid button>svg:last-child{display:none}.toast{bottom:85px}}@media(max-width:520px){.topbar{height:65px;padding:0 16px}.topbar h1{font-size:19px}.topbar-actions .icon-button{width:32px}.main-content{padding:20px 16px 98px}.welcome{align-items:flex-start;flex-direction:column;gap:18px}.welcome h2{font-size:25px}.welcome>.button{width:100%}.stats-grid{gap:10px;margin-bottom:22px}.stat{padding:16px;min-height:152px;gap:8px}.stat b{font-size:20px}.stat-icon{height:32px;width:32px}.stats-grid.three{grid-template-columns:1fr 1fr}.stats-grid.three .stat:first-child{grid-column:span 2;min-height:130px}.section{margin-bottom:24px}.section-heading{margin-bottom:12px}.entry{gap:10px;padding:12px}.entry-icon{width:34px;height:34px;border-radius:9px}.entry-content b{font-size:12.5px}.entry-right .amount{font-size:12px}.page-actions{flex-wrap:wrap;margin-bottom:18px;gap:12px}.page-actions>.action-stack{justify-content:flex-end;width:100%}.page-actions>.muted{flex:1}.page-actions>.button{margin-left:auto}.goal-grid,.vice-grid{grid-template-columns:1fr;gap:12px}.settings-form{padding:16px}.setting-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.card.padded{padding:15px}.ring{height:105px;width:105px}.ring>div{width:86px;height:86px}.ring-layout{gap:15px}.ring-value{font-size:20px}.bar-chart{gap:6px}.task-row,.buy-row{gap:7px}.priority{display:none}.task-row>.icon-button{width:28px}.buy-price{font-size:12px}.modal{border-radius:16px}.modal-actions .button{flex:1}.quick-grid{grid-template-columns:1fr 1fr}}.rate-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:end;margin:20px 0}.rate-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.rate-result{border-radius:10px;background:var(--surface2);padding:15px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}.rate-result span{color:var(--sub);font-size:12px}.rate-result b{font-size:18px;margin-right:auto}.rate-result .button{margin-left:auto}@media(max-width:520px){.rate-grid{grid-template-columns:1fr}.rate-result .button{width:100%;margin-left:0}}.btc-notice{display:flex;align-items:flex-start;gap:12px;padding:16px;margin-bottom:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:13px;line-height:1.5}.btc-error{color:var(--text)}.btc-address{display:flex;align-items:center;justify-content:space-between;gap:16px}.btc-address-copy{display:flex;flex-direction:column;gap:8px;min-width:0}.btc-address code{font-size:12px;line-height:1.6;overflow-wrap:anywhere;color:var(--text)}.btc-rules{display:flex;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.btc-rules>div{display:flex;align-items:center;gap:8px;color:var(--sub);font-size:12px}.btc-allocation{display:grid;grid-template-columns:1fr 1fr;gap:16px}.btc-allocation>div{display:flex;flex-direction:column;gap:8px;border-radius:10px;background:var(--surface2);padding:16px}.btc-allocation b{font-size:15px;line-height:1.45}.btc-allocation+.info-line{margin-top:16px}.btc-item{padding:17px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:12px}.btc-item:last-child{border-bottom:0;padding-bottom:0}.btc-row-top{display:flex;align-items:center;gap:12px;min-width:0}.btc-mark{width:42px;height:42px;display:grid;place-items:center;flex:none;border-radius:12px;background:var(--surface2);color:var(--text)}.btc-primary{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.btc-primary b{font-size:16px}.btc-primary b small{font-size:12px;color:var(--sub);font-weight:500}.btc-status{display:inline-flex;align-items:center;border-radius:8px;background:var(--surface2);padding:7px 9px;color:var(--sub);font-size:11px;white-space:nowrap}.btc-status.done{color:var(--text);font-weight:620}.btc-details{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;color:var(--sub);font-size:12px}.btc-details a{display:inline-flex;align-items:center;gap:4px;color:var(--sub);text-decoration:none}.btc-split{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border-radius:10px;background:var(--surface2);font-size:12px;line-height:1.6}.btc-split span:first-child{color:var(--sub)}.btc-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px}@media(max-width:520px){.btc-address{flex-direction:column;align-items:flex-start}.btc-allocation{grid-template-columns:1fr}.btc-primary b{font-size:14px}.btc-primary b small{display:block;margin-top:4px}.btc-row-top{flex-wrap:wrap}.btc-status{margin-left:54px}.btc-buttons>.button{flex:1;justify-content:center}}:root{--space:8px;--space-2:16px;--radius:12px;--surface-group:var(--surface)}.app-shell{max-width:100vw;overflow-x:clip}.main-content{min-width:0}.card{border-radius:var(--radius)}.button{min-width:0;max-width:100%;min-height:42px;border-radius:11px;padding:0 16px;line-height:20px;white-space:normal;text-align:center}.button>span{min-width:0;margin:0;color:inherit;line-height:inherit}.button.small{min-height:36px;height:auto;padding:7px 12px}.stat{min-width:0}.stats-grid.home-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.ring-layout>div:last-child{min-width:0;flex:1}.ring-layout .ring-value{white-space:normal;overflow-wrap:anywhere;line-height:1.3}.macro-row{grid-template-columns:repeat(3,minmax(0,1fr))}.macro-row>div{min-width:0}.macro-row b{overflow-wrap:anywhere}.nutrition-card{padding:20px}.nutrition-card .ring-layout{justify-content:flex-start}.nutrition-card .quick-row{border-top:1px solid var(--line);padding-top:16px;gap:8px}.nutrition-card .quick-row .button{flex:1;white-space:normal}.food-toolbar .action-stack{justify-content:flex-end}.goal-card .goal-status{font-size:12px;line-height:1.6;color:var(--sub);margin-bottom:16px}.goal-card .goal-status b{color:var(--text)}.goal-mini-history{margin:0 0 16px;border-radius:10px;background:var(--surface2);padding:4px 12px}.goal-mini-history>div{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px}.goal-mini-history>div+div{border-top:1px solid var(--line)}.goal-mini-history span{color:var(--sub)}.goal-mini-history b{font-weight:620}.savings-summary{padding:22px;margin-bottom:24px;display:flex;flex-direction:column;gap:12px}.savings-summary-top,.savings-summary-info{display:flex;justify-content:space-between;align-items:center;gap:12px}.savings-summary-label,.savings-summary-info{font-size:13px;color:var(--sub)}.savings-summary>strong{font-size:32px;letter-spacing:-.045em;font-weight:700;overflow-wrap:anywhere}.savings-summary .progress{width:100%}.savings-home{padding:18px 20px;margin-bottom:16px}.savings-home-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.savings-home-top>div{display:flex;flex-direction:column;gap:6px;min-width:0}.savings-home-top strong{font-size:25px;letter-spacing:-.04em;overflow-wrap:anywhere}.savings-home-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;background:var(--surface2);color:var(--sub);flex:none}.savings-home-list{margin-top:16px;border-top:1px solid var(--line)}.savings-home-item{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;background:none;color:var(--text);border:0;padding:12px 0;text-align:left;align-items:center}.savings-home-item+.savings-home-item{border-top:1px solid var(--line)}.savings-home-item>b{display:inline-flex;gap:6px;align-items:center;font-size:12px;color:var(--sub)}.savings-home-item>.progress{grid-column:1 / -1;width:100%}.savings-home-empty{padding-top:16px;font-size:13px;line-height:1.5;color:var(--sub)}.savings-note{margin:0 0 28px}.privacy-settings .setting-entry{min-height:68px;padding:12px 16px}.privacy-settings .privacy-row+.privacy-row{border-top:1px solid var(--line)}.privacy-description{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}.privacy-description>b{font-size:14px}.privacy-description .muted{font-size:12px}.privacy-row .toggle{flex:none;width:51px;height:31px}.privacy-hint{padding:10px 2px 0;color:var(--muted);font-size:12px;line-height:1.5}.segments{min-height:32px;height:auto;border-radius:9px}.segments button{height:28px;min-height:28px;border-radius:7px}@media(max-width:1190px){.stats-grid.home-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:800px){.stats-grid.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-tabs{padding-top:8px;padding-bottom:calc(env(safe-area-inset-bottom,0px) + 6px);justify-content:space-between}.bottom-tabs button{gap:4px;line-height:13px;font-size:10px;padding:3px 0 2px;min-height:47px}.bottom-tabs button svg{width:28px;height:28px}.section-heading{align-items:center;flex-wrap:wrap}.section-heading .text-link{margin-left:auto}.main-content .two-col{gap:0}}@media(max-width:520px){.main-content{padding:20px 14px 110px}.topbar{padding:0 14px}.topbar-actions{gap:2px}.welcome{gap:16px;margin-bottom:24px}.welcome>.button{width:100%;min-height:44px}.stats-grid{gap:10px;margin-bottom:24px}.stats-grid.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:136px;padding:14px;gap:8px}.stat b{font-size:20px;white-space:normal;overflow:visible;overflow-wrap:anywhere;line-height:1.25}.stat small{line-height:1.4}.page-actions.food-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:10px}.food-toolbar .date-input{width:150px;max-width:100%}.food-toolbar .action-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}.food-toolbar .action-stack .button{width:100%;min-height:42px;padding:0 10px}.page-actions.finance-toolbar .action-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}.finance-toolbar .action-stack .button{width:100%;padding:0 10px}.finance-toolbar .action-stack .button:first-child{grid-column:1 / -1}.ring-layout{display:grid;grid-template-columns:104px minmax(0,1fr);justify-content:initial;gap:16px;padding:4px 0 16px}.ring{height:104px;width:104px}.ring>div{height:85px;width:85px}.ring strong{font-size:24px}.ring-value{font-size:20px;margin:6px 0}.ring-value span{font-size:13px}.nutrition-card{padding:16px}.nutrition-card .ring-layout{grid-template-columns:104px minmax(0,1fr)}.nutrition-card .macro-row{gap:8px;margin-top:0;padding-top:16px}.nutrition-card .macro-row b{font-size:14px}.nutrition-card .quick-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.nutrition-card .quick-row .button{width:100%;padding:0 8px;font-size:12px}.section{min-width:0;margin-bottom:24px}.goal-grid{grid-template-columns:minmax(0,1fr)}.goal-card{padding:18px;min-width:0}.goal-total{font-size:22px;overflow-wrap:anywhere;line-height:1.3}.goal-note{gap:12px;flex-wrap:wrap}.goal-buttons .button{flex:1}.savings-summary{padding:18px}.savings-summary>strong{font-size:28px}.savings-home{padding:16px}.setting-entry .entry-icon{flex:none}.modal-actions{padding:12px 14px;gap:8px}.modal-actions .button{min-width:0}.card.padded{padding:16px}.entry{min-width:0}.entry-right{min-width:0;max-width:45%;white-space:normal;text-align:right;overflow-wrap:anywhere}}@media(max-width:350px){.ring-layout,.nutrition-card .ring-layout{grid-template-columns:86px minmax(0,1fr);gap:10px}.ring,.nutrition-card .ring{width:86px;height:86px}.ring>div{width:70px;height:70px}.ring-value{font-size:18px}.button{font-size:12px;padding:0 10px}.stat{padding:12px}}.check-large{border:1px solid var(--line-strong);background:var(--surface2);border-radius:7px;display:grid;place-items:center;flex:none}.check-large.checked{background:var(--surface2);border-color:var(--line-strong)}.check-large img{width:20px;height:20px;filter:grayscale(1);display:block}.entry{gap:16px;min-height:68px}.entry-icon{height:28px;width:28px;border-radius:8px}.entry-icon svg{height:22px;width:22px}.entry-content b{font-size:15px;line-height:20px;letter-spacing:-.23px}.entry-content span{font-size:13px;line-height:17px}@media(max-width:520px){.entry{gap:12px;padding:12px 14px}.entry-content b{font-size:14px}.entry-content span{font-size:12px}}.task-check img{display:block;width:20px;height:20px}
