:root{
  --app-bg:#f6f7f8;--app-card:#fff;--app-ink:#17181b;--app-muted:#71717a;--app-line:#e5e7eb;
  --app-soft:#f1f2f4;--app-accent:#9ef27b;--app-danger:#ef8b8f;--app-shadow:0 18px 50px rgba(17,24,39,.06);
  --app-radius:18px;--app-radius-sm:12px;--app-max:1180px;
  color-scheme:light;
}
html[data-theme="dark"]{
  --app-bg:#17181b;--app-card:#1c1e22;--app-ink:#f5f5f5;--app-muted:#a1a1aa;--app-line:#363940;
  --app-soft:#23262b;--app-shadow:0 18px 50px rgba(0,0,0,.28);color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--app-bg);color:var(--app-ink)}
body.finance-app{min-height:100dvh;overflow-x:hidden}
a{color:inherit}.app-wrap{width:min(var(--app-max),calc(100% - 32px));margin:0 auto}
.app-nav{position:sticky;top:14px;z-index:50;padding-top:14px}
.app-nav-inner{
  min-height:66px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;padding:10px 12px 10px 16px;
  border:1px solid var(--app-line);border-radius:22px;background:color-mix(in srgb,var(--app-card) 92%,transparent);backdrop-filter:blur(18px);
  box-shadow:0 12px 30px rgba(17,24,39,.06)
}
.app-brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.app-logo{width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:var(--app-ink);color:var(--app-bg);font-weight:800}
.app-nav-links{display:flex;justify-content:center;gap:6px}
.app-nav-link{padding:10px 14px;border-radius:12px;text-decoration:none;color:var(--app-muted);font-size:14px;font-weight:650}
.app-nav-link:hover{background:var(--app-soft);color:var(--app-ink)}
.app-nav-link.active{background:var(--app-soft);color:var(--app-ink)}
.app-nav-actions{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.app-sheet-link{font-size:13px;font-weight:650;text-decoration:none;padding:9px 11px;border-radius:11px}
.app-sheet-link:hover{background:var(--app-soft)}
.theme-select{border:1px solid var(--app-line);background:var(--app-card);color:var(--app-ink);border-radius:11px;padding:9px 10px;font:inherit;font-size:12px;font-weight:650}
.avatar-button{width:38px;height:38px;padding:0;border:0;border-radius:50%;overflow:hidden;background:var(--app-soft);cursor:pointer;display:grid;place-items:center;color:var(--app-ink);font-weight:800}
.avatar-button img{width:100%;height:100%;object-fit:cover}
.mobile-nav-toggle{display:none;width:38px;height:38px;border:1px solid var(--app-line);border-radius:11px;background:var(--app-card);color:var(--app-ink);font-size:18px}
.avatar-menu{position:fixed;z-index:90;min-width:205px;border:1px solid var(--app-line);border-radius:14px;background:var(--app-card);box-shadow:0 22px 60px rgba(0,0,0,.16);padding:7px;display:none}
.avatar-menu.show{display:grid}.avatar-menu button,.avatar-menu a{border:0;background:transparent;color:var(--app-ink);padding:10px 11px;text-align:left;border-radius:9px;text-decoration:none;font:inherit;font-size:13px;cursor:pointer}
.avatar-menu button:hover,.avatar-menu a:hover{background:var(--app-soft)}
.app-main{padding:54px 0 70px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.page-kicker{font-size:11px;letter-spacing:.16em;text-transform:uppercase;font-weight:750;color:var(--app-muted)}
.page-title{font-size:42px;line-height:1.02;letter-spacing:-.055em;margin:8px 0 8px;font-weight:800}
.page-sub{color:var(--app-muted);font-size:14px;margin:0;line-height:1.55}
.period-select,.filter-control,.app-input{border:1px solid var(--app-line);background:var(--app-card);color:var(--app-ink);border-radius:12px;padding:10px 12px;font:inherit}
.app-card{
  border:1px solid var(--app-line);border-radius:var(--app-radius);background:var(--app-card);box-shadow:var(--app-shadow);padding:20px
}
.glow-edge{position:relative;isolation:isolate}
.glow-edge:before{content:"";position:absolute;inset:-1px;z-index:-1;border-radius:inherit;background:
  radial-gradient(circle at 8% 12%,rgba(16,185,129,.42),transparent 22%),
  radial-gradient(circle at 92% 8%,rgba(139,92,246,.42),transparent 24%),
  radial-gradient(circle at 90% 92%,rgba(6,182,212,.36),transparent 24%),
  linear-gradient(var(--app-line),var(--app-line))}
.glow-edge:after{content:"";position:absolute;inset:-14px;z-index:-2;border-radius:26px;background:
  radial-gradient(circle at 8% 20%,rgba(16,185,129,.08),transparent 22%),
  radial-gradient(circle at 90% 15%,rgba(139,92,246,.08),transparent 22%);filter:blur(16px);pointer-events:none}
.metric-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr);gap:16px}
.expense-hero{min-height:190px;padding:26px}
.metric-label{font-size:12px;color:var(--app-muted);font-weight:650}.metric-value{font-size:46px;letter-spacing:-.055em;font-weight:800;margin:14px 0 8px}
.metric-meta{display:flex;gap:18px;flex-wrap:wrap;color:var(--app-muted);font-size:13px}.metric-meta strong{color:var(--app-ink)}
.mini-stat{display:flex;flex-direction:column;justify-content:space-between;min-height:190px}.mini-stat-value{font-size:34px;font-weight:800;letter-spacing:-.045em}
.section-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:16px;margin-top:16px}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.section-title{font-size:17px;font-weight:780;letter-spacing:-.025em;margin:0}.section-note{color:var(--app-muted);font-size:12px;margin-top:4px}
.text-link{border:0;background:transparent;color:var(--app-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-decoration:none;padding:4px 0}
.tx-list{display:grid}.tx-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 0;border-top:1px solid var(--app-line)}
.tx-row:first-child{border-top:0}.tx-main{min-width:0}.tx-merchant{font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-meta{font-size:12px;color:var(--app-muted);margin-top:4px}.tx-amount{text-align:right;font-weight:800}.tx-amount.out{color:var(--app-danger)}.tx-amount.in{color:#3fbf86}
.category-list{display:grid;gap:14px}.category-row{display:grid;gap:7px}.category-top{display:flex;justify-content:space-between;gap:12px;font-size:13px}.category-top strong{font-weight:720}.category-bar{height:7px;border-radius:999px;background:var(--app-soft);overflow:hidden}.category-fill{height:100%;border-radius:inherit;background:linear-gradient(90deg,#10b981,#8b5cf6,#06b6d4)}
.category-single{padding:16px;border:1px solid var(--app-line);border-radius:14px;background:var(--app-soft)}.category-single strong{font-size:20px;display:block;margin:5px 0}
.empty-state{padding:28px;text-align:center;border:1px dashed var(--app-line);border-radius:14px;color:var(--app-muted)}.empty-state strong{display:block;color:var(--app-ink);margin-bottom:6px}
.table-card{overflow:hidden;padding:0}.table-tools{display:flex;gap:10px;flex-wrap:wrap;padding:16px;border-bottom:1px solid var(--app-line)}.table-tools .app-input{min-width:260px;flex:1}
.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;min-width:820px;font-size:13px}.data-table th{padding:12px 14px;text-align:left;color:var(--app-muted);font-size:11px;letter-spacing:.06em;text-transform:uppercase;border-bottom:1px solid var(--app-line)}.data-table td{padding:14px;border-bottom:1px solid var(--app-line);vertical-align:middle}.data-table tbody tr:hover{background:var(--app-soft)}
.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;background:var(--app-soft);font-size:11px;font-weight:700}.status-pill.good{color:#16845f}.status-pill.warn{color:#9f6e16}.status-pill.bad{color:#b64b50}
.account-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.account-chip{border:1px solid var(--app-line);background:var(--app-soft);border-radius:12px;padding:12px;font-size:13px}
.app-footer{padding:20px 0 38px;border-top:1px solid var(--app-line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--app-muted);font-size:12px}.footer-links{display:flex;gap:16px;flex-wrap:wrap}.footer-links a{text-decoration:none}.footer-links a:hover{color:var(--app-ink)}
.app-dialog{border:1px solid var(--app-line);border-radius:18px;background:var(--app-card);color:var(--app-ink);padding:0;width:min(520px,calc(100vw - 28px));box-shadow:0 26px 80px rgba(0,0,0,.22)}.app-dialog::backdrop{background:rgba(0,0,0,.42);backdrop-filter:blur(3px)}
.dialog-content{padding:20px}.dialog-head{display:flex;justify-content:space-between;gap:10px}.dialog-head h2{margin:0;font-size:20px;letter-spacing:-.03em}.dialog-close{border:0;background:transparent;color:var(--app-muted);font-size:22px;cursor:pointer}.star-row{display:flex;gap:5px;margin:18px 0}.star-button{border:0;background:transparent;color:#b7bbc2;font-size:30px;padding:3px;cursor:pointer}.star-button.active{color:#f5b942}.feedback-textarea{width:100%;min-height:105px;border:1px solid var(--app-line);border-radius:12px;background:var(--app-card);color:var(--app-ink);padding:12px;font:inherit;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.primary-button,.secondary-button{border:0;border-radius:11px;padding:10px 14px;font:inherit;font-weight:700;cursor:pointer}.primary-button{background:var(--app-ink);color:var(--app-bg)}.secondary-button{background:var(--app-soft);color:var(--app-ink)}
.feedback-status{font-size:12px;color:var(--app-muted);margin-top:10px;min-height:18px}
.detail-grid{display:grid;grid-template-columns:140px 1fr;gap:10px 14px;font-size:13px}.detail-grid dt{color:var(--app-muted)}.detail-grid dd{margin:0;overflow-wrap:anywhere}
.prose{max-width:820px}.prose h2{margin:30px 0 10px;font-size:21px;letter-spacing:-.03em}.prose h3{margin:22px 0 8px;font-size:16px}.prose p,.prose li{color:var(--app-muted);line-height:1.7}.prose strong{color:var(--app-ink)}
.focus-ring:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,#8b5cf6 38%,transparent);outline-offset:2px}
@media(max-width:820px){
  .app-wrap{width:min(100% - 20px,var(--app-max))}.app-nav{top:8px;padding-top:8px}.app-nav-inner{grid-template-columns:auto auto;min-height:58px;border-radius:18px}
  .app-nav-links{display:none;grid-column:1/-1;justify-content:stretch;flex-direction:column;padding-top:4px}.app-nav-links.open{display:flex}.app-nav-link{text-align:center}
  .mobile-nav-toggle{display:grid;place-items:center}.app-nav-actions{gap:5px}.app-sheet-link{display:none}.theme-select{max-width:96px}.avatar-button{width:34px;height:34px}
  .app-main{padding-top:34px}.page-head{align-items:flex-start;flex-direction:column}.page-title{font-size:34px}.metric-grid,.section-grid{grid-template-columns:1fr}.metric-value{font-size:40px}
  .account-list{grid-template-columns:1fr 1fr}.table-tools .app-input{min-width:100%}.app-footer{flex-direction:column}
}
@media(max-width:520px){.theme-select{max-width:78px;padding:7px 5px;font-size:11px}.account-list{grid-template-columns:1fr}.expense-hero,.mini-stat{min-height:160px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

html[data-theme="dark"] .settings-page .table-editor,
html[data-theme="dark"] .settings-page .settings-section{
  background:linear-gradient(var(--app-card),var(--app-card)) padding-box,
    radial-gradient(at 8% 8%,rgba(16,185,129,.46),transparent 28%) border-box,
    radial-gradient(at 90% 10%,rgba(139,92,246,.48),transparent 30%) border-box,
    radial-gradient(at 90% 90%,rgba(6,182,212,.42),transparent 30%) border-box;
  color:var(--app-ink);
}
html[data-theme="dark"] .settings-page .single-column-row,
html[data-theme="dark"] .settings-page .preview-cell,
html[data-theme="dark"] .settings-page .hidden-column-row,
html[data-theme="dark"] .settings-page .manager-footer,
html[data-theme="dark"] .settings-page .menu-sheet,
html[data-theme="dark"] .settings-page .custom-dialog,
html[data-theme="dark"] .settings-page .impact-note{
  background:var(--app-card);color:var(--app-ink);border-color:var(--app-line);
}
html[data-theme="dark"] .settings-page .preview-cell{background:var(--app-soft)}
html[data-theme="dark"] .settings-page .selected-copy small,
html[data-theme="dark"] .settings-page .impact-note span{color:var(--app-muted)}
html[data-theme="dark"] .settings-page .menu-sheet button{background:var(--app-card);color:var(--app-ink)}
html[data-theme="dark"] .settings-page .menu-sheet button:hover{background:var(--app-soft)}
html[data-theme="dark"] .settings-page .edit-chip{background:var(--app-soft);border-color:var(--app-line);color:var(--app-ink)}

/* Mobile account and transaction follow-up. */
[hidden]{display:none!important}
.avatar-button{width:44px;height:44px;flex-shrink:0}
.avatar-menu{width:min(310px,calc(100vw - 24px));overflow-y:auto}
.avatar-menu a,.avatar-menu button{min-height:44px}
.account-identity{display:grid;gap:4px;padding:12px;border-bottom:1px solid var(--app-line);overflow-wrap:anywhere}
.account-identity span,.account-note,.account-error{font-size:12px;line-height:1.5;color:var(--app-muted)}
.account-note,.account-error{margin:8px 12px}
.account-error:empty{display:none}
.account-error{color:var(--app-ink)}
.mobile-account-option{display:none}
.account-theme{align-items:center;justify-content:space-between;padding:8px 12px;font-size:13px;gap:12px}
.account-theme select{min-height:44px;border:1px solid var(--app-line);border-radius:10px;background:var(--app-card);color:var(--app-ink);padding:8px;font:inherit}
.device-guide{margin-bottom:16px;line-height:1.5}
.device-guide p{color:var(--app-muted);margin:8px 0 16px}
.device-guide a{display:inline-flex;align-items:center;min-height:44px;text-decoration:none}
.transaction-open{font:inherit;font-weight:700;color:inherit;background:transparent;border:0;text-align:left;padding:4px 0;cursor:pointer;min-height:44px}
.page-title{font-size:32px;line-height:1.2;letter-spacing:-.035em}
.tx-amount{font-variant-numeric:tabular-nums}
.pair-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.5;margin:20px 0}
.pair-confirm input{width:22px;height:22px;flex-shrink:0}
.pair-status{margin-top:16px;line-height:1.5}
button:disabled{opacity:.6;cursor:wait}
@media(max-width:820px){
 .app-nav-inner{gap:8px;grid-template-columns:minmax(0,1fr) auto;padding:10px}
 .app-nav-links,.app-nav-links.open{display:flex;flex-direction:row;grid-column:1/-1;grid-row:2;justify-content:space-between;padding:0}
 .app-nav-link{flex:1;min-height:44px;padding:12px 8px;font-size:13px}
 .mobile-nav-toggle{display:none}
 .avatar-menu .mobile-account-option{display:flex}
 .app-main{padding-top:24px}
 .metric-grid{gap:12px}.expense-hero{min-height:0;padding:20px}.mini-stat{min-height:0;gap:10px;padding:16px}
 .mini-stat-value{font-size:20px}.page-head{gap:12px}.page-title{font-size:28px}
 .section-head{flex-wrap:wrap}.text-link{min-height:44px;display:inline-flex;align-items:center}
 .category-top{flex-wrap:wrap}.tx-meta{overflow-wrap:anywhere}
}
@media(max-width:600px){
 .table-wrap{overflow:visible}.data-table{min-width:0;display:block}.data-table thead{display:none}
 .data-table tbody{display:block}.data-table tr[data-id]{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:12px 16px;gap:2px 12px;border-bottom:1px solid var(--app-line)}
 .data-table td{border:0;padding:0;min-width:0;overflow-wrap:anywhere}
 .data-table tr[data-id] td:first-child{grid-column:1;grid-row:1}
 .data-table tr[data-id] td:nth-child(6){grid-column:2;grid-row:1;align-self:center}
 .data-table tr[data-id] td:nth-child(2){grid-column:1;grid-row:2;font-size:12px;color:var(--app-muted)}
 .data-table tr[data-id] td:nth-child(7){grid-column:2;grid-row:2;text-align:right}
 .data-table tr[data-id] td:nth-child(3),.data-table tr[data-id] td:nth-child(4),.data-table tr[data-id] td:nth-child(5),.data-table tr[data-id] td:nth-child(8){display:none}
 .transaction-open{max-width:100%;overflow-wrap:anywhere}
 .table-tools .filter-control{flex:1;min-width:0;width:100%;font-size:14px;min-height:44px}
 .table-tools .app-input{min-width:0;width:100%;flex-basis:100%;font-size:16px}
 .detail-grid{grid-template-columns:110px minmax(0,1fr)}
}

@media(max-width:820px){.glow-edge:after{inset:0}.device-guide{overflow-wrap:anywhere}}

.glow-edge:before{background:none;border:1px solid var(--app-line)}
.glow-edge:after{display:none}
.transaction-filters{flex-basis:100%}.transaction-filters summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;font-weight:600}
.filter-fields{display:flex;gap:10px;flex-wrap:wrap;padding-bottom:4px}
@media(max-width:600px){.filter-fields{display:grid;grid-template-columns:1fr}.table-tools .filter-control{font-size:16px}}

/* Link / relink iPhone */
.link-device-page{max-width:820px}
.link-device-head{margin-top:26px}
.link-device-card{padding:24px}
.link-account{display:grid;gap:5px;padding:14px 15px;border:1px solid var(--app-line);border-radius:13px;background:var(--app-soft)}
.link-account span{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--app-muted);font-weight:750}
.link-account strong{font-size:14px;overflow-wrap:anywhere}
.link-device-steps{display:grid;gap:16px;margin:24px 0}
.link-device-steps>div{display:grid;grid-template-columns:30px 1fr;gap:12px;align-items:start}
.link-device-steps>div>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--app-soft);font-size:11px;font-weight:800}
.link-device-steps strong{font-size:13px}.link-device-steps p{margin:4px 0 0;color:var(--app-muted);font-size:12px;line-height:1.55}
.link-device-actions{display:flex;gap:9px;flex-wrap:wrap}
.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}
.link-device-status{min-height:20px;margin-top:15px;color:var(--app-muted);font-size:12px;line-height:1.5}
.link-device-status.success{color:#3fbf86}.link-device-status.warning{color:#c5953f}.link-device-status.error{color:var(--app-danger)}
.link-device-note{margin:18px 0 0;padding-top:16px;border-top:1px solid var(--app-line);color:var(--app-muted);font-size:11px;line-height:1.55}
@media(max-width:520px){.link-device-card{padding:18px}.link-device-actions{display:grid}.link-device-actions>*{width:100%}}

/* Unified iPhone connection flow */
.connection-progress{display:grid;grid-template-columns:auto minmax(24px,1fr) auto minmax(24px,1fr) auto;align-items:center;gap:9px;margin:22px 0 24px}
.connection-progress span{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--app-muted);transition:.2s ease}
.connection-progress span.active,.connection-progress span.done{color:var(--app-ink)}
.connection-progress i{display:block;height:1px;background:var(--app-line)}
.connection-progress span.done+i{background:#3fbf86}
.link-flow-copy{display:grid;gap:6px;margin-bottom:18px}
.link-flow-copy strong{font-size:16px;letter-spacing:-.025em}
.link-flow-copy p{margin:0;color:var(--app-muted);font-size:12px;line-height:1.55;max-width:650px}
.link-primary{width:100%;min-height:46px;font-size:14px}


/* Homepage revamp preview — 2026-09-28 */
.home-page{
  --home-bg:#F5F5F3;
  --home-card:#FFFFFF;
  --home-ink:#171717;
  --home-muted:#666666;
  --home-line:#E2E2DE;
  --home-soft:#ECECE8;
  min-height:100dvh;
  overflow-x:hidden;
  background:var(--home-bg);
  color:var(--home-ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
}
.home-header{
  padding:18px 0 0;
}
.home-header-inner{
  width:min(560px,calc(100% - 48px));
  min-height:48px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.home-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--home-ink);
  text-decoration:none;
  font-size:15px;
  font-weight:650;
  letter-spacing:-.02em;
}
.home-logo{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:9px;
  background:var(--home-ink);
  color:#fff;
  font-size:13px;
  font-weight:750;
}
.home-avatar{
  width:38px;
  height:38px;
  border:1px solid var(--home-line);
  background:var(--home-card);
  color:var(--home-ink);
  box-shadow:none;
}
.home-account-menu{
  display:grid;
  min-width:176px;
  padding:6px;
  border:1px solid var(--home-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 12px 32px rgba(23,23,23,.10);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-4px);
  transition:opacity 150ms ease,transform 150ms ease,visibility 150ms;
}
.home-account-menu.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}
.home-account-menu a,.home-account-menu button{
  min-height:40px;
  padding:9px 10px;
  border-radius:9px;
  font-size:14px;
}
.home-account-menu .account-error{
  min-height:0;
  margin:0;
  padding:0 10px;
  font-size:12px;
  color:#A33E3E;
}
.home-main{
  width:min(560px,calc(100% - 48px));
  margin:0 auto;
  padding:62px 0 64px;
}
.home-intro{
  margin-bottom:30px;
}
.home-intro h1{
  margin:0;
  font-size:clamp(31px,7vw,40px);
  line-height:1.06;
  letter-spacing:-.045em;
  font-weight:720;
}
.home-intro p{
  margin:8px 0 0;
  color:var(--home-muted);
  font-size:16px;
  line-height:1.45;
}
.home-summary-card{
  min-height:248px;
  padding:22px;
  border:1px solid var(--home-line);
  border-radius:16px;
  background:var(--home-card);
  box-shadow:0 1px 2px rgba(23,23,23,.025);
}
.home-summary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:27px;
}
.home-summary-head>span:first-child{
  font-size:14px;
  font-weight:650;
  letter-spacing:-.01em;
}
.home-summary-caption{
  color:var(--home-muted);
  font-size:12px;
}
.home-metric-label{
  display:block;
  color:var(--home-muted);
  font-size:13px;
  font-weight:520;
}
.home-expense-value{
  display:block;
  max-width:100%;
  margin:5px 0 25px;
  color:var(--home-ink);
  font-size:clamp(36px,10vw,44px);
  line-height:1.02;
  letter-spacing:-.055em;
  font-weight:730;
  overflow-wrap:anywhere;
}
.home-income-row{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:18px;
  padding-top:15px;
  border-top:1px solid var(--home-line);
  color:var(--home-muted);
  font-size:14px;
}
.home-income-row strong{
  min-width:0;
  color:var(--home-ink);
  font-size:18px;
  letter-spacing:-.025em;
  overflow-wrap:anywhere;
}
.home-summary-note{
  margin:9px 0 0;
  color:#888883;
  font-size:12px;
  line-height:1.4;
}
.home-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin:14px 0 0;
}
.home-action-primary,.home-action-secondary{
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:0 16px;
  border-radius:13px;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  transition:transform 100ms ease,background-color 120ms ease,border-color 120ms ease;
}
.home-action-primary{
  background:var(--home-ink);
  color:#fff;
  border:1px solid var(--home-ink);
}
.home-action-secondary{
  background:transparent;
  color:var(--home-ink);
  border:1px solid #CFCFCA;
}
.home-action-secondary[aria-disabled="true"]{
  color:#999994;
  pointer-events:none;
}
.home-action-link{
  grid-column:1/-1;
  width:max-content;
  margin-top:4px;
  color:var(--home-muted);
  text-decoration:none;
  font-size:14px;
  font-weight:560;
}
.home-action-primary:active,.home-action-secondary:active{
  transform:scale(.98);
}
.home-notice{
  margin:0 0 16px;
  padding:15px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border:1px solid #D9D9D4;
  border-radius:14px;
  background:#FAFAF8;
}
.home-notice strong{
  display:block;
  font-size:14px;
}
.home-notice p{
  margin:4px 0 0;
  color:var(--home-muted);
  font-size:13px;
  line-height:1.4;
}
.home-notice a{
  flex:0 0 auto;
  color:var(--home-ink);
  font-size:13px;
  font-weight:650;
  text-decoration:none;
}
.home-empty{
  margin-top:24px;
  padding:18px;
  border:1px dashed #D4D4CF;
  border-radius:14px;
  background:rgba(255,255,255,.45);
}
.home-empty strong{
  display:block;
  font-size:14px;
}
.home-empty p{
  margin:6px 0;
  color:var(--home-muted);
  font-size:13px;
  line-height:1.5;
}
.home-empty a{
  color:var(--home-ink);
  font-size:13px;
  font-weight:650;
}
.home-latest{
  margin-top:40px;
}
.home-section-heading{
  margin-bottom:8px;
}
.home-section-heading h2{
  margin:0;
  font-size:15px;
  letter-spacing:-.015em;
  font-weight:650;
}
.home-latest-row{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-top:1px solid var(--home-line);
  border-bottom:1px solid var(--home-line);
  color:var(--home-ink);
  text-decoration:none;
  transition:opacity 100ms ease,transform 100ms ease;
}
.home-latest-row:active{
  transform:scale(.99);
}
.home-latest-copy{
  min-width:0;
  display:grid;
  gap:5px;
}
.home-latest-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:650;
}
.home-latest-copy span,.home-latest-amount span{
  color:var(--home-muted);
  font-size:12px;
}
.home-latest-amount{
  min-width:0;
  display:grid;
  gap:5px;
  justify-items:end;
  text-align:right;
}
.home-latest-amount strong{
  max-width:220px;
  overflow-wrap:anywhere;
  font-size:15px;
  font-weight:650;
}
.home-latest-empty{
  margin:0;
  padding:18px 0;
  border-top:1px solid var(--home-line);
  border-bottom:1px solid var(--home-line);
  color:var(--home-muted);
  font-size:13px;
}
.home-footer{
  width:min(560px,calc(100% - 48px));
  margin:0 auto;
  padding:0 0 30px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#888883;
  font-size:11px;
}
.home-footer nav{
  display:flex;
  gap:14px;
}
.home-footer a{
  color:inherit;
  text-decoration:none;
}
.home-state-message{
  padding-top:18px;
}
.home-state-message strong{
  font-size:15px;
}
.home-state-message p{
  margin:6px 0 12px;
  color:var(--home-muted);
  font-size:13px;
}
.home-inline-button{
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--home-line);
  border-radius:11px;
  background:#fff;
  color:var(--home-ink);
  font:inherit;
  font-size:13px;
  font-weight:650;
  cursor:pointer;
}
.home-summary-loading{
  display:grid;
  gap:13px;
}
.home-latest-placeholder{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
  border-top:1px solid var(--home-line);
  border-bottom:1px solid var(--home-line);
}
.home-latest-placeholder>div{
  flex:1;
  display:grid;
  gap:8px;
}
.home-skeleton{
  display:block;
  border-radius:7px;
  background:#E8E8E4;
}
.sk-short{width:74px;height:12px}
.sk-main{width:min(78%,320px);height:42px;margin-top:2px}
.sk-row{width:100%;height:1px;margin-top:8px}
.sk-note{width:155px;height:11px}
.sk-latest-name{width:150px;height:14px}
.sk-latest-time{width:96px;height:10px}
.sk-latest-amount{width:88px;height:16px}
.home-data-ready #summaryContent:not([hidden]),
.home-data-ready #homeTransactionList:not([hidden]),
.home-data-ready #emptyState:not([hidden]){
  animation:home-data-fade 160ms ease both;
}
.home-enter{
  animation:home-enter 200ms ease both;
}
.home-enter:nth-of-type(2){animation-delay:20ms}
.home-enter:nth-of-type(3){animation-delay:40ms}
.home-enter:nth-of-type(4){animation-delay:60ms}
.home-enter:nth-of-type(5){animation-delay:80ms}
@keyframes home-enter{
  from{opacity:0;transform:translateY(6px)}
  to{opacity:1;transform:translateY(0)}
}
@keyframes home-data-fade{
  from{opacity:0}
  to{opacity:1}
}
.home-page a:focus-visible,
.home-page button:focus-visible{
  outline:3px solid rgba(23,23,23,.22);
  outline-offset:3px;
}
@media(max-width:600px){
  .home-header{padding-top:14px}
  .home-header-inner,
  .home-main,
  .home-footer{
    width:calc(100% - 40px);
  }
  .home-main{
    padding:48px 0 54px;
  }
  .home-intro{
    margin-bottom:25px;
  }
  .home-summary-card{
    min-height:242px;
    padding:20px;
  }
  .home-summary-head{
    margin-bottom:24px;
  }
  .home-actions{
    grid-template-columns:1fr;
  }
  .home-action-link{
    grid-column:auto;
    margin-top:6px;
  }
  .home-notice{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
  .home-latest{
    margin-top:36px;
  }
  .home-footer{
    align-items:flex-start;
    flex-direction:column;
    gap:10px;
  }
}
@media(max-width:360px){
  .home-header-inner,
  .home-main,
  .home-footer{
    width:calc(100% - 40px);
  }
  .home-expense-value{
    font-size:36px;
  }
}
@media(prefers-reduced-motion:reduce){
  .home-enter,
  .home-data-ready #summaryContent:not([hidden]),
  .home-data-ready #homeTransactionList:not([hidden]),
  .home-data-ready #emptyState:not([hidden]){
    animation:none!important;
  }
  .home-action-primary,
  .home-action-secondary,
  .home-latest-row,
  .home-account-menu{
    transition:none!important;
  }
}


/* Revamp uses one consistent light theme across app destinations. */
.finance-app .theme-select,
.finance-app .account-theme{
  display:none!important;
}


/* Homepage v2 — compact finance cards + spreadsheet row */
.home-page-v2 .home-main-v2{
  padding-top:38px;
}
.home-period-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.home-period-kicker{
  display:block;
  margin-bottom:4px;
  color:#787872;
  font-size:12px;
  font-weight:560;
}
.home-period-row h1{
  margin:0;
  color:#171717;
  font-size:24px;
  line-height:1.1;
  letter-spacing:-.035em;
  font-weight:720;
}
.home-period-link{
  color:#666;
  text-decoration:none;
  font-size:13px;
  font-weight:600;
}
.home-metric-grid{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
.home-metric-card{
  min-width:0;
  min-height:166px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  padding:18px;
  border:1px solid #E2E2DE;
  border-radius:22px;
  background:#fff;
  box-shadow:0 1px 2px rgba(23,23,23,.025);
}
.home-metric-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  margin-bottom:17px;
  border-radius:11px;
  background:#EFEFED;
  color:#171717;
  font-size:20px;
  line-height:1;
  font-weight:600;
}
.home-metric-title{
  color:#171717;
  font-size:14px;
  font-weight:650;
  letter-spacing:-.015em;
}
.home-metric-value{
  max-width:100%;
  margin-top:7px;
  color:#171717;
  font-size:clamp(22px,6vw,28px);
  line-height:1.08;
  letter-spacing:-.045em;
  font-weight:720;
  overflow-wrap:anywhere;
}
.home-metric-caption{
  margin-top:auto;
  padding-top:10px;
  color:#8A8A84;
  font-size:11px;
  line-height:1.3;
}
.home-metric-loading{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
.metric-skeleton{
  min-height:166px;
  border-radius:22px;
  background:#E8E8E4;
}
.home-metric-grid.is-loading .home-metric-card,
.home-metric-grid.has-error .home-metric-card{
  display:none;
}
.home-state-message-wide{
  grid-column:1/-1;
  min-height:166px;
  padding:22px;
  border:1px solid #E2E2DE;
  border-radius:22px;
  background:#fff;
}
.home-spreadsheet-card{
  min-width:0;
  min-height:78px;
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
  padding:14px;
  border:1px solid #E2E2DE;
  border-radius:22px;
  background:#fff;
  box-shadow:0 1px 2px rgba(23,23,23,.025);
}
.home-sheet-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#ECF7EF;
}
.home-sheet-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke:#249B50;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-sheet-copy{
  min-width:0;
  display:grid;
  gap:4px;
}
.home-sheet-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:650;
}
.home-sheet-copy span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#797974;
  font-size:12px;
}
.home-sheet-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
}
.home-sheet-copy-button,
.home-sheet-open{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #DEDEDA;
  background:#F8F8F6;
  color:#171717;
  font:inherit;
  font-size:12px;
  font-weight:650;
  text-decoration:none;
  cursor:pointer;
  transition:transform 100ms ease,background-color 120ms ease,border-color 120ms ease;
}
.home-sheet-copy-button{
  padding:0 12px;
  border-radius:13px;
}
.home-sheet-open{
  width:40px;
  flex:0 0 40px;
  border-radius:13px;
  font-size:17px;
}
.home-sheet-copy-button:hover,
.home-sheet-open:hover{
  background:#F0F0ED;
}
.home-sheet-copy-button:active,
.home-sheet-open:active{
  transform:scale(.97);
}
.home-sheet-copy-button.is-copied{
  border-color:#B7D8C0;
  background:#EEF8F0;
}
.home-sheet-copy-button:disabled,
.home-sheet-open[aria-disabled="true"]{
  opacity:.45;
  cursor:default;
  pointer-events:none;
}
.home-actions-v2{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.home-actions-v2 .home-action-primary{
  min-height:50px;
  border-radius:16px;
}
.home-actions-v2 .home-action-link{
  margin-top:2px;
}
.home-page-v2 .home-empty{
  border-radius:20px;
}
.home-page-v2 .home-latest{
  margin-top:34px;
}
.home-page-v2 .home-section-heading{
  margin-bottom:10px;
}
.home-page-v2 .home-latest-row{
  min-height:82px;
  padding:15px 16px;
  border:1px solid #E2E2DE;
  border-radius:20px;
  background:#fff;
}
.home-page-v2 .home-latest-placeholder{
  min-height:82px;
  padding:15px 16px;
  border:1px solid #E2E2DE;
  border-radius:20px;
  background:#fff;
}
.home-page-v2 .home-latest-empty{
  padding:17px 16px;
  border:1px solid #E2E2DE;
  border-radius:20px;
  background:#fff;
}
.home-sheet-copy{flex:1}
@media(max-width:600px){
  .home-page-v2 .home-main-v2{
    padding-top:28px;
  }
  .home-period-row{
    margin-bottom:14px;
  }
  .home-period-row h1{
    font-size:22px;
  }
  .home-metric-grid{
    gap:10px;
  }
  .home-metric-card{
    min-height:156px;
    padding:15px;
    border-radius:20px;
  }
  .home-metric-icon{
    width:32px;
    height:32px;
    margin-bottom:15px;
    border-radius:10px;
  }
  .home-metric-value{
    font-size:20px;
    letter-spacing:-.05em;
  }
  .metric-skeleton{
    min-height:156px;
    border-radius:20px;
  }
  .home-spreadsheet-card{
    border-radius:20px;
    padding:13px;
  }
  .home-sheet-copy-button{
    padding:0 10px;
    font-size:11px;
  }
  .home-page-v2 .home-latest{
    margin-top:30px;
  }
}
@media(max-width:370px){
  .home-sheet-copy span{
    display:none;
  }
  .home-sheet-copy-button{
    padding:0 9px;
  }
  .home-metric-card{
    padding:14px;
  }
}
@media(prefers-reduced-motion:reduce){
  .home-sheet-copy-button,
  .home-sheet-open{
    transition:none!important;
  }
}


/* Homepage v3 — unified access rows and finance icons */
.home-metric-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:#171717;
  stroke-width:1.75;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-access-stack{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.home-access-card{
  min-width:0;
  min-height:78px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:1px solid #E2E2DE;
  border-radius:20px;
  background:#fff;
  box-shadow:0 1px 2px rgba(23,23,23,.025);
}
.home-access-card-link{
  color:#171717;
  text-decoration:none;
  transition:transform 100ms ease,background-color 120ms ease;
}
.home-access-card-link:hover{
  background:#FCFCFA;
}
.home-access-card-link:active{
  transform:scale(.99);
}
.home-access-icon{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:13px;
}
.home-access-icon svg{
  width:22px;
  height:22px;
  fill:none;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-sheet-icon{
  background:#ECF7EF;
}
.home-sheet-icon svg{
  stroke:#249B50;
}
.home-transaction-icon{
  background:#F0F0EE;
}
.home-transaction-icon svg{
  stroke:#171717;
}
.home-access-copy{
  min-width:0;
  flex:1;
  display:grid;
  gap:4px;
}
.home-access-copy strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#171717;
  font-size:14px;
  font-weight:650;
}
.home-access-copy span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#797974;
  font-size:12px;
}
.home-access-open{
  width:40px;
  height:40px;
  flex:0 0 40px;
  display:grid;
  place-items:center;
  border:1px solid #DEDEDA;
  border-radius:13px;
  background:#F8F8F6;
  color:#171717;
  text-decoration:none;
  font-size:17px;
  font-weight:600;
  transition:transform 100ms ease,background-color 120ms ease;
}
.home-access-open:hover{
  background:#F0F0ED;
}
.home-access-open:active{
  transform:scale(.97);
}
.home-access-open[aria-disabled="true"]{
  opacity:.45;
  pointer-events:none;
}
.home-actions-v3{
  margin-top:10px;
}
.home-actions-v3 .home-action-link{
  margin:0;
}
@media(max-width:600px){
  .home-access-card{
    min-height:74px;
    padding:12px 13px;
  }
  .home-access-icon{
    width:40px;
    height:40px;
    flex-basis:40px;
    border-radius:12px;
  }
  .home-access-open{
    width:38px;
    height:38px;
    flex-basis:38px;
    border-radius:12px;
  }
}
@media(max-width:360px){
  .home-access-copy span{
    font-size:11px;
  }
}
@media(prefers-reduced-motion:reduce){
  .home-access-card-link,
  .home-access-open{
    transition:none!important;
  }
}


/* Homepage v4 — table showcase card */
.home-table-card{
  margin-top:14px;
  padding:14px;
  border:1px solid #E2E2DE;
  border-radius:22px;
  background:#fff;
  box-shadow:0 1px 2px rgba(23,23,23,.025);
}
.home-table-visual{
  min-height:150px;
  padding:16px;
  border-radius:17px;
  background:linear-gradient(180deg,#F2F2F7 0%,#EDEDF3 100%);
  overflow:hidden;
}
.home-table-visual-head{
  display:grid;
  grid-template-columns:1.15fr .8fr .7fr;
  gap:8px;
  margin-bottom:14px;
}
.home-table-visual-head span{
  height:8px;
  border-radius:999px;
  background:#D5D5DD;
}
.home-table-visual-row{
  min-height:31px;
  display:grid;
  grid-template-columns:18px minmax(0,1fr) 58px;
  align-items:center;
  gap:9px;
  margin-top:8px;
  padding:6px 8px;
  border:1px solid rgba(23,23,23,.05);
  border-radius:11px;
  background:rgba(255,255,255,.92);
}
.home-table-dot{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#BFC0C8;
}
.home-table-line{
  width:58%;
  height:7px;
  border-radius:999px;
  background:#D1D2D9;
}
.home-table-line.long{width:78%}
.home-table-line.mid{width:68%}
.home-table-pill{
  width:52px;
  height:18px;
  justify-self:end;
  border-radius:999px;
  background:#ECECF1;
}
.home-table-pill.short{width:38px}
.home-table-content{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:16px 2px 2px;
}
.home-table-content>div{
  min-width:0;
}
.home-table-content h2{
  margin:0;
  color:#171717;
  font-size:17px;
  line-height:1.2;
  letter-spacing:-.025em;
  font-weight:700;
}
.home-table-content p{
  max-width:360px;
  margin:6px 0 0;
  color:#73736E;
  font-size:13px;
  line-height:1.45;
}
.home-table-button{
  min-height:42px;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border:1px solid #DEDEDA;
  border-radius:13px;
  background:#F8F8F6;
  color:#171717;
  text-decoration:none;
  font-size:13px;
  font-weight:650;
  transition:transform 100ms ease,background-color 120ms ease;
}
.home-table-button:hover{
  background:#F0F0ED;
}
.home-table-button:active{
  transform:scale(.98);
}
@media(max-width:600px){
  .home-table-card{
    border-radius:20px;
    padding:12px;
  }
  .home-table-visual{
    min-height:138px;
    padding:14px;
    border-radius:15px;
  }
  .home-table-content{
    align-items:flex-start;
    flex-direction:column;
    gap:14px;
    padding:15px 2px 2px;
  }
  .home-table-button{
    width:100%;
    min-height:44px;
    border-radius:12px;
  }
}
@media(prefers-reduced-motion:reduce){
  .home-table-button{
    transition:none!important;
  }
}


/* Homepage v5 — summary metrics moved near latest transactions */
.home-page-v2 #homeSummary{
  margin-top:14px;
}


/* Homepage v6 — account menu */
.home-account-menu{
  width:232px;
  min-width:232px;
  padding:8px;
  border:1px solid #DEDEDA;
  border-radius:20px;
  background:#fff;
  box-shadow:0 18px 44px rgba(23,23,23,.12),0 2px 8px rgba(23,23,23,.04);
}
.home-account-menu .account-menu-item{
  width:100%;
  min-height:48px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 11px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:#171717;
  text-decoration:none;
  text-align:left;
  font:inherit;
  font-size:14px;
  font-weight:560;
  cursor:pointer;
  transition:background-color 120ms ease,transform 100ms ease;
}
.home-account-menu .account-menu-item:hover{
  background:#F4F4F1;
}
.home-account-menu .account-menu-item:active{
  transform:scale(.985);
}
.home-account-menu .account-menu-icon{
  width:24px;
  height:24px;
  flex:0 0 24px;
  display:grid;
  place-items:center;
  color:#55555F;
}
.home-account-menu .account-menu-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-account-menu .account-menu-divider{
  height:1px;
  margin:7px 8px;
  background:#E8E8E4;
}
.home-account-menu .account-menu-logout{
  color:#3E3E45;
}
.home-account-menu .account-menu-logout .account-menu-icon{
  color:#666673;
}
.home-account-menu .account-error:not(:empty){
  margin:5px 4px 2px;
  padding:8px 9px;
  border-radius:9px;
  background:#FFF4F3;
  color:#A33E3E;
  line-height:1.35;
}
@media(max-width:600px){
  .home-account-menu{
    width:min(244px,calc(100vw - 32px));
    min-width:0;
    border-radius:18px;
  }
}
@media(prefers-reduced-motion:reduce){
  .home-account-menu .account-menu-item{
    transition:none!important;
  }
}


/* Dualangka wordmark branding */
.brand-wordmark{
  display:block;
  width:148px;
  max-width:100%;
  height:auto;
}
.home-wordmark{
  width:154px;
}
.app-wordmark{
  width:142px;
}
@media(max-width:820px){
  .home-wordmark{width:146px}
  .app-wordmark{width:126px}
}
/* Non-home UI alignment to homepage — 2026-09-28 */
body.finance-app:not(.home-page){
  --app-bg:#F5F5F3;--app-card:#FFFFFF;--app-ink:#171717;--app-muted:#797974;--app-line:#E2E2DE;--app-soft:#EFEFED;
  --app-shadow:none;--app-radius:20px;--app-max:1000px;background:var(--app-bg);color:var(--app-ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
}
body.finance-app:not(.home-page) .app-wrap{width:min(var(--app-max),calc(100% - 48px))}
body.finance-app:not(.home-page) .app-nav{position:relative;top:0;padding-top:18px}
body.finance-app:not(.home-page) .app-nav-inner{
  min-height:48px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;
  grid-template-columns:auto 1fr auto;gap:18px;
}
body.finance-app:not(.home-page) .app-brand{font-size:15px;font-weight:650;letter-spacing:-.02em}
body.finance-app:not(.home-page) .app-wordmark{display:block;max-width:156px;height:auto}
body.finance-app:not(.home-page) .app-nav-links{gap:4px}
body.finance-app:not(.home-page) .app-nav-link{padding:8px 11px;border-radius:10px;color:#777772;font-size:13px;font-weight:600}
body.finance-app:not(.home-page) .app-nav-link:hover,
body.finance-app:not(.home-page) .app-nav-link.active{background:var(--app-soft);color:var(--app-ink)}
body.finance-app:not(.home-page) .app-sheet-link{padding:8px 10px;color:#5F5F5A;font-size:12px;font-weight:600}
body.finance-app:not(.home-page) .app-sheet-link:hover{background:var(--app-soft)}
body.finance-app:not(.home-page) .avatar-button{
  width:38px;height:38px;border:1px solid var(--app-line);background:var(--app-card);color:var(--app-ink);box-shadow:none;
}
body.finance-app:not(.home-page) .avatar-menu{
  display:grid;width:auto;min-width:176px;padding:6px;border:1px solid var(--app-line);border-radius:14px;background:#fff;
  box-shadow:0 12px 32px rgba(23,23,23,.10);overflow:visible;opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(-4px);transition:opacity 150ms ease,transform 150ms ease,visibility 150ms;
}
body.finance-app:not(.home-page) .avatar-menu.show{display:grid;opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
body.finance-app:not(.home-page) .avatar-menu .account-menu-item{
  min-height:40px;display:flex;align-items:center;gap:10px;padding:9px 10px;border:0;border-radius:9px;background:transparent;
  color:var(--app-ink);font:inherit;font-size:14px;font-weight:600;text-decoration:none;text-align:left;cursor:pointer;
}
body.finance-app:not(.home-page) .avatar-menu .account-menu-item:hover{background:var(--app-soft)}
body.finance-app:not(.home-page) .avatar-menu .account-menu-icon{width:20px;height:20px;flex:0 0 20px;display:grid;place-items:center;color:#6D6D72}
body.finance-app:not(.home-page) .avatar-menu .account-menu-icon svg{
  width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;
}
body.finance-app:not(.home-page) .avatar-menu .account-menu-divider{height:1px;margin:5px 10px;background:var(--app-line)}
body.finance-app:not(.home-page) .avatar-menu .account-menu-logout{color:#45454A}
body.finance-app:not(.home-page) .avatar-menu .account-error{min-height:0;margin:0;padding:0 10px;font-size:12px;color:#A33E3E}
body.finance-app:not(.home-page) .app-main{padding:50px 0 68px}
body.finance-app:not(.home-page) .page-head{margin-bottom:24px}
body.finance-app:not(.home-page) .page-kicker{color:#7C7C76;font-size:10px;letter-spacing:.14em;font-weight:700}
body.finance-app:not(.home-page) .page-title{margin:7px 0 7px;font-size:30px;line-height:1.08;letter-spacing:-.04em;font-weight:720}
body.finance-app:not(.home-page) .page-sub{max-width:620px;color:#777772;font-size:14px;line-height:1.55}
body.finance-app:not(.home-page) .app-card,
body.finance-app:not(.home-page) .card{border:1px solid var(--app-line);border-radius:20px;background:#fff;box-shadow:none}
body.finance-app:not(.home-page) .period-select,
body.finance-app:not(.home-page) .filter-control,
body.finance-app:not(.home-page) .app-input{border-color:var(--app-line);border-radius:12px;background:#fff}
body.finance-app:not(.home-page) button:focus-visible,
body.finance-app:not(.home-page) a:focus-visible,
body.finance-app:not(.home-page) input:focus-visible,
body.finance-app:not(.home-page) select:focus-visible,
body.finance-app:not(.home-page) textarea:focus-visible{outline:3px solid rgba(23,23,23,.18);outline-offset:3px}
body.finance-app:not(.home-page) .app-footer{padding:22px 0 32px;border-top:1px solid var(--app-line);color:#888883;font-size:11px}
body.finance-app:not(.home-page) .footer-links{gap:14px}

/* Transactions */
body[data-page="transactions"] .table-card{border-radius:20px}
body[data-page="transactions"] .table-tools{padding:14px;border-color:var(--app-line)}
body[data-page="transactions"] .data-table th{color:#85857F;border-color:var(--app-line);font-size:10px}
body[data-page="transactions"] .data-table td{border-color:var(--app-line)}
body[data-page="transactions"] .data-table tbody tr:hover{background:#FAFAF8}
body[data-page="transactions"] .app-card{padding:18px}
body[data-page="transactions"] .table-card{padding:0}
body[data-page="transactions"] .empty-state{border-color:#E4E4E0;background:#FAFAF8}
body[data-page="transactions"] .status-pill{background:#F1F1EE}

/* Settings: existing UX, homepage visual language. */
body.settings-page{background:#F5F5F3!important}
.settings-page .settings-shell{width:100%;padding-top:0}
.settings-page .table-editor{border:1px solid var(--app-line)!important;background:#fff!important;box-shadow:none!important}
.settings-page .table-editor::before{display:none!important}
.settings-page .settings-section{border:1px solid var(--app-line)!important;background:#fff!important;box-shadow:none!important}
.settings-page .editor-head{padding:20px;border-color:var(--app-line)}
.settings-page .impact-note{background:#F8F8F6!important;border-color:var(--app-line)!important}
.settings-page .impact-note span{color:#777772!important}
.settings-page .column-preview{border-color:var(--app-line)!important}
.settings-page .preview-cell,
.settings-page .preview-cell.required{background:#F8F8F6!important;border-color:#E8E8E4!important;color:#4F4F4B!important}
.settings-page .column-section+.column-section{border-color:var(--app-line)}
.settings-page .single-column-row{border:1px solid #E5E5E1!important;background:#fff!important;box-shadow:none!important}
.settings-page .single-column-row:hover{border-color:#CFCFC9!important;box-shadow:none!important;background:#FCFCFA!important}
.settings-page .single-column-row.dragging{border-color:#AFAFA8!important;background:#fff!important;box-shadow:0 10px 26px rgba(23,23,23,.10)!important}
.settings-page .single-column-row.drag-over{border-color:#AFAFA8!important;box-shadow:0 0 0 2px rgba(23,23,23,.06)!important}
.settings-page .hidden-column-row{border-color:#ECECE8!important}
.settings-page .count-badge{background:#171717!important;color:#fff;box-shadow:none!important}
.settings-page :is(.app-main,dialog) button:not(.secondary):not(.text-button):not(.kebab-button):not(.icon-button):not(.danger-menu),
.settings-page :is(.app-main,dialog) .btn:not(.secondary){box-shadow:none!important}
.settings-page button.secondary,.settings-page .btn.secondary{border-color:var(--app-line)!important}
.settings-page :is(.app-main,dialog) input,.settings-page :is(.app-main,dialog) textarea,.settings-page :is(.app-main,dialog) select{border-color:var(--app-line)!important;background:#fff!important}
.settings-page :is(.app-main,dialog) input:focus,.settings-page :is(.app-main,dialog) textarea:focus,.settings-page :is(.app-main,dialog) select:focus{border-color:#B7B7B0!important;box-shadow:0 0 0 3px rgba(23,23,23,.07)!important}
.settings-page .manager-footer{border-color:var(--app-line)}
.settings-page .settings-section[open] summary{border-color:var(--app-line)}

/* Reading pages */
body[data-page="privacy"] .app-main,
body[data-page="terms"] .app-main,
body[data-page="help"] .app-main,
body[data-page="contact"] .app-main{width:min(760px,calc(100% - 48px));padding-top:54px}
body[data-page="privacy"] .prose,
body[data-page="terms"] .prose,
body[data-page="help"] .prose,
body[data-page="contact"] .prose{max-width:680px;margin:0 auto}
body[data-page="privacy"] .prose h2,
body[data-page="terms"] .prose h2,
body[data-page="help"] .prose h2,
body[data-page="contact"] .prose h2{
  scroll-margin-top:24px;margin:38px 0 10px;color:#1C1C1A;font-size:20px;line-height:1.28;letter-spacing:-.025em;font-weight:680;
}
body[data-page="privacy"] .prose p,body[data-page="privacy"] .prose li,
body[data-page="terms"] .prose p,body[data-page="terms"] .prose li,
body[data-page="help"] .prose p,body[data-page="help"] .prose li,
body[data-page="contact"] .prose p,body[data-page="contact"] .prose li{color:#696965;font-size:15px;line-height:1.72}
body[data-page="privacy"] .prose ul,body[data-page="terms"] .prose ul{padding-left:22px}
.reading-index{margin:28px 0 36px;padding:15px 16px;border:1px solid var(--app-line);border-radius:18px;background:#fff}
.reading-index>span{display:block;margin-bottom:10px;color:#888883;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.reading-index>div{display:flex;flex-wrap:wrap;gap:7px 14px}
.reading-index a{color:#4F4F4B;font-size:12px;font-weight:600;text-decoration:none}
.reading-index a:hover{text-decoration:underline;text-underline-offset:3px}
body.finance-app:not(.home-page) .app-nav-inner>a:last-child:not(.app-brand){
  grid-column:3;justify-self:end;color:#5F5F5A;font-size:12px;font-weight:600;text-decoration:none;
}

@media(max-width:820px){
  body.finance-app:not(.home-page) .app-wrap{width:calc(100% - 40px)}
  body.finance-app:not(.home-page) .app-nav{padding-top:14px}
  body.finance-app:not(.home-page) .app-nav-inner{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  body.finance-app:not(.home-page) .app-nav-links,
  body.finance-app:not(.home-page) .app-nav-links.open{
    grid-column:1/-1;grid-row:2;display:flex;flex-direction:row;gap:4px;padding:7px 0 0;border-top:1px solid var(--app-line);
  }
  body.finance-app:not(.home-page) .app-nav-link{min-height:40px;padding:10px 7px;font-size:12px}
  body.finance-app:not(.home-page) .app-main{padding:38px 0 58px}
  body.finance-app:not(.home-page) .page-title{font-size:28px}
  body[data-page="privacy"] .app-main,
  body[data-page="terms"] .app-main,
  body[data-page="help"] .app-main,
  body[data-page="contact"] .app-main{width:calc(100% - 40px);padding-top:40px}
}
@media(max-width:600px){
  body.finance-app:not(.home-page) .app-wrap{width:calc(100% - 40px)}
  body.finance-app:not(.home-page) .app-wordmark{max-width:148px}
  body.finance-app:not(.home-page) .page-head{gap:10px}
  body.finance-app:not(.home-page) .page-title{font-size:26px}
  body.finance-app:not(.home-page) .app-footer{gap:10px}
  .settings-page .editor-head{padding:16px}
  .settings-page .impact-note{margin:12px 12px 0}
  .settings-page .preview-block,.settings-page .column-section{padding-left:12px;padding-right:12px}
  .settings-page .single-column-row{grid-template-columns:26px 20px minmax(0,1fr) auto!important;gap:7px;padding:6px 4px}
  .settings-page .single-column-row .drag-handle{display:grid!important}
  .settings-page .selected-copy strong{white-space:normal;line-height:1.25}
  .settings-page .row-trailing{gap:2px}
  .settings-page .manager-footer{padding:12px}
  body[data-page="privacy"] .prose h2,body[data-page="terms"] .prose h2,
  body[data-page="help"] .prose h2,body[data-page="contact"] .prose h2{margin-top:34px;font-size:19px}
  body[data-page="privacy"] .prose p,body[data-page="privacy"] .prose li,
  body[data-page="terms"] .prose p,body[data-page="terms"] .prose li,
  body[data-page="help"] .prose p,body[data-page="help"] .prose li,
  body[data-page="contact"] .prose p,body[data-page="contact"] .prose li{font-size:14px;line-height:1.68}
  .reading-index{margin:24px 0 32px;padding:14px}
  .reading-index>div{gap:8px 12px}
}
@media(prefers-reduced-motion:reduce){body.finance-app:not(.home-page) .avatar-menu{transition:none!important}}


/* Homepage v7 — soft native card surfaces inspired by iOS grouped settings */
.home-page{
  --home-surface-shadow:
    0 1px 2px rgba(17,17,17,.025),
    0 10px 28px rgba(17,17,17,.032);
}
.home-page .home-access-card,
.home-page .home-table-card,
.home-page .home-metric-card,
.home-page .home-spreadsheet-card,
.home-page .home-state-message-wide,
.home-page-v2 .home-latest-row,
.home-page-v2 .home-latest-placeholder,
.home-page-v2 .home-latest-empty{
  border:0!important;
  background:#fff;
  box-shadow:var(--home-surface-shadow);
}
.home-page .home-access-card{
  min-height:82px;
  padding:15px 16px;
  border-radius:26px;
}
.home-page .home-access-icon{
  width:44px;height:44px;flex-basis:44px;border-radius:16px;
}
.home-page .home-access-open{
  width:42px;height:42px;flex-basis:42px;border:0;border-radius:16px;background:#F4F4F2;box-shadow:none;
}
.home-page .home-access-open:hover{background:#ECECEA}
.home-page .home-table-card{padding:16px;border-radius:28px}
.home-page .home-table-visual{border-radius:21px}
.home-page .home-table-visual-row{border:0;border-radius:14px;box-shadow:none}
.home-page .home-table-button{border:0;border-radius:16px;background:#F4F4F2;box-shadow:none}
.home-page .home-table-button:hover{background:#ECECEA}
.home-page .home-metric-card{border-radius:26px}
.home-page .home-metric-icon{border-radius:14px}
.home-page .home-spreadsheet-card{border-radius:26px}
.home-page .home-sheet-icon{border-radius:16px}
.home-page .home-sheet-copy-button,
.home-page .home-sheet-open{border:0;background:#F4F4F2;box-shadow:none}
.home-page .home-sheet-copy-button{border-radius:15px}
.home-page .home-sheet-open{border-radius:16px}
.home-page .home-empty{
  margin-top:24px;padding:20px;border:0;border-radius:26px;background:#fff;box-shadow:var(--home-surface-shadow);
}
.home-page-v2 .home-latest-row,
.home-page-v2 .home-latest-placeholder,
.home-page-v2 .home-latest-empty{border-radius:24px}
.home-page .metric-skeleton{border-radius:26px;background:#E9E9E6}
@media(max-width:600px){
  .home-page .home-access-card{min-height:78px;padding:14px 15px;border-radius:24px}
  .home-page .home-access-icon{width:42px;height:42px;flex-basis:42px;border-radius:15px}
  .home-page .home-access-open{width:40px;height:40px;flex-basis:40px;border-radius:15px}
  .home-page .home-table-card{padding:14px;border-radius:26px}
  .home-page .home-table-visual{border-radius:19px}
  .home-page .home-table-button{border-radius:15px}
  .home-page .home-metric-card,
  .home-page .home-spreadsheet-card,
  .home-page .home-empty{border-radius:24px}
  .home-page .home-sheet-icon{border-radius:15px}
  .home-page-v2 .home-latest-row,
  .home-page-v2 .home-latest-placeholder,
  .home-page-v2 .home-latest-empty{border-radius:22px}
}

/* Review modal / mobile bottom sheet — 2026-09-29 */
.review-dialog{
  width:min(560px,calc(100vw - 28px));
  max-height:min(760px,calc(100dvh - 40px));
  padding:0;
  border:0;
  border-radius:26px;
  background:#fff;
  color:#171717;
  box-shadow:0 28px 80px rgba(17,17,17,.16);
  overflow:hidden;
}
.review-dialog::backdrop{background:rgba(17,17,17,.28);backdrop-filter:blur(3px)}
.review-sheet{max-height:inherit;overflow:auto;overscroll-behavior:contain;padding:0 20px 20px}
.review-grabber{display:none}
.review-head{
  position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;
  padding:18px 0 12px;background:rgba(255,255,255,.96);backdrop-filter:blur(12px)
}
.review-head h2{margin:0;font-size:22px;line-height:1.1;letter-spacing:-.035em}
.review-close{
  width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:#F2F2F0;
  color:#171717;font:inherit;font-size:24px;line-height:1;cursor:pointer
}
.review-body{display:grid;gap:18px}
.review-loading,.review-load-error{padding:32px 0;color:#777772;font-size:14px}
.review-load-error{display:grid;gap:12px}
.review-form{display:grid;gap:12px}
.review-stars-input{display:flex;gap:2px}
.review-star-choice{
  width:44px;height:44px;padding:0;border:0;background:transparent;color:#D2D2CD;font-size:31px;line-height:1;cursor:pointer
}
.review-star-choice.active{color:#F2B544}
.review-star-choice:disabled{cursor:wait;opacity:.7}
.review-comment{
  width:100%;min-height:112px;padding:14px 15px;border:0;border-radius:18px;background:#F4F4F2;color:#171717;
  font:inherit;font-size:15px;line-height:1.5;resize:vertical
}
.review-comment:focus{outline:2px solid rgba(23,23,23,.18);outline-offset:2px}
.review-visibility{margin:0;color:#85857F;font-size:12px;line-height:1.45}
.review-error{margin:0;color:#A33E3E;font-size:12px;line-height:1.4}
.review-form-actions{display:flex;justify-content:flex-end;gap:8px}
.review-submit,.review-cancel,.review-more{
  min-height:42px;padding:0 15px;border:0;border-radius:14px;font:inherit;font-size:13px;font-weight:650;cursor:pointer
}
.review-submit{background:#171717;color:#fff}
.review-cancel{background:#F0F0EE;color:#171717}
.review-submit:disabled,.review-cancel:disabled{opacity:.6;cursor:wait}
.review-own{display:grid;gap:8px;padding:2px 0 18px;border-bottom:1px solid #ECECE8}
.review-own-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.review-own-top>strong{font-size:15px}
.review-own-top button{border:0;background:transparent;color:#555550;font:inherit;font-size:13px;font-weight:650;cursor:pointer}
.review-own p{margin:0;color:#555550;font-size:14px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.review-own time{color:#92928C;font-size:11px}
.review-stars-static{display:inline-flex;gap:1px;color:#D2D2CD;font-size:17px;letter-spacing:.01em}
.review-stars-static .on{color:#F2B544}
.review-summary{display:flex;align-items:baseline;gap:8px;padding:0 0 2px}
.review-summary strong{font-size:20px;letter-spacing:-.03em}
.review-summary span{color:#85857F;font-size:12px}
.review-community{display:grid;gap:10px}
.review-community h3{margin:0;font-size:14px;letter-spacing:-.015em}
.review-list{display:grid;gap:9px}
.review-card{padding:14px;border-radius:16px;background:#F7F7F5}
.review-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.review-card-top strong{font-size:13px}
.review-card-top time{color:#92928C;font-size:11px;white-space:nowrap}
.review-card p{margin:7px 0 0;color:#555550;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.review-more{justify-self:start;background:#F0F0EE;color:#171717}
.review-empty{margin:0;padding:10px 0;color:#92928C;font-size:13px}
@keyframes review-dialog-in{from{opacity:0;transform:scale(.985) translateY(5px)}to{opacity:1;transform:none}}
.review-dialog[open]{animation:review-dialog-in .18s cubic-bezier(.2,.8,.2,1)}
@media(max-width:600px){
  .review-dialog{
    position:fixed;inset:auto 0 0 0;width:100%;max-width:none;max-height:88dvh;margin:0;
    border-radius:28px 28px 0 0
  }
  .review-sheet{padding:0 18px calc(18px + env(safe-area-inset-bottom))}
  .review-grabber{display:block;width:38px;height:5px;margin:9px auto 1px;border-radius:999px;background:#D7D7D2}
  .review-head{padding-top:12px}
  .review-head h2{font-size:21px}
  .review-form-actions{display:grid;grid-template-columns:1fr 1fr}
  .review-form-actions .review-submit:only-child{grid-column:1/-1}
  .review-submit,.review-cancel{min-height:46px}
  .review-card{border-radius:18px}
  @keyframes review-sheet-in{from{opacity:.9;transform:translateY(24px)}to{opacity:1;transform:none}}
  .review-dialog[open]{animation:review-sheet-in .24s cubic-bezier(.2,.8,.2,1)}
}
@media(prefers-reduced-motion:reduce){.review-dialog[open]{animation:none!important}}

/* Settings hub + iPhone connection — 2026-09-29 */
.settings-hub-page .app-main,.iphone-connection-page .app-main{width:min(680px,calc(100% - 48px));margin-inline:auto;padding-top:44px}
.settings-hub-page .page-head,.iphone-connection-page .page-head{margin-bottom:28px}
.settings-menu-section{margin-top:26px}
.settings-menu-section:first-of-type{margin-top:0}
.settings-menu-label{margin:0 0 9px 4px;color:#8A8A84;font-size:11px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
.settings-menu-group{overflow:hidden;border-radius:26px;background:#fff;box-shadow:0 1px 2px rgba(17,17,17,.025),0 10px 28px rgba(17,17,17,.032)}
.settings-menu-row{width:100%;min-height:64px;display:flex;align-items:center;gap:13px;padding:10px 14px;border:0;background:transparent;color:#171717;text-decoration:none;font:inherit;text-align:left;cursor:pointer}
.settings-menu-row+.settings-menu-row{position:relative}
.settings-menu-row+.settings-menu-row::before{content:"";position:absolute;left:58px;right:14px;top:0;height:1px;background:#EEEEEB}
.settings-menu-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px;background:#F1F1EF;color:#50504C}
.settings-menu-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.settings-menu-copy{min-width:0;flex:1;display:grid;gap:2px}
.settings-menu-copy strong{font-size:15px;font-weight:600;letter-spacing:-.015em}
.settings-menu-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8A8A84;font-size:12px}
.settings-menu-chevron{flex:0 0 auto;color:#AAA9A3;font-size:22px;line-height:1}
.settings-menu-row:hover{background:#FAFAF8}
.settings-menu-row.danger{color:#A33E3E}
.settings-menu-row.danger .settings-menu-icon{background:#FAEEEE;color:#A33E3E}
.settings-back-link{display:inline-flex;margin:0 0 18px;color:#6F6F69;font-size:13px;font-weight:600;text-decoration:none}
.settings-back-link:hover{color:#171717}
.profile-dialog{width:min(460px,calc(100vw - 28px));padding:0;border:0;border-radius:26px;background:#fff;box-shadow:0 28px 80px rgba(17,17,17,.16)}
.profile-dialog::backdrop{background:rgba(17,17,17,.28);backdrop-filter:blur(3px)}
.profile-sheet{padding:20px}
.profile-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.profile-head h2{margin:0;font-size:21px;letter-spacing:-.03em}
.profile-close{width:36px;height:36px;border:0;border-radius:50%;background:#F2F2F0;font-size:24px;cursor:pointer}
.profile-data{display:grid;gap:14px}
.profile-data div{display:grid;gap:4px}
.profile-data span{color:#8A8A84;font-size:11px}
.profile-data strong{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.profile-spreadsheet-block{margin-top:18px;padding-top:16px;border-top:1px solid #EEEEEB}
.profile-section-label{display:block;margin:0 0 9px;color:#8A8A84;font-size:11px;font-weight:650;letter-spacing:.02em}
.profile-sheet-card{min-height:62px;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:#F7F7F5;color:#171717;text-decoration:none;transition:background-color .15s ease,transform .15s ease}
.profile-sheet-card:hover{background:#F0F0ED}.profile-sheet-card:active{transform:scale(.985)}
.profile-sheet-card[aria-disabled="true"]{pointer-events:none;opacity:.55}
.profile-sheet-card-icon{width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:11px;background:#fff;color:#555550}
.profile-sheet-card-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-sheet-card-copy{min-width:0;flex:1;display:grid;gap:2px}.profile-sheet-card-copy strong{font-size:14px;font-weight:650}.profile-sheet-card-copy small{color:#888882;font-size:11px}
.profile-sheet-card-chevron{color:#AAA9A3;font-size:22px;line-height:1}
.iphone-connection-surface{overflow:hidden;border-radius:26px;background:#fff;box-shadow:0 1px 2px rgba(17,17,17,.025),0 10px 28px rgba(17,17,17,.032)}
.iphone-info-list{padding:4px 18px}
.iphone-info-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 0}
.iphone-info-row+.iphone-info-row{border-top:1px solid #EEEEEB}
.iphone-info-row span{color:#85857F;font-size:12px}
.iphone-info-row strong{max-width:62%;color:#171717;font-size:13px;font-weight:600;text-align:right;line-height:1.45}
.iphone-actions{display:grid;gap:9px;padding:18px;border-top:1px solid #EEEEEB}
.iphone-check-button{min-height:48px;border:0;border-radius:16px;background:#171717;color:#fff;font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.iphone-check-button:disabled{opacity:.55;cursor:default}
.iphone-relink{justify-self:center;color:#5F5F5A;font-size:13px;font-weight:600;text-decoration:none}
.iphone-test-status{display:none;margin:0 18px 18px;padding:14px 15px;border-radius:18px;background:#F5F5F3;color:#555550;font-size:13px;line-height:1.5}
.iphone-test-status.show{display:block}
.iphone-test-status strong{display:block;margin-bottom:4px;color:#171717;font-size:14px}
.iphone-test-status.success{background:#F0F7F1}
.iphone-test-status.attention{background:#FAF4EA}
.iphone-test-status.error{background:#FAEEEE}
.iphone-support-note,.iphone-desktop-note,.iphone-scope-note{margin:15px 4px 0;color:#85857F;font-size:12px;line-height:1.55}
.iphone-support-note a,.iphone-desktop-note a{color:#555550;font-weight:650}
.iphone-scope-note{margin-top:22px}
@media(max-width:600px){
 .settings-hub-page .app-main,.iphone-connection-page .app-main{width:calc(100% - 40px);padding-top:34px}
 .settings-hub-page .page-head,.iphone-connection-page .page-head{margin-bottom:22px}
 .settings-menu-section{margin-top:22px}
 .settings-menu-group,.iphone-connection-surface{border-radius:24px}
 .settings-menu-row{min-height:62px;padding:9px 13px}
 .settings-menu-copy strong{font-size:14px}
 .settings-menu-row+.settings-menu-row::before{left:56px;right:13px}
 .profile-dialog{position:fixed;inset:auto 0 0 0;width:100%;max-width:none;margin:0;border-radius:28px 28px 0 0}
 .profile-sheet{padding:12px 18px calc(20px + env(safe-area-inset-bottom))}
 .iphone-info-list{padding:3px 16px}
 .iphone-actions{padding:16px}
}


/* First-transaction review form */
.review-field-label{font-size:13px;font-weight:600;color:#333}.review-field-label span{font-weight:400;color:#777}.review-intro{margin:0;color:#666;font-size:14px;line-height:1.6}.review-comment{box-sizing:border-box}.review-star-choice:focus-visible{outline:2px solid #575757;outline-offset:2px;border-radius:8px}.review-thanks{display:grid;gap:12px;padding:12px 0}.review-thanks h3,.review-thanks p{margin:0}.review-thanks p{color:#666;line-height:1.6}.review-head h2{line-height:1.3}.review-form-actions button{min-height:44px}


/* Full-page review revamp — 2026-09-30 */
dialog.review-dialog{
  position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:#fff!important;color:#171717!important;
  box-shadow:none!important;overflow:hidden!important;
}
dialog.review-dialog::backdrop{background:transparent!important;backdrop-filter:none!important}
.review-dialog[open]{animation:review-page-in .2s ease-out!important}
@keyframes review-page-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.review-page{min-height:100dvh!important;max-height:none!important;overflow:auto!important;display:flex!important;flex-direction:column!important;padding:0 max(20px,env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left))!important;background:#fff!important}
.review-page-head{width:min(100%,520px);margin:0 auto;padding-top:max(18px,env(safe-area-inset-top));min-height:66px;display:flex;align-items:center}
.review-back{width:44px;height:44px;border:0;background:transparent;color:#222;display:grid;place-items:center;cursor:pointer;padding:0}
.review-back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.review-page-main{width:min(100%,520px);margin:0 auto;flex:1;display:flex;flex-direction:column;padding:20px 0 0}
.review-body{display:flex!important;flex:1;flex-direction:column;gap:0!important}
.review-page-copy{text-align:center;margin:8px auto 34px;max-width:430px}
.review-page-copy h1,.review-thanks h1,.review-load-error h1{margin:0;font-size:32px;line-height:1.08;letter-spacing:-.04em}
.review-page-copy p,.review-thanks p,.review-load-error p{margin:12px auto 0;color:#6f6f69;font-size:15px;line-height:1.55;max-width:400px}
.review-rating-section{text-align:center;margin-bottom:32px}
.review-question{margin:0 0 12px;font-size:14px;font-weight:650;color:#343430}
.review-stars-input{display:flex!important;justify-content:center;gap:8px!important;margin:0!important}
.review-star-choice{width:44px!important;height:44px!important;border:0!important;background:transparent!important;color:#d7d7d1!important;padding:4px!important;display:grid!important;place-items:center!important;cursor:pointer!important;transition:transform .12s ease,color .12s ease}
.review-star-choice svg{width:34px;height:34px;fill:currentColor;stroke:currentColor;stroke-width:.7;stroke-linejoin:round}
.review-star-choice.active{color:#f2ad28!important}.review-star-choice:active{transform:scale(.92)}
.review-star-choice:focus-visible{outline:2px solid #777!important;outline-offset:4px!important;border-radius:8px}
.review-field-label{margin:0 0 9px!important;font-size:14px!important;font-weight:650!important;color:#333!important}
.review-field-label span{font-weight:400!important;color:#85857f!important}
.review-comment{width:100%!important;min-height:118px!important;box-sizing:border-box!important;border:1px solid #cfcfc9!important;border-radius:12px!important;background:#fff!important;color:#171717!important;padding:14px!important;font:inherit!important;font-size:15px!important;line-height:1.5!important;resize:none!important;box-shadow:none!important}
.review-comment::placeholder{color:#aaa9a3}.review-comment:focus{outline:2px solid rgba(23,23,23,.18)!important;outline-offset:2px!important}
.review-later-note{margin:12px 0 0;color:#85857f;font-size:12px;line-height:1.5;text-align:center}
.review-error{margin:12px 0 0!important;color:#a33e3e!important;font-size:13px!important;text-align:center}
.review-page-actions{margin-top:auto;padding-top:28px;display:grid;gap:8px}
.review-submit{width:100%!important;min-height:52px!important;border:0!important;border-radius:14px!important;background:#171717!important;color:#fff!important;font:inherit!important;font-weight:700!important;cursor:pointer!important}
.review-submit:disabled{opacity:.42!important;cursor:default!important}
.review-later{min-height:48px;border:0;background:transparent;color:#686862;font:inherit;font-weight:600;cursor:pointer}
.review-loading,.review-load-error,.review-thanks{min-height:70dvh;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.review-thanks .review-submit,.review-load-error .review-submit{margin-top:28px;max-width:360px}
@media(max-width:600px){
  .review-page-main{padding-top:10px}
  .review-page-copy{margin-top:0;margin-bottom:28px}
  .review-page-copy h1,.review-thanks h1,.review-load-error h1{font-size:29px}
}
@media(prefers-reduced-motion:reduce){.review-dialog[open],.review-star-choice{animation:none!important;transition:none!important}}


/* Touch focus polish — 2026-09-30 */
button,a,[role="button"]{-webkit-tap-highlight-color:transparent}
html:not(.ft-keyboard-focus) button:focus-visible,
html:not(.ft-keyboard-focus) a:focus-visible,
html:not(.ft-keyboard-focus) [role="button"]:focus-visible{outline:none!important}

/* User transaction editing + full transaction list — 2026-10-01 */
.transaction-edit-dialog{width:min(720px,calc(100vw - 24px));max-height:min(88dvh,820px);overflow:auto}
.transaction-edit-form{padding:22px}
.transaction-edit-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:20px}
.transaction-edit-field{display:grid;gap:7px;min-width:0;color:var(--app-muted);font-size:12px;font-weight:650}
.transaction-edit-field input,.transaction-edit-field select,.transaction-edit-field textarea{
 width:100%;min-height:44px;border:1px solid var(--app-line);border-radius:11px;background:var(--app-card);color:var(--app-ink);padding:10px 11px;font:inherit;font-size:14px
}
.transaction-edit-field textarea{min-height:92px;resize:vertical}
.transaction-edit-wide{grid-column:1/-1}
.transaction-edit-check{grid-column:1/-1;display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;font-weight:650}
.transaction-edit-check input{width:20px;height:20px}
.transaction-edit-action{min-height:40px;border:1px solid var(--app-line);border-radius:10px;background:var(--app-card);color:var(--app-ink);padding:8px 11px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.transaction-edit-action:hover{background:var(--app-soft)}
.transaction-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.home-section-heading-with-action{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-section-heading-with-action a{color:var(--home-muted);font-size:12px;text-decoration:none}
.home-transaction-list{display:grid}
.home-transaction-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;min-height:76px;padding:14px 0;border-top:1px solid var(--home-line)}
.home-transaction-item:last-child{border-bottom:1px solid var(--home-line)}
.home-transaction-link{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;color:var(--home-ink);text-decoration:none}
.home-transaction-item .transaction-edit-action{border-color:var(--home-line);background:var(--home-card);color:var(--home-ink);min-height:38px}
.home-transaction-count{margin:3px 0 0;color:var(--home-muted);font-size:12px}
@media(max-width:600px){
 .transaction-edit-dialog{width:100vw;max-width:none;max-height:92dvh;margin:auto 0 0;border-radius:20px 20px 0 0}
 .transaction-edit-form{padding:18px}
 .transaction-edit-fields{grid-template-columns:1fr;gap:12px}.transaction-edit-wide{grid-column:auto}
 .transaction-edit-form .dialog-actions{position:sticky;bottom:-18px;margin:18px -18px -18px;padding:12px 18px calc(12px + env(safe-area-inset-bottom));background:var(--app-card);border-top:1px solid var(--app-line)}
 .home-transaction-item{grid-template-columns:minmax(0,1fr) auto;gap:9px}
 .home-transaction-link{grid-template-columns:1fr;gap:5px}
 .home-transaction-link .home-latest-amount{justify-items:start;text-align:left}
 .home-transaction-item .transaction-edit-action{grid-column:2;grid-row:1/3}
 .data-table tr[data-id] td:nth-child(9){grid-column:2;grid-row:3;text-align:right;display:block}
}

/* Home table motion preview: preserve the full video frame on all screens. */
.home-page .home-table-video-wrap{
  aspect-ratio:798/660;
  width:100%;
  height:auto;
  min-height:0;
  padding:0;
  overflow:hidden;
  position:relative;
  background:#dedede;
}
.home-page .home-table-video{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border:0;
  pointer-events:none;
}


/* End-user visual refresh 2026-10-02: white canvas, soft gray rows. */
body.finance-app.home-page {
  --home-bg:#fff;
  --home-card:#F4F4F5;
  --home-line:#E5E5E6;
  --home-soft:#F4F4F5;
  --home-surface-shadow:none;
  background:#fff;
}
body.finance-app:not(.home-page) {
  --app-bg:#fff;
  --app-card:#fff;
  --app-soft:#F4F4F5;
  background:#fff;
}
.home-page .home-access-card,
.home-page .home-metric-card,
.home-page .home-spreadsheet-card,
.home-page .home-table-card,
.home-page .home-state-message-wide,
.home-page .home-empty,
.home-page-v2 .home-latest-placeholder,
.home-page-v2 .home-latest-empty {
  background:#F4F4F5!important;
  border:0!important;
  box-shadow:none!important;
}
.home-page .home-access-card-link:hover {background:#ECECEE!important}
.home-page .home-access-open,
.home-page .home-sheet-open,
.home-page .home-sheet-copy-button,
.home-page .home-table-button {
  background:#fff;
  border:0;
  box-shadow:none;
}
.home-page .home-access-open:hover,
.home-page .home-sheet-open:hover,
.home-page .home-sheet-copy-button:hover,
.home-page .home-table-button:hover {background:#E8E8EA}
.home-page .home-access-open {display:grid;place-items:center;flex-shrink:0}
.home-page .home-metric-icon,
.home-page .home-transaction-icon,
.home-page .home-sheet-icon {background:#fff}
.home-page .home-table-visual,
.home-page .home-table-video-wrap {background:#DEDEDE}
.home-page .home-transaction-list {display:grid;gap:10px}
.home-page .home-transaction-item,
.home-page .home-transaction-item:last-child {
  border:0!important;
  min-width:0;
  min-height:76px;
  padding:14px 16px;
  border-radius:19px;
  background:#F4F4F5;
}
.home-page .home-transaction-item:hover {background:#ECECEE}
.home-page .home-transaction-item .transaction-edit-action {
  background:#fff;
  color:#171717;
  border:0!important;
  box-shadow:none;
}
.home-page .home-transaction-item .transaction-edit-action:hover {background:#E2E2E5}
.home-page .home-section-heading-with-action a {
  display:inline;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#57575C;
  text-decoration:underline;
  text-underline-offset:3px;
  font-size:13px;
  font-weight:600;
  box-shadow:none;
}
.home-page .home-section-heading-with-action a:hover {color:#171717;background:transparent}

/* Transactions: white background, gray individual records and inputs. */
body[data-page="transactions"] .table-card {
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
}
body[data-page="transactions"] .table-tools {
  padding:12px 0 14px;
  border:0;
  background:transparent;
}
body[data-page="transactions"] .period-select,
body[data-page="transactions"] .app-input,
body[data-page="transactions"] .filter-control {
  background:#F4F4F5!important;
  border:0!important;
  box-shadow:none;
}
body[data-page="transactions"] .transaction-filters summary {
  width:max-content;
  max-width:100%;
  padding:8px 0;
  border:0;
  background:transparent;
  color:#55555A;
  font-weight:600;
}
body[data-page="transactions"] .data-table {
  border-collapse:separate;
  border-spacing:0 9px;
}
body[data-page="transactions"] .data-table th {border:0}
body[data-page="transactions"] .data-table td {
  background:#F4F4F5;
  border:0!important;
}
body[data-page="transactions"] .data-table td:first-child {border-radius:16px 0 0 16px}
body[data-page="transactions"] .data-table td:last-child {border-radius:0 16px 16px 0}
body[data-page="transactions"] .data-table tbody tr:hover td {background:#ECECEE}
.finance-app .transaction-edit-action {
  border:0!important;
  background:#fff;
  color:#262629;
  box-shadow:none;
  border-radius:11px;
  min-height:38px;
  padding:8px 12px;
}
.finance-app .transaction-edit-action:hover {background:#E8E8EA}
body[data-page="transactions"] .app-card:not(.table-card) {
  background:#fff;
  border:0;
  box-shadow:none;
}
body[data-page="transactions"] .account-chip {
  background:#F4F4F5;
  border:0;
  border-radius:14px;
}

/* Consistent white-and-gray grouped surfaces in other end-user pages. */
body.settings-page {background:#fff!important}
.settings-hub-page .settings-menu-group {
  background:#F4F4F5;
  box-shadow:none;
}
.settings-hub-page .settings-menu-row:hover {background:#ECECEE}
.settings-hub-page .settings-menu-row+.settings-menu-row::before {
  background:#E3E3E6;
}
.iphone-connection-page .iphone-connection-surface {
  background:#F4F4F5;
  box-shadow:none;
}
.settings-page .single-column-row:not(.dragging) {
  background:#F4F4F5!important;
  border:0!important;
  box-shadow:none!important;
}
.settings-page .single-column-row:not(.dragging):hover {
  background:#EBEBEE!important;
}
.finance-app:not(.home-page) .app-card:not(.table-card) {
  background:#F4F4F5;
  border:0;
  box-shadow:none;
}
body[data-page="transactions"] .app-card:not(.table-card) {
  background:#fff;
}
@media(max-width:600px){
  body[data-page="transactions"] .data-table {border-spacing:0}
  body[data-page="transactions"] .data-table tbody {
    display:grid;
    gap:10px;
  }
  body[data-page="transactions"] .data-table tr[data-id] {
    border:0!important;
    background:#F4F4F5;
    padding:14px 15px;
    border-radius:18px;
  }
  body[data-page="transactions"] .data-table tr[data-id]:hover {
    background:#ECECEE;
  }
  body[data-page="transactions"] .data-table tr[data-id] td {
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
  }
  .home-page .home-transaction-item {
    padding:13px 14px;
    border-radius:17px;
  }
}

/* 2026-10-02 v2: progressive sharp focus like LuxeMira, homepage only. */
@keyframes ft-home-reveal {
  0% {opacity:0;transform:translate3d(0,20px,0);filter:blur(11px)}
  18% {opacity:.1;transform:translate3d(0,17px,0);filter:blur(10px)}
  48% {opacity:.65;transform:translate3d(0,8px,0);filter:blur(5px)}
  100% {opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
}
@keyframes ft-home-reveal-lite {
  0% {opacity:0;transform:translate3d(0,24px,0)}
  40% {opacity:.65}
  100% {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes ft-home-data-reveal {
  0% {opacity:.07;filter:blur(8px);transform:translate3d(0,8px,0)}
  48% {opacity:.7;filter:blur(3px)}
  100% {opacity:1;filter:blur(0);transform:translate3d(0,0,0)}
}
@keyframes ft-home-sweep {to {transform:translate3d(215%,0,0)}}
/* Separated timings preserve a visible blur-to-clear sequence. */
.home-page .home-header-inner {
  animation:ft-home-reveal .94s cubic-bezier(.32,.68,.2,1) both;
  animation-delay:.04s;
}
.home-page .home-enter {
  animation:ft-home-reveal 1.1s cubic-bezier(.32,.68,.2,1) both;
  animation-delay:.16s;
}
.home-page .home-notice.home-enter {animation-delay:.18s}
.home-page .home-access-stack.home-enter {animation-delay:.19s}
.home-page .home-table-card.home-enter {
  animation:ft-home-reveal-lite 1.05s cubic-bezier(.32,.68,.2,1) both;
  animation-delay:.38s;
}
/* Video stays sharp and can decode normally; only its short caption reveals. */
.home-page .home-table-card .home-table-content {
  animation:ft-home-reveal .96s cubic-bezier(.32,.68,.2,1) both;
  animation-delay:.48s;
}
.home-page .home-metric-grid.home-enter {
  animation-duration:1.12s;
  animation-delay:.56s;
}
.home-page .home-latest.home-enter {
  animation-name:ft-home-reveal-lite;
  animation-duration:1.04s;
  animation-delay:.76s;
}
.home-page .home-empty.home-enter {animation-delay:.82s}
/* Actual values sharpen when the API completes, not only during initial skeleton. */
.home-page.home-data-ready .home-metric-value {
  animation:ft-home-data-reveal .84s cubic-bezier(.24,.65,.22,1) both;
}
.home-page.home-data-ready .home-transaction-item:nth-child(-n+4) {
  animation:ft-home-data-reveal .78s cubic-bezier(.24,.65,.22,1) both;
}
.home-page.home-data-ready .home-transaction-item:nth-child(2) {animation-delay:.08s}
.home-page.home-data-ready .home-transaction-item:nth-child(3) {animation-delay:.16s}
.home-page.home-data-ready .home-transaction-item:nth-child(4) {animation-delay:.24s}
/* Match the true gray metric card dimensions, icon, amount and label placement. */
.home-page .home-metric-grid[aria-busy="true"] .home-metric-card {display:none}
.home-page .home-metric-skeleton {
  box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;
  min-height:166px;padding:18px;gap:0;border-radius:26px;background:#F4F4F5
}
.home-page .home-shimmer-piece {
  position:relative;display:block;flex:none;max-width:100%;border-radius:7px;
  background:#E1E1E4;overflow:hidden
}
.home-page .home-shimmer-piece::after {
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);
  transform:translate3d(-110%,0,0);
  animation:ft-home-sweep 1.55s ease-in-out infinite
}
.home-page .home-shimmer-icon {width:34px;height:34px;border-radius:14px;margin-bottom:17px}
.home-page .home-shimmer-label {width:86px;height:13px;margin-bottom:10px}
.home-page .home-shimmer-value {width:min(80%,165px);height:26px;border-radius:9px}
.home-page .home-shimmer-caption {width:118px;height:10px;margin-top:auto}
/* Three gray transaction skeleton rows replicate text, amount and Edit placement. */
.home-page #latestLoading.home-latest-placeholder {
  display:grid;grid-template-columns:minmax(0,1fr);gap:10px;
  padding:0;min-height:0;border:0!important;background:transparent!important;border-radius:0
}
.home-page .home-loading-transaction-row {
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;
  min-height:76px;box-sizing:border-box;padding:14px 16px;border-radius:19px;background:#F4F4F5
}
.home-page .home-loading-transaction-name,
.home-page .home-loading-transaction-amount {display:grid;gap:9px;min-width:0}
.home-page .home-loading-transaction-name {justify-items:start}
.home-page .home-loading-transaction-amount {justify-items:end}
.home-page .home-shimmer-merchant {width:min(180px,70%);height:14px}
.home-page .home-shimmer-date {width:100px;height:10px}
.home-page .home-shimmer-price {width:92px;height:15px}
.home-page .home-shimmer-type {width:67px;height:10px}
.home-page .home-shimmer-edit {width:43px;height:38px;border-radius:13px;background:#fff}
@media(max-width:600px) {
  .home-page .home-loading-transaction-row {
    grid-template-columns:minmax(0,1fr) auto;gap:9px;padding:13px 14px;border-radius:17px
  }
  .home-page .home-loading-transaction-amount {grid-column:1;grid-row:2;justify-items:start}
  .home-page .home-loading-transaction-name {grid-row:1}
  .home-page .home-shimmer-edit {grid-column:2;grid-row:1/3}
  .home-page .home-shimmer-price {width:80px}
}
@media(prefers-reduced-motion:reduce) {
  .home-page .home-header-inner,.home-page .home-enter {
    animation:none!important;transform:none!important;filter:none!important;opacity:1!important
  }
  .home-page .home-shimmer-piece::after {animation:none!important;display:none!important}
}


/* v2 motion safe paths: fully static visuals when reduced motion is requested. */
@media (prefers-reduced-motion:reduce) {
 .home-page .home-table-card .home-table-content,
 .home-page.home-data-ready .home-metric-value,
 .home-page.home-data-ready .home-transaction-item:nth-child(-n+4) {
   animation:none!important;opacity:1!important;transform:none!important;filter:none!important;
 }
}


/* Scroll-triggered reveal v3 — isolated to Finance Tracker homepage.
   CSS only hides elements JS registered below the first viewport.
   IntersectionObserver unobserves after one reveal; no scroll handlers. */
.home-page .home-scroll-pending {
  animation:none!important;
  opacity:0!important;
  transform:translate3d(0,15px,0)!important;
  filter:blur(10px)!important;
}
.home-page .home-table-card.home-scroll-pending,
.home-page .home-latest.home-scroll-pending {
  /* Avoid a large raster layer, especially with video or long transaction lists. */
  filter:none!important;
}
.home-page .home-enter.home-scroll-visible {
  animation:ft-home-reveal 1.06s cubic-bezier(.32,.68,.2,1) both!important;
  animation-delay:0s!important;
}
.home-page .home-table-card.home-scroll-visible,
.home-page .home-latest.home-scroll-visible {
  animation-name:ft-home-reveal-lite!important;
}
.home-page .home-table-card.home-scroll-visible .home-table-content {
  animation:ft-home-reveal .94s cubic-bezier(.32,.68,.2,1) both!important;
  animation-delay:.06s!important;
}
.home-page .home-transaction-item.home-scroll-visible {
  animation:ft-home-data-reveal .8s cubic-bezier(.24,.65,.22,1) both!important;
  animation-delay:var(--home-row-stagger,0ms)!important;
}
@media(prefers-reduced-motion:reduce){
  .home-page .home-scroll-pending,
  .home-page .home-scroll-visible,
  .home-page .home-table-card.home-scroll-visible .home-table-content {
    animation:none!important;opacity:1!important;transform:none!important;filter:none!important;
  }
}


/* Settings hub motion v1 — restricted to /next/settings, 2026-10-02.
   No dependency; homepage and settings subpages keep existing animations. */
@keyframes ft-settings-soft-focus {
  0% {opacity:0;transform:translate3d(0,19px,0);filter:blur(10px)}
  19% {opacity:.11;transform:translate3d(0,16px,0);filter:blur(9px)}
  53% {opacity:.78;transform:translate3d(0,7px,0);filter:blur(3px)}
  100% {opacity:1;transform:translate3d(0,0,0);filter:blur(0)}
}
@keyframes ft-settings-row-rise {
  0% {opacity:0;transform:translate3d(0,7px,0)}
  100% {opacity:1;transform:translate3d(0,0,0)}
}
@keyframes ft-settings-shimmer {
  to {transform:translate3d(210%,0,0)}
}
.settings-hub-page .app-nav-inner {
  animation:ft-settings-soft-focus .88s cubic-bezier(.32,.68,.2,1) both;
}
.settings-hub-page .page-head {
  animation:ft-settings-soft-focus 1.03s cubic-bezier(.32,.68,.2,1) .08s both;
}
/* JS only assigns pending to below-viewport menu groups. */
.settings-hub-page .settings-menu-section.settings-reveal-pending {
  opacity:0;transform:translate3d(0,18px,0);filter:blur(10px);
}
.settings-hub-page .settings-menu-section.settings-reveal-in {
  animation:ft-settings-soft-focus 1.05s cubic-bezier(.32,.68,.2,1) var(--settings-delay,0ms) both;
}
/* A few low-cost row movements reinforce stagger without multiple blurred layers. */
.settings-hub-page .settings-reveal-in .settings-menu-row:not([hidden]) {
  animation:ft-settings-row-rise .74s cubic-bezier(.22,.7,.2,1) both;
  animation-delay:calc(var(--settings-delay,0ms) + 105ms);
}
.settings-hub-page .settings-reveal-in .settings-menu-row:nth-child(2) {animation-delay:calc(var(--settings-delay,0ms) + 155ms)}
.settings-hub-page .settings-reveal-in .settings-menu-row:nth-child(3) {animation-delay:calc(var(--settings-delay,0ms) + 205ms)}
.settings-hub-page .settings-reveal-in .settings-menu-row:nth-child(4) {animation-delay:calc(var(--settings-delay,0ms) + 255ms)}
.settings-hub-page .settings-reveal-in .settings-menu-row:nth-child(5) {animation-delay:calc(var(--settings-delay,0ms) + 305ms)}
/* Text-size shimmer only during actual profile and Back Tap status requests. */
.settings-hub-page .settings-menu-copy span.settings-meta-loading {
  position:relative;color:transparent!important;
}
.settings-hub-page .settings-menu-copy span.settings-meta-loading::after {
  content:"";position:absolute;left:0;top:2px;width:min(110px,82%);height:10px;
  border-radius:7px;background:#E0E0E3;overflow:hidden;
}
.settings-hub-page .settings-menu-copy span.settings-meta-loading::before {
  content:"";position:absolute;left:0;top:2px;width:min(110px,82%);height:10px;
  border-radius:7px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent);
  transform:translate3d(-110%,0,0);animation:ft-settings-shimmer 1.55s ease-in-out infinite;
  z-index:1;
}
@media(prefers-reduced-motion:reduce) {
  .settings-hub-page .app-nav-inner,
  .settings-hub-page .page-head,
  .settings-hub-page .settings-menu-section.settings-reveal-in,
  .settings-hub-page .settings-reveal-in .settings-menu-row:not([hidden]) {
    animation:none!important;opacity:1!important;transform:none!important;filter:none!important;
  }
  .settings-hub-page .settings-menu-section.settings-reveal-pending {
    opacity:1!important;transform:none!important;filter:none!important;
  }
  .settings-hub-page .settings-menu-copy span.settings-meta-loading::before {animation:none!important;display:none!important}
}


/* Transaction merchant badge system 2026-10-02. Scope: lists only, no layout redesign. */
.ft-merchant-badge {
  display:inline-grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
  min-width:44px;border-radius:15px;overflow:hidden;box-sizing:border-box;
  background:var(--merchant-bg,#E5E5E9);color:var(--merchant-fg,#3C3C43);
}
.ft-merchant-badge svg {width:24px;height:24px;display:block}
.ft-merchant-badge img {
  display:block;width:32px;height:32px;max-width:92%;max-height:92%;
  object-fit:contain;object-position:center;
}
.ft-merchant-brand--mypertamina img {width:39px;height:39px;border-radius:11px}
.ft-merchant-brand--tokopedia img {width:39px;height:39px;border-radius:11px}
.ft-merchant-brand--lawson img {width:40px;height:34px}
.ft-merchant-brand--teazzi img {width:40px;height:auto}
.ft-merchant-brand--chagee img,.ft-merchant-brand--chatime img,.ft-merchant-brand--mixue img,.ft-merchant-brand--tomoro img {width:38px;height:38px}
.ft-merchant-brand--koithe img,.ft-merchant-brand--gongcha img,.ft-merchant-brand--forecoffee img {width:40px;height:auto}
.ft-merchant-brand--kopikenangan img {width:39px;height:auto}
.ft-merchant-brand--boostjuice img {width:42px;height:auto}
.ft-merchant-brand--pepperlunch img {width:40px;height:auto}
.ft-merchant-brand--indomaret img,.ft-merchant-brand--alfamart img,.ft-merchant-brand--alfamidi img,.ft-merchant-brand--circlek img,.ft-merchant-brand--yomart img {width:41px;height:auto}
.ft-merchant-brand--familymart img {width:38px;height:38px;object-fit:contain}
.ft-merchant-row-copy {
  display:flex;align-items:center;gap:12px;min-width:0;
}
.ft-merchant-row-copy>.home-latest-copy {flex:1;min-width:0}
.ft-merchant-table-cell {
  display:flex;gap:12px;align-items:center;min-width:0;
}
.ft-merchant-table-text {min-width:0;overflow-wrap:anywhere}
.ft-merchant-table-text .transaction-open {text-align:left}
@media(max-width:600px){
  .ft-merchant-badge {width:42px;height:42px;min-width:42px;flex-basis:42px;border-radius:14px}
  .ft-merchant-row-copy,.ft-merchant-table-cell {gap:10px}
  .ft-merchant-table-cell {align-items:flex-start}
}

/* QA: user transaction deletion + iOS-style swipe actions. */
.transaction-delete-zone{
  margin-top:20px;padding-top:16px;border-top:1px solid var(--app-line);
}
.transaction-delete-action{
  width:100%;min-height:44px;border:0;border-radius:12px;
  background:#FFF0F0;color:#C62828;font:inherit;font-weight:750;cursor:pointer;
}
.transaction-delete-action:hover{background:#FFE5E5}
.transaction-delete-confirm{width:min(420px,calc(100vw - 28px))}
.transaction-delete-confirm-body{padding:24px;text-align:center}
.transaction-delete-symbol{
  width:48px;height:48px;margin:0 auto 14px;border-radius:50%;display:grid;place-items:center;
  background:#FFF0F0;color:#D52B2B;
}
.transaction-delete-symbol svg{
  width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.transaction-delete-confirm h2{margin:0;font-size:20px;letter-spacing:-.03em}
.transaction-delete-confirm p{margin:9px auto 0;max-width:330px;color:var(--app-muted);font-size:13px;line-height:1.5}
.transaction-delete-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:20px}
.transaction-delete-confirm-button{
  min-height:44px;border:0;border-radius:11px;background:#FF3B30;color:#fff;
  font:inherit;font-weight:750;cursor:pointer;
}
.transaction-delete-confirm-button:disabled{opacity:.6;cursor:default}
.transaction-swipe-delete,.transaction-swipe-action{display:none}

@media(max-width:600px){
  .transaction-delete-confirm{
    width:100vw;max-width:none;margin:auto 0 0;border-radius:20px 20px 0 0;
  }
  .transaction-delete-confirm-body{padding:24px 18px calc(18px + env(safe-area-inset-bottom))}
  .transaction-swipe-host{
    --transaction-swipe-x:0px;
    position:relative!important;
    overflow:hidden!important;
    touch-action:pan-y;
  }
  .transaction-swipe-delete{
    display:grid;place-items:center;position:absolute;right:0;top:0;bottom:0;width:88px;
    border:0;background:#FF3B30;color:#fff;font:inherit;font-size:13px;font-weight:750;
    cursor:pointer;z-index:0;
  }
  .home-page .home-transaction-item.transaction-swipe-host{
    display:block!important;padding:0!important;
  }
  .home-page .home-transaction-item .transaction-swipe-content{
    position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;
    gap:9px;align-items:center;min-height:76px;padding:13px 14px;background:#F4F4F5;
    transform:translate3d(var(--transaction-swipe-x),0,0);
    transition:transform .22s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
  }
  .home-page .home-transaction-item .transaction-swipe-content .transaction-edit-action{
    grid-column:2;grid-row:1/3;
  }
  body[data-page="transactions"] .data-table tr.transaction-swipe-host{
    isolation:isolate;
  }
  body[data-page="transactions"] .data-table tr.transaction-swipe-host td:not(.transaction-swipe-action){
    position:relative;z-index:1;
    background:#F4F4F5!important;
    transform:translate3d(var(--transaction-swipe-x),0,0);
    transition:transform .22s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
  }
  body[data-page="transactions"] .data-table tr.transaction-swipe-host .transaction-swipe-action{
    display:none!important;position:absolute!important;right:0;top:0;bottom:0;width:88px;
    padding:0!important;z-index:0;background:#FF3B30!important;
  }
  body[data-page="transactions"] .data-table tr.transaction-swipe-host.transaction-swiping .transaction-swipe-action,
  body[data-page="transactions"] .data-table tr.transaction-swipe-host.transaction-swipe-open .transaction-swipe-action{
    display:block!important;
  }
  body[data-page="transactions"] .transaction-swipe-action .transaction-swipe-delete{
    inset:0;width:100%;height:100%;
  }
}


/* QA v3: dedicated mobile swipe card for transaction list.
   Avoids translating individual table cells, which breaks the card layout in iOS webviews. */
.transaction-mobile-row{display:none}
@media(max-width:600px){
  body[data-page="transactions"] .transaction-desktop-row{display:none!important}
  body[data-page="transactions"] .transaction-mobile-row{
    display:block!important;
    width:100%;
    background:transparent!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    overflow:visible!important;
    position:static!important;
  }
  body[data-page="transactions"] .transaction-mobile-row>.transaction-mobile-cell{
    display:block!important;
    width:100%;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    border-radius:0!important;
    transform:none!important;
    position:static!important;
  }
  body[data-page="transactions"] .transaction-mobile-swipe-shell{
    position:relative;
    overflow:hidden;
    border-radius:18px;
    min-height:156px;
    background:#FF3B30;
    touch-action:pan-y;
  }
  body[data-page="transactions"] .transaction-mobile-swipe-shell>.transaction-swipe-delete{
    display:grid!important;
    place-items:center;
    position:absolute;
    z-index:0;
    top:0;right:0;bottom:0;
    width:88px;
    border:0;
    border-radius:0 18px 18px 0;
    background:#FF3B30;
    color:#fff;
    font:inherit;
    font-size:14px;
    font-weight:750;
  }
  body[data-page="transactions"] .transaction-mobile-card{
    position:relative;
    z-index:1;
    box-sizing:border-box;
    min-height:156px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto auto;
    gap:8px 14px;
    padding:18px 16px;
    border-radius:18px;
    background:#F4F4F5;
    transform:translate3d(var(--transaction-swipe-x),0,0);
    transition:transform .22s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
  }
  body[data-page="transactions"] .transaction-mobile-merchant{
    grid-column:1;
    grid-row:1;
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
  }
  body[data-page="transactions"] .transaction-mobile-merchant .transaction-open{
    min-width:0;
    max-width:100%;
    border:0;
    padding:0;
    background:transparent;
    color:#171717;
    font:inherit;
    font-size:15px;
    font-weight:750;
    line-height:1.25;
    text-align:left;
    overflow-wrap:anywhere;
  }
  body[data-page="transactions"] .transaction-mobile-amount{
    grid-column:2;
    grid-row:1;
    align-self:center;
    white-space:nowrap;
    font-size:16px;
    font-weight:750;
  }
  body[data-page="transactions"] .transaction-mobile-date{
    grid-column:1;
    grid-row:2/4;
    align-self:end;
    color:#777772;
    font-size:13px;
    line-height:1.35;
  }
  body[data-page="transactions"] .transaction-mobile-date .tx-meta{margin-top:4px}
  body[data-page="transactions"] .transaction-mobile-status{
    grid-column:2;
    grid-row:2;
    justify-self:end;
    align-self:end;
  }
  body[data-page="transactions"] .transaction-mobile-edit{
    grid-column:2;
    grid-row:3;
    justify-self:end;
    align-self:end;
    min-width:72px;
    min-height:44px!important;
    border-radius:13px!important;
  }

  /* Neutralize the older table-cell swipe experiment for the dedicated mobile row. */
  body[data-page="transactions"] .data-table tr.transaction-mobile-row td:not(.transaction-swipe-action){
    transform:none!important;
    transition:none!important;
    background:transparent!important;
  }
  body[data-page="transactions"] .data-table tr.transaction-mobile-row .transaction-swipe-action{
    display:none!important;
  }
  body[data-page="transactions"] .transaction-mobile-row.transaction-swiping .transaction-mobile-card,
  body[data-page="transactions"] .transaction-mobile-row.transaction-swipe-open .transaction-mobile-card{
    transform:translate3d(var(--transaction-swipe-x),0,0);
  }
}


/* QA v4: dedicated non-table mobile transaction list for iOS swipe actions. */
.transaction-mobile-list{display:none}
@media(max-width:600px){
  body[data-page="transactions"] .table-wrap{display:none!important}
  body[data-page="transactions"] .transaction-mobile-list{
    display:grid;
    gap:10px;
    padding:0;
  }
  body[data-page="transactions"] .transaction-mobile-item{
    --transaction-swipe-x:0px;
    position:relative;
    min-width:0;
    overflow:hidden;
    border-radius:18px;
    touch-action:pan-y;
  }
  body[data-page="transactions"] .transaction-mobile-swipe-shell{
    position:relative;
    min-width:0;
    overflow:hidden;
    border-radius:18px;
    background:#FF3B30;
  }
  body[data-page="transactions"] .transaction-mobile-swipe-shell>.transaction-swipe-delete{
    display:grid!important;
    place-items:center;
    position:absolute;
    z-index:0;
    top:0;right:0;bottom:0;
    width:88px;
    border:0;
    border-radius:0 18px 18px 0;
    background:#FF3B30;
    color:#fff;
    font:inherit;
    font-size:14px;
    font-weight:750;
  }
  body[data-page="transactions"] .transaction-mobile-card{
    position:relative;
    z-index:1;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    min-height:156px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-rows:auto auto auto;
    gap:8px 14px;
    padding:18px 16px;
    border-radius:18px;
    background:#F4F4F5;
    transform:translate3d(var(--transaction-swipe-x),0,0)!important;
    transition:transform .22s cubic-bezier(.22,.61,.36,1);
    will-change:transform;
  }
  body[data-page="transactions"] .transaction-mobile-merchant{
    grid-column:1;grid-row:1;
    min-width:0;
    display:flex;
    align-items:center;
    gap:10px;
  }
  body[data-page="transactions"] .transaction-mobile-merchant .ft-merchant-badge{flex:none}
  body[data-page="transactions"] .transaction-mobile-merchant .transaction-open{
    min-width:0;
    max-width:100%;
    border:0;
    padding:0;
    background:transparent;
    color:#171717;
    font:inherit;
    font-size:15px;
    font-weight:750;
    line-height:1.25;
    text-align:left;
    overflow-wrap:anywhere;
  }
  body[data-page="transactions"] .transaction-mobile-amount{
    grid-column:2;grid-row:1;
    align-self:center;
    white-space:nowrap;
    font-size:16px;
    font-weight:750;
  }
  body[data-page="transactions"] .transaction-mobile-date{
    grid-column:1;grid-row:2/4;
    align-self:end;
    color:#777772;
    font-size:13px;
    line-height:1.35;
  }
  body[data-page="transactions"] .transaction-mobile-date .tx-meta{margin-top:4px}
  body[data-page="transactions"] .transaction-mobile-status{
    grid-column:2;grid-row:2;
    justify-self:end;
    align-self:end;
  }
  body[data-page="transactions"] .transaction-mobile-edit{
    grid-column:2;grid-row:3;
    justify-self:end;
    align-self:end;
    min-width:72px;
    min-height:44px!important;
    border-radius:13px!important;
  }
}


/* QA v5: mobile transaction editor containment + unified sticky actions. */
.transaction-edit-dialog,
.transaction-edit-form,
.transaction-edit-fields,
.transaction-edit-field,
.transaction-edit-field input,
.transaction-edit-field select,
.transaction-edit-field textarea{
  box-sizing:border-box;
}
.transaction-edit-dialog{
  overflow-x:hidden;
  overscroll-behavior-x:none;
}
.transaction-edit-form{
  width:100%;
  max-width:100%;
  min-width:0;
}
.transaction-edit-fields{
  width:100%;
  max-width:100%;
  min-width:0;
}
.transaction-edit-field,
.transaction-edit-wide{
  width:100%;
  max-width:100%;
  min-width:0;
}
.transaction-edit-field input,
.transaction-edit-field select,
.transaction-edit-field textarea{
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;
}
.transaction-edit-footer{
  margin-top:18px;
}
.transaction-edit-footer .dialog-actions{
  margin-top:10px;
}

@media(max-width:600px){
  .transaction-edit-dialog{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    max-height:92dvh;
    margin:auto 0 0!important;
    left:0!important;
    right:0!important;
    border-left:0;
    border-right:0;
    border-radius:20px 20px 0 0;
    overflow-x:hidden!important;
    overflow-y:auto;
    overscroll-behavior-x:none;
  }
  .transaction-edit-form{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:18px!important;
  }
  .transaction-edit-form .dialog-head,
  .transaction-edit-fields,
  .transaction-edit-field,
  .transaction-edit-field input,
  .transaction-edit-field select,
  .transaction-edit-field textarea,
  .transaction-edit-footer{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .transaction-edit-fields{
    grid-template-columns:minmax(0,1fr)!important;
    gap:12px!important;
  }
  .transaction-edit-field input,
  .transaction-edit-field select,
  .transaction-edit-field textarea{
    box-sizing:border-box!important;
  }
  .transaction-edit-footer{
    position:sticky;
    z-index:4;
    bottom:0;
    width:auto!important;
    max-width:none!important;
    margin:18px -18px -18px;
    padding:10px 18px calc(12px + env(safe-area-inset-bottom));
    background:var(--app-card);
    border-top:1px solid var(--app-line);
    box-shadow:0 -10px 24px rgba(255,255,255,.94);
  }
  .transaction-edit-footer .transaction-delete-zone{
    margin:0;
    padding:0;
    border:0;
  }
  .transaction-edit-footer .transaction-delete-action{
    min-height:44px;
  }
  .transaction-edit-footer .dialog-actions{
    position:static!important;
    bottom:auto!important;
    margin:8px 0 0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    display:grid!important;
    grid-template-columns:minmax(0,.72fr) minmax(0,1.65fr);
    gap:8px;
  }
  .transaction-edit-footer .dialog-actions>button{
    width:100%;
    min-width:0;
    min-height:46px;
    box-sizing:border-box;
    white-space:nowrap;
  }
}

/* Prevent accidental page-level horizontal panning while the editor is open. */
html:has(.transaction-edit-dialog[open]),
body:has(.transaction-edit-dialog[open]){
  overflow-x:hidden!important;
  max-width:100%!important;
}

/* QA v6: iOS Safari centers native date/time values by default.
   Keep native controls, but align values consistently with the other editor fields. */
.transaction-edit-field input[type="date"],
.transaction-edit-field input[type="time"]{
  text-align:left!important;
  text-align-last:left!important;
}
.transaction-edit-field input[type="date"]::-webkit-date-and-time-value,
.transaction-edit-field input[type="time"]::-webkit-date-and-time-value{
  text-align:left!important;
  width:100%;
}
.transaction-edit-field input[type="date"]::-webkit-datetime-edit,
.transaction-edit-field input[type="time"]::-webkit-datetime-edit{
  text-align:left!important;
  width:100%;
}

/* QA v7: WebKit native date/time controls can size 100% against the outer form
   instead of their field track. Fill the available field width, not the viewport. */
@supports (-webkit-touch-callout:none){
  .transaction-edit-field input[type="date"],
  .transaction-edit-field input[type="time"]{
    width:-webkit-fill-available!important;
    inline-size:-webkit-fill-available!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}

/* QA v8: native-style transaction edit sheet polish. */
.transaction-sheet-grabber{display:none}
.transaction-edit-scroll{min-width:0}
.transaction-edit-dialog .transaction-edit-field input:focus,
.transaction-edit-dialog .transaction-edit-field select:focus,
.transaction-edit-dialog .transaction-edit-field textarea:focus,
.transaction-edit-dialog .transaction-edit-field input:focus-visible,
.transaction-edit-dialog .transaction-edit-field select:focus-visible,
.transaction-edit-dialog .transaction-edit-field textarea:focus-visible{
  border:1px solid #C9C9C4!important;
  outline:2px solid rgba(23,23,23,.14)!important;
  outline-offset:2px!important;
  box-shadow:none!important;
}
.transaction-edit-dialog .transaction-delete-action{
  background:#FFF6F5;
  color:#B83B35;
  min-height:40px;
  font-size:13px;
  font-weight:700;
}
.transaction-edit-dialog .transaction-delete-action:hover{background:#FFF0EF}

@media(max-width:600px){
  .transaction-edit-dialog{
    height:min(92dvh,calc(var(--transaction-editor-vvh,100dvh) - 8px))!important;
    max-height:min(92dvh,calc(var(--transaction-editor-vvh,100dvh) - 8px))!important;
    overflow:hidden!important;
  }
  .transaction-edit-form{
    height:100%;
    min-height:0;
    padding:0!important;
    display:grid;
    grid-template-rows:auto auto minmax(0,1fr) auto;
    overflow:hidden;
  }
  .transaction-sheet-grabber{
    display:block;
    width:38px;
    height:5px;
    border-radius:999px;
    margin:8px auto 4px;
    background:#D7D7D3;
  }
  .transaction-edit-head{
    padding:12px 18px 10px;
    align-items:flex-start;
    background:var(--app-card);
  }
  .transaction-edit-head .page-sub{margin-bottom:0}
  .transaction-edit-scroll{
    min-height:0;
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:0 18px calc(128px + env(safe-area-inset-bottom));
    scroll-padding-top:18px;
    scroll-padding-bottom:calc(170px + env(safe-area-inset-bottom));
  }
  .transaction-edit-fields{
    margin-top:12px!important;
  }
  .transaction-edit-footer{
    position:relative!important;
    z-index:5;
    bottom:auto!important;
    width:auto!important;
    max-width:none!important;
    margin:0!important;
    padding:10px 18px calc(12px + env(safe-area-inset-bottom))!important;
    background:var(--app-card);
    border-top:1px solid var(--app-line);
    box-shadow:0 -8px 22px rgba(255,255,255,.94);
  }
  .transaction-edit-footer .transaction-delete-action{
    min-height:40px!important;
  }
  .transaction-edit-footer .dialog-actions{
    margin-top:8px!important;
  }
  .transaction-edit-footer .dialog-actions>button{
    min-height:48px;
  }
}


/* Production 2026-10-02: homepage summary + transaction hierarchy only. */
.home-page .home-metric-title{
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.home-page .home-metric-direction{
  color:#70706C;
  font-size:13px;
  line-height:1;
  font-weight:750;
}
.home-page .home-metric-caption{
  color:#656560;
  font-weight:600;
}

.home-page .home-transaction-tools{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin:0 0 14px;
}
.home-page .home-search-control{
  min-width:0;
  min-height:44px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:0 12px;
  border-radius:14px;
  background:#F4F4F5;
  color:#777772;
}
.home-page .home-search-control svg,
.home-page .home-filter-button svg{
  width:18px;
  height:18px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-page .home-search-control input{
  min-width:0;
  width:100%;
  height:42px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#171717;
  font:inherit;
  font-size:13px;
  font-weight:560;
}
.home-page .home-search-control input::placeholder{color:#8B8B86}
.home-page .home-search-control:focus-within{
  outline:2px solid rgba(23,23,23,.13);
  outline-offset:1px;
}
.home-page .home-filter-button{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 13px;
  border-radius:14px;
  background:#F4F4F5;
  color:#454548;
  text-decoration:none;
  font-size:12.5px;
  font-weight:650;
}
.home-page .home-filter-button:hover{background:#ECECEE}

.home-page .home-transaction-list{
  display:grid;
  gap:20px;
}
.home-page .home-transaction-group{min-width:0}
.home-page .home-transaction-group-title{
  margin:0 0 7px 2px;
  color:#6D6D68;
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.01em;
}
.home-page .home-transaction-group-list{
  min-width:0;
  overflow:hidden;
  border:1px solid #ECECEC;
  border-radius:15px;
  background:#fff;
}
.home-page .home-transaction-item,
.home-page .home-transaction-item:last-child{
  display:block;
  min-height:0;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.home-page .home-transaction-item:not(:last-child){
  border-bottom:1px solid #EEEEEF!important;
}
.home-page .home-transaction-item:hover{background:transparent!important}
.home-page .home-transaction-item .transaction-swipe-content{
  width:100%;
  min-width:0;
  min-height:66px;
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:8px;
  padding:10px 11px;
  background:#fff;
}
.home-page .home-transaction-link{
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
}
.home-page .home-latest-copy{gap:3px}
.home-page .home-latest-copy strong{
  font-size:15px;
  line-height:1.25;
  font-weight:720;
}
.home-page .home-latest-copy span{
  color:#7D7D78;
  font-size:11px;
  line-height:1.35;
}
.home-page .home-latest-amount{gap:2px}
.home-page .home-latest-amount strong{
  font-size:15px;
  line-height:1.2;
  font-weight:720;
}
.home-page .home-latest-amount span{
  color:#8A8A85;
  font-size:10.5px;
}
.home-page .home-edit-icon,
.home-page .home-transaction-item .home-edit-icon{
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  display:grid;
  place-items:center;
  padding:0;
  border:0!important;
  border-radius:10px;
  background:transparent!important;
  color:#777772;
}
.home-page .home-edit-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.home-page .home-edit-icon:hover{background:#F2F2F3!important;color:#171717}

@media(max-width:600px){
  .home-page-v2 .home-latest{margin-top:26px}
  .home-page .home-transaction-tools{margin-bottom:12px}
  .home-page .home-filter-button span{display:none}
  .home-page .home-filter-button{
    width:44px;
    padding:0;
  }
  .home-page .home-transaction-list{gap:18px}
  .home-page .home-transaction-group-title{
    margin-bottom:6px;
    font-size:11.5px;
  }
  .home-page .home-transaction-item.transaction-swipe-host{
    background:#FF3B30!important;
  }
  .home-page .home-transaction-item .transaction-swipe-content{
    min-height:66px;
    padding:10px 11px;
    background:#fff!important;
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px;
  }
  .home-page .home-transaction-link{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:10px!important;
  }
  .home-page .home-transaction-link .home-latest-amount{
    justify-items:end!important;
    text-align:right!important;
  }
  .home-page .home-transaction-item .transaction-swipe-content .home-edit-icon{
    grid-column:2;
    grid-row:1;
  }
  .home-page .ft-merchant-row-copy{gap:9px}
  .home-page .home-latest-copy strong{font-size:14px}
  .home-page .home-latest-amount strong{font-size:14px}
}

/* Production: homepage filters stay inline instead of navigating away. */
.home-page .home-filter-button{border:0;cursor:pointer;position:relative}
.home-page .home-filter-button.is-active{background:#EDEDEE;color:#171717}
.home-page .home-filter-count{min-width:17px;height:17px;display:inline-grid;place-items:center;padding:0 4px;border-radius:999px;background:#171717;color:#fff;font-size:9px;font-weight:750;line-height:1}
.home-page .home-filter-panel{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:8px;align-items:end;margin:-4px 0 14px;padding:11px;border:1px solid #ECECEC;border-radius:14px;background:#FAFAFA}
.home-page .home-filter-panel[hidden]{display:none!important}
.home-page .home-filter-panel label{min-width:0;display:grid;gap:5px;color:#73736F;font-size:10.5px;font-weight:650}
.home-page .home-filter-panel select{width:100%;min-width:0;height:38px;padding:0 30px 0 10px;border:1px solid #E1E1E1;border-radius:10px;background:#fff;color:#28282A;font:inherit;font-size:11.5px;font-weight:560}
.home-page .home-filter-reset{height:38px;padding:0 11px;border:0;border-radius:10px;background:#EFEFF0;color:#5B5B58;font:inherit;font-size:11px;font-weight:650;cursor:pointer;white-space:nowrap}
@media(max-width:720px){
  .home-page .home-filter-panel{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 8px;padding:10px}
  .home-page .home-filter-reset{grid-column:1/-1;width:100%}
}
@media(max-width:600px){
  .home-page .home-filter-button .home-filter-count{position:absolute;top:4px;right:4px;min-width:14px;height:14px;padding:0 3px;font-size:8px}
  .home-page .home-filter-panel{margin-top:-3px;margin-bottom:12px}
}


/* Transaction ledger production — 2026-10-02. Scoped; homepage untouched. */
.transaction-page-v2{
  --tx-bg:#F5F5F3;--tx-card:#FFFFFF;--tx-ink:#171717;--tx-muted:#74746F;--tx-line:#E5E5E1;
  min-height:100dvh;background:var(--tx-bg)!important;color:var(--tx-ink)!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.transaction-page-v2 .transaction-shell{width:min(560px,calc(100% - 40px));margin-left:auto;margin-right:auto}
.transaction-page-v2 .transaction-header{padding-top:14px}
.transaction-page-v2 .transaction-header-inner{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.transaction-page-v2 .transaction-brand{display:inline-flex;align-items:center;text-decoration:none}
.transaction-page-v2 .transaction-brand .brand-wordmark{width:96px;height:auto;display:block}
.transaction-page-v2 .transaction-avatar{
  width:38px;height:38px;flex:0 0 38px;border:1px solid var(--tx-line);border-radius:50%;
  background:#fff;color:var(--tx-ink);box-shadow:none;font:inherit;font-size:12px;font-weight:700;
}
.transaction-page-v2 .transaction-main{padding-top:28px;padding-bottom:64px}
.transaction-page-v2 .transaction-back{
  display:inline-flex;align-items:center;gap:5px;margin-bottom:18px;color:#686864;text-decoration:none;font-size:12px;font-weight:650;
}
.transaction-page-v2 .transaction-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:18px}
.transaction-page-v2 .transaction-page-head h1{margin:0;font-size:28px;line-height:1.05;letter-spacing:-.04em;font-weight:740}
.transaction-page-v2 .transaction-page-head p{margin:5px 0 0;color:var(--tx-muted);font-size:12px}
.transaction-page-v2 .transaction-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px;margin-bottom:10px}
.transaction-page-v2 .transaction-search{
  min-width:0;min-height:44px;display:flex;align-items:center;gap:9px;padding:0 12px;border-radius:14px;background:#ECECED;color:#777772;
}
.transaction-page-v2 .transaction-search svg,.transaction-page-v2 .transaction-filter-button svg{
  width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.transaction-page-v2 .transaction-search input{
  min-width:0;width:100%;height:42px;padding:0;border:0;outline:0;background:transparent;color:#171717;font:inherit;font-size:13px;font-weight:560;
}
.transaction-page-v2 .transaction-search input::placeholder{color:#8B8B86}
.transaction-page-v2 .transaction-search:focus-within{outline:2px solid rgba(23,23,23,.13);outline-offset:1px}
.transaction-page-v2 .transaction-filter-button{
  position:relative;width:44px;min-height:44px;padding:0;border:0;border-radius:14px;background:#ECECED;color:#4E4E4D;
  display:grid;place-items:center;cursor:pointer;
}
.transaction-page-v2 .transaction-filter-button.active{background:#DDDDE0;color:#171717}
.transaction-page-v2 .transaction-filter-count{
  position:absolute;right:3px;top:3px;min-width:15px;height:15px;display:grid;place-items:center;padding:0 3px;border-radius:999px;
  background:#171717;color:#fff;font-size:8px;font-weight:750;line-height:1;
}
.transaction-page-v2 .transaction-quick-filters{
  display:flex;gap:7px;overflow-x:auto;padding:0 0 14px;scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
.transaction-page-v2 .transaction-quick-filters::-webkit-scrollbar{display:none}
.transaction-page-v2 .transaction-chip{
  flex:none;height:31px;padding:0 11px;border:1px solid #DEDEDB;border-radius:999px;background:#fff;color:#62625F;
  font:inherit;font-size:11px;font-weight:650;cursor:pointer;
}
.transaction-page-v2 .transaction-chip.active{border-color:#171717;background:#171717;color:#fff}
.transaction-page-v2 .transaction-filter-panel{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:end;margin:-4px 0 15px;padding:11px;
  border:1px solid #E5E5E2;border-radius:15px;background:#FAFAFA;
}
.transaction-page-v2 .transaction-filter-panel[hidden]{display:none!important}
.transaction-page-v2 .transaction-filter-panel label{min-width:0;display:grid;gap:5px;color:#74746F;font-size:10px;font-weight:650}
.transaction-page-v2 .transaction-filter-panel select{
  width:100%;min-width:0;height:38px;padding:0 28px 0 9px;border:1px solid #E0E0DD;border-radius:10px;background:#fff;color:#28282A;
  font:inherit;font-size:11px;font-weight:560;
}
.transaction-page-v2 .transaction-filter-reset{
  height:38px;padding:0 11px;border:0;border-radius:10px;background:#ECECED;color:#555;font:inherit;font-size:11px;font-weight:650;cursor:pointer;white-space:nowrap;
}
.transaction-page-v2 .transaction-result-meta{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 1px 14px;color:#777772;font-size:11px;
}
.transaction-page-v2 .transaction-groups{display:grid;gap:18px}
.transaction-page-v2 .transaction-ledger-group{min-width:0}
.transaction-page-v2 .transaction-ledger-group>h2{
  margin:0 0 6px 2px;color:#6D6D68;font-size:11.5px;line-height:1.2;font-weight:700;letter-spacing:.01em;
}
.transaction-page-v2 .transaction-ledger-list{min-width:0;overflow:hidden;border:1px solid #E9E9E6;border-radius:15px;background:#fff}
.transaction-page-v2 .transaction-ledger-row{
  --transaction-swipe-x:0px;position:relative;overflow:hidden;min-height:68px;background:#FF3B30;touch-action:pan-y;
}
.transaction-page-v2 .transaction-ledger-row+.transaction-ledger-row{border-top:1px solid #EDEDEB}
.transaction-page-v2 .transaction-ledger-row>.transaction-swipe-delete{
  display:none;place-items:center;position:absolute;right:0;top:0;bottom:0;width:88px;border:0;background:#FF3B30;color:#fff;
  font:inherit;font-size:13px;font-weight:750;cursor:pointer;z-index:0;
}
.transaction-page-v2 .transaction-ledger-content{
  position:relative;z-index:1;min-width:0;min-height:68px;display:grid;grid-template-columns:minmax(0,1fr) auto 30px;align-items:center;gap:8px;
  padding:10px;background:#fff;transform:translate3d(var(--transaction-swipe-x),0,0);
  transition:transform .22s cubic-bezier(.22,.61,.36,1);will-change:transform;
}
.transaction-page-v2 .transaction-ledger-merchant{min-width:0;display:flex;align-items:center;gap:9px}
.transaction-page-v2 .ft-merchant-badge{
  width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;overflow:hidden;
  background:var(--merchant-bg,#E5E5E9);color:var(--merchant-fg,#53535D);
}
.transaction-page-v2 .ft-merchant-badge img{width:100%;height:100%;object-fit:contain}
.transaction-page-v2 .ft-merchant-badge svg{width:18px;height:18px}
.transaction-page-v2 .transaction-ledger-copy{min-width:0}
.transaction-page-v2 .transaction-ledger-copy>strong{
  display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#171717;font-size:12px;line-height:1.25;font-weight:720;
}
.transaction-page-v2 .transaction-ledger-meta{
  min-width:0;margin-top:3px;display:flex;align-items:center;gap:4px;overflow:hidden;color:#7D7D78;font-size:9.8px;line-height:1.2;white-space:nowrap;
}
.transaction-page-v2 .transaction-ledger-meta i{font-style:normal;color:#A0A09C}
.transaction-page-v2 .transaction-ledger-category{overflow:hidden;text-overflow:ellipsis}
.transaction-page-v2 .transaction-ledger-status.pending{color:#B07B22;font-weight:650}
.transaction-page-v2 .transaction-ledger-status.success{color:#3E8D63;font-weight:650}
.transaction-page-v2 .transaction-ledger-status.failed{color:#B84A43;font-weight:650}
.transaction-page-v2 .transaction-ledger-review{color:#A87522;font-weight:650}
.transaction-page-v2 .transaction-ledger-amount{min-width:0;text-align:right}
.transaction-page-v2 .transaction-ledger-amount strong{display:block;white-space:nowrap;color:#171717;font-size:12px;line-height:1.2;font-weight:730}
.transaction-page-v2 .transaction-ledger-amount.in strong{color:#2D9B62}
.transaction-page-v2 .transaction-ledger-amount span{display:block;margin-top:3px;color:#8A8A85;font-size:9.5px;white-space:nowrap}
.transaction-page-v2 .transaction-ledger-edit{
  width:30px;height:30px;padding:0;border:0;border-radius:9px;background:transparent;color:#777772;display:grid;place-items:center;cursor:pointer;
}
.transaction-page-v2 .transaction-ledger-edit:hover{background:#F1F1F1;color:#171717}
.transaction-page-v2 .transaction-ledger-edit svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.transaction-page-v2 .transaction-ledger-empty{
  padding:28px 18px;border:1px solid #E9E9E6;border-radius:15px;background:#fff;text-align:center;color:#777772;font-size:12px;
}
.transaction-page-v2 .transaction-ledger-empty strong{display:block;color:#171717;font-size:13px}
.transaction-page-v2 .transaction-ledger-empty span{display:block;margin-top:5px;line-height:1.45}
.transaction-page-v2 .transaction-footer{padding:0 0 30px;color:#90908B;font-size:10px}
.transaction-page-v2 .transaction-footer nav{display:flex;gap:13px;margin-top:8px}
.transaction-page-v2 .transaction-footer a{color:inherit;text-decoration:none}
.transaction-page-v2 .transaction-account-menu{border-color:#E5E5E1;background:#fff;color:#171717}
.transaction-page-v2 .transaction-account-menu a,.transaction-page-v2 .transaction-account-menu button{color:#171717}
.transaction-page-v2 .transaction-account-menu a:hover,.transaction-page-v2 .transaction-account-menu button:hover{background:#F1F1EF}
.transaction-page-v2 .app-dialog .dialog-content{background:#fff;color:#171717}
.transaction-page-v2 .app-dialog::backdrop{background:rgba(0,0,0,.28)}

@media(max-width:720px){
  .transaction-page-v2 .transaction-filter-panel{grid-template-columns:1fr 1fr;gap:9px}
  .transaction-page-v2 .transaction-filter-reset{grid-column:1/-1;width:100%}
}
@media(max-width:600px){
  .transaction-page-v2 .transaction-main{padding-top:24px;padding-bottom:54px}
  .transaction-page-v2 .transaction-page-head h1{font-size:27px}
  .transaction-page-v2 .transaction-ledger-row>.transaction-swipe-delete{display:grid}
  .transaction-page-v2 .transaction-ledger-content{grid-template-columns:minmax(0,1fr) auto 30px;gap:7px;padding:10px}
  .transaction-page-v2 .transaction-ledger-copy>strong{font-size:12px}
  .transaction-page-v2 .transaction-ledger-amount strong{font-size:12px}
}
@media(max-width:370px){
  .transaction-page-v2 .transaction-shell{width:calc(100% - 28px)}
  .transaction-page-v2 .transaction-ledger-content{padding:9px 8px;gap:6px}
  .transaction-page-v2 .ft-merchant-badge{width:32px;height:32px;flex-basis:32px}
  .transaction-page-v2 .transaction-ledger-amount strong{font-size:11px}
}
@media(prefers-reduced-motion:reduce){
  .transaction-page-v2 .transaction-ledger-content{transition:none!important}
}

/* Settings hub production — clearer hierarchy, live configuration health, denser scan. */
.settings-hub-page .app-main{padding-top:22px}
.settings-hub-page .settings-hub-head{
  margin-bottom:20px;
}
.settings-hub-page .settings-summary-link{
  width:max-content;
  margin-bottom:10px;
  gap:5px;
  color:#73736F;
  font-size:12px;
}
.settings-hub-page .settings-summary-link .settings-back-icon{
  width:15px;height:15px;display:grid;place-items:center;
}
.settings-hub-page .settings-summary-link svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.settings-hub-page .page-title{font-size:32px;line-height:1.05}
.settings-hub-page .settings-menu-section{margin-top:22px}
.settings-hub-page .settings-menu-label{margin-bottom:7px}
.settings-hub-page .settings-menu-group{border-radius:22px}
.settings-hub-page .settings-menu-row{
  min-height:56px;
  gap:11px;
  padding:8px 12px;
}
.settings-hub-page .settings-menu-icon{
  width:32px;height:32px;flex-basis:32px;border-radius:10px;
}
.settings-hub-page .settings-menu-icon svg{width:18px;height:18px}
.settings-hub-page .settings-menu-row+.settings-menu-row::before{left:54px;right:12px}
.settings-hub-page .settings-menu-copy strong{font-size:14px}
.settings-hub-page .settings-menu-copy span{font-size:11.5px}
.settings-hub-page [data-profile-summary]{white-space:normal;line-height:1.35}
.settings-hub-page .settings-menu-chevron{color:#858580;font-size:21px;font-weight:500}
.settings-hub-page .settings-meta-success{color:#4D765B!important}
.settings-hub-page .settings-meta-attention{color:#9A6B2D!important}

@media(max-width:600px){
  .settings-hub-page .app-main{width:calc(100% - 32px);padding-top:8px}
  .settings-hub-page .settings-hub-head{margin-bottom:18px}
  .settings-hub-page .page-title{font-size:30px}
  .settings-hub-page .settings-menu-section{margin-top:19px}
  .settings-hub-page .settings-menu-group{border-radius:20px}
  .settings-hub-page .settings-menu-row{min-height:55px;padding:8px 11px}
  .settings-hub-page .settings-menu-row+.settings-menu-row::before{left:53px;right:11px}
}


/* Help + unified feedback production — 2026-10-03 */
.help-page .app-main.help-main{
  width:min(680px,calc(100% - 48px));margin-inline:auto;padding-top:22px;
}
.help-head{margin-bottom:20px}
.help-head .settings-summary-link{margin-bottom:10px}
.help-head h1{margin:0;font-size:32px;line-height:1.05;letter-spacing:-.035em}
.help-head p{margin:9px 0 0;color:#777772;font-size:13px;line-height:1.55}
.help-topics{display:grid;gap:10px}
.help-topic{overflow:hidden;border-radius:20px;background:#F4F4F5}
.help-topic summary{
  min-height:74px;display:flex;align-items:center;gap:14px;padding:14px 16px;
  cursor:pointer;list-style:none;user-select:none;
}
.help-topic summary::-webkit-details-marker{display:none}
.help-topic-copy{min-width:0;flex:1;display:grid;gap:4px}
.help-topic-copy strong{font-size:14.5px;line-height:1.25}
.help-topic-copy span{color:#7E7E79;font-size:11.5px;line-height:1.45}
.help-topic-action{flex:none;color:#666661;font-size:11px;font-weight:650}
.help-topic[open] .help-topic-action{font-size:0}
.help-topic[open] .help-topic-action::after{content:"Tutup";font-size:11px}
.help-topic-detail{padding:0 16px 16px;border-top:1px solid #E5E5E7}
.help-topic-detail p{margin:13px 0 0;color:#5F5F5B;font-size:12.5px;line-height:1.6}
.help-inline-link{display:inline-flex;margin-top:10px;color:#2F2F2D;text-decoration:none;font-size:12px;font-weight:650}
.help-escalation{
  margin-top:18px;padding:16px;border-radius:20px;background:#171717;color:#fff;
  display:flex;align-items:center;gap:16px;
}
.help-escalation>div{min-width:0;flex:1;display:grid;gap:4px}
.help-escalation strong{font-size:14px}
.help-escalation span{color:#B9B9B5;font-size:11.5px;line-height:1.45}
.help-feedback-button{
  flex:none;min-height:40px;padding:0 13px;border:0;border-radius:12px;background:#fff;color:#171717;
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;
}

.feedback-dialog{
  width:min(470px,calc(100vw - 28px));padding:0;border:0;border-radius:26px;background:transparent;
  box-shadow:none;overflow:visible;
}
.feedback-dialog::backdrop{background:rgba(17,17,17,.30);backdrop-filter:blur(3px)}
.feedback-sheet{overflow:hidden;border-radius:26px;background:#fff;padding:20px}
.feedback-grabber{display:none}
.feedback-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.feedback-head>div{min-width:0;flex:1}
.feedback-head h2{margin:0;font-size:22px;line-height:1.1;letter-spacing:-.035em}
.feedback-head p{margin:6px 0 0;color:#777772;font-size:12px;line-height:1.5}
.feedback-cancel{
  min-height:36px;padding:0 6px;border:0;background:transparent;color:#6E6E69;font:inherit;font-size:12px;font-weight:650;cursor:pointer
}
.feedback-form{display:grid;gap:18px}
.feedback-rating-block{display:grid;gap:8px}
.feedback-field-label,.feedback-comment-label>span{color:#333;font-size:12.5px;font-weight:650}
.feedback-comment-label>span{display:block;margin-bottom:8px}
.feedback-comment-label em{color:#888883;font-style:normal;font-weight:500}
.feedback-star-row{display:flex;gap:3px}
.feedback-star{
  width:46px;height:46px;display:grid;place-items:center;padding:0;border:0;border-radius:12px;
  background:transparent;color:#C4C4C0;cursor:pointer;
}
.feedback-star svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round}
.feedback-star.active{color:#E7AE35}
.feedback-star.active svg{fill:currentColor}
.feedback-star:focus-visible{outline:2px solid #454545;outline-offset:1px}
.feedback-rating-text{min-height:18px;margin:0;color:#777772;font-size:11.5px}
.feedback-textarea{
  box-sizing:border-box;width:100%;min-height:112px;padding:12px;border:1px solid #E2E2E0;border-radius:14px;
  background:#fff;color:#171717;font:inherit;font-size:13px;line-height:1.5;resize:vertical;
}
.feedback-textarea:focus{outline:2px solid rgba(23,23,23,.12);outline-offset:1px;border-color:#CFCFCD}
.feedback-status{min-height:18px;margin:-7px 0 0;color:#A33E3E;font-size:11.5px}
.feedback-submit{
  min-height:50px;width:100%;border:0;border-radius:14px;background:#171717;color:#fff;
  font:inherit;font-size:14px;font-weight:700;cursor:pointer;
}
.feedback-submit:disabled{background:#D7D7D7;color:#999;cursor:default}
.feedback-success{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.feedback-success[hidden]{display:none!important}
.feedback-success-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:50%;background:#EDF6EF;color:#4D765B}
.feedback-success-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.feedback-success h2{margin:16px 0 6px;font-size:22px}
.feedback-success p{margin:0 0 22px;color:#777772;font-size:12.5px}
.feedback-success .feedback-submit{max-width:260px}

@media(max-width:600px){
  .help-page .app-main.help-main{width:calc(100% - 32px);padding-top:8px}
  .help-head{margin-bottom:18px}
  .help-head h1{font-size:30px}
  .help-topic{border-radius:18px}
  .help-topic summary{min-height:70px;padding:13px 14px;gap:10px}
  .help-topic-detail{padding:0 14px 14px}
  .help-escalation{align-items:flex-start;flex-direction:column;border-radius:18px}
  .help-feedback-button{width:100%}

  .feedback-dialog{
    position:fixed;inset:auto 0 0 0;width:100%;max-width:none;margin:0;border-radius:28px 28px 0 0;
  }
  .feedback-sheet{
    border-radius:28px 28px 0 0;padding:10px 18px calc(18px + env(safe-area-inset-bottom));
    max-height:min(82dvh,720px);overflow:auto;overscroll-behavior:contain;
  }
  .feedback-grabber{display:block;width:42px;height:5px;margin:0 auto 14px;border-radius:999px;background:#D9D9D6}
  .feedback-head{margin-bottom:18px}
  .feedback-head h2{font-size:21px}
  .feedback-star-row{justify-content:space-between}
  .feedback-star{width:48px;height:48px}
  .feedback-textarea{min-height:104px}
}

.help-head .settings-summary-link{display:inline-flex;align-items:center;gap:5px;color:#73736F;font-size:12px;font-weight:600;text-decoration:none}
.help-head .settings-summary-link .settings-back-icon{width:15px;height:15px;display:grid;place-items:center}
.help-head .settings-summary-link svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* Pusat Bantuan Indonesia v3 — 2026-10-03 */
.help-page-v3 .help-head{margin-bottom:18px}
.help-page-v3 .help-head p{max-width:520px}
.help-page-v3 .help-problem-list{gap:8px}
.help-page-v3 .help-problem{
  border:1px solid #E8E8E5;
  border-radius:18px;
  background:#fff;
}
.help-page-v3 .help-problem summary{
  box-sizing:border-box;
  min-height:72px;
  padding:10px 13px;
  gap:11px;
}
.help-page-v3 .help-topic-icon{
  width:34px;
  height:34px;
  flex:0 0 34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#F4F4F3;
  color:#555550;
}
.help-page-v3 .help-topic-icon svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.help-page-v3 .help-topic-copy{gap:3px}
.help-page-v3 .help-topic-copy strong{
  color:#1D1D1B;
  font-size:14px;
  font-weight:650;
  letter-spacing:-.012em;
}
.help-page-v3 .help-topic-copy span{
  color:#7A7A75;
  font-size:11.25px;
  line-height:1.4;
}
.help-page-v3 .help-topic-chevron{
  flex:0 0 auto;
  color:#94948F;
  font-size:24px;
  line-height:1;
  transform-origin:center;
  transition:transform .18s ease;
}
.help-page-v3 .help-problem[open] .help-topic-chevron{transform:rotate(90deg)}
.help-page-v3 .help-problem[open] summary{background:#FAFAF9}
.help-page-v3 .help-topic-detail{
  padding:0 13px 13px 58px;
  border-top:1px solid #EEEEEB;
}
.help-page-v3 .help-topic-detail p{
  margin:11px 0 0;
  color:#60605C;
  font-size:12px;
  line-height:1.58;
}
.help-page-v3 .help-inline-link{
  margin-top:9px;
  color:#2D2D2A;
  font-size:11.5px;
  font-weight:650;
}
.help-page-v3 .help-support{
  margin-top:24px;
  padding-top:22px;
  border-top:1px solid #E5E5E2;
}
.help-page-v3 .help-support-copy h2{
  margin:0;
  color:#1D1D1B;
  font-size:17px;
  line-height:1.2;
  letter-spacing:-.02em;
}
.help-page-v3 .help-support-copy p{
  margin:6px 0 0;
  color:#777772;
  font-size:12px;
  line-height:1.5;
}
.help-page-v3 .help-whatsapp-button{
  box-sizing:border-box;
  width:100%;
  min-height:50px;
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 16px;
  border:1px solid #E0E0DD;
  border-radius:15px;
  background:#fff;
  color:#1C1C1A;
  text-decoration:none;
  font-size:13.5px;
  font-weight:700;
  transition:background-color .15s ease,transform .15s ease,border-color .15s ease;
}
.help-page-v3 .help-whatsapp-button:hover{
  background:#F8F8F6;
  border-color:#D7D7D3;
}
.help-page-v3 .help-whatsapp-button:active{transform:scale(.99)}
.help-page-v3 .help-whatsapp-icon{
  width:21px;
  height:21px;
  fill:#25D366;
  flex:0 0 21px;
}
.help-page-v3 .help-support-note{
  margin:8px 0 0;
  color:#969690;
  font-size:10.5px;
  text-align:center;
}
@media(max-width:600px){
  .help-page-v3 .help-head{margin-bottom:16px}
  .help-page-v3 .help-problem{border-radius:16px}
  .help-page-v3 .help-problem summary{
    min-height:70px;
    padding:9px 11px;
    gap:10px;
  }
  .help-page-v3 .help-topic-icon{
    width:32px;height:32px;flex-basis:32px;border-radius:10px;
  }
  .help-page-v3 .help-topic-icon svg{width:18px;height:18px}
  .help-page-v3 .help-topic-copy strong{font-size:13.5px}
  .help-page-v3 .help-topic-copy span{font-size:11px}
  .help-page-v3 .help-topic-detail{padding:0 11px 12px 53px}
  .help-page-v3 .help-support{margin-top:22px;padding-top:20px}
}
@media(prefers-reduced-motion:reduce){
  .help-page-v3 .help-topic-chevron,
  .help-page-v3 .help-whatsapp-button{transition:none}
}

/* Contact support alignment — 2026-10-03 */
.contact-page-v2 .contact-main{
  width:min(680px,calc(100% - 48px));
  margin-inline:auto;
  padding-top:22px;
}
.contact-back-link{
  display:inline-flex!important;
  align-items:center;
  gap:5px;
  margin-bottom:14px!important;
}
.contact-back-link .settings-back-icon{
  width:15px;height:15px;display:grid;place-items:center;
}
.contact-back-link svg{
  width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.contact-head h1{
  margin:0;
  font-size:32px;
  line-height:1.05;
  letter-spacing:-.035em;
}
.contact-head p{
  margin:9px 0 0;
  max-width:520px;
  color:#777772;
  font-size:13px;
  line-height:1.55;
}
.contact-support{
  margin-top:22px;
  padding:18px;
  border:1px solid #E8E8E5;
  border-radius:18px;
  background:#fff;
}
.contact-support h2,
.contact-feedback h2{
  margin:0;
  color:#1D1D1B;
  font-size:16px;
  line-height:1.25;
  letter-spacing:-.02em;
}
.contact-support>p,
.contact-feedback p{
  margin:6px 0 0;
  color:#777772;
  font-size:12px;
  line-height:1.5;
}
.contact-whatsapp-button{
  box-sizing:border-box;
  width:100%;
  min-height:50px;
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border:1px solid #E0E0DD;
  border-radius:15px;
  background:#fff;
  color:#1C1C1A;
  text-decoration:none;
  font-size:13.5px;
  font-weight:700;
}
.contact-whatsapp-icon{width:21px;height:21px;fill:#25D366;flex:0 0 21px}
.contact-support .contact-note{
  margin-top:8px;
  color:#969690;
  font-size:10.5px;
  text-align:center;
}
.contact-feedback{
  margin-top:18px;
  padding:16px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  border-top:1px solid #E5E5E2;
  border-bottom:1px solid #E5E5E2;
}
.contact-feedback>div{min-width:0;flex:1}
.contact-feedback-button{
  flex:none;
  min-height:42px;
  padding:0 13px;
  border:1px solid #DDDDDA;
  border-radius:12px;
  background:#fff;
  color:#1D1D1B;
  font:inherit;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
}
.contact-delete-note{
  margin:14px 0 0;
  color:#85857F;
  font-size:11px;
  line-height:1.55;
}
@media(max-width:600px){
  .contact-page-v2 .contact-main{width:calc(100% - 32px);padding-top:8px}
  .contact-head h1{font-size:30px}
  .contact-support{padding:16px;border-radius:16px}
  .contact-feedback{align-items:flex-start;flex-direction:column}
  .contact-feedback-button{width:100%}
}


/* Feedback motion + interaction polish — 2026-10-03 */
.feedback-dialog{
  --feedback-drag:0;
}
.feedback-dialog::backdrop{
  background:rgba(17,17,17,.30);
  opacity:0;
  transition:opacity 180ms ease;
}
.feedback-dialog.is-open::backdrop{
  opacity:calc(1 - var(--feedback-drag));
}
.feedback-dialog.is-closing::backdrop{
  opacity:0;
  transition-duration:220ms;
}
.feedback-sheet{
  max-height:min(78dvh,680px);
  overflow:auto;
  overscroll-behavior:contain;
  opacity:0;
  transform:translateY(10px) scale(.985);
  transition:
    transform 300ms cubic-bezier(.22,.8,.25,1),
    opacity 180ms ease;
  will-change:transform,opacity;
}
.feedback-dialog.is-open .feedback-sheet{
  opacity:1;
  transform:translateY(0) scale(1);
}
.feedback-dialog.is-closing .feedback-sheet{
  opacity:0;
  transform:translateY(8px) scale(.99);
  transition-duration:220ms;
}
.feedback-head{
  margin-bottom:16px;
}
.feedback-head p{
  margin-top:5px;
}
.feedback-cancel{
  color:#7A7A75;
  font-weight:520;
  transition:color 150ms ease,opacity 150ms ease;
}
.feedback-cancel:hover{color:#333}
.feedback-form{
  gap:14px;
}
.feedback-rating-block{
  gap:5px;
}
.feedback-star-row{
  margin-top:1px;
}
.feedback-star{
  transition:color 140ms ease,background-color 140ms ease;
  -webkit-tap-highlight-color:transparent;
}
.feedback-rating-text{
  min-height:17px;
  margin:1px 0 0;
  transition:opacity 140ms ease,transform 140ms ease,color 140ms ease;
}
.feedback-rating-text.is-hint{
  color:#92928D;
}
.feedback-rating-text.is-selected{
  color:#62625E;
  font-weight:600;
}
.feedback-comment-label>span{
  display:flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px;
}
.feedback-comment-label em{
  display:inline-flex;
  align-items:center;
  min-height:18px;
  padding:0 6px;
  border-radius:999px;
  background:#F3F3F2;
  color:#92928D;
  font-size:9.5px;
  line-height:1;
  font-style:normal;
  font-weight:560;
}
.feedback-textarea{
  min-height:100px;
}
.feedback-status{
  min-height:0;
  margin:0;
}
.feedback-status:empty{display:none}
.feedback-submit-wrap{
  position:sticky;
  bottom:-1px;
  z-index:2;
  margin-top:1px;
  padding-top:8px;
  background:linear-gradient(to bottom,rgba(255,255,255,0),#fff 35%);
}
.feedback-submit{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 90ms ease;
  -webkit-tap-highlight-color:transparent;
}
.feedback-submit:not(:disabled):active{
  transform:scale(.985);
}
.feedback-submit:disabled{
  opacity:.78;
}
.feedback-spinner{
  width:15px;
  height:15px;
  display:none;
  box-sizing:border-box;
  border:2px solid rgba(255,255,255,.38);
  border-top-color:#fff;
  border-radius:50%;
  animation:feedback-spin .7s linear infinite;
}
.feedback-submit.is-busy .feedback-spinner{display:block}
@keyframes feedback-spin{to{transform:rotate(360deg)}}

.feedback-success{
  min-height:245px;
  padding:8px 0 2px;
}
.feedback-success h2{
  max-width:330px;
  margin-top:14px;
  font-size:21px;
  line-height:1.18;
}
.feedback-success p{
  max-width:340px;
  margin:0 0 18px;
  line-height:1.5;
}
.feedback-support-link{
  box-sizing:border-box;
  width:min(100%,300px);
  min-height:48px;
  margin:0 auto 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
  border:1px solid #E1E1DE;
  border-radius:13px;
  background:#fff;
  color:#5D5D58;
  text-decoration:none;
  font-size:11.5px;
}
.feedback-support-link[hidden]{display:none!important}
.feedback-support-link strong{
  color:#1D1D1B;
  font-size:12px;
}
.feedback-done{
  max-width:300px!important;
}

@media(max-width:600px){
  .feedback-dialog{
    overflow:visible;
  }
  .feedback-dialog::backdrop{
    transition-duration:180ms;
  }
  .feedback-sheet{
    width:100%;
    max-height:min(78dvh,680px);
    box-sizing:border-box;
    padding:0 18px calc(16px + env(safe-area-inset-bottom));
    opacity:1;
    transform:translateY(100%);
    transition:transform 320ms cubic-bezier(.22,.8,.25,1);
  }
  .feedback-dialog.is-open .feedback-sheet{
    transform:translateY(0);
  }
  .feedback-dialog.is-closing .feedback-sheet{
    opacity:1;
    transform:translateY(100%);
    transition-duration:220ms;
    transition-timing-function:cubic-bezier(.4,0,.6,1);
  }
  .feedback-dialog.is-dragging .feedback-sheet{
    transition:none!important;
  }
  .feedback-grabber{
    position:relative;
    display:block;
    width:64px;
    height:22px;
    margin:0 auto 4px;
    background:transparent;
    border-radius:0;
    touch-action:none;
    cursor:grab;
  }
  .feedback-grabber::before{
    content:"";
    position:absolute;
    left:50%;
    top:8px;
    width:42px;
    height:5px;
    transform:translateX(-50%);
    border-radius:999px;
    background:#D9D9D6;
  }
  .feedback-grabber:active{cursor:grabbing}
  .feedback-head{
    margin-bottom:14px;
  }
  .feedback-head h2{
    font-size:21px;
  }
  .feedback-form{
    gap:13px;
  }
  .feedback-star-row{
    justify-content:flex-start;
    gap:4px;
  }
  .feedback-star{
    width:48px;
    height:48px;
  }
  .feedback-textarea{
    min-height:96px;
    resize:none;
  }
  .feedback-submit-wrap{
    padding-top:7px;
    padding-bottom:1px;
  }
  .feedback-success{
    min-height:230px;
    padding-top:6px;
  }
}

@media(prefers-reduced-motion:reduce){
  .feedback-dialog::backdrop,
  .feedback-sheet,
  .feedback-cancel,
  .feedback-star,
  .feedback-rating-text,
  .feedback-submit{
    transition:none!important;
  }
  .feedback-spinner{animation:none}
}

/* Public contact audit polish — 2026-10-03 */
.contact-page-v2 .app-nav-inner{justify-content:flex-start}
.contact-page-v2 .contact-number{margin:10px 0 0!important;color:#5F5F5A!important;font-size:12px!important;font-weight:650!important;text-align:center}

/* Local brand badges added 2026-10-09 (development only until approved). */
.ft-merchant-brand--pln img,.ft-merchant-brand--pdam img,.ft-merchant-brand--dana img,.ft-merchant-brand--solaria img {width:38px;height:38px}
/* GoPay: smaller mark inside the existing unchanged 44px badge. */
.ft-merchant-brand--gopay img {width:29px;height:29px}
.ft-merchant-brand--mcdonalds img {width:31px;height:31px}
