/* BudgetBot V30 generated style bundle. Source files remain separate for review/rollback. */
/* ---- styles.css ---- */
:root{
  --bg:#090d14;--bg-2:#0b111a;--panel:#111824;--panel-2:#171f2d;--panel-3:#1b2636;
  --line:rgba(141,153,170,.18);--text:#f5f7fa;--muted:#8d99aa;--muted-2:#b1bac7;
  --cyan:#4e8cff;--green:#37d39a;--yellow:#f4b95f;--red:#ff667a;
  --shadow:0 18px 50px rgba(0,0,0,.20);--radius:20px;
  --safe-top:max(16px,env(safe-area-inset-top));--safe-bottom:max(12px,env(safe-area-inset-bottom));
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Inter","Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}body{min-width:320px;background:linear-gradient(180deg,#090d14,#0a0f17)}button,input,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid rgba(78,140,255,.72);outline-offset:2px}[hidden]{display:none!important}.app-shell{min-height:100dvh;padding-bottom:calc(94px + var(--safe-bottom))}
.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:flex-end;justify-content:space-between;padding:calc(var(--safe-top) + 8px) 20px 14px;background:linear-gradient(180deg,rgba(9,13,20,.99),rgba(9,13,20,.90) 76%,rgba(9,13,20,0));backdrop-filter:blur(18px)}.eyebrow{font-size:11px;letter-spacing:.08em;font-weight:700;color:var(--muted)}.topbar h1{font-size:30px;line-height:1.05;margin:8px 0 0;letter-spacing:-.045em}.icon-button{width:44px;height:44px;border-radius:15px;border:1px solid var(--line);background:rgba(255,255,255,.035);font-size:20px;cursor:pointer}.content{width:min(100%,620px);margin:0 auto;padding:8px 20px 30px}.stack{display:grid;gap:14px}
.panel,.state-card,.risk-card,.feature-card{border:1px solid var(--line);background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:18px}.state-card{display:flex;gap:12px;align-items:center;padding:18px;margin-top:18px}.state-card b{display:block;font-size:14px}.state-card small{display:block;margin-top:4px;color:var(--muted)}.spinner{width:22px;height:22px;border:2px solid rgba(255,255,255,.12);border-top-color:var(--cyan);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:2px 1px 12px}.section-head h2{font-size:17px;margin:0;letter-spacing:-.02em}.section-head small{color:var(--muted);font-size:11px}
.hero{padding:22px;background:linear-gradient(155deg,#141d2a,#101722 72%);border-radius:28px}.hero-label{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--muted);text-transform:uppercase}.hero-value{font-size:46px;line-height:1;margin:13px 0 9px;font-weight:760;letter-spacing:-.06em}.hero-note{color:var(--muted);font-size:13px;line-height:1.45}.progress{height:7px;margin-top:20px;border-radius:99px;background:var(--panel-2);overflow:hidden}.progress>i{display:block;height:100%;border-radius:inherit;background:var(--green);width:0}.progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:9px;font-size:11px;color:var(--muted)}
.metric-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{min-height:88px;text-align:left;padding:15px;border:1px solid var(--line);border-radius:20px;background:var(--panel);cursor:pointer}.metric:first-child{border-color:rgba(55,211,154,.22)}.metric small{display:block;color:var(--muted);font-size:11px;line-height:1.2}.metric b{display:block;margin-top:9px;font-size:18px;line-height:1.08;letter-spacing:-.03em}.metric:first-child b{color:var(--green)}.metric em{display:block;margin-top:6px;color:var(--muted);font-size:10px;font-style:normal}
.status-line{display:flex;align-items:center;gap:9px}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px rgba(55,211,154,.08)}.status-dot.warn{background:var(--yellow);box-shadow:0 0 0 6px rgba(244,185,95,.08)}.status-dot.bad{background:var(--red);box-shadow:0 0 0 6px rgba(255,102,122,.08)}.status-copy b{font-size:14px}.status-copy small{display:block;color:var(--muted);margin-top:3px;font-size:11px;line-height:1.35}.risk-card{padding:17px;border-color:rgba(255,102,122,.22);background:#17141c}.risk-card.good{border-color:rgba(55,211,154,.18);background:#111d1b}.risk-row{display:flex;justify-content:space-between;align-items:center;gap:14px}.risk-value{font-size:21px;font-weight:750;letter-spacing:-.03em}.bad-text{color:var(--red)}.good-text{color:var(--green)}
.timeline{display:grid;gap:0}.timeline-row{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;min-height:58px;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left}.timeline-row:last-child{border-bottom:0}.timeline-row time{font-size:11px;color:var(--muted)}.timeline-row b{font-size:13px;font-weight:620;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-row strong{font-size:13px}.timeline-row .income{color:var(--green)}
.chart-card{padding:18px}.chart-shell{height:170px;display:flex;align-items:flex-end;gap:7px;padding:10px 1px 4px}.bar-wrap{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;min-width:0}.bar{width:100%;min-height:3px;border-radius:8px 8px 3px 3px;background:var(--cyan);opacity:.88}.bar-label{font-size:8px;text-align:center;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chart-legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:8px;color:var(--muted);font-size:10px}.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--cyan);margin-right:5px}.legend-dot.plan{background:var(--green)}.donut-wrap{display:grid;grid-template-columns:130px 1fr;align-items:center;gap:18px}.donut{width:126px;height:126px;border-radius:50%;display:grid;place-items:center;position:relative}.donut:after{content:"";width:78px;height:78px;border-radius:50%;background:var(--panel);position:absolute}.donut-center{position:relative;z-index:1;text-align:center}.donut-center b{font-size:14px}.donut-center small{display:block;color:var(--muted);font-size:8px;margin-top:2px}.category-list{display:grid;gap:10px}.category-item{display:grid;grid-template-columns:8px 1fr auto;gap:8px;align-items:center}.category-item i{width:8px;height:8px;border-radius:50%;background:var(--cyan)}.category-item:nth-child(2) i{background:var(--green)}.category-item:nth-child(3) i{background:var(--yellow)}.category-item:nth-child(4) i{background:#8f7cff}.category-item span{font-size:11px;color:var(--muted)}.category-item b{font-size:11px}
.list{display:grid;gap:8px}.list-button,.feature-card{width:100%;padding:16px;border-radius:18px;border:1px solid var(--line);background:var(--panel-2);text-align:left}.list-button{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;cursor:pointer}.list-icon{width:38px;height:38px;border-radius:13px;background:rgba(78,140,255,.10);display:grid;place-items:center;color:var(--cyan)}.list-button b{display:block;font-size:13px}.list-button small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.list-button strong{font-size:13px}.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.feature-card{min-height:126px;cursor:pointer}.feature-card .badge{display:inline-flex;border:1px solid var(--line);padding:4px 7px;border-radius:999px;font-size:8px;color:var(--muted)}.feature-card h3{font-size:15px;margin:16px 0 5px}.feature-card p{font-size:11px;color:var(--muted);line-height:1.4;margin:0}
.button-row{display:flex;gap:8px;margin-top:14px}.primary,.secondary,.ghost{min-height:46px;border-radius:16px;padding:12px 15px;border:1px solid var(--line);font-weight:700;font-size:12px;cursor:pointer}.primary{background:var(--cyan);border-color:transparent;color:#fff}.secondary{background:var(--panel-2)}.ghost{background:transparent;color:var(--muted-2)}.primary:disabled,.secondary:disabled{opacity:.42;cursor:not-allowed}.empty{padding:24px;text-align:center;color:var(--muted);font-size:12px}.error-card{border:1px solid rgba(255,102,122,.25);background:#21141a;padding:18px;border-radius:18px}.error-card b{font-size:14px}.error-card p{font-size:12px;color:#c9a9ae;line-height:1.5;margin:7px 0 0}
.calc-list{display:grid;gap:10px;margin-top:18px;border:0;padding:0;background:transparent}.calc-row{display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:72px;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--panel-2)}.calc-row:first-child{border-top:1px solid var(--line)}.calc-row span{font-size:13px;line-height:1.3;color:var(--muted)}.calc-row b{font-size:17px;line-height:1.2;text-align:right;letter-spacing:-.02em}.source-note{margin-top:14px;padding:14px 15px;border-radius:16px;background:rgba(78,140,255,.07);color:var(--muted);font-size:12px;line-height:1.5}.source-note code{color:var(--cyan)}
.bottom-nav{position:fixed;z-index:30;left:50%;bottom:calc(10px + var(--safe-bottom));transform:translateX(-50%);width:min(calc(100% - 24px),590px);height:68px;padding:6px;display:grid;grid-template-columns:repeat(4,1fr);gap:4px;border:1px solid var(--line);border-radius:22px;background:rgba(17,24,36,.94);backdrop-filter:blur(22px);box-shadow:0 16px 50px rgba(0,0,0,.38)}.bottom-nav button{border:0;border-radius:16px;background:transparent;color:var(--muted);display:grid;place-items:center;align-content:center;gap:3px;cursor:pointer}.bottom-nav button span{font-size:17px;line-height:1}.bottom-nav button small{font-size:10px;font-weight:650}.bottom-nav button.active{background:rgba(78,140,255,.10);color:var(--cyan)}
.overlay{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.62);backdrop-filter:blur(7px);display:flex;align-items:flex-end;justify-content:center}.sheet{width:min(100%,620px);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-bottom:0;border-radius:30px 30px 0 0;background:var(--panel);padding:12px 20px calc(28px + var(--safe-bottom));box-shadow:0 -28px 80px rgba(0,0,0,.48)}.sheet:before{content:"";display:block;width:58px;height:5px;border-radius:999px;background:rgba(141,153,170,.55);margin:0 auto 20px}.handle{display:none}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.sheet-head h2,.sheet-head h3{font-size:26px;line-height:1.1;margin:0;letter-spacing:-.04em}.sheet-head small{font-size:12px}.close{width:48px;height:48px;flex:0 0 48px;border-radius:16px;border:1px solid var(--line);background:var(--panel-2);font-size:26px;line-height:1}.sheet .panel{box-shadow:none;padding:18px;border-radius:20px;background:var(--panel-2)}.sheet .primary,.sheet .secondary,.sheet .ghost{min-height:52px;font-size:14px;padding:14px 16px;border-radius:17px}.sheet .empty{font-size:14px;padding:28px 18px}.toast{position:fixed;z-index:90;left:50%;bottom:calc(94px + var(--safe-bottom));transform:translate(-50%,18px);opacity:0;pointer-events:none;max-width:min(90vw,520px);padding:11px 14px;border:1px solid var(--line);border-radius:14px;background:var(--panel-2);color:var(--text);font-size:11px;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:390px){.content{padding-left:16px;padding-right:16px}.topbar{padding-left:16px;padding-right:16px}.hero-value{font-size:42px}.metric b{font-size:16px}.donut-wrap{grid-template-columns:112px 1fr}.donut{width:108px;height:108px}.feature-card{padding:14px}.sheet{padding-left:18px;padding-right:18px}.sheet-head h2,.sheet-head h3{font-size:24px}.calc-row span{font-size:13px}.calc-row b{font-size:16px}}


/* ---- components.css ---- */
.quick-actions{margin-top:12px;padding:16px}.quick-actions h2{margin:0 0 12px;font-size:15px}.quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.quick-action{min-height:76px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.028);display:grid;place-items:center;align-content:center;gap:6px;padding:10px;cursor:pointer}.quick-action span{font-size:21px;line-height:1}.quick-action b{font-size:10px}.quick-action.expense span{color:var(--red)}.quick-action.income span{color:var(--green)}.quick-action.transfer span,.quick-action.accounts span{color:var(--cyan)}.quick-action.goal span{color:var(--yellow)}.quick-action.obligation span{color:#8f7cff}
.category-budget-panel{padding:16px;overflow:hidden}.category-budget-panel .section-head{align-items:center}.category-budget-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 14px}.cb-summary-card{padding:12px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025)}.cb-summary-card span{display:block;font-size:9px;color:var(--muted);line-height:1.2}.cb-summary-card b{display:block;margin-top:6px;font-size:13px;letter-spacing:-.02em}.cb-summary-card.attention b{color:var(--yellow)}.cb-list{display:grid;gap:9px}.cb-card{width:100%;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,rgba(255,255,255,.035),rgba(255,255,255,.018));padding:14px;text-align:left;cursor:pointer}.cb-card.over{border-color:rgba(255,107,120,.2)}.cb-card.warning{border-color:rgba(255,196,93,.17)}.cb-card-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}.cb-title{min-width:0}.cb-title b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cb-title small{display:block;margin-top:3px;font-size:9px;color:var(--muted)}.cb-status{font-size:8px;font-weight:800;padding:5px 7px;border-radius:999px;background:rgba(73,223,154,.08);color:var(--green)}.cb-card.over .cb-status{background:rgba(255,107,120,.09);color:var(--red)}.cb-card.warning .cb-status{background:rgba(255,196,93,.09);color:var(--yellow)}.cb-money{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end;margin-top:12px}.cb-money span{font-size:9px;color:var(--muted)}.cb-money strong{font-size:12px}.cb-progress{height:6px;border-radius:999px;background:rgba(255,255,255,.055);overflow:hidden;margin-top:8px}.cb-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),var(--green));max-width:100%}.cb-card.warning .cb-progress i{background:linear-gradient(90deg,var(--yellow),#ff9f5d)}.cb-card.over .cb-progress i{background:linear-gradient(90deg,var(--red),#ff9c78)}.cb-card-foot{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:9px;color:var(--muted)}.cb-expand{width:100%;margin-top:11px;border:1px solid var(--line);border-radius:14px;padding:10px;background:transparent;color:var(--muted-2);font-size:9px;font-weight:700}.cb-editor-hero{padding:15px;border:1px solid var(--line);border-radius:18px;background:radial-gradient(circle at 90% 0%,rgba(93,216,255,.12),transparent 42%),rgba(255,255,255,.025)}.cb-editor-hero small{font-size:9px;color:var(--muted)}.cb-editor-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:11px}.cb-editor-stat{padding:10px;border-radius:13px;background:rgba(255,255,255,.027)}.cb-editor-stat span{display:block;font-size:8px;color:var(--muted)}.cb-editor-stat b{display:block;margin-top:5px;font-size:10px}.cb-scope{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.cb-scope button{border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.025);padding:10px;font-size:9px;font-weight:700;color:var(--muted-2)}.cb-scope button.active{background:rgba(93,216,255,.1);border-color:rgba(93,216,255,.26);color:var(--cyan)}.cb-preview{margin-top:13px;padding:13px;border:1px solid rgba(93,216,255,.13);border-radius:16px;background:rgba(93,216,255,.045)}.cb-preview-title{display:flex;justify-content:space-between;gap:10px;align-items:center}.cb-preview-title b{font-size:11px}.cb-preview-title span{font-size:8px;color:var(--cyan)}.cb-compare{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center;margin-top:11px}.cb-compare div{padding:10px;border-radius:13px;background:rgba(255,255,255,.025)}.cb-compare small{display:block;font-size:8px;color:var(--muted)}.cb-compare b{display:block;margin-top:4px;font-size:11px}.cb-impact{display:grid;gap:0;margin-top:9px}.cb-impact-row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line);font-size:9px}.cb-impact-row span{color:var(--muted)}.cb-impact-row b{font-size:9px;text-align:right}
.sheet:has(.v7p-cat-tabs){overflow-x:hidden;overflow-y:auto}.v7p-cat-tabs{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;overflow-y:hidden;max-width:100%;min-width:0;margin:0 0 14px;padding:0 0 2px;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.v7p-cat-tabs::-webkit-scrollbar{display:none}.v7p-cat-tab{flex:0 0 auto;white-space:nowrap;border:1px solid var(--line);background:var(--panel-2);color:var(--muted-2);border-radius:999px;padding:8px 12px;font-size:13px;font-weight:700;line-height:1;cursor:pointer}.v7p-cat-tab.active{background:rgba(93,216,255,.12);border-color:rgba(93,216,255,.32);color:var(--cyan)}.v7p-cat-section{display:grid;gap:8px;margin:0 0 14px}.v7p-cat-section:last-child{margin-bottom:0}.v7p-cat-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:2px 2px 0}.v7p-cat-section-head b{font-size:13px;letter-spacing:-.02em}.v7p-cat-section-head small{color:var(--muted);font-size:11px;font-weight:700}
.v7p-cat-list{display:grid;gap:8px;min-width:0}.v7p-cat-list:has(.v7p-cat-section){gap:0}.v7p-cat-card{width:100%;border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:16px;padding:12px 14px;text-align:left;cursor:pointer}.v7p-cat-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}.v7p-cat-head b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;line-height:1.25}.v7p-cat-head strong{font-size:12px;font-weight:800;white-space:nowrap;text-align:right;line-height:1.25}.v7p-cat-card small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v7p-cat-card em{display:block;margin-top:8px;font-style:normal;font-size:12px;color:var(--muted-2);line-height:1.3}.v7p-cat-progress{height:5px;border-radius:999px;background:rgba(255,255,255,.055);overflow:hidden;margin-top:8px}.v7p-cat-progress i{display:block;height:100%;max-width:100%;border-radius:inherit;background:linear-gradient(90deg,var(--cyan),var(--green))}.v7p-cat-card.overspent{border-color:rgba(255,107,120,.22)}.v7p-cat-card.overspent .v7p-cat-head strong{color:var(--red)}.v7p-cat-card.overspent .v7p-cat-progress i{background:linear-gradient(90deg,var(--red),#ff9c78)}.v7p-cat-card.unplanned{border-color:rgba(255,196,93,.2)}.v7p-cat-card.unplanned .v7p-cat-head strong{color:var(--yellow)}.v7p-cat-progress.unplanned{background:rgba(255,196,93,.12)}.v7p-cat-progress.unplanned i{width:100%;background:repeating-linear-gradient(90deg,rgba(255,196,93,.4),rgba(255,196,93,.4) 5px,transparent 5px,transparent 9px)}.v7p-cat-card.empty .v7p-cat-head strong{color:var(--muted)}.v7p-cat-card.unmanaged{padding:11px 14px}.v7p-cat-card.unmanaged em{margin-top:6px;color:var(--muted);font-size:11px}
.v7p-hub,.v7p-list{display:grid;gap:10px}.v7p-hub-button,.v7p-row{width:100%;border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:16px;padding:14px;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;text-align:left}.v7p-hub-button span,.v7p-row>span{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:rgba(106,224,255,.09);font-size:17px}.v7p-hub-button b,.v7p-row b{display:block;font-size:15px}.v7p-hub-button small,.v7p-row small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.35}.v7p-hub-button em,.v7p-row em{font-style:normal;color:var(--muted);font-size:20px}.v7p-row strong{font-size:13px;white-space:nowrap}.v7p-field{display:grid;gap:7px;margin:12px 0}.v7p-field label{color:var(--muted);font-size:12px;font-weight:700}.v7p-field input,.v7p-field select,.v7p-field textarea,.v7p-reconcile input,.v7p-chat-send textarea{width:100%;box-sizing:border-box;border:1px solid var(--line);background:#08151f;color:var(--text);border-radius:13px;padding:12px 13px;font:inherit;outline:none}.v7p-field input:focus,.v7p-field select:focus,.v7p-field textarea:focus,.v7p-reconcile input:focus,.v7p-chat-send textarea:focus{border-color:var(--cyan)}.v7p-two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.v7p-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.v7p-actions button{flex:1 1 140px}.v7p-actions .danger,.danger{background:rgba(255,90,100,.12);border:1px solid rgba(255,90,100,.28);color:#ff9aa2;border-radius:14px;padding:11px 14px}.v7p-note{border:1px solid var(--line);background:rgba(106,224,255,.05);border-radius:14px;padding:12px 13px;color:var(--muted-2);font-size:13px;line-height:1.5;margin:10px 0}.v7p-note b{color:var(--text)}.v7p-reconcile{display:grid;grid-template-columns:1fr 130px;align-items:center;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.v7p-reconcile b,.v7p-reconcile small{display:block}.v7p-reconcile small{color:var(--muted);margin-top:3px}.v7p-plan-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v7p-plan-actions button{border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:13px;padding:12px;font-weight:700}.v7p-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.v7p-health-grid>div{background:#08151f;border-radius:12px;padding:10px}.v7p-health-grid span{display:block;color:var(--muted);font-size:11px}.v7p-health-grid b{display:block;margin-top:5px;font-size:17px}.v7p-statement-list{display:grid;gap:8px;max-height:48vh;overflow:auto;margin-top:10px}.v7p-statement-row{display:grid;grid-template-columns:auto 1fr;gap:9px;align-items:start;border:1px solid var(--line);border-radius:13px;padding:10px;background:#08151f}.v7p-statement-row span b,.v7p-statement-row span small{display:block}.v7p-statement-row small{color:var(--muted);margin-top:4px}.v7p-chat{min-height:260px;max-height:54vh;overflow:auto;display:flex;flex-direction:column;gap:9px;padding:4px 0 12px}.v7p-msg{max-width:88%;padding:10px 12px;border-radius:14px;white-space:pre-wrap;line-height:1.4}.v7p-msg.user{align-self:flex-end;background:rgba(101,223,255,.15);border:1px solid rgba(101,223,255,.22)}.v7p-msg.assistant{align-self:flex-start;background:#0d1a24;border:1px solid var(--line)}.v7p-msg.error{color:#ff9aa2}.v7p-chat-send{display:grid;grid-template-columns:1fr 50px;gap:8px;align-items:end}.v7p-chat-send button{height:46px;padding:0}.v7e-proposals{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px;white-space:normal}.v7e-proposals button{padding:8px 10px;font-size:12px}.v7e-check{display:flex;align-items:center;gap:9px;color:var(--muted-2);font-size:13px;margin:12px 0}.v7e-check input{width:18px;height:18px}.v7e-warn{color:#ffc76b}
.notification-feature{position:relative}.unreadBadge{position:absolute;top:10px;right:10px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:var(--red);color:#fff;font-size:10px;font-weight:900;line-height:1;box-shadow:0 0 0 3px rgba(255,107,120,.1)}.nav-more{position:relative}.noticeUnreadDot{position:absolute;top:5px;left:calc(50% + 9px);min-width:16px;height:16px;padding:0 4px;border-radius:999px;background:var(--red);color:#fff;font-style:normal;font-size:8px;font-weight:900;line-height:16px;text-align:center;box-shadow:0 0 0 2px #071018}.noticeUnreadDot[hidden],.unreadBadge[hidden]{display:none!important}
@media(max-width:430px){.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-budget-summary{grid-template-columns:1fr 1fr}.cb-summary-card:last-child{grid-column:1/-1}.cb-editor-stats{grid-template-columns:1fr 1fr}.cb-editor-stat:last-child{grid-column:1/-1}.v7p-two{grid-template-columns:1fr}.v7p-reconcile{grid-template-columns:1fr 110px}.v7p-plan-actions{grid-template-columns:1fr 1fr}.v7e-proposals button{flex:1 1 100%}}


/* ---- home-v27-premium.css ---- */
/* BudgetBot Home V27 — strict Premium Figma implementation
   Source of truth: Figma ciFFpwY55jwpxZpcT2jXR4 / node 43:2
   The 390px Figma coordinate system is uniformly scaled as a whole. */

body:has(.pv27-home){background:#06111a;color:#eef6fb}
.app-shell:has(.pv27-home){background:#06111a;min-height:100dvh;padding-bottom:0}
.app-shell:has(.pv27-home) .topbar{display:none!important}
.app-shell:has(.pv27-home) .content{width:100vw;max-width:none;margin:0;padding:0;background:#06111a;overflow:visible}

.pv27-home{width:100vw;min-height:100%;background:#06111a;overflow:visible}
.pv27-stage{width:390px;min-height:700px;margin:0;padding:12px 16px 98px;box-sizing:border-box;background:#06111a;color:#eef6fb;font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;transform-origin:top left}
.pv27-stage *{box-sizing:border-box}
.pv27-stage button,.pv27-stage summary{font:inherit;color:inherit}
.pv27-stage button{cursor:pointer}

.pv27-screen-head{height:50px;margin:0;padding:0}
.pv27-screen-head h1{margin:0;width:300px;height:32px;font-size:27px;line-height:32px;letter-spacing:-.025em;font-weight:700;color:#eef6fb}
.pv27-screen-head p{margin:-2px 0 0;width:300px;height:12px;font-size:10px;line-height:12px;font-weight:400;color:#7891a2}

.pv27-state{position:relative;width:358px;height:58px;margin:0 0 12px;border:1px solid #1d3a4b;border-radius:14px;background:#0b201d;overflow:hidden}
.pv27-state.bad{background:#24171b;border-color:#5d3038}
.pv27-state-dot{position:absolute;left:14px;top:20px;width:9px;height:9px;border-radius:50%;background:#2bd597}
.pv27-state.bad .pv27-state-dot{background:#ff5a67}
.pv27-state>b{position:absolute;left:34px;top:11px;width:190px;font-size:10px;line-height:12px;font-weight:600;color:#eef6fb}
.pv27-state>small{position:absolute;left:34px;top:29px;width:190px;font-size:8px;line-height:10px;font-weight:400;color:#7891a2}
.pv27-state>strong{position:absolute;right:16px;top:19px;width:82px;font-size:9px;line-height:11px;font-weight:700;color:#2bd597;text-align:right;white-space:nowrap}
.pv27-state.bad>strong{color:#ff8893}

.pv27-today{position:relative;width:358px;height:104px;margin:0 0 12px;border:1px solid #1d3a4b;border-radius:14px;background:#0c1d28;overflow:hidden}
.pv27-today-label{position:absolute;left:14px;top:14px;width:160px;font-size:10px;line-height:12px;font-weight:400;color:#7891a2}
.pv27-today-value{position:absolute;left:14px;top:38px;width:180px;font-size:31px;line-height:37px;font-weight:700;letter-spacing:-.03em;color:#eef6fb;white-space:nowrap}
.pv27-tomorrow-label{position:absolute;right:14px;top:14px;width:108px;font-size:8px;line-height:10px;font-weight:400;text-align:right;color:#7891a2}
.pv27-tomorrow-value{position:absolute;right:14px;top:30px;width:120px;font-size:11px;line-height:13px;font-weight:600;text-align:right;color:#9fc9ff;white-space:nowrap}
.pv27-progress{position:absolute;left:14px;top:78px;width:320px;height:5px;border-radius:999px;background:#142c3a;overflow:hidden}
.pv27-progress i{display:block;height:5px;border-radius:999px;background:#2f86ff}
.pv27-plan-copy{position:absolute;left:14px;top:88px;width:170px;font-size:8px;line-height:10px;color:#7891a2}
.pv27-percent{position:absolute;right:14px;top:88px;width:42px;font-size:8px;line-height:10px;font-weight:600;text-align:right;color:#7891a2}

.pv27-quick{width:358px;margin:0 0 12px}
.pv27-quick h2{height:14px;margin:0 0 8px;font-size:11px;line-height:14px;font-weight:600;color:#eef6fb}
.pv27-quick-grid{display:grid;grid-template-columns:repeat(5,64px);gap:8px;width:352px}
.pv27-quick-grid button{width:64px;height:58px;padding:0;border:1px solid #244a60;border-radius:12px;background:#0c2635;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-shadow:none}
.pv27-quick-grid button span{width:64px;height:26px;margin-top:7px;display:grid;place-items:center;font-size:16px;line-height:19px;font-weight:600;color:#2f86ff}
.pv27-quick-grid button span.expense{color:#ff5a67}
.pv27-quick-grid button span.income{color:#2bd597}
.pv27-quick-grid button b{width:64px;margin-top:0;font-size:8px;line-height:10px;font-weight:500;text-align:center;color:#7891a2}

.pv27-accordion{width:358px;margin:0 0 12px;border:1px solid #1d3a4b;border-radius:14px;background:#0c1d28;overflow:hidden}
.pv27-accordion>summary{position:relative;display:block;width:100%;height:58px;padding:0;list-style:none;cursor:pointer;background:transparent;user-select:none}
.pv27-accordion>summary::-webkit-details-marker{display:none}
.pv27-vacation{background:#0c1e2c}
.pv27-vacation>summary{height:68px}
.pv27-summary-icon{position:absolute;left:14px;top:15px;width:28px;height:28px;border:1px solid #244a60;border-radius:50%;display:grid;place-items:center;background:#0c2635;color:#2f86ff;font-size:12px;line-height:1;font-weight:600}
.pv27-vacation .pv27-summary-icon{top:20px}
.pv27-summary-copy{position:absolute;left:54px;top:9px;right:112px;min-width:0;display:flex;flex-direction:column}
.pv27-summary-copy em{font-style:normal;font-size:10px;line-height:12px;font-weight:600;color:#9fc9ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv27-summary-copy>b{margin-top:5px;font-size:12px;line-height:14px;font-weight:600;color:#eef6fb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv27-summary-copy>small{margin-top:4px;font-size:8px;line-height:10px;font-weight:400;color:#7891a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv27-money .pv27-summary-copy>b{font-size:17px;line-height:20px;font-weight:700;margin-top:3px}
.pv27-inline-note{position:absolute;left:179px;top:31px;width:70px;font-size:8px;line-height:10px;color:#7891a2}
.pv27-chevron{position:absolute;right:15px;top:18px;width:20px;font-size:16px;line-height:18px;font-weight:600;text-align:center;color:#2f86ff;transition:transform .14s ease}
.pv27-vacation .pv27-chevron{top:23px}
.pv27-accordion[open] .pv27-chevron{transform:rotate(180deg)}
.pv27-vac-budget{position:absolute;right:49px;top:13px;width:72px;display:flex;flex-direction:column;align-items:flex-start}
.pv27-vac-budget small{font-size:8px;line-height:10px;color:#7891a2}
.pv27-vac-budget b{margin-top:6px;font-size:11px;line-height:13px;font-weight:600;color:#2bd597;white-space:nowrap}
.pv27-side-note{position:absolute;right:49px;top:29px;max-width:118px;font-size:8px;line-height:10px;font-weight:400;text-align:right;color:#7891a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv27-last-amount{position:absolute;right:49px;top:29px;width:72px;font-size:9px;line-height:11px;font-weight:600;text-align:right;color:#eef6fb;white-space:nowrap}

.pv27-panel-body{padding:0 14px 14px;border-top:1px solid rgba(29,58,75,.65);background:#091923}
.pv27-account-list{padding-top:8px}
.pv27-account{width:100%;min-height:46px;padding:7px 0;border:0;border-bottom:1px solid rgba(29,58,75,.65);background:transparent;display:grid;grid-template-columns:30px minmax(0,1fr) auto 12px;gap:9px;align-items:center;text-align:left}
.pv27-account:last-child{border-bottom:0}
.pv27-account-icon{width:30px;height:30px;border:1px solid #244a60;border-radius:9px;display:grid;place-items:center;background:#0c2635;color:#2f86ff;font-size:11px;font-weight:700}
.pv27-account-name{min-width:0;display:flex;flex-direction:column}
.pv27-account-name b{font-size:9px;line-height:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pv27-account-name small{margin-top:2px;font-size:7px;line-height:9px;color:#7891a2}
.pv27-account strong{font-size:9px;line-height:11px;font-weight:600;white-space:nowrap}
.pv27-account i{font-style:normal;color:#2f86ff;font-size:16px}
.pv27-vac-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:9px}
.pv27-vac-meta span{min-height:34px;padding:7px 8px;border:1px solid #1d3a4b;border-radius:9px;background:#0c1d28;display:flex;align-items:center;font-size:8px;line-height:10px;color:#7891a2}
.pv27-link{width:100%;height:32px;margin-top:8px;padding:0 9px;border:1px solid #244a60;border-radius:9px;background:#0c2635;display:flex;align-items:center;justify-content:space-between;font-size:8px;font-weight:600;color:#a9c6d8}
.pv27-link i{font-style:normal;font-size:15px;color:#2f86ff}
.pv27-body-note{display:block;padding-top:9px;font-size:8px;line-height:10px;color:#7891a2}
.pv27-timeline{padding-top:5px}
.pv27-timeline>div{min-height:34px;border-bottom:1px solid rgba(29,58,75,.65);display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:7px;align-items:center}
.pv27-timeline>div:last-child{border-bottom:0}
.pv27-timeline time{font-size:7px;color:#7891a2}.pv27-timeline b,.pv27-timeline strong{font-size:8px;font-weight:600}.pv27-timeline strong{white-space:nowrap}
.pv27-operation{width:100%;min-height:42px;padding:7px 0;border:0;border-bottom:1px solid rgba(29,58,75,.65);background:transparent;display:flex;align-items:center;justify-content:space-between;text-align:left}
.pv27-operation:last-child{border-bottom:0}
.pv27-operation span{display:flex;flex-direction:column}.pv27-operation span b{font-size:9px;line-height:11px}.pv27-operation span small{margin-top:2px;font-size:7px;line-height:9px;color:#7891a2}.pv27-operation strong{font-size:9px;line-height:11px;white-space:nowrap}
.pv27-empty{padding:10px 0;font-size:8px;line-height:10px;color:#7891a2}
.pv27-stage-spacer{height:18px}

.app-shell:has(.pv27-home) .bottom-nav{position:fixed;z-index:40;left:0;right:0;bottom:0;transform:none;width:100vw;height:18.461538vw;max-height:80px;margin:0;padding:0;border:0;border-radius:0;background:#071721;box-shadow:none;backdrop-filter:none;display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.app-shell:has(.pv27-home) .bottom-nav button{height:100%;padding:0;border:0;border-radius:0;background:transparent;color:#7891a2;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0}
.app-shell:has(.pv27-home) .bottom-nav button span{height:auto;margin-top:3.333333vw;font-size:4.615385vw;line-height:1.15;font-weight:500}
.app-shell:has(.pv27-home) .bottom-nav button small{margin-top:1.282051vw;font-size:2.307692vw;line-height:1.15;font-weight:400;color:inherit}
.app-shell:has(.pv27-home) .bottom-nav button.active{background:transparent;color:#2f86ff}
.app-shell:has(.pv27-home) .bottom-nav button.active small{font-weight:600}
.app-shell:has(.pv27-home) .bottom-nav button[data-tab="analytics"] span{font-size:0}
.app-shell:has(.pv27-home) .bottom-nav button[data-tab="analytics"] span::after{content:'◷';font-size:4.615385vw}
.app-shell:has(.pv27-home) .bottom-nav button[data-tab="analytics"] small{font-size:0}
.app-shell:has(.pv27-home) .bottom-nav button[data-tab="analytics"] small::after{content:'История';font-size:2.307692vw}

@supports not (zoom:1){
  .pv27-stage{transform:scale(var(--pv27-fallback-scale,1));transform-origin:top left}
}

@media(min-width:431px){
  .pv27-home{max-width:430px;margin:0 auto}
  .app-shell:has(.pv27-home) .bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:430px;height:79.4px}
  .app-shell:has(.pv27-home) .bottom-nav button span{margin-top:14.3px;font-size:19.85px}
  .app-shell:has(.pv27-home) .bottom-nav button small{margin-top:5.5px;font-size:9.92px}
  .app-shell:has(.pv27-home) .bottom-nav button[data-tab="analytics"] span::after{font-size:19.85px}
  .app-shell:has(.pv27-home) .bottom-nav button[data-tab="analytics"] small::after{font-size:9.92px}
}


/* ---- canonical-capacity-home.css ---- */
/* Canonical approved-plan capacity presentation for Home. */
.pv27-today{height:118px}
.pv27-today-value{top:34px}
.pv27-capacity-breakdown{position:absolute;right:14px;top:14px;width:132px;display:flex;flex-direction:column;gap:7px;align-items:flex-end}
.pv27-capacity-breakdown span{display:flex;flex-direction:column;align-items:flex-end;min-width:0}
.pv27-capacity-breakdown small{font-size:7px;line-height:9px;font-weight:400;color:#7891a2;white-space:nowrap}
.pv27-capacity-breakdown b{margin-top:2px;font-size:10px;line-height:12px;font-weight:600;color:#eef6fb;white-space:nowrap}
.pv27-capacity-breakdown .extra b{color:#2bd597}
.pv27-today .pv27-progress{top:91px}
.pv27-today .pv27-plan-copy{top:102px;width:250px}
.pv27-today .pv27-percent{top:102px}

.pv27-vac-budget{top:9px;width:88px;align-items:flex-end;text-align:right}
.pv27-vac-budget b{margin-top:3px;color:#eef6fb}
.pv27-vac-budget em{margin-top:3px;font-style:normal;font-size:7px;line-height:9px;font-weight:600;color:#2bd597;white-space:nowrap}
.pv27-vac-capacity{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:9px}
.pv27-vac-capacity span{min-height:42px;padding:7px 8px;border:1px solid #1d3a4b;border-radius:9px;background:#0c2635;display:flex;flex-direction:column;justify-content:center}
.pv27-vac-capacity small{font-size:7px;line-height:9px;color:#7891a2}
.pv27-vac-capacity b{margin-top:3px;font-size:10px;line-height:12px;font-weight:700;color:#eef6fb}
.pv27-vac-capacity .extra b{color:#2bd597}
.pv27-vac-meta{padding-top:7px}

/* LIFE_PACE_LAYOUT_V2
   Life-pace copy is longer than the legacy hard-daily card. Keep enough vertical
   space for three right-side metrics, progress metadata and wrapped explanatory
   copy. These overrides intentionally come after the strict Figma base rules. */
.pv27-state{height:72px}
.pv27-state-dot{top:27px}
.pv27-state>b{top:10px;width:205px;line-height:12px;white-space:normal}
.pv27-state>small{top:40px;width:205px;line-height:10px;white-space:normal}
.pv27-state>strong{top:25px}

.pv27-today{height:176px}
.pv27-today-value{top:38px}
.pv27-capacity-breakdown{top:14px;gap:8px}
.pv27-today .pv27-progress{top:108px}
.pv27-today .pv27-percent{top:119px;width:110px;line-height:10px;white-space:nowrap}
.pv27-today .pv27-plan-copy{top:136px;width:320px;line-height:10px;white-space:normal;overflow-wrap:anywhere}


/* ---- onboarding.css ---- */
.onb-shell{display:grid;gap:14px;padding-bottom:24px}.onb-head{padding:6px 2px}.onb-head h2{margin:5px 0 8px;font-size:28px;line-height:1.05}.onb-head p,.onb-panel>p{margin:0;color:var(--muted);line-height:1.45}.onb-progress{height:5px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin-top:18px}.onb-progress i{display:block;height:100%;background:var(--cyan);border-radius:inherit}.onb-progress-meta{display:flex;justify-content:space-between;gap:12px;margin-top:7px;font-size:12px;color:var(--muted)}.onb-progress-meta b{color:var(--text)}.onb-panel{display:grid;gap:13px}.onb-panel h3{margin:0;font-size:20px}.onb-panel label{display:grid;gap:6px;font-size:12px;font-weight:700;color:var(--muted);letter-spacing:.02em}.onb-panel label small{font-weight:400}.onb-panel input,.onb-panel select{width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.1);background:#0c151f;color:var(--text);border-radius:12px;padding:13px 12px;font:inherit;outline:none}.onb-panel input:focus,.onb-panel select:focus{border-color:rgba(77,216,255,.6);box-shadow:0 0 0 3px rgba(77,216,255,.08)}.onb-summary-list,.onb-review-block{display:grid;gap:8px}.onb-summary-list>div,.onb-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.07)}.onb-summary-list>div:last-child,.onb-row:last-child{border-bottom:0}.onb-row span{display:grid;gap:3px}.onb-row small{color:var(--muted);font-size:11px}.onb-review-block{padding-top:5px}.onb-review-block h4{margin:5px 0 0;font-size:13px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.onb-empty{padding:10px 0;color:var(--muted)}.onb-secondary-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.onb-launch{width:100%;min-height:50px;margin-top:4px}.onb-hint{text-align:center;color:var(--muted);font-size:12px;line-height:1.4}.onb-panel .button-row{display:flex;flex-wrap:wrap;gap:8px}.onb-panel .button-row>*{flex:1 1 150px}@media(max-width:380px){.onb-secondary-actions{grid-template-columns:1fr}.onb-head h2{font-size:25px}}


/* ---- navigation-v28.css ---- */
/* BudgetBot V9 navigation V28 — persistent Premium chrome across all dashboard tabs. */
.app-shell.v28-dashboard .bottom-nav{
  position:fixed;z-index:40;left:0;right:0;bottom:0;transform:none;
  width:100vw;height:18.461538vw;max-height:80px;margin:0;padding:0;
  border:0;border-radius:0;background:#071721;box-shadow:none;backdrop-filter:none;
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;
}
.app-shell.v28-dashboard .bottom-nav button{
  height:100%;padding:0;border:0;border-radius:0;background:transparent;color:#7891a2;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;
}
.app-shell.v28-dashboard .bottom-nav button span{
  height:auto;margin-top:3.333333vw;font-size:4.615385vw;line-height:1.15;font-weight:500;
}
.app-shell.v28-dashboard .bottom-nav button small{
  margin-top:1.282051vw;font-size:2.307692vw;line-height:1.15;font-weight:400;color:inherit;
}
.app-shell.v28-dashboard .bottom-nav button.active{background:transparent;color:#2f86ff}
.app-shell.v28-dashboard .bottom-nav button.active small{font-weight:600}
/* V27 used :has(.pv27-home) pseudo-content only on Home. V28 keeps the real
   icon/label in the DOM so the same tab is rendered identically everywhere. */
.app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] span,
.app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] small{font-size:inherit}
.app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] span::after,
.app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] small::after{content:none!important}
.app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] span{font-size:4.615385vw}
.app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] small{font-size:2.307692vw}

@media(min-width:431px){
  .app-shell.v28-dashboard .bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:430px;height:79.4px}
  .app-shell.v28-dashboard .bottom-nav button span{margin-top:14.3px;font-size:19.85px}
  .app-shell.v28-dashboard .bottom-nav button small{margin-top:5.5px;font-size:9.92px}
  .app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] span{font-size:19.85px}
  .app-shell.v28-dashboard .bottom-nav button[data-tab="analytics"] small{font-size:9.92px}
}


/* ---- premium-tabs-v30.css ---- */
/* BudgetBot Premium Tabs V30
   Plan / History / More. Readability-first refinement of Premium V29.
   Figma anchors remain: Plan 45:2 · History 45:126 · More 45:237. */
body:has(.pt30-root){background:#06111a;color:#eef6fb}
.app-shell.v28-dashboard:has(.pt30-root){min-height:100dvh;background:#06111a;padding-bottom:0}
.app-shell.v28-dashboard:has(.pt30-root) .topbar{display:none!important}
.app-shell.v28-dashboard:has(.pt30-root) .content{width:100vw;max-width:none;margin:0;padding:0;background:#06111a;overflow:visible}
.pt30-root{width:100vw;min-height:100%;background:#06111a;overflow:visible}
.pt30-stage{width:390px;min-height:772px;margin:0;padding:18px 16px 118px;box-sizing:border-box;background:#06111a;color:#eef6fb;font-family:Inter,-apple-system,BlinkMacSystemFont,"SF Pro Text",sans-serif;transform-origin:top left}
.pt30-stage *{box-sizing:border-box}.pt30-stage button{font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.pt30-head{position:relative;min-height:112px;margin:0}.pt30-head>span{display:block;color:#9fc9ff;font-size:12px;line-height:15px;font-weight:600}.pt30-head h1{margin:10px 0 14px;font-size:30px;line-height:35px;letter-spacing:-.03em;font-weight:700;color:#eef6fb}
.pt30-period{width:358px;height:48px;display:grid;grid-template-columns:42px 1fr 42px;gap:8px;align-items:stretch;margin-bottom:16px}
.pt30-period button{border:1px solid #244a60;background:#0b2030}.pt30-period-arrow{border-radius:13px;font-size:24px;line-height:1;color:#9fc9ff}.pt30-period-arrow:disabled{opacity:.28;cursor:default}.pt30-period-main{border-radius:13px;display:grid;grid-template-columns:22px 1fr 16px;gap:8px;align-items:center;padding:0 12px;text-align:left}.pt30-period-main>span:first-child{color:#2f86ff;font-size:14px}.pt30-period-main>span:nth-child(2){display:flex;min-width:0;flex-direction:column}.pt30-period-main b{font-size:13px;line-height:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-period-main small{margin-top:2px;font-size:10px;line-height:12px;color:#7891a2;white-space:nowrap}.pt30-period-main i{font-style:normal;color:#2f86ff;font-size:15px;text-align:right}
.pt30-card{position:relative;width:358px;margin:0 0 14px;border:1px solid #1d3a4b;border-radius:16px;background:#0c1d28;overflow:hidden;box-shadow:none}.pt30-card>h2,.pt30-card-title h2{margin:0;font-size:16px;line-height:20px;font-weight:650;color:#eef6fb}
.pt30-icon{position:absolute;left:14px;top:14px;width:32px;height:32px;border:1px solid #244a60;border-radius:50%;display:grid;place-items:center;background:#0c2635;color:#2f86ff;font-size:14px;line-height:1;font-weight:600}.pt30-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px 0 54px;min-height:34px}.pt30-card-title button{padding:0;border:0;background:transparent;color:#2f86ff;font-size:12px;line-height:15px;font-weight:600;white-space:nowrap}.pt30-empty{padding:14px;color:#7891a2;font-size:12px;line-height:16px}.pt30-loading{height:82px;padding:28px 18px 18px 54px;display:flex;align-items:center;gap:12px}.pt30-loading b{font-size:13px}.pt30-loading .spinner{position:absolute;left:18px;top:27px}
/* Plan */
.pt30-plan-summary{min-height:136px;padding:14px}.pt30-plan-summary>h2{margin-left:40px;height:32px;display:flex;align-items:center}.pt30-plan-cols{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #1d3a4b;padding-bottom:11px}.pt30-plan-cols>div{min-width:0;padding-right:8px}.pt30-plan-cols>div+div{padding-left:10px;border-left:1px solid #1d3a4b}.pt30-plan-cols span{display:block;font-size:11px;line-height:14px;color:#8ca5b6;min-height:28px}.pt30-plan-cols b{display:block;margin-top:5px;font-size:16px;line-height:20px;font-weight:700;color:#eef6fb;white-space:nowrap}.pt30-subline{padding-top:10px;font-size:11px;line-height:14px;color:#8ca5b6}.pt30-subline b{color:#eef6fb;font-weight:600}
.pt30-plan-events{min-height:132px;padding:14px 0 10px}.pt30-plan-events .pt30-card-title,.pt30-cat-card .pt30-card-title,.pt30-goal-card .pt30-card-title{height:34px}.pt30-event-list{padding:6px 14px 0}.pt30-event{width:100%;min-height:34px;padding:6px 0;border:0;border-bottom:1px solid rgba(29,58,75,.72);background:transparent;display:grid;grid-template-columns:58px 10px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:left}.pt30-event:last-child{border-bottom:0}.pt30-event time{font-size:11px;color:#7891a2}.pt30-event>i{width:8px;height:8px;border-radius:50%;background:#2f86ff}.pt30-event>i.income{background:#2bd597}.pt30-event>i.expense{background:#ff5a67}.pt30-event>i.transfer{background:#8f5bff}.pt30-event b{font-size:12px;line-height:15px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-event strong{font-size:12px;line-height:15px;font-weight:600;white-space:nowrap}.pt30-event strong.income{color:#2bd597}.pt30-event strong.transfer{color:#9fc9ff}
.pt30-cat-card{min-height:170px;padding:14px 0 10px}.pt30-cat-list{padding:6px 14px 0}.pt30-cat-row{width:100%;min-height:48px;padding:6px 0;border:0;border-bottom:1px solid rgba(29,58,75,.62);background:transparent;display:grid;grid-template-columns:34px minmax(0,1fr) 84px 34px;gap:9px;align-items:center;text-align:left}.pt30-cat-row:last-child{border-bottom:0}.pt30-cat-ico{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#123c36;color:#2bd597;font-size:12px}.pt30-cat-ico.c1{background:#123354;color:#2f86ff}.pt30-cat-ico.c2{background:#503617;color:#ffa447}.pt30-cat-ico.c3{background:#37245d;color:#8f5bff}.pt30-cat-copy{min-width:0;display:flex;flex-direction:column}.pt30-cat-copy b{font-size:12px;line-height:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-cat-copy small{margin-top:3px;font-size:10px;line-height:12px;color:#7891a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-bar{height:7px;border-radius:4px;background:#173044;overflow:hidden}.pt30-bar i{display:block;height:100%;border-radius:4px;background:#2bd597}.pt30-cat-row:nth-child(2) .pt30-bar i{background:#2f86ff}.pt30-cat-row:nth-child(3) .pt30-bar i{background:#ffa447}.pt30-cat-row:nth-child(4) .pt30-bar i{background:#8f5bff}.pt30-cat-row>strong{font-size:11px;font-weight:500;color:#8ca5b6;text-align:right}
.pt30-goal-card{min-height:110px;padding:14px 0 10px}.pt30-goal-list{padding:6px 14px 0}.pt30-goal{width:100%;min-height:62px;padding:8px 0;border:0;border-bottom:1px solid rgba(29,58,75,.62);background:transparent;display:grid;grid-template-columns:36px minmax(0,1fr) 34px 14px;gap:9px;align-items:center;text-align:left}.pt30-goal:last-child{border-bottom:0}.pt30-goal-ico{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#123354;color:#2f86ff;font-size:14px}.pt30-goal-copy{min-width:0;display:flex;flex-direction:column}.pt30-goal-copy>b{font-size:13px;line-height:16px;font-weight:650;white-space:normal}.pt30-goal-copy>small{margin-top:4px;font-size:10px;line-height:13px;color:#8ca5b6;white-space:normal}.pt30-goal-bar{height:7px;border-radius:4px;background:#173044;overflow:hidden;margin-top:7px}.pt30-goal-bar i{display:block;height:100%;border-radius:4px;background:#2f86ff}.pt30-goal>strong{font-size:11px;color:#8ca5b6;text-align:right}.pt30-row-chevron{font-style:normal;color:#2f86ff;font-size:17px;text-align:center}
.pt30-manage-card{min-height:236px;padding:14px}.pt30-manage-card>h2{margin-left:40px;height:32px;display:flex;align-items:center}.pt30-manage-list{margin-top:10px;border:1px solid #1d3a4b;border-radius:12px;overflow:hidden}.pt30-manage-list button{width:100%;height:38px;padding:0 11px;border:0;border-bottom:1px solid #1d3a4b;background:#091923;display:grid;grid-template-columns:24px 1fr 16px;align-items:center;text-align:left}.pt30-manage-list button:last-child{border-bottom:0}.pt30-manage-list button span{color:#2f86ff;font-size:13px}.pt30-manage-list button b{font-size:12px;font-weight:500}.pt30-manage-list button i{font-style:normal;font-size:16px;color:#9fc9ff}
/* History */
.pt30-history-tools{width:358px;margin:0 0 14px;display:flex;align-items:center;justify-content:space-between;gap:8px}.pt30-filters{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}.pt30-filters::-webkit-scrollbar{display:none}.pt30-filters button{height:34px;padding:0 12px;border:1px solid #244a60;border-radius:11px;background:#081a28;color:#9fc9ff;font-size:11px;font-weight:550;white-space:nowrap}.pt30-filters button.active{border-color:transparent;background:#1388ff;color:#eef6fb}.pt30-account-filter{height:34px;padding:0 10px;border:1px solid #244a60;border-radius:11px;background:#081a28;color:#9fc9ff;font-size:10px;white-space:nowrap}
.pt30-history-hero{min-height:252px;padding:14px}.pt30-history-hero>h2{margin-left:40px;height:32px;display:flex;align-items:center}.pt30-history-metrics{margin-top:10px;display:grid;grid-template-columns:1.15fr 1fr .75fr;border-bottom:1px solid #1d3a4b;padding-bottom:12px}.pt30-history-metrics>div{min-width:0}.pt30-history-metrics>div+div{padding-left:12px;border-left:1px solid #1d3a4b}.pt30-history-metrics span{font-size:11px;line-height:14px;color:#9fc9ff}.pt30-history-metrics b{display:block;margin-top:5px;font-size:19px;line-height:23px;font-weight:700;white-space:nowrap}.pt30-history-metrics b.good{color:#2bd597}.pt30-history-chart{margin-top:14px;display:grid;grid-template-columns:110px 1fr;gap:12px;align-items:center}.pt30-donut{width:94px;height:94px;margin-left:5px;border-radius:50%;display:grid;place-items:center}.pt30-donut>div{width:64px;height:64px;border-radius:50%;background:#0c1d28;display:flex;flex-direction:column;align-items:center;justify-content:center}.pt30-donut b{font-size:11px}.pt30-donut small{font-size:9px;color:#7891a2}.pt30-legend{display:flex;flex-direction:column;gap:7px}.pt30-legend>div{display:grid;grid-template-columns:9px minmax(0,1fr) 34px 62px;gap:6px;align-items:center}.pt30-legend i{width:8px;height:8px;border-radius:50%}.pt30-legend span,.pt30-legend em,.pt30-legend b{font-size:10px;line-height:12px}.pt30-legend span{color:#8ca5b6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-legend em{font-style:normal;color:#7891a2;text-align:right}.pt30-legend b{text-align:right;font-weight:600;white-space:nowrap}
.pt30-ops-card{min-height:150px;padding:14px 0 10px}.pt30-ops-list{padding:6px 14px 0}.pt30-op{width:100%;min-height:50px;padding:7px 0;border:0;border-bottom:1px solid rgba(29,58,75,.65);background:transparent;display:grid;grid-template-columns:36px minmax(0,1fr) 82px;grid-template-rows:22px 16px;column-gap:9px;align-items:center;text-align:left}.pt30-op:last-child{border-bottom:0}.pt30-op-ico{grid-row:1/3;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#123c36;color:#2bd597;font-size:13px}.pt30-op-ico.c1{background:#503617;color:#ffa447}.pt30-op-ico.c2{background:#37245d;color:#8f5bff}.pt30-op-ico.c3{background:#4e2430;color:#ff5a67}.pt30-op-ico.c4{background:#123354;color:#2f86ff}.pt30-op>span:nth-child(2){grid-column:2;grid-row:1/3;display:flex;flex-direction:column;min-width:0}.pt30-op>span:nth-child(2)b{font-size:12px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-op>span:nth-child(2)small{margin-top:3px;font-size:10px;line-height:12px;color:#7891a2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pt30-op strong{grid-column:3;grid-row:1;font-size:12px;line-height:15px;text-align:right;white-space:nowrap}.pt30-op strong.income,.pt30-op strong.transfer{color:#2bd597}.pt30-op time{grid-column:3;grid-row:2;font-size:10px;line-height:12px;color:#7891a2;text-align:right}.pt30-trend-card{min-height:122px;padding:14px}.pt30-trend-card>h2{margin-left:40px;height:32px;display:flex;align-items:center}.pt30-trend-grid{margin-top:10px;display:grid;grid-template-columns:1fr 1fr}.pt30-trend-grid>div+div{padding-left:18px;border-left:1px solid #1d3a4b}.pt30-trend-grid span{font-size:11px;line-height:14px;color:#9fc9ff}.pt30-trend-grid b{display:block;margin-top:6px;font-size:18px;line-height:22px;font-weight:700;white-space:nowrap}.pt30-trend-grid small{display:block;margin-top:4px;font-size:10px;color:#7891a2}
/* More */
.pt30-more .pt30-head{min-height:88px}.pt30-profile{min-height:126px;padding:14px}.pt30-avatar{position:absolute;left:14px;top:14px;width:52px;height:52px;border:1px solid #244a60;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,#1f5c90,#102a45);font-size:26px}.pt30-profile-copy{margin-left:68px;min-height:52px;display:flex;flex-direction:column;justify-content:center}.pt30-profile-copy b{font-size:17px;line-height:21px}.pt30-profile-copy span{margin-top:4px;font-size:12px;color:#7891a2}.pt30-shortcuts{margin-top:12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pt30-shortcuts button{height:38px;padding:0 9px;border:1px solid #1d3a4b;border-radius:10px;background:#091923;display:grid;grid-template-columns:18px 1fr 10px;gap:5px;align-items:center}.pt30-shortcuts button span,.pt30-shortcuts button i{font-style:normal;color:#2f86ff;font-size:11px}.pt30-shortcuts button b{font-size:11px;line-height:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pt30-more-section{padding:14px}.pt30-more-section>h2{margin:0 0 8px;font-size:16px;line-height:20px}.pt30-more-row{width:100%;min-height:58px;padding:8px 0;border:0;border-top:1px solid rgba(29,58,75,.72);background:transparent;display:grid;grid-template-columns:38px minmax(0,1fr) 14px;gap:10px;align-items:center;text-align:left}.pt30-more-row>span{width:34px;height:34px;border:1px solid #244a60;border-radius:50%;display:grid;place-items:center;background:#123354;color:#2f86ff;font-size:13px}.pt30-more-row>div{min-width:0;display:flex;flex-direction:column}.pt30-more-row b{font-size:13px;line-height:16px;font-weight:620}.pt30-more-row small{margin-top:4px;font-size:11px;line-height:14px;color:#7891a2;white-space:normal}.pt30-more-row>i{font-style:normal;color:#2f86ff;font-size:17px}
.pt30-picker{display:flex;flex-direction:column;gap:6px;padding:4px 0 12px}.pt30-picker button{width:100%;min-height:50px;padding:8px 12px;border:1px solid #1d3a4b;border-radius:12px;background:#091923;display:grid;grid-template-columns:1fr 20px;grid-template-rows:auto auto;text-align:left}.pt30-picker button.active{border-color:#2f86ff;background:#0b2540}.pt30-picker span{font-size:13px;font-weight:600}.pt30-picker small{grid-column:1;font-size:10px;color:#7891a2;margin-top:2px}.pt30-picker i{grid-column:2;grid-row:1/3;align-self:center;font-style:normal;color:#2f86ff;text-align:right}
.pt30-bottom-spacer{height:18px}
@supports not (zoom:1){.pt30-stage{transform:scale(var(--pt30-fallback-scale,1));transform-origin:top left}}
@media(min-width:431px){.pt30-root{max-width:430px;margin:0 auto}}


/* ---- history-visual-fixes-v31.css ---- */
/* BudgetBot History visual fixes V31
   Fixes narrow-screen filter collisions and reserves space above persistent bottom navigation. */
.pt30-history .pt30-history-tools{
  width:358px;
  margin:0 0 14px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  justify-content:flex-start;
  gap:10px;
}
.pt30-history .pt30-filters{
  width:100%;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
  overflow:visible;
}
.pt30-history .pt30-filters button{
  width:100%;
  min-width:0;
  height:36px;
  padding:0 7px;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10.5px;
  line-height:1;
}
.pt30-history .pt30-account-filter{
  align-self:flex-end;
  width:auto;
  min-width:132px;
  max-width:100%;
  height:36px;
  padding:0 12px;
  font-size:10.5px;
}
.pt30-history .pt30-stage{
  padding-bottom:calc(150px + env(safe-area-inset-bottom));
}
.pt30-history .pt30-bottom-spacer{
  height:calc(28px + env(safe-area-inset-bottom));
}
@media(max-width:360px){
  .pt30-history .pt30-filters{gap:5px}
  .pt30-history .pt30-filters button{padding:0 5px;font-size:10px}
  .pt30-history .pt30-account-filter{min-width:124px}
}


/* ---- help-runtime.css ---- */
.bb-help-intro{margin:0 0 14px;padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}
.bb-help-intro b{display:block;font-size:16px;margin-bottom:5px}.bb-help-intro p,.bb-help-lead,.bb-help-answer p,.bb-help-tip p{margin:0;color:var(--muted,#9fb0bd);line-height:1.5;font-size:14px}
.bb-help-search{display:grid;grid-template-columns:1fr auto;gap:8px;margin:0 0 14px}.bb-help-search input{min-width:0;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);color:inherit;padding:12px 13px;font:inherit}.bb-help-search button{border:0;border-radius:14px;padding:0 15px;font-weight:700;background:rgba(64,145,255,.18);color:inherit}
.bb-help-list{display:grid;gap:8px}.bb-help-row{width:100%;display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:11px;text-align:left;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.035);color:inherit;border-radius:16px;padding:11px 12px}.bb-help-row>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(64,145,255,.15);font-weight:800}.bb-help-row div{min-width:0}.bb-help-row b{display:block;font-size:14px}.bb-help-row small{display:block;margin-top:3px;color:var(--muted,#9fb0bd);font-size:12px;line-height:1.35}.bb-help-row i{font-style:normal;opacity:.55;font-size:20px}
.bb-help-section{display:grid;gap:10px}.bb-help-lead{padding:0 2px 4px}.bb-help-answer{padding:14px 15px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.065)}.bb-help-answer h3{font-size:14px;margin:0 0 6px}.bb-help-tip{padding:16px;border-radius:16px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.065)}
.bb-help-q{display:inline-grid;place-items:center;width:20px;height:20px;margin-left:6px;padding:0;border-radius:50%;border:1px solid rgba(130,180,255,.45);background:rgba(64,145,255,.12);color:inherit;font-size:12px;font-weight:800;vertical-align:middle}


/* ---- v30-cleanups.css ---- */
/* V30 cross-screen readability and cleanup layer. Bundled into app-v30.css. */
.pt30-donut small{font-size:10px}
.pt30-more-section .pt30-more-row[data-v30-action="notifications"],
.pt30-more-section .pt30-more-row[data-v30-action="scan"],
.pt30-more-section .pt30-more-row[data-v30-action="autosave"],
.pt30-more-section .pt30-more-row[data-v30-action="theme"],
.pt30-more-section .pt30-more-row[data-v30-action="export"]{display:none}

/* Home V27 keeps its approved geometry, but V30 raises minimum readable text. */
.pv27-screen-head p{font-size:11px;line-height:13px}
.pv27-state>b{font-size:11px;line-height:13px}
.pv27-state>small{font-size:11px;line-height:13px}
.pv27-state>strong{font-size:10px;line-height:12px}
.pv27-today-label{font-size:11px;line-height:13px}
.pv27-tomorrow-label{font-size:10px;line-height:12px}
.pv27-plan-copy,.pv27-percent{font-size:10px;line-height:12px}
.pv27-quick h2{font-size:12px;line-height:14px}
.pv27-quick-grid button b{font-size:11px;line-height:13px}
.pv27-summary-copy em{font-size:11px;line-height:13px}
.pv27-summary-copy>small,.pv27-inline-note,.pv27-vac-budget small,.pv27-side-note,.pv27-last-amount{font-size:11px;line-height:13px}
.pv27-account-name b,.pv27-account strong{font-size:11px;line-height:13px}
.pv27-account-name small,.pv27-body-note,.pv27-timeline time,.pv27-timeline b,.pv27-timeline strong,.pv27-operation span small{font-size:11px;line-height:13px}
.pv27-operation span b,.pv27-operation strong{font-size:11px;line-height:13px}

/* One stable tab bar across all screens. */
.app-shell.v28-dashboard .bottom-nav button small{font-size:11px!important;line-height:13px!important}


/* ---- ux-audit-v35.css ---- */
/* BudgetBot UX audit V35 — interaction truthfulness, collision fixes and mobile polish. */

/* Home status: keep the readable V30 typography without allowing left/right text collision. */
.pv27-state{height:64px}
.pv27-state>b{left:34px;top:10px;width:188px;white-space:normal}
.pv27-state>small{left:34px;top:31px;width:188px;max-height:27px;overflow:hidden}
.pv27-state>strong{right:14px;top:20px;width:112px;font-size:10px;line-height:12px}

/* Accordion summaries reserve a real right-hand column instead of overlapping absolute labels. */
.pv27-forecast .pv27-summary-copy{right:158px}
.pv27-forecast .pv27-side-note{right:48px;top:14px;width:96px;max-width:96px;line-height:12px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pv27-vacation .pv27-summary-copy{right:142px}
.pv27-vacation .pv27-vac-budget{right:48px;width:82px}
.pv27-vacation .pv27-vac-budget b{font-size:10px;max-width:82px;overflow:hidden;text-overflow:ellipsis}

/* Account rows now really drill into the chosen account. */
.pv27-account{transition:background .12s ease,border-color .12s ease}
.pv27-account:active{background:#0d2634}

/* Upcoming payments are genuine controls, not decorative rows. */
.pv27-payment{width:100%;min-height:38px;padding:4px 0;border:0;border-bottom:1px solid rgba(29,58,75,.65);background:transparent;display:grid;grid-template-columns:48px minmax(0,1fr) auto 12px;gap:7px;align-items:center;text-align:left;color:inherit;font:inherit;cursor:pointer}
.pv27-payment:last-child{border-bottom:0}
.pv27-payment time{font-size:9px;line-height:11px;color:#7891a2}
.pv27-payment b,.pv27-payment strong{font-size:9px;line-height:11px;font-weight:600}
.pv27-payment strong{white-space:nowrap;text-align:right}
.pv27-payment>i{font-style:normal;color:#2f86ff;font-size:15px;text-align:right}
.pv27-payment:active{background:#0d2634}

/* History filter now behaves as a filter and remains usable on narrow phones. */
.pt30-history-tools{align-items:stretch;flex-wrap:wrap}
.pt30-filters{flex:1 1 100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible}
.pt30-filters button{min-width:0;padding:0 5px;text-align:center}
.pt30-account-filter{flex:0 1 auto;max-width:100%;min-width:128px;margin-left:auto;overflow:hidden;text-overflow:ellipsis}

/* Read-only cross-cycle category rows still look tappable, but communicate the safe behavior in the sheet. */
[data-ux-action="category-readonly"]{position:relative}
[data-ux-action="category-readonly"]::after{content:'просмотр';position:absolute;right:0;bottom:2px;font-size:8px;line-height:9px;color:#7891a2}

/* Friendly forecast surfaces. */
.ux35-forecast-status{padding:14px}
.ux35-forecast-status h3{margin:0 0 6px;font-size:16px;line-height:20px}
.ux35-forecast-status p{margin:0;color:#8ca5b6;font-size:12px;line-height:16px}
.ux35-forecast-status.good{border-color:#1f5d4c;background:#0b211e}
.ux35-forecast-status.warn{border-color:#735723;background:#241f12}
.ux35-forecast-status.bad{border-color:#6e313b;background:#24171b}
.ux35-mini-events{display:flex;flex-direction:column}
.ux35-mini-events>div{min-height:38px;display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:8px;align-items:center;border-bottom:1px solid rgba(29,58,75,.65)}
.ux35-mini-events>div:last-child{border-bottom:0}
.ux35-mini-events time{font-size:10px;color:#7891a2}
.ux35-mini-events span{font-size:11px;line-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ux35-mini-events b{font-size:11px;white-space:nowrap}

/* Sheets created by the audit should remain readable above the Telegram home indicator. */
.sheet .ux35-account-hero .hero-value{font-size:30px;line-height:36px}
.sheet{padding-bottom:max(20px,env(safe-area-inset-bottom))}

@media(max-width:350px){
  .pv27-state>b,.pv27-state>small{width:170px}
  .pv27-state>strong{width:102px}
  .pt30-account-filter{width:100%;margin-left:0}
}


/* UX readability cleanup — filters describe Operations only; transfers are neutral. */
.pt30-ops-card .pt30-history-tools-in-card{width:auto;margin:6px 14px 10px;align-items:stretch}
.pt30-ops-card .pt30-history-tools-in-card .pt30-filters{flex:1 1 100%}
.pt30-op-ico.transfer{background:#123354!important;color:#9fc9ff!important}
.pt30-op strong.transfer{color:#9fc9ff}
.ux35-mini-events b.transfer{color:#9fc9ff}
.ux35-mini-events b.income{color:#2bd597}

/* Debt forms keep the core fields visible and optional schedule data collapsed. */
.v7p-debt-advanced{margin:4px 0 14px;border:1px solid #1d3a4b;border-radius:14px;background:#091923;overflow:hidden}
.v7p-debt-advanced>summary{min-height:50px;padding:0 13px;display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:8px;align-items:center;cursor:pointer;list-style:none}
.v7p-debt-advanced>summary::-webkit-details-marker{display:none}
.v7p-debt-advanced>summary span{font-size:13px;font-weight:650}
.v7p-debt-advanced>summary small{font-size:11px;color:#7891a2}
.v7p-debt-advanced>summary i{font-style:normal;color:#9fc9ff;text-align:right;transition:transform .12s ease}
.v7p-debt-advanced[open]>summary i{transform:rotate(180deg)}
.v7p-debt-advanced-body{padding:0 12px 12px;border-top:1px solid #1d3a4b}


/* Category settings use the canonical timed limit editor instead of silently rewriting the limit. */
.v7p-category-limit-row{width:100%;min-height:62px;margin:4px 0 14px;padding:10px 12px;border:1px solid #244a60;border-radius:14px;background:#091923;display:grid;grid-template-columns:minmax(0,1fr) auto 14px;gap:10px;align-items:center;text-align:left}
.v7p-category-limit-row>span{min-width:0;display:flex;flex-direction:column}
.v7p-category-limit-row b{font-size:13px;line-height:16px}
.v7p-category-limit-row small{margin-top:4px;font-size:11px;line-height:14px;color:#7891a2;white-space:normal}
.v7p-category-limit-row strong{font-size:13px;white-space:nowrap}
.v7p-category-limit-row i{font-style:normal;color:#2f86ff;font-size:17px}

/* Narrow-phone fit: preserve readable type and let labels wrap instead of clipping. */
@media(max-width:430px){
  .pv27-quick-grid{width:100%;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
  .pv27-quick-grid button,.pv27-quick-grid button span,.pv27-quick-grid button b{width:100%;min-width:0}
  .pv27-quick-grid button b{font-size:10px;line-height:12px;white-space:normal}
  .pv27-forecast .pv27-summary-copy{right:132px}
  .pv27-forecast .pv27-side-note{right:48px;top:23px;width:72px;max-width:72px;white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}
  .pv27-state>strong{white-space:normal;max-height:28px;overflow:hidden}
  .pv27-summary-copy>b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .pv27-account-name small,.pv27-body-note,.pv27-timeline time,.pv27-timeline b,.pv27-timeline strong,.pv27-operation span small{font-size:10px;line-height:12px}
  .pv27-payment time,.pv27-payment b,.pv27-payment strong{font-size:10px;line-height:12px}

  .pt30-card-title{gap:8px;padding-right:12px}
  .pt30-card-title h2{min-width:0}
  .pt30-card-title button{max-width:46%;white-space:normal;text-align:right;line-height:14px}
  .pt30-plan-cols{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pt30-plan-cols>div{padding-right:6px}
  .pt30-plan-cols>div+div{padding-left:7px}
  .pt30-plan-cols span{font-size:11px;line-height:14px;min-height:0;white-space:normal;overflow-wrap:anywhere}
  .pt30-plan-cols b{font-size:15px;line-height:19px}
  .pt30-event{grid-template-columns:52px 9px minmax(0,1fr) auto;gap:6px}
  .pt30-cat-row{grid-template-columns:32px minmax(0,1fr) 68px 30px;gap:7px}
  .pt30-cat-copy b,.pt30-cat-copy small{white-space:normal;overflow:visible;text-overflow:clip}
  .pt30-cat-copy small{font-size:10px;line-height:12px}
  .pt30-history-metrics{grid-template-columns:1fr 1fr .8fr}
  .pt30-history-metrics>div+div{padding-left:8px}
  .pt30-history-metrics b{font-size:17px;line-height:21px}
  .pt30-legend span,.pt30-legend em,.pt30-legend b{font-size:11px;line-height:13px}
  .pt30-op{grid-template-columns:34px minmax(0,1fr) 76px;column-gap:7px}
  .pt30-op>span:nth-child(2)b{white-space:normal;line-height:15px}
  .pt30-more-row small{overflow-wrap:anywhere}

  .cb-summary-card span,.cb-title small,.cb-money span,.cb-card-foot,.cb-expand,.cb-editor-hero small,.cb-preview-title span,.cb-compare small,.cb-impact-row{font-size:10px!important;line-height:12px!important}
  .cb-status,.cb-editor-stat span{font-size:10px!important;line-height:12px!important}
  .cb-editor-stat b,.cb-preview-title b,.cb-compare b{font-size:12px!important;line-height:15px!important}
  .cb-editor-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cb-editor-stat{min-width:0;padding:9px 7px}
  .cb-editor-stat span{white-space:normal}
  .cb-scope button{min-height:44px;padding:8px;font-size:11px;line-height:14px;white-space:normal}

  .sheet-head{align-items:flex-start}
  .sheet-head h2,.sheet-head h3{min-width:0;overflow-wrap:anywhere}
  .sheet .v7p-actions{display:flex;flex-wrap:wrap}
  .sheet .v7p-actions>button{flex:1 1 140px;min-width:0;white-space:normal}
}

@media(max-width:370px){
  .pt30-stage{padding-left:13px;padding-right:13px}
  .pt30-period,.pt30-card,.pt30-history-tools{width:100%}
  .pt30-period{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}
  .pt30-period-main{padding:0 9px;grid-template-columns:18px minmax(0,1fr) 14px;gap:6px}
  .pt30-period-main b{font-size:12px}
  .pt30-period-main small{font-size:10px}
  .pt30-filters button{font-size:10px;padding:0 4px}
  .pt30-account-filter{width:100%;margin-left:0}
}

