/* Amount focus belongs to the whole control, including its currency prefix. */
.field .currency-input{display:flex;align-items:center;gap:14px;width:100%;min-width:0;padding:12px 16px;border:1px solid #aabb9360;outline:none}
.field .currency-input:focus-within{border-color:#dcc596;outline:2px solid #dcc596;outline-offset:2px;box-shadow:none}
.field .currency-input input,.field .currency-input input:focus,.field .currency-input input:focus-visible{flex:1;min-width:0;width:100%;border:0;outline:0!important;box-shadow:none!important;border-radius:0;background:transparent;padding:4px 0;color:var(--text)}
.field .currency-input>span{flex:0 0 auto;min-width:32px;font-size:13px;line-height:1;letter-spacing:1px;color:#dac8a6}
.entry-wallets{gap:10px;margin-top:8px}.entry-wallets button{min-height:60px;padding:11px 16px;gap:4px}.entry-wallets strong{font-size:17px}.entry-wallets span{font-size:12px}
.release-label{font-size:11px!important;letter-spacing:.5px;color:#c6b796!important}
/* An original, quiet watch face with pointed dauphine hands. */
.date-stamp.timepiece{display:flex;align-items:center;gap:19px;padding:0;border:0;flex-shrink:0;white-space:normal}
.watch-dial{display:block;width:112px;height:112px;flex:none;overflow:visible}
.watch-case{fill:#ac997147;stroke:#d0b780;stroke-width:.7}.watch-track{fill:none;stroke:#b5a07745;stroke-width:.5}.hour-mark{stroke:#dbca9e;stroke-width:1.4}.minute-mark{stroke:#b5bc9c;stroke-width:.5;opacity:.6}
.dial-signature{font:italic 15px var(--font);fill:#d0bd94;text-anchor:middle}.dial-caption{font:5px var(--font);letter-spacing:1.1px;fill:#b8b99b;text-anchor:middle}
.watch-meta{display:flex;flex-direction:column;align-items:center;min-width:132px;gap:5px}.watch-meta #todayLabel{font-size:13px;line-height:1.4}.watch-meta #clockTime{font-size:10px;letter-spacing:.7px;line-height:1.5;margin:0;color:#b5c1aa}
.watch-cities{display:flex;gap:2px;border-bottom:1px solid #c6b89726}.watch-cities button{min-width:44px;min-height:44px;border:0;background:transparent;font:11px var(--font);letter-spacing:1px;color:#aab6a0;padding:8px}.watch-cities button[aria-pressed=true]{color:#e7d8b7;box-shadow:inset 0 -1px #d8c49b}
.compact-sections{display:none}.compact-pagination{display:flex;align-items:center;justify-content:center;gap:20px;margin:18px 0;font-size:13px;color:#c6ccb9}.compact-pagination .button{min-height:44px}
.converter-disclosure{margin-top:22px;border-top:1px solid #b4c1a124;padding-top:10px}.converter-disclosure>summary,.activity-filter-disclosure>summary{min-height:44px;align-content:center;cursor:pointer;font-size:14px;color:#d7c6a4}.converter-disclosure .exchange-card{margin-top:12px}
.activity-filter-disclosure>summary{display:none}.activity-card>#activityScope{padding:0 21px;margin:12px 0;font-size:12px}
@media(max-width:1024px){.date-stamp.timepiece{gap:12px}.watch-dial{width:96px;height:96px}.watch-meta{min-width:114px}.page-heading{gap:22px}}
@media(max-width:680px){
 .compact-hidden{display:none!important}
 .compact-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:4px;border:1px solid #c1c9a820;border-radius:13px;background:#15271b88;margin:0 0 18px}
 .compact-sections button{min-width:0;min-height:44px;border:0;border-radius:9px;background:transparent;color:#b9c5ad;font:14px var(--font);padding:8px 3px}
 .compact-sections button[aria-pressed=true]{background:#3b513a;color:#eee0c3;box-shadow:inset 0 1px #dfd4b41a}
 .page-wrap{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
 .site-header{padding-top:10px;gap:7px;min-height:0}.site-header nav{padding:0;gap:3px}.site-header nav a{min-height:44px;height:44px;font-size:13px}
 .workspace-bar{min-height:0;padding:5px 0;gap:4px;align-items:center}.workspace-label{display:none}.feedback{font-size:11px;min-height:26px}.currency-note{font-size:10px;margin:0 0 8px}.workspace-bar.error .feedback{font-size:13px}
 .page-heading{align-items:center;margin:16px 0 18px;gap:12px}.page-heading>div:first-child{min-width:0}.page-heading h1{font-size:28px;line-height:1.13;letter-spacing:-.6px;margin:5px 0 8px}.page-heading .eyebrow{font-size:7px;letter-spacing:1.1px;margin:0}.page-subtitle{font-size:13px;line-height:1.5;margin-top:7px}.mobile-break{display:none}
 .date-stamp.timepiece{flex-direction:column;width:92px;gap:1px}.watch-dial{width:74px;height:74px}.watch-meta{min-width:0;width:92px;gap:1px}.watch-cities{border:0}.watch-cities button{font-size:10px;padding:6px;min-height:44px}.watch-meta #todayLabel{display:none}.watch-meta #clockTime{font-size:9px;letter-spacing:.2px}
 .overview-grid{display:block}.overview-grid:has(>.hero.compact-hidden):has(>.budget-card.compact-hidden){display:none}
 .hero{padding:23px 22px 18px}.hero-number{margin:24px 0 12px;font-size:clamp(38px,12vw,64px)}.hero-number.is-long{font-size:clamp(28px,8vw,43px)}.hero-top .small-label{display:none}.hero-bottom{margin-top:22px;padding-top:18px;gap:12px}.hero-description{font-size:13px;line-height:1.6}.calculation{margin-top:12px}.calculation summary{min-height:44px;align-content:center}
 .wallet-balances{grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.wallet-card{padding:18px 15px}.wallet-card h2{font-size:clamp(20px,5.6vw,30px);margin:12px 0 6px;line-height:1.3}.wallet-card .eyebrow{font-size:8px;letter-spacing:.7px}.wallet-card p:not(.eyebrow){font-size:11px;line-height:1.5}.wallet-card small{font-size:10px;line-height:1.5}.wallet-transfer{margin-bottom:0}
 .budget-card{padding:22px}.budget-card .week-chart{height:60px}.budget-amount strong{font-size:31px}.balance-strip{margin-top:14px}.balance-strip>div{padding:12px 16px}.balance-strip strong{font-size:20px}
 .dashboard-previews{margin-top:0;gap:14px}.preview-heading{padding:18px 20px 8px}.preview-heading h2{font-size:21px}.preview-heading .eyebrow{display:none}.preview-list{padding:0 20px 8px}.preview-row{min-height:60px;padding:9px 0}.preview-label strong{font-size:14px}.preview-amount{font-size:15px}.preview-label small{font-size:11px}
 .activity-filter-disclosure{border-bottom:1px solid #c1c9a822}.activity-filter-disclosure>summary{display:list-item;padding:10px 16px;min-height:48px;list-style-position:inside}.activity-date-controls{padding:12px 16px 0;border:0}.activity-controls{padding:12px 16px;gap:8px}.activity-card>#activityScope{padding:0 16px;margin:8px 0;font-size:11px}.activity-controls .segmented button{min-height:40px}.search{min-height:44px}.transaction-row{grid-template-columns:29px minmax(0,1fr) minmax(0,auto);padding:13px 14px;gap:8px;min-height:65px}.transaction-monogram{grid-row:1;width:28px;height:28px;font-size:9px}.transaction-main{grid-column:2}.transaction-title{font-size:14px}.transaction-meta{font-size:10px}.transaction-amount{grid-column:3;font-size:15px;max-width:125px;text-align:right;overflow-wrap:anywhere}.activity-date-heading{padding:10px 14px}.activity-date-heading h3{font-size:12px}.activity-date-heading>span{font-size:10px}.activity-pagination{padding:10px 14px;gap:8px}.activity-footer{padding:14px;grid-template-columns:auto minmax(0,1fr);gap:10px}.activity-footer .primary{grid-row:auto;min-width:0;font-size:13px;padding:10px}.activity-footer .quiet{font-size:11px;padding:8px}.activity-footer .button-symbol{width:27px;height:27px}.activity-footer .end-icon{display:none}
 .section-heading{margin-bottom:14px}.section-heading h2{font-size:23px}.bill-card{padding:18px}.bill-card h3{font-size:21px}.bill-top{margin-bottom:2px}.bill-amount{font-size:22px}.bill-bottom{margin-top:10px;padding-top:10px}.bill-bottom>small{font-size:11px}.section-note{font-size:12px;line-height:1.6}.paid-row{flex-wrap:wrap;gap:8px;padding:12px 0}.compact-pagination{margin:12px 0}
 .insights-layout{display:block}.insights-layout .category-card{padding:22px}.insights-layout .category-ring{width:140px;height:140px;margin:0 auto 20px}.category-card .insight{padding-top:14px;margin-top:14px}.insights-detail{gap:14px}.insight-summary{padding:22px}.insight-summary h2{font-size:23px;margin-bottom:16px}.insight-metrics{margin:10px 0;gap:14px}.flow-row{margin-top:14px}.net-flow{margin-top:20px;padding-top:16px}.category-plans,.exchange-history{margin-top:0}.plan-rows{grid-template-columns:1fr 1fr;gap:9px;margin:16px 0}.plan-row{padding:14px 12px;border-radius:12px}.plan-row-heading{gap:5px}.plan-row-heading h3{font-size:15px}.plan-row-heading>span{font-size:12px;line-height:1.5}.plan-row .form-hint{font-size:11px;line-height:1.5}.plan-progress{margin-top:12px}.category-plans .preview-heading .button{width:auto}.plan-toolbar .form-hint{font-size:12px}.exchange-history>.form-hint{font-size:14px;margin-bottom:16px}.transfer-record{padding:16px 0}.transfer-record-heading strong{font-size:17px}.transfer-record .form-hint{font-size:12px;line-height:1.7}.transfer-record .button{font-size:12px}.converter-disclosure{margin-top:16px}
 dialog{max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:calc(100vw - 20px);border-radius:20px}.dialog-form{padding:20px}.dialog-heading{padding-bottom:14px;margin-bottom:16px}.dialog-heading h2{font-size:25px}.dialog-heading .eyebrow{font-size:7px}.field{margin:13px 0}.entry-wallets button{min-height:54px;flex-direction:row;align-items:center;justify-content:space-between;padding:10px 12px}.entry-wallets strong{font-size:15px}.entry-wallets span{font-size:11px}.entry-wallets+p{font-size:11px;margin:6px 0}.currency-input input{font-size:32px}.amount-field+.form-hint{display:none}#transactionForm .form-columns{grid-template-columns:1fr 1fr;gap:12px}#transactionForm .form-columns .field{min-width:0}#transactionForm .date-trigger{padding:10px 8px;gap:4px;font-size:14px}.dialog-footer{margin-top:15px;padding-top:14px}.dialog-actions .button{font-size:14px;padding:11px 8px}.form-hint{font-size:13px}.site-footer{margin-top:24px;padding-bottom:18px;font-size:10px}.app-view{min-height:0}
}
@media(max-width:360px){.page-heading h1{font-size:25px}.page-heading{gap:8px}.date-stamp.timepiece{width:80px}.watch-dial{width:64px;height:64px}.watch-meta{width:88px}.wallet-balances{gap:8px}.wallet-card{padding:16px 12px}.dialog-form{padding:18px 14px}.transaction-amount{max-width:102px;font-size:14px}.plan-row{padding:12px 10px}.compact-sections button{font-size:13px}}
/* Selected wallet stays highlighted after focus moves into the amount field. */
#transactionForm .entry-wallets button{border:1px solid #a8b59445;box-shadow:none}
#transactionForm .entry-wallets button.is-selected,#transactionForm .entry-wallets button[aria-pressed="true"]{border-color:#dac394;background:#3b513a;box-shadow:inset 0 0 0 1px #dac394;color:#f2e5cb}
#transactionForm .entry-wallets button:focus-visible{outline:2px solid #e6d5af;outline-offset:3px}

/* Keep the search icon and text inside one rounded focus frame. */
.activity-controls .search{padding:0 12px;min-height:46px;border:1px solid #a8b59445;border-radius:13px;box-shadow:none}
.activity-controls .search:focus-within{border-color:#dcc596;box-shadow:0 0 0 1px #dcc596;color:#dcc596}
.activity-controls .search input,.activity-controls .search input:focus,.activity-controls .search input:focus-visible{flex:1;min-width:0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;-webkit-appearance:none;appearance:none}
.activity-controls .search .icon{flex-shrink:0}

/* Center the dial and its caption as one contained unit. */
.date-stamp.timepiece{flex-direction:column;justify-content:center;align-items:center;align-self:center;gap:8px;text-align:center;max-width:100%;margin-inline:auto}
.date-stamp.timepiece .watch-meta{align-items:center;text-align:center;min-width:0;width:100%;gap:4px}
.date-stamp.timepiece .watch-dial{max-width:100%;height:auto;aspect-ratio:1}
.date-stamp.timepiece .watch-cities{justify-content:center}
@media(max-width:680px){.date-stamp.timepiece{margin-inline:0;gap:2px;flex:0 0 92px}.date-stamp.timepiece .watch-meta{width:100%}}
@media(max-width:360px){.date-stamp.timepiece{flex-basis:80px}}

/* One clear daily action, with secondary tools on demand. */
.everyday-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.everyday-actions .primary{min-width:180px}.wallet-tools{margin:0 0 20px;color:var(--muted)}.wallet-tools>summary{cursor:pointer;min-height:44px;align-content:center;font-size:14px}.wallet-tools .wallet-transfer{margin:8px 0 16px}.wallet-tools .wallet-transfer .form-hint{display:none}
@media(max-width:680px){.everyday-actions{display:grid;grid-template-columns:1.3fr 1fr;gap:8px}.everyday-actions .button{min-width:0;padding:12px 10px;font-size:14px}.wallet-tools{margin-bottom:8px}.wallet-balances .wallet-card{padding:12px}.wallet-balances .wallet-card h2{margin:8px 0;font-size:24px}.wallet-balances .wallet-card p:not(.eyebrow),#thaiEquivalent{display:none}.compact-sections{margin-bottom:14px}.page-heading{margin-top:18px;margin-bottom:18px}.page-heading .page-subtitle{display:none}.site-header nav a{font-size:12px}}

/* Quiet home header; legacy exchange records remain in saved backups. */
.date-stamp.timepiece .watch-meta,.exchange-history,.converter-disclosure,.wallet-transfer,.wallet-tools{display:none!important}
[data-view="overview"]>.page-heading>div:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
[data-view="overview"]>.page-heading{justify-content:center;margin:14px 0 20px}
[data-view="overview"] .date-stamp.timepiece{margin:0;flex:0 0 auto;width:auto}
#displayCurrencyNote{display:none!important}
.workspace-bar:not(.error):not(:has(#undoButton:not([hidden]))) .feedback:has(#feedbackText:empty){display:none}

/* A clear daily task, a separate budget, and details only when needed. */
.compact-hidden{display:none!important}
.compact-sections{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:4px;padding:4px;max-width:440px;border:1px solid #c1c9a830;border-radius:14px;background:#15271b88;margin:0 0 20px}
.compact-sections button{min-width:0;min-height:44px;border:0;border-radius:10px;background:transparent;color:#bac8b1;font:15px var(--font);padding:8px 14px}
.compact-sections button[aria-pressed=true]{background:#3b513a;color:#f0e3c6;box-shadow:inset 0 0 0 1px #c9b78644}
.home-daily{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);align-items:start;gap:24px}
.home-daily .hero{min-width:0}
.home-daily .hero-number{margin-bottom:5px}
.daily-rate-note{color:#bbcaaf;font-size:12px;line-height:1.5;margin:0 0 14px}
.home-daily .hero-top .small-label{display:none}
.budget-edit{margin-top:18px;min-height:44px}
.home-daily .everyday-actions{display:block;margin:16px 0 0;padding-top:16px;border-top:1px solid #b6c79b2b}
.home-daily .everyday-actions .primary{width:100%;min-height:48px;justify-content:center}
.wallet-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.wallet-heading h2{font-size:22px;font-weight:400}.wallet-heading .text-button{min-height:44px;font-size:13px}
.home-wallets .wallet-balances{grid-template-columns:1fr;margin:0;gap:12px}
.home-wallets .wallet-card{padding:20px}.home-wallets .wallet-card h2{font-size:30px;overflow-wrap:anywhere}
.home-wallets .wallet-card p:not(.eyebrow),.home-wallets #thaiEquivalent{display:none}
#homeRatePrompt{margin-top:10px;min-height:44px;line-height:1.5;text-align:left}
.home-start{padding:22px 0 0;line-height:1.6}.home-start p{margin-bottom:14px}
.hero:has(#homeStart:not([hidden])) .hero-number,.hero:has(#homeStart:not([hidden])) .hero-bottom,.hero:has(#homeStart:not([hidden])) .hero-description,.hero:has(#homeStart:not([hidden])) .daily-rate-note,.hero:has(#homeStart:not([hidden])) .calculation{display:none}
[data-view="overview"] .overview-grid{grid-template-columns:1fr;max-width:840px}
[data-view="overview"] .balance-strip{max-width:840px}
[data-view="overview"]>.page-heading{margin:12px 0}.date-stamp.timepiece .watch-dial{width:80px}
.workspace-bar:not(.error):not(:has(#undoButton:not([hidden]))):has(#feedbackText:empty){display:none}
.dialog-heading .eyebrow{display:none}.dialog-heading h2{margin-top:0}
.settings-group{border-top:1px solid #b9c6a631;padding:0 0 4px}
.settings-group>summary{padding:16px 0;min-height:52px;cursor:pointer;font-size:17px;color:#dfd1b2;list-style-position:inside}
.settings-group .settings-tools{border:0;margin:0;padding:0 0 14px}
.settings-group .form-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#settingsForm>.dialog-actions{position:sticky;bottom:-28px;z-index:2;padding:16px 0 4px;margin-top:14px;border-top:1px solid #b9c6a631;background:#213527}
#settingsForm>.form-error:empty{display:none}
#settingsForm .release-label{font-size:10px!important}
#activity>.section-heading{gap:12px;justify-content:space-between}
#activity>.section-heading .primary{min-height:46px}.activity-footer{justify-content:flex-end}
.activity-filter-disclosure>summary{display:list-item;list-style-position:inside;padding:12px 20px;min-height:48px;cursor:pointer;color:#d8cba8}
.activity-filter-disclosure{border-bottom:1px solid #b9c6a625}
.page-heading .page-number{display:none}
.insights-layout:has(>aside.compact-hidden){display:block}
.insights-layout:has(>.insights-detail.compact-hidden){grid-template-columns:1fr}
@media(max-width:800px){.home-daily{grid-template-columns:1fr;gap:18px}.home-wallets .wallet-balances{grid-template-columns:repeat(2,minmax(0,1fr))}.home-wallets .wallet-card{padding:15px}.home-wallets .wallet-card h2{font-size:clamp(19px,5vw,28px)}}
@media(max-width:680px){.compact-sections{max-width:none;margin-bottom:14px}.compact-sections button{padding:8px;font-size:14px}.date-stamp.timepiece .watch-dial{width:60px}.home-daily .hero{padding:19px}.home-daily .hero-number{margin-top:16px}.home-daily .hero-bottom{margin-top:16px;padding-top:14px}.home-daily .hero-bottom strong{font-size:18px}.home-daily .hero-bottom .stat-label{font-size:10px}.wallet-heading{margin-bottom:5px}.wallet-heading h2{font-size:20px}.home-daily .calculation{margin-top:6px}.daily-rate-note{font-size:11px;margin-bottom:10px}.home-daily .everyday-actions{margin-top:8px;padding-top:12px}.activity-footer{display:flex;padding:10px 14px}.activity-footer .quiet{width:auto}.activity-controls .segmented button{flex:1}.activity-controls .segmented{display:flex}#activity>.section-heading .end-icon{display:none}#activity>.section-heading .primary{font-size:14px;padding:8px 12px}#activity>.section-heading .button-symbol{width:27px;height:27px}.settings-group .form-columns,#balancesForm .form-columns{grid-template-columns:1fr;gap:0}#settingsForm>.dialog-actions{bottom:-20px;padding-bottom:4px}}

/* Safari can highlight a whole tabindex container when any descendant is tapped. */
html,body,body *{-webkit-tap-highlight-color:transparent}
:focus{outline-color:#dcc596}
:focus-visible{outline:2px solid #dcc596;outline-offset:3px}
#main:focus,#main:focus-visible,.app-view:focus,.app-view:focus-visible,.page-heading h1:focus,.page-heading h1:focus-visible,.activity-controls:focus{outline:none}
/* Keep keyboard focus visible; amount and search use their existing whole-field rings. */
.undo-area{margin-top:18px;padding-top:16px;border-top:1px solid #b9c6a631}
.undo-area h3{font-size:17px;font-weight:400}.undo-area .button{min-height:44px;margin-top:4px}
.site-footer+.workspace-bar{min-height:0;padding:0 0 max(16px,env(safe-area-inset-bottom));font-size:12px;justify-content:flex-start}
.site-footer+.workspace-bar .workspace-label{display:none}
.site-footer+.workspace-bar .feedback{text-align:left;min-height:0;line-height:1.6}

/* Private account experience */
.account-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #766d4d;border-radius:26px;background:radial-gradient(ellipse at top,#2e4333,#14251b 65%);color:#ede9db;box-shadow:0 30px 100px #0008;overflow:auto}
.account-dialog::backdrop{background:#07120ddd;backdrop-filter:blur(8px)}
.account-form{position:relative;padding:34px 30px 26px;display:flex;flex-direction:column;gap:16px}
.account-close{position:absolute;right:16px;top:14px;width:44px;height:44px;border:1px solid #dcca9833;border-radius:50%;background:transparent;color:#d6d3bd;font:26px Georgia;cursor:pointer}
.account-monogram{display:grid;place-items:center;width:56px;height:56px;margin:0 auto;border:1px solid #b4a575;border-radius:50%;font:italic 32px Palatino,Georgia,serif;color:#ddcda4;background:#374936}
.account-brand{text-align:center;font:24px Palatino,Georgia,serif;margin:0}.account-motto{text-align:center;font-size:9px;letter-spacing:.22em;color:#bdb38e;margin:-9px 0 12px}
.account-form h2{font:normal clamp(26px,6vw,34px)/1.15 Palatino,Georgia,serif;margin:0;letter-spacing:-.035em}.account-intro{color:#b7c1ac;font-size:14px;margin:-6px 0 4px;line-height:1.5}
.account-form .field{margin:0;gap:7px;font-size:14px}.account-form input{width:100%;min-width:0;box-sizing:border-box;min-height:50px;border:1px solid #526048;border-radius:12px;background:#11251a;color:#eee9d9;padding:12px 14px;font:16px Palatino,Georgia,serif;outline:none!important;box-shadow:none!important}
.account-form input:focus{border-color:#d8c69b}.account-password-wrap{display:flex;align-items:center;background:#11251a;border:1px solid #526048;border-radius:12px}.account-password-wrap:focus-within{border-color:#d8c69b}.account-password-wrap input{border:0;background:transparent}.account-reveal{align-self:stretch;padding:0 14px;background:none;border:0;color:#d8c69b;font:12px Palatino,Georgia,serif;cursor:pointer}
.account-password-hint{margin:-8px 0 0;color:#aeb8a1;font-size:11px;line-height:1.5}.account-error{font-size:13px;line-height:1.5;color:#e4cda6;margin:0}.account-error:empty{display:none}.account-submit{width:100%;min-height:50px;margin-top:2px}
.account-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px}.account-links button{min-height:44px;border:0;background:none;color:#d9c9a0;font:14px Palatino,Georgia,serif;cursor:pointer}.account-dialog [hidden]{display:none!important}.account-dialog button:focus-visible{outline:2px solid #d8c69b;outline-offset:3px}.account-dialog button:disabled{opacity:.5;cursor:wait}.account-dialog *{-webkit-tap-highlight-color:transparent}
@media(max-width:480px){.account-form{padding:28px 22px 18px;gap:14px}.account-dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px)}}
@media(max-height:650px){.account-monogram,.account-motto{display:none}.account-brand{text-align:left;font-size:18px}.account-form{padding-top:24px}}

.account-locked body > :not(.account-gate):not(.account-dialog):not(#confirmDialog):not(script){display:none!important}

/* Account tools share one destination; opening it reads local status only. */
.account-center{width:min(640px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overscroll-behavior:contain}
.account-center .dialog-heading{margin-bottom:16px}.account-center .dialog-heading h2{font-size:28px}
.backup-overview{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}
.backup-overview>div{min-width:0;padding:16px;border:1px solid #c2b58c30;border-radius:16px;background:#bfcba608}
.backup-overview>div:last-child{grid-column:1/-1}.backup-overview dt{font-size:12px;color:#b7c4ad;margin-bottom:8px}
.backup-overview dd{margin:0;font-size:17px;color:#eee2ca;overflow-wrap:anywhere}
.account-center .tool-buttons{display:flex;flex-wrap:wrap;gap:10px}.account-center .tool-buttons .button{min-height:44px}
.account-entry{min-height:44px}.site-footer .account-entry{font-size:12px;white-space:nowrap}
.entry-favorite{display:flex;align-items:center;gap:10px;font-size:13px;color:#c7cfbb;min-height:44px}
.entry-favorite input{width:18px;height:18px;min-height:0;accent-color:#d8c49b;flex:none}
.entry-shortcuts{margin:12px 0;color:#d7c6a4;font-size:14px}.entry-shortcuts>summary{cursor:pointer;min-height:44px;align-content:center}
.shortcut-list{display:grid;gap:8px}.shortcut-item{display:flex;gap:8px;min-width:0}.shortcut-item>.button{flex:1;min-width:0;justify-content:flex-start;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:14px}
.shortcut-item>.text-button{min-width:44px;min-height:44px}.dialog-footer:has(#duplicateTransaction){gap:12px;flex-wrap:wrap}
.dialog-footer #duplicateTransaction{font-size:13px;min-height:44px}.entry-favorite[hidden],.entry-shortcuts[hidden]{display:none!important}
dialog{overscroll-behavior:contain;scroll-padding-block:20px;max-height:min(calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)),calc(var(--dialog-viewport-height,100dvh) - 24px))}
.account-dialog,.account-center{max-height:min(calc(100dvh - 32px),calc(var(--dialog-viewport-height,100dvh) - 24px))}
.dialog-heading{gap:16px}.dialog-heading>div{min-width:0}.dialog-heading .icon-button{flex-shrink:0}

/* Tablet portrait, landscape and medium Split View use deliberate columns. */
@media(min-width:681px) and (max-width:1366px){
 .page-wrap{max-width:1180px;padding-inline:max(28px,env(safe-area-inset-left)) max(28px,env(safe-area-inset-right))}
 .site-header{height:auto;min-height:96px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;padding-top:20px}
 .site-header .brand{font-size:26px;min-width:0}.site-header .brand small{font-size:8px;letter-spacing:1.6px}
 .site-header .header-actions{grid-column:2;grid-row:1}.site-header nav{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;height:52px;padding:0}
 .site-header nav a{justify-content:center;height:52px;font-size:15px;padding:0 12px}
 .app-view{min-height:0}.page-heading{margin:24px 0}.page-heading h1{font-size:36px}
 [data-view="overview"]>.page-heading{margin:16px 0 12px}.date-stamp.timepiece .watch-dial{width:68px}
 .compact-sections{max-width:420px;margin-bottom:20px}
 .home-daily{grid-template-columns:minmax(0,1.35fr) minmax(230px,1fr);gap:20px;align-items:start}
 .home-daily .hero{padding:26px;min-height:0}.home-daily .hero-number{font-size:clamp(36px,4.4vw,59px);letter-spacing:-1.4px;margin-top:24px;white-space:normal;overflow-wrap:anywhere}
 .home-daily .hero-number.is-long{font-size:clamp(28px,3.4vw,44px)}.home-daily .hero-number .unit{font-size:18px;display:block;margin:8px 0 0}
 .home-daily .hero-bottom{gap:14px;flex-wrap:wrap;margin-top:22px;padding-top:18px}.home-daily .hero-bottom strong{font-size:19px}.hero-description{font-size:14px}
 .home-wallets .wallet-balances{grid-template-columns:1fr;gap:14px}.home-wallets .wallet-card{padding:22px}.home-wallets .wallet-card h2{font-size:clamp(23px,3vw,34px);margin:12px 0 0}
 .wallet-heading{gap:8px;margin-bottom:10px;flex-wrap:wrap}.wallet-heading h2{font-size:23px}.wallet-heading .text-button{font-size:13px}
 .bills-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.bill-card{padding:23px;min-height:0}.bill-card h3{font-size:25px}.bill-amount{font-size:27px}.bill-bottom{flex-wrap:wrap;gap:10px}
 .insights-layout{grid-template-columns:1fr}.insights-layout .category-card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:26px;align-items:center;padding:28px}.category-card .category-ring{margin:auto}.category-card .insight{grid-column:1/-1}
 .insights-detail{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.insight-summary{padding:26px}.insight-summary h2{font-size:27px}.flow-row,.net-flow{flex-wrap:wrap;gap:8px}
 .plan-rows{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.plan-row{padding:18px}.plan-row-heading h3{font-size:17px}.plan-row-heading>span{font-size:14px}
 .activity-controls{flex-wrap:wrap;gap:14px;padding:20px}.activity-controls .search{flex:1 1 220px;max-width:none;width:auto}.transaction-row{padding:18px 22px}
 .activity-footer{padding:16px 22px}.section-heading{gap:16px}.site-footer{margin-top:28px;padding-block:18px;gap:14px;flex-wrap:wrap}
 dialog:not(.account-dialog):not(.month-picker){width:min(620px,calc(100vw - 48px));border-radius:24px}.dialog-form{padding:26px}.dialog-heading h2{font-size:29px}
 .dialog-form .field{margin-block:14px}.dialog-form .form-columns{gap:16px}.entry-wallets button{min-height:62px}.currency-input input{font-size:38px}
 .dialog-footer{margin-top:18px;padding-top:16px}.dialog-actions{gap:10px}.dialog-actions .button{min-height:46px}.settings-group>summary{min-height:52px}
}
@media(min-width:681px) and (max-width:760px){
 .page-wrap{padding-inline:22px}.home-daily{grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);gap:16px}.home-daily .hero{padding:20px}.home-wallets .wallet-card{padding:18px}.plan-rows{grid-template-columns:repeat(2,minmax(0,1fr))}.insights-detail{grid-template-columns:1fr}
}
@media(max-width:680px){
 .account-center .dialog-form{padding:20px}.account-center .dialog-heading h2{font-size:24px}.backup-overview>div{padding:13px}.backup-overview dd{font-size:15px}
 .site-footer{flex-wrap:wrap}.site-footer .account-entry{padding:0;min-height:36px}.entry-favorite{font-size:12px}
 .dialog-footer .dialog-actions{width:100%;margin-left:0}.dialog-footer #duplicateTransaction{margin-left:auto}
}
@media(max-height:650px){
 dialog .dialog-form{padding-block:18px}.dialog-heading{margin-bottom:12px;padding-bottom:12px}.dialog-form .field{margin-block:10px}
}
.account-gate{min-height:100dvh;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 24px;background:radial-gradient(ellipse at 50% 25%,#293d2d,#0f2017 65%);color:#eee9d9;text-align:center;gap:20px}
.account-gate h1{font:normal 38px Palatino,Georgia,serif;margin:0}.account-gate p{margin:0;color:#bdc4ad}.account-gate .button{width:min(300px,100%);min-height:50px;margin-top:16px}.account-gate[hidden]{display:none!important}

/* Anchor touch dialogs to the visible screen, not Safari's obscured layout viewport. */
dialog[open].viewport-dialog{
 position:fixed;inset:auto;top:calc(var(--dialog-viewport-top,0px) + max(12px,env(safe-area-inset-top)));
 left:calc(var(--dialog-viewport-left,0px) + var(--dialog-viewport-width,100vw)/2);
 margin:0;transform:translateX(-50%);
 max-width:calc(var(--dialog-viewport-width,100vw) - 24px);
 max-height:calc(var(--dialog-viewport-height,100dvh) - max(12px,env(safe-area-inset-top)) - 12px);
 overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto;animation:none;
}
dialog.confirm-dialog.viewport-dialog{max-width:min(430px,calc(var(--dialog-viewport-width,100vw) - 24px))}
dialog.date-picker.viewport-dialog{max-width:min(410px,calc(var(--dialog-viewport-width,100vw) - 24px))}
