/* Approved seven-tab premium skin: presentation only, no financial logic. */
html.hb-premium-enabled{--hb-green:#0f4d3a;--hb-forest:#063b2b;--hb-gold:#d4af37;--hb-ivory:#f8f6f0;--hb-text:#1b2822;--hb-muted:#5b6c63;--hb-edge:#e7e6dd;color-scheme:light}
html.hb-premium-enabled body{background:var(--hb-ivory);color:var(--hb-text)}
html.hb-premium-enabled main.app{padding-top:0;padding-bottom:calc(116px + env(safe-area-inset-bottom,0px))}
html.hb-premium-enabled main.app>header.hero{display:none!important}
html.hb-premium-enabled .hb-premium-header{margin:0 -12px 18px;padding:20px 18px;min-height:108px;display:flex;align-items:center;gap:14px;background:linear-gradient(130deg,#063b2b,#126347 54%,#043727);color:white;border-bottom:3px solid #d4af37;border-radius:0 0 26px 26px;box-shadow:0 8px 23px #0b422722}
html.hb-premium-enabled .hb-premium-logo{width:62px;height:62px;flex:0 0 62px;object-fit:cover;border-radius:16px;border:1px solid #eacb75;box-shadow:0 3px 12px #042c2488}
html.hb-premium-enabled .hb-premium-brand{min-width:0}
html.hb-premium-enabled .hb-premium-brand small{display:block;font-size:11px;letter-spacing:.08em;font-weight:800;color:#ebd69b}
html.hb-premium-enabled .hb-premium-brand h1{margin:3px 0 2px;font-size:clamp(20px,5vw,27px);line-height:1.2;font-weight:900;letter-spacing:.03em;color:#fff}
html.hb-premium-enabled .hb-premium-brand p{margin:0;font-size:11px;color:#e9f3ed;line-height:1.45}
html.hb-premium-enabled .screen{min-width:0}
html.hb-premium-enabled .screen .card{background:#fff;border:1px solid var(--hb-edge);border-radius:20px;box-shadow:0 4px 16px #1f40250b}
html.hb-premium-enabled .screen>.card{margin:12px 0;padding:17px}
html.hb-premium-enabled .screen .box{background:#f7f8f4;border:1px solid #e8eee7;border-radius:17px;min-width:0}
html.hb-premium-enabled .screen :is(.title,.sub){color:var(--hb-forest);line-height:1.32}
html.hb-premium-enabled .screen :is(.label,.note,.help){color:var(--hb-muted)}
html.hb-premium-enabled .screen .num{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html.hb-premium-enabled .screen :is(input:not([type=checkbox]):not([type=radio]),select,textarea){border-radius:14px;border-color:#d8e1d7;min-height:44px;max-width:100%;color:var(--hb-text)}
html.hb-premium-enabled .screen input[type=checkbox]{width:auto;accent-color:var(--hb-green)}
html.hb-premium-enabled .screen :is(input,select,textarea):focus-visible,html.hb-premium-enabled button:focus-visible{outline:3px solid #bd9135;outline-offset:2px}
html.hb-premium-enabled .screen button{min-height:43px;transition:background-color .12s ease}
html.hb-premium-enabled .screen .form>button,html.hb-premium-enabled .screen .grid>button:not(.btn2):not(.danger),html.hb-premium-enabled #input button[onclick*="saveTx"]{background:linear-gradient(145deg,#14664c,#07442f);color:white;border:1px solid #126149;font-weight:800}
html.hb-premium-enabled .screen .btn2{background:#f5f3e9;color:var(--hb-forest)}
html.hb-premium-enabled .screen .danger{color:#a32127;background:#fff0ed}
html.hb-premium-enabled .screen .ok{color:#076344;background:#e8f5ed}
html.hb-premium-enabled #input .switch{background:#f3f0e8;padding:5px;border-radius:18px;gap:4px}
html.hb-premium-enabled #input .switch button{background:transparent;color:var(--hb-forest);border-radius:14px;font-weight:800}
html.hb-premium-enabled #input .switch button.on{background:linear-gradient(140deg,#0d6448,#063b2b);color:#fff}
html.hb-premium-enabled .screen .chip.on{background:var(--hb-green);color:white}
html.hb-premium-enabled .screen :is(.meter,.track){background:#eee9dc}
html.hb-premium-enabled .screen .meter span,html.hb-premium-enabled .screen .track .fill{background:linear-gradient(90deg,#0d6247,#d4af37)}
html.hb-premium-enabled #hbRepaymentV2Integrated .repay-v2{background:transparent;color:var(--hb-text)}
html.hb-premium-enabled #hbRepaymentV2Integrated .repay-v2-hero{background:linear-gradient(130deg,#073f2d,#13684a)!important;color:#fff;border:1px solid #cbaa55;border-radius:20px}
html.hb-premium-enabled #hbRepaymentV2Integrated .hb-repayment-v2-readonly-notice{background:#e9f4eb;color:#13563d;border:1px solid #d5e7d9}
html.hb-premium-enabled .nav{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px;max-width:980px;padding:8px 7px calc(8px + env(safe-area-inset-bottom,0px))!important;border-top:1px solid #e4e7de;border-radius:18px 18px 0 0;background:#fff;box-shadow:0 -7px 24px #0f35261a;z-index:30}
html.hb-premium-enabled .nav button{min-height:56px!important;min-width:0!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;margin:0!important;padding:5px 1px!important;border-radius:13px;border:1px solid transparent;background:transparent;color:#214332;font-size:10px!important;font-weight:800;line-height:1.15;white-space:nowrap}
html.hb-premium-enabled .nav button.on{background:linear-gradient(140deg,#0d6749,#053a2a)!important;color:white;box-shadow:0 3px 8px #003b2d22}
html.hb-premium-enabled .nav .hb-premium-nav-icon{width:23px!important;height:21px!important;display:flex;align-items:center;justify-content:center;margin:0!important;font-size:0!important}
html.hb-premium-enabled .nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
html.hb-premium-enabled .nav button.on svg{stroke:#f5d575}
html.hb-premium-enabled #appBootSplash{background:#f8f6f0}
html.hb-premium-enabled #appBootSplash .boot-mark{background:#0f4d3a;color:#edd485;overflow:hidden}html.hb-premium-enabled #appBootSplash .boot-mark img{width:100%;height:100%;display:block;border-radius:16px}
html.hb-premium-enabled #loginGate{background:#f8f6f0f5}
html.hb-premium-enabled .loginCard{border:1px solid #e3e7df;box-shadow:0 15px 45px #0c422a22}
@media(max-width:390px){html.hb-premium-enabled .hb-premium-header{gap:10px;padding:17px 13px}html.hb-premium-enabled .hb-premium-logo{width:50px;height:50px;flex-basis:50px;border-radius:13px}html.hb-premium-enabled .hb-premium-brand h1{font-size:21px}html.hb-premium-enabled .nav{gap:1px;padding-inline:2px!important}html.hb-premium-enabled .nav button{font-size:9px!important;min-height:52px!important}}
@media(max-width:335px){html.hb-premium-enabled .hb-premium-brand h1{font-size:19px}html.hb-premium-enabled .nav button{font-size:8.5px!important}}
@media(prefers-reduced-motion:reduce){html.hb-premium-enabled .screen button{transition:none}}


/* Premium UI batch 2: HOME, INPUT, LIST, PLAN. Display-only changes.
   Existing tab IDs, finance writers, DOM input values and payment states remain intact. */
/* 01 — Home: authoritative existing forecast card, now emerald rather than black. */
html.hb-premium-enabled #home .uix-main-kpi{
 background:linear-gradient(125deg,#063e2c,#0f6044 70%,#176e4c)!important;
 border:1px solid #cba64e;color:#fff;box-shadow:0 8px 20px rgba(11,68,45,.13);
 position:relative;overflow:hidden;
}
html.hb-premium-enabled #home .uix-main-kpi:after{
 content:"";position:absolute;right:-55px;bottom:-75px;width:215px;height:150px;
 border:2px solid rgba(235,199,113,.3);border-radius:50%;pointer-events:none;
}
html.hb-premium-enabled #home .uix-main-kpi .uix-kpi-label,
html.hb-premium-enabled #home .uix-main-kpi .uix-kpi-note{color:#e6eee7}
html.hb-premium-enabled #home .uix-main-kpi .uix-main-amount{color:#fff;font-variant-numeric:tabular-nums}
/* 02 — Home: editorial section labels and compact white metric tiles. */
html.hb-premium-enabled #home .uix-section-head h2{color:#073e2c;letter-spacing:.015em}
html.hb-premium-enabled #home .uix-section-head span{color:#66786e}
html.hb-premium-enabled #home .uix-summary-card{border:1px solid #e5e6dc;border-radius:19px;box-shadow:0 5px 18px rgba(14,56,37,.045)}
html.hb-premium-enabled #home .uix-sub-kpi,
html.hb-premium-enabled #home .uix-money-row{
 background:linear-gradient(150deg,#fffdf9,#f7f7f1);border:1px solid #e7e9df;border-radius:15px;
}
html.hb-premium-enabled #home .uix-sub-kpi strong,
html.hb-premium-enabled #home .uix-money-row strong{color:#194936;font-variant-numeric:tabular-nums}
html.hb-premium-enabled #home .uix-sub-kpi .uix-bad,
html.hb-premium-enabled #home .uix-money-row .uix-bad{color:#a62c32}
/* 03 — Home: actionable alerts, upcoming bill items and existing expandable details. */
html.hb-premium-enabled #home .uix-today-action-index{background:#f2eddc;color:#876219}
html.hb-premium-enabled #home .uix-today-action{border-color:#e8e8dd}
html.hb-premium-enabled #home :is(.uix-producer-details,#uixDailyBalanceDetails){border-color:#e3e8dc;border-radius:17px}
html.hb-premium-enabled #home .uix-producer-details>summary{color:#12432e}
html.hb-premium-enabled #home #uixHomeEarnRepay #financialCommandHome{border-color:#dfe9dc!important}
html.hb-premium-enabled #home #uixHomeEarnRepay #financialCommandHome .rf-hero{background:#edf6ef!important;color:#103e2a!important}
html.hb-premium-enabled #home #uixHomeEarnRepay #financialCommandHome .rf-hero strong{color:#0c5037!important}
/* 04 — Input: premium three-way mode switch with existing on-click handlers. */
html.hb-premium-enabled #input>.hb-tx-entry>h2.title{margin:0 0 14px}
html.hb-premium-enabled #input>.hb-tx-entry>.switch{
 background:#f3f1e9;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 padding:5px;gap:4px;border:1px solid #e8e6db;border-radius:17px;margin-bottom:16px;
}
html.hb-premium-enabled #input>.hb-tx-entry>.switch button{
 min-width:0;min-height:47px!important;font-size:15px;font-weight:850;border-radius:13px;
}
html.hb-premium-enabled #input>.hb-tx-entry>.switch button.on{
 box-shadow:0 3px 10px rgba(7,64,45,.18);background:linear-gradient(140deg,#116b4b,#063e2c);color:white;
}
/* 05 — Input: visible labels and two-column details in source order. */
html.hb-premium-enabled #input>.hb-tx-entry>.form{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;
 align-items:end;min-width:0;
}
html.hb-premium-enabled #input>.hb-tx-entry>.form>.hb-premium-field-label{
 display:block;align-self:end;font-size:12px;font-weight:850;color:#355945;margin:0 2px 0;
}
html.hb-premium-enabled #input .hb-premium-field-label[for=amt]{grid-area:1/1/2/3}
html.hb-premium-enabled #input #amt{grid-area:2/1/3/3;font-size:26px;font-weight:850;height:62px;text-align:right;padding-right:16px;min-width:0;margin:0;background:#fffdf6;border:1.5px solid #c5ad65}
html.hb-premium-enabled #input .hb-premium-field-label[for=date]{grid-area:3/1/4/2}
html.hb-premium-enabled #input #date{grid-area:4/1/5/2;margin:0}
html.hb-premium-enabled #input .hb-premium-field-label[for=cat],
html.hb-premium-enabled #input .hb-premium-field-label[for=from]{grid-area:3/2/4/3}
html.hb-premium-enabled #input #cat,html.hb-premium-enabled #input #from{grid-area:4/2/5/3;margin:0}
html.hb-premium-enabled #input .hb-premium-field-label[for=acc],
html.hb-premium-enabled #input .hb-premium-field-label[for=to]{grid-area:5/1/6/2}
html.hb-premium-enabled #input #acc,html.hb-premium-enabled #input #to{grid-area:6/1/7/2;margin:0}
html.hb-premium-enabled #input .hb-premium-field-label[for=memo]{grid-area:5/2/6/3}
html.hb-premium-enabled #input #memo{grid-area:6/2/7/3;margin:0;grid-column:2;min-width:0}
html.hb-premium-enabled #input>.hb-tx-entry>.form>.hide+.hb-premium-field-label{display:none}
html.hb-premium-enabled #input>.hb-tx-entry>.form>.help{grid-column:1/-1}
html.hb-premium-enabled #input #tplChips,html.hb-premium-enabled #input #catChips{gap:7px;padding:3px 0 7px;flex-wrap:wrap;overflow:visible}
html.hb-premium-enabled #input #tplChips .chip,
html.hb-premium-enabled #input #catChips .chip{background:#f5f2e7;color:#325d43;border:1px solid #e9dfc4;font-weight:750;flex:0 0 auto;max-width:100%}
html.hb-premium-enabled #input>.hb-tx-entry>.grid{margin-top:12px;grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
html.hb-premium-enabled #input>.hb-tx-entry>.grid button[onclick*="saveTx"]{font-size:16px;min-height:54px;border-radius:16px;background:linear-gradient(135deg,#136849,#063d2b);color:#fff}
/* 06 — List: search first, controls remain the same DOM elements and listeners. */
html.hb-premium-enabled #list .hb-list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
html.hb-premium-enabled #list .hb-list-filter-search{grid-column:1/-1}
html.hb-premium-enabled #list .hb-list-filter>span{font-size:12px;color:#335a42}
html.hb-premium-enabled #list #listSearch{border:1.5px solid #c7d8c7;min-height:48px;padding-left:15px}
html.hb-premium-enabled #list #listSummary{margin-top:14px}
html.hb-premium-enabled #list #listSummary .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.hb-premium-enabled #list #listSummary .box{background:#f8f7f1;border-color:#e6e9dd}
html.hb-premium-enabled #list #listSummary .num{font-size:clamp(18px,4.4vw,26px)}
/* 07 — List: readable transactions and real edit/delete controls. */
html.hb-premium-enabled #list .hb-list-row{background:#fff;grid-template-columns:minmax(0,1fr) auto;border:1px solid #e4e8df;border-bottom:0;border-radius:16px 16px 0 0;padding:12px 13px 8px;gap:10px;margin-top:9px}
html.hb-premium-enabled #list .hb-list-row+.actions{background:#fff;border:1px solid #e4e8df;border-top:0;border-radius:0 0 16px 16px;margin:0 0 10px;padding:4px 12px 10px}
html.hb-premium-enabled #list .hb-list-row-amount{font-variant-numeric:tabular-nums;font-size:clamp(13px,3.4vw,16px);overflow-wrap:anywhere;white-space:normal}
html.hb-premium-enabled #list .hb-list-main b{color:#213b2b}
html.hb-premium-enabled #list .hb-list-account-pill{background:#f3f1e8;color:#465844}
html.hb-premium-enabled #list .hb-list-row+.actions button{min-height:44px;padding:9px 15px}
html.hb-premium-enabled #list .hb-list-row+.actions button.btn2{background:#eaf3ec;color:#0b5a3d}
html.hb-premium-enabled #list .hb-list-row+.actions button.danger{background:#fff3f1;color:#a1282d}
/* 08 — Plan: preserve all existing forms and their save handlers. */
html.hb-premium-enabled #plan .hb-plan-entry .form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html.hb-premium-enabled #plan #payName,html.hb-premium-enabled #plan #ipName{grid-column:1/-1}
html.hb-premium-enabled #plan #payDate,html.hb-premium-enabled #plan #ipDate,
html.hb-premium-enabled #plan #payAmt,html.hb-premium-enabled #plan #ipAmt{min-width:0}
html.hb-premium-enabled #plan .hb-plan-entry .form>button{grid-column:1/-1;min-height:49px;border-radius:15px;background:linear-gradient(135deg,#14674a,#07422f);color:#fff}
html.hb-premium-enabled #plan>.card:first-child>h3.sub{margin-top:17px}
/* 09 — Plan: existing stateful payment totals and due cards with honest status colors. */
html.hb-premium-enabled #pays .hb-payment-summary{border:1px solid #e0e6dc;background:#fffdf9;border-radius:18px;padding:14px}
html.hb-premium-enabled #pays .hb-payment-summary-primary{background:linear-gradient(130deg,#0b5038,#12664a);border-radius:15px;padding:14px}
html.hb-premium-enabled #pays .hb-payment-summary-primary :is(span,strong){color:white}
html.hb-premium-enabled #pays .hb-payment-summary-primary strong{font-size:clamp(23px,6vw,30px);font-variant-numeric:tabular-nums}
html.hb-premium-enabled #pays .hb-payment-summary-kpi{background:#f6f6ef;border:1px solid #e7e9dc;border-radius:13px}
html.hb-premium-enabled #pays .hb-payment-priority-head b,
html.hb-premium-enabled #pays .hb-payment-month-head b{color:#0f4d3a}
html.hb-premium-enabled #pays .hb-payment-card{border:1px solid #e1e7dc!important;border-radius:16px;padding:14px!important}
html.hb-premium-enabled #pays .hb-payment-card[data-payment-state="paid"]{opacity:1;background:#eff7f0!important;border-color:#cfe3d2!important}
html.hb-premium-enabled #pays .hb-payment-card[data-payment-state="prepared"]{background:#fff9e9!important;border-color:#e9dcba!important}
html.hb-premium-enabled #pays .hb-payment-card[data-payment-priority="overdue"]{background:#fff3f2!important;border-color:#efc5c3!important}
html.hb-premium-enabled #pays .hb-payment-card .actions button{min-height:44px}
html.hb-premium-enabled #pays .hb-payment-bucket{border:1px solid #e0e9dc;border-radius:16px;margin:9px 0;overflow:hidden}
html.hb-premium-enabled #pays .hb-payment-bucket>summary{color:#0b5037;background:#f6f8f2;min-height:44px}
html.hb-premium-enabled #pays .hb-payment-bucket-body{padding:3px 9px 9px}
/* 10 — iPhone: two-column forms only where legible, safe keyboard and focus. */
@media(max-width:640px){
 html.hb-premium-enabled #input>.hb-tx-entry>.form,
 html.hb-premium-enabled #plan .hb-plan-entry .form,
 html.hb-premium-enabled #list .hb-list-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:360px){
 html.hb-premium-enabled #input>.hb-tx-entry>.form{gap:6px}
 html.hb-premium-enabled #input .hb-premium-field-label{font-size:11px}
 html.hb-premium-enabled #input #amt{font-size:24px}
 html.hb-premium-enabled #list .hb-list-row{grid-template-columns:minmax(0,1fr);gap:4px}
 html.hb-premium-enabled #list .hb-list-row-amount{text-align:left}
 html.hb-premium-enabled #pays .hb-payment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:430px){
 html.hb-premium-enabled #input .hb-premium-field-label[for=date]{grid-area:3/1/4/3}
 html.hb-premium-enabled #input #date{grid-area:4/1/5/3;width:100%}
 html.hb-premium-enabled #input>.hb-tx-entry>.form>.help{grid-area:5/1/6/3}
 html.hb-premium-enabled #input .hb-premium-field-label[for=cat],
 html.hb-premium-enabled #input .hb-premium-field-label[for=from]{grid-area:6/1/7/2}
 html.hb-premium-enabled #input #cat,html.hb-premium-enabled #input #from{grid-area:7/1/8/2}
 html.hb-premium-enabled #input .hb-premium-field-label[for=acc],
 html.hb-premium-enabled #input .hb-premium-field-label[for=to]{grid-area:6/2/7/3}
 html.hb-premium-enabled #input #acc,html.hb-premium-enabled #input #to{grid-area:7/2/8/3}
 html.hb-premium-enabled #input .hb-premium-field-label[for=memo]{grid-area:8/1/9/3}
 html.hb-premium-enabled #input #memo{grid-area:9/1/10/3}
}
html.hb-premium-enabled :is(#home,#input,#list,#plan) :is(button,input,select,textarea,summary):focus-visible{
 outline:3px solid #b78b31;outline-offset:2px;
}


/* Premium UI batch 3 — genuine seven-tab analysis/settings and iPhone refinements.
   Visual presentation only.  No simulated amounts, backend calls, or writer hooks. */
/* 1. Analysis: range selector and active preset chips. */
html.hb-premium-enabled #analysis #analysisPlusPanel{
 background:#fff;border:1px solid #e4e9df;border-radius:20px;box-shadow:0 5px 17px rgba(12,51,31,.055);
}
html.hb-premium-enabled #analysis #analysisPlusPanel>.title{color:#0a4631;font-size:clamp(22px,5.2vw,27px);letter-spacing:.015em}
html.hb-premium-enabled #analysis .analysis-plus-range{
 background:#faf8f0;border:1px solid #e9e1ce;border-radius:18px;padding:13px;
}
html.hb-premium-enabled #analysis .analysis-plus-presets{
 display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;
 padding:4px 1px 10px;-webkit-overflow-scrolling:touch;
}
html.hb-premium-enabled #analysis .analysis-plus-presets button{
 flex:0 0 auto;scroll-snap-align:start;min-height:44px;padding:10px 13px;border-radius:999px;
 background:#fff;border:1px solid #dbe6d9;color:#20513a;font-weight:800;box-shadow:none;
}
html.hb-premium-enabled #analysis .analysis-plus-presets button.on,
html.hb-premium-enabled #analysis .analysis-plus-presets button[aria-pressed="true"]{
 color:#fff;background:linear-gradient(135deg,#116747,#063b2b);border-color:#156c4a;
}
/* 2. Analysis: accessible custom date controls without clipping on iPhone. */
html.hb-premium-enabled #analysis .analysis-plus-custom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:end}
html.hb-premium-enabled #analysis .analysis-plus-custom label{display:block;min-width:0;color:#30523d;font-size:12px;font-weight:850}
html.hb-premium-enabled #analysis .analysis-plus-custom input{display:block;min-width:0;max-width:100%;width:100%;font-size:15px;height:48px;margin:5px 0 0}
html.hb-premium-enabled #analysis .analysis-plus-custom button{
 grid-column:1/-1;margin:0;min-height:48px;width:100%;color:white;
 background:linear-gradient(140deg,#0c5f42,#063b2b);border:1px solid #0d593e;border-radius:14px;font-weight:850;
}
html.hb-premium-enabled #analysis .analysis-plus-range-label{color:#315a43;line-height:1.55}
html.hb-premium-enabled #analysis .analysis-plus-error:not(:empty){color:#a7232b;font-weight:800}
/* 3. Analysis: four compact and legible existing income/expense/profit/savings KPIs. */
html.hb-premium-enabled #analysis .analysis-plus-summary{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:14px 0;
}
html.hb-premium-enabled #analysis .analysis-plus-summary .box{
 min-width:0;padding:13px;border:1px solid #e2e8df;background:linear-gradient(145deg,#fffdf9,#f7f8f2);border-radius:16px;
}
html.hb-premium-enabled #analysis .analysis-plus-summary .label{font-size:12px;color:#526b5b;font-weight:800}
html.hb-premium-enabled #analysis .analysis-plus-summary .num{font-size:clamp(18px,5.2vw,26px);line-height:1.28;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
/* 4. Analysis: chart area, legend and category proportions. */
html.hb-premium-enabled #analysis .analysis-plus-section{
 margin-top:17px;padding:14px 12px;background:#fff;border:1px solid #e8e9e2;border-radius:17px;min-width:0;
}
html.hb-premium-enabled #analysis .analysis-plus-section h3.sub{margin:0 0 10px;color:#0c4c35;font-size:16px}
html.hb-premium-enabled #analysis .analysis-plus-section>.chiprow{display:flex;flex-wrap:wrap;gap:6px}
html.hb-premium-enabled #analysis .analysis-plus-section .chip{width:auto;min-height:44px;border:1px solid #dbe8dc;border-radius:999px;background:#f4f6f1;color:#24563d;font-weight:800}
html.hb-premium-enabled #analysis .analysis-plus-section .chip.on,
html.hb-premium-enabled #analysis .analysis-plus-section .chip[aria-pressed="true"]{background:#0f4d3a;color:#fff;border-color:#0f4d3a}
html.hb-premium-enabled #analysis .analysis-plus-chart-scroll{
 border:1px solid #ebeee7;border-radius:13px;background:#fafcf8;max-width:100%;scrollbar-color:#b29b53 #f5f4e9;
}
html.hb-premium-enabled #analysis .analysis-plus-chart-scroll svg{max-height:260px}
html.hb-premium-enabled #analysis .analysis-plus-legend{color:#415d4a;line-height:1.5}
html.hb-premium-enabled #analysis .analysis-plus-compare{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
html.hb-premium-enabled #analysis .analysis-plus-compare .box{min-width:0;background:#f7f8f3;border:1px solid #e6e9df}
/* 5. Settings: green tier headers and discoverable groups. */
html.hb-premium-enabled #settings .uix-settings-title h2{font-size:clamp(22px,5.5vw,27px);color:#093f2d;letter-spacing:.015em}
html.hb-premium-enabled #settings .uix-settings-title p{color:#4e6957;line-height:1.55}
html.hb-premium-enabled #settings .uix-settings-tier-head b{font-size:15px;color:#104a34}
html.hb-premium-enabled #settings #uixSettingsAdvanced .uix-settings-tier-head b{color:#365f47}
html.hb-premium-enabled #settings .uix-settings-group{
 border:1px solid #e0e7dc;border-radius:18px;background:#fff;box-shadow:0 4px 15px rgba(13,53,34,.045);overflow:hidden;
}
html.hb-premium-enabled #settings .uix-settings-group>summary{min-height:58px;padding:13px 15px;color:#164c36}
html.hb-premium-enabled #settings .uix-settings-summary-main b{color:#123d2b;font-weight:850}
html.hb-premium-enabled #settings .uix-settings-summary-main small{color:#637b68;font-size:11px}
/* 6. Settings: expanded controls, accounts and backup stay in place. */
html.hb-premium-enabled #settings .uix-settings-group[open]{border-color:#b8d0bc}
html.hb-premium-enabled #settings .uix-settings-group[open]>summary{background:#eef5ed;border-bottom:1px solid #dbe6d9}
html.hb-premium-enabled #settings .uix-settings-body{background:#fafaf6;border-top-color:#e4e9df}
html.hb-premium-enabled #settings .uix-settings-body>.card{border:1px solid #e1e7df;border-radius:16px}
html.hb-premium-enabled #settings :is(.uix-settings-subdetails,.uix-settings-link-card){border-color:#e0e9df;background:#fff}
html.hb-premium-enabled #settings .uix-account-item>summary{color:#17432d;min-height:52px}
html.hb-premium-enabled #settings #uixSettingsAccounts .uix-account-summary-amount{font-variant-numeric:tabular-nums;overflow-wrap:anywhere;white-space:normal}
html.hb-premium-enabled #settings .uix-settings-close{background:#edf4ec;color:#0d5138;border:1px solid #d6e4d4;font-weight:800}
/* 7. Settings: preserve high-visibility danger and keep accidental-tap spacing. */
html.hb-premium-enabled #settings #uixSettingsDanger{margin-top:18px;border-color:#e9bec4;background:#fffafa}
html.hb-premium-enabled #settings #uixSettingsDanger>summary{background:#fff3f2}
html.hb-premium-enabled #settings #uixSettingsDanger>summary .uix-settings-summary-title{color:#9c1d2d}
html.hb-premium-enabled #settings #uixSettingsDanger .uix-danger-box{background:#fff1f2;border-color:#edc2c8}
html.hb-premium-enabled #settings #uixSettingsDanger .danger{background:#a72535;color:#fff;border-color:#a72535;min-height:48px}
/* 8. Responsive: prevent overflows in all seven tabs without shrinking money labels. */
html.hb-premium-enabled :is(#home,#input,#list,#plan,#analysis,#settings){min-width:0;overflow-wrap:break-word}
html.hb-premium-enabled :is(#home,#input,#list,#plan,#analysis,#settings) :is(.grid,.row,.form)>*{min-width:0}
html.hb-premium-enabled :is(#home,#input,#list,#plan,#analysis,#settings) :is(.num,.hb-payment-amount,.hb-list-row-amount){font-variant-numeric:tabular-nums}
html.hb-premium-enabled :is(#analysis,#settings) :is(summary,button,input,select,textarea):focus-visible{
 outline:3px solid #b88e32;outline-offset:2px
}
@media(max-width:390px){
 html.hb-premium-enabled #analysis #analysisPlusPanel{padding:13px}
 html.hb-premium-enabled #analysis .analysis-plus-section{padding:12px 9px}
 html.hb-premium-enabled #analysis .analysis-plus-compare{grid-template-columns:1fr}
 html.hb-premium-enabled #analysis .analysis-plus-custom input{font-size:14px;padding:10px 6px}
 html.hb-premium-enabled #settings .uix-settings-body{padding:8px}
 html.hb-premium-enabled #settings .uix-settings-summary-main b{font-size:14px}
}
@media(max-width:340px){
 html.hb-premium-enabled #analysis .analysis-plus-summary .num{font-size:17px}
 html.hb-premium-enabled #analysis .analysis-plus-custom{grid-template-columns:1fr}
 html.hb-premium-enabled #analysis .analysis-plus-custom button{grid-column:1}
 html.hb-premium-enabled #settings .uix-settings-group>summary{padding:11px}
}
@media(prefers-reduced-motion:reduce){html.hb-premium-enabled #analysis .analysis-plus-presets{scroll-behavior:auto}}


/* Premium batch 4 — adaptive iPhone layout refinements; CSS only. */
/* 1. Readable numbers inside home summary; never hide forecast or alerts. */
html.hb-premium-enabled #home .uix-main-amount{
 font-variant-numeric:tabular-nums;letter-spacing:-.025em;line-height:1.12;
 font-size:clamp(26px,7.2vw,38px);overflow-wrap:anywhere
}
html.hb-premium-enabled #home .uix-money-grid{gap:9px;min-width:0}
html.hb-premium-enabled #home .uix-money-row{min-width:0;padding:12px}
html.hb-premium-enabled #home .uix-money-row strong{font-size:clamp(17px,4.7vw,23px);overflow-wrap:anywhere}
/* 2. Date, amount and category controls remain touch-safe at 320px. */
html.hb-premium-enabled #input .hb-premium-field-label{line-height:1.35}
html.hb-premium-enabled #input #date,html.hb-premium-enabled #input #amt{
 box-sizing:border-box;max-width:100%;min-width:0
}
html.hb-premium-enabled #input #cat,html.hb-premium-enabled #input #acc,
html.hb-premium-enabled #input #from,html.hb-premium-enabled #input #to{font-size:16px;text-overflow:ellipsis}
html.hb-premium-enabled #input .switch button[aria-pressed="true"]{background:#0a6244;color:#fff}
/* 3. Search and transaction details: no truncated account names. */
html.hb-premium-enabled #list .hb-list-row-amount{font-weight:850;white-space:normal;text-align:right;max-width:100%}
html.hb-premium-enabled #list .hb-list-main{min-width:0;overflow-wrap:anywhere}
html.hb-premium-enabled #list .hb-list-date{font-size:11px;color:#516759}
html.hb-premium-enabled #list .hb-list-memo{color:#44594b;line-height:1.55}
html.hb-premium-enabled #list .hb-list-filters{min-width:0}
html.hb-premium-enabled #list .hb-list-filter :is(input,select){width:100%;min-width:0}
/* 4. Schedule: distinguish actions without making settled amounts look editable. */
html.hb-premium-enabled #pays .hb-payment-card .actions{display:flex;flex-wrap:wrap;gap:6px}
html.hb-premium-enabled #pays .hb-payment-card .actions button{
 flex:1 1 auto;width:auto;min-width:88px;min-height:44px;padding:9px 10px;
}
html.hb-premium-enabled #plan #incomePlans .row{align-items:start;gap:8px}
html.hb-premium-enabled #plan #incomePlans .row>*{min-width:0;overflow-wrap:anywhere}
/* 5. Chart labels + pies use existing green/gold display colors. */
html.hb-premium-enabled #analysis .analysis-plus-section .row{gap:9px;align-items:center}
html.hb-premium-enabled #analysis .analysis-plus-section .row>*{min-width:0;overflow-wrap:anywhere}
html.hb-premium-enabled #analysis .analysis-plus-section .row b{
 font-variant-numeric:tabular-nums;font-size:clamp(12px,3.5vw,15px)
}
html.hb-premium-enabled #analysis .analysis-plus-legend{font-weight:750}
html.hb-premium-enabled #analysis .analysis-plus-chart-scroll{
 overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch
}
/* 6. Settings long balance names and subdetail controls. */
html.hb-premium-enabled #settings .uix-account-item>summary{
 grid-template-columns:minmax(0,1fr) minmax(0,auto) 16px;gap:5px 8px
}
html.hb-premium-enabled #settings .uix-account-summary-name{overflow-wrap:anywhere;line-height:1.35}
html.hb-premium-enabled #settings .uix-account-summary-amount{
 max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:right
}
html.hb-premium-enabled #settings .uix-settings-body :is(button,summary){min-height:44px}
html.hb-premium-enabled #settings .uix-card-trace-row{gap:10px}
/* 7. Keyboard focus should scroll clear of the fixed 7-tab nav. */
html.hb-premium-enabled{scroll-padding-bottom:calc(108px + env(safe-area-inset-bottom,0px))}
html.hb-premium-enabled :is(#home,#input,#list,#plan,#analysis,#settings)
 :is(input,select,textarea,button,summary):focus-visible{
 scroll-margin-bottom:calc(120px + env(safe-area-inset-bottom,0px))
}
html.hb-premium-enabled .nav button:focus-visible{
 outline:3px solid #bd9135;outline-offset:-3px
}
/* 8. Narrow screens retain all information; account text takes a second row. */
@media(max-width:375px){
 html.hb-premium-enabled #home .uix-money-grid{grid-template-columns:1fr}
 html.hb-premium-enabled #list .hb-list-row{grid-template-columns:minmax(0,1fr);gap:4px}
 html.hb-premium-enabled #list .hb-list-row-amount{text-align:left}
 html.hb-premium-enabled #settings .uix-account-item>summary{
  grid-template-columns:minmax(0,1fr) 20px
 }
 html.hb-premium-enabled #settings .uix-account-summary-name{grid-column:1}
 html.hb-premium-enabled #settings .uix-account-summary-amount{
  grid-column:1;grid-row:2;text-align:left
 }
 html.hb-premium-enabled #settings .uix-account-item>summary:after{grid-column:2;grid-row:1/3}
}
@media(max-width:340px){
 html.hb-premium-enabled #home .uix-main-amount{font-size:clamp(24px,7.5vw,30px)}
 html.hb-premium-enabled #plan .hb-plan-entry .form{grid-template-columns:1fr}
 html.hb-premium-enabled #plan #payName,html.hb-premium-enabled #plan #ipName,
 html.hb-premium-enabled #plan .hb-plan-entry .form>button{grid-column:1}
 html.hb-premium-enabled #input>.hb-tx-entry>.grid{grid-template-columns:1fr 1fr}
 html.hb-premium-enabled #analysis .analysis-plus-chart-scroll{max-width:100%}
}


/* Premium batch 5 — iPhone ergonomics only; do not change financial controls. */
/* Keep bottom navigation touchable and legible across 320–430px widths. */
html.hb-premium-enabled .nav button{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
html.hb-premium-enabled .nav button[aria-current="page"]{font-weight:850}
html.hb-premium-enabled .nav button:focus-visible{outline:3px solid #bd9135;outline-offset:-3px}
/* Preserve full money amounts, including wider balances and forecasts. */
html.hb-premium-enabled #home .uix-main-kpi,
html.hb-premium-enabled #home .uix-sub-grid,
html.hb-premium-enabled #home .uix-sub-kpi{min-width:0}
html.hb-premium-enabled #home .uix-main-amount{overflow-wrap:anywhere;word-break:normal}
html.hb-premium-enabled #home .uix-sub-kpi strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
/* Upcoming payment card buttons retain their original handlers and states. */
html.hb-premium-enabled #pays .hb-payment-card{min-width:0;overflow-wrap:anywhere}
html.hb-premium-enabled #pays .hb-payment-card .actions button{
 min-height:44px;white-space:normal;line-height:1.35
}
html.hb-premium-enabled #plan .form>*{min-width:0}
/* Category legend uses stacked rows instead of crowding chart labels. */
html.hb-premium-enabled #analysis .analysis-plus-section>.grid{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}
html.hb-premium-enabled #analysis .analysis-plus-section>.grid>div{min-width:0}
html.hb-premium-enabled #analysis .analysis-plus-section>.grid svg{max-width:100%}
html.hb-premium-enabled #analysis .analysis-plus-section .row span{overflow-wrap:anywhere}
/* Account names and actions must remain readable within settings cards. */
html.hb-premium-enabled #settings .uix-account-summary-name{min-width:0}
html.hb-premium-enabled #settings .uix-settings-body :is(input,select,textarea){
 box-sizing:border-box;width:100%;max-width:100%;min-width:0
}
@media(max-width:375px){
 html.hb-premium-enabled #home .uix-sub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.hb-premium-enabled #home .uix-sub-grid>.uix-sub-kpi:last-child:nth-child(odd){grid-column:1/-1}
 html.hb-premium-enabled #analysis .analysis-plus-section>.grid{grid-template-columns:1fr}
 html.hb-premium-enabled .nav button{padding-inline:0!important}
}
@media(max-width:340px){
 html.hb-premium-enabled #home .uix-sub-grid{grid-template-columns:1fr}
 html.hb-premium-enabled #home .uix-sub-grid>.uix-sub-kpi:last-child:nth-child(odd){grid-column:1}
 html.hb-premium-enabled #pays .hb-payment-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.hb-premium-enabled #analysis .analysis-plus-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
 html.hb-premium-enabled .nav button{transition:none}
}


/* Premium batch 8 — approved reference layout, applied to existing real screens.
   No hidden actions, generated financial data, DOM moves or mutations. */
/* 01. Home's first balance card is the editorial dark-emerald focal point. */
html.hb-premium-enabled #home.hb-home-v2 .hbv2-balance{
 background:linear-gradient(130deg,#063c2b 0%,#116044 65%,#0a4936 100%)!important;
 border:1px solid #d5b75d!important;border-radius:23px;
 box-shadow:0 10px 26px rgba(8,58,40,.17);color:#fff;padding:19px;
 position:relative;isolation:isolate;overflow:hidden;
}
html.hb-premium-enabled #home.hb-home-v2 .hbv2-balance:before{
 content:"";position:absolute;right:-76px;top:-80px;width:205px;height:205px;
 border:2px solid rgba(248,210,126,.25);border-radius:50%;pointer-events:none;z-index:-1
}
html.hb-premium-enabled #home .hbv2-balance :is(.hbv2-balance-head b,.hbv2-balance-amount,.hbv2-balance-meta b){color:#fff}
html.hb-premium-enabled #home .hbv2-balance :is(.hbv2-balance-head span,.hbv2-balance-note,.hbv2-balance-meta,.hbv2-balance-empty){color:#ecf1e9}
html.hb-premium-enabled #home .hbv2-balance-amount{font-size:clamp(25px,8vw,39px);font-variant-numeric:tabular-nums;letter-spacing:-.025em}
html.hb-premium-enabled #home .hbv2-theory-cell{background:rgba(255,255,255,.13);border:1px solid rgba(249,226,166,.25);color:#fff}
html.hb-premium-enabled #home .hbv2-theory-cell :is(span,b){color:#fff}
html.hb-premium-enabled #home .hbv2-balance-meta{border-top-color:rgba(250,226,159,.3)}
html.hb-premium-enabled #home .hbv2-reconcile{color:#1b3b2c;background:#fff;border-color:#d7e6d7}
html.hb-premium-enabled #home .hbv2-reconcile :is(b,small){color:inherit}
html.hb-premium-enabled #home .hbv2-reconcile.warn{background:#fff5e7;color:#8b3b22;border-color:#f1d2ac}
/* 02. Three home quick-actions adopt a consistent premium palette, no new handlers. */
html.hb-premium-enabled #home .hbv2-actions{gap:9px}
html.hb-premium-enabled #home .hbv2-action{
 border-radius:17px;min-height:78px;padding:12px 5px;box-shadow:0 3px 10px rgba(10,56,37,.1);
 line-height:1.2;overflow-wrap:anywhere;
}
html.hb-premium-enabled #home .hbv2-action.balance{background:#f8f5e9;color:#0a4d34;border:1px solid #dccb96}
html.hb-premium-enabled #home .hbv2-action.input{background:linear-gradient(135deg,#14684b,#06402e);color:#fff;border:1px solid #0e5e42}
html.hb-premium-enabled #home .hbv2-action.plan{background:#d4af37;color:#1f351f;border:1px solid #b9952c}
html.hb-premium-enabled #home .hbv2-action .hbv2-icon{font-size:23px}
html.hb-premium-enabled #home .hbv2-action small{font-size:10px;opacity:1}
/* 03. Home sections and pending payment previews read as a calm ledger. */
html.hb-premium-enabled #home .uix-home-section{margin-bottom:20px}
html.hb-premium-enabled #home .uix-section-head{align-items:baseline;margin-bottom:11px}
html.hb-premium-enabled #home .uix-section-head h2{font-size:18px;letter-spacing:.01em}
html.hb-premium-enabled #home .uix-summary-card{padding:16px;border-radius:19px}
html.hb-premium-enabled #home .uix-list-row{grid-template-columns:58px minmax(0,1fr) auto;gap:8px}
html.hb-premium-enabled #home .uix-list-amount{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:#0c5239}
html.hb-premium-enabled #home #hbHomeV2More{border:1px solid #dfe6da;border-radius:19px;background:#fff}
html.hb-premium-enabled #home #hbHomeV2More>summary{color:#0c4b35}
/* 04. Entry amount and save are the highest priority: show separate calm helper panel. */
html.hb-premium-enabled #input>.hb-tx-entry{border-top:3px solid #d1b153}
html.hb-premium-enabled #input>.hb-tx-entry>h2.title{font-size:23px;color:#093d2d}
html.hb-premium-enabled #input #amt{background:linear-gradient(135deg,#fffdf4,#fff)!important;font-size:clamp(25px,7vw,33px)!important}
html.hb-premium-enabled #input>.hb-tx-entry>.grid button[onclick*="saveTx"]{
 background:linear-gradient(140deg,#116447,#063b2b)!important;box-shadow:0 4px 13px rgba(8,67,41,.15)
}
html.hb-premium-enabled #input #tplChips .chip{border-radius:999px}
html.hb-premium-enabled #input #catChips .chip{min-height:38px;border-radius:999px}
/* 05. History: distinguish summary figures from actions and keep search foremost. */
html.hb-premium-enabled #list .hb-list-filters{border:1px solid #e5e7de;background:#fff;padding:13px;border-radius:18px}
html.hb-premium-enabled #list #listSearch{background:#fafcf8;min-height:50px}
html.hb-premium-enabled #list #listSummary .box{padding:14px 10px;border-radius:15px}
html.hb-premium-enabled #list #listSummary .box .label{font-size:12px;font-weight:800}
html.hb-premium-enabled #list #listSummary .box .num{font-size:clamp(17px,4.6vw,25px);font-weight:900}
html.hb-premium-enabled #list .hb-list-row{border-left:3px solid #b2cbbb}
html.hb-premium-enabled #list .hb-list-row:has(.hb-list-row-amount.good){border-left-color:#0c7852}
html.hb-premium-enabled #list .hb-list-row:has(.hb-list-row-amount.bad){border-left-color:#d3a44b}
/* 06. Schedule: make genuinely unpaid totals dominant, statuses remain distinct. */
html.hb-premium-enabled #plan>.card:first-child>h2.title{font-size:23px}
html.hb-premium-enabled #pays .hb-payment-summary-primary{padding:16px;border-radius:16px}
html.hb-premium-enabled #pays .hb-payment-summary-primary strong{font-size:clamp(25px,7vw,33px);letter-spacing:-.025em}
html.hb-premium-enabled #pays .hb-payment-summary-grid{gap:8px}
html.hb-premium-enabled #pays .hb-payment-summary-kpi{padding:12px}
html.hb-premium-enabled #pays .hb-payment-summary-kpi strong{font-size:clamp(14px,4vw,19px);font-variant-numeric:tabular-nums}
html.hb-premium-enabled #pays .hb-payment-card[data-payment-state="prepared"]{border-left:4px solid #c8a444!important}
html.hb-premium-enabled #pays .hb-payment-card[data-payment-state="paid"]{border-left:4px solid #448766!important}
html.hb-premium-enabled #pays .hb-payment-card[data-payment-priority="overdue"]{border-left:4px solid #b83f45!important}
html.hb-premium-enabled #pays .hb-payment-card .hb-payment-amount{font-size:clamp(20px,5.7vw,26px)}
/* 07. Analysis: graph reads as a visual module, with accessible legibility. */
html.hb-premium-enabled #analysis .analysis-plus-summary .box:first-child{border-top:3px solid #13674a}
html.hb-premium-enabled #analysis .analysis-plus-summary .box:nth-child(2){border-top:3px solid #b6553a}
html.hb-premium-enabled #analysis .analysis-plus-summary .box:nth-child(3){border-top:3px solid #cfad48}
html.hb-premium-enabled #analysis .analysis-plus-summary .box:nth-child(4){border-top:3px solid #72a080}
html.hb-premium-enabled #analysis .analysis-plus-chart-scroll{background:linear-gradient(180deg,#fffdf8,#f7faf6)}
html.hb-premium-enabled #analysis .analysis-plus-legend{color:#3e5949;line-height:1.6}
html.hb-premium-enabled #analysis .analysis-plus-section h3.sub{font-size:17px}
/* 08. Settings: unmistakable groups; danger stays isolated and in sight. */
html.hb-premium-enabled #settings .uix-settings-tier-head{padding-bottom:7px;border-bottom:1px solid #e2e6d9}
html.hb-premium-enabled #settings .uix-settings-tier-head b{font-size:16px}
html.hb-premium-enabled #settings .uix-settings-group>summary{position:relative;padding-left:17px}
html.hb-premium-enabled #settings .uix-settings-group>summary:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;background:#c6a24c;border-radius:3px}
html.hb-premium-enabled #settings #uixSettingsDanger>summary:before{background:#b92f45}
html.hb-premium-enabled #settings .uix-settings-summary-main b{font-size:15px}
html.hb-premium-enabled #settings .uix-settings-body{padding-bottom:12px}
/* iPhone: do not truncate the home headline, actions, or account values. */
@media(max-width:375px){
 html.hb-premium-enabled #home .hbv2-theory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.hb-premium-enabled #home .hbv2-theory-cell:last-child:nth-child(odd){grid-column:1/-1}
 html.hb-premium-enabled #home .hbv2-actions{gap:5px}
 html.hb-premium-enabled #home .hbv2-action{min-height:74px;font-size:11px;padding:9px 2px}
 html.hb-premium-enabled #home .uix-list-row{grid-template-columns:52px minmax(0,1fr)}
 html.hb-premium-enabled #home .uix-list-amount{grid-column:2;text-align:left}
}
@media(max-width:335px){
 html.hb-premium-enabled #home .hbv2-balance{padding:14px}
 html.hb-premium-enabled #home .hbv2-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
 html.hb-premium-enabled #home .hbv2-action{font-size:10px}
 html.hb-premium-enabled #input>.hb-tx-entry{padding:12px}
 html.hb-premium-enabled #list .hb-list-filters{padding:9px}
 html.hb-premium-enabled #analysis .analysis-plus-summary .box{padding:11px}
}

/* Premium batch 9 — improve the order and density of the existing screens. */
html.hb-premium-enabled #home .hbv2-date{
 display:flex;justify-content:space-between;align-items:baseline;gap:8px;
}
html.hb-premium-enabled #home .hbv2-date h2{margin:0;color:#093d2d;font-size:23px}
html.hb-premium-enabled #home .hbv2-date span{margin:0;color:#526b5b;font-size:13px}
html.hb-premium-enabled #home .hbv2-balance-details>summary{
 min-height:44px;padding:11px 0;margin-top:4px;color:#fff3c9;font-size:13px;font-weight:800;cursor:pointer;
}
html.hb-premium-enabled #home .hbv2-action{min-height:58px;gap:4px;padding:8px 4px}
html.hb-premium-enabled #home .hbv2-action .hbv2-icon{font-size:20px}

html.hb-premium-enabled #plan .hb-plan-entry>details+details{margin-top:8px}
html.hb-premium-enabled #plan .hb-plan-entry summary,
html.hb-premium-enabled #analysis .analysis-plus-custom-details>summary{
 min-height:44px;padding:11px 13px;border:1px solid #d8e6db;border-radius:13px;
 background:#f6f8f2;color:#11523b;font-weight:800;cursor:pointer;
}
html.hb-premium-enabled #plan .hb-plan-entry details>.form,
html.hb-premium-enabled #analysis .analysis-plus-custom-details[open]>.analysis-plus-custom{margin-top:10px}
html.hb-premium-enabled #pays .hb-payment-status-line .pill{font-size:12px;font-weight:800}
html.hb-premium-enabled #pays [data-payment-state="pending"] .hb-payment-status-line .pill{
 background:#f1f4f0;color:#2c483b;
}
html.hb-premium-enabled #pays [data-payment-priority="overdue"]:is([data-payment-state="pending"],[data-payment-state="prepared"]) .hb-payment-status-line .pill{
 background:#f9dedb;color:#85252e;
}

html.hb-premium-enabled #analysis .analysis-plus-presets{
 flex-wrap:wrap;overflow:visible;scroll-snap-type:none;
}
html.hb-premium-enabled #analysis .analysis-plus-presets button{flex:0 0 auto;width:auto}
html.hb-premium-enabled #settings .uix-settings-group>summary{min-height:54px}
