:root {
  --primary:#2985f5; --primary2:#65a7fb; --income:#33a657; --expense:#d94545;
  --bg:#f5f6f8; --card:#fff; --text:#111827; --muted:#6b7280; --line:#e5e7eb;
  --shadow:0 10px 30px rgba(15,23,42,.08); --radius:18px; --user-font-adjust:0px; --screen-font-boost:0px; --font-adjust:calc(var(--user-font-adjust,0px) + var(--screen-font-boost,0px));
}
*{box-sizing:border-box;min-width:0} html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text)}
body{overscroll-behavior-y:none}.app-shell{min-height:100dvh;padding-bottom:92px}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:calc(14px + env(safe-area-inset-top)) 18px 12px;background:rgba(245,246,248,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(229,231,235,.7)}
.topbar h1{margin:2px 0 0;font-size:calc(28px + var(--font-adjust, 0px));letter-spacing:-.03em}.topbar-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}.icon-btn.scan,.icon-btn.share-top,.icon-btn.voice{display:grid;place-items:center;background:var(--card);color:var(--primary);border:1px solid rgba(41,133,245,.28);box-shadow:0 3px 10px rgba(15,23,42,.06)}.icon-btn.scan:active,.icon-btn.share-top:active,.icon-btn.voice:active{transform:scale(.96)}.scan-receipt-icon,.share-top-icon,.voice-entry-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.eyebrow{font-size:calc(10px + var(--font-adjust, 0px));font-weight:800;letter-spacing:.12em;color:var(--muted)}.eyebrow.light{color:rgba(255,255,255,.8)}.content{max-width:980px;margin:0 auto;padding:18px}.icon-btn{border:0;border-radius:999px;width:42px;height:42px;font-size:calc(28px + var(--font-adjust, 0px));line-height:1;cursor:pointer}.icon-btn.primary,.btn.primary{background:var(--primary);color:#fff}.tabbar{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;justify-content:center;background:rgba(255,255,255,.94);border-top:1px solid var(--line);padding:7px max(6px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));backdrop-filter:blur(20px)}
.tab{position:relative;flex:1;max-width:130px;border:0;background:none;color:#8a93a2;padding:4px 2px;cursor:pointer}.tab svg{display:block;width:21px;height:21px;margin:0 auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.tab:first-child svg{fill:currentColor;stroke:none}.tab small{display:block;font-size:calc(9px + var(--font-adjust, 0px));margin-top:3px;white-space:nowrap}.tab.active{color:var(--primary);font-weight:700}.attention-dot{display:none;position:absolute;top:1px;left:calc(50% + 8px);width:7px;height:7px;border-radius:50%;background:var(--expense);box-shadow:0 0 0 3px rgba(217,69,69,.13)}.tab.attention .attention-dot{display:block}.tab.attention:not(.active) svg{animation:insightPulse 1.8s ease-in-out infinite}@keyframes insightPulse{50%{transform:scale(1.13)}}
.hero{padding:26px;border-radius:22px;background:linear-gradient(135deg,var(--primary),var(--primary2));color:#fff;box-shadow:var(--shadow);margin-bottom:18px}.hero .label{opacity:.82;font-size:calc(13px + var(--font-adjust, 0px))}.hero .amount{font-size:calc(40px + var(--font-adjust, 0px));font-weight:800;letter-spacing:-.04em;margin-top:6px}.hero-profile{font-size:calc(12px + var(--font-adjust, 0px));margin-top:8px;opacity:.8}.grid{display:grid;gap:14px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:16px;box-shadow:0 2px 8px rgba(15,23,42,.03)}button.card{font:inherit;color:inherit;text-align:left;width:100%}.section-title{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 2px 10px}.section-title h2{font-size:calc(16px + var(--font-adjust, 0px));margin:0;color:#4b5563}.title-actions{display:flex;gap:2px;flex-wrap:wrap;justify-content:flex-end}.link-btn{border:0;background:none;color:var(--primary);font-weight:700;cursor:pointer;padding:7px}.row{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.row:last-child{border-bottom:0}.row-main{min-width:0;flex:1}.row-title{font-weight:700}.row-sub{font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.compact-row{padding:9px 0}.compact-row .row-title{font-size:calc(13px + var(--font-adjust, 0px))}.money{font-weight:800}.money.income{color:var(--income)}.money.expense{color:var(--expense)}.money.primary{color:var(--primary)}.pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:calc(11px + var(--font-adjust, 0px));font-weight:700;background:#eef2f7;color:#4b5563}.progress{height:8px;background:#f0f1f3;border-radius:99px;overflow:hidden;margin-top:8px}.progress>span{display:block;height:100%;background:var(--primary)}.progress.over>span{background:var(--expense)}.empty{text-align:center;padding:50px 18px;color:var(--muted)}.empty .big,.onboarding .big{font-size:calc(42px + var(--font-adjust, 0px))}.btn{border:1px solid var(--line);border-radius:12px;padding:11px 14px;background:#fff;font-weight:700;cursor:pointer}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.danger{color:#fff;background:var(--expense);border-color:var(--expense)}.btn.full{width:100%}.actions{display:flex;gap:8px;flex-wrap:wrap}.modal{border:0;border-radius:22px;padding:0;width:min(620px,calc(100vw - 24px));max-height:90dvh;box-shadow:0 24px 80px rgba(0,0,0,.26)}.modal::backdrop{background:rgba(15,23,42,.64);backdrop-filter:blur(4px)}.modal-head{position:sticky;top:0;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:17px 18px;border-bottom:1px solid var(--line);z-index:2}.modal-head h2{margin:0;font-size:calc(19px + var(--font-adjust, 0px))}.modal-body{padding:18px;overflow:auto}.form-group{margin-bottom:15px;min-width:0}.form-group label{display:block;font-size:calc(12px + var(--font-adjust, 0px));font-weight:800;color:#4b5563;margin:0 0 7px}.input,.select{display:block;width:100%;max-width:100%;min-width:0;padding:12px 13px;border:1px solid #d8dde5;border-radius:12px;font:inherit;background:#fff;color:var(--text)}input[type="date"],input[type="month"]{-webkit-appearance:none;appearance:none}.segmented{display:grid;grid-template-columns:1fr 1fr;background:#edf0f4;padding:3px;border-radius:12px;margin-bottom:16px;min-width:0}.segmented button{border:0;padding:9px 5px;border-radius:9px;background:transparent;font-weight:800;color:var(--muted);min-width:0}.segmented button.active{background:#fff;color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.08)}.segmented.three{grid-template-columns:repeat(3,minmax(0,1fr))}.hint{font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted);margin-top:6px;line-height:1.45}.toast{position:fixed;left:50%;bottom:94px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#111827;color:#fff;padding:10px 14px;border-radius:16px;font-size:calc(13px + var(--font-adjust, 0px));line-height:1.4;max-width:min(88vw,420px);width:max-content;white-space:normal;overflow-wrap:anywhere;text-align:center;transition:.2s;z-index:40}.toast.show{opacity:1;transform:translate(-50%,0)}.stat{font-size:calc(28px + var(--font-adjust, 0px));font-weight:800}.stat-label{color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px))}.danger-text{color:var(--expense)}.privacy-note{font-size:calc(13px + var(--font-adjust, 0px));line-height:1.55;color:var(--muted)}.clickable{cursor:pointer}.right-align{text-align:right;flex-shrink:0}.account-row:hover,.account-card .clickable:hover{background:rgba(41,133,245,.045)}
.install-banner{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;margin-bottom:16px;border:1px solid rgba(41,133,245,.25);border-radius:16px;background:rgba(41,133,245,.07)}.install-copy{display:flex;flex-direction:column;gap:4px}.install-copy strong{font-size:calc(13px + var(--font-adjust, 0px))}.install-copy span{font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted);line-height:1.4}.install-warning-body{line-height:1.55}.install-warning-icon{font-size:calc(44px + var(--font-adjust, 0px));margin-bottom:8px}
.ad-module{min-height:92px;display:flex;flex-direction:column;justify-content:center;align-items:stretch;margin:18px 0;padding:0;overflow:hidden}.ad-module[hidden]{display:none!important}.ad-module.ad-loading{min-height:0!important;height:0!important;margin:0!important;padding:0!important;border:0!important;opacity:0!important;overflow:hidden!important}.ad-label{display:none;font-size:calc(9px + var(--font-adjust, 0px));font-weight:800;letter-spacing:.12em;color:var(--muted);text-align:center;margin-bottom:7px}.ad-module.ad-filled .ad-label{display:block}.ad-module.ad-unfilled,.ad-module.ad-empty{display:none!important}.ad-placeholder{display:none}
.profile-strip{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,.65fr);align-items:end;gap:14px;margin-bottom:16px;padding:12px 14px;border:1px solid var(--line);border-radius:15px;background:var(--card)}.profile-strip-control{min-width:0}.profile-strip .eyebrow{margin-bottom:5px}.profile-select,.language-top-select{width:100%;max-width:none;padding:9px 34px 9px 10px;font-size:calc(13px + var(--font-adjust, 0px))}.language-control{justify-self:stretch}
.budget-card-list{padding-top:4px;padding-bottom:4px}.budget-item{padding:14px 0;border-bottom:1px solid var(--line)}.budget-item:last-child{border-bottom:0}.budget-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.budget-right{text-align:right;flex-shrink:0}.budget-pct{display:inline-block;font-size:calc(12px + var(--font-adjust, 0px));font-weight:900;color:var(--primary);margin-bottom:3px}.budget-pct.expense{color:var(--expense)}.collapsed-budget{padding:12px 16px}
.report-controls{overflow:hidden}.report-date-grid{width:100%;min-width:0}.report-date-group{width:100%;min-width:0;overflow:hidden}.report-heading{margin:20px 2px 8px}.report-heading h2{margin:3px 0 0;font-size:calc(20px + var(--font-adjust, 0px))}.report-summary{grid-template-columns:repeat(5,minmax(0,1fr));margin-top:14px;align-items:stretch}.report-summary .stat{font-size:calc(21px + var(--font-adjust, 0px))}.report-stat-card{cursor:pointer;transition:border-color .16s,transform .16s;background .16s}.report-stat-card:hover{border-color:rgba(41,133,245,.38);transform:translateY(-1px)}.report-stat-card.open{border-color:var(--primary);background:rgba(41,133,245,.055)}.tap-hint{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted);margin-top:7px}.report-detail-panel{margin-top:12px;padding-top:12px}.detail-head{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding-bottom:9px}.detail-head h3{font-size:calc(15px + var(--font-adjust, 0px));margin:0}.detail-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.detail-line:last-child{border-bottom:0}.detail-button{width:100%;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.detail-button:hover{color:var(--primary)}.chevron{display:inline-block;width:18px;color:var(--muted)}.detail-group,.expense-group{border-bottom:1px solid var(--line)}.detail-group:last-child,.expense-group:last-child{border-bottom:0}.nested-transactions{padding:0 12px 8px 20px;border-left:2px solid rgba(41,133,245,.2);margin:0 0 8px 7px}.report-transactions{padding-top:4px;padding-bottom:4px}.statement-summary{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:18px}.mini-stat{border:1px solid var(--line);border-radius:14px;padding:13px;background:var(--card)}.mini-stat .money{margin-top:5px;font-size:calc(18px + var(--font-adjust, 0px))}.statement-list{padding-top:4px;padding-bottom:4px}.pill.success{background:rgba(51,166,87,.14);color:var(--income)}.currency-input{max-width:180px;font-size:calc(22px + var(--font-adjust, 0px));font-weight:800}
.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:18px;cursor:pointer}.toggle-row input{width:22px;height:22px;flex:0 0 auto}.check-line{display:flex;align-items:flex-start;gap:8px;font-size:calc(13px + var(--font-adjust, 0px));line-height:1.4}.check-line input{margin-top:2px;flex:0 0 auto}.inline-warning{border:1px solid rgba(217,69,69,.3);background:rgba(217,69,69,.06);border-radius:14px;padding:14px;margin-bottom:16px}.inline-warning strong{color:var(--expense)}.inline-warning p{font-size:calc(13px + var(--font-adjust, 0px));line-height:1.5;margin:7px 0 10px}.onboarding{text-align:center;padding:8px 2px 4px}.onboarding h2{margin:10px 0 6px}.onboarding p{color:var(--muted);line-height:1.55}.step-count{display:inline-block;border-radius:999px;background:rgba(41,133,245,.1);color:var(--primary);font-size:calc(11px + var(--font-adjust, 0px));font-weight:800;padding:5px 9px;margin-bottom:10px}
.legal-intro{font-size:calc(13px + var(--font-adjust, 0px));color:var(--muted);line-height:1.5}.legal-combined{max-height:48dvh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:14px;margin:12px 0}.legal-combined section+section{border-top:1px solid var(--line);margin-top:18px;padding-top:18px}.legal-combined h1,.legal-combined h2,.legal-combined h3,.legal-document h1,.legal-document h2,.legal-document h3{line-height:1.25}.legal-combined h1,.legal-document h1{font-size:calc(19px + var(--font-adjust, 0px))}.legal-combined h2,.legal-document h2{font-size:calc(16px + var(--font-adjust, 0px))}.legal-combined h3,.legal-document h3{font-size:calc(14px + var(--font-adjust, 0px))}.legal-combined p,.legal-combined li,.legal-document p,.legal-document li{font-size:calc(13px + var(--font-adjust, 0px));line-height:1.55}.legal-check{margin:14px 0}.legal-document{line-height:1.55}
.insights-empty{text-align:center;padding:28px 20px}.insights-empty p{max-width:650px;margin:10px auto;color:var(--muted);line-height:1.55}.insight-orb{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:rgba(41,133,245,.1);color:var(--primary);font-size:calc(28px + var(--font-adjust, 0px))}.learning-progress{display:flex;gap:10px;align-items:baseline;justify-content:center;margin-top:18px}.learning-progress strong{font-size:calc(22px + var(--font-adjust, 0px))}.learning-progress span{font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted)}.insight-hero h2{margin:6px 0 4px;font-size:calc(24px + var(--font-adjust, 0px))}.insight-hero p{margin:0;opacity:.82}.insight-account{margin-bottom:12px}.insight-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.insight-forecast{font-size:calc(25px + var(--font-adjust, 0px));font-weight:900;color:var(--primary)}.insight-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.insight-grid>div{background:rgba(148,163,184,.08);border-radius:12px;padding:10px}.insight-grid span{display:block;font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted);margin-bottom:5px}.insight-grid strong{display:block;font-size:calc(12px + var(--font-adjust, 0px));line-height:1.35}
@media(max-width:820px){.report-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.statement-summary{grid-template-columns:1fr}.install-banner{align-items:flex-start;flex-direction:column}.install-banner .btn{width:100%}.insight-grid{grid-template-columns:1fr}.report-summary>*:last-child{grid-column:1/-1}}
@media(max-width:640px){.content{padding:14px}.grid.two{grid-template-columns:1fr}.hero .amount{font-size:calc(34px + var(--font-adjust, 0px))}.topbar h1{font-size:calc(24px + var(--font-adjust, 0px))}.modal{width:100%;max-width:none;margin:0;align-self:end;border-radius:22px 22px 0 0;max-height:94dvh}.modal-body{padding-bottom:calc(18px + env(safe-area-inset-bottom))}.budget-head{flex-direction:column;gap:5px}.budget-right{text-align:left}.report-summary{grid-template-columns:1fr}.report-summary>*:last-child{grid-column:auto}.ad-module{margin:14px 0}.row-sub{white-space:normal}.profile-strip{grid-template-columns:1fr 1fr;align-items:end}.profile-select,.language-top-select{width:100%;max-width:100%}.segmented.three button{font-size:calc(12px + var(--font-adjust, 0px))}.report-date-grid{grid-template-columns:1fr}.insight-head{flex-direction:column}.tab small{font-size:calc(8px + var(--font-adjust, 0px))}.tab svg{width:19px;height:19px}.tabbar{padding-left:2px;padding-right:2px}}
@media(prefers-color-scheme:dark){:root{--bg:#0b1220;--card:#111827;--text:#f3f4f6;--muted:#9ca3af;--line:#263244}.topbar{background:rgba(11,18,32,.92)}.tabbar{background:rgba(17,24,39,.94)}.card,.modal,.modal-head,.input,.select,.segmented button.active,.profile-strip{background:var(--card);color:var(--text)}.segmented{background:#1f2937}.pill{background:#1f2937;color:#cbd5e1}.report-stat-card.open{background:rgba(41,133,245,.1)}.inline-warning{background:rgba(217,69,69,.08)}.section-title h2{color:#cbd5e1}}

/* Automatic application update */
.update-panel{text-align:center;padding:8px 0 2px}.update-panel h3{margin:12px 0 6px;font-size:calc(20px + var(--font-adjust, 0px))}.update-panel p{line-height:1.5}.update-spinner{width:44px;height:44px;border:4px solid var(--line);border-top-color:var(--primary);border-radius:50%;margin:4px auto 12px;animation:budgetUpdateSpin .8s linear infinite}.update-status{margin-top:15px;padding:11px 12px;border-radius:12px;background:rgba(41,133,245,.08);color:var(--primary);font-weight:800;font-size:calc(13px + var(--font-adjust, 0px))}.update-note{margin:10px 0;padding:10px 12px;border-radius:12px;background:rgba(41,133,245,.06);font-size:calc(13px + var(--font-adjust, 0px))}@keyframes budgetUpdateSpin{to{transform:rotate(360deg)}}


/* v5 flexible budgets */
.budget-card-list{padding:0;overflow:hidden}.budget-item{padding:0;border-bottom:1px solid var(--line)}.budget-item:last-child{border-bottom:0}.budget-item-toggle{width:100%;border:0;background:transparent;color:inherit;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;font:inherit;cursor:pointer}.budget-item-toggle>span:first-child{display:flex;align-items:center;gap:7px;min-width:0}.budget-period-pill{font-size:calc(9px + var(--font-adjust, 0px));font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--muted);background:rgba(148,163,184,.12);border-radius:999px;padding:4px 7px;white-space:nowrap}.budget-mini-status{font-size:calc(12px + var(--font-adjust, 0px));font-weight:900;color:var(--income);white-space:nowrap}.budget-mini-status.expense{color:var(--expense)}.budget-detail{padding:0 16px 17px}.budget-spend-line{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px))}.budget-spend-line strong{color:var(--text);white-space:nowrap}.budget-spend-line strong.expense{color:var(--expense)}.budget-range{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted);margin-top:5px}.budget-progress{--budget-pct:0;--budget-hue:120;position:relative;height:22px;margin-top:11px;border-radius:999px;background:rgba(148,163,184,.17);overflow:visible}.budget-progress-fill{position:absolute;inset:0 auto 0 0;width:calc(var(--budget-pct) * 1%);max-width:100%;border-radius:999px;background:hsl(var(--budget-hue) 68% 43%);transition:width .65s cubic-bezier(.2,.8,.2,1),background-color .45s ease}.budget-progress-marker{position:absolute;z-index:2;top:50%;left:clamp(20px,calc(var(--budget-pct) * 1%),calc(100% - 20px));transform:translate(-50%,-50%);font-size:calc(10px + var(--font-adjust, 0px));font-weight:900;line-height:1;color:#fff;background:hsl(var(--budget-hue) 68% 35%);border:2px solid var(--card);border-radius:999px;padding:2px 5px;min-width:37px;text-align:center;box-shadow:0 1px 4px rgba(15,23,42,.22);transition:left .65s cubic-bezier(.2,.8,.2,1),background-color .45s ease}.budget-item.collapsed .budget-item-toggle{padding-top:12px;padding-bottom:12px}

/* v5 report drill-downs stay inside the selected summary card */
.report-stat-card{padding:0;overflow:hidden;align-self:start}.report-stat-card.static{padding:16px}.report-stat-trigger{width:100%;border:0;background:transparent;color:inherit;padding:16px;text-align:left;font:inherit;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}.report-stat-trigger>span:first-child{display:flex;flex-direction:column;gap:4px}.report-chevron{font-size:calc(17px + var(--font-adjust, 0px));color:var(--muted)}.report-stat-card>.tap-hint{padding:0 16px 14px}.report-stat-card.open{grid-column:1/-1}.report-inline-detail{border-top:1px solid var(--line);padding:4px 16px 12px;background:rgba(148,163,184,.035)}.inline-detail-title{font-size:calc(11px + var(--font-adjust, 0px));font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:12px 0 4px}.inline-empty{padding:14px 0}.report-inline-detail .row{padding-left:2px;padding-right:2px}

/* v5 smart insights */
.tab.attention:not(.active) svg{animation:insightBlink 1.15s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(41,133,245,.55))}@keyframes insightBlink{0%,100%{opacity:1;transform:scale(1)}45%{opacity:.28;transform:scale(.86)}65%{opacity:1;transform:scale(1.18)}}.tab.attention .attention-dot{display:block;animation:attentionDotBlink 1.15s ease-in-out infinite}@keyframes attentionDotBlink{50%{opacity:.25;transform:scale(.7)}}.insight-confidence{display:inline-flex;margin-top:5px;border-radius:999px;padding:3px 7px;font-size:calc(9px + var(--font-adjust, 0px));font-weight:900;background:rgba(148,163,184,.12);color:var(--muted)}.insight-confidence.high{color:var(--income);background:rgba(51,166,87,.1)}.insight-confidence.medium{color:#a16207;background:rgba(245,158,11,.1)}.insight-summary{display:flex;gap:13px;align-items:flex-start}.insight-summary p{margin:0;line-height:1.6;flex:1}.insight-orb.small{width:38px;height:38px;font-size:calc(19px + var(--font-adjust, 0px));flex:0 0 auto}.insight-summary-foot{margin-top:9px;font-size:calc(11px + var(--font-adjust, 0px));color:var(--muted)}.insight-list{padding-top:4px;padding-bottom:4px}.insight-list-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}.insight-list-row:last-child{border-bottom:0}.insight-list-row>span:first-child{min-width:0}.insight-list-row small{display:block;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));line-height:1.45;margin-top:3px}.insight-list-row>.right-align small{white-space:nowrap}.insight-good{font-size:calc(13px + var(--font-adjust, 0px));color:var(--muted);padding:12px 0;line-height:1.5}

@media(max-width:640px){.budget-spend-line{align-items:flex-start}.budget-spend-line span{max-width:64%}.budget-item-toggle{padding-left:13px;padding-right:13px}.budget-detail{padding-left:13px;padding-right:13px}.budget-period-pill{font-size:calc(8px + var(--font-adjust, 0px))}.report-stat-card.open{grid-column:auto}.insight-summary{flex-direction:column}.insight-list-row{align-items:flex-start}.insight-list-row>.right-align{text-align:right;margin-left:auto}}

.insight-summary-copy{flex:1;min-width:0}.insight-summary-copy p{margin:0;line-height:1.6}


/* v6 Receipt Capture */
receipt-badge{display:inline-flex;vertical-align:middle;margin-left:5px;padding:2px 5px;border-radius:999px;background:rgba(41,133,245,.08);color:var(--primary);font-size:calc(8px + var(--font-adjust, 0px));font-weight:800}.receipt-camera-orb,.receipt-scan-orb{display:grid;place-items:center;width:70px;height:70px;margin:2px auto 12px;border-radius:50%;background:rgba(41,133,245,.1);font-size:calc(34px + var(--font-adjust, 0px))}.receipt-scan-orb svg{width:38px;height:38px;fill:none;stroke:var(--primary);stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.receipt-capture-start{text-align:center}.receipt-capture-start h3,.receipt-processing h3{margin:8px 0}.receipt-capture-start p,.receipt-processing p{color:var(--muted);font-size:calc(13px + var(--font-adjust, 0px));line-height:1.55}.receipt-file-button{display:block;cursor:pointer;margin:18px 0 10px}.receipt-source-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0 10px}.receipt-source-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:112px;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--card);cursor:pointer;box-shadow:0 2px 7px rgba(15,23,42,.03)}.receipt-source-button.primary-source{border-color:rgba(41,133,245,.32);background:rgba(41,133,245,.07)}.receipt-source-button strong{font-size:calc(13px + var(--font-adjust, 0px))}.receipt-source-button small{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}.receipt-source-icon{display:grid;place-items:center;width:36px;height:36px;margin-bottom:3px;border-radius:50%;background:rgba(41,133,245,.1);color:var(--primary);font-size:calc(20px + var(--font-adjust, 0px));font-weight:900}.receipt-processing{text-align:center}.receipt-preview{display:block;max-width:100%;max-height:38dvh;object-fit:contain;margin:0 auto 14px;border-radius:14px;border:1px solid var(--line);background:#fff}.receipt-preview.compact{max-height:220px}.receipt-lines-title{margin-top:14px}.receipt-editor{border:1px solid var(--line);border-radius:14px;overflow:hidden}.receipt-edit-row{display:grid;grid-template-columns:26px minmax(0,1fr) 108px 34px;gap:7px;align-items:center;padding:8px;border-bottom:1px solid var(--line)}.receipt-edit-row:last-child{border-bottom:0}.receipt-edit-row .input{padding:9px 10px}.receipt-line-no{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted);text-align:center}.receipt-remove{width:32px;height:32px;font-size:calc(20px + var(--font-adjust, 0px));background:transparent;color:var(--muted)}.receipt-reconcile{margin:14px 0;border:1px solid var(--line);border-radius:14px;padding:8px 12px;background:rgba(148,163,184,.035)}.receipt-reconcile>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:calc(12px + var(--font-adjust, 0px))}.receipt-reconcile.ok{border-color:rgba(51,166,87,.28);background:rgba(51,166,87,.05)}.receipt-reconcile.warn{border-color:rgba(217,69,69,.28);background:rgba(217,69,69,.04)}.receipt-reconcile.warn>div:last-child strong{color:var(--expense)}.receipt-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.receipt-back{padding-left:0;margin-bottom:8px}.receipt-total-hero{display:flex;flex-direction:column;gap:4px;padding:18px;margin-bottom:16px;border-radius:16px;background:linear-gradient(135deg,rgba(41,133,245,.11),rgba(101,167,251,.06));border:1px solid rgba(41,133,245,.16)}.receipt-total-hero span{font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted)}.receipt-total-hero strong{font-size:calc(30px + var(--font-adjust, 0px));color:var(--primary)}.receipt-total-hero small{font-size:calc(11px + var(--font-adjust, 0px));color:var(--muted)}.create-inline-category{margin:-7px 0 12px;padding-left:0}.inline-category-creator{border:1px solid rgba(41,133,245,.23);border-radius:14px;padding:12px;margin:8px 0 15px;background:rgba(41,133,245,.045)}.receipt-split-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin:12px 0}.receipt-split-row{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--line);cursor:pointer}.receipt-split-row:last-child{border-bottom:0}.receipt-split-row.assigned{background:rgba(51,166,87,.045)}.receipt-split-row input{flex:0 0 auto}.receipt-split-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}.receipt-split-main strong{font-size:calc(13px + var(--font-adjust, 0px))}.receipt-split-main small{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}.receipt-split-amount{font-size:calc(13px + var(--font-adjust, 0px));font-weight:900;white-space:nowrap}.receipt-selection-summary{display:flex;justify-content:space-between;align-items:center;padding:7px 3px 12px;font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted)}.receipt-selection-summary strong{font-size:calc(15px + var(--font-adjust, 0px));color:var(--text)}.receipt-suggestion-btn{margin-bottom:5px;color:var(--primary)}.receipt-history .row-title{display:flex;align-items:center;gap:3px}.receipt-detail-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,220px);gap:14px;align-items:start}.receipt-detail-head>div{display:flex;flex-direction:column;gap:6px}.receipt-detail-head>div>span,.receipt-detail-head>div>small{color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px))}.receipt-detail-head>div>strong{font-size:calc(30px + var(--font-adjust, 0px));color:var(--primary)}.receipt-detail-items .detail-line span{display:flex;flex-direction:column}.receipt-detail-items .detail-line small{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted);margin-top:2px}.receipt-ocr-warning{margin-top:10px}
@media(max-width:640px){.receipt-source-grid{grid-template-columns:1fr 1fr}.receipt-edit-row{grid-template-columns:20px minmax(0,1fr) 86px 30px;gap:5px;padding:7px 5px}.receipt-edit-row .input{padding:9px 7px;font-size:calc(13px + var(--font-adjust, 0px))}.receipt-choice-grid{grid-template-columns:1fr}.receipt-detail-head{grid-template-columns:1fr}.receipt-detail-head .receipt-preview{max-height:260px}.receipt-split-row{padding:11px 9px}.receipt-total-hero strong{font-size:calc(26px + var(--font-adjust, 0px))}}
@media(prefers-color-scheme:dark){.inline-category-creator,.receipt-total-hero{background:rgba(41,133,245,.08)}.receipt-preview{background:#fff}.receipt-split-row.assigned{background:rgba(51,166,87,.08)}}

/* v8 Sharing + dual-domain migration */
.migration-banner{border-color:rgba(245,158,11,.32);background:rgba(245,158,11,.075)}
.migration-status-row .row-sub{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.45}
.share-panel{text-align:center}.share-panel h3{margin:6px 0 7px;font-size:calc(21px + var(--font-adjust, 0px))}.share-panel>p{margin:0 auto 16px;max-width:480px;color:var(--muted);font-size:calc(13px + var(--font-adjust, 0px));line-height:1.55}
.share-hero-icon{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 10px;border-radius:50%;background:rgba(41,133,245,.1);color:var(--primary)}.share-hero-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.share-native-main{margin-bottom:15px}.share-mini-icon{font-size:calc(16px + var(--font-adjust, 0px));margin-right:4px}.share-divider{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin:3px 0 12px}.share-divider:before,.share-divider:after{content:"";height:1px;background:var(--line);flex:1}
.share-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}.share-channel{min-height:72px;border:1px solid var(--line);border-radius:13px;background:var(--card);color:var(--text);padding:10px 6px;cursor:pointer;font:inherit;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:transform .15s ease,border-color .15s ease,background .15s ease}.share-channel:hover{border-color:rgba(41,133,245,.35);background:rgba(41,133,245,.04)}.share-channel:active{transform:scale(.97)}.share-channel strong{font-size:calc(11px + var(--font-adjust, 0px))}.share-channel small{font-size:calc(9px + var(--font-adjust, 0px));color:var(--muted)}
.share-copy{margin-top:4px}
@media(max-width:560px){.share-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.share-channel{min-height:66px}}

/* v8.1 header share placement */
@media(max-width:480px){.topbar{padding-left:14px;padding-right:14px}.topbar h1{font-size:calc(25px + var(--font-adjust, 0px))}.topbar-actions{gap:6px}.topbar-actions .icon-btn{width:39px;height:39px}.scan-receipt-icon,.share-top-icon,.voice-entry-icon{width:22px;height:22px}}


/* v9 visual app sharing */
.share-preview-image{display:block;width:100%;max-width:520px;aspect-ratio:1200/630;object-fit:cover;margin:0 auto 7px;border:1px solid var(--line);border-radius:15px;background:#eef5fb;box-shadow:0 5px 18px rgba(15,23,42,.08)}
.share-preview-note{margin:0 auto 12px;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));font-weight:700;letter-spacing:.02em}
@media(max-width:560px){.share-preview-image{border-radius:12px}.share-panel h3{margin-top:4px}}

/* v9.4 capture, install help, and update attention */
.settings-update-dot{display:none;position:absolute;top:-2px;left:calc(50% + 7px);min-width:15px;height:15px;padding:0 4px;border-radius:999px;background:var(--expense);color:#fff;font-size:calc(9px + var(--font-adjust, 0px));font-weight:900;line-height:15px;text-align:center;box-shadow:0 0 0 3px rgba(217,69,69,.14)}
.tab.update-attention .settings-update-dot{display:block;animation:attentionDotBlink 1.15s ease-in-out infinite}
.tab.update-attention:not(.active) svg{animation:settingsUpdatePulse 1.35s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(41,133,245,.45))}
@keyframes settingsUpdatePulse{50%{transform:scale(1.12);opacity:.55}}
.whats-new-card{display:flex;align-items:center;gap:12px;border-color:rgba(41,133,245,.28);background:rgba(41,133,245,.055);scroll-margin-top:92px}
.whats-new-card .row-main{flex:1}.whats-new-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border-radius:50%;background:rgba(41,133,245,.12);font-size:calc(21px + var(--font-adjust, 0px))}

.install-help-embedded{margin:12px 0 16px}.install-help-embedded>section>h3{margin:0 0 6px;font-size:calc(18px + var(--font-adjust, 0px))}.install-help-embedded>section>p{margin:0 0 14px;color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px));line-height:1.55}.install-help-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.install-help-step{border:1px solid var(--line);border-radius:14px;padding:10px;background:rgba(148,163,184,.035)}.install-help-step strong{display:block;font-size:calc(12px + var(--font-adjust, 0px));margin:6px 0 3px}.install-help-step p{margin:0;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));line-height:1.45}.install-help-illustration{height:84px;border-radius:10px;background:var(--card);display:grid;place-items:center;overflow:hidden}.install-help-illustration svg{width:100%;height:100%;fill:none;stroke:var(--primary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.camera-capture-icon{stroke-width:1.8}.capture-purpose-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}.capture-purpose-card{appearance:none;border:1px solid var(--line);border-radius:16px;background:var(--card);padding:18px 14px;display:flex;flex-direction:column;align-items:center;gap:6px;cursor:pointer;color:var(--text);text-align:center}.capture-purpose-card:first-child{border-color:rgba(217,69,69,.18);background:rgba(217,69,69,.025)}.capture-purpose-card:last-child{border-color:rgba(51,166,87,.22);background:rgba(51,166,87,.035)}.capture-purpose-card:active{transform:scale(.985)}.capture-purpose-icon{font-size:calc(30px + var(--font-adjust, 0px))}.capture-purpose-card strong{font-size:calc(14px + var(--font-adjust, 0px))}.capture-purpose-card small{color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));line-height:1.45}
.statement-capture-editor{border:1px solid var(--line);border-radius:14px;overflow:hidden}.statement-capture-row{display:grid;grid-template-columns:38px minmax(150px,1fr) 142px 108px 34px;gap:7px;align-items:center;padding:8px;border-bottom:1px solid var(--line)}.statement-capture-row:last-child{border-bottom:0}.statement-capture-row .input{padding:9px 8px;font-size:calc(12px + var(--font-adjust, 0px))}.statement-check{display:flex;align-items:center;justify-content:center;gap:4px;color:var(--muted);font-size:calc(9px + var(--font-adjust, 0px))}.statement-check input{width:16px;height:16px}.statement-category-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:12px}.statement-category-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,280px);align-items:center;gap:12px;padding:12px;border-bottom:1px solid var(--line)}.statement-category-row:last-child{border-bottom:0}.statement-category-main{display:flex;flex-direction:column;gap:3px}.statement-category-main strong{font-size:calc(13px + var(--font-adjust, 0px))}.statement-category-main small{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}

@media(max-width:760px){.install-help-steps{grid-template-columns:1fr}.install-help-step{display:grid;grid-template-columns:106px minmax(0,1fr);column-gap:10px;align-items:center}.install-help-illustration{grid-row:1/3;height:72px}.install-help-step strong{margin:0}.statement-capture-row{grid-template-columns:30px minmax(0,1fr) 86px 30px}.statement-capture-row .statement-date-input{grid-column:2/4;grid-row:2}.statement-capture-row .receipt-amount-input{grid-column:3;grid-row:1}.statement-capture-row .receipt-remove{grid-column:4;grid-row:1}.statement-category-row{grid-template-columns:1fr}.capture-purpose-grid{grid-template-columns:1fr}}

/* v9.5 insight date-context labels */
.insight-title-with-period{align-items:flex-end}.insight-title-with-period>div{min-width:0}.insight-title-with-period h2{margin-bottom:2px}.insight-title-with-period small{display:block;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));line-height:1.45;font-weight:650;max-width:680px}

/* v9.6 capture origin indicator */
.capture-origin-icon{display:inline-flex;align-items:center;justify-content:center;margin-right:6px;line-height:1;vertical-align:-2px;color:var(--primary)}.capture-origin-svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
\n\n/* v9.6.4 in-app pull-to-refresh */\n.pull-refresh-indicator{--pull-distance:0px;position:fixed;z-index:80;top:calc(env(safe-area-inset-top) + 5px);left:50%;display:flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.96);color:var(--muted);box-shadow:0 7px 24px rgba(15,23,42,.14);font-size:calc(11px + var(--font-adjust, 0px));opacity:0;pointer-events:none;transform:translate(-50%,calc(-52px + var(--pull-distance)));transition:opacity .12s ease,transform .08s linear,color .12s ease}.pull-refresh-indicator.visible{opacity:1}.pull-refresh-indicator.armed{color:var(--primary)}.pull-refresh-indicator.refreshing{color:var(--primary);transform:translate(-50%,8px);transition:transform .16s ease}.pull-refresh-spinner{display:inline-grid;place-items:center;width:18px;height:18px;border-radius:50%;font-size:calc(17px + var(--font-adjust, 0px));font-weight:800;transform:rotate(calc(var(--pull-distance) * 2.5))}.pull-refresh-indicator.refreshing .pull-refresh-spinner{animation:pullRefreshSpin .7s linear infinite}@keyframes pullRefreshSpin{to{transform:rotate(360deg)}}\n@media(prefers-color-scheme:dark){.pull-refresh-indicator{background:rgba(17,24,39,.96)}}\n
/* v9.6.6 income statement bulk categorization */
.statement-category-row.statement-bulk-row{grid-template-columns:34px minmax(0,1fr) auto}.statement-category-check{justify-content:flex-start}.receipt-assign-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:10px 0 6px}.receipt-assign-bar .btn{white-space:nowrap}
@media(max-width:760px){.statement-category-row.statement-bulk-row{grid-template-columns:30px minmax(0,1fr) auto}.receipt-assign-bar{grid-template-columns:1fr}.receipt-assign-bar .btn{width:100%}}

/* v9.9 unified Capture */
.unified-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}.unified-summary-grid>div,.unified-final-progress>div{display:flex;flex-direction:column;gap:3px;padding:11px;border:1px solid var(--line);border-radius:12px;background:rgba(148,163,184,.035)}.unified-summary-grid span,.unified-final-progress span{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}.unified-summary-grid strong,.unified-final-progress strong{font-size:calc(14px + var(--font-adjust, 0px))}.unified-lines{display:flex;flex-direction:column;gap:9px}.unified-line{border:1px solid var(--line);border-radius:14px;padding:10px;background:var(--card)}.unified-line.classified.expense{border-color:rgba(217,69,69,.20);background:rgba(217,69,69,.025)}.unified-line.classified.income{border-color:rgba(51,166,87,.23);background:rgba(51,166,87,.03)}.unified-line.classified.ignore{opacity:.72}.unified-line.adjustment-line{border-style:dashed;background:rgba(41,133,245,.035)}.unified-line-head{display:grid;grid-template-columns:26px 24px minmax(0,1fr) 104px 32px;gap:6px;align-items:center}.adjustment-line .unified-line-head{grid-template-columns:24px minmax(0,1fr) auto auto}.unified-line-head .input{padding:9px 8px}.unified-classify{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0 0 50px}.unified-classify .btn{padding:8px 11px;font-size:calc(11px + var(--font-adjust, 0px))}.unified-bulk-classify{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0 10px;padding:9px;border:1px solid var(--line);border-radius:12px}.unified-bulk-classify span{margin-right:auto;font-size:calc(11px + var(--font-adjust, 0px));color:var(--muted)}.capture-category-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}.capture-category-tabs .btn{display:flex;justify-content:center;align-items:center;gap:8px}.unified-final-progress{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.unified-final-progress.single{grid-template-columns:1fr}.unified-categorize .notice{margin:10px 0}.unified-capture .receipt-preview{margin-bottom:12px}
@media(max-width:640px){.unified-summary-grid{grid-template-columns:1fr 1fr}.unified-line-head{grid-template-columns:24px 20px minmax(0,1fr) 82px 30px;gap:4px}.unified-line-head .input{padding:8px 6px;font-size:calc(12px + var(--font-adjust, 0px))}.unified-classify{margin-left:44px;gap:5px}.unified-classify .btn{padding:7px 9px}.unified-final-progress{grid-template-columns:1fr}.unified-bulk-classify .btn{padding:7px 9px;font-size:calc(10px + var(--font-adjust, 0px))}}
.unified-date-input{width:142px;max-width:100%;padding:7px 8px!important;font-size:calc(11px + var(--font-adjust, 0px))!important}
@media(max-width:640px){.unified-date-input{width:126px}.unified-classify{margin-left:44px}}
.unified-adjustment-box p{margin:6px 0 10px}.adjustment-manual-list{display:flex;flex-direction:column;gap:7px;margin:8px 0}.adjustment-manual-row{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:10px;align-items:center}.adjustment-manual-row span{font-size:calc(12px + var(--font-adjust, 0px));font-weight:700}.adjustment-manual-row .input{text-align:right}
/* v9.9.2 unified Capture refinements */
.unified-summary-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.unified-line.classified.adjustment,.unified-line.adjustment-line{border-style:dashed;border-color:rgba(41,133,245,.28);background:rgba(41,133,245,.045)}
@media(max-width:760px){.unified-summary-grid{grid-template-columns:1fr 1fr}}

/* v9.9.2 Capture: missing-date visibility and line-level transaction review */
.unified-line.missing-date, .statement-category-row.missing-date {
  outline: 1px solid rgba(184, 88, 0, .28);
  outline-offset: -1px;
}
.date-required-input {
  border-color: rgba(184, 88, 0, .7) !important;
}
.unified-capture .unified-bulk-classify {
  flex-wrap: wrap;
}

/* v9.9.4 Capture validation guidance and one-tap date picker */
.unified-date-picker{
  position:relative;display:inline-flex;align-items:center;justify-content:space-between;gap:8px;
  width:142px;max-width:100%;min-height:36px;padding:7px 9px;border:1px solid #d8dde5;border-radius:12px;
  background:var(--card);color:var(--text);font-size:calc(11px + var(--font-adjust, 0px));line-height:1.2;overflow:hidden;cursor:pointer;
}
.unified-date-picker.is-empty .unified-date-picker-text{color:var(--muted)}
.unified-date-picker-icon{color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px));pointer-events:none}
.unified-date-picker input[type="date"]{position:absolute;z-index:2;inset:0;width:100%;height:100%;opacity:.001;cursor:pointer;border:0;padding:0;margin:0;-webkit-appearance:auto;appearance:auto}
.unified-date-picker.date-required-input{border-color:rgba(184,88,0,.7)!important}
.inline-capture-error{margin-top:7px;color:var(--expense);font-size:calc(12px + var(--font-adjust, 0px));font-weight:800;line-height:1.4}
.inline-capture-summary-error{margin:12px 0;padding:11px 12px;border:1px solid rgba(217,69,69,.42);border-radius:12px;background:rgba(217,69,69,.07);color:var(--expense);font-size:calc(12px + var(--font-adjust, 0px));line-height:1.45}
.inline-capture-summary-error ul{margin:6px 0 0;padding-left:19px}
.capture-validation-error{outline:2px solid rgba(217,69,69,.62)!important;outline-offset:3px;border-radius:12px}
#unified-continue-categorize.needs-attention{box-shadow:0 0 0 2px rgba(217,69,69,.12)}
#unified-continue-categorize[data-incomplete="true"]{opacity:.9}
@media(max-width:640px){.unified-date-picker{width:126px}}


/* v9.9.5 Capture: auto category assignment and missing-date alert */
.receipt-assign-bar.auto-assign{grid-template-columns:1fr}
.capture-auto-assign-confirm{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;padding:10px 12px;border:1px solid rgba(51,166,87,.28);border-radius:12px;background:rgba(51,166,87,.07);font-size:calc(12px + var(--font-adjust, 0px));line-height:1.4}
.capture-auto-assign-confirm span{min-width:0}.capture-auto-assign-confirm .link-btn{flex:0 0 auto}
.capture-compact-warning{margin:0 0 10px;text-align:center;color:#a35b00;font-size:calc(11px + var(--font-adjust, 0px));font-weight:800}
.capture-date-alert-card{border:1px solid rgba(217,69,69,.24);border-radius:16px;background:rgba(217,69,69,.035);padding:18px}
.capture-date-alert-card h3{margin:6px 0 8px;font-size:calc(20px + var(--font-adjust, 0px))}.capture-date-alert-card>p{margin:0 0 12px;color:var(--muted);font-size:calc(13px + var(--font-adjust, 0px));line-height:1.5}
.capture-date-alert-icon{font-size:calc(38px + var(--font-adjust, 0px))}.capture-date-alert-list{border-top:1px solid var(--line);margin-top:10px;padding-top:2px}.capture-date-alert-list .row{padding:11px 0}.capture-date-alert-actions{margin-top:14px}.capture-date-alert-actions .btn{flex:1}
@media(max-width:640px){.capture-auto-assign-confirm{align-items:flex-start}.capture-date-alert-actions{display:grid;grid-template-columns:1fr}.capture-date-alert-actions .btn{width:100%}}

/* v10.0 bank-ledger transactions, allocations, documents and image viewer */
.split-pill{margin-left:6px;vertical-align:1px}.transaction-list-note{margin:-4px 0 10px;color:var(--muted);font-size:calc(11px + var(--font-adjust, 0px));line-height:1.45}.transaction-detail-hero{display:flex;flex-direction:column;gap:5px;margin-bottom:14px;padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,rgba(41,133,245,.07),rgba(41,133,245,.025))}.transaction-detail-hero>span,.transaction-detail-hero>small{color:var(--muted);font-size:calc(11px + var(--font-adjust, 0px))}.transaction-detail-hero>strong{font-size:calc(30px + var(--font-adjust, 0px));line-height:1.1}.transaction-detail-card{margin-bottom:12px}.transaction-single-category{padding:12px 0}.transaction-allocation-card .detail-line{padding:12px}.transaction-detail-actions{margin-top:14px}.capture-attachment-card{padding:12px}.capture-thumb-button{display:block;width:100%;padding:0;border:0;background:transparent;color:var(--muted);text-align:center;cursor:pointer}.capture-thumb-button img{display:block;width:100%;margin:0 auto 7px}.capture-thumb-button span{display:block;font-size:calc(11px + var(--font-adjust, 0px));font-weight:700}.transaction-capture-thumb{max-height:260px;object-fit:contain}.documents-browser-list{max-height:min(68vh,720px);overflow:auto}.allocation-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 120px 36px;gap:8px;align-items:center;margin-bottom:8px}.allocation-edit-row .input{text-align:right}.statement-category-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.receipt-parent-allocations{margin-bottom:10px}.capture-final-preview{margin:12px 0}.capture-image-viewer{position:fixed;z-index:9999;inset:0;display:flex;flex-direction:column;background:rgba(8,12,18,.97);color:#fff}.capture-image-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top)) 14px 10px;border-bottom:1px solid rgba(255,255,255,.16);background:rgba(8,12,18,.96)}.capture-image-toolbar>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.capture-image-toolbar>div{display:flex;gap:8px}.capture-image-stage{flex:1 1 auto;min-width:0;min-height:0;width:100%;box-sizing:border-box;overflow:auto;display:flex;align-items:center;justify-content:center;padding:18px;overscroll-behavior:contain}.capture-image-stage img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;margin:auto;object-fit:contain;object-position:center;touch-action:pinch-zoom}.image-viewer-open{overflow:hidden}
@media(max-width:640px){.allocation-edit-row{grid-template-columns:minmax(0,1fr) 92px 34px}.statement-category-actions{grid-column:2/4;justify-content:flex-start}.capture-image-toolbar{align-items:flex-start;flex-direction:column}.capture-image-toolbar>div{width:100%}.capture-image-toolbar .btn{flex:1}.transaction-detail-hero>strong{font-size:calc(26px + var(--font-adjust, 0px))}}

/* v10.0.1 interaction and capture-state fixes */
.transaction-amount-button{border:0;background:transparent;padding:8px 2px 8px 10px;margin:-8px -2px -8px 0;font:inherit;cursor:pointer;white-space:nowrap;border-radius:10px;touch-action:manipulation}.transaction-amount-button:active{background:rgba(41,133,245,.08)}
.unified-final-progress>div.complete{border-color:rgba(51,166,87,.34);background:rgba(51,166,87,.10)}.unified-final-progress>div.complete strong{color:var(--income)}.unified-final-progress>div.incomplete{border-color:rgba(217,69,69,.32);background:rgba(217,69,69,.075)}.unified-final-progress>div.incomplete strong{color:var(--expense)}
.pill.danger{background:rgba(217,69,69,.13);color:var(--expense)}.capture-detail-item.is-deleted{opacity:.72;background:rgba(217,69,69,.035)}.capture-deleted-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px}.capture-allocation-detail{display:block!important;margin-top:4px;color:var(--muted)}.capture-linked-summary{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0;padding:9px 11px;border:1px solid var(--line);border-radius:12px;font-size:calc(11px + var(--font-adjust, 0px));color:var(--muted);background:rgba(148,163,184,.035)}
.capture-image-viewer{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;overflow:hidden!important}.capture-image-viewer::backdrop{background:rgba(8,12,18,.88)}
@media(prefers-color-scheme:dark){.transaction-amount-button:active{background:rgba(41,133,245,.14)}.unified-final-progress>div.complete{background:rgba(51,166,87,.10)}.unified-final-progress>div.incomplete{background:rgba(217,69,69,.10)}.capture-detail-item.is-deleted{background:rgba(217,69,69,.06)}}

/* v10.0.3 Capture navigation, edit labels, and faster amount editing */
.unified-final-progress .capture-progress-card{
  display:flex;flex-direction:column;gap:3px;width:100%;padding:11px;border:1px solid var(--line);border-radius:12px;
  background:rgba(148,163,184,.035);color:var(--text);font:inherit;text-align:left;cursor:pointer;appearance:none;
  -webkit-appearance:none;touch-action:manipulation;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease,transform .08s ease;
}
.unified-final-progress .capture-progress-card:active{transform:scale(.995)}
.unified-final-progress .capture-progress-card span{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}
.unified-final-progress .capture-progress-card strong{font-size:calc(14px + var(--font-adjust, 0px))}
.unified-final-progress .capture-progress-card small{margin-top:3px;font-size:calc(10px + var(--font-adjust, 0px));color:var(--primary);font-weight:800}
.unified-final-progress .capture-progress-card.complete{border-color:rgba(51,166,87,.34);background:rgba(51,166,87,.10)}
.unified-final-progress .capture-progress-card.complete strong{color:var(--income)}
.unified-final-progress .capture-progress-card.incomplete{border-color:rgba(217,69,69,.32);background:rgba(217,69,69,.075)}
.unified-final-progress .capture-progress-card.incomplete strong{color:var(--expense)}
.unified-final-progress .capture-progress-card.active{box-shadow:0 0 0 2px rgba(41,133,245,.24);border-color:rgba(41,133,245,.55)}
@media(prefers-color-scheme:dark){
  .unified-final-progress .capture-progress-card{color:var(--text)}
  .unified-final-progress .capture-progress-card.complete{background:rgba(51,166,87,.10)}
  .unified-final-progress .capture-progress-card.incomplete{background:rgba(217,69,69,.10)}
}

/* v10.0.3 Captured Documents archive + feedback */
.document-search-card{margin-bottom:12px;padding:12px}.document-search-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.document-search-grid .form-group{margin:0}.document-search-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.document-search-actions>div{display:flex;gap:8px}.documents-browser-list{max-height:min(62vh,680px);overflow:auto}.document-browser-row{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid var(--line);cursor:pointer}.document-browser-row:last-child{border-bottom:0}.document-browser-row:hover{background:rgba(41,133,245,.035)}.document-avatar{width:54px;height:54px;padding:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;cursor:zoom-in;box-shadow:0 1px 4px rgba(15,23,42,.04)}.document-avatar img{display:block;width:100%;height:100%;object-fit:cover}.document-avatar-empty{display:grid;place-items:center;font-size:calc(22px + var(--font-adjust, 0px));color:var(--muted);cursor:default}.document-row-amount{display:flex;flex-direction:column;align-items:flex-end;gap:2px;white-space:nowrap}.document-row-amount small{font-size:calc(9px + var(--font-adjust, 0px));color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.document-row-amount strong{font-size:calc(14px + var(--font-adjust, 0px))}.document-row-amount.income strong{color:var(--income)}.document-row-amount.expense strong{color:var(--expense)}.feedback-textarea{min-height:130px;resize:vertical;line-height:1.45}.feedback-textarea.small{min-height:92px}.optional{font-weight:500;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px))}.feedback-diagnostics-row{margin:4px 0 14px;padding:12px;border:1px solid var(--line);border-radius:14px}
@media(max-width:640px){.document-search-grid{grid-template-columns:1fr}.document-search-actions{align-items:flex-start;flex-direction:column}.document-search-actions>div{width:100%}.document-search-actions .btn{flex:1}.document-browser-row{grid-template-columns:50px minmax(0,1fr) auto;padding:10px 9px;gap:9px}.document-avatar{width:48px;height:48px}.document-row-amount strong{font-size:calc(13px + var(--font-adjust, 0px))}.documents-browser-list{max-height:58vh}}
@media(prefers-color-scheme:dark){.document-avatar{background:#fff}.document-browser-row:hover{background:rgba(41,133,245,.07)}}

/* v10.0.4 bug-report screenshot attachment */
.feedback-screenshot-preview{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px;border:1px solid var(--line);border-radius:12px;background:rgba(41,133,245,.035)}
.feedback-screenshot-preview img{width:62px;height:62px;object-fit:cover;border-radius:9px;border:1px solid var(--line);background:#fff}
.feedback-screenshot-preview .row-main{min-width:0;flex:1}.feedback-screenshot-preview .btn{flex:0 0 auto}
@media(max-width:480px){.feedback-screenshot-preview{align-items:flex-start;flex-wrap:wrap}.feedback-screenshot-preview .row-main{min-width:calc(100% - 82px)}.feedback-screenshot-preview .btn{margin-left:72px}}


/* v10.0.5 AI voice entry + protected category deletion */
.category-delete-lock{margin-top:12px;border:1px solid rgba(217,69,69,.24);background:rgba(217,69,69,.055);border-radius:12px;padding:11px 12px;font-size:calc(12px + var(--font-adjust, 0px));line-height:1.45;color:var(--muted)}
.category-delete-lock strong{display:block;color:var(--expense);margin-bottom:3px}
.voice-entry-panel{text-align:center;padding:4px 0 2px}.voice-entry-orb{width:78px;height:78px;border-radius:50%;display:grid;place-items:center;margin:6px auto 14px;background:rgba(41,133,245,.1);color:var(--primary)}
.voice-entry-orb svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.voice-entry-orb.recording{background:rgba(217,69,69,.11);color:var(--expense);animation:voicePulse 1.15s ease-in-out infinite}.voice-entry-status{font-weight:800;margin:7px 0 3px}.voice-entry-timer{font-variant-numeric:tabular-nums;font-size:calc(34px + var(--font-adjust, 0px));font-weight:950;line-height:1;margin:10px 0 5px;color:var(--text);letter-spacing:.02em}.voice-entry-timer.recording{color:var(--expense)}.voice-entry-limit-note{font-size:calc(11px + var(--font-adjust, 0px));font-weight:700;color:var(--muted);margin-bottom:10px}.voice-entry-privacy{margin:14px 0;text-align:left;border:1px solid var(--line);background:rgba(148,163,184,.07);padding:11px 12px;border-radius:12px;font-size:calc(12px + var(--font-adjust, 0px));line-height:1.5;color:var(--muted)}.ai-draft-notice{border:1px solid rgba(41,133,245,.26);background:rgba(41,133,245,.07);border-radius:14px;padding:12px 13px;margin-bottom:16px}.ai-draft-notice strong{color:var(--primary)}.ai-draft-transcript{display:block;margin-top:5px;font-size:calc(12px + var(--font-adjust, 0px));line-height:1.45;color:var(--muted)}@keyframes voicePulse{50%{transform:scale(1.06)}}
@media(max-width:480px){.topbar-actions{gap:4px}.topbar-actions .icon-btn{width:35px;height:35px}.scan-receipt-icon,.share-top-icon,.voice-entry-icon{width:20px;height:20px}.topbar h1{font-size:calc(22px + var(--font-adjust, 0px))}}

/* v10.1 graphical reports */
.report-period-segment{grid-template-columns:repeat(6,minmax(62px,1fr));overflow-x:auto}.report-period-segment button{white-space:nowrap}.report-preset-hint{margin:-4px 0 14px}.report-view-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:5px;margin:14px 0;background:#e9edf3;border-radius:14px;position:sticky;top:78px;z-index:5;box-shadow:0 4px 16px rgba(15,23,42,.05)}.report-view-tabs button{border:0;background:transparent;color:var(--muted);font:inherit;font-weight:800;padding:10px 8px;border-radius:10px;cursor:pointer}.report-view-tabs button.active{background:var(--card);color:var(--primary);box-shadow:0 2px 8px rgba(15,23,42,.08)}
.report-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.report-kpi{display:flex;flex-direction:column;gap:6px;min-height:98px;justify-content:center}.report-kpi>span{font-size:calc(11px + var(--font-adjust, 0px));color:var(--muted);font-weight:800}.report-kpi>strong{font-size:calc(23px + var(--font-adjust, 0px));letter-spacing:-.025em}.report-kpi>small{font-size:calc(11px + var(--font-adjust, 0px));font-weight:800}.report-balance-strip{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:14px}.report-balance-strip>div{display:flex;flex-direction:column;gap:4px;text-align:center}.report-balance-strip span{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted);font-weight:800}.report-balance-strip strong{font-size:calc(18px + var(--font-adjust, 0px))}.report-flow-arrow{font-size:calc(20px + var(--font-adjust, 0px))!important;color:var(--primary)!important}
.report-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.report-chart-card{margin-top:14px}.report-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.report-card-head h3{margin:3px 0 0;font-size:calc(16px + var(--font-adjust, 0px))}.report-card-head>small{color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));text-align:right}.report-donut-wrap{display:grid;grid-template-columns:180px minmax(0,1fr);gap:18px;align-items:center}.report-donut{width:168px;height:168px;border-radius:50%;display:grid;place-items:center;position:relative;margin:auto;box-shadow:inset 0 0 0 1px rgba(15,23,42,.03)}.report-donut:after{content:"";position:absolute;inset:29px;background:var(--card);border-radius:50%;box-shadow:0 0 0 1px var(--line)}.report-donut>div{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;max-width:98px}.report-donut strong{font-size:calc(16px + var(--font-adjust, 0px))}.report-donut span{font-size:calc(9px + var(--font-adjust, 0px));color:var(--muted);text-transform:capitalize}.report-legend{display:flex;flex-direction:column;gap:2px}.report-legend-row{border:0;background:none;color:inherit;font:inherit;display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:7px 4px;border-radius:9px;cursor:pointer;text-align:left}.report-legend-row:hover{background:rgba(41,133,245,.06)}.report-legend-name{display:flex;align-items:center;gap:7px;font-size:calc(11px + var(--font-adjust, 0px));font-weight:800}.report-legend-name i,.report-series-legend i,.report-compare-legend i{display:inline-block;width:9px;height:9px;border-radius:3px;flex:0 0 auto}.report-legend-row>span:last-child{display:flex;flex-direction:column;align-items:flex-end}.report-legend-row strong{font-size:calc(11px + var(--font-adjust, 0px))}.report-legend-row small{font-size:calc(9px + var(--font-adjust, 0px));color:var(--muted)}.report-empty-chart{text-align:center;padding:30px 12px;color:var(--muted)}.report-empty-chart .big{font-size:calc(34px + var(--font-adjust, 0px));opacity:.5}.report-empty-chart p{font-size:calc(11px + var(--font-adjust, 0px));margin:8px 0 0}
.report-bar-list,.report-budget-list{display:flex;flex-direction:column;gap:10px}.report-bar-row,.report-budget-row{border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;padding:5px 0}.report-bar-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:calc(11px + var(--font-adjust, 0px))}.report-bar-head strong{font-size:calc(12px + var(--font-adjust, 0px))}.report-bar-track{height:9px;background:#edf0f4;border-radius:99px;overflow:hidden;display:block;margin-top:6px}.report-bar-track i{display:block;height:100%;border-radius:99px;background:var(--primary);min-width:0}.report-bar-track.over i{background:var(--expense)}.report-budget-meta{display:block;margin-top:3px;color:var(--muted);font-size:calc(9px + var(--font-adjust, 0px))}.report-budget-row:hover .report-bar-head strong,.report-bar-row:hover .report-bar-head strong{color:var(--primary)}
.report-category-filter{width:auto;min-width:210px;max-width:320px;padding:9px 34px 9px 11px;font-size:calc(11px + var(--font-adjust, 0px))}.report-line-wrap{overflow-x:auto}.report-series-legend{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:8px}.report-series-legend span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));font-weight:800}.report-line-chart{display:block;width:100%;min-width:620px;height:auto;overflow:visible}.report-grid-line{stroke:var(--line);stroke-width:1}.report-axis-label{fill:var(--muted);font-size:calc(9px + var(--font-adjust, 0px));font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.report-change{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:3px 7px;background:#eef2f7;color:var(--muted)}.report-change.good{color:var(--income);background:rgba(51,166,87,.1)}.report-change.bad{color:var(--expense);background:rgba(217,69,69,.09)}.report-change.neutral{color:var(--muted)}.report-momentum-list{display:flex;flex-direction:column}.report-momentum-row{border:0;border-bottom:1px solid var(--line);background:none;color:inherit;font:inherit;padding:11px 2px;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;text-align:left}.report-momentum-row:last-child{border-bottom:0}.report-momentum-row>span:first-child{display:flex;flex-direction:column;gap:2px}.report-momentum-row strong{font-size:calc(12px + var(--font-adjust, 0px))}.report-momentum-row small{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}
.compact-segment{grid-template-columns:1fr 1fr;width:190px;margin:0}.compact-segment button{padding:7px 8px;font-size:calc(10px + var(--font-adjust, 0px))}.report-category-picks{display:flex;gap:7px;flex-wrap:wrap}.report-category-chip{border:1px solid var(--line);background:var(--card);color:var(--muted);font:inherit;font-size:calc(10px + var(--font-adjust, 0px));font-weight:800;border-radius:999px;padding:8px 10px;cursor:pointer}.report-category-chip.active{border-color:rgba(41,133,245,.42);background:rgba(41,133,245,.1);color:var(--primary)}.report-compare-legend{display:flex;gap:14px;margin-bottom:12px;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));font-weight:800}.report-compare-legend span{display:flex;align-items:center;gap:5px}.report-compare-legend i.current{background:var(--primary)}.report-compare-legend i.previous{background:#cbd5e1}.report-compare-bars{display:flex;flex-direction:column;gap:14px}.report-compare-row{border:0;background:none;color:inherit;font:inherit;display:grid;grid-template-columns:minmax(110px,170px) minmax(140px,1fr) minmax(100px,130px);gap:12px;align-items:center;text-align:left;cursor:pointer;padding:2px 0}.report-compare-label{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.report-compare-label strong{font-size:calc(11px + var(--font-adjust, 0px))}.report-compare-track{display:flex;flex-direction:column;gap:4px}.report-compare-track i{display:block;height:8px;border-radius:99px;min-width:0}.report-compare-track i.previous{background:#cbd5e1}.report-compare-values{display:flex;flex-direction:column;text-align:right}.report-compare-values small{font-size:calc(9px + var(--font-adjust, 0px));color:var(--muted)}.report-compare-values strong{font-size:calc(11px + var(--font-adjust, 0px))}.report-drill-head{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.report-drill-head>span,.report-drill-head>small{font-size:calc(10px + var(--font-adjust, 0px));color:var(--muted)}.report-drill-head>strong{font-size:calc(28px + var(--font-adjust, 0px))}
@media(max-width:820px){.report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-chart-grid{grid-template-columns:1fr}.report-donut-wrap{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:640px){.report-view-tabs{top:70px}.report-period-segment{display:flex}.report-period-segment button{min-width:68px;flex:1}.report-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.report-kpi{min-height:88px;padding:13px}.report-kpi>strong{font-size:calc(19px + var(--font-adjust, 0px))}.report-balance-strip{justify-content:space-between}.report-donut-wrap{grid-template-columns:1fr}.report-donut{width:156px;height:156px}.report-card-head.trend-head{flex-direction:column}.report-category-filter{width:100%;max-width:none}.report-compare-row{grid-template-columns:1fr;gap:6px;padding:8px 0}.report-compare-values{flex-direction:row;justify-content:space-between}.report-compare-values small:before{content:"Previous: "}.report-compare-values strong:before{content:"Current: "}.compact-segment{width:165px}.report-card-head{align-items:flex-start}.report-chart-card{padding:14px}.report-line-chart{min-width:560px}}
@media(prefers-color-scheme:dark){.report-view-tabs{background:#1f2937}.report-bar-track{background:#263244}.report-compare-legend i.previous,.report-compare-track i.previous{background:#475569}.report-category-chip{background:var(--card)}}

/* v10.2.0 internal transfers */
.transfer-account-grid{display:grid;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:10px;align-items:center}.transfer-arrow{display:flex;align-items:center;justify-content:center;font-size:calc(22px + var(--font-adjust, 0px));font-weight:800;color:var(--primary);padding-top:12px}.transfer-notice{margin:-2px 0 15px}.money.transfer{color:var(--primary)}
@media(max-width:560px){.transfer-account-grid{grid-template-columns:1fr}.transfer-arrow{padding:0;transform:rotate(90deg);height:20px}}

/* v10.2.2 — Capture draft image quick preview */
.capture-draft-thumb{margin:0 auto 14px;max-width:100%}
.capture-draft-thumb .receipt-preview{margin:0 auto 7px}
.capture-draft-thumb:focus-visible{outline:3px solid rgba(41,133,245,.28);outline-offset:4px;border-radius:14px}


/* v10.2.2 — Preserve the complete original capture in the enlarged viewer */
.capture-image-toolbar{flex:0 0 auto}
.capture-image-viewer{box-sizing:border-box}
.capture-image-stage{min-height:0!important;min-width:0!important}
.capture-image-stage img{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:center center!important}


/* v10.2.5 — live-server / firewall awareness */
.network-health-banner{max-width:980px;margin:10px auto 0;padding:11px 14px;display:flex;align-items:center;gap:10px;border:1px solid #f0c36a;border-radius:14px;background:#fff8e7;color:#6b4b08;box-shadow:0 5px 18px rgba(15,23,42,.07)}
.network-health-banner[hidden]{display:none!important}.network-health-banner[data-status="insecure"]{border-color:#ef8f8f;background:#fff0f0;color:#8b1e1e}.network-health-banner[data-status="offline"]{border-color:#b9c8dd;background:#f2f6fb;color:#42526a}.network-health-icon{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;background:currentColor;color:#fff;font-weight:900}.network-health-copy{min-width:0;display:flex;flex:1;flex-direction:column;gap:2px}.network-health-copy strong{font-size:calc(12px + var(--font-adjust, 0px))}.network-health-copy span{font-size:calc(11px + var(--font-adjust, 0px));line-height:1.35}.network-health-actions{display:flex;align-items:center;gap:4px;flex:0 0 auto}.network-health-link,.network-health-close{border:0;background:transparent;color:inherit;font:inherit;font-size:calc(11px + var(--font-adjust, 0px));font-weight:800;cursor:pointer;padding:7px 8px;border-radius:9px}.network-health-link:hover,.network-health-close:hover{background:rgba(0,0,0,.06)}.network-health-close{font-size:calc(18px + var(--font-adjust, 0px));line-height:1;padding:5px 8px}.network-detail-panel{text-align:left}.network-detail-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff1c8;color:#8a5a00;font-size:calc(25px + var(--font-adjust, 0px));font-weight:900;margin-bottom:12px}.network-detail-panel h3{margin:0 0 8px}.network-detail-panel p{line-height:1.5}.network-technical{display:flex;flex-direction:column;gap:5px;margin:14px 0;padding:10px 12px;border-radius:11px;background:#f3f4f6;font-size:calc(11px + var(--font-adjust, 0px))}.network-technical code{white-space:normal;overflow-wrap:anywhere;color:var(--muted)}
@media(max-width:640px){.network-health-banner{margin:8px 12px 0;align-items:flex-start;flex-wrap:wrap}.network-health-copy{flex-basis:calc(100% - 42px)}.network-health-actions{width:100%;justify-content:flex-end}.network-health-link{padding:6px 9px}}
@media(prefers-color-scheme:dark){.network-health-banner{background:#3a2d0d;border-color:#72591c;color:#f8dda1}.network-health-banner[data-status="insecure"]{background:#3e1919;border-color:#7f3636;color:#ffc2c2}.network-health-banner[data-status="offline"]{background:#172131;border-color:#334155;color:#cbd5e1}.network-technical{background:#1f2937}}

.subscription-compare{overflow:hidden}.subscription-table{display:grid;grid-template-columns:minmax(150px,1.6fr) repeat(2,minmax(110px,1fr));border:1px solid var(--line);border-radius:12px;overflow:hidden}.subscription-cell{padding:12px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:calc(13px + var(--font-adjust, 0px))}.subscription-cell:nth-child(3n){border-right:0}.subscription-cell:nth-last-child(-n+3){border-bottom:0}.subscription-cell.head{font-weight:800;background:rgba(41,133,245,.07)}.subscription-refund-note{margin:16px 0 0;padding:12px 14px;border-radius:12px;background:rgba(245,158,11,.10);border:1px solid rgba(245,158,11,.25);font-size:calc(13px + var(--font-adjust, 0px));line-height:1.45}.subscription-page-actions{display:flex;gap:8px}@media(max-width:640px){.profile-strip{grid-template-columns:1fr 1fr;gap:10px;padding:10px}.profile-strip .eyebrow{font-size:calc(9px + var(--font-adjust, 0px))}.profile-select,.language-top-select{font-size:calc(12px + var(--font-adjust, 0px));padding-left:8px}.subscription-table{grid-template-columns:minmax(120px,1.4fr) repeat(2,minmax(82px,1fr))}.subscription-cell{padding:9px 7px;font-size:calc(11px + var(--font-adjust, 0px))}}
.custom-ad-filled{display:block}.custom-ad{display:flex;align-items:center;gap:14px;text-decoration:none;color:inherit;background:#fff;border:1px solid #e4e9f0;border-radius:14px;padding:10px;overflow:hidden}.custom-ad-image{display:block;max-width:42%;width:auto;max-height:120px;object-fit:contain;border-radius:10px;flex:0 0 auto}.custom-ad-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.custom-ad-copy strong{font-size:calc(15px + var(--font-adjust, 0px));color:#172033}.custom-ad-copy span{font-size:calc(13px + var(--font-adjust, 0px));color:#667085;line-height:1.35}.ad-chart{display:flex;align-items:flex-end;gap:4px;height:110px;padding-top:8px}.ad-chart-bar{flex:1;min-width:4px;background:#2985f5;border-radius:4px 4px 0 0;position:relative}.ad-chart-bar.clicks{background:#12b76a}.busy-spinner{display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:btspin .7s linear infinite;vertical-align:-2px;margin-right:6px}@keyframes btspin{to{transform:rotate(360deg)}}

/* v11.3 installation migration, separated account/subscription and promotions */
.install-banner-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.install-banner-close{border:0;background:transparent;color:var(--muted);font-size:calc(24px + var(--font-adjust, 0px));line-height:1;cursor:pointer;padding:4px 7px;border-radius:9px}.install-banner-close:hover{background:rgba(148,163,184,.14);color:var(--text)}
.settings-account-divider{height:1px;background:var(--line);margin:8px 0}.promo-price{display:flex;flex-direction:column;gap:4px;margin:8px 0 14px}.promo-price s{color:var(--muted);font-size:calc(14px + var(--font-adjust, 0px))}.promo-price strong{font-size:calc(25px + var(--font-adjust, 0px));line-height:1.1}.promo-price span,.promo-price small{color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px))}.promo-price.compact{margin:2px 0 0}.promo-price.compact strong{font-size:calc(16px + var(--font-adjust, 0px))}.promo-price.compact s{font-size:calc(12px + var(--font-adjust, 0px))}
.ad-package-options{display:grid;gap:8px}.ad-package-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid var(--line);border-radius:12px;padding:10px;cursor:pointer;background:var(--card)}.ad-package-choice:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 12%,transparent)}.ad-package-choice input{margin-top:4px}.ad-package-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.ad-package-copy>span:not(.promo-price){font-size:calc(12px + var(--font-adjust, 0px));color:var(--muted)}
.migration-code-card{margin:14px 0;padding:14px;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line));border-radius:14px;background:color-mix(in srgb,var(--primary) 6%,var(--card))}.migration-code-card p{margin:7px 0}.migration-code{font:700 20px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em;word-break:break-word;padding:10px 12px;border-radius:10px;background:var(--card);border:1px dashed var(--line);user-select:all}.migration-code-input{text-transform:uppercase;letter-spacing:.05em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media(max-width:820px){.install-banner-actions{width:100%}.install-banner-actions .btn{flex:1}.install-banner-close{margin-left:auto}.migration-code{font-size:calc(17px + var(--font-adjust, 0px))}}

.feature-disabled{opacity:.72;background:var(--surface,#fff)}.feature-disabled fieldset{border:0;padding:0;margin:0;opacity:.6}.feature-disabled-message{margin:10px 0 16px;padding:10px 12px;border-radius:10px;background:rgba(102,112,133,.08);font-weight:700;color:var(--muted)}
.feedback-admin-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.feedback-admin-images a{display:block}.feedback-admin-images img{display:block;width:72px;height:72px;object-fit:cover;border-radius:8px;border:1px solid #d0d5dd}


/* v11.5.0 accessibility, install guidance and campaign management */
.text-size-row{align-items:center}.text-size-controls{display:flex;align-items:center;gap:8px;flex:0 0 auto}.text-size-button{min-width:44px;min-height:44px;padding:8px 13px;text-align:center;font-size:calc(22px + var(--font-adjust, 0px));line-height:1}.text-size-value{display:inline-flex;align-items:center;justify-content:center;min-width:64px;font-variant-numeric:tabular-nums;color:var(--text)}
.install-settings-card>.row:first-child{align-items:flex-start}.migration-how{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}.migration-how summary{cursor:pointer;font-weight:800;color:var(--primary)}.migration-how ol{padding-left:22px;margin:10px 0 0;color:var(--muted);line-height:1.55}.migration-how li+li{margin-top:6px}
.install-visual-card{margin:0 0 16px;padding:14px;border:1px solid rgba(41,133,245,.22);border-radius:16px;background:linear-gradient(180deg,rgba(41,133,245,.07),rgba(41,133,245,.025))}.install-visual-detected{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.install-visual-detected span{font-size:calc(11px + var(--font-adjust, 0px));font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.install-visual-detected strong{text-align:right}.install-device{position:relative;margin:0 auto;border:2px solid #1f2937;background:#fff;overflow:hidden;box-shadow:0 10px 28px rgba(15,23,42,.13)}.install-device.mobile{width:min(260px,82vw);height:380px;border-radius:30px;padding:10px}.install-device.desktop{width:min(560px,100%);height:280px;border-radius:14px;padding:8px}.install-browser-bar{position:relative;display:flex;align-items:center;gap:7px;height:40px;padding:0 10px;border-radius:10px;background:#eef2f7}.install-browser-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8;flex:0 0 auto}.install-address{flex:1;padding:6px 10px;border-radius:7px;background:#fff;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:calc(11px + var(--font-adjust, 0px))}.install-cue{display:inline-flex;align-items:center;justify-content:center;min-width:34px;min-height:30px;padding:4px 8px;border:2px solid var(--primary);border-radius:9px;background:#fff;color:var(--primary);font-weight:900;box-shadow:0 0 0 4px rgba(41,133,245,.10)}.install-cue.bottom{position:absolute;right:14px;bottom:-318px}.install-cue.top-left{position:absolute;left:8px;top:5px}.install-cue.address-right{position:relative}.install-device-content{display:flex;min-height:calc(100% - 48px);flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 20px;color:#475569}.install-app-mini{padding:10px 14px;border:1px solid #dbe3ef;border-radius:13px;background:#fff;color:#111827;font-weight:800;box-shadow:0 8px 18px rgba(15,23,42,.08)}.install-pointer{font-size:calc(30px + var(--font-adjust, 0px));line-height:1;color:var(--primary);margin:12px 0 4px}.install-device-content strong{max-width:360px;line-height:1.35}.install-mobile-home{position:absolute;left:50%;bottom:7px;width:72px;height:4px;transform:translateX(-50%);border-radius:8px;background:#1f2937}.install-visual-caption{margin:10px 0 0;color:var(--muted);font-size:calc(11px + var(--font-adjust, 0px));line-height:1.45;text-align:center}
.ad-metric-card{padding:12px;border:1px solid var(--line);border-radius:13px;background:rgba(148,163,184,.035)}.ad-metric-value{display:block;font-size:calc(20px + var(--font-adjust, 0px));font-weight:900;font-variant-numeric:tabular-nums}.ad-metric-label{display:block;margin-top:3px;color:var(--muted);font-size:calc(10px + var(--font-adjust, 0px));font-weight:700}.ad-spark-wrap{margin-top:14px}.ad-spark-label{margin-bottom:7px;color:var(--muted);font-size:calc(11px + var(--font-adjust, 0px));font-weight:700}.ad-spark-bars{height:72px;display:flex;gap:3px;align-items:flex-end;padding:8px;border:1px solid var(--line);border-radius:12px;background:rgba(148,163,184,.025)}.ad-spark-bar{flex:1;min-width:2px;border-radius:3px 3px 0 0;background:var(--primary);opacity:.82}.ad-detail-preview{display:grid;grid-template-columns:minmax(120px,210px) 1fr;gap:16px;align-items:start;margin-bottom:16px}.ad-detail-preview-image{display:block;width:100%;max-height:180px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#f8fafc}.ad-detail-preview h3{margin:0 0 8px}.ad-detail-preview p{margin:6px 0;line-height:1.45}.ad-detail-preview a{overflow-wrap:anywhere}.ad-detail-grid{margin:10px 0 14px}.ad-detail-grid>div{padding:10px;border:1px solid var(--line);border-radius:12px}.ad-detail-grid>div>div{margin-top:4px;color:var(--muted)}.ad-card-actions{margin-top:12px}
@media(max-width:640px){.text-size-row{align-items:flex-start;flex-direction:column}.text-size-controls{width:100%;justify-content:space-between}.install-device.mobile{height:340px}.install-cue.bottom{bottom:-278px}.ad-detail-preview{grid-template-columns:1fr}.ad-detail-preview-image{max-height:220px}.ad-detail-grid{grid-template-columns:1fr 1fr}}
/* v11.5.0 discoverable install/migration guidance and ad analytics polish */
.install-settings-actions{flex-wrap:wrap;justify-content:flex-end}
.install-guide-ready{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:12px 0;padding:10px 12px;border-radius:12px;background:rgba(41,133,245,.06);border:1px solid rgba(41,133,245,.14);color:var(--muted);font-size:calc(12px + var(--font-adjust, 0px))}
.migration-state-row{margin-top:4px}
.migration-how-visible{margin-top:12px;padding:12px 14px;border:1px solid var(--line);border-radius:13px;background:rgba(148,163,184,.03)}
.migration-how-visible .row-title{color:var(--text)}
.migration-how-visible ol{margin-bottom:0}
.ad-spark-title{margin-bottom:7px;color:var(--muted);font-size:calc(11px + var(--font-adjust, 0px));font-weight:700}
.ad-spark-column{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;min-width:12px}
.ad-spark-column span{display:block;width:100%;max-width:14px;min-height:4px;background:var(--primary);border-radius:4px 4px 2px 2px;opacity:.82}
.ad-spark-column small{font-size:calc(8px + var(--font-adjust, 0px));color:var(--muted);white-space:nowrap}
.subscription-action-cell .btn{width:100%;white-space:normal}
@media(max-width:640px){.install-settings-actions{width:100%;justify-content:flex-start}.install-settings-actions .btn{flex:1 1 170px}.install-guide-ready{align-items:flex-start}}

/* v11.6 — compact campaign list and guided migration */
.ad-campaign-line{display:grid;grid-template-columns:52px minmax(160px,1fr) minmax(80px,auto) repeat(3,minmax(62px,auto)) 34px;gap:10px;align-items:center;padding:9px 12px;margin-bottom:8px}
.ad-campaign-avatar{width:48px;height:48px;border:1px solid var(--line);border-radius:12px;padding:0;overflow:hidden;background:var(--surface,#f8fafc);cursor:pointer;display:grid;place-items:center;font-weight:900;color:var(--muted)}
.ad-campaign-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.ad-campaign-line-main{min-width:0}.ad-campaign-title-button{display:block;width:100%;padding:0;border:0;background:transparent;color:var(--text);font:inherit;font-weight:800;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.ad-campaign-line-status{display:block;margin-top:2px;color:var(--muted);font-size:calc(11px + var(--font-adjust,0px));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ad-campaign-line-package{font-size:calc(11px + var(--font-adjust,0px));font-weight:700;color:var(--muted);white-space:nowrap}.ad-campaign-line-metric{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}.ad-campaign-line-metric strong{font-variant-numeric:tabular-nums;font-size:calc(13px + var(--font-adjust,0px))}.ad-campaign-line-metric small{margin-top:3px;color:var(--muted);font-size:calc(9px + var(--font-adjust,0px));white-space:nowrap}.ad-campaign-open{width:32px;height:32px;border:0;background:transparent;color:var(--primary);font-size:25px;cursor:pointer}.ad-edit-current-image{max-height:150px;margin:0 auto 14px}.ad-edit-pending{margin-bottom:14px}
.install-settings-card{overflow:hidden}.install-mode-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.migration-flow{display:grid;gap:10px;margin-top:14px}.migration-step{display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px;background:var(--card)}.migration-step-number{width:32px;height:32px;border-radius:999px;display:grid;place-items:center;background:rgba(148,163,184,.12);font-weight:900}.migration-step.complete .migration-step-number,.migration-step.available .migration-step-number{background:color-mix(in srgb,var(--primary) 14%,transparent);color:var(--primary)}.migration-step-content{min-width:0}.migration-step-content h3{margin:0 0 4px;font-size:calc(14px + var(--font-adjust,0px))}.migration-step-content p{margin:0;color:var(--muted);line-height:1.45;font-size:calc(12px + var(--font-adjust,0px))}.migration-step-control{max-width:280px}.migration-step-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.migration-transfer-ready{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:9px;font-size:calc(11px + var(--font-adjust,0px));color:var(--muted)}.migration-code-details{margin-top:9px}.migration-code-details summary{cursor:pointer;color:var(--primary);font-weight:700}.migration-code.compact{font-size:calc(14px + var(--font-adjust,0px));margin-top:8px}.install-guide-ready.compact{margin-top:8px;padding:0;border:0;background:transparent}.migration-installed-status{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}.migration-installed-status p{color:var(--muted);margin:5px 0 10px}
.migration-launch-progress{position:fixed;inset:0;z-index:100000;background:var(--bg,#f5f7fb);display:grid;place-items:center;padding:24px;opacity:0;transition:opacity .18s ease}.migration-launch-progress.visible{opacity:1}.migration-launch-card{width:min(420px,100%);text-align:center;background:var(--card,#fff);border:1px solid var(--line,#e4e7ec);border-radius:20px;padding:24px;box-shadow:0 18px 50px rgba(15,23,42,.12)}.migration-launch-logo{width:54px;height:54px;border-radius:15px;margin:0 auto 10px;display:grid;place-items:center;background:var(--primary);color:white;font-size:25px;font-weight:900}.migration-launch-card h2{margin:0 0 8px}.migration-launch-card p{color:var(--muted);min-height:2.8em}.migration-progress-track{height:10px;border-radius:999px;overflow:hidden;background:rgba(148,163,184,.18);margin-top:14px}.migration-progress-track span{display:block;height:100%;width:0;background:var(--primary);border-radius:inherit;transition:width .2s ease}.migration-progress-percent{margin-top:6px;font-size:12px;font-weight:800;color:var(--muted)}
@media(max-width:760px){.ad-campaign-line{grid-template-columns:48px minmax(0,1fr) auto;padding:8px 10px}.ad-campaign-line-package{display:none}.ad-campaign-line-metric{display:none}.ad-campaign-open{display:block}.migration-step{grid-template-columns:32px minmax(0,1fr);align-items:start}.migration-step-control{grid-column:2;max-width:none;width:100%}.migration-step-control>.btn,.migration-step-actions,.migration-step-actions .btn{width:100%}.migration-step-actions{justify-content:stretch;display:grid;grid-template-columns:1fr}.install-mode-line{display:block}.install-mode-line>.pill{display:inline-flex;margin-top:8px}}


/* v11.7 advertising creative preview/crop + compact campaign status */
.custom-ad-image-frame{
  width:42%;max-width:260px;aspect-ratio:10/3;overflow:hidden;border-radius:10px;
  background:rgba(148,163,184,.10);flex:0 0 42%;display:grid;place-items:center;
}
.custom-ad-image-frame .custom-ad-image,.custom-ad-image{
  display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;border-radius:0;
}
.ad-composer-preview{margin:12px 0 18px}
.ad-composer-preview-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:8px}
.ad-composer-preview-head span{color:var(--muted);font-size:calc(11px + var(--font-adjust,0px));text-align:right}
.ad-live-preview{cursor:default}
.ad-crop-stage{cursor:grab;touch-action:none;user-select:none}
.ad-crop-stage.dragging{cursor:grabbing}
.ad-preview-empty{padding:14px;color:var(--muted);font-size:calc(11px + var(--font-adjust,0px));text-align:center}
.ad-input-counter{margin-top:5px;text-align:right;color:var(--muted);font-size:calc(10px + var(--font-adjust,0px))}
.ad-input-counter.limit-reached{color:var(--danger,#d92d20);font-weight:800}
.ad-detail-preview-crop{width:100%;aspect-ratio:16/9;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#f8fafc}
.ad-detail-preview-crop .ad-detail-preview-image{width:100%;height:100%;max-height:none;border:0;border-radius:0;object-fit:cover}

.ad-campaign-list-head,.ad-campaign-line{
  grid-template-columns:52px minmax(150px,1.3fr) minmax(145px,1fr) minmax(80px,.7fr) repeat(3,minmax(82px,.6fr)) 34px;
}
.ad-campaign-list-head{display:grid;gap:16px;align-items:end;padding:0 12px 5px;color:var(--muted);font-size:calc(9px + var(--font-adjust,0px));font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.ad-campaign-status-cell{min-width:0;display:flex;flex-direction:column;gap:2px}
.ad-campaign-status-cell small{display:none;color:var(--muted);font-size:calc(9px + var(--font-adjust,0px))}
.ad-campaign-status-cell strong{font-size:calc(11px + var(--font-adjust,0px));line-height:1.25;overflow-wrap:anywhere}

.migration-code-row{display:flex;align-items:center;gap:8px}
.migration-code-row .migration-code{flex:1;min-width:0}
.migration-copy-code{flex:0 0 auto}
.migration-code-entry-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}

@media(max-width:760px){
  .custom-ad{align-items:stretch}
  .custom-ad-image-frame{width:40%;flex-basis:40%;max-width:none}
  .ad-composer-preview-head{display:block}
  .ad-composer-preview-head span{display:block;margin-top:4px;text-align:left}
  .ad-campaign-list-head{display:none}
  .ad-campaign-line{grid-template-columns:48px minmax(0,1fr) minmax(105px,.8fr) 32px}
  .ad-campaign-status-cell{display:flex}
  .ad-campaign-status-cell small{display:block}
  .ad-campaign-line-package,.ad-campaign-line-metric{display:none}
}
@media(max-width:430px){
  .ad-campaign-line{grid-template-columns:44px minmax(0,1fr) minmax(94px,.9fr) 28px;gap:7px}
  .ad-campaign-status-cell strong{font-size:calc(10px + var(--font-adjust,0px))}
  .custom-ad{gap:10px;padding:8px}
  .custom-ad-image-frame{width:42%;flex-basis:42%}
}

/* v11.8 advertising review, migration progress and settings clarity */
.whats-new-card .row-sub{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
.settings-profile-subhead{font-size:calc(11px + var(--font-adjust,0px));font-weight:900;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:4px 0 6px}
.settings-account-primary{padding-top:2px}
.ad-rejection-note{margin-bottom:14px}.ad-rejection-note p{white-space:pre-wrap;overflow-wrap:anywhere}.ad-rejection-note small{display:block;margin-top:6px;color:var(--muted);line-height:1.4}
.custom-ad-copy{flex:1 1 auto}
.custom-ad-image-frame{position:relative;isolation:isolate}
.custom-ad-image-frame .custom-ad-image{pointer-events:none;user-select:none;-webkit-user-drag:none}
.ad-crop-stage{position:relative;overflow:hidden;cursor:grab;touch-action:none;overscroll-behavior:contain;-webkit-user-select:none;user-select:none}
.ad-crop-stage.dragging{cursor:grabbing;box-shadow:inset 0 0 0 2px var(--primary)}
.ad-crop-stage::after{content:'↔';position:absolute;right:7px;bottom:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:rgba(15,23,42,.68);color:#fff;font-size:13px;pointer-events:none;opacity:.7}
.migration-prepare-progress{margin-top:10px;padding:10px 11px;border:1px solid color-mix(in srgb,var(--primary) 24%,var(--line));border-radius:11px;background:color-mix(in srgb,var(--primary) 5%,var(--card))}.migration-prepare-progress-label{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:calc(11px + var(--font-adjust,0px))}.migration-prepare-progress-label strong{color:var(--primary);font-variant-numeric:tabular-nums}.migration-prepare-progress .migration-progress-track{margin-top:7px}
.migration-launch-logo{display:block;object-fit:cover;background:transparent!important;color:transparent!important;padding:0}
@media(max-width:640px){.whats-new-card{align-items:flex-start;flex-wrap:wrap}.whats-new-card .btn{margin-left:54px}.settings-account-primary{align-items:flex-start;flex-wrap:wrap}.settings-account-primary .btn{margin-left:auto}}
/* v11.8 live advertising image consistency */
.custom-ad-image-frame .custom-ad-image{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:50% 50%;display:block}
.ad-live-preview .custom-ad-image-frame,.ad-detail-preview-crop{overflow:hidden}

/* v11.9 rejected ads, reliable creative positioning, migration card and What's New */
.ad-rejection-card{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;margin:0 0 16px;padding:14px;border:1px solid rgba(217,45,32,.28);border-radius:14px;background:rgba(217,45,32,.065)}
.ad-rejection-card.compact{margin-top:8px}
.ad-rejection-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:rgba(217,45,32,.12);font-size:22px;line-height:1}
.ad-rejection-body h3{margin:0 0 8px;color:var(--danger,#d92d20);font-size:calc(15px + var(--font-adjust,0px))}
.ad-rejection-reason-label{font-size:calc(10px + var(--font-adjust,0px));font-weight:900;text-transform:uppercase;letter-spacing:.055em;color:var(--danger,#d92d20);margin-bottom:4px}
.ad-rejection-reason{margin:0;padding:9px 10px;border-radius:9px;background:rgba(255,255,255,.75);border:1px solid rgba(217,45,32,.18);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.45}
.ad-rejection-guidance{margin-top:9px;font-weight:750;line-height:1.4;color:#7a271a}

.ad-crop-stage{cursor:grab!important;touch-action:none!important;position:relative;overflow:hidden}
.ad-crop-stage.dragging{cursor:grabbing!important}
.ad-crop-stage .custom-ad-image{pointer-events:none!important;-webkit-user-drag:none!important;user-select:none!important;width:100%!important;height:100%!important;object-fit:cover!important;max-width:none!important;max-height:none!important}
/* Use the same stable image frame rules for composer, manager and live placements. */
.custom-ad{min-width:0;min-height:0}
.custom-ad-image-frame{overflow:hidden!important;min-width:0;min-height:0;align-self:center}
.custom-ad-filled .custom-ad-image-frame,.ad-live-preview .custom-ad-image-frame{display:block}
.custom-ad-filled .custom-ad-image,.ad-live-preview .custom-ad-image{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important}

.whats-new-items{display:grid;gap:9px;margin-top:7px}
.whats-new-items p{display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;margin:0;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.whats-new-number{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:color-mix(in srgb,var(--primary) 13%,transparent);color:var(--primary);font-size:11px;font-weight:900}

.welcome-app-icon{display:block;width:72px;height:72px;border-radius:18px;object-fit:cover;margin:0 auto 14px;box-shadow:0 8px 22px rgba(15,23,42,.12)}
.migration-installed-status .migration-code-entry-row{margin-top:6px}
.migration-installed-status .actions{margin-top:10px}

@media(max-width:640px){
  .ad-rejection-card{grid-template-columns:34px minmax(0,1fr);padding:12px;gap:9px}
  .ad-rejection-icon{width:32px;height:32px;font-size:18px}
  .migration-installed-status .actions{display:grid;grid-template-columns:1fr 1fr}
}

/* v11.10 — fitted/positioned ad creative, mobile What's New, analytics help */
.ad-crop-stage{position:relative;overflow:hidden!important;background:rgba(148,163,184,.08)}
.ad-crop-stage .custom-ad-image.ad-positioned-source{
  position:absolute!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  transform:translate(-50%,-50%);
  display:block!important;
  pointer-events:none!important;
  user-select:none!important;
  -webkit-user-drag:none!important;
}
/* Live/public creatives are already rendered server-side at the administrator's
   configured banner dimensions. Never apply a second client-side crop. */
.custom-ad-filled .custom-ad-image-frame .custom-ad-image,
.ad-detail-preview-crop .ad-detail-preview-image{
  object-fit:contain!important;
  object-position:50% 50%!important;
}
.ad-metric-label{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap}
.metric-help-button{display:inline-grid;place-items:center;width:19px;height:19px;padding:0;border:1px solid color-mix(in srgb,var(--primary) 35%,var(--line));border-radius:999px;background:color-mix(in srgb,var(--primary) 7%,var(--card));color:var(--primary);font:800 11px/1 system-ui;cursor:pointer}
.metric-help-button:hover,.metric-help-button:focus-visible{background:color-mix(in srgb,var(--primary) 13%,var(--card));outline:none}
.ad-metric-help>p{line-height:1.55}
.ad-metric-help .notice{margin-top:12px}
.ad-metric-help .notice p{margin:5px 0 0;line-height:1.5}

@media(max-width:640px){
  .whats-new-card{display:grid!important;grid-template-columns:42px minmax(0,1fr);gap:10px 12px!important;align-items:center!important}
  .whats-new-card .whats-new-icon{grid-column:1;grid-row:1;margin:0}
  .whats-new-card .row-main{grid-column:1/-1;grid-row:2;width:100%;min-width:0}
  .whats-new-card>.btn{grid-column:1/-1;grid-row:3;margin:2px 0 0!important;width:100%}
  .whats-new-items{width:100%;min-width:0}
  .whats-new-items p{grid-template-columns:24px minmax(0,1fr);width:100%;min-width:0}
  .whats-new-items p>span:last-child{min-width:0;overflow-wrap:break-word;word-break:normal;hyphens:auto}
}

/* v11.10.2 — transparent empty advertising image placeholder */
.ad-crop-stage-empty{background:transparent!important;border:2px dotted #d4d9e1!important;}
.ad-crop-stage-empty::after{display:none!important;}
.ad-crop-stage-empty .ad-preview-empty{width:100%;height:100%;display:grid;place-items:center;box-sizing:border-box;}

/* v11.10.2 — stable ad rotation and clearer campaign presentation */
.custom-ad-url{display:block;margin-top:5px;color:#74bd86!important;font-size:calc(10px + var(--font-adjust,0px));font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ad-adsense-probe{position:fixed!important;left:-12000px!important;top:0!important;z-index:-1!important;pointer-events:none!important;opacity:.01!important;min-height:90px!important;overflow:hidden!important}
.ad-module.ad-filled{transition:opacity .16s ease}
.ad-campaign-list-head>span:nth-child(5),.ad-campaign-list-head>span:nth-child(6),.ad-campaign-list-head>span:nth-child(7){text-align:right;white-space:nowrap}
@media(min-width:761px){.ad-campaign-line{column-gap:16px!important}.ad-campaign-list-head{column-gap:16px!important}}

/* Unified v1.0.7 — stable advertising presentation and guided campaign creation */
.custom-ad-image-frame{
  background:#fff!important;
  border:1px dotted #d4d9e1!important;
}
.custom-ad-url{
  font-weight:400!important;
  color:#74bd86!important;
}
.ad-create-stack{display:grid;gap:14px}
.ad-create-card{margin:0}
.ad-create-preview-card .ad-composer-preview{margin:0}
.ad-create-preview-card .ad-composer-preview-head{margin-top:0}
.ad-payment-card .ad-package-options{margin-bottom:12px}

/* Unified v1.0.11 — nested Capture workflow controls */
.capture-inline-actions{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap}.split-category-creator{margin-top:10px}.split-category-creator .actions{margin-top:4px}@media(max-width:640px){.capture-inline-actions{width:100%;justify-content:flex-start}.section-title:has(.capture-inline-actions){align-items:flex-start;flex-direction:column}}

/* Unified v1.0.12 — Transactions range/type filtering and responsive summary */
.transaction-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;margin:8px 0 12px;background:#e9edf3;border-radius:14px;box-shadow:0 2px 10px rgba(15,23,42,.04)}
.transaction-view-tabs button{border:0;background:transparent;color:var(--muted);font:inherit;font-weight:800;padding:10px 8px;border-radius:10px;cursor:pointer;min-width:0}
.transaction-view-tabs button.active{background:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(41,133,245,.22)}
.transaction-filter-card{padding:16px;margin-bottom:0}
.transaction-filter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.transaction-range-summary{display:flex;flex-direction:column;gap:3px;min-width:0}
.transaction-range-summary>span{font-size:calc(12px + var(--font-adjust,0px));font-weight:800;color:var(--muted)}
.transaction-range-summary>strong{font-size:calc(27px + var(--font-adjust,0px));line-height:1.1;letter-spacing:-.02em}
.transaction-range-summary>small{font-size:calc(11px + var(--font-adjust,0px));color:var(--muted)}
.transaction-documents-btn{flex:0 0 auto;white-space:nowrap}
.transaction-filter-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(170px,1.25fr);gap:10px;align-items:end}
.transaction-filter-grid .form-group{margin:0}
.transaction-filter-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.transaction-filter-footer .hint{margin:0;line-height:1.45}
.transaction-filter-footer .link-btn{flex:0 0 auto;padding:2px 0}
.transaction-list-note{margin:14px 2px 10px;color:var(--muted);font-size:calc(11px + var(--font-adjust, 0px));line-height:1.5}
.transaction-list-card{margin-bottom:8px}
@media(max-width:680px){.transaction-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.transaction-account-group{grid-column:1/-1}.transaction-filter-head{align-items:center}.transaction-range-summary>strong{font-size:calc(24px + var(--font-adjust,0px))}}
@media(max-width:430px){.transaction-filter-card{padding:14px}.transaction-filter-head{align-items:flex-start}.transaction-documents-btn{padding:9px 10px}.transaction-filter-grid{grid-template-columns:1fr}.transaction-account-group{grid-column:auto}.transaction-filter-footer{flex-direction:column;gap:6px}.transaction-filter-footer .link-btn{align-self:flex-start}.transaction-range-summary>strong{font-size:calc(22px + var(--font-adjust,0px))}}
@media(prefers-color-scheme:dark){.transaction-view-tabs{background:#1f2937}}
.announcement-pulse{display:inline-block;width:10px;height:10px;margin-left:6px;border-radius:50%;background:#ef4444;box-shadow:0 0 0 0 rgba(239,68,68,.5);animation:announcementPulse 1.7s infinite;vertical-align:middle}.announcement-list-item{display:flex;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.announcement-list-item:last-child{border-bottom:0}.announcement-list-item.unread .row-title:before{content:'•';color:#ef4444;margin-right:7px}.announcement-brief{font-size:calc(15px + var(--font-adjust,0px));line-height:1.55}.announcement-details{margin:14px 0}.announcement-details summary{cursor:pointer;color:var(--blue);font-weight:800}.announcement-full{margin-top:10px;padding:13px;border:1px solid var(--line);border-radius:12px;background:rgba(41,133,245,.04);line-height:1.55}.reminder-message{line-height:1.6}@keyframes announcementPulse{70%{box-shadow:0 0 0 9px rgba(239,68,68,0)}100%{box-shadow:0 0 0 0 rgba(239,68,68,0)}}

/* Unified v1.0.14: passive announcement center in Settings. */
.announcement-settings-title{align-items:center;gap:10px;flex-wrap:wrap}.announcement-settings-title .row-sub{margin-left:auto}.announcement-settings-card{padding-top:4px;padding-bottom:4px}.announcement-settings-item{display:flex;gap:12px;align-items:center;padding:14px 0;border-bottom:1px solid var(--line)}.announcement-settings-item:last-of-type{border-bottom:0}.announcement-settings-copy{min-width:0;flex:1}.announcement-settings-brief{margin-top:4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.announcement-settings-item.unread .row-title{font-weight:800}.announcement-new-pill{margin-left:6px;font-size:11px;background:rgba(239,68,68,.1);color:#dc2626}.announcement-view-all{display:flex;justify-content:flex-end;padding:10px 0}.announcement-settings-item .btn{flex:0 0 auto}@media(max-width:520px){.announcement-settings-title .row-sub{width:100%;margin-left:0}.announcement-settings-item{align-items:flex-start;flex-direction:column}.announcement-settings-item .btn{align-self:flex-start}}

/* Unified v1.0.15: latest-only inline announcement card. */
.announcement-settings-card.latest-only{padding:0}.announcement-inline-card{padding:16px}.announcement-inline-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.announcement-inline-title{font-size:calc(16px + var(--font-adjust,0px));line-height:1.4}.announcement-inline-body{margin-top:8px;color:var(--muted);font-size:calc(14px + var(--font-adjust,0px));line-height:1.6;white-space:normal}.announcement-inline-body.is-collapsed{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.announcement-inline-actions{display:flex;gap:14px;align-items:center;margin-top:10px}.announcement-inline-actions .link-btn{padding:0}.announcement-inline-actions .muted-link{color:var(--muted)}.announcement-settings-card.latest-only .announcement-new-pill{vertical-align:middle}@media(max-width:520px){.announcement-inline-card{padding:14px}.announcement-inline-actions{gap:12px}}

/* v1.0.21 — platform encrypted synchronization */
.sync-settings-card{overflow:visible}.sync-hero{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;margin-bottom:16px}.sync-hero.compact{margin-bottom:12px}.sync-lock{width:50px;height:50px;border-radius:16px;display:grid;place-items:center;background:#eef5ff;font-size:25px}.sync-hero h3{margin:0 0 6px}.sync-hero p{margin:0;color:var(--muted,#667085);line-height:1.55}.sync-key-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:center;padding:15px 16px;margin:14px 0;border:1px dashed #aebdce;border-radius:14px;background:#fafcff}.sync-key-card>span{grid-column:1/-1;color:var(--muted,#667085);font-size:.88rem}.sync-key-card strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;overflow-wrap:anywhere;letter-spacing:.02em;line-height:1.55}.sync-key-input{text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.sync-meta{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0 14px;color:var(--muted,#667085);font-size:.9rem}.sync-settings-card .warning-box,.modal-body .warning-box{padding:13px 14px;border:1px solid #f0d9ad;border-radius:13px;background:#fffaf1;color:#6f5523;line-height:1.5}.pill.danger{background:#feeceb;color:#b42318;border-color:#f9c7c3}.checkrow{display:flex;gap:10px;align-items:flex-start;margin:14px 0;line-height:1.45}.checkrow input{margin-top:3px}
@media(max-width:640px){.sync-hero{grid-template-columns:1fr}.sync-lock{width:44px;height:44px;border-radius:14px}.sync-key-card{grid-template-columns:1fr}.sync-key-card .btn{justify-self:start}.sync-settings-card .actions{width:100%;justify-content:flex-start;flex-wrap:wrap}.sync-settings-card .actions .btn{flex:1 1 145px}}
.profile-owner-badge{font-size:.82rem;color:var(--muted,#667085)}

.profile-owner-badge{display:inline-flex;align-items:center;margin-top:6px;font-weight:700;color:#166534}.profile-owner-unlinked{display:inline-flex;margin-top:6px;color:#9a6700;font-weight:700}

/* v1.0.34 — zero-friction Secure Cloud Sync device approval */
.sync-pair-code-wrap{display:flex;flex-direction:column;align-items:center;gap:7px;margin:14px 0;padding:16px;border:1px solid var(--border,#d7dde8);border-radius:14px;background:rgba(255,255,255,.72);text-align:center}.sync-pair-code-wrap span{font-size:.85rem;color:var(--muted,#667085)}.sync-pair-code{font-size:2rem;letter-spacing:.14em;font-variant-numeric:tabular-nums;line-height:1.1;word-break:keep-all}.sync-settings-card .actions{flex-wrap:wrap}

/* v1.0.34 organized Backup & Restore settings */
.settings-subpage-head{display:flex;align-items:flex-start;gap:14px;margin:2px 0 18px}.settings-subpage-head>div{min-width:0;flex:1}.settings-subpage-head h2{margin:0 0 5px}.settings-subpage-head p{margin:0}.migration-receive-row{margin-top:16px;padding-top:12px;border-top:1px solid var(--border,#e5e7eb)}
@media(max-width:640px){.settings-subpage-head{flex-direction:column}.settings-subpage-head .btn{align-self:flex-start}}

/* Unified v1.0.35 — visible Cloud Sync progress and duplicate-entry review */
.sync-progress-block{display:grid;gap:8px;margin:14px 0;padding:12px 13px;border:1px solid var(--line);border-radius:13px;background:var(--card)}
.sync-progress-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:calc(12px + var(--font-adjust,0px));font-weight:800}
.sync-progress-track{height:9px;border-radius:999px;background:#e7edf4;overflow:hidden}.sync-progress-track>span{display:block;height:100%;border-radius:inherit;background:var(--primary);transition:width .3s ease}
.sync-progress-count{margin-top:7px;color:var(--muted);font-size:calc(11px + var(--font-adjust,0px));font-weight:800;letter-spacing:.01em}
.sync-activity-popover{position:fixed;right:18px;bottom:92px;z-index:220;width:min(360px,calc(100vw - 28px));padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--card);box-shadow:0 18px 55px rgba(15,23,42,.22)}
.sync-activity-popover.is-attention{border-color:#e7b25f}.sync-activity-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.sync-activity-top strong{font-size:calc(14px + var(--font-adjust,0px))}.sync-activity-top span{font-size:calc(12px + var(--font-adjust,0px));font-weight:850;color:var(--primary)}.sync-activity-popover p{margin:9px 0 0;color:var(--muted);font-size:calc(12px + var(--font-adjust,0px));line-height:1.45}.sync-activity-popover .actions{margin-top:11px;justify-content:flex-end}
.duplicate-review-dialog{width:min(680px,calc(100vw - 24px))}.duplicate-review-intro{line-height:1.55;color:var(--text);margin-bottom:12px}.duplicate-review-list{display:grid;gap:10px;max-height:min(48dvh,440px);overflow:auto}.duplicate-review-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:start;padding:13px;border:1px solid var(--line);border-radius:13px;background:var(--card);cursor:pointer}.duplicate-review-row>input{margin-top:3px}.duplicate-review-copy{display:grid;gap:3px;min-width:0}.duplicate-review-copy strong{overflow-wrap:anywhere}.duplicate-review-copy small,.duplicate-review-copy span{color:var(--muted);font-size:calc(11px + var(--font-adjust,0px));line-height:1.4;overflow-wrap:anywhere}.duplicate-review-actions{margin-top:14px}
@media(max-width:640px){.sync-activity-popover{left:12px;right:12px;bottom:calc(78px + env(safe-area-inset-bottom));width:auto}.duplicate-review-dialog{width:100%;max-width:none;margin:0;align-self:end;border-radius:22px 22px 0 0}.duplicate-review-actions{display:grid;grid-template-columns:1fr}.duplicate-review-actions .btn{width:100%}}


/* Unified v1.0.36 — Budget Tracker responsive desktop workspace + mobile floating quick actions */
.mobile-quick-actions{display:none}
@media(min-width:768px){
  .app-shell{padding-bottom:108px}
  .content{width:calc(100% - 40px);max-width:1180px;padding:24px 26px}
  .topbar{min-height:82px;padding:calc(18px + env(safe-area-inset-top)) 28px 16px}
  .topbar h1{font-size:calc(30px + var(--font-adjust,0px))}
  .topbar-actions{gap:11px}
  .topbar-actions .icon-btn{width:50px;height:50px}
  .scan-receipt-icon,.share-top-icon,.voice-entry-icon{width:28px;height:28px}
  .topbar-actions #quick-add{font-size:calc(32px + var(--font-adjust,0px))}
  .tabbar{padding-top:10px;padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .tab{max-width:160px;padding:7px 4px}
  .tab svg{width:26px;height:26px}
  .tab small{font-size:calc(11px + var(--font-adjust,0px));margin-top:4px}
}
@media(min-width:1200px){
  .app-shell{padding-bottom:118px}
  .content{width:calc(100% - 56px);max-width:1360px;padding:28px 34px}
  .topbar{min-height:94px;padding:calc(22px + env(safe-area-inset-top)) 36px 20px}
  .topbar h1{font-size:calc(33px + var(--font-adjust,0px))}
  .eyebrow{font-size:calc(11px + var(--font-adjust,0px))}
  .topbar-actions{gap:13px}
  .topbar-actions .icon-btn{width:56px;height:56px}
  .scan-receipt-icon,.share-top-icon,.voice-entry-icon{width:31px;height:31px}
  .topbar-actions #quick-add{font-size:calc(36px + var(--font-adjust,0px))}
  .tabbar{padding-top:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .tab{max-width:190px;padding:9px 6px}
  .tab svg{width:30px;height:30px;stroke-width:1.9}
  .tab small{font-size:calc(12px + var(--font-adjust,0px));margin-top:5px}
}
@media(min-width:1600px){.content{max-width:1480px}}

@media(max-width:767px){
  .desktop-entry-action{display:none!important}
  .mobile-quick-actions{position:fixed;z-index:105;display:block;left:calc(100vw - 76px);top:calc(100dvh - 166px);touch-action:none;user-select:none;-webkit-user-select:none}
  .mobile-quick-fab{width:58px;height:58px;border:0;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,var(--primary),#176fe0);color:#fff;font:700 34px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 12px 30px rgba(41,133,245,.34),0 3px 9px rgba(15,23,42,.16);cursor:grab;opacity:.74;transition:opacity .3s ease,transform .16s ease,box-shadow .18s ease,background .18s ease;touch-action:none}
  .mobile-quick-actions.is-interacting .mobile-quick-fab,.mobile-quick-actions.menu-open .mobile-quick-fab,.mobile-quick-actions.is-dragging .mobile-quick-fab,.mobile-quick-fab:focus-visible,.mobile-quick-fab:active{opacity:1;background:linear-gradient(145deg,#56a6ff,var(--primary));box-shadow:0 0 0 6px rgba(41,133,245,.13),0 15px 34px rgba(41,133,245,.42);transform:scale(1.05)}
  .mobile-quick-actions.is-dragging .mobile-quick-fab{cursor:grabbing;transform:scale(1.08)}
  .mobile-quick-actions.is-snapping{transition:left .2s ease,top .2s ease}
  .mobile-quick-menu{position:absolute;right:0;bottom:calc(100% + 11px);width:max-content;min-width:190px;max-width:min(240px,calc(100vw - 24px));padding:7px;border:1px solid var(--line);border-radius:17px;background:rgba(255,255,255,.97);box-shadow:0 18px 48px rgba(15,23,42,.2);backdrop-filter:blur(18px);touch-action:auto}
  .mobile-quick-actions.menu-align-left .mobile-quick-menu{left:0;right:auto}
  .mobile-quick-actions.menu-open-below .mobile-quick-menu{top:calc(100% + 11px);bottom:auto}
  .mobile-quick-menu-item{width:100%;display:flex;align-items:center;gap:11px;border:0;border-radius:12px;background:transparent;color:var(--text);padding:11px 12px;text-align:left;font:750 calc(14px + var(--font-adjust,0px))/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;white-space:nowrap}
  .mobile-quick-menu-item:active,.mobile-quick-menu-item:focus-visible{background:rgba(41,133,245,.1);outline:none}
  .mobile-quick-menu-icon{width:24px;height:24px;flex:0 0 24px;display:grid;place-items:center;color:var(--primary);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;font-size:24px;font-weight:500}
}
@media(max-width:390px){.mobile-quick-fab{width:54px;height:54px;font-size:32px}.mobile-quick-menu{min-width:178px}.mobile-quick-menu-item{padding:10px 11px}}
@media(prefers-color-scheme:dark) and (max-width:767px){.mobile-quick-menu{background:rgba(17,24,39,.97)}}


/* Unified v1.0.37 — Budget Tracker sync status, large-screen readability and header branding */
.topbar-brand-block{min-width:0;display:flex;flex-direction:column}
.topbar-brand-row{display:flex;align-items:center;gap:9px;min-width:0}
.topbar-brand-row h1{min-width:0}
.topbar-brand-icon{display:block;width:34px;height:34px;flex:0 0 34px;border-radius:9px;object-fit:cover;box-shadow:0 2px 7px rgba(15,23,42,.1)}
.topbar-brand-row .share-top{width:36px;height:36px;flex:0 0 36px}
.topbar-brand-row .share-top-icon{width:20px;height:20px}
.text-size-top{display:grid;place-items:center;background:var(--card);color:var(--primary);border:1px solid rgba(41,133,245,.28);box-shadow:0 3px 10px rgba(15,23,42,.06);font-size:15px;font-weight:850;letter-spacing:-.04em}
.cloud-sync-status{position:relative;display:grid;place-items:center;background:var(--card);border:1px solid var(--line);color:#8a93a2;box-shadow:0 3px 10px rgba(15,23,42,.06)}
.cloud-sync-status-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cloud-sync-status.is-done{color:#169447;border-color:rgba(22,148,71,.35);background:#f1fbf4}
.cloud-sync-status.is-syncing,.cloud-sync-status.is-error{color:#dc2626;border-color:rgba(220,38,38,.35);background:#fff5f5;animation:cloudSyncPulse 1.15s ease-in-out infinite}
.cloud-sync-status.is-error .cloud-sync-status-badge{position:absolute;right:4px;top:4px;width:8px;height:8px;border-radius:50%;background:#dc2626;box-shadow:0 0 0 2px var(--card)}
@keyframes cloudSyncPulse{0%,100%{box-shadow:0 3px 10px rgba(220,38,38,.08)}50%{box-shadow:0 0 0 7px rgba(220,38,38,.14),0 5px 14px rgba(220,38,38,.2)}}
.topbar-popover{position:fixed;z-index:260;width:min(390px,calc(100vw - 24px));padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:var(--card);box-shadow:0 18px 55px rgba(15,23,42,.22)}
.topbar-popover strong{display:block;font-size:calc(14px + var(--font-adjust,0px));margin-bottom:4px}
.topbar-popover p{margin:0;color:var(--muted);font-size:calc(12px + var(--font-adjust,0px));line-height:1.45}
.text-size-popover-controls{display:grid;grid-template-columns:44px minmax(70px,1fr) 44px;align-items:center;gap:8px;margin-top:11px}
.text-size-popover-controls .btn{padding:9px}
.text-size-popover-value{text-align:center;font-weight:850}

.mobile-quick-actions.is-scroll-hidden{opacity:0;pointer-events:none;transform:scale(.92);transition:opacity .06s ease,transform .06s ease}
.mobile-quick-actions{transition:opacity .1s ease-out,transform .1s ease-out}

@media(min-width:768px){
  :root{--screen-font-boost:1px}
  body{font-size:17px}
  .topbar-brand-row{gap:11px}
  .topbar-brand-icon{width:42px;height:42px;flex-basis:42px;border-radius:11px}
  .topbar-brand-row .share-top{width:44px;height:44px;flex-basis:44px}
  .topbar-brand-row .share-top-icon{width:24px;height:24px}
  .text-size-top{font-size:17px}
  dialog.modal{width:min(780px,calc(100vw - 64px));max-height:88dvh;border-radius:26px}
  .modal-head{padding:21px 24px}
  .modal-head h2{font-size:calc(22px + var(--font-adjust,0px))}
  .modal-body{padding:24px;font-size:inherit}
  .duplicate-review-dialog{width:min(860px,calc(100vw - 64px))}
  .duplicate-review-intro{font-size:calc(15px + var(--font-adjust,0px))}
  .duplicate-review-row{padding:17px;gap:14px;border-radius:15px}
  .duplicate-review-row>input{width:19px;height:19px}
  .duplicate-review-copy strong{font-size:calc(16px + var(--font-adjust,0px))}
  .duplicate-review-copy small,.duplicate-review-copy span{font-size:calc(13px + var(--font-adjust,0px))}
  .duplicate-review-actions .btn{font-size:calc(14px + var(--font-adjust,0px));padding:12px 16px}
}
@media(min-width:1200px){
  :root{--screen-font-boost:2px}
  body{font-size:18px}
  .topbar-brand-icon{width:48px;height:48px;flex-basis:48px;border-radius:13px}
  .topbar-brand-row .share-top{width:50px;height:50px;flex-basis:50px}
  .topbar-brand-row .share-top-icon{width:27px;height:27px}
  .cloud-sync-status-icon{width:30px;height:30px}
  .text-size-top{font-size:19px}
  dialog.modal{width:min(900px,calc(100vw - 88px))}
  .duplicate-review-dialog{width:min(980px,calc(100vw - 88px))}
  .modal-head{padding:24px 28px}
  .modal-head h2{font-size:calc(24px + var(--font-adjust,0px))}
  .modal-body{padding:28px}
}
@media(max-width:767px){
  .topbar-brand-icon{width:31px;height:31px;flex-basis:31px;border-radius:8px}
  .topbar-brand-row{gap:7px}
  .topbar-brand-row .share-top{width:34px;height:34px;flex-basis:34px}
  .topbar-brand-row .share-top-icon{width:19px;height:19px}
  .topbar-actions{gap:6px}
  .topbar-actions .cloud-sync-status,.topbar-actions .text-size-top{width:38px;height:38px}
  .cloud-sync-status-icon{width:21px;height:21px}
  .text-size-top{font-size:14px}
}
@media(max-width:430px){
  .topbar{padding-left:12px;padding-right:12px}
  .topbar h1{font-size:calc(22px + var(--font-adjust,0px))}
  .topbar-brand-icon{width:29px;height:29px;flex-basis:29px}
  .topbar-brand-row .share-top{width:32px;height:32px;flex-basis:32px}
  .topbar-actions .cloud-sync-status,.topbar-actions .text-size-top{width:36px;height:36px}
}


/* Unified v1.0.39 — compact inline balance change + stable mobile FAB scroll return */
.hero-balance-label{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.hero-account-count-inline{font-size:.92em;font-weight:700;opacity:.82}
.hero-balance-amount-row{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;margin-top:6px}
.hero-balance-amount-row .amount{margin-top:0}
.hero-balance-inline-change{display:inline-flex;align-items:center;gap:5px;font-size:calc(15px + var(--font-adjust,0px));font-weight:900;line-height:1;white-space:nowrap}
.hero-balance-inline-change.is-up{color:#67df91}
.hero-balance-inline-change.is-down{color:#ef6868;text-shadow:0 1px 1px rgba(90,10,10,.18)}
.hero-balance-arrow{font-size:1.14em;font-weight:1000;line-height:1;-webkit-text-stroke:.55px currentColor;text-stroke:.55px currentColor}
@media(min-width:768px){
  .hero-balance-amount-row{gap:14px}
  .hero-balance-inline-change{font-size:calc(17px + var(--font-adjust,0px))}
}
@media(min-width:1200px){
  .hero-balance-inline-change{font-size:calc(18px + var(--font-adjust,0px))}
}


/* Unified v1.0.40 — capture close guard, true-red balance decrease, header-reachable mobile FAB */

/* Unified v1.0.41 — cleaner profiles, calmer balance red, stable three-line transaction rows */
.transaction-row{min-height:86px;align-items:center}
.transaction-row-main{display:grid;grid-template-rows:auto auto auto;align-content:center;min-width:0}
.transaction-category-line,.transaction-description-line,.transaction-meta-line{display:block;min-width:0;max-width:100%;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.transaction-category-line{line-height:1.3}
.transaction-description-line{min-height:1.35em;line-height:1.35;margin-top:3px}
.transaction-meta-line{line-height:1.3;margin-top:2px;color:var(--muted)}
@media(max-width:640px){.transaction-row{min-height:82px}.transaction-description-line,.transaction-meta-line{white-space:nowrap!important}}



/* Unified v1.0.42 — stronger balance movement indicator + restored touch pull-to-refresh */


/* Unified v1.0.45 — centered manual Cloud Sync status */
.topbar-popover.sync-status-popover{left:50%;top:50%;right:auto;bottom:auto;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:16px 17px;border-radius:18px}
.topbar-popover.sync-status-popover strong{font-size:calc(16px + var(--font-adjust,0px));margin-bottom:7px}
.topbar-popover.sync-status-popover p{font-size:calc(13px + var(--font-adjust,0px))}
@media(min-width:768px){.topbar-popover.sync-status-popover{width:min(520px,calc(100vw - 64px));padding:20px 22px;border-radius:22px}.topbar-popover.sync-status-popover strong{font-size:calc(19px + var(--font-adjust,0px))}.topbar-popover.sync-status-popover p{font-size:calc(15px + var(--font-adjust,0px))}}

/* Unified v1.0.47 — Cloud Sync settings focus target */
.sync-status-popover .sync-status-settings-link{margin-top:10px;font-weight:800}.sync-settings-card.sync-settings-focus{animation:cloudSyncSettingsFocus 2.2s ease-out}
@keyframes cloudSyncSettingsFocus{0%{box-shadow:0 0 0 0 rgba(47,139,245,0),var(--shadow)}18%{box-shadow:0 0 0 5px rgba(47,139,245,.24),var(--shadow)}100%{box-shadow:0 0 0 0 rgba(47,139,245,0),var(--shadow)}}

/* v1.0.50 startup/account verification progress */
.bt-auth-startup{position:fixed;inset:0;z-index:99998;background:rgba(246,248,252,.97);display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}
.bt-auth-startup-card{width:min(440px,100%);background:#fff;border:1px solid #e3e8ef;border-radius:22px;padding:24px;box-shadow:0 20px 70px rgba(18,32,51,.14);text-align:left;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#172033}
.bt-auth-startup-icon{display:block;width:52px;height:52px;border-radius:14px;margin-bottom:14px;box-shadow:0 6px 20px rgba(41,133,245,.16)}
.bt-auth-startup-card h2{margin:0 0 8px;font-size:21px;line-height:1.25}
.bt-auth-startup-card p{margin:0 0 16px;color:#475467;font-size:14px;line-height:1.45;font-weight:650}
.bt-auth-progress-track{height:10px;border-radius:999px;background:#e9eef5;overflow:hidden;box-shadow:inset 0 1px 2px rgba(15,23,42,.05)}
.bt-auth-progress-track>span{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,#2985f5,#42a5ff);transition:width .24s ease}
.bt-auth-progress-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-top:9px;color:#667085;font-size:12px;line-height:1.4}
.bt-auth-progress-meta span{min-width:0;flex:1}.bt-auth-progress-meta strong{flex:0 0 auto;color:#344054;font-size:12px}
@media(max-width:520px){.bt-auth-startup{padding:16px}.bt-auth-startup-card{padding:20px;border-radius:18px}.bt-auth-startup-card h2{font-size:19px}.bt-auth-progress-meta{gap:10px}}
@media(prefers-reduced-motion:reduce){.bt-auth-progress-track>span{transition:none}}
/* Cloud Sync pairing: keep normal pairing and recovery visually separate. */
.sync-pair-section{display:block}
.sync-pair-section .checkrow{margin-top:12px}
.sync-section-divider{border:0;border-top:1px solid rgba(148,163,184,.35);margin:18px 0}



/* v1.0.62 top-layer modal hardening */
body.app-modal-locked{overscroll-behavior:none}
.modal-body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.app-popover-backdrop{position:fixed;inset:0;z-index:250;background:rgba(15,23,42,.64);backdrop-filter:blur(3px);touch-action:none}
.topbar-popover-close{position:absolute;right:10px;top:9px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(100,116,139,.10);color:var(--text);font-size:24px;line-height:1;cursor:pointer}
.topbar-popover-close:hover,.topbar-popover-close:focus-visible{background:rgba(100,116,139,.18);outline:none}
.topbar-popover{z-index:260}
.topbar-popover>strong:first-of-type{padding-right:34px}
.sync-recovery-primary-action{margin:10px 0 18px!important}
@media(max-width:640px){.sync-recovery-primary-action{margin:12px 0 18px!important}.sync-recovery-primary-action .btn{width:auto;min-height:44px}}

/* v1.0.72: completed/attention sync activity is interactive and therefore modal. */
.sync-activity-popover.is-done{z-index:330}
.sync-recovery-primary-action{margin-top:12px;margin-bottom:14px}

/* v1.0.67 pairing fallback visibility */
.sync-pair-section .checkrow[hidden]{display:none!important}

/* v1.0.72 — Capture Review & Classify: sticky source preview and guided review */
.capture-review-preview{position:sticky;top:0;z-index:6;margin:0 0 14px;padding:9px;border:1px solid var(--line);border-radius:15px;background:color-mix(in srgb,var(--card) 96%,transparent);box-shadow:0 8px 20px rgba(15,23,42,.08);backdrop-filter:blur(10px)}
.capture-review-preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px}.capture-review-preview-head>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}.capture-review-preview-head strong{font-size:calc(13px + var(--font-adjust,0px))}.capture-review-preview-head small{font-size:calc(10px + var(--font-adjust,0px));color:var(--muted)}.capture-review-preview-actions{display:flex;align-items:center;gap:3px;flex:0 0 auto}.capture-review-preview-actions .icon-btn{width:32px;height:32px;font-size:calc(21px + var(--font-adjust,0px))}.capture-review-preview-actions .link-btn{font-size:calc(10px + var(--font-adjust,0px));padding:6px}
.capture-review-preview-stage{position:relative;display:block;width:100%;height:clamp(128px,24dvh,220px);padding:0;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:zoom-in}.capture-review-preview-stage img{display:block;width:100%;height:100%;object-fit:cover;transition:object-position .18s ease}.capture-review-focus-band{position:absolute;left:0;right:0;top:43%;height:14%;border-top:2px solid rgba(41,133,245,.68);border-bottom:2px solid rgba(41,133,245,.68);background:rgba(41,133,245,.09);pointer-events:none}.capture-review-open-label{position:absolute;right:7px;bottom:7px;padding:4px 7px;border-radius:999px;background:rgba(17,24,39,.78);color:#fff;font-size:calc(9px + var(--font-adjust,0px));font-weight:800;pointer-events:none}.capture-review-preview.is-collapsed{padding-bottom:7px}.capture-review-preview.is-collapsed .capture-review-preview-head{margin-bottom:0}.capture-review-preview.is-collapsed .capture-review-preview-stage{display:none}
.capture-review-counts{display:block;margin-top:3px;color:var(--muted);font-size:calc(10px + var(--font-adjust,0px));font-weight:600}.capture-review-filters{display:flex;gap:6px;overflow-x:auto;margin:2px 0 10px;padding:1px 0 3px;scrollbar-width:none}.capture-review-filters::-webkit-scrollbar{display:none}.capture-review-filters .btn{flex:0 0 auto;padding:8px 10px;font-size:calc(10px + var(--font-adjust,0px))}.capture-review-filters .btn span{display:inline-flex;min-width:19px;height:19px;padding:0 5px;align-items:center;justify-content:center;margin-left:4px;border-radius:999px;background:rgba(148,163,184,.15);font-size:calc(9px + var(--font-adjust,0px))}.capture-review-filters .btn.primary span{background:rgba(255,255,255,.2)}
.unified-line.source-active{box-shadow:0 0 0 2px rgba(41,133,245,.22);border-color:rgba(41,133,245,.5)}.unified-view-source{margin-left:auto;padding:6px 3px;font-size:calc(10px + var(--font-adjust,0px));white-space:nowrap}.unified-classification-choices{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.unified-classification-summary{display:flex;align-items:center;gap:4px;min-height:36px}.unified-classification-summary .pill{padding:7px 10px}.unified-classification-summary .pill.income{color:var(--income);background:color-mix(in srgb,var(--income) 10%,transparent)}.unified-classification-summary .pill.expense{color:var(--expense);background:color-mix(in srgb,var(--expense) 9%,transparent)}.unified-classification-summary .pill.adjustment{color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,transparent)}.capture-review-filter-empty{padding:28px 14px}
@media(max-width:640px){.capture-review-preview{margin-left:-5px;margin-right:-5px;padding:7px;top:0}.capture-review-preview-stage{height:clamp(120px,22dvh,190px)}.capture-review-preview-actions .link-btn{max-width:98px;white-space:normal;line-height:1.15}.unified-classify{margin-left:44px}.unified-view-source{margin-left:0}.unified-classification-summary{flex:1 1 auto}.capture-review-filters .btn{padding:8px 9px}}
@media(prefers-color-scheme:dark){.capture-review-preview-stage{background:#fff}.capture-review-open-label{background:rgba(17,24,39,.86)}}

/* v1.0.72 — Capture Step 1 Preview & Select + Step 2 Classify */
.capture-select-stage{display:flex;flex-direction:column;gap:12px}
.capture-select-intro,.capture-classify-intro{display:flex;flex-direction:column;gap:5px;margin:2px 0 4px}.capture-select-intro h3,.capture-classify-intro h3{margin:0;font-size:calc(19px + var(--font-adjust,0px))}.capture-select-intro p,.capture-classify-intro p{margin:0;color:var(--muted);line-height:1.45}.capture-step-badge{align-self:flex-start;padding:4px 8px;border-radius:999px;background:color-mix(in srgb,var(--primary) 10%,transparent);color:var(--primary);font-size:calc(10px + var(--font-adjust,0px));font-weight:800;text-transform:uppercase;letter-spacing:.04em}.capture-select-summary{margin-top:3px;color:var(--text);font-size:calc(12px + var(--font-adjust,0px))}
.capture-select-toolbar{position:sticky;top:0;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--card) 96%,transparent);box-shadow:0 5px 14px rgba(15,23,42,.07);backdrop-filter:blur(10px)}.capture-select-nav,.capture-select-bulk{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.capture-select-toolbar .btn{padding:8px 11px}.capture-select-toolbar .link-btn{padding:6px 7px}.capture-select-counter{font-size:calc(11px + var(--font-adjust,0px));font-weight:750;color:var(--muted)}
.capture-select-image-scroll{max-height:min(62dvh,720px);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1px rgba(15,23,42,.025);-webkit-overflow-scrolling:touch}.capture-select-image-canvas{position:relative;width:100%;min-height:160px}.capture-select-image-canvas>img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.capture-select-hotspot{position:absolute;z-index:3;display:flex;align-items:flex-start;justify-content:flex-end;min-width:44px;min-height:30px;margin:0;padding:0;border:2px solid rgba(41,133,245,.62);border-radius:8px;background:rgba(41,133,245,.08);box-shadow:0 1px 4px rgba(15,23,42,.12);cursor:pointer;touch-action:manipulation}.capture-select-hotspot:hover{background:rgba(41,133,245,.14)}.capture-select-hotspot.is-active{outline:3px solid rgba(41,133,245,.22);outline-offset:2px}.capture-select-hotspot.is-selected{border-color:#15803d;background:rgba(34,197,94,.17);box-shadow:0 0 0 2px rgba(34,197,94,.10)}.capture-select-hotspot.is-fallback{border-style:dashed}.capture-select-check{position:absolute;right:-9px;top:-11px;display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:var(--primary);color:#fff;border:2px solid #fff;font-size:13px;font-weight:900;line-height:1}.capture-select-hotspot.is-selected .capture-select-check{background:#15803d}.capture-select-hint{margin:0}.capture-classify-intro{padding:10px 12px;border:1px solid var(--line);border-radius:13px;background:color-mix(in srgb,var(--primary) 3%,var(--card))}
@media(max-width:640px){.capture-select-toolbar{align-items:flex-start;flex-direction:column}.capture-select-bulk{width:100%;justify-content:space-between}.capture-select-image-scroll{max-height:58dvh;border-radius:12px}.capture-select-hotspot{min-width:48px;min-height:34px;border-width:2px}.capture-select-check{width:24px;height:24px;right:-10px;top:-12px}.capture-select-intro h3,.capture-classify-intro h3{font-size:calc(18px + var(--font-adjust,0px))}}
@media(prefers-color-scheme:dark){.capture-select-image-scroll{background:#fff}.capture-select-check{border-color:#fff}}

/* v1.0.73 Capture step-header, missed-OCR entry, bulk selection and custom date calendar */
.capture-step-modal-head{align-items:flex-start;gap:12px}
.capture-step-modal-heading{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.capture-step-modal-title{display:flex;align-items:center;gap:9px;min-width:0}
.capture-step-modal-title h2{min-width:0}
.capture-step-modal-head>.icon-btn{flex:0 0 auto}
.capture-step-back{align-self:flex-start;padding:2px 0 0;text-align:left;font-size:calc(12px + var(--font-adjust,0px));line-height:1.25}
.capture-step-instructions{margin:0;color:var(--muted);line-height:1.48;font-size:calc(13px + var(--font-adjust,0px))}
.capture-select-toolbar{top:0}
.capture-select-toolbar>.capture-select-summary{margin:0;white-space:nowrap}
.capture-select-image-canvas[data-capture-select-canvas]{cursor:crosshair;touch-action:pan-y pan-x pinch-zoom}
.capture-missed-editor{position:absolute;z-index:12;transform:translate(-50%,8px);width:min(270px,calc(100% - 24px));padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--card);box-shadow:0 12px 32px rgba(15,23,42,.22);text-align:left;cursor:default}
.capture-missed-editor[hidden]{display:none!important}
.capture-missed-editor>strong{display:block;margin-bottom:8px}
.capture-missed-editor label{display:block;margin:7px 0 4px;font-size:calc(11px + var(--font-adjust,0px));font-weight:800;color:var(--muted)}
.capture-missed-editor .input{font-size:16px;padding:9px 10px}
.capture-missed-editor .actions{margin-top:9px}
.capture-missed-editor .btn{padding:8px 10px}

button.unified-date-picker{font:inherit;text-align:left;margin:0;appearance:none;-webkit-appearance:none}
.unified-date-picker{font-size:calc(12px + var(--font-adjust,0px));min-height:40px}
.unified-date-picker-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.capture-calendar{display:flex;flex-direction:column;gap:12px;min-width:0}
.capture-calendar-nav{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:8px}
.capture-calendar-nav strong{text-align:center;font-size:calc(16px + var(--font-adjust,0px))}
.capture-calendar-weekdays,.capture-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.capture-calendar-weekdays span{text-align:center;color:var(--muted);font-size:calc(11px + var(--font-adjust,0px));font-weight:800;padding:4px 0}
.capture-calendar-day,.capture-calendar-empty{aspect-ratio:1;min-width:0}
.capture-calendar-day{border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--text);font:inherit;font-weight:750;cursor:pointer;touch-action:manipulation}
.capture-calendar-day.is-today{border-color:var(--primary)}
.capture-calendar-day.is-selected{background:var(--primary);border-color:var(--primary);color:#fff}
.capture-calendar-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}

@media(max-width:640px){
  .capture-step-modal-head{padding:14px 14px 11px}
  .capture-step-modal-title{gap:7px}
  .capture-step-modal-title h2{font-size:calc(19px + var(--font-adjust,0px))}
  .capture-step-back{font-size:calc(11px + var(--font-adjust,0px));padding-top:1px}
  .capture-select-toolbar{flex-direction:row;align-items:center;gap:6px;padding:7px 8px}
  .capture-select-bulk{width:auto;margin-left:auto;justify-content:flex-end;gap:2px}
  .capture-select-toolbar .link-btn{padding:5px 6px;font-size:calc(10px + var(--font-adjust,0px))}
  .capture-missed-editor{width:min(250px,calc(100% - 18px));transform:translate(-50%,6px)}
  .unified-date-picker{width:132px;min-height:42px;font-size:16px}
  .capture-calendar-day{min-height:40px;font-size:16px}
}


/* v1.0.74 Capture review refinements: one scroll surface, long-press edit, iOS focus zoom safety */
.capture-select-image-scroll{max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important;-webkit-overflow-scrolling:auto}
.capture-detected-editor{z-index:13}
.capture-select-hotspot{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
@supports (-webkit-touch-callout:none){
  @media(max-width:760px){
    input.input:not(.currency-input),select.select,textarea.input,
    input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=button]):not([type=submit]):not([type=reset]),select,textarea{font-size:16px!important}
  }
}

/* v1.0.75 Budget Tracker modal + Capture desktop/mobile refinements */
.modal[open]{display:flex;flex-direction:column;overflow:hidden}
.modal[open]>.modal-body{flex:1 1 auto;min-height:0;overflow:auto}
@media(min-width:641px) and (pointer:fine){
  dialog.modal[open]{min-width:360px;min-height:240px;box-sizing:border-box}
  .budget-modal-resize-handle{position:absolute;z-index:80;display:block;touch-action:none;user-select:none}
  .budget-modal-resize-handle.is-n,.budget-modal-resize-handle.is-s{left:12px;right:12px;height:10px;cursor:ns-resize}
  .budget-modal-resize-handle.is-n{top:-5px}.budget-modal-resize-handle.is-s{bottom:-5px}
  .budget-modal-resize-handle.is-e,.budget-modal-resize-handle.is-w{top:12px;bottom:12px;width:10px;cursor:ew-resize}
  .budget-modal-resize-handle.is-e{right:-5px}.budget-modal-resize-handle.is-w{left:-5px}
  .budget-modal-resize-handle.is-ne,.budget-modal-resize-handle.is-nw,.budget-modal-resize-handle.is-se,.budget-modal-resize-handle.is-sw{width:18px;height:18px}
  .budget-modal-resize-handle.is-ne{top:-7px;right:-7px;cursor:nesw-resize}.budget-modal-resize-handle.is-nw{top:-7px;left:-7px;cursor:nwse-resize}
  .budget-modal-resize-handle.is-se{right:-7px;bottom:-7px;cursor:nwse-resize}.budget-modal-resize-handle.is-sw{left:-7px;bottom:-7px;cursor:nesw-resize}
}
.capture-sticky-thumbnail{flex:0 0 auto;position:relative;z-index:6;padding:7px 18px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--card) 97%,transparent);backdrop-filter:blur(10px)}
.capture-sticky-thumbnail-button{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:10px;align-items:center;width:100%;padding:0;border:0;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:zoom-in}
.capture-sticky-thumbnail-button img{display:block;width:68px;height:46px;object-fit:cover;border:1px solid var(--line);border-radius:9px;background:#fff}
.capture-sticky-thumbnail-button span:not(.capture-sticky-thumbnail-open){display:grid;gap:2px;min-width:0}.capture-sticky-thumbnail-button strong{font-size:calc(12px + var(--font-adjust,0px));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.capture-sticky-thumbnail-button small{font-size:calc(10px + var(--font-adjust,0px));color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.capture-sticky-thumbnail-open{font-size:18px;color:var(--primary);font-weight:800}
.capture-classify-document-date{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.capture-classify-selection-section,.capture-classify-actions-section{border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--card) 97%,transparent);padding:10px 12px;margin:10px 0}
.capture-classify-selection-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.capture-classify-selection-row>strong{font-size:calc(12px + var(--font-adjust,0px))}
.capture-classify-actions-section>strong{display:block;margin-bottom:8px;font-size:calc(12px + var(--font-adjust,0px));color:var(--muted)}
.capture-classify-actions-section[hidden]{display:none!important}.capture-classify-actions-section .unified-bulk-classify{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
@media(max-width:640px){
  .capture-sticky-thumbnail{padding:6px 12px}.capture-sticky-thumbnail-button{grid-template-columns:56px minmax(0,1fr) auto;gap:8px}.capture-sticky-thumbnail-button img{width:56px;height:40px}
  .capture-classify-selection-section,.capture-classify-actions-section{padding:9px 10px}
}

/* v1.0.76 — Capture responsive control sizing, stable review transitions, and final-step polish */
.capture-flow-primary,
.capture-responsive-button{
  min-height:clamp(44px,4.2vw,60px);
  padding:clamp(11px,1.05vw,16px) clamp(16px,1.6vw,24px);
  font-size:clamp(13px,calc(8px + .58vw),18px);
  line-height:1.2;
}
.capture-responsive-link,
.capture-select-bulk .link-btn{
  min-height:clamp(34px,3vw,44px);
  padding:clamp(6px,.7vw,10px) clamp(8px,.9vw,13px);
  font-size:clamp(11px,calc(7px + .48vw),16px);
  line-height:1.25;
}
.capture-select-check{
  width:clamp(24px,2.15vw,32px);
  height:clamp(24px,2.15vw,32px);
  right:clamp(-13px,-.8vw,-9px);
  top:clamp(-14px,-.85vw,-10px);
  font-size:clamp(14px,1.35vw,20px);
}
.capture-sticky-thumbnail-open{
  min-width:clamp(28px,2.5vw,38px);
  min-height:clamp(28px,2.5vw,38px);
  display:grid;
  place-items:center;
  font-size:clamp(20px,1.8vw,29px);
}
.capture-sticky-thumbnail-button strong{font-size:clamp(12px,calc(7px + .5vw),16px)}
.capture-sticky-thumbnail-button small{font-size:clamp(10px,calc(6px + .42vw),14px)}
.capture-document-date-picker{width:100%;min-height:46px}
.capture-date-required-message{
  color:var(--expense);
  font-size:calc(12px + var(--font-adjust,0px));
  font-weight:500;
  font-style:normal;
  line-height:1.35;
}
.statement-category-row.statement-bulk-row{align-items:center}
.statement-category-row.statement-bulk-row .statement-category-main{
  justify-self:start;
  align-items:flex-start;
  width:100%;
  text-align:left;
}
.statement-category-row.statement-bulk-row .statement-category-actions{justify-self:end}
.capture-final-summary span{font-size:clamp(13px,calc(7px + .55vw),18px)}
.capture-final-summary strong{font-size:clamp(30px,3.2vw,48px)}
.capture-final-summary small{font-size:clamp(12px,calc(7px + .5vw),17px)}
.capture-final-actions{margin-top:14px;align-items:stretch}
.capture-final-actions .btn{flex:1 1 190px}
.capture-row-resolving{pointer-events:none;animation:captureResolvedFade .85s ease forwards}
@keyframes captureResolvedFade{0%,24%{opacity:1}100%{opacity:0}}

@media(min-width:1000px){
  .capture-step-modal-title h2{font-size:clamp(22px,1.45vw,30px)}
  .capture-step-badge{font-size:clamp(11px,.75vw,14px);padding:5px 10px}
  .capture-step-back{font-size:clamp(13px,.82vw,16px)}
  .capture-select-toolbar{padding:10px 12px}
  .capture-select-toolbar>.capture-select-summary{font-size:clamp(13px,.85vw,16px)}
  .unified-capture .section-title .capture-responsive-link,
  .unified-categorize .capture-responsive-link{font-size:clamp(13px,.85vw,17px)}
  .statement-category-main strong{font-size:clamp(14px,.9vw,18px)}
  .statement-category-main small{font-size:clamp(12px,.75vw,15px)}
}

@media(max-width:640px){
  .unified-capture .unified-summary-grid{display:none}
  .capture-flow-primary,.capture-responsive-button{min-height:46px;font-size:14px;padding:12px 14px}
  .capture-responsive-link,.capture-select-bulk .link-btn{min-height:36px;font-size:12px;padding:7px 8px}
  .capture-select-check{width:25px;height:25px;right:-10px;top:-12px;font-size:15px}
  .capture-sticky-thumbnail-open{min-width:30px;min-height:30px;font-size:21px}
  .capture-final-actions{display:grid;grid-template-columns:1fr}
  .capture-final-actions .btn{width:100%}
}

@media(prefers-reduced-motion:reduce){
  .capture-row-resolving{animation-duration:.12s}
}

@media(min-width:900px){
  .unified-capture .statement-check input,
  .unified-categorize .statement-check input{width:clamp(18px,1.25vw,24px);height:clamp(18px,1.25vw,24px)}
}

@media(min-width:1000px){
  .unified-capture .btn:not(.icon-btn),
  .unified-categorize .btn:not(.icon-btn),
  .capture-final-stage .btn:not(.icon-btn){font-size:clamp(13px,.82vw,17px);padding:clamp(10px,.8vw,14px) clamp(13px,1vw,18px)}
  .unified-capture .link-btn,
  .unified-categorize .link-btn,
  .capture-final-stage .link-btn{font-size:clamp(12px,.75vw,16px)}
  .unified-capture .pill,
  .unified-categorize .pill{font-size:clamp(11px,.72vw,15px)}
}

/* v1.0.80 — Capture Step 3/4 live-state and alignment refinements */
.capture-classify-selection-row{align-items:center}
.capture-classify-selection-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.capture-add-item-link{margin-left:auto;flex:0 0 auto}
.capture-attention-empty{padding:24px 14px;border:1px solid transparent;border-radius:12px;font-weight:700}
.capture-attention-empty.is-warning{color:var(--expense);border-color:color-mix(in srgb,var(--expense) 24%,transparent);background:color-mix(in srgb,var(--expense) 6%,transparent)}
.capture-attention-empty.is-complete{color:var(--income);border-color:color-mix(in srgb,var(--income) 24%,transparent);background:color-mix(in srgb,var(--income) 6%,transparent)}
.capture-review-filters .capture-filter-new{animation:captureFilterArrive 1s ease both}
@keyframes captureFilterArrive{0%{opacity:0;transform:translateY(-5px) scale(.96)}45%{opacity:1;transform:translateY(0) scale(1.035)}100%{opacity:1;transform:translateY(0) scale(1)}}

/* Keep Step 4 transaction identity anchored immediately beside its checkbox. */
.statement-category-row.statement-bulk-row{grid-template-columns:34px minmax(0,1fr);align-items:start}
.statement-category-row.statement-bulk-row .statement-category-check{grid-column:1;grid-row:1;align-self:start;margin-top:2px}
.statement-category-row.statement-bulk-row .statement-category-content{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;width:100%;justify-self:stretch;text-align:left}
.statement-category-row.statement-bulk-row .statement-category-main{align-items:flex-start;min-width:0;width:100%;text-align:left;margin:0}
.statement-category-row.statement-bulk-row .statement-category-actions{justify-self:start;align-self:flex-start;justify-content:flex-start;margin:0}

@media(max-width:760px){
  .statement-category-row.statement-bulk-row{grid-template-columns:30px minmax(0,1fr)}
  .capture-classify-selection-row{align-items:flex-start}
  .capture-add-item-link{margin-left:auto}
}

@media(prefers-reduced-motion:reduce){.capture-review-filters .capture-filter-new{animation-duration:.12s}}

/* v1.0.80 — Capture Step 3 filter emphasis + Step 4 unassigned warning */
.capture-review-filters .capture-filter-attention.is-active{
  background:var(--card);
  color:var(--text);
  border-color:rgba(245,158,11,.58);
  box-shadow:0 0 0 2px rgba(245,158,11,.10);
}
.capture-review-filters .capture-filter-attention span{
  color:#a35b00;
  background:rgba(245,158,11,.14);
  font-weight:900;
}
.capture-review-filters .capture-filter-ready span{
  color:var(--income);
  background:color-mix(in srgb,var(--income) 12%,transparent);
  font-weight:900;
}
.capture-review-filters .capture-filter-ready.primary span{
  color:var(--income);
  background:rgba(255,255,255,.88);
}
.statement-category-actions .pill.capture-unassigned-warning{
  color:#a35b00;
  background:rgba(245,158,11,.14);
  border:1px solid rgba(245,158,11,.34);
}
@media(prefers-color-scheme:dark){
  .capture-review-filters .capture-filter-attention.is-active{background:var(--card);color:var(--text)}
  .capture-review-filters .capture-filter-attention span,.statement-category-actions .pill.capture-unassigned-warning{color:#fbbf24;background:rgba(245,158,11,.13)}
}
