:root {
  color-scheme: light;
  --ink: #122428;
  --muted: #657579;
  --soft: #8e9a9c;
  --paper: #f5f5ef;
  --surface: #ffffff;
  --surface-2: #f0f1ea;
  --navy: #10272b;
  --navy-2: #17383b;
  --lime: #c9f36a;
  --lime-strong: #a8db40;
  --blue: #cee8f4;
  --blue-ink: #195369;
  --peach: #ffe0cf;
  --peach-ink: #94442b;
  --lilac: #e9def7;
  --lilac-ink: #66428a;
  --green: #28765b;
  --green-soft: #e1f3e9;
  --red: #b54444;
  --red-soft: #fae8e5;
  --amber: #9d661c;
  --amber-soft: #fff0ce;
  --line: #dde2dc;
  --shadow-sm: 0 1px 2px rgba(12, 31, 34, .04), 0 8px 22px rgba(12, 31, 34, .04);
  --shadow-lg: 0 30px 70px rgba(8, 25, 28, .2);
  --radius: 20px;
  --font-display: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; overflow-x: hidden; background: var(--paper); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 200; top: 10px; left: 10px; padding: 10px 14px; border-radius: 9px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(52, 118, 91, .3); outline-offset: 2px; }

.session-locked { display: none !important; }
.auth-screen { display: grid; grid-template-columns: minmax(390px, .85fr) minmax(500px, 1.15fr); min-height: 100vh; background: var(--surface); }
.auth-screen.hidden { display: none; }
.auth-art { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 38px clamp(34px, 5vw, 74px); color: white; background: var(--navy); }
.auth-art::before { position: absolute; right: -180px; bottom: -160px; width: 530px; height: 530px; border: 90px solid rgba(201,243,106,.14); border-radius: 50%; content: ""; }
.auth-art::after { position: absolute; top: 15%; left: 50%; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(99,173,164,.18), transparent 68%); content: ""; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 750; letter-spacing: -.8px; }
.auth-art-copy { position: relative; z-index: 1; max-width: 530px; margin: auto 0; }
.auth-art-copy .eyebrow { color: var(--lime); }
.auth-art-copy h1 { margin: 8px 0 16px; font-family: var(--font-display); font-size: clamp(38px, 4.2vw, 60px); font-weight: 690; letter-spacing: -2.5px; line-height: 1.03; }
.auth-art-copy p { max-width: 470px; margin: 0; color: #a9bbb7; font-size: 13px; line-height: 1.7; }
.auth-assurance { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; width: fit-content; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); }
.auth-assurance > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--navy); background: var(--lime); }
.auth-assurance svg { width: 16px; }
.auth-assurance strong, .auth-assurance small { display: block; }
.auth-assurance strong { font-size: 9px; }
.auth-assurance small { margin-top: 3px; color: #9db0ac; font-size: 7px; }
.auth-main { display: grid; place-items: center; min-height: 100vh; padding: 40px clamp(28px, 7vw, 110px); }
.auth-panel { width: min(430px, 100%); }
.auth-mobile-brand { display: none; }
.auth-kicker { display: block; margin-bottom: 8px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-panel > h2 { margin: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: -1.2px; }
.auth-panel > p { margin: 9px 0 21px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.demo-role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 17px; }
.demo-role-picker button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; }
.demo-role-picker button:hover { border-color: var(--green); background: #f8fbf8; }
.demo-role-picker .avatar { flex: 0 0 34px; }
.demo-role-picker .avatar.admin { color: white; background: var(--green); }
.demo-role-picker button > span:last-child { min-width: 0; }
.demo-role-picker strong, .demo-role-picker small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-role-picker strong { font-size: 9px; }
.demo-role-picker small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .field input { font-size: 11px; }
.field-label-row { display: flex !important; align-items: center; justify-content: space-between; }
.field-label-row button { padding: 0; color: var(--green); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.password-field button { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; transform: translateY(-50%); }
.password-field button:hover { background: var(--surface-2); }
.password-field svg { width: 16px; }
.auth-submit { width: 100%; min-height: 47px; }
.auth-error { min-height: 17px; margin: -4px 0 5px; color: var(--red); font-size: 8px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: var(--soft); font-size: 8px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--line); content: ""; }
.passkey-button { width: 100%; min-height: 46px; }
.auth-demo-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 16px; padding: 10px 11px; border-radius: 10px; color: #766136; background: #fff9ea; font-size: 7px; line-height: 1.5; }
.auth-demo-note svg { flex: 0 0 auto; width: 13px; }
.auth-news-link { display: block; margin-top: 13px; color: var(--green); font-size: 9px; font-weight: 750; text-align: center; text-decoration: none; }
.auth-news-link:hover { text-decoration: underline; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; padding: 0; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.auth-back svg { width: 13px; transform: rotate(180deg); }
.auth-confirm { text-align: center; }
.auth-confirm-icon { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 22px; border-radius: 50%; color: var(--navy); background: var(--lime); box-shadow: 0 0 0 9px rgba(201,243,106,.18); }
.auth-confirm-icon svg { width: 27px; }
.auth-confirm .auth-kicker { margin-top: 10px; }

.app-shell { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; z-index: 50; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 28px 18px 18px; color: #e8f0ec; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 34px; font-family: var(--font-display); font-size: 22px; font-weight: 750; letter-spacing: -.9px; }
.brand-mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 9px; background: var(--lime); }
.brand-mark i:first-child { width: 14px; height: 17px; border: 4px solid var(--navy); border-radius: 5px 8px 8px 5px; }
.brand-mark i:last-child { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--navy); }
.main-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; color: #9eb0ad; background: transparent; font-size: 13px; font-weight: 570; text-align: left; cursor: pointer; transition: .18s ease; }
.nav-item svg { width: 18px; margin-right: 12px; }
.nav-item:hover { color: white; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--navy); background: var(--lime); font-weight: 700; }
.nav-pill { min-width: 21px; margin-left: auto; padding: 3px 6px; border-radius: 10px; color: white; background: rgba(255,255,255,.11); font-size: 9px; text-align: center; }
.nav-item.active .nav-pill { color: white; background: var(--navy); }
.sidebar-card { margin-top: auto; padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 15px; background: rgba(255,255,255,.055); }
.sidebar-card-icon { display: grid; place-items: center; width: 31px; height: 31px; margin-bottom: 12px; border-radius: 9px; color: var(--navy); background: var(--lime); }
.sidebar-card-icon svg { width: 15px; }
.sidebar-card strong { display: block; font-family: var(--font-display); font-size: 12px; }
.sidebar-card p { margin: 4px 0 11px; color: #9eb0ad; font-size: 10px; }
.sidebar-card a { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: 10px; font-weight: 700; text-decoration: none; }
.sidebar-card a svg { width: 13px; }
.profile-card { display: grid; grid-template-columns: 35px 1fr 18px; align-items: center; gap: 9px; width: 100%; margin-top: 13px; padding: 10px; border-radius: 12px; color: white; background: transparent; text-align: left; cursor: pointer; }
.profile-card:hover { background: rgba(255,255,255,.06); }
.profile-card > span:nth-child(2) { min-width: 0; }
.profile-card strong, .profile-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-card strong { font-size: 10px; }
.profile-card small { margin-top: 2px; color: #91a5a1; font-size: 9px; }
.profile-card > svg { width: 16px; color: #91a5a1; }
.avatar, .top-avatar { display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: var(--peach); font-size: 10px; font-weight: 800; }
.avatar { width: 35px; height: 35px; }
.sidebar-scrim { display: none; }

.app-main { min-width: 0; }
.topbar { position: sticky; z-index: 40; top: 0; display: flex; align-items: center; justify-content: space-between; height: 74px; padding: 0 clamp(22px, 4vw, 54px); border-bottom: 1px solid rgba(211, 217, 211, .82); background: rgba(245,245,239,.9); backdrop-filter: blur(15px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--surface); cursor: pointer; }
.icon-button:hover { border-color: #c1cbc3; background: #fbfcf9; }
.icon-button svg { width: 18px; }
.menu-button { display: none; }
.search-button { display: flex; align-items: center; width: min(29vw, 330px); height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: var(--surface); cursor: text; }
.search-button svg { width: 16px; margin-right: 9px; }
.search-button span { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
kbd { margin-left: auto; padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--soft); background: var(--surface-2); font-family: inherit; font-size: 8px; }
.session-chip { display: inline-flex; align-items: center; gap: 7px; margin-right: 5px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 16px; color: var(--green); background: rgba(255,255,255,.6); font-size: 9px; font-weight: 700; }
.session-chip i { width: 6px; height: 6px; border-radius: 50%; background: #3ea478; box-shadow: 0 0 0 3px rgba(62,164,120,.13); }
.unread-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border: 2px solid white; border-radius: 50%; background: #ed7658; }
.top-avatar { width: 38px; height: 38px; border: 0; cursor: pointer; }
.page-content { width: min(100%, 1370px); min-height: calc(100vh - 74px); margin: 0 auto; padding: 38px clamp(22px, 4vw, 54px) 60px; }
.page-enter { animation: pageIn .28s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.mobile-nav { display: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow svg { width: 13px; }
.greeting-row, .page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.greeting-row h1, .page-heading h1 { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 42px); font-weight: 720; letter-spacing: -1.7px; line-height: 1.08; }
.greeting-row p, .page-heading p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.heading-actions { display: flex; gap: 9px; }
.primary-button, .secondary-button, .text-button, .danger-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 11px; font-size: 11px; font-weight: 750; cursor: pointer; transition: .16s ease; }
.primary-button { color: white; background: var(--navy); box-shadow: 0 7px 15px rgba(16,39,43,.12); }
.primary-button:hover { background: #1b3a3e; transform: translateY(-1px); }
.primary-button.lime { color: var(--navy); background: var(--lime); box-shadow: none; }
.primary-button.lime:hover { background: #d3f681; }
.primary-button:disabled { color: #8c9997; background: #dce2dd; box-shadow: none; cursor: not-allowed; transform: none; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.secondary-button:hover { border-color: #bfc9c1; background: #fbfcfa; }
.text-button { min-height: 30px; padding: 0 4px; color: var(--green); background: transparent; }
.danger-button { color: var(--red); background: var(--red-soft); }
.primary-button svg, .secondary-button svg, .danger-button svg { width: 16px; }

.integration-banner { display: none; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 14px; border: 1px solid #cbdab0; border-radius: 14px; background: #f1f8dc; }
.integration-banner.show { display: grid; }
.integration-banner > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--navy); background: var(--lime); }
.integration-banner > span svg { width: 17px; }
.integration-banner strong, .integration-banner small { display: block; }
.integration-banner strong { font-size: 11px; }
.integration-banner small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.integration-banner button { padding: 8px 11px; border-radius: 8px; color: var(--navy); background: rgba(16,39,43,.07); font-size: 9px; font-weight: 700; cursor: pointer; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .7fr); gap: 18px; margin-bottom: 18px; }
.balance-card { position: relative; min-height: 252px; overflow: hidden; padding: 27px 29px; border-radius: 24px; color: #eff8f4; background: var(--navy); box-shadow: 0 18px 40px rgba(16,39,43,.14); }
.balance-card::before { position: absolute; right: -65px; bottom: -100px; width: 295px; height: 295px; border: 62px solid rgba(201,243,106,.17); border-radius: 50%; content: ""; }
.balance-card::after { position: absolute; top: -70px; right: 120px; width: 175px; height: 175px; border-radius: 50%; background: radial-gradient(circle at 70% 80%, rgba(121,192,181,.16), transparent 70%); content: ""; }
.balance-top, .balance-main, .balance-bottom { position: relative; z-index: 1; }
.balance-top { display: flex; align-items: center; justify-content: space-between; }
.account-label { display: flex; align-items: center; gap: 9px; color: #adc0bc; font-size: 10px; }
.bank-dot { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: white; background: #f3b719; font-weight: 800; }
.balance-top button { display: flex; align-items: center; gap: 5px; padding: 6px 8px; color: #b6c6c3; background: transparent; font-size: 9px; cursor: pointer; }
.balance-top button svg { width: 13px; }
.balance-main { margin-top: 23px; }
.balance-main span { display: block; margin-bottom: 5px; color: #9fb3af; font-size: 9px; }
.balance-main strong { font-family: var(--font-display); font-size: clamp(34px, 4vw, 46px); font-weight: 700; letter-spacing: -2px; }
.balance-main strong small { font-size: .55em; font-weight: 550; letter-spacing: -.5px; }
.balance-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 23px; }
.balance-meta { display: flex; gap: 24px; }
.balance-meta span, .balance-meta strong { display: block; }
.balance-meta span { color: #8fa5a1; font-size: 8px; }
.balance-meta strong { margin-top: 3px; font-size: 10px; }
.balance-trend { display: inline-flex; align-items: center; gap: 4px; color: var(--lime); font-size: 9px; }
.balance-trend svg { width: 12px; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action-tile { position: relative; display: flex; min-height: 121px; flex-direction: column; justify-content: space-between; padding: 16px; overflow: hidden; border-radius: 18px; text-align: left; cursor: pointer; transition: .18s ease; }
.action-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.action-tile.pay { color: var(--navy); background: var(--lime); }
.action-tile.receive { color: var(--blue-ink); background: var(--blue); }
.action-tile.split { color: var(--lilac-ink); background: var(--lilac); }
.action-tile.scan { color: var(--peach-ink); background: var(--peach); }
.action-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.55); }
.action-icon svg { width: 17px; }
.action-tile strong { font-family: var(--font-display); font-size: 12px; }
.action-tile small { display: block; margin-top: 2px; opacity: .68; font-size: 8px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .75fr); gap: 18px; align-items: start; }
.content-grid > *, .content-grid .stack, .people-layout > * { min-width: 0; }
.stack { display: grid; gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 21px 13px; }
.card-head h2 { margin: 0; font-family: var(--font-display); font-size: 14px; letter-spacing: -.25px; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.card-head .text-button svg { width: 13px; }
.activity-list { padding: 0 20px 7px; }
.activity-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; gap: 11px; width: 100%; min-height: 69px; padding: 7px 0; border-top: 1px solid #edf0ec; background: transparent; text-align: left; cursor: pointer; }
.activity-row:first-child { border-top: 0; }
.activity-row:hover .activity-title strong { color: var(--green); }
.merchant-logo, .person-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; color: white; font-family: var(--font-display); font-size: 11px; font-weight: 800; }
.merchant-logo.origin { background: #ed7625; }
.merchant-logo.telstra { background: #76449c; }
.merchant-logo.woolworths { background: #2f8c53; }
.merchant-logo.sydney { background: #2993b5; }
.merchant-logo.billme { color: var(--navy); background: var(--lime); }
.merchant-logo.default { background: #557477; }
.activity-title { min-width: 0; }
.activity-title strong, .activity-title small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-title strong { font-size: 11px; }
.activity-title small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.verified-inline { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700; }
.verified-inline svg { width: 10px; height: 10px; stroke-width: 2.7; }
.activity-amount { text-align: right; }
.activity-amount strong, .activity-amount small { display: block; }
.activity-amount strong { font-family: var(--font-display); font-size: 11px; }
.activity-amount strong.incoming { color: var(--green); }
.activity-amount small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.activity-row > svg { width: 14px; color: var(--soft); }

.bill-card { overflow: hidden; }
.bill-card-banner { display: flex; align-items: center; gap: 8px; padding: 9px 17px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 750; }
.bill-card-banner svg { width: 13px; }
.bill-content { padding: 17px 19px 18px; }
.bill-company { display: flex; align-items: center; gap: 11px; }
.bill-company > div:nth-child(2) { min-width: 0; }
.bill-company strong, .bill-company small { display: block; }
.bill-company strong { font-size: 11px; }
.bill-company small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.bill-company .status-badge { margin-left: auto; }
.bill-amount { margin: 18px 0 14px; font-family: var(--font-display); font-size: 29px; font-weight: 720; letter-spacing: -1.2px; }
.bill-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.bill-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.bill-actions button { min-height: 38px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; width: fit-content; padding: 5px 8px; border-radius: 11px; font-size: 8px; font-weight: 750; }
.status-badge.verified, .status-badge.complete { color: var(--green); background: var(--green-soft); }
.status-badge.pending { color: var(--amber); background: var(--amber-soft); }
.status-badge.failed { color: var(--red); background: var(--red-soft); }

.contacts-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 0 20px 20px; }
.contact-button { min-width: 0; padding: 10px 4px 8px; border-radius: 13px; background: transparent; cursor: pointer; }
.contact-button:hover { background: var(--surface-2); }
.contact-button .person-avatar { width: 42px; height: 42px; margin: 0 auto 7px; border-radius: 50%; }
.contact-button strong, .contact-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.contact-button strong { font-size: 9px; }
.contact-button small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.person-avatar.mia { background: #d47d68; }
.person-avatar.jack { background: #527ca5; }
.person-avatar.sophie { background: #8c6da9; }
.person-avatar.noah { background: #367765; }
.person-avatar.add { border: 1px dashed #acb8b0; color: var(--muted); background: var(--surface-2); }
.person-avatar.add svg { width: 16px; }

.insight-card { padding: 19px; color: #edf6f2; background: linear-gradient(135deg, #17383b, #10272b); }
.insight-card .eyebrow { color: var(--lime); }
.insight-card h3 { max-width: 300px; margin: 2px 0 7px; font-family: var(--font-display); font-size: 17px; line-height: 1.3; }
.insight-card p { margin: 0 0 14px; color: #9fb4b0; font-size: 9px; line-height: 1.55; }
.insight-saving { display: flex; align-items: center; justify-content: space-between; padding-top: 13px; border-top: 1px solid rgba(255,255,255,.1); }
.insight-saving span { color: #9fb4b0; font-size: 8px; }
.insight-saving strong { color: var(--lime); font-family: var(--font-display); font-size: 17px; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.segmented { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.segmented button { min-height: 31px; padding: 0 12px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 700; cursor: pointer; }
.segmented button.active { color: white; background: var(--navy); }
.filter-actions { display: flex; gap: 8px; }
.activity-table { overflow: hidden; }
.table-head, .table-row { display: grid; grid-template-columns: minmax(210px, 1.5fr) minmax(120px, .65fr) minmax(100px, .55fr) minmax(95px, .45fr) 26px; align-items: center; gap: 12px; padding: 0 20px; }
.table-head { min-height: 42px; color: var(--soft); background: var(--surface-2); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.table-row { min-height: 72px; border-top: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.table-row:hover { background: #fbfcfa; }
.table-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.table-person .merchant-logo, .table-person .person-avatar { width: 38px; height: 38px; }
.table-person strong, .table-person small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-person strong { font-size: 10px; }
.table-person small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.table-cell { color: var(--muted); font-size: 9px; }
.table-cell.amount { color: var(--ink); font-family: var(--font-display); font-size: 11px; font-weight: 700; }
.table-row > svg { width: 14px; color: var(--soft); }
.table-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }

.people-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(285px, .65fr); gap: 18px; align-items: start; }
.circle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0 18px 18px; }
.circle-card { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcf9; cursor: pointer; }
.circle-card:hover { border-color: #b9c7bd; }
.circle-top { display: flex; align-items: flex-start; justify-content: space-between; }
.circle-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px; color: var(--navy); background: var(--lime); }
.circle-icon.blue { background: var(--blue); }
.circle-icon.peach { background: var(--peach); }
.circle-icon.lilac { background: var(--lilac); }
.circle-icon svg { width: 18px; }
.circle-card h3 { margin: 15px 0 4px; font-family: var(--font-display); font-size: 12px; }
.circle-card p { margin: 0; color: var(--muted); font-size: 8px; }
.circle-progress { height: 5px; margin: 14px 0 7px; overflow: hidden; border-radius: 4px; background: #e3e7e1; }
.circle-progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.circle-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.friends-list { padding: 0 18px 8px; }
.friend-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; min-height: 64px; border-top: 1px solid var(--line); }
.friend-row:first-child { border-top: 0; }
.friend-row .person-avatar { width: 38px; height: 38px; border-radius: 50%; }
.friend-row strong, .friend-row small { display: block; }
.friend-row strong { font-size: 10px; }
.friend-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.friend-row button { padding: 7px 9px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 8px; font-weight: 750; cursor: pointer; }
.social-note { padding: 17px 19px; }
.social-note h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 12px; }
.social-note p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.privacy-row { display: flex; align-items: center; gap: 9px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--green); font-size: 8px; font-weight: 700; }
.privacy-row svg { width: 14px; }

.bank-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.summary-card { padding: 18px; }
.summary-card span { color: var(--muted); font-size: 8px; }
.summary-card strong { display: block; margin-top: 8px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.6px; }
.summary-card small { display: block; margin-top: 4px; color: var(--green); font-size: 8px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.account-card { position: relative; overflow: hidden; padding: 20px; }
.account-card-top { display: flex; align-items: center; justify-content: space-between; }
.bank-logo { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: white; font-family: var(--font-display); font-weight: 800; }
.bank-logo.cba { color: #222; background: #ffd335; }
.bank-logo.nab { background: #c82938; }
.bank-logo.westpac { background: #d63443; }
.bank-logo.anz { background: #1472a2; }
.account-card h3 { margin: 17px 0 4px; font-family: var(--font-display); font-size: 13px; }
.account-card p { margin: 0; color: var(--muted); font-size: 9px; }
.account-balance { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 21px; padding-top: 15px; border-top: 1px solid var(--line); }
.account-balance span, .account-balance strong { display: block; }
.account-balance span { color: var(--muted); font-size: 8px; }
.account-balance strong { margin-top: 4px; font-family: var(--font-display); font-size: 17px; }
.account-balance small { color: var(--green); font-size: 8px; }
.consent-card { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; gap: 13px; padding: 18px 20px; }
.consent-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: var(--green); background: var(--green-soft); }
.consent-card h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 12px; }
.consent-card p { margin: 0; color: var(--muted); font-size: 8px; }

.trust-hero { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; margin-bottom: 18px; padding: 28px 30px; overflow: hidden; color: white; background: var(--navy); }
.trust-hero h2 { max-width: 600px; margin: 4px 0 8px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); line-height: 1.15; letter-spacing: -1px; }
.trust-hero p { max-width: 610px; margin: 0; color: #a8bbb7; font-size: 10px; line-height: 1.6; }
.trust-hero .eyebrow { color: var(--lime); }
.trust-score { position: relative; display: grid; place-items: center; width: 116px; height: 116px; border: 9px solid rgba(255,255,255,.1); border-top-color: var(--lime); border-right-color: var(--lime); border-radius: 50%; text-align: center; transform: rotate(45deg); }
.trust-score div { transform: rotate(-45deg); }
.trust-score strong, .trust-score span { display: block; }
.trust-score strong { font-family: var(--font-display); font-size: 26px; }
.trust-score span { color: #9db1ad; font-size: 8px; }
.control-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 18px; }
.control-card { padding: 18px; }
.control-card-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 15px; border-radius: 11px; color: var(--green); background: var(--green-soft); }
.control-card-icon.blue { color: var(--blue-ink); background: var(--blue); }
.control-card-icon.peach { color: var(--peach-ink); background: var(--peach); }
.control-card-icon svg { width: 17px; }
.control-card h3 { margin: 0 0 5px; font-family: var(--font-display); font-size: 11px; }
.control-card p { min-height: 39px; margin: 0 0 14px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.control-status { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-size: 8px; }
.control-status span:first-child { color: var(--muted); }
.control-status span:last-child { color: var(--green); font-weight: 750; }
.control-status span:last-child::before { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #3ea478; content: ""; }
.compliance-list { padding: 0 20px 10px; }
.compliance-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; min-height: 64px; border-top: 1px solid var(--line); }
.compliance-row:first-child { border-top: 0; }
.compliance-row > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.compliance-row svg { width: 15px; }
.compliance-row strong, .compliance-row small { display: block; }
.compliance-row strong { font-size: 10px; }
.compliance-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.readiness-label { padding: 5px 8px; border-radius: 10px; color: var(--amber); background: var(--amber-soft); font-size: 7px; font-weight: 750; }
.readiness-label.active { color: var(--green); background: var(--green-soft); }
.demo-disclaimer { margin-top: 14px; padding: 13px 15px; border: 1px solid #dfd5be; border-radius: 12px; color: #80662b; background: #fff9e9; font-size: 8px; line-height: 1.55; }

.account-layout { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 18px; align-items: start; }
.account-tabs { position: sticky; top: 93px; padding: 7px; }
.account-tabs button { display: grid; grid-template-columns: 18px 1fr 14px; align-items: center; gap: 9px; width: 100%; min-height: 42px; padding: 0 10px; border-radius: 9px; color: var(--muted); background: transparent; font-size: 9px; font-weight: 650; text-align: left; cursor: pointer; }
.account-tabs button:hover { background: var(--surface-2); }
.account-tabs button.active { color: var(--ink); background: var(--surface-2); font-weight: 750; }
.account-tabs svg { width: 15px; }
.account-tabs button svg:last-child { width: 11px; justify-self: end; }
.account-panel { min-width: 0; padding: 24px; }
.settings-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.settings-section-head h2 { margin: 0; font-family: var(--font-display); font-size: 16px; letter-spacing: -.35px; }
.settings-section-head p { margin: 5px 0 0; color: var(--muted); font-size: 8px; }
.profile-identity { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 13px; margin-bottom: 23px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.account-avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--navy); background: var(--peach); font-family: var(--font-display); font-size: 16px; font-weight: 800; }
.profile-identity strong, .profile-identity small { display: block; }
.profile-identity strong { font-family: var(--font-display); font-size: 12px; }
.profile-identity small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 13px; }
.account-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 9px; padding-top: 17px; border-top: 1px solid var(--line); }
.account-form-actions > span { max-width: 480px; color: var(--muted); font-size: 7px; line-height: 1.5; }
.security-score-card { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 19px; margin-bottom: 17px; padding: 19px; border-radius: 16px; color: white; background: var(--navy); }
.security-score-ring { display: grid; place-items: center; width: 78px; height: 78px; border: 7px solid rgba(255,255,255,.11); border-top-color: var(--lime); border-right-color: var(--lime); border-radius: 50%; transform: rotate(45deg); }
.security-score-ring strong, .security-score-ring small { display: block; text-align: center; transform: rotate(-45deg); }
.security-score-ring strong { margin: 0 0 -22px 0; font-family: var(--font-display); font-size: 20px; }
.security-score-ring small { margin: 22px 0 0; color: #9fb3af; font-size: 7px; }
.security-score-card .eyebrow { color: var(--lime); }
.security-score-card h2 { margin: 2px 0 5px; font-family: var(--font-display); font-size: 16px; }
.security-score-card p { margin: 0; color: #a9bbb7; font-size: 8px; }
.account-settings-list { border-top: 1px solid var(--line); }
.account-setting-row { display: grid; grid-template-columns: 39px minmax(0,1fr) auto auto; align-items: center; gap: 11px; min-height: 68px; border-bottom: 1px solid var(--line); }
.setting-icon, .device-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--green); background: var(--green-soft); }
.setting-icon.blue { color: var(--blue-ink); background: var(--blue); }
.setting-icon.peach { color: var(--peach-ink); background: var(--peach); }
.setting-icon.lilac { color: var(--lilac-ink); background: var(--lilac); }
.setting-icon svg, .device-icon svg { width: 16px; }
.account-setting-row strong, .account-setting-row small { display: block; }
.account-setting-row strong { font-size: 9px; }
.account-setting-row small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.account-settings-list.compact .tool-toggle { padding-inline: 3px; }
.device-list article { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 11px; min-height: 73px; border-top: 1px solid var(--line); }
.device-list article:first-child { border-top: 0; }
.device-list strong, .device-list small { display: block; }
.device-list strong { font-size: 9px; }
.device-list small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.account-callout { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 7px; line-height: 1.5; }
.account-callout svg { flex: 0 0 auto; width: 13px; color: var(--green); }
.danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding: 15px; border: 1px solid #efcfca; border-radius: 13px; background: #fff9f8; }
.danger-zone h3 { margin: 0; color: var(--red); font-family: var(--font-display); font-size: 11px; }
.danger-zone p { margin: 4px 0 0; color: var(--muted); font-size: 7px; line-height: 1.45; }
.closure-list { display: grid; gap: 8px; margin: 17px 0; }
.closure-list > div { display: flex; align-items: center; gap: 9px; padding: 11px; border-radius: 10px; background: var(--surface-2); font-size: 8px; }
.closure-list svg { width: 14px; color: var(--green); }

.admin-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 16px; }
.admin-summary article { padding: 17px; }
.admin-summary span, .admin-summary strong, .admin-summary small { display: block; }
.admin-summary span { color: var(--muted); font-size: 8px; }
.admin-summary strong { margin-top: 8px; font-family: var(--font-display); font-size: 23px; }
.admin-summary small { margin-top: 4px; color: var(--green); font-size: 7px; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 13px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); width: fit-content; }
.admin-tabs button { display: inline-flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 12px; border-radius: 8px; color: var(--muted); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.admin-tabs button.active { color: white; background: var(--navy); }
.admin-tabs svg { width: 14px; }
.admin-tabs button > span { min-width: 17px; padding: 2px 5px; border-radius: 8px; color: var(--navy); background: var(--lime); font-size: 7px; }
.admin-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.admin-search { display: flex; align-items: center; min-width: 260px; height: 40px; flex: 1; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.admin-search svg { width: 15px; color: var(--muted); }
.admin-search input { min-width: 0; height: 100%; flex: 1; padding: 0 9px; border: 0; outline: 0; background: transparent; font-size: 9px; }
.admin-table-card { overflow: hidden; }
.admin-table-head, .admin-user-row { display: grid; grid-template-columns: minmax(220px,1.35fr) .65fr .75fr .85fr .55fr 18px; align-items: center; gap: 12px; width: 100%; padding: 0 18px; }
.admin-table-head { min-height: 40px; color: var(--soft); background: var(--surface-2); font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.admin-user-row { min-height: 67px; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 8px; text-align: left; cursor: pointer; }
.admin-user-row:hover { background: #fbfcfa; }
.admin-user-row > svg { width: 13px; }
.admin-user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.admin-user-cell > i, .admin-avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 50%; color: var(--navy); background: var(--peach); font-style: normal; font-weight: 800; }
.admin-user-cell > span { min-width: 0; }
.admin-user-cell strong, .admin-user-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-cell strong { color: var(--ink); font-size: 9px; }
.admin-user-cell small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.admin-status { width: fit-content; padding: 5px 8px; border-radius: 10px; font-size: 7px; font-weight: 750; text-transform: capitalize; }
.admin-status.active { color: var(--green); background: var(--green-soft); }
.admin-status.suspended, .admin-status.cancelled { color: var(--red); background: var(--red-soft); }
.admin-status.invited { color: var(--amber); background: var(--amber-soft); }
.invite-list { padding: 0 19px 10px; }
.invite-list > div { display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 10px; min-height: 67px; border-top: 1px solid var(--line); }
.invite-list > div:first-child { border-top: 0; }
.invite-list strong, .invite-list small { display: block; }
.invite-list strong { font-size: 9px; }
.invite-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.audit-list { padding: 0 20px 10px; }
.audit-list > div { display: grid; grid-template-columns: 34px minmax(0,1fr) 120px 90px; align-items: center; gap: 11px; min-height: 63px; border-top: 1px solid var(--line); }
.audit-list > div:first-child { border-top: 0; }
.audit-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--green); background: var(--green-soft); }
.audit-icon svg { width: 14px; }
.audit-list strong, .audit-list small { display: block; }
.audit-list strong { font-size: 9px; }
.audit-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.audit-list > div > span:nth-child(3) { color: var(--muted); font-size: 7px; }
.audit-list b { color: var(--green); font-size: 7px; }
.admin-profile-hero { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; margin-bottom: 15px; }
.admin-profile-hero strong, .admin-profile-hero small { display: block; }
.admin-profile-hero strong { font-family: var(--font-display); font-size: 12px; }
.admin-profile-hero small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.admin-permission-note { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 15px; padding: 10px; border-radius: 10px; color: var(--muted); background: var(--surface-2); font-size: 7px; line-height: 1.5; }
.admin-permission-note svg { flex: 0 0 auto; width: 13px; color: var(--green); }
.access-denied { max-width: 520px; margin: 80px auto; padding: 40px; text-align: center; }
.access-denied > span { display: grid; place-items: center; width: 57px; height: 57px; margin: 0 auto 17px; border-radius: 16px; color: var(--red); background: var(--red-soft); }
.access-denied h1 { margin: 0; font-family: var(--font-display); font-size: 24px; }
.access-denied p { margin: 8px 0 19px; color: var(--muted); font-size: 9px; }

.tools-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; margin-bottom: 18px; padding: 25px 28px; overflow: hidden; color: white; background: linear-gradient(125deg, var(--navy), #1d4545); }
.tools-hero .eyebrow { color: var(--lime); }
.tools-hero h2 { margin: 2px 0 6px; font-family: var(--font-display); font-size: 21px; letter-spacing: -.6px; }
.tools-hero p { margin: 0; color: #a8bbb7; font-size: 9px; }
.tools-score { min-width: 116px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.06); text-align: center; }
.tools-score strong, .tools-score span, .tools-score small { display: block; }
.tools-score strong { color: var(--lime); font-family: var(--font-display); font-size: 30px; line-height: 1; }
.tools-score span { margin-top: 5px; font-size: 9px; font-weight: 700; }
.tools-score small { margin-top: 2px; color: #94aaa6; font-size: 7px; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.tool-card { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 13px; min-height: 151px; padding: 18px; color: var(--ink); text-align: left; cursor: pointer; transition: .18s ease; }
.tool-card:hover { border-color: #b9c6bc; box-shadow: 0 9px 25px rgba(12,31,34,.08); transform: translateY(-2px); }
.tool-number { position: absolute; top: 14px; right: 15px; color: #aab4ae; font-family: var(--font-display); font-size: 9px; font-weight: 700; }
.tool-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: var(--navy); }
.tool-icon.lime { background: var(--lime); }
.tool-icon.blue { color: var(--blue-ink); background: var(--blue); }
.tool-icon.peach { color: var(--peach-ink); background: var(--peach); }
.tool-icon.lilac { color: var(--lilac-ink); background: var(--lilac); }
.tool-icon svg { width: 18px; }
.tool-copy { min-width: 0; padding: 3px 28px 0 0; }
.tool-copy strong, .tool-copy small { display: block; }
.tool-copy strong { font-family: var(--font-display); font-size: 12px; }
.tool-copy small { margin-top: 5px; color: var(--muted); font-size: 8px; line-height: 1.55; }
.tool-card-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.tool-card-foot > span { color: var(--muted); font-size: 8px; }
.tool-card-foot b { padding: 5px 8px; border-radius: 10px; color: var(--amber); background: var(--amber-soft); font-size: 7px; }
.tool-card-foot b.active { color: var(--green); background: var(--green-soft); }

.feature-badge { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.feature-badge strong, .feature-badge small { display: block; }
.feature-badge strong { font-family: var(--font-display); font-size: 11px; }
.feature-badge small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.tool-intro { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 17px; padding: 14px; border-radius: 13px; }
.tool-intro.lime { color: #3c662a; background: #eff9da; }
.tool-intro.blue { color: var(--blue-ink); background: #e8f5fa; }
.tool-intro.peach { color: var(--peach-ink); background: #fff1e9; }
.tool-intro.lilac { color: var(--lilac-ink); background: #f5effb; }
.tool-intro > svg { flex: 0 0 auto; width: 18px; }
.tool-intro strong, .tool-intro small { display: block; }
.tool-intro strong { font-size: 10px; }
.tool-intro small { margin-top: 4px; opacity: .78; font-size: 8px; line-height: 1.5; }
.tool-toggle { position: relative; display: grid; grid-template-columns: 1fr 40px; align-items: center; gap: 12px; min-height: 58px; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.tool-toggle:first-of-type { border-top: 0; }
.tool-toggle strong, .tool-toggle small { display: block; }
.tool-toggle strong { font-size: 9px; }
.tool-toggle small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.tool-toggle input { position: absolute; right: 0; width: 40px; height: 23px; opacity: 0; cursor: pointer; }
.tool-toggle i { position: relative; width: 39px; height: 22px; border-radius: 12px; background: #dce2dd; transition: .18s ease; pointer-events: none; }
.tool-toggle i::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.18); content: ""; transition: .18s ease; }
.tool-toggle input:checked + i { background: var(--green); }
.tool-toggle input:checked + i::after { left: 20px; }
.tool-toggle input:focus-visible + i { outline: 3px solid rgba(40,118,91,.2); outline-offset: 2px; }
.budget-overview, .vault-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.budget-overview > span, .vault-stats > span { padding: 12px 8px; border-radius: 11px; background: var(--surface-2); text-align: center; }
.budget-overview small, .budget-overview strong, .vault-stats small, .vault-stats strong { display: block; }
.budget-overview small, .vault-stats small { color: var(--muted); font-size: 7px; }
.budget-overview strong, .vault-stats strong { margin-top: 5px; font-family: var(--font-display); font-size: 14px; }
.range-setting { display: block; margin-bottom: 18px; }
.range-setting > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; font-size: 9px; }
.range-setting b { color: var(--green); }
.range-setting input { width: 100%; accent-color: var(--green); }
.pocket-balance { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; padding: 16px; border-radius: 14px; color: white; background: var(--navy); }
.pocket-balance > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--navy); background: var(--lime); }
.pocket-balance svg { width: 17px; }
.pocket-balance small, .pocket-balance strong { display: block; }
.pocket-balance small { color: #a8bbb7; font-size: 7px; }
.pocket-balance strong { margin-top: 4px; font-family: var(--font-display); font-size: 17px; }
.subscription-summary { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 13px; padding: 15px; border-radius: 13px; color: white; background: var(--navy); }
.subscription-summary small, .subscription-summary strong { display: block; }
.subscription-summary small { color: #a8bbb7; font-size: 7px; }
.subscription-summary strong { margin-top: 4px; font-family: var(--font-display); font-size: 20px; }
.subscription-summary > span { color: var(--peach); font-size: 8px; }
.subscription-list { margin-bottom: 12px; }
.subscription-list > div { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 10px; min-height: 58px; border-top: 1px solid var(--line); }
.subscription-list > div:first-child { border-top: 0; }
.subscription-list .merchant-logo { width: 36px; height: 36px; border-radius: 10px; }
.subscription-list p { margin: 0; }
.subscription-list strong, .subscription-list small { display: block; }
.subscription-list strong { font-size: 9px; }
.subscription-list small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.subscription-list b { color: var(--amber); font-size: 7px; }
.scam-result { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #e3c9a1; border-radius: 13px; color: #795424; background: #fff7e5; }
.scam-result > span { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 auto; border-radius: 9px; background: #ffe3a8; }
.scam-result svg { width: 15px; }
.scam-result strong, .scam-result small { display: block; }
.scam-result strong { font-size: 9px; }
.scam-result small { margin-top: 4px; font-size: 7px; line-height: 1.55; }
.upload-receipt { display: flex; align-items: center; width: 100%; gap: 11px; margin-bottom: 14px; padding: 15px; border: 1px dashed #aebcb2; border-radius: 13px; color: var(--green); background: #f8fbf8; text-align: left; cursor: pointer; }
.upload-receipt > svg { width: 18px; }
.upload-receipt strong, .upload-receipt small { display: block; }
.upload-receipt strong { font-size: 9px; }
.upload-receipt small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.vault-list { margin-bottom: 11px; }
.vault-list > div { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; min-height: 52px; border-top: 1px solid var(--line); }
.vault-list > div:first-child { border-top: 0; }
.vault-list > div > svg { width: 15px; color: var(--green); }
.vault-list strong, .vault-list small { display: block; }
.vault-list strong { font-size: 9px; }
.vault-list small { margin-top: 2px; color: var(--muted); font-size: 7px; }
.vault-list b { font-family: var(--font-display); font-size: 9px; }

.sheet-backdrop { position: fixed; z-index: 80; inset: 0; visibility: hidden; background: rgba(7,23,26,.38); opacity: 0; backdrop-filter: blur(3px); transition: .22s ease; }
.sheet-backdrop.open { visibility: visible; opacity: 1; }
.flow-sheet { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(510px, 100%); overflow-y: auto; border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); transform: translateX(105%); transition: transform .28s cubic-bezier(.22,.8,.3,1); }
.flow-sheet.open { transform: none; }
.sheet-head { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 24px 25px 18px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.sheet-head h2 { margin: 3px 0 0; font-family: var(--font-display); font-size: 21px; letter-spacing: -.65px; }
.sheet-head p { margin: 5px 0 0; color: var(--muted); font-size: 9px; }
.sheet-body { padding: 22px 25px 110px; }
.sheet-footer { position: fixed; z-index: 4; right: 0; bottom: 0; display: flex; width: min(510px, 100%); gap: 9px; padding: 15px 25px calc(15px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.sheet-footer > * { flex: 1; }
.stepper { display: flex; align-items: center; gap: 7px; margin-bottom: 21px; }
.stepper span { height: 4px; flex: 1; border-radius: 3px; background: #e4e8e3; }
.stepper span.active { background: var(--navy); }
.form-section { margin-bottom: 20px; }
.form-section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.form-section-title label, .form-section-title span:first-child { font-size: 9px; font-weight: 750; }
.form-section-title small { color: var(--muted); font-size: 8px; }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; margin-bottom: 7px; font-size: 9px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; outline: 0; background: white; }
.field input, .field select { height: 46px; padding: 0 13px; }
.field textarea { min-height: 82px; padding: 12px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(40,118,91,.1); }
.money-field { position: relative; }
.money-field b { position: absolute; top: 50%; left: 14px; font-family: var(--font-display); font-size: 19px; transform: translateY(-50%); }
.money-field input { padding-left: 32px; font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.account-select, .payee-select { display: flex; align-items: center; width: 100%; gap: 11px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; cursor: pointer; }
.account-select:hover, .payee-select:hover { border-color: #aebcb2; }
.account-select > span:nth-child(2), .payee-select > span:nth-child(2) { min-width: 0; flex: 1; }
.account-select strong, .account-select small, .payee-select strong, .payee-select small { display: block; }
.account-select strong, .payee-select strong { font-size: 10px; }
.account-select small, .payee-select small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.account-select > svg, .payee-select > svg { width: 14px; color: var(--soft); }
.payee-list { display: grid; gap: 8px; }
.payee-select.selected { border-color: var(--green); background: #f7fbf8; box-shadow: 0 0 0 2px rgba(40,118,91,.08); }
.payee-select .person-avatar, .payee-select .merchant-logo { width: 40px; height: 40px; }
.payee-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 50%; color: transparent; }
.payee-select.selected .payee-check { border-color: var(--green); color: white; background: var(--green); }
.payee-check svg { width: 11px; }

.verification-panel { overflow: hidden; margin-bottom: 16px; border: 1px solid #bfdccf; border-radius: 16px; background: #f6fbf8; }
.verification-head { display: flex; align-items: center; gap: 11px; padding: 15px 16px; color: var(--green); background: var(--green-soft); }
.verification-head > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; color: white; background: var(--green); }
.verification-head svg { width: 16px; }
.verification-head strong, .verification-head small { display: block; }
.verification-head strong { font-size: 10px; }
.verification-head small { margin-top: 2px; color: #4d806e; font-size: 8px; }
.verification-details { padding: 4px 16px 10px; }
.verification-row { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 12px; border-top: 1px solid #dceae3; font-size: 8px; }
.verification-row span { color: var(--muted); }
.verification-row strong { text-align: right; }
.review-card { margin-bottom: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcf9; }
.review-card h3 { margin: 0 0 13px; font-family: var(--font-display); font-size: 11px; }
.review-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 10px; font-size: 9px; }
.review-row span { color: var(--muted); }
.review-row strong { text-align: right; }
.review-total { padding-top: 13px; border-top: 1px solid var(--line); }
.review-total strong { font-family: var(--font-display); font-size: 18px; }
.risk-note { display: flex; align-items: flex-start; gap: 9px; margin: 14px 0; padding: 11px 12px; border-radius: 11px; color: var(--green); background: var(--green-soft); font-size: 8px; line-height: 1.5; }
.risk-note svg { flex: 0 0 auto; width: 14px; }

.swipe-wrap { padding: 19px; border-radius: 17px; color: white; background: var(--navy); text-align: center; }
.swipe-wrap > svg { width: 24px; height: 24px; margin-bottom: 8px; color: var(--lime); }
.swipe-wrap h3 { margin: 0 0 5px; font-family: var(--font-display); font-size: 14px; }
.swipe-wrap p { margin: 0 0 17px; color: #9fb3af; font-size: 8px; }
.swipe-control { position: relative; height: 57px; overflow: hidden; border-radius: 29px; background: rgba(255,255,255,.09); }
.swipe-progress { position: absolute; inset: 0 auto 0 0; width: 8%; border-radius: inherit; background: var(--lime); transition: width .08s linear; }
.swipe-label { position: absolute; inset: 0; display: grid; place-items: center; color: #d8e5e1; font-size: 9px; font-weight: 750; pointer-events: none; }
.swipe-range { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: grab; }
.swipe-thumb { position: absolute; z-index: 1; top: 5px; left: 5px; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; color: var(--navy); background: var(--lime); box-shadow: 0 4px 12px rgba(0,0,0,.2); pointer-events: none; transform: translateX(var(--swipe-x, 0px)); transition: transform .08s linear; }
.swipe-thumb svg { width: 18px; }
.swipe-hint { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; color: #8fa5a1; font-size: 7px; }
.swipe-hint svg { width: 11px; }

.receipt-success { padding-top: 10px; text-align: center; }
.success-mark { position: relative; display: grid; place-items: center; width: 73px; height: 73px; margin: 0 auto 17px; border-radius: 50%; color: var(--navy); background: var(--lime); box-shadow: 0 0 0 10px rgba(201,243,106,.2); }
.success-mark svg { width: 30px; stroke-width: 2.5; }
.receipt-success h2 { margin: 0; font-family: var(--font-display); font-size: 25px; letter-spacing: -.8px; }
.receipt-success > p { margin: 7px 0 22px; color: var(--muted); font-size: 10px; }
.receipt-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fbfcf9; text-align: left; }
.receipt-company { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px dashed #cbd2cc; }
.receipt-company strong, .receipt-company small { display: block; }
.receipt-company strong { font-size: 10px; }
.receipt-company small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.receipt-amount { margin-left: auto; font-family: var(--font-display); font-size: 17px; font-weight: 750; }
.receipt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 15px; }
.receipt-grid span, .receipt-grid strong { display: block; }
.receipt-grid span { color: var(--muted); font-size: 7px; }
.receipt-grid strong { margin-top: 4px; font-size: 9px; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.request-preview { padding: 18px; border-radius: 18px; color: white; background: var(--navy); }
.request-brand { display: flex; align-items: center; gap: 7px; color: var(--lime); font-family: var(--font-display); font-size: 11px; font-weight: 750; }
.request-brand .brand-mark { width: 25px; height: 25px; border-radius: 7px; }
.request-brand .brand-mark i:first-child { width: 11px; height: 14px; border-width: 3px; }
.request-brand .brand-mark i:last-child { width: 4px; height: 4px; }
.request-preview-main { margin: 25px 0; text-align: center; }
.request-preview-main span, .request-preview-main strong, .request-preview-main small { display: block; }
.request-preview-main span { color: #a4b8b4; font-size: 8px; }
.request-preview-main strong { margin: 7px 0; font-family: var(--font-display); font-size: 33px; letter-spacing: -1.2px; }
.request-preview-main small { color: #c5d2cf; font-size: 9px; }
.verified-request { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--lime); font-size: 8px; font-weight: 700; }
.verified-request svg { width: 12px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.share-button { display: flex; min-height: 70px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: white; font-size: 8px; font-weight: 700; cursor: pointer; }
.share-button:hover { background: var(--surface-2); }
.share-button svg { width: 18px; color: var(--green); }

.bank-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.bank-choice { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.bank-choice:hover, .bank-choice.selected { border-color: var(--green); background: #f7fbf8; }
.bank-choice .bank-logo { width: 35px; height: 35px; border-radius: 10px; font-size: 9px; }
.bank-choice strong { font-size: 9px; }
.consent-list { display: grid; gap: 8px; margin: 12px 0; }
.consent-item { display: flex; align-items: flex-start; gap: 9px; padding: 11px; border-radius: 11px; background: var(--surface-2); }
.consent-item > span { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 7px; color: var(--green); background: white; }
.consent-item svg { width: 13px; }
.consent-item strong, .consent-item small { display: block; }
.consent-item strong { font-size: 9px; }
.consent-item small { margin-top: 3px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.notice { padding: 11px 12px; border: 1px solid #dfd7c3; border-radius: 11px; color: #766136; background: #fff9ea; font-size: 8px; line-height: 1.5; }

.modal-backdrop { position: fixed; z-index: 110; inset: 0; display: grid; visibility: hidden; place-items: start center; padding: 11vh 20px 20px; background: rgba(7,23,26,.45); opacity: 0; backdrop-filter: blur(4px); transition: .18s ease; }
.modal-backdrop.open { visibility: visible; opacity: 1; }
.search-modal { width: min(570px, 100%); overflow: hidden; border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-lg); transform: translateY(-8px); transition: .18s ease; }
.modal-backdrop.open .search-modal { transform: none; }
.search-input-wrap { display: flex; align-items: center; height: 58px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.search-input-wrap svg { width: 18px; color: var(--muted); }
.search-input-wrap input { min-width: 0; height: 100%; flex: 1; padding: 0 12px; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-results { max-height: 390px; overflow-y: auto; padding: 9px; }
.search-label { padding: 7px 9px; color: var(--soft); font-size: 8px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.search-result { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; width: 100%; padding: 9px; border-radius: 11px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover { background: var(--surface-2); }
.search-result .merchant-logo, .search-result .person-avatar { width: 36px; height: 36px; }
.search-result strong, .search-result small { display: block; }
.search-result strong { font-size: 10px; }
.search-result small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.search-result > span { font-family: var(--font-display); font-size: 10px; font-weight: 700; }
.empty-state { padding: 35px 20px; color: var(--muted); font-size: 10px; text-align: center; }

.popover { position: fixed; z-index: 75; top: 64px; right: 48px; display: none; width: min(350px, calc(100vw - 30px)); padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow-lg); }
.popover.open { display: block; animation: pageIn .17s ease both; }
.popover-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 9px; }
.popover-head strong { font-family: var(--font-display); font-size: 12px; }
.popover-head button { color: var(--green); background: transparent; font-size: 8px; font-weight: 700; cursor: pointer; }
.notification-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; width: 100%; padding: 10px; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; }
.notification-row:hover { background: var(--surface-2); }
.notification-row strong, .notification-row small { display: block; }
.notification-row strong { font-size: 9px; }
.notification-row small { margin-top: 3px; color: var(--muted); font-size: 7px; }
.notification-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--navy); }
.notification-icon.lime { background: var(--lime); }
.notification-icon.blue { background: var(--blue); }
.notification-icon.peach { background: var(--peach); }
.notification-icon svg { width: 15px; }
.toast-stack { position: fixed; z-index: 150; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(350px, calc(100% - 40px)); }
.toast { display: grid; grid-template-columns: 31px 1fr; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; color: white; background: var(--navy); box-shadow: var(--shadow-lg); animation: toastIn .2s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.toast.out { opacity: 0; transform: translateY(7px); transition: .18s ease; }
.toast > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--navy); background: var(--lime); }
.toast svg { width: 14px; }
.toast strong, .toast small { display: block; }
.toast strong { font-size: 9px; }
.toast small { margin-top: 3px; color: #a9bbb8; font-size: 7px; }
.offline-banner { position: fixed; z-index: 180; top: 0; left: 50%; display: none; padding: 8px 14px; border-radius: 0 0 10px 10px; color: white; background: var(--red); font-size: 9px; transform: translateX(-50%); }
.offline-banner.show { display: block; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 214px minmax(0,1fr); }
  .sidebar { padding-inline: 13px; }
  .hero-grid, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .action-tile { min-height: 112px; }
  .content-grid > .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bill-card { min-height: 100%; }
  .control-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-summary { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-main { min-height: 100dvh; padding: 34px 24px; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 42px; color: var(--navy); font-family: var(--font-display); font-size: 18px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; width: min(280px, 84vw); transform: translateX(-105%); transition: transform .24s ease; }
  .sidebar.open { transform: none; }
  .sidebar-scrim { position: fixed; z-index: 45; inset: 0; display: block; visibility: hidden; background: rgba(7,23,26,.35); opacity: 0; transition: .2s ease; }
  .sidebar-scrim.open { visibility: visible; opacity: 1; }
  .menu-button { display: grid; }
  .page-content { padding-bottom: 110px; }
  .people-layout { grid-template-columns: 1fr; }
  .people-layout > .stack { grid-template-columns: 1fr 1fr; }
  .bank-summary { grid-template-columns: repeat(3, 1fr); }
  .control-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .control-card p { min-height: 52px; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .account-layout { grid-template-columns: 1fr; }
  .account-tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .account-tabs button { grid-template-columns: 16px auto; min-width: max-content; padding: 0 12px; }
  .account-tabs button svg:last-child { display: none; }
  .admin-table-head, .admin-user-row { grid-template-columns: minmax(190px,1.3fr) .7fr .7fr .65fr 18px; }
  .admin-table-head span:nth-child(4), .admin-user-row > span:nth-child(4) { display: none; }
}

@media (max-width: 680px) {
  .auth-main { padding: 25px 18px; }
  .auth-mobile-brand { margin-bottom: 30px; }
  .auth-panel > h2 { font-size: 26px; }
  .demo-role-picker { grid-template-columns: 1fr; }
  body { font-size: 13px; }
  .topbar { height: 62px; padding: 0 15px; }
  .search-button { width: 39px; justify-content: center; padding: 0; cursor: pointer; }
  .search-button svg { margin: 0; }
  .search-button span, .search-button kbd, .session-chip { display: none; }
  .top-avatar { display: none; }
  .page-content { min-height: calc(100vh - 62px); padding: 23px 15px 104px; }
  .greeting-row, .page-heading { align-items: flex-start; margin-bottom: 19px; }
  .greeting-row h1, .page-heading h1 { font-size: 27px; letter-spacing: -1.1px; }
  .greeting-row p, .page-heading p { font-size: 10px; line-height: 1.5; }
  .heading-actions .secondary-button span, .heading-actions .primary-button span { display: none; }
  .heading-actions .secondary-button, .heading-actions .primary-button { width: 40px; padding: 0; }
  .integration-banner { grid-template-columns: 34px 1fr; }
  .integration-banner button { display: none; }
  .hero-grid { gap: 13px; }
  .balance-card { min-height: 222px; padding: 21px; border-radius: 20px; }
  .balance-main { margin-top: 20px; }
  .balance-main strong { font-size: 36px; }
  .balance-bottom { margin-top: 21px; }
  .balance-meta { gap: 17px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .action-tile { min-height: 104px; padding: 14px; border-radius: 16px; }
  .content-grid { gap: 13px; }
  .content-grid > .stack, .people-layout > .stack { grid-template-columns: minmax(0, 1fr); }
  .contacts-strip { grid-template-columns: repeat(5, 74px); overflow-x: auto; padding-bottom: 15px; scrollbar-width: none; }
  .card-head { padding: 17px 17px 11px; }
  .activity-list { padding-inline: 16px; }
  .activity-row { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 64px; }
  .activity-row > svg { display: none; }
  .merchant-logo, .person-avatar { width: 38px; height: 38px; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .segmented { overflow-x: auto; }
  .segmented button { flex: 1; white-space: nowrap; }
  .filter-actions { display: none; }
  .table-head { display: none; }
  .table-row { grid-template-columns: 39px minmax(0,1fr) auto; min-height: 70px; padding: 0 15px; }
  .table-person { display: contents; }
  .table-person > div:last-child { min-width: 0; }
  .table-row .table-cell:nth-child(2), .table-row .table-cell:nth-child(4), .table-row > svg { display: none; }
  .table-cell.amount { text-align: right; }
  .circle-grid { grid-template-columns: 1fr; padding: 0 14px 14px; }
  .account-grid, .bank-picker { grid-template-columns: 1fr; }
  .bank-summary { grid-template-columns: 1fr 1fr; }
  .bank-summary .summary-card:last-child { grid-column: 1 / -1; }
  .consent-card { grid-template-columns: 43px 1fr; }
  .consent-card .secondary-button { grid-column: 1 / -1; }
  .trust-hero { grid-template-columns: 1fr; padding: 22px; }
  .trust-score { width: 95px; height: 95px; }
  .control-grid { grid-template-columns: 1fr; }
  .control-card p { min-height: 0; }
  .tools-hero { grid-template-columns: 1fr auto; gap: 14px; padding: 20px; }
  .tools-hero h2 { font-size: 18px; }
  .tools-hero p { line-height: 1.5; }
  .tools-score { min-width: 94px; padding: 12px; }
  .tools-grid { grid-template-columns: minmax(0,1fr); }
  .tool-card { min-height: 142px; }
  .compliance-row { grid-template-columns: 32px 1fr; padding: 8px 0; }
  .compliance-row .readiness-label { grid-column: 2; width: fit-content; }
  .account-panel { padding: 18px; }
  .settings-section-head { align-items: flex-start; flex-direction: column; margin-bottom: 16px; }
  .profile-identity { grid-template-columns: 52px 1fr; padding: 13px; }
  .profile-identity .secondary-button { grid-column: 1 / -1; }
  .account-avatar { width: 50px; height: 50px; }
  .account-form-grid { grid-template-columns: 1fr; }
  .account-form-actions { align-items: stretch; flex-direction: column; }
  .account-form-actions .primary-button { width: 100%; }
  .security-score-card { grid-template-columns: 76px 1fr; padding: 15px; }
  .security-score-ring { width: 67px; height: 67px; }
  .account-setting-row { grid-template-columns: 37px minmax(0,1fr) auto; padding: 8px 0; }
  .account-setting-row .status-badge { display: none; }
  .account-setting-row .secondary-button { grid-column: 3; }
  .device-list article { grid-template-columns: 41px 1fr; padding: 9px 0; }
  .device-list article > button, .device-list article > .status-badge { grid-column: 2; width: fit-content; }
  .danger-zone { align-items: stretch; flex-direction: column; }
  .admin-summary { grid-template-columns: 1fr 1fr; }
  .admin-toolbar { align-items: stretch; flex-wrap: wrap; }
  .admin-search { min-width: 100%; }
  .admin-toolbar .secondary-button, .admin-toolbar .primary-button { flex: 1; }
  .admin-table-head { display: none; }
  .admin-user-row { grid-template-columns: minmax(0,1fr) auto 14px; min-height: 69px; padding: 0 14px; }
  .admin-user-row > span:nth-child(2), .admin-user-row > span:nth-child(3), .admin-user-row > span:nth-child(4) { display: none; }
  .admin-user-row .admin-status { display: inline-flex; }
  .admin-tabs { width: 100%; overflow-x: auto; }
  .admin-tabs button { flex: 1; min-width: max-content; }
  .invite-list > div { grid-template-columns: 38px 1fr; padding: 10px 0; }
  .invite-list button { grid-column: 2; width: fit-content; }
  .audit-list > div { grid-template-columns: 32px minmax(0,1fr); padding: 10px 0; }
  .audit-list > div > span:nth-child(3), .audit-list b { grid-column: 2; }
  .mobile-nav { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); height: calc(68px + env(safe-area-inset-bottom)); padding: 6px 8px env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
  .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--soft); background: transparent; font-size: 7px; font-weight: 650; cursor: pointer; }
  .mobile-nav button svg { width: 19px; height: 19px; }
  .mobile-nav button.active { color: var(--green); }
  .mobile-nav .mobile-pay { position: relative; }
  .mobile-nav .mobile-pay > span { position: absolute; bottom: 21px; display: grid; place-items: center; width: 49px; height: 49px; border: 5px solid var(--paper); border-radius: 50%; color: var(--navy); background: var(--lime); box-shadow: 0 4px 12px rgba(16,39,43,.18); }
  .mobile-nav .mobile-pay small { position: absolute; bottom: 5px; font-size: 7px; }
  .flow-sheet { top: auto; width: 100%; max-height: calc(100dvh - 15px); border-top: 1px solid var(--line); border-left: 0; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .flow-sheet.open { transform: none; }
  .sheet-head { padding: 19px 18px 14px; }
  .sheet-head::before { position: absolute; top: 7px; left: 50%; width: 35px; height: 4px; border-radius: 4px; background: #d8ded8; content: ""; transform: translateX(-50%); }
  .sheet-head h2 { font-size: 19px; }
  .sheet-body { padding: 18px 18px 105px; }
  .sheet-footer { width: 100%; padding-inline: 18px; }
  .popover { top: 56px; right: 10px; }
  .toast-stack { right: 12px; bottom: 82px; width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
