/* One page heading on every app page, styled like Wallet (label, title, one line). */
.gw-page-head{display:block;width:100%;max-width:1160px;margin-inline:auto;padding:clamp(20px,3vw,32px) clamp(16px,2vw,24px) 8px;box-sizing:border-box}
.gw-page-head .lbl{display:block;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,#5b6b73)}
.gw-page-head h1{font-size:clamp(2rem,3vw,3rem);font-weight:750;line-height:1.15;margin:6px 0 12px;letter-spacing:-.02em;color:var(--text,var(--foreground,#17322b))}
.gw-page-head p{color:var(--muted,#5b6b73);font-size:1rem;line-height:1.6;margin:0;max-width:72ch}
.m-page > .gw-page-head{padding-inline:0}
@media (max-width:767px){.gw-page-head{padding:18px 18px 4px}.gw-page-head h1{font-size:clamp(2rem,8vw,2.5rem)}}
/* The old single-line titles are replaced by the heading above. */
.view > .gw-section-heading[hidden]{display:none}
.gl .gl-month-name{font-size:clamp(17px,1.5vw,20px);font-weight:650;text-align:center;margin:0 0 12px}
.gl .gl-overview{margin-bottom:22px}
.view .page-head[hidden],.view .td-head[hidden]{display:none!important}
.view[data-view="glance"] > .gw-page-head{padding-bottom:0}.view[data-view="glance"] .td.gl{padding-top:0}
/* Orange salary card on phones: compact, the three figures side by side. */
@media (max-width:640px){
 body[data-view="app"] .gw-budget-overview{padding:18px 16px!important;gap:14px!important;border-radius:20px}
 body[data-view="app"] .gw-budget-overview-main strong{font-size:clamp(2rem,9vw,2.6rem)!important;margin-block:4px}
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;flex-basis:100%}
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics>div{padding:10px!important;gap:4px!important;border-radius:14px;grid-column:auto!important}
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics small{font-size:.7rem!important;line-height:1.25}
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b{font-size:.98rem!important}
}
@media (max-width:640px){
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b{font-size:clamp(.74rem,3.4vw,.9rem)!important;white-space:nowrap!important;overflow-wrap:normal!important;letter-spacing:-.02em}
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b .cur-sym{display:none}
}
.gl .gl-adjust{background:none;border:0;padding:0 0 0 10px;cursor:pointer;font-size:.85em;font-weight:600}
.gl .gl-final .gl-n,.gl .gl-final .gl-n b{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}@media(max-width:640px){.gl .gl-final .gl-adjust{display:block;padding:4px 0 0}}
/* My Money: previous / next month, faded either side of the month shown. */
.gl .gl-months{display:flex;align-items:center;justify-content:center;gap:clamp(10px,3vw,28px);margin:0 0 4px}
.gl .gl-months .gl-month-name{margin:0}
.gl .gl-mnav{display:inline-flex;align-items:center;gap:4px;background:none;border:0;padding:8px 6px;font:inherit;font-size:.95rem;font-weight:600;color:var(--muted,#5b6b73);opacity:.5;cursor:pointer;border-radius:12px;transition:opacity .2s}
.gl .gl-mnav:hover:not(:disabled),.gl .gl-mnav:focus-visible{opacity:1}
.gl .gl-mnav:disabled{opacity:.15;cursor:default}
.gl .gl-mnav i,.gl .gl-mnav svg{width:16px;height:16px}
.gl .gl-mtag{text-align:center;font-size:.8rem;color:var(--muted,#5b6b73);margin:0 0 14px}
.gl .gl-mtag.is-ahead{color:#c25410}
.gl .gl-mback{background:none;border:0;padding:0;font:inherit;font-weight:600;color:inherit;text-decoration:underline;cursor:pointer}
.gl.gl-fade-next{animation:glInNext .32s ease both}.gl.gl-fade-prev{animation:glInPrev .32s ease both}
@keyframes glInNext{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@keyframes glInPrev{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
[dir="rtl"] .gl.gl-fade-next{animation-name:glInPrev}[dir="rtl"] .gl.gl-fade-prev{animation-name:glInNext}
@media (prefers-reduced-motion:reduce){.gl.gl-fade-next,.gl.gl-fade-prev{animation:none}}
.gl .gl-mnav span,.gl .gl-months .gl-month-name{white-space:nowrap}
/* Orange cards: the dark labels (Salary in hand, Income, Deductions, still to pay) a solid, darker brown. */
body[data-view="app"] :is(.gw-finance-intro,.gw-budget-overview,.gw-cashflow-hero,.gw-debt-hero) :is(.lbl,small){color:#1c1008!important;font-weight:600}
body[data-view="app"] .gw-budget-overview .gw-budget-overview-main strong .cur-sym{color:#1c1008!important;opacity:.85!important}
/* Section tabs: small pills under the page title, the same on every page. */
.gw-subnav{width:100%;max-width:1160px;margin:4px auto 14px;padding-inline:clamp(16px,2vw,24px);box-sizing:border-box}
.m-page > .gw-subnav{padding-inline:0}
.gw-subnav .m-seg{display:flex;flex-wrap:nowrap;gap:6px;margin:0!important;border:0!important;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.gw-subnav .m-seg::-webkit-scrollbar{display:none}
.gw-subnav .m-seg > :is(a,button){flex:none!important;padding:7px 14px!important;border:1px solid var(--line,#dfe5e2)!important;border-radius:999px!important;margin:0!important;background:var(--surface,#fff)!important;color:var(--text,#17322b)!important;font:600 13px/1.2 var(--f-body)!important;white-space:nowrap}
.gw-subnav .m-seg > [aria-current="true"]{background:#17322b!important;border-color:#17322b!important;color:#fff!important}
.gw-subnav .m-sort{display:flex;gap:6px;margin:10px 0 0}
.gw-subnav .m-sort button{padding:6px 12px;border-radius:999px;border:1px solid var(--line,#dfe5e2);background:var(--surface,#fff);color:var(--text,#17322b);font:600 12.5px/1.2 var(--f-body)}
.gw-subnav .m-sort button[aria-pressed="true"]{background:#17322b;color:#fff;border-color:#17322b}
.gw-subnav :is(.m-lbl,.m-sum,small,p){color:var(--muted,#5b6b73)!important}
[data-theme="dark"] .gw-subnav .m-seg > [aria-current="true"],[data-theme="dark"] .gw-subnav .m-sort button[aria-pressed="true"]{background:#e9874a!important;border-color:#e9874a!important;color:#1c1008!important}
/* Every app header is the same size: the menu bar plus one row of section tabs. */
body.m-on .m-hd{box-sizing:border-box}
body.m-on .m-hd .m-seg{min-height:46px;box-sizing:border-box;align-items:stretch}
/* Bills sorting now sits on the page (light background). */
.m-sort.m-sort-page{display:flex;align-items:center;gap:6px;margin:0 0 8px}
.m-sort.m-sort-page .m-sort-lbl{flex:none;font:600 13px/1.2 var(--f-body);opacity:.7;margin-right:2px}
.m-sort.m-sort-page button{padding:7px 14px;border-radius:999px;border:1px solid var(--line,#dfe5e2);background:var(--surface,#fff);color:var(--text,#17322b);font:600 13px/1.2 var(--f-body)}
.m-sort.m-sort-page button[aria-pressed="true"]{background:#17322b;border-color:#17322b;color:#fff}
.m-sum.m-sum-page{display:flex;justify-content:space-between;gap:10px;margin:0 0 12px;color:var(--muted,#5b6b73);font-size:13px}
.m-sum.m-sum-page b{color:var(--text,#17322b)}
/* Money Exchange without an account: only the converter (home currency and money sent home need an account). */
body[data-view="exchange"] .view[data-view="fx"] :is(.b2-card:has(.fx-home-row),.b2-card:has(.fx-sent-tot),.gw-fx-overview){display:none!important}
body[data-view="exchange"] .view[data-view="fx"] .mount{max-width:1160px;margin-inline:auto;padding-inline:clamp(16px,2vw,24px);box-sizing:border-box}
/* The shared app shell switches some grids to column flex layouts. Keep the
   converter columns stretched so narrow content cannot collapse the inputs. */
.view[data-view="fx"] .gw-fx-grid{
 display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
 align-items:start;justify-items:stretch;gap:18px
}
.view[data-view="fx"] .gw-fx-grid > .b2-col{inline-size:100%;min-inline-size:0;align-self:stretch}
.view[data-view="fx"] .fx-amt .fx-in,
.view[data-view="fx"] .fx-pair .fx-pick{inline-size:100%;min-inline-size:0;box-sizing:border-box}
.view[data-view="fx"] .fx-pair{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
body[data-view="exchange"] .view[data-view="fx"] .gw-fx-grid{margin-top:8px}
@media(max-width:860px){
 .view[data-view="fx"] .gw-fx-grid{grid-template-columns:minmax(0,1fr)}
}
body[data-view="exchange"] .view[data-view="fx"] .fx .fx-quick{display:none}
.nav .nav-fx{display:inline-flex;align-items:center;gap:6px}
.nav .nav-fx svg,.nav .nav-fx i{width:16px;height:16px}

body.m-on .nav .nav-fx{display:none}
/* Spend · Plan (full Budget): same month style as My Money; no extra 'Back to simple view' button (the tabs do that). */
body.m-on.m-full #m-back{display:none!important}
body[data-view="app"] .b2-top h1{font-size:clamp(17px,1.5vw,20px)!important;font-weight:650!important;letter-spacing:normal;margin:0}
body[data-view="app"] .b2-top{gap:clamp(10px,3vw,28px)}
body[data-view="app"] .b2-top .icon-btn{width:34px!important;height:34px!important;border:0!important;background:none!important;opacity:.55}
body[data-view="app"] .b2-top .icon-btn:hover:not(:disabled){opacity:1}
/* One size for every card / box title on every page (page titles and month names have their own sizes). */
body[data-view="app"] .view.on :is(.card-head h2,.b2-h h2,h2.b2-h,.b2-card > h2,.m-h2,.gw-wallet-list h2,.gw-wallet-card h2){font-size:20px!important;font-weight:700!important;line-height:1.25!important;letter-spacing:-.01em}
@media (max-width:640px){body[data-view="app"] .view.on :is(.card-head h2,.b2-h h2,h2.b2-h,.b2-card > h2,.m-h2,.gw-wallet-list h2,.gw-wallet-card h2){font-size:18px!important}}
body[data-view="exchange"] .view.on :is(.b2-h h2,h2.b2-h,.b2-card > h2){font-size:20px!important;font-weight:700!important}
/* Wallet keeps its own heading block; give it exactly the same title size as every other page. */
.gw-wallet-head h1{font-size:clamp(2rem,3vw,3rem)!important;font-weight:750!important;line-height:1.15!important;letter-spacing:-.02em!important}
@media (max-width:767px){.gw-wallet-head h1{font-size:clamp(2rem,8vw,2.5rem)!important}}
/* Orange card: figures in the small boxes without the currency sign (it is on the big amount), and a slim bottom row. */
body[data-view="app"] .gw-budget-overview{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:18px 22px!important;align-items:center}
body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b .cur-sym{display:none}
body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b{white-space:nowrap}
.gw-overview-strip{grid-column:1/-1;display:flex;border-top:1px solid rgba(42,26,16,.14);padding-top:14px}
.gw-overview-strip div{flex:1;display:flex;justify-content:space-between;align-items:baseline;gap:10px;padding-inline:0 18px;min-width:0}
.gw-overview-strip div+div{border-inline-start:1px solid rgba(42,26,16,.14);padding-inline:18px 0}
.gw-overview-strip span{font-size:13px;font-weight:600;color:#1c1008}
.gw-overview-strip b{font-size:16px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}
.gw-overview-strip b .cur-sym{font-size:.8em;opacity:.85}
.gw-overview-strip b.neg{color:#5a0d00}
@media (max-width:640px){body[data-view="app"] .gw-budget-overview{grid-template-columns:1fr}.gw-overview-strip{flex-direction:column;gap:8px}.gw-overview-strip div,.gw-overview-strip div+div{border:0;padding:0}.gw-overview-strip b{font-size:15px}}
.gw-overview-strip b .cur-sym{vertical-align:baseline!important;font-size:.75em!important;margin-inline-end:4px}
/* White figures on the orange card: a little larger and brighter for easier reading. */
body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b{color:#fff!important;font-weight:750!important;font-size:clamp(1.3rem,2.2vw,1.85rem)!important;text-shadow:0 1px 2px rgba(90,30,0,.18)}
.gw-overview-strip b{color:#fff!important;font-size:18px!important;font-weight:750!important;text-shadow:0 1px 2px rgba(90,30,0,.18)}
body[data-view="app"] .gw-budget-overview-main .muted{color:#fff!important;font-size:15px!important;font-weight:600;opacity:.95}
@media (max-width:640px){
 body[data-view="app"] .gw-budget-overview .gw-budget-overview-metrics b{font-size:clamp(.82rem,4vw,1.05rem)!important}
 .gw-overview-strip b{font-size:17px!important}
}
@media (max-width:900px){body[data-view="app"] .gw-budget-overview{grid-template-columns:1fr!important}}


/* Sample data switch on the right of the page title (Nov 2026): grey when off, orange when on. */
.gw-page-head:has(>.gw-sd-head){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
.gw-page-head:has(>.gw-sd-head)>:is(.lbl,h1,p){grid-column:1;min-width:0}
.gw-page-head:has(>.gw-sd-head):has(>.gw-ai-header-button){grid-template-columns:minmax(0,1fr) auto auto}
.gw-page-head:has(>.gw-sd-head)>.gw-ai-header-button{grid-column:3}
.gw-sd-head{grid-column:2;grid-row:1 / span 3;align-self:center;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border:1px solid var(--line,#dfe5e2);border-radius:12px;background:var(--surface,#fff);color:var(--text,#17322b);font:inherit;font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}
.gw-sd-head:hover{border-color:#e9874a}
.gw-sd-head:focus-visible{outline:2px solid var(--accent,#e9874a);outline-offset:3px}
.gw-sd-head svg.gw-sd-sw{width:32px;height:20px;flex:none}
.gw-sd-sw rect{fill:#94a3b8;transition:fill .2s}.gw-sd-sw circle{fill:#fff;transition:cx .2s}
.gw-sd-head[aria-pressed="true"] .gw-sd-sw rect{fill:#e9874a}
@media(max-width:600px){.gw-sd-head{padding:6px 9px;font-size:12.5px;gap:6px;min-height:36px}.gw-sd-head svg.gw-sd-sw{width:28px;height:18px}}
/* Phones (iPhone and Android): the page title stays on one line across the full width, and Sample data and
   Ask AI sit together on their own row under it, so the title never covers them (15 Nov 2026). */
@media (max-width:600px){
 .gw-page-head:has(>.gw-sd-head),.gw-page-head:has(>.gw-ai-header-button){display:grid!important;grid-template-columns:auto auto minmax(0,1fr)!important;column-gap:8px!important;row-gap:0}
 .gw-page-head:has(>.gw-sd-head)>.lbl,.gw-page-head:has(>.gw-ai-header-button)>.lbl{grid-column:1 / -1!important;grid-row:1}
 .gw-page-head:has(>.gw-sd-head)>h1,.gw-page-head:has(>.gw-ai-header-button)>h1{grid-column:1 / -1!important;grid-row:2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:clamp(1.55rem,7.2vw,2.2rem)!important;line-height:1.15}
 .gw-page-head:has(>.gw-sd-head)>p,.gw-page-head:has(>.gw-ai-header-button)>p{grid-column:1 / -1!important;grid-row:4;margin-top:10px}
 .gw-page-head>.gw-sd-head{grid-column:1!important;grid-row:3!important;justify-self:start;margin-top:10px}
 .gw-page-head>.gw-ai-header-button{grid-column:2!important;grid-row:3!important;justify-self:start;align-self:center;margin-top:10px;max-width:none}
 .gw-page-head:not(:has(>.gw-sd-head))>.gw-ai-header-button{grid-column:1!important}
}

.view h1 .gw-page-wa{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;float:right;margin-left:10px;padding:0;border:0;background:transparent;cursor:pointer;vertical-align:middle;border-radius:50%;color:#157343;text-decoration:none}
.view h1 .gw-page-wa svg{width:26px;height:26px;flex:none}
html[data-theme="dark"] .view h1 .gw-page-wa{color:#25d366}
.view h1 .gw-page-wa:focus-visible{outline:2px solid currentColor;outline-offset:2px}

.gw-page-head:has(.gw-page-wa){position:relative;padding-right:64px}
.gw-page-head h1 .gw-page-wa{position:absolute;right:16px;top:clamp(20px,3vw,32px);margin:0}
.gw-wa-action{background:#25d366;color:#08361c;font-weight:700}
