/* My Finance · Visual Upgrade v75 · 2026-11-02
   Benchmarks: Monarch/Copilot (at-a-glance + drill down), YNAB (action focus),
   Behparvar (large modular tiles), Alborz Academy (legible Persian typography).
   Presentation only. No changes to finance math, account data, auth or routes.
   Loaded LAST so it supersedes prior small mobile type overrides.
*/
:root {
  --mf-v75-ink: #163250;
  --mf-v75-navy: #12345f;
  --mf-v75-teal: #0c756e;
  --mf-v75-surface: #ffffff;
  --mf-v75-border: #d8e3e9;
  --mf-v75-shadow: 0 9px 25px rgba(19,50,82,.065);
}
html{ -webkit-text-size-adjust:100%;text-size-adjust:100%; }
body.finance-unlocked{
  --bg:#f4f7fa;
  --card:#ffffff;
  --fg:#17354d;
  --muted:#516878;
  --line:#dbe5ec;
  --accent:#0a746c;
  background:var(--bg)!important;
  font-size:19px!important;
  line-height:1.8!important;
}
body.finance-unlocked.dark {
  --bg:#101c2b;
  --card:#1a2c3d;
  --fg:#eff7fa;
  --muted:#bacbd8;
  --line:#38516a;
  --accent:#58dcc4;
  --mf-v75-surface:#1a2c3d;
  --mf-v75-border:#38516a;
  --mf-v75-shadow:0 9px 28px rgba(0,0,0,.18);
}
body.finance-unlocked main{max-width:1200px}
body.finance-unlocked :is(h1,h2,h3,h4){line-height:1.5;letter-spacing:0}
body.finance-unlocked :is(button,a,[role="button"],summary){-webkit-tap-highlight-color:transparent}
body.finance-unlocked :is(button,a,summary):focus-visible{
  outline:3px solid #14a58e!important;outline-offset:3px!important;
}
body.finance-unlocked :is(button,input,select,textarea){
  font-family:Vazirmatn,Tahoma,Arial,sans-serif;
}
body.finance-unlocked :is(input,select,textarea){
  font-size:18px!important;line-height:1.65!important;
  min-height:55px!important;max-width:100%;
}
body.finance-unlocked :is(.card,.finance-insight-card,.mf-drill-field){
  border-radius:21px;box-shadow:var(--mf-v75-shadow);
}
body.finance-unlocked main>section:not(#home)>.card{padding:25px;margin:19px 0}
body.finance-unlocked main>section:not(#home) :is(h2,.mf-section-hero h2){font-size:clamp(25px,3.5vw,32px)!important}
body.finance-unlocked main>section:not(#home) :is(h3,.card h2){font-size:clamp(22px,2.8vw,27px)!important}
body.finance-unlocked main>section:not(#home) :is(label,.mf-field-name){
  font-size:18px!important;line-height:1.65!important;font-weight:750;
}
body.finance-unlocked main>section:not(#home) :is(p,.muted,.notice){
  font-size:17px!important;line-height:1.85!important;
}
body.finance-unlocked main>section:not(#home) :is(button:not(.finance-password-eye),.finance-section-link){
  min-height:53px;font-size:17px;
}
body.finance-unlocked :is(.finance-side-links button,.finance-side-profile){
  min-height:58px!important;font-size:17px!important;
}
body.finance-unlocked :is(.finance-page-identity small,.finance-page-identity strong){
  letter-spacing:0!important;
}
body.finance-unlocked .finance-page-identity small{font-size:14px!important}
body.finance-unlocked .finance-page-identity strong{font-size:clamp(20px,2.8vw,26px)!important}
body.finance-unlocked .finance-back-button{
  min-height:52px!important;min-width:102px!important;
  font-size:17px!important;border-radius:14px!important;
}
/* A calm home: one clear title, immediately followed by information, not descriptions. */
body.finance-unlocked #home{min-width:0}
body.finance-unlocked #home .mf-heading-copy>small,
body.finance-unlocked #home .finance-overview-caption,
body.finance-unlocked #home .finance-hero-caption,
body.finance-unlocked #home .mf-command-head>span,
body.finance-unlocked #home .finance-kpi-action,
body.finance-unlocked #home .finance-home-hub-copy small,
body.finance-unlocked #home .finance-home-hub-chevron {
  display:none!important;
}
body.finance-unlocked #home .finance-home-heading{
  display:flex;align-items:center;justify-content:space-between;
  gap:18px;padding:12px 0 20px;margin:0 0 8px;
}
body.finance-unlocked #home .finance-home-heading h2{
  font-size:clamp(29px,4vw,38px)!important;font-weight:900;
  line-height:1.4!important;color:var(--fg);margin:0 0 5px;
}
body.finance-unlocked #home .finance-home-heading p{
  font-size:17px!important;line-height:1.6!important;
  max-width:48ch;margin:0!important;
}
body.finance-unlocked #home .finance-period-pill{
  font-size:16px!important;line-height:1.5!important;
  font-weight:850;padding:7px 13px;border-radius:100px;
}
body.finance-unlocked #home .finance-new-entry{
  min-height:59px!important;padding:12px 23px!important;
  border-radius:17px!important;font-size:20px!important;font-weight:850;
  box-shadow:0 8px 17px rgba(10,116,108,.17);
}
body.finance-unlocked #home .finance-dashboard-metrics{
  gap:17px;align-items:stretch;
}
body.finance-unlocked #home .finance-balance-hero{
  min-height:207px!important;padding:29px!important;
  text-align:start!important;border-radius:27px!important;
  background:linear-gradient(125deg,#12335f 0%,#123e59 57%,#0c716c 100%)!important;
  box-shadow:0 14px 35px rgba(12,50,81,.17)!important;
  color:#fff!important;overflow-wrap:anywhere;
  transition:transform .16s ease,box-shadow .16s ease;
}
body.finance-unlocked #home .finance-balance-hero :is(span,b){color:inherit}
body.finance-unlocked #home .finance-hero-label{
  font-size:19px!important;font-weight:800;line-height:1.5!important;
}
body.finance-unlocked #home .finance-hero-link{
  font-size:16px!important;line-height:1.5!important;font-weight:750;
  opacity:.96;
}
body.finance-unlocked #home .finance-hero-amount b{
  display:block;max-width:100%;
  font-size:clamp(33px,5.1vw,48px)!important;
  font-weight:900;line-height:1.45!important;
  direction:rtl;unicode-bidi:plaintext;
  overflow-wrap:anywhere;word-break:normal;letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
body.finance-unlocked #home .finance-hero-foot{
  font-size:16px!important;line-height:1.6!important;
}
body.finance-unlocked #home .finance-kpi-pair{
  gap:15px!important;
}
body.finance-unlocked #home .finance-kpi{
  min-height:153px!important;
  border-radius:23px!important;
  padding:22px!important;
  border:1px solid var(--line)!important;
  background:var(--card)!important;
  box-shadow:var(--mf-v75-shadow)!important;
  text-align:start!important;
  transition:transform .16s ease,box-shadow .16s ease;
}
body.finance-unlocked #home .finance-kpi-title{
  font-size:18px!important;font-weight:800;line-height:1.6!important;
}
body.finance-unlocked #home .finance-kpi-icon{
  font-size:25px!important;
}
body.finance-unlocked #home .finance-kpi b{
  display:block;width:100%;max-width:100%;margin-top:10px;
  font-size:clamp(27px,3.3vw,37px)!important;
  line-height:1.45!important;letter-spacing:0!important;
  direction:rtl;unicode-bidi:plaintext;overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
body.finance-unlocked #home .finance-receivables-strip{
  min-height:89px!important;
  padding:19px 22px!important;
  border:1px solid var(--line)!important;border-radius:21px!important;
  background:var(--card)!important;box-shadow:var(--mf-v75-shadow)!important;
  text-align:start!important;
}
body.finance-unlocked #home .finance-strip-label{
  font-size:19px!important;line-height:1.55!important;font-weight:850;
}
body.finance-unlocked #home .finance-strip-end b{
  font-size:24px!important;line-height:1.5!important;
}
body.finance-unlocked #home :is(.finance-balance-hero,.finance-kpi,.finance-receivables-strip,.finance-home-hub,.mf-action):active{
  transform:scale(.988);
}
body.finance-unlocked #home .mf-command-bar{
  border:1px solid var(--line)!important;
  background:var(--card)!important;
  box-shadow:var(--mf-v75-shadow)!important;
  padding:23px!important;border-radius:23px!important;
}
body.finance-unlocked #home .mf-command-head strong{
  font-size:23px!important;font-weight:850;line-height:1.45!important;
}
body.finance-unlocked #home .mf-action-grid{gap:13px!important}
body.finance-unlocked #home .mf-action{
  min-height:97px!important;padding:17px 14px!important;
  border-radius:18px!important;gap:12px!important;
  font-size:19px!important;font-weight:850!important;
  text-align:center;line-height:1.45!important;
}
body.finance-unlocked #home .mf-action span:last-child{
  font-size:19px!important;line-height:1.45!important;
}
body.finance-unlocked #home .mf-action-icon{
  display:grid;place-items:center;flex-shrink:0;
  width:45px!important;height:45px!important;
  border-radius:14px!important;
}
body.finance-unlocked #home .mf-action-icon svg{width:25px!important;height:25px!important}
body.finance-unlocked #home .finance-home-hubs{
  gap:14px!important;margin:16px 0 0!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
body.finance-unlocked #home .finance-home-hub{
  min-height:103px!important;padding:20px!important;
  background:var(--card)!important;
  border:1px solid var(--line)!important;
  border-radius:21px!important;
  box-shadow:var(--mf-v75-shadow)!important;
  color:var(--fg)!important;gap:14px!important;
  text-align:start!important;
  transition:transform .16s ease,box-shadow .16s ease;
}
body.finance-unlocked #home .finance-home-hub-icon{
  width:52px!important;height:52px!important;flex:0 0 52px!important;
  border-radius:15px!important;font-size:27px!important;
}
body.finance-unlocked #home .finance-home-hub-copy strong{
  font-size:21px!important;font-weight:850;line-height:1.55!important;
  overflow-wrap:anywhere;
}
body.finance-unlocked #home .loan-reminder-banner{
  padding:20px!important;border-radius:21px!important;
  gap:13px!important;
}
body.finance-unlocked #home .loan-reminder-copy strong{
  font-size:19px!important;line-height:1.6!important;
}
body.finance-unlocked #home .loan-reminder-copy p{
  font-size:16px!important;line-height:1.7!important;
}
body.finance-unlocked #home #loan-reminder-open{
  min-height:53px!important;font-size:17px!important;
}
body.finance-unlocked #home #upcoming-notice:not(:empty){
  font-size:16px!important;line-height:1.7!important;
}
/* Focused detail pages and transactions: readable lists + visible action sizes. */
body.finance-unlocked :is(.tx-ledger-summary,.finance-activity-row,.finance-category-row){
  min-height:70px;
}
body.finance-unlocked :is(.tx-ledger-summary,.finance-activity-row) strong{
  font-size:18px!important;
}
body.finance-unlocked .mf-drill-overview small{font-size:16px!important}
body.finance-unlocked .mf-drill-overview h3{font-size:24px!important}
body.finance-unlocked .mf-drill-balance{
  font-size:clamp(29px,4vw,42px)!important;
  overflow-wrap:anywhere;
}
body.finance-unlocked .mf-drill-field :is(small,span,label){
  font-size:17px!important;line-height:1.7!important;
}
body.finance-unlocked .mf-drill-field :is(strong,b){
  font-size:22px!important;line-height:1.6!important;
}
body.finance-unlocked .finance-mobile-nav{
  border-radius:23px!important;box-shadow:0 12px 35px rgba(16,45,67,.18)!important;
}
body.finance-unlocked .finance-mobile-nav button{
  min-height:72px!important;
  padding:9px 3px!important;
}
body.finance-unlocked .finance-mobile-nav button>span:last-child{
  font-size:15px!important;line-height:1.35!important;
  font-weight:800!important;
}
body.finance-unlocked .finance-mobile-nav svg{
  width:26px!important;height:26px!important;
}
body.finance-unlocked #finance-more-dialog :is(button,a){
  min-height:67px!important;font-size:17px!important;
  line-height:1.55!important;
}
body.finance-unlocked #finance-more-dialog .finance-more-icon{
  width:42px!important;height:42px!important;flex-basis:42px!important;
  font-size:22px!important;
}
body.finance-unlocked #finance-more-dialog .finance-more-footnote{
  font-size:15px!important;
}
/* Login / sign up must also be comfortable before finance-unlocked exists. */
body #auth-gate :is(input,select){
  font-size:18px!important;min-height:56px!important;
}
body #auth-gate :is(label,.auth-hint,.auth-trusted-device){
  font-size:16px!important;line-height:1.8!important;
}
body #auth-gate .auth-card button:not(.mf-password-eye){
  font-size:18px!important;min-height:55px!important;
}
body #auth-gate :is(.auth-title,h1,h2){line-height:1.5!important}
/* Asset/loan/contract subpages are deliberately handled without changing their logic. */
body.mf-subpage{
  font-family:Vazirmatn,Tahoma,Arial,sans-serif;
  font-size:19px!important;line-height:1.8!important;
}
body.mf-subpage :is(h1,.mf-page-intro h1){
  font-size:clamp(29px,4vw,39px)!important;line-height:1.5!important;
}
body.mf-subpage :is(h2,.card h2){font-size:24px!important}
body.mf-subpage :is(p,.detail,.muted,small,.mf-footnote){
  font-size:17px!important;line-height:1.75!important;
}
body.mf-subpage :is(button,a,.mf-return,.mf-subnav a){
  min-height:52px;font-size:17px!important;line-height:1.55!important;
}
body.mf-subpage :is(.card,.mf-asset-card,.mf-loan-card){
  border-radius:21px!important;
}
body.mf-subpage .amount{font-size:clamp(29px,4vw,39px)!important}
body.mf-subpage :is(input,select,textarea,label){font-size:18px!important}
@media(max-width:1023px){
  body.finance-unlocked main{
    width:100%!important;max-width:100%!important;min-width:0!important;
    padding:17px 16px calc(110px + env(safe-area-inset-bottom))!important;
  }
  body.finance-unlocked #home .finance-home-heading{
    display:flex!important;flex-direction:column!important;
    align-items:stretch!important;gap:15px!important;padding:7px 0 15px!important;
  }
  body.finance-unlocked #home .finance-home-heading h2{
    font-size:clamp(29px,6.5vw,35px)!important;
  }
  body.finance-unlocked #home .finance-home-heading p{font-size:17px!important}
  body.finance-unlocked #home .finance-head-actions{width:100%}
  body.finance-unlocked #home .finance-new-entry{
    min-height:58px!important;width:100%!important;font-size:20px!important;
  }
  body.finance-unlocked #home .finance-dashboard-metrics{
    display:flex!important;flex-direction:column!important;
    gap:16px!important;
  }
  body.finance-unlocked #home .finance-dashboard-metrics>.finance-balance-hero{
    order:0!important;min-height:210px!important;padding:25px 22px!important;
  }
  body.finance-unlocked #home .finance-dashboard-metrics>.finance-kpi-pair{
    order:1!important;display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;
  }
  body.finance-unlocked #home .finance-kpi-pair>.finance-kpi-net{grid-column:1/-1!important}
  body.finance-unlocked #home .finance-dashboard-metrics>.finance-receivables-strip{order:2!important}
  body.finance-unlocked #home .finance-dashboard-metrics>.mf-command-bar{order:3!important}
  body.finance-unlocked #home .finance-kpi{min-height:157px!important;padding:19px!important}
  body.finance-unlocked #home .finance-kpi-title{font-size:18px!important}
  body.finance-unlocked #home .finance-kpi b{
    font-size:clamp(24px,4.8vw,33px)!important;
  }
  body.finance-unlocked #home .finance-hero-label{font-size:19px!important}
  body.finance-unlocked #home .finance-hero-link{font-size:16px!important}
  body.finance-unlocked #home .finance-hero-foot{font-size:16px!important}
  body.finance-unlocked #home .finance-hero-amount b{
    font-size:clamp(32px,7vw,43px)!important;
  }
  body.finance-unlocked #home .finance-receivables-strip{
    min-height:90px!important;padding:18px 20px!important;
  }
  body.finance-unlocked #home .finance-strip-label{font-size:19px!important}
  body.finance-unlocked #home .mf-command-bar{padding:20px!important}
  body.finance-unlocked #home .mf-command-head strong{font-size:23px!important}
  body.finance-unlocked #home .mf-action-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.finance-unlocked #home .mf-action{
    min-height:94px!important;padding:14px 10px!important;
    font-size:19px!important;gap:9px!important;
  }
  body.finance-unlocked #home .mf-action span:last-child{font-size:18px!important}
  body.finance-unlocked #home>.finance-home-hubs{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:13px!important;margin:18px 0 0!important;
  }
  body.finance-unlocked #home .finance-home-hub{
    min-height:96px!important;padding:18px!important;gap:15px!important;
  }
  body.finance-unlocked #home .finance-home-hub-copy strong{font-size:21px!important}
  body.finance-unlocked #home .finance-home-hub-icon{
    flex:0 0 51px!important;width:51px!important;height:51px!important;
  }
  body.finance-unlocked .finance-back-button{
    min-height:54px!important;min-width:99px!important;font-size:17px!important;
  }
  body.finance-unlocked .finance-page-identity strong{font-size:23px!important}
  body.finance-unlocked main>section:not(#home)>.card{
    padding:22px 19px!important;margin:17px 0!important;
  }
  body.finance-unlocked #transactions .fields{gap:15px!important}
  body.finance-unlocked #transactions :is(input,select,textarea){
    font-size:18px!important;min-height:56px!important;
  }
  body.finance-unlocked #transactions .fields>label,
  body.finance-unlocked #transactions .mf-field-name{
    font-size:18px!important;
  }
  body.finance-unlocked #transactions .tx-ledger-summary{
    min-height:95px!important;padding:18px!important;
  }
  body.finance-unlocked #transactions .tx-ledger-summary :is(strong,b){
    font-size:19px!important;
  }
  body.finance-unlocked #transactions .tx-ledger-summary :is(small,time,span){
    font-size:16px!important;line-height:1.65!important;
  }
  body.finance-unlocked #transactions .tx-ledger-amount{
    font-size:22px!important;
  }
  body.finance-unlocked #transactions .tx-ledger-meta,
  body.finance-unlocked #transactions .tx-ledger-detail{
    font-size:16px!important;line-height:1.8!important;
  }
  body.finance-unlocked #transactions .tx-filter-group button{
    font-size:15px!important;min-height:50px!important;
  }
  body.finance-unlocked .finance-mobile-nav{
    width:calc(100% - 20px)!important;max-width:490px!important;
    bottom:calc(8px + env(safe-area-inset-bottom))!important;
  }
  body.finance-unlocked .finance-mobile-nav button{
    min-height:73px!important;
  }
  body.finance-unlocked .finance-mobile-nav button>span:last-child{
    font-size:14px!important;
  }
  body.finance-unlocked #finance-more-dialog .finance-more-links :is(a,button){
    min-height:66px!important;font-size:17px!important;
  }
  body.finance-unlocked .mf-drill-field{padding:18px!important}
  body.finance-unlocked .mf-drill-overview{padding:25px 21px!important}
}
@media(max-width:420px){
  body.finance-unlocked main{
    padding-inline:14px!important;
  }
  /* One metric per row prevents Rial/Toman amounts from becoming tiny or clipped. */
  body.finance-unlocked #home .finance-dashboard-metrics>.finance-kpi-pair{
    grid-template-columns:minmax(0,1fr)!important;gap:12px!important;
  }
  body.finance-unlocked #home .finance-kpi-pair>.finance-kpi-net{grid-column:auto!important}
  body.finance-unlocked #home .finance-kpi{min-height:125px!important}
  body.finance-unlocked #home .finance-kpi b{font-size:clamp(28px,7vw,36px)!important}
  body.finance-unlocked #home .finance-balance-hero{min-height:193px!important}
  body.finance-unlocked #home .finance-home-hub-copy strong{font-size:20px!important}
  body.finance-unlocked #home .mf-action{
    min-height:92px!important;flex-direction:column!important;
    gap:8px!important;
  }
  body.finance-unlocked #home .mf-action span:last-child{font-size:18px!important}
  body.finance-unlocked .finance-mobile-nav button>span:last-child{font-size:13px!important}
  body.finance-unlocked #home .finance-receivables-strip{gap:10px}
  body.finance-unlocked #home .finance-strip-label{font-size:18px!important}
}
/* Reduced-motion respects OS preference while leaving visual affordances intact. */
@media(prefers-reduced-motion:reduce){
  body.finance-unlocked #home :is(.finance-balance-hero,.finance-kpi,.finance-home-hub,.mf-action){
    transition:none!important;
  }
}

/* v76: an admin-only notification remains in the header, never as an overlay. */
body.finance-unlocked .finance-app-header .finance-admin-header-bell {
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 52px;width:52px;height:52px;min-height:52px;
  border:1px solid var(--line)!important;border-radius:15px!important;
  background:var(--card)!important;color:var(--accent)!important;
  box-shadow:var(--mf-v75-shadow)!important;
  font-size:25px!important;line-height:1!important;
  text-decoration:none!important;
}
/* Suppress developer version chips on consumer-facing screens. */
body.finance-unlocked #mf-header-release,
body.finance-unlocked .mf-mobile-release {display:none!important}


/* === r77: Screenshot-led, genuine LARGE mobile experience ===
   Keep every financial data binding, auth flow and route untouched.
   Fix wide Android desktop-site viewport scaling without changing data.
*/
html.mf-wide-mobile body {
  zoom:var(--mf-wide-zoom,2.45)!important;
}
html.mf-wide-mobile body.finance-unlocked #mf-viewport-warning{
  display:block!important;
  font-size:16px!important;line-height:1.55!important;
  padding:9px 13px!important;
  border:1px solid var(--line)!important;
  border-radius:11px!important;margin:0 0 10px!important;
  background:var(--card)!important;color:var(--muted)!important;
  font-weight:600!important;
}
body.finance-unlocked {
  --mf-hero-deep:#102e57;
  --mf-hero-bright:#066f79;
  --mf-ink-strong:#17334a;
  --mf-action-bg:#eef6fb;
  --mf-action-ink:#153d59;
}
body.finance-unlocked.dark {
  --mf-action-bg:#263d53;
  --mf-action-ink:#f0f7fc;
}
/* A single pictorial welcome panel instead of text-only intro and duplicate UI. */
body.finance-unlocked #home .finance-home-heading {
  position:relative!important;isolation:isolate;overflow:hidden;
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;justify-content:flex-start!important;
  gap:6px!important;min-height:243px!important;
  margin:6px 0 20px!important;padding:26px 25px 22px!important;
  border:1px solid #296486!important;border-radius:26px!important;
  background:linear-gradient(113deg,#102b53 3%,#153f62 56%,#0b656b 100%)!important;
  box-shadow:0 15px 35px rgba(9,43,65,.13)!important;
  color:#fff!important;
}
body.finance-unlocked #home .finance-home-heading:before {
  content:"";position:absolute;left:-110px;top:-100px;
  width:330px;height:330px;border-radius:50%;
  background:radial-gradient(circle,#7de5cd2b 0%,#65c9e50a 50%,transparent 70%);
  pointer-events:none;z-index:0;
}
body.finance-unlocked #home .mf-heading-copy {
  position:relative;z-index:2;flex:0 0 auto!important;
  max-width:65%!important;min-width:0!important;
}
body.finance-unlocked #home .finance-home-heading h2 {
  font-size:clamp(29px,4vw,39px)!important;
  line-height:1.5!important;color:#fff!important;
  font-weight:900!important;margin:0 0 9px!important;
  text-shadow:0 2px 7px #04254d4d;
}
body.finance-unlocked #home .finance-home-heading p.muted {
  color:#e4f9fa!important;font-size:18px!important;
  line-height:1.65!important;font-weight:650!important;
  margin:0 0 13px!important;max-width:25ch!important;
}
body.finance-unlocked #home .finance-overview-meta{
  display:flex;align-items:center;gap:8px;
  margin-top:5px!important;
}
body.finance-unlocked #home .finance-period-pill {
  display:inline-flex;align-items:center;
  min-height:34px;padding:6px 14px!important;
  font-size:16px!important;line-height:1.4!important;
  color:#083d4e!important;background:#dbfff1!important;
  border:1px solid #b8efdd!important;
}
body.finance-unlocked #home .mf-home-visual {
  display:block!important;position:absolute;
  left:-12px;top:0;bottom:0;width:53%;height:100%;
  z-index:1;pointer-events:none;overflow:hidden;
}
body.finance-unlocked #home .mf-home-visual img{
  position:absolute;width:100%;height:100%;
  object-fit:contain;object-position:center center;
  opacity:.98;filter:saturate(1.1) drop-shadow(0 13px 18px rgba(1,23,39,.25));
  mask-image:linear-gradient(to right,transparent 0%,black 15%,black 89%,transparent 100%);
}
body.finance-unlocked #home .finance-head-actions{
  position:relative;z-index:3;
  flex:0 0 auto!important;width:auto!important;
  align-self:flex-start!important;margin-top:auto!important;
}
body.finance-unlocked #home .finance-new-entry{
  display:inline-flex!important;align-items:center;justify-content:center;
  min-height:54px!important;width:auto!important;
  padding:10px 23px!important;font-size:19px!important;
  background:#bdf8e0!important;color:#084b45!important;
  border:1px solid #e4fff1!important;border-radius:15px!important;
  box-shadow:0 9px 22px #021a2d2a!important;
  font-weight:900!important;white-space:nowrap;
}
/* The primary action palette now has dark ink on light surfaces, not pale text on aqua. */
body.finance-unlocked #home .finance-dashboard-metrics{
  display:flex!important;flex-direction:column!important;
  align-items:stretch!important;gap:16px!important;
}
body.finance-unlocked #home .finance-dashboard-metrics>.finance-balance-hero{order:0!important}
body.finance-unlocked #home .finance-dashboard-metrics>.mf-command-bar{order:1!important}
body.finance-unlocked #home .finance-dashboard-metrics>.finance-kpi-pair{order:2!important}
body.finance-unlocked #home .finance-dashboard-metrics>.finance-receivables-strip{order:3!important}
body.finance-unlocked #home .finance-balance-hero {
  min-height:185px!important;padding:24px!important;
  background:linear-gradient(125deg,#102b48 0%,#114f68 63%,#13807b 100%)!important;
  border:1px solid #2c7287!important;
}
body.finance-unlocked #home .finance-hero-label{font-size:21px!important}
body.finance-unlocked #home .finance-hero-amount b{
  font-size:clamp(35px,6vw,49px)!important;line-height:1.4!important;
}
body.finance-unlocked #home .finance-hero-foot{font-size:17px!important}
body.finance-unlocked #home .mf-command-bar {
  padding:21px!important;border-radius:23px!important;
  margin:0!important;background:var(--card)!important;
}
body.finance-unlocked #home .mf-command-head{margin:0 0 14px!important}
body.finance-unlocked #home .mf-command-head strong{
  font-size:25px!important;color:var(--fg)!important;
}
body.finance-unlocked #home .mf-action-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:13px!important;
}
body.finance-unlocked #home .mf-action {
  min-height:104px!important;padding:17px 13px!important;
  border:1px solid transparent!important;border-radius:19px!important;
  background:var(--mf-action-bg)!important;color:var(--mf-action-ink)!important;
  box-shadow:none!important;white-space:normal!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:12px!important;flex-direction:row!important;
  text-align:center!important;font-weight:850!important;
  line-height:1.45!important;
}
body.finance-unlocked #home .mf-action :is(svg,path,rect){stroke:currentColor}
body.finance-unlocked #home .mf-action span:last-child{
  font-size:clamp(19px,2.4vw,22px)!important;
  color:inherit!important;line-height:1.35!important;
  font-weight:850!important;
}
body.finance-unlocked #home .mf-action-icon {
  display:grid!important;place-items:center!important;
  background:#ffffffbd!important;color:inherit!important;
  width:48px!important;height:48px!important;flex:0 0 48px!important;
  border:1px solid #ffffffcc!important;
  border-radius:15px!important;
}
body.finance-unlocked.dark #home .mf-action-icon{
  background:#ffffff16!important;border-color:#ffffff21!important;
}
body.finance-unlocked #home .mf-action-expense{
  background:#ffebea!important;color:#85353c!important;border-color:#f5d4d1!important;
}
body.finance-unlocked #home .mf-action-income{
  background:#e4f8ec!important;color:#16583d!important;border-color:#caebd5!important;
}
body.finance-unlocked #home .mf-action-transfer{
  background:#e5f2ff!important;color:#174b7f!important;border-color:#d1e6fa!important;
}
body.finance-unlocked #home .mf-action-loans{
  background:#fff3d9!important;color:#674b21!important;border-color:#f5e5bc!important;
}
body.finance-unlocked.dark #home .mf-action-expense{
  background:#4d303b!important;color:#ffe0df!important;border-color:#77515b!important;
}
body.finance-unlocked.dark #home .mf-action-income{
  background:#20483d!important;color:#d0fce3!important;border-color:#366354!important;
}
body.finance-unlocked.dark #home .mf-action-transfer{
  background:#263f5d!important;color:#d9ecff!important;border-color:#3d5877!important;
}
body.finance-unlocked.dark #home .mf-action-loans{
  background:#4c422c!important;color:#ffefca!important;border-color:#65563c!important;
}
body.finance-unlocked #home .finance-kpi{
  background:var(--card)!important;color:var(--fg)!important;
  min-height:137px!important;
}
body.finance-unlocked #home .finance-kpi-title{
  font-size:20px!important;line-height:1.45!important;
  font-weight:800!important;
}
body.finance-unlocked #home .finance-kpi b{
  font-size:clamp(28px,4.5vw,39px)!important;
  color:var(--fg)!important;
}
body.finance-unlocked #home .finance-kpi-net b{color:#c96d7b!important}
body.finance-unlocked #home .finance-receivables-strip{
  padding:18px 20px!important;min-height:82px!important;
}
body.finance-unlocked #home .finance-strip-label{font-size:20px!important}
body.finance-unlocked #home .finance-home-hub-copy strong{
  font-size:22px!important;line-height:1.4!important;
}
body.finance-unlocked #home .finance-home-hub{min-height:98px!important}
body.finance-unlocked #home .loan-reminder-banner{
  border-radius:20px!important;line-height:1.7!important;
}
body.finance-unlocked #home .loan-reminder-copy strong{font-size:19px!important}
body.finance-unlocked #home .loan-reminder-copy p{font-size:17px!important}
body.finance-unlocked .finance-app-header{
  align-items:center!important;min-height:74px!important;
  gap:10px!important;padding:12px 0!important;
}
body.finance-unlocked .finance-app-header h1{
  font-size:clamp(22px,3vw,29px)!important;
  line-height:1.45!important;
}
body.finance-unlocked .finance-app-header .brand-tag{
  font-size:14px!important;
}
body.finance-unlocked .finance-app-header .finance-header-profile-name{
  font-size:16px!important;
}
body.finance-unlocked .finance-app-header .brand-mark{
  min-width:48px;min-height:48px;
}
body.finance-unlocked #mf-update-notice{
  padding:12px 15px!important;border-radius:14px!important;
  min-height:60px!important;gap:10px!important;
}
body.finance-unlocked #mf-update-notice strong{font-size:17px!important}
body.finance-unlocked #mf-update-notice small{font-size:15px!important}
body.finance-unlocked #mf-update-apply{min-height:47px!important;font-size:16px!important}
body.finance-unlocked .finance-mobile-nav button{
  min-height:79px!important;
}
body.finance-unlocked .finance-mobile-nav button>span:last-child{
  font-size:17px!important;line-height:1.2!important;
}
body.finance-unlocked .finance-mobile-nav svg{
  width:29px!important;height:29px!important;
}
@media(max-width:550px){
  body.finance-unlocked main{
    padding:14px 15px calc(116px + env(safe-area-inset-bottom))!important;
  }
  body.finance-unlocked #home .finance-home-heading{
    min-height:238px!important;margin:4px 0 16px!important;
    padding:21px 18px 19px!important;
  }
  body.finance-unlocked #home .mf-heading-copy{max-width:66%!important}
  body.finance-unlocked #home .finance-home-heading h2{font-size:29px!important}
  body.finance-unlocked #home .finance-home-heading p.muted{font-size:17px!important}
  body.finance-unlocked #home .mf-home-visual{
    left:-25px!important;top:0!important;bottom:0!important;
    width:55%!important;height:85%!important;
  }
  body.finance-unlocked #home .finance-head-actions{
    margin-top:auto!important;
  }
  body.finance-unlocked #home .finance-new-entry{
    font-size:19px!important;min-height:55px!important;
  }
  body.finance-unlocked #home .finance-dashboard-metrics>.finance-kpi-pair{
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  body.finance-unlocked #home .finance-kpi-pair>.finance-kpi-net{grid-column:auto!important}
  body.finance-unlocked #home .finance-kpi{
    padding:20px!important;min-height:124px!important;
  }
  body.finance-unlocked #home .finance-kpi b{
    font-size:clamp(28px,7vw,36px)!important;
  }
  body.finance-unlocked #home .mf-action{
    min-height:113px!important;
    padding:14px 8px!important;gap:8px!important;
    flex-direction:column!important;
  }
  body.finance-unlocked #home .mf-action-icon{
    width:45px!important;height:45px!important;
    flex:0 0 45px!important;
  }
  body.finance-unlocked #home .mf-action span:last-child{
    font-size:20px!important;line-height:1.4!important;
  }
  body.finance-unlocked #home>.finance-home-hubs{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.finance-unlocked #home .finance-home-hub-copy strong{
    font-size:22px!important;
  }
  body.finance-unlocked .finance-mobile-nav button>span:last-child{
    font-size:15px!important;
  }
  body.finance-unlocked .finance-app-header h1{font-size:23px!important}
}
/* Android Chrome with desktop viewport reports >900 CSS px even with a narrow physical screen.
   Include all mobile-density styles explicitly, irrespective of CSS media-query viewport. */
html.mf-wide-mobile body.finance-unlocked #home .finance-home-heading{
  min-height:235px!important;padding:20px 18px!important;
}
html.mf-wide-mobile body.finance-unlocked #home .mf-heading-copy{
  max-width:65%!important;
}
html.mf-wide-mobile body.finance-unlocked #home .finance-dashboard-metrics{
  display:flex!important;flex-direction:column!important;
}
html.mf-wide-mobile body.finance-unlocked #home .finance-dashboard-metrics>.finance-kpi-pair{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
}
html.mf-wide-mobile body.finance-unlocked #home .mf-action-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
html.mf-wide-mobile body.finance-unlocked #home .mf-action{
  flex-direction:column!important;min-height:100px!important;
}
html.mf-wide-mobile body.finance-unlocked #home .finance-home-hubs{
  grid-template-columns:minmax(0,1fr)!important;
}
html.mf-wide-mobile body.finance-unlocked main{
  max-width:100%!important;padding-inline:16px!important;
}
html.mf-wide-mobile body.finance-unlocked .finance-mobile-nav{
  display:flex!important;
}
html.mf-wide-mobile body.finance-unlocked .finance-sidebar{display:none!important}
@media(prefers-reduced-motion:reduce){
 body.finance-unlocked #home .mf-home-visual img{transition:none!important}
}


/* ==== R78: At-a-glance installment, last entry, and transparent market watch ==== */
body.finance-unlocked #home>.mf-home-notices{
 display:grid;gap:14px;margin:0 0 19px;min-width:0;
}
body.finance-unlocked #home>.mf-home-notices #loan-due-notice{
 display:flex!important;min-width:0!important;margin:0!important;
 align-items:center!important;gap:15px!important;
 background:var(--card)!important;color:var(--fg)!important;
 border:2px solid #e7cb88!important;border-right:6px solid #d6a13f!important;
 border-radius:23px!important;padding:22px!important;
 box-shadow:var(--mf-v75-shadow)!important;
}
body.finance-unlocked #home>.mf-home-notices #loan-due-notice.loan-alert-orange{
 background:#fff6e5!important;color:#713e0a!important;
 border-color:#edb14c!important;border-right-color:#df892e!important;
}
body.finance-unlocked #home>.mf-home-notices #loan-due-notice.loan-alert-red{
 background:#fff0ee!important;color:#862b32!important;
 border-color:#dc6363!important;border-right-color:#c83c46!important;
}
body.finance-unlocked.dark #home>.mf-home-notices #loan-due-notice.loan-alert-orange{
 background:#4a3824!important;color:#fff1d9!important;border-color:#8c6031!important;
}
body.finance-unlocked.dark #home>.mf-home-notices #loan-due-notice.loan-alert-red{
 background:#4c2e35!important;color:#ffe3e6!important;border-color:#a65260!important;
}
body.finance-unlocked #home>.mf-home-notices .loan-reminder-copy{flex:1 1 240px;min-width:0}
body.finance-unlocked #home>.mf-home-notices #loan-reminder-title{
 display:block;font-size:clamp(20px,3.1vw,25px)!important;font-weight:900!important;
 line-height:1.45!important;color:inherit!important;
}
body.finance-unlocked #home>.mf-home-notices #loan-reminder-detail{
 font-size:clamp(18px,2.9vw,22px)!important;line-height:1.75!important;
 font-weight:750!important;color:inherit!important;
 overflow-wrap:anywhere!important;margin:9px 0 0!important;
}
body.finance-unlocked #home>.mf-home-notices #loan-reminder-open{
 min-height:57px!important;font-size:17px!important;
 padding:12px 17px!important;border-radius:15px!important;
 white-space:normal!important;color:#fff!important;background:#155b65!important;
}
body.finance-unlocked #home .mf-last-tx{
 display:flex;align-items:center;gap:16px;width:100%;
 min-height:117px;padding:19px 22px!important;min-width:0;
 border:1px solid var(--line)!important;border-radius:23px!important;
 text-align:start!important;color:var(--fg)!important;
 background:var(--card)!important;box-shadow:var(--mf-v75-shadow)!important;
}
body.finance-unlocked #home .mf-last-tx-icon{
 display:grid;place-items:center;width:57px;height:57px;
 flex:0 0 57px;border-radius:18px;background:#e9f5ff;
 color:#225681;font-size:29px;
}
body.finance-unlocked.dark #home .mf-last-tx-icon{background:#284461}
body.finance-unlocked #home .mf-last-tx-body{
 display:flex;flex-direction:column;gap:5px;min-width:0;flex:1;
}
body.finance-unlocked #home .mf-last-tx-body small{
 font-size:17px!important;line-height:1.5;color:var(--muted)!important;
}
body.finance-unlocked #home .mf-last-tx-body strong{
 font-size:clamp(20px,3vw,24px)!important;line-height:1.5!important;
 color:var(--fg)!important;font-weight:850!important;overflow-wrap:anywhere;
}
body.finance-unlocked #home #mf-last-tx-extra{
 font-size:16px!important;line-height:1.5!important;color:var(--muted);
 overflow-wrap:anywhere;
}
body.finance-unlocked #home #mf-last-tx-amount{
 display:block;flex:0 1 auto;max-width:48%;min-width:0;
 font-size:clamp(20px,2.8vw,25px)!important;
 line-height:1.55!important;font-weight:900!important;
 color:var(--fg);overflow-wrap:anywhere;text-align:end;
 font-variant-numeric:tabular-nums;
}
body.finance-unlocked #home #mf-last-tx-amount.mf-positive{color:#218460}
body.finance-unlocked #home #mf-last-tx-amount.mf-negative{color:#d16066}
body.finance-unlocked #home .mf-last-tx-chevron{font-size:27px;color:var(--accent)}
body.finance-unlocked #home .mf-last-tx:active{transform:scale(.992)}
body.finance-unlocked #home .mf-market-card{
 margin:20px 0 10px;padding:24px!important;
 background:var(--card);color:var(--fg);
 border:1px solid var(--line);border-radius:24px;
 box-shadow:var(--mf-v75-shadow);
}
body.finance-unlocked #home .mf-market-top{
 display:flex;align-items:center;justify-content:space-between;gap:14px;
 margin-bottom:18px;
}
body.finance-unlocked #home .mf-market-eyebrow{
 color:var(--accent);font-size:12px;letter-spacing:.08em;font-weight:850;
}
body.finance-unlocked #home .mf-market-top h3{
 font-size:clamp(23px,3.5vw,28px)!important;line-height:1.5!important;
 margin:0 0 4px!important;color:var(--fg);
}
body.finance-unlocked #home #mf-market-status{
 font-size:16px!important;line-height:1.65!important;color:var(--muted);
 margin:0;
}
body.finance-unlocked #home #mf-market-status[data-state="stale"],
body.finance-unlocked #home #mf-market-status[data-state="unavailable"]{color:#be7248}
body.finance-unlocked #home #mf-market-refresh{
 min-height:53px!important;padding:11px 16px!important;
 flex:0 0 auto;font-size:17px!important;font-weight:800;
 border-radius:14px!important;background:var(--mf-action-bg)!important;
 color:var(--mf-action-ink)!important;border:1px solid var(--line)!important;
}
body.finance-unlocked #home .mf-market-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
body.finance-unlocked #home .mf-market-rate{
 display:flex;flex-direction:column;gap:8px;min-width:0;
 min-height:140px;padding:18px;
 background:var(--bg);border:1px solid var(--line);
 border-radius:19px;
}
body.finance-unlocked #home .mf-market-rate-head{
 display:flex;align-items:center;gap:10px;min-width:0;
}
body.finance-unlocked #home .mf-market-emoji{font-size:27px;flex:0 0 auto}
body.finance-unlocked #home .mf-market-rate-head strong{
 font-size:19px!important;line-height:1.45!important;
 font-weight:850;color:var(--fg);
}
body.finance-unlocked #home .mf-market-rate b{
 font-size:clamp(23px,2.8vw,31px)!important;
 line-height:1.45!important;overflow-wrap:anywhere;
 font-variant-numeric:tabular-nums;font-weight:900;
 color:var(--fg);
}
body.finance-unlocked #home .mf-market-rate-foot{
 font-size:14px!important;line-height:1.65!important;color:var(--muted);
}
body.finance-unlocked #home .mf-market-rate.mf-rate-stale{
 border-style:dashed;opacity:.87;
}
body.finance-unlocked #home .mf-market-bottom{
 display:flex;flex-wrap:wrap;gap:9px 17px;
 align-items:center;justify-content:space-between;
 padding-top:16px;color:var(--muted);
}
body.finance-unlocked #home .mf-market-bottom span{
 font-size:14px!important;line-height:1.65;
}
body.finance-unlocked #home .mf-market-bottom a{
 color:var(--accent);font-size:15px!important;line-height:1.5;
 min-height:43px;display:inline-flex;align-items:center;
 font-weight:800;text-underline-offset:3px;
}
/* In the very small width, keep the finance summary readable instead of squeezing prices. */
@media(max-width:690px){
 body.finance-unlocked #home>.mf-home-notices #loan-due-notice{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:11px!important;padding:19px 18px!important;
 }
 body.finance-unlocked #home>.mf-home-notices #loan-reminder-open{width:100%;min-height:53px!important}
 body.finance-unlocked #home .mf-last-tx{
  display:grid;grid-template-columns:48px minmax(0,1fr) auto;
  grid-template-areas:"icon title arrow" "amount amount amount";
  gap:8px 12px;padding:18px!important;
 }
 body.finance-unlocked #home .mf-last-tx-icon{
  grid-area:icon;width:48px;height:48px;min-width:48px;flex-basis:48px;font-size:26px;
 }
 body.finance-unlocked #home .mf-last-tx-body{grid-area:title}
 body.finance-unlocked #home .mf-last-tx-chevron{grid-area:arrow}
 body.finance-unlocked #home #mf-last-tx-amount{
  grid-area:amount;max-width:100%;text-align:start;font-size:25px!important;
 }
 body.finance-unlocked #home .mf-market-card{padding:19px 16px!important}
 body.finance-unlocked #home .mf-market-top{flex-wrap:wrap}
 body.finance-unlocked #home .mf-market-grid{grid-template-columns:1fr;gap:10px}
 body.finance-unlocked #home .mf-market-rate{min-height:110px;padding:15px 16px}
 body.finance-unlocked #home .mf-market-rate b{font-size:27px!important}
}
