@charset "UTF-8";
:root {
  --bg:#f7f7fc;
  --panel:#fff;
  --ink:#222132;
  --muted:#878491;
  --line:#ecebf3;
  --primary:#7455d7;
  --purple:#7455d7;
  --soft:#f0ebfc;
  --green:#218f7a;
  --red:#bd617c;
  --shadow:0 10px 35px #34305606;
  --radius:22px;
  --control-height:44px;
  --control-radius:12px;
  --focus:#6845c6}
* {
  box-sizing:border-box}
html {
  scroll-behavior:smooth}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:14px/1.5 'Segoe UI',Arial,sans-serif;
  -webkit-font-smoothing:antialiased}
button,input,select,textarea {
  font:inherit}
button,a {
  -webkit-tap-highlight-color:transparent}
button {
  cursor:pointer}
a {
  color:inherit}
button {
  color:inherit}
button:disabled {
  cursor:wait;
  opacity:.55}
button:focus-visible,a:focus-visible {
  outline:3px solid #b5a3ef;
  outline-offset:3px}
button,input,textarea,select {
  transition:background .18s,border .18s}
h1,h2,h3,p {
  margin-top:0}
h1,h2,h3 {
  line-height:1.2;
  letter-spacing:-.6px}
h1 {
  font-size:31px;
  font-weight:650;
  margin-bottom:9px}
h2 {
  font-size:19px;
  font-weight:650}
h3 {
  font-size:17px}
strong,b {
  font-weight:650}
p {
  margin-bottom:14px}
small {
  font-size:12px}
.muted,.footnote {
  color:var(--muted)}
.footnote {
  font-size:12px;
  line-height:1.7;
  margin-top:20px;
  margin-bottom:0}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)}
[hidden] {
  display:none!important}
.ico {
  display:inline-block;
  width:21px;
  height:21px;
  vertical-align:middle;
  flex:0 0 auto}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:240px;
  padding:36px 22px;
  background:#fff;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  z-index:20;
  overflow:auto}
.brand {
  display:flex;
  gap:11px;
  align-items:center;
  text-decoration:none;
  font-size:24px;
  font-weight:750;
  letter-spacing:-1px}
.brand img {
  width:44px;
  height:44px;
  border-radius:14px}
.brand small {
  display:block;
  font-size:8px;
  letter-spacing:1.6px;
  font-weight:600;
  color:#a19aaa;
  margin-top:4px}
.side-caption {
  font-size:10px;
  letter-spacing:2px;
  color:#a6a0b3;
  margin:36px 15px 13px}
.nav-item {
  display:flex;
  align-items:center;
  gap:12px;
  border:0;
  background:none;
  border-radius:12px;
  padding:13px 14px;
  width:100%;
  text-align:left;
  font-size:12px;
  color:#878090;
  margin-bottom:4px}
.nav-item .ico {
  width:19px;
  height:19px}
.nav-item.active {
  color:var(--primary);
  background:#f1edfb;
  font-weight:650}
.nav-item:hover {
  background:#f7f5fc}
.nav-new {
  font-size:7px;
  letter-spacing:1px;
  padding:3px 4px;
  background:#ede6fb;
  border-radius:4px;
  margin-left:auto}
.nav-divider {
  height:1px;
  background:var(--line);
  margin:14px}
.side-bottom {
  margin-top:auto;
  padding-top:30px}
.side-bottom>.btn {
  width:100%;
  font-size:11px}
.side-bottom>small {
  display:block;
  text-align:center;
  color:#aaa3b2;
  font-size:10px;
  margin-top:16px}
.side-message {
  margin:16px 13px 22px;
  font-size:21px;
  font-weight:500;
  letter-spacing:-.8px;
  color:#b1a3d6;
  line-height:1.35}
.side-message span {
  display:block;
  font-size:10px;
  letter-spacing:0;
  color:#a9a3b0;
  margin-top:8px}
.app-shell {
  margin-left:240px;
  padding:0 44px;
  max-width:1660px}
#topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:34px 0 32px}
.greeting h2 {
  font-size:25px;
  letter-spacing:-.9px;
  margin:6px 0 4px}
.eyebrow {
  font-size:9px;
  font-weight:650;
  letter-spacing:1.8px;
  color:#9891a3}
.today-label {
  font-size:12px;
  color:var(--muted);
  text-transform:capitalize}
.top-actions {
  display:flex;
  gap:12px;
  align-items:center}
.save-status {
  font-size:10px;
  color:#6c9888}
.save-status:before {
  content:"";
  display:inline-block;
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  margin-right:7px}
.save-status.error {
  color:var(--red)}
.icon-button {
  display:inline-grid;
  place-items:center;
  padding:0!important;
  flex:0 0 auto;
  border-radius:50%;
  border:1px solid var(--line);
  background:#fff;
  color:#70657e}
.profile-button {
  border:0;
  background:none;
  padding:0;
  min-width:44px;
  min-height:44px;
  border-radius:50%}
.avatar {
  width:47px;
  height:47px;
  display:grid;
  place-items:center;
  object-fit:cover;
  border-radius:50%;
  background:linear-gradient(145deg,#dcd0f2,#b4d5e2);
  color:#574172;
  font-size:19px;
  font-weight:700;
  border:3px solid #fff;
  box-shadow:0 2px 10px #33295d09}
.avatar.large {
  width:92px;
  height:92px;
  font-size:32px;
  margin:0 auto 15px}
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:0;
  border-radius:11px;
  padding:12px 17px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  white-space:normal;
  text-align:centermin-height:var(--control-height);
  line-height:1.25;
  border-radius:var(--control-radius);}
.btn:hover {
  filter:brightness(.97)}
.btn .ico {
  width:17px;
  height:17px}
.btn.primary {
  background:var(--primary);
  color:#fff;
  box-shadow:0 6px 15px #7455d719}
.btn.secondary {
  background:#efebfa;
  color:#7356bf}
.btn.subtle {
  background:#f1f1f6;
  color:#7c7389}
.btn.text {
  background:none;
  color:var(--primary);
  padding:6px 0;
  font-size:12px}
.btn.danger {
  background:#fbeef2;
  color:#bd5270}
.btn.small {
  padding:8px 11px;
  font-size:11px}
.actions {
  display:flex;
  flex-wrap:wrap;
  gap:9px}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin:7px 0 28px}
.page-heading p {
  color:var(--muted);
  margin:0;
  font-size:13px}
.month-switch {
  display:flex;
  align-items:center;
  gap:4px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:5px}
.month-switch .icon-button {
  border:0;
  font-size:20px;
  background:none}
.month-switch input {
  border:0;
  background:none;
  color:#726980;
  font-size:12px;
  width:143px;
  min-width:0;
  outline:0}
.overview {
  display:grid;
  grid-template-columns:1.3fr 1fr;
  padding:25px 0 0;
  gap:38px}
.balance-label {
  font-size:11px;
  letter-spacing:1.9px;
  color:#8e859d;
  display:flex;
  align-items:center;
  gap:12px}
.currency-pill {
  font-size:9px;
  letter-spacing:.4px;
  background:#eeebf7;
  padding:4px 7px;
  border-radius:5px}
.total-balance {
  font-size:clamp(36px,3.7vw,60px);
  letter-spacing:-2.8px;
  line-height:1.2;
  font-weight:650;
  margin-top:14px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums}
.balance-caption {
  color:#a69cab;
  font-size:11px;
  margin-top:10px}
.income-expense {
  display:flex;
  gap:38px;
  margin-top:25px}
.income-expense>div {
  min-width:0}
.income-expense span {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:12px;
  color:#8d8398}
.income-expense .ico {
  width:15px;
  height:15px;
  color:#3f9e8e}
.income-expense>div+div .ico {
  color:#bc829d}
.income-expense strong {
  display:block;
  font-size:22px;
  letter-spacing:-.7px;
  margin-top:6px}
.overview-side {
  border-left:1px solid #e8e5f1;
  padding-left:40px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:20px}
.overview-side .month-switch {
  align-self:flex-end}
.insight {
  display:flex;
  gap:13px;
  align-items:center}
.insight p {
  font-size:12px;
  color:#887b98;
  margin:0}
.insight strong {
  display:block;
  font-size:19px;
  color:#68558a;
  margin-top:3px}
.insight small {
  display:block;
  font-size:10px;
  color:#a196ac;
  margin-top:4px}
.insight-icon {
  background:#eeebf9;
  color:#9680c5;
  display:grid;
  place-items:center;
  width:41px;
  height:41px;
  border-radius:13px}
.assistant-prompt {
  background:none;
  border:0;
  padding:0;
  color:#7a658f;
  display:flex;
  gap:9px;
  align-items:center;
  font-size:12px}
.assistant-prompt .ico:last-child {
  width:14px;
  height:14px}
.quick-actions {
  display:flex;
  gap:10px;
  margin-top:26px}
.section {
  margin-top:32px}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:18px}
.section-title h2 {
  font-size:17px;
  letter-spacing:-.4px;
  margin:0}
.section-title .btn {
  font-size:11px;
  white-space:nowrap}
.section-title .ico {
  width:14px;
  height:14px}
.account-rail {
  display:flex;
  gap:18px;
  overflow-x:auto;
  scroll-snap-type:x proximity;
  padding-bottom:15px;
  scrollbar-width:thin;
  scrollbar-color:#dcd5ed transparent}
.bank-card {
  border:0;
  border-radius:21px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  flex:0 0 290px;
  min-height:195px;
  padding:22px;
  text-align:left;
  color:#fff;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  scroll-snap-align:start;
  box-shadow:0 9px 20px #59418e0f;
  background:#a68bc9}
.bank-card:before {
  content:'';
  position:absolute;
  inset:-70% -40% 20% 20%;
  background:radial-gradient(ellipse at center,#ffffff5a,transparent 65%);
  transform:rotate(-24deg);
  z-index:-1}
.bank-card:after {
  content:'';
  position:absolute;
  width:260px;
  height:260px;
  right:-130px;
  bottom:-180px;
  border:35px solid #ffffff13;
  border-radius:50%;
  z-index:-1}
.bank-card.plum {
  background:linear-gradient(120deg,#b398d6,#8a6fbd 50%,#6c519c)}
.bank-card.blue {
  background:linear-gradient(120deg,#86b2ed,#648acf 55%,#476bb0)}
.bank-card.teal {
  background:linear-gradient(120deg,#80c7c2,#58a8a3 55%,#377d85)}
.bank-card.peach {
  background:linear-gradient(120deg,#e4b9a8,#d09b94 55%,#ba8195)}
.bank-card.navy {
  background:linear-gradient(120deg,#8995c2,#65759d 55%,#444f7c)}
.bank-card-top {
  display:flex;
  justify-content:space-between;
  align-items:center}
.bank-emblem {
  display:grid;
  place-items:center;
  min-width:44px;
  height:44px;
  border:1px solid #ffffff55;
  border-radius:10px;
  background:#ffffff12}
.bank-tag {
  font-size:9px;
  border:1px solid #ffffff40;
  border-radius:20px;
  padding:4px 10px;
  color:#ffffffe0;
  text-transform:capitalize}
.bank-name {
  display:block;
  font-size:14px;
  margin:26px 0 2px;
  letter-spacing:.1px}
.bank-card strong {
  display:block;
  font-size:27px;
  font-weight:550;
  letter-spacing:-.6px;
  white-space:nowrap}
.bank-meta {
  display:flex;
  justify-content:space-between;
  gap:6px;
  margin-top:11px;
  font-size:9px;
  color:#ffffffe0}
.home-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:24px;
  margin-top:18px}
.panel {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:25px;
  box-shadow:var(--shadow);
  min-width:0}
.transaction {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  padding:17px 0;
  border:0;
  border-bottom:1px solid #f0eef5;
  background:none;
  text-align:left}
.transaction:last-child {
  border-bottom:0}
.transaction:hover .tx-content strong {
  color:var(--primary)}
.tx-icon {
  width:41px;
  height:41px;
  background:#f0edf8;
  color:#967eaf;
  border-radius:13px;
  display:grid;
  place-items:center;
  flex:0 0 auto}
.tx-icon.expense {
  background:#f5eef2;
  color:#bd8ba0}
.tx-icon.income {
  background:#e9f5f1;
  color:#68a694}
.tx-icon .ico {
  width:18px;
  height:18px}
.tx-content {
  flex:1;
  min-width:0}
.tx-content strong {
  display:block;
  font-size:13px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-weight:600}
.tx-content small {
  display:block;
  color:#a19aab;
  font-size:10px;
  margin-top:4px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap}
.tx-amount {
  font-size:13px;
  white-space:nowrap;
  font-weight:600}
.tx-amount.expense {
  color:#a3627c}
.tx-amount.income {
  color:#4c9884}
.tx-amount small {
  display:block;
  text-align:right;
  font-size:9px;
  color:#bb9655;
  margin-top:4px}
.goal-empty-art {
  height:120px;
  border-radius:16px;
  background:linear-gradient(125deg,#f2eaf9,#f1f4fc);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  color:#a696bf;
  gap:14px;
  margin:20px 0}
.goal-empty-art .ico {
  width:36px;
  height:36px}
.goal-empty-art span {
  font-size:12px}
.plan-preview {
  border-top:1px solid var(--line);
  padding-top:19px;
  margin-top:23px}
.plan-preview>span {
  display:block;
  font-size:10px;
  color:#92869f}
.plan-preview .ico {
  width:15px;
  height:15px;
  margin-right:6px}
.plan-preview strong {
  display:block;
  font-size:15px;
  margin:6px 0 9px}
.plan-preview .btn {
  font-size:11px}
.app-footer {
  padding:35px 0;
  color:#b4acbe;
  font-size:10px;
  letter-spacing:.2px}
.bottomnav,.fab {
  display:none}
.stats-row {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:18px}
.stat {
  background:white;
  padding:21px 23px;
  border:1px solid var(--line);
  border-radius:18px}
.stat>span {
  display:block;
  font-size:11px;
  color:#9d94a9}
.stat>strong {
  display:block;
  font-size:25px;
  letter-spacing:-.8px;
  margin:8px 0 3px}
.stat>small {
  color:#aca4b5;
  font-size:10px}
.stats-row.compact {
  gap:10px;
  margin-top:22px}
.compact .stat {
  border:0;
  background:#f7f6fa;
  padding:16px}
.compact .stat strong {
  font-size:19px}
.toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:26px 0 18px}
.toolbar h2 {
  margin:0;
  font-size:18px}
.toolbar>.muted {
  font-size:11px}
.filters {
  display:grid;
  grid-template-columns:2fr 1fr 1.2fr 1.2fr 1fr;
  gap:9px;
  margin:20px 0}
.filters select,.search-field {
  min-width:0;
  width:100%;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  padding:11px;
  color:#8d839a;
  font-size:11px}
.search-field {
  display:flex;
  align-items:center;
  gap:9px}
.search-field input {
  border:0;
  outline:0;
  width:100%;
  min-width:0;
  font-size:11px;
  background:none}
.search-field .ico {
  width:17px;
  height:17px;
  color:#a39aaf}
.accounts-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px}
.accounts-grid .bank-card {
  width:100%;
  min-height:215px}
.simple-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 0}
.simple-row small {
  color:var(--muted);
  font-size:11px}
.simple-row b {
  font-size:13px}
.big-number {
  display:block;
  font-size:32px;
  letter-spacing:-1px;
  margin:18px 0}
.progress {
  height:6px;
  border-radius:10px;
  background:#eeeaf6;
  overflow:hidden}
.progress>span {
  height:100%;
  display:block;
  border-radius:10px;
  background:#9173d8;
  max-width:100%}
.notice {
  background:#f0edf8;
  border:1px solid #e8e1f4;
  padding:15px 18px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  border-radius:14px;
  font-size:12px;
  color:#8c7b9f;
  line-height:1.6}
.notice .ico {
  width:18px;
  height:18px;
  margin-top:1px}
.notice.warning {
  background:#fbf2e8;
  border-color:#f1dfc7;
  color:#aa8557}
.plan-row {
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto auto;
  gap:14px;
  align-items:center;
  padding:19px 0;
  border-bottom:1px solid var(--line)}
.plan-row:last-child {
  border:0}
.plan-row strong {
  font-size:13px}
.plan-row small {
  display:block;
  color:#a99eb4;
  font-size:10px;
  margin-top:5px}
.plan-row b {
  font-size:13px}
.plan-row.done strong {
  text-decoration:line-through;
  color:#aaa0b8}
.check-button {
  width:44px;
  height:44px;
  border:1px solid #d6cce9;
  background:none;
  border-radius:10px;
  padding:4px;
  color:white;
  display:grid;
  place-items:center}
.check-button.checked {
  background:#aa91d4;
  border-color:#aa91d4}
.check-button .ico {
  width:17px;
  height:17px}
.debt-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px}
.badge {
  padding:5px 10px;
  background:#f0ebfa;
  border-radius:20px;
  color:#9a80bb;
  font-size:10px;
  white-space:nowrap}
.badge.green {
  background:#e5f4ee;
  color:#529580}
.segmented,.currency-toggle {
  display:flex;
  background:#eeecf4;
  border-radius:30px;
  padding:4px;
  gap:3px}
.segmented .btn,.currency-toggle .btn {
  border-radius:25px;
  background:none;
  padding:8px 17px;
  color:#91879d;
  font-size:11px}
.segmented .selected,.currency-toggle .selected {
  background:#8a6bdc;
  color:#fff}
.report-hero {
  max-width:720px;
  margin:32px 0}
.report-hero>strong {
  display:block;
  font-size:47px;
  font-weight:650;
  letter-spacing:-2px;
  margin:12px 0 9px}
.net {
  font-size:13px}
.positive {
  color:var(--green)}
.negative {
  color:var(--red)}
.report-grid {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:24px}
.donut-wrap {
  max-width:300px;
  margin:20px auto;
  position:relative}
.donut-wrap svg {
  display:block;
  width:100%}
.donut-center {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  pointer-events:none}
.donut-center small {
  font-size:9px;
  letter-spacing:1px;
  color:#a99cb9}
.donut-center strong {
  font-size:21px;
  margin:5px 0;
  letter-spacing:-.7px}
.donut-center span {
  font-size:10px;
  color:#a99cb9}
.legend {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px}
.legend>div {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:10px;
  color:#968c9e}
.legend b {
  margin-left:auto}
.color-dot {
  width:8px;
  height:8px;
  border-radius:50%;
  flex-shrink:0}
.category-stat {
  margin:10px 0 20px}
.category-stat .simple-row {
  font-size:12px}
.calendar-layout {
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:24px}
.calendar-grid {
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:8px}
.weekday {
  text-align:center;
  font-size:10px;
  color:#a69bad;
  padding:5px 0 10px}
.calendar-cell {
  background:#fbfafd;
  border:1px solid #eeebf4;
  border-radius:13px;
  min-height:75px;
  padding:10px 4px;
  color:#897c98;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:space-between;
  gap:6px}
.calendar-cell b {
  font-size:14px}
.calendar-cell.selected {
  background:#eee8fb;
  border-color:#ab91dd;
  color:#8060b9}
.calendar-cell.today b {
  border-bottom:2px solid #9471d2}
.day-dots {
  display:flex;
  justify-content:center;
  gap:3px;
  align-items:center;
  height:12px}
.day-dots i,.calendar-key i {
  width:6px;
  height:6px;
  border-radius:50%;
  display:inline-block}
.day-dots small {
  font-size:8px}
.pink {
  background:#d78ea8}
.green {
  background:#7cb8a3}
.orange {
  background:#dab286}
.purple {
  background:#a48acc}
.calendar-key {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-top:17px;
  font-size:9px;
  color:#a293b0}
.calendar-key i {
  margin-right:4px}
.settings-grid {
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:22px}
.profile-panel {
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center}
.profile-panel h2 {
  margin-bottom:7px}
.toggle-row {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center;
  padding:15px 0;
  border-bottom:1px solid var(--line)}
.toggle-row span {
  flex:1}
.toggle-row strong {
  display:block;
  font-size:12px}
.toggle-row small {
  display:block;
  font-size:10px;
  color:#a397b0;
  line-height:1.7;
  margin-top:4px}
.toggle-row input {
  accent-color:var(--primary);
  width:19px;
  height:19px}
.settings-actions {
  display:flex;
  flex-direction:column;
  gap:10px}
.finance-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px}
.finance-card {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:12px;
  padding:25px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--line);
  text-align:left}
.finance-card>span {
  padding:12px;
  background:#f1ebfa;
  color:#a18abe;
  border-radius:13px}
.finance-card>strong {
  font-size:16px}
.finance-card>small {
  font-size:11px;
  color:#a69aaf}
.finance-card>.ico {
  position:absolute;
  right:17px;
  top:25px;
  width:16px;
  color:#c1b4ce}
.empty {
  text-align:center;
  padding:34px 15px;
  color:#a59aad}
.empty>.ico {
  width:32px;
  height:32px;
  color:#c3b6d8;
  margin-bottom:12px}
.empty h3 {
  font-size:15px;
  color:#85748f;
  margin:0 0 9px}
.empty p {
  font-size:12px;
  margin:0;
  line-height:1.7}
.loading {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:15px;
  min-height:60vh;
  color:#a598b3}
.spinner {
  width:26px;
  height:26px;
  border:3px solid #e6dcf5;
  border-top-color:#9c7acb;
  border-radius:50%;
  animation:spin .8s linear infinite}
@keyframes spin {
  to {
  transform:rotate(360deg)}
}
.modal-open {
  overflow:hidden}
.modalback {
  position:fixed;
  inset:0;
  z-index:100;
  background:#30244257;
  backdrop-filter:blur(6px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px}
.modal {
  width:100%;
  max-width:590px;
  max-height:92dvh;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:#fff;
  border-radius:27px;
  padding:28px;
  box-shadow:0 30px 100px #27143c25}
.modal-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:20px}
.modal-head h2 {
  font-size:23px;
  margin:0;
  line-height:1.25}
.modal-head .icon-button {
  background:#f7f5fb;
  border:0}
.modal-head .ico {
  width:17px;
  height:17px}
.modal-description {
  font-size:12px;
  color:#9a8ca9;
  line-height:1.7;
  margin-bottom:22px}
.field {
  margin-bottom:16px;
  min-width:0}
.field label {
  display:block;
  color:#8a799c;
  font-size:11px;
  font-weight:600;
  margin:0 0 7px}
.field input,.field select,.field textarea {
  width:100%;
  min-height:45px;
  padding:11px 13px;
  background:#fff;
  border:1px solid #e6dfed;
  border-radius:10px;
  color:#62536f;
  outline:none;
  min-width:0}
.field input:focus,.field select:focus,.field textarea:focus {
  border-color:#ab8fcf;
  box-shadow:0 0 0 3px #f2ebfb}
.field textarea {
  min-height:80px;
  resize:vertical}
.field small {
  display:block;
  font-size:10px;
  color:#a797b5;
  margin-top:6px;
  line-height:1.6}
.form-two {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:15px}
.form-two .field {
  margin-bottom:15px}
.modal-actions {
  display:flex;
  gap:10px;
  margin-top:24px}
.modal-actions>.btn {
  flex:1}
.form-error {
  background:#fff0f4;
  color:#b55d7b;
  padding:12px;
  border-radius:10px;
  font-size:12px;
  margin-top:15px}
.delete-row {
  border-top:1px solid var(--line);
  margin-top:25px;
  padding-top:15px}
.file-label {
  display:inline-block;
  background:#f0eafa;
  color:#876aa8;
  border-radius:10px;
  padding:11px 14px;
  font-size:12px;
  cursor:pointer}
.file-label input {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%)}
.file-label:focus-within {
  outline:3px solid var(--focus);
  outline-offset:3px}
.upload-preview {
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:15px;
  background:#f7f3fa;
  margin-bottom:15px}
.form-inline {
  display:flex;
  gap:10px;
  align-items:flex-end}
.form-inline>.field {
  flex:1}
.form-inline>.btn {
  margin-bottom:16px}
.toast {
  position:fixed;
  left:50%;
  bottom:35px;
  transform:translate(-50%,20px);
  background:#43334f;
  color:white;
  box-shadow:0 8px 35px #33203f22;
  border-radius:15px;
  padding:14px 20px;
  z-index:150;
  opacity:0;
  pointer-events:none;
  display:flex;
  align-items:center;
  gap:18px;
  max-width:calc(100% - 30px);
  font-size:12px;
  transition:.2s}
.toast.show {
  opacity:1;
  transform:translate(-50%,0);
  pointer-events:auto}
.toast .btn {
  color:#d9c4fa;
  white-space:nowrap}
#syncBanner {
  background:#fbf0e6;
  border:1px solid #f3d9bd;
  border-radius:14px;
  padding:17px;
  margin-bottom:24px;
  font-size:12px;
  color:#9e754f}
#syncBanner p {
  margin:7px 0 13px}
.goals-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px}
.goal-card {
  padding:0;
  overflow:hidden;
  display:flex;
  flex-direction:column}
.goal-card-body {
  padding:22px}
.goal-image-button {
  border:0;
  background:none;
  display:block;
  width:100%;
  padding:0}
.goal-image {
  height:160px;
  width:100%;
  object-fit:cover;
  display:block}
.goal-placeholder {
  height:160px;
  background:linear-gradient(130deg,#eae1f7,#e3ecf5);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#aa96c3}
.goal-placeholder .ico {
  width:45px;
  height:45px}
.goal-card h3 {
  font-size:18px;
  margin:12px 0}
.goal-card .simple-row {
  font-size:11px;
  gap:7px}
.goal-card .simple-row b {
  font-size:12px}
.goal-card .progress {
  margin:12px 0}
.goal-card small {
  color:#a397ae;
  font-size:10px}
.goal-card-footer {
  border-top:1px solid var(--line);
  margin-top:15px;
  padding-top:15px;
  display:flex;
  justify-content:space-between;
  align-items:center}
.goal-card-footer strong {
  font-size:14px}
.goal-mini {
  display:flex;
  gap:14px;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:17px 0;
  background:none;
  border-top:0;
  border-right:0;
  border-left:0;
  width:100%;
  text-align:left}
.goal-mini img,.goal-mini-art {
  width:53px;
  height:53px;
  border-radius:12px;
  object-fit:cover;
  flex-shrink:0;
  background:#f0eafa;
  display:grid;
  place-items:center;
  color:#b19bcb}
.goal-mini>div {
  flex:1;
  min-width:0}
.goal-mini strong {
  display:block;
  font-size:13px;
  margin-bottom:8px}
.goal-mini small {
  font-size:10px;
  color:#aa9cb7}
.goal-detail-image {
  height:180px;
  width:100%;
  object-fit:cover;
  border-radius:15px;
  margin-bottom:15px}
.goal-detail-stats {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin:20px 0}
.goal-detail-stats>div {
  background:#f7f4fa;
  padding:14px;
  border-radius:12px}
.goal-detail-stats small {
  display:block;
  font-size:10px;
  color:#a18bb2}
.goal-detail-stats b {
  font-size:18px;
  display:block;
  margin-top:5px}
.goal-filter {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px}
.goal-filter select {
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px;
  color:#8e789f;
  background:#fff;
  font-size:12px}
.schedule-row {
  display:flex;
  align-items:center;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:13px 0}
.schedule-row>span {
  flex:1;
  font-size:12px;
  text-transform:capitalize}
.schedule-row b {
  font-size:12px}
.schedule-row.done>span {
  text-decoration:line-through;
  color:#b4a6bf}
.goal-link {
  display:inline-flex;
  gap:7px;
  color:#926bb5;
  font-size:11px;
  text-decoration:none;
  margin:8px 0}
.voice-intro {
  text-align:center;
  padding:8px 0 12px}
.voice-intro h3 {
  font-size:25px;
  line-height:1.3}
.voice-intro p {
  font-size:12px;
  color:#a291b2}
.voice-mic {
  display:flex;
  justify-content:center;
  align-items:center;
  width:90px;
  height:90px;
  border:0;
  border-radius:50%;
  background:linear-gradient(140deg,#9879e2,#684cc0);
  box-shadow:0 9px 35px #9879e238;
  color:#fff;
  margin:22px auto 14px}
.voice-mic .ico {
  width:32px;
  height:32px}
.voice-mic.listening {
  animation:pulse 1.2s infinite}
@keyframes pulse {
  50% {
  box-shadow:0 0 0 15px #9271d921}
}
.voice-status {
  text-align:center;
  color:#a690b6;
  font-size:11px;
  margin-bottom:20px}
.transcript {
  background:#f7f3fa;
  border-radius:13px;
  padding:15px;
  font-size:13px;
  white-space:pre-wrap;
  color:#8a769a;
  max-height:100px;
  overflow:auto;
  margin:13px 0}
.voice-choices {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  max-height:140px;
  overflow:auto;
  margin-bottom:15px}
.voice-choices .btn {
  font-size:12px;
  padding:8px 10px}
.assistant-hero {
  max-width:760px;
  padding:22px 0}
.assistant-hero>span {
  display:grid;
  place-items:center;
  width:55px;
  height:55px;
  background:#ece4f9;
  border-radius:17px;
  color:#a184c6;
  margin-bottom:18px}
.assistant-hero h1 {
  font-size:36px;
  line-height:1.25}
.assistant-hero p {
  color:#a08cab;
  font-size:15px;
  line-height:1.7;
  max-width:540px}
.question-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px;
  margin:25px 0}
.question-card {
  border:1px solid #e8dff1;
  border-radius:15px;
  padding:19px;
  background:#fff;
  text-align:left;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:#8c71a0;
  font-size:12px}
.question-card .ico {
  width:17px;
  color:#b49aca}
.chat-messages {
  display:flex;
  flex-direction:column;
  gap:15px;
  margin:25px 0}
.chat-bubble {
  max-width:85%;
  padding:18px 20px;
  border-radius:18px;
  font-size:13px;
  line-height:1.8;
  white-space:pre-wrap;
  background:#fff;
  border:1px solid var(--line)}
.chat-bubble.user {
  align-self:flex-end;
  background:#ede5fa;
  color:#8b6ba7;
  border:0}
.chat-bubble small {
  display:block;
  color:#b49dc4;
  font-size:10px;
  margin-bottom:7px}
.chat-compose {
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  padding:8px;
  border:1px solid var(--line);
  border-radius:18px;
  position:sticky;
  bottom:22px}
.chat-compose input {
  border:0;
  outline:0;
  flex:1;
  min-width:0;
  padding:9px;
  font-size:13px;
  color:#766483}
.chat-compose .btn {
  padding:12px}
.assistant-note {
  font-size:10px;
  color:#b09bbe;
  margin-top:12px}
.login-card .mark {
  background:none!important}
.login-card .secure {
  background:#f0ebfa;
  color:#9a83b1}
.login-card h1 {
  font-size:27px}
.login-card .sub {
  font-size:13px;
  line-height:1.7}
.login-card input {
  font-family:inherit}
.login-card button {
  background:#8060cb}
details>summary {
  cursor:pointer;
  font-size:12px;
  color:#9c89ac;
  margin:6px 0}
details[open]>summary {
  margin-bottom:15px}
@media(min-width:1600px) {
  .app-shell {
  padding:0 64px}
.bank-card {
  flex-basis:310px}
}
@media(max-width:1220px) {
  .sidebar {
  width:216px;
  padding:30px 15px}
.app-shell {
  margin-left:216px;
  padding:0 27px}
.total-balance {
  font-size:43px}
.overview {
  gap:23px}
.overview-side {
  padding-left:25px}
.filters {
  grid-template-columns:repeat(4,1fr)}
.filters .search-field {
  grid-column:1/-1}
.accounts-grid,.goals-grid {
  grid-template-columns:repeat(2,minmax(0,1fr))}
.home-grid {
  grid-template-columns:1.2fr 1fr;
  gap:18px}
.panel {
  padding:21px}
.income-expense {
  gap:25px}
.income-expense strong {
  font-size:20px}
.calendar-layout {
  grid-template-columns:1.2fr 1fr;
  gap:18px}
.calendar-grid {
  gap:5px}
.calendar-cell {
  min-height:62px}
}
@media(max-width:950px) {
  .sidebar {
  display:none}
.app-shell {
  margin-left:0;
  padding:0 27px 95px;
  max-width:100%}
.bottomnav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  position:fixed;
  bottom:calc(14px + env(safe-area-inset-bottom));
  left:50%;
  transform:translateX(-50%);
  width:min(440px,calc(100% - 34px));
  background:#ffffffee;
  backdrop-filter:blur(18px);
  border:1px solid #e9e5f2;
  border-radius:28px;
  padding:5px;
  box-shadow:0 4px 25px #45365214;
  z-index:40}
.bottom-item {
  background:none;
  border:0;
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:9px 2px;
  color:#9e90ad;
  font-size:10px;
  border-radius:24px}
.bottom-item .ico {
  width:21px;
  height:21px}
.bottom-item.active {
  color:#8c6bc3;
  background:#f1ebf9}
.fab {
  display:grid;
  place-items:center;
  position:fixed;
  bottom:calc(97px + env(safe-area-inset-bottom));
  right:24px;
  z-index:35;
  width:53px;
  height:53px;
  border:0;
  border-radius:18px;
  background:#8968d3;
  color:#fff;
  box-shadow:0 7px 20px #7455d735;
  font-size:32px}
.toast {
  bottom:calc(165px + env(safe-area-inset-bottom))}
.chat-compose {
  bottom:105px}
.app-footer {
  padding-bottom:20px}
.desktop-only {
  display:none!important}
}
@media(max-width:620px) {
  body {
  font-size:13px}
.app-shell {
  padding:0 20px 100px}
#topbar {
  padding:28px 0 26px;
  align-items:center}
.greeting .eyebrow {
  display:none}
.greeting h2 {
  font-size:25px;
  margin:0 0 6px}
.today-label {
  font-size:11px}
.top-actions {
  gap:9px}
.top-actions .icon-button {
  border:0;
  background:none}
.top-actions .ico {
  width:23px;
  height:23px}
.save-status {
  display:block}
.save-status.error {
  display:block}
.avatar {
  width:42px;
  height:42px;
  border-width:2px}
.overview {
  display:block;
  padding:10px 0 0}
.balance-label {
  font-size:10px;
  letter-spacing:1.7px}
.total-balance {
  font-size:44px;
  letter-spacing:-2px;
  margin-top:12px}
.balance-caption {
  font-size:10px;
  margin-top:8px}
.income-expense {
  gap:38px;
  margin-top:24px}
.income-expense span {
  font-size:11px}
.income-expense strong {
  font-size:21px;
  margin-top:6px}
.overview-side {
  margin-top:24px;
  padding:0;
  border:0;
  gap:18px}
.overview-side .month-switch {
  align-self:stretch;
  background:none;
  border:0;
  padding:0;
  justify-content:space-between;
  order:2;
  max-width:245px;
  margin:auto}
.overview-side .month-switch input {
  text-align:center;
  font-size:11px;
  width:154px}
.insight p {
  font-size:11px}
.insight strong {
  font-size:16px;
  display:inline;
  margin-left:5px}
.insight small {
  font-size:9px;
  margin-top:3px}
.insight-icon {
  width:32px;
  height:32px;
  background:none}
.insight-icon .ico {
  width:23px;
  height:23px}
.assistant-prompt {
  display:none}
.quick-actions {
  margin-top:20px;
  gap:7px}
.quick-actions .btn {
  padding:11px 12px;
  font-size:12px}
.quick-actions .btn:last-child {
  display:none}
.section {
  margin-top:27px}
.section-title {
  margin-bottom:16px}
.section-title h2 {
  font-size:15px}
.section-title .btn {
  font-size:12px}
.account-rail {
  gap:13px;
  margin:0 -20px;
  padding-left:20px;
  padding-right:20px;
  padding-bottom:14px;
  scrollbar-width:none}
.account-rail::-webkit-scrollbar {
  display:none}
.bank-card {
  flex-basis:263px;
  min-height:183px;
  padding:20px;
  border-radius:21px}
.bank-card strong {
  font-size:27px}
.bank-card .bank-name {
  font-size:14px;
  margin-top:25px}
.bank-emblem {
  min-width:44px;
  height:44px}
.bank-emblem .ico {
  width:18px;
  height:18px}
.bank-tag {
  font-size:9px;
  padding:4px 8px}
.bank-meta {
  font-size:8px}
.home-grid {
  display:flex;
  flex-direction:column;
  gap:24px;
  margin-top:9px}
.home-grid>.panel {
  padding:0;
  background:none;
  border:0;
  box-shadow:none}
.transaction {
  padding:17px 0;
  gap:11px}
.tx-content strong {
  font-size:13px}
.tx-content small {
  font-size:10px}
.tx-amount {
  font-size:13px}
.tx-icon {
  width:38px;
  height:38px;
  border-radius:12px}
.plan-preview {
  border-radius:15px;
  background:#f0ecf8;
  padding:18px;
  margin-top:22px}
.goal-empty-art {
  margin-top:10px;
  height:100px}
.goals-preview>.muted {
  font-size:12px}
.app-footer {
  font-size:9px;
  margin-top:10px}
h1 {
  font-size:28px}
.page-heading {
  align-items:flex-start;
  flex-wrap:wrap;
  gap:17px;
  margin-bottom:22px}
.page-heading p {
  font-size:12px;
  line-height:1.7;
  max-width:290px}
.page-heading>.btn {
  font-size:11px;
  padding:11px 14px}
.page-heading .month-switch {
  width:100%;
  justify-content:space-between}
.page-heading .month-switch input {
  width:160px;
  text-align:center}
.panel {
  padding:19px 16px;
  border-radius:18px}
.stats-row {
  grid-template-columns:1fr 1fr;
  gap:10px}
.stat {
  padding:16px 14px;
  border-radius:15px}
.stat strong {
  font-size:22px;
  margin-top:8px}
.stat span {
  font-size:10px}
.stat small {
  font-size:9px}
.toolbar {
  margin-top:22px;
  flex-wrap:wrap;
  gap:15px}
.toolbar .btn {
  font-size:11px;
  padding:10px 13px}
.toolbar h2 {
  font-size:16px}
.filters {
  grid-template-columns:1fr 1fr;
  gap:8px}
.filters select {
  font-size:11px;
  padding:12px}
.filters input {
  font-size:16px}
.accounts-grid {
  grid-template-columns:1fr;
  gap:15px}
.accounts-grid .bank-card {
  min-height:204px}
.debt-grid {
  grid-template-columns:1fr}
.plan-row {
  grid-template-columns:44px minmax(0,1fr) auto;
  gap:11px;
  padding:17px 0}
.plan-row strong {
  font-size:12px}
.plan-row>.btn {
  grid-column:2;
  justify-self:start;
  padding:0;
  font-size:12px}
.plan-row b {
  font-size:12px}
.notice {
  font-size:11px;
  padding:14px;
  gap:10px}
.segmented {
  flex:1;
  justify-content:space-between;
  padding:4px}
.segmented .btn {
  padding:8px 11px;
  font-size:12px}
.currency-toggle .btn {
  font-size:12px;
  padding:8px 12px}
.report-hero {
  margin:25px 0}
.report-hero>strong {
  font-size:39px}
.report-hero .simple-row {
  gap:10px}
.net {
  font-size:11px}
.report-grid {
  grid-template-columns:1fr;
  gap:20px}
.report-grid>.panel {
  padding:20px}
.donut-wrap {
  max-width:285px}
.donut-center strong {
  font-size:23px}
.legend {
  gap:15px}
.legend>div {
  font-size:11px}
.calendar-layout {
  grid-template-columns:1fr;
  gap:20px}
.calendar-layout>.panel:first-child {
  padding:15px 10px}
.calendar-grid {
  gap:5px}
.calendar-cell {
  min-height:62px;
  border-radius:10px;
  padding:8px 2px}
.calendar-cell b {
  font-size:13px}
.weekday {
  font-size:10px}
.settings-grid {
  grid-template-columns:1fr;
  gap:20px}
.finance-grid {
  grid-template-columns:1fr 1fr;
  gap:12px}
.finance-card {
  padding:19px 16px;
  gap:10px}
.finance-card>span {
  padding:10px}
.finance-card strong {
  font-size:14px}
.finance-card small {
  font-size:10px;
  line-height:1.6}
.finance-card>.ico {
  width:13px;
  right:10px}
.modalback {
  padding:0;
  align-items:flex-end}
.modal {
  max-width:100%;
  max-height:93dvh;
  border-radius:27px 27px 0 0;
  padding:24px 21px calc(25px + env(safe-area-inset-bottom))}
.modal:before {
  content:'';
  display:block;
  margin:-11px auto 19px;
  width:37px;
  height:4px;
  border-radius:3px;
  background:#d8cde3}
.modal-head h2 {
  font-size:22px}
.form-two {
  gap:11px}
.field input,.field select,.field textarea {
  font-size:16px}
.field label {
  font-size:11px}
.modal-description {
  font-size:12px}
.modal-actions .btn {
  font-size:13px}
.goal-filter {
  gap:9px}
.goal-filter .segmented {
  flex:0 0 100%}
.goal-filter .btn {
  font-size:12px;
  padding:9px 10px}
.goal-filter select {
  width:100%;
  font-size:12px}
.goals-grid {
  grid-template-columns:1fr;
  gap:22px}
.goal-image,.goal-placeholder {
  height:170px}
.goal-card-body {
  padding:21px}
.goal-detail-stats b {
  font-size:17px}
.goal-mini strong {
  font-size:13px}
.question-grid {
  grid-template-columns:1fr;
  gap:12px}
.assistant-hero {
  padding-top:9px}
.assistant-hero h1 {
  font-size:30px}
.assistant-hero p {
  font-size:13px}
.question-card {
  font-size:12px;
  padding:18px 16px}
.chat-compose {
  bottom:103px;
  padding:7px;
  border-radius:16px}
.chat-compose input {
  font-size:16px;
  width:100px}
.chat-compose .btn {
  padding:10px;
  font-size:11px}
.chat-bubble {
  max-width:95%;
  font-size:12px;
  padding:17px}
.voice-intro h3 {
  font-size:23px}
.voice-mic {
  margin-top:27px}
.upload-preview {
  height:150px}
.big-number {
  font-size:30px}
.total-balance {
  white-space:normal;
  overflow-wrap:anywhere}
}
/* Readable secondary text on the pale surfaces. */
:root {
  --muted:#777080}
.today-label,.page-heading p,.balance-caption,.stat>small,.footnote,.app-footer,.tx-content small {
  color:#7f758a}
.nav-item {
  color:#786d85}
.nav-item.active {
  color:#6e49b2}
.income-expense span,.balance-label,.category-stat,.legend>div,.field label,.modal-description,.goal-card small,.plan-row small,.assistant-note {
  color:#796887}
.bank-tag,.bank-meta {
  color:#fff}
.bank-card.plum {
  background:linear-gradient(120deg,#af8dcf,#8966b8 50%,#694a98)}
.bank-card.blue {
  background:linear-gradient(120deg,#7ca6df,#5a80c6 55%,#3f60a5)}
.bank-card.teal {
  background:linear-gradient(120deg,#68b4b0,#439b96 55%,#2f767f)}
.bank-card.peach {
  background:linear-gradient(120deg,#d7a390,#c48b86 55%,#ac6980)}
.overview-side .insight p,.insight small,.assistant-prompt {
  color:#7c698c}
.form-error {
  color:#9d3e5c}
.notice {
  color:#75618b}
.side-message {
  color:#927dae}
.side-bottom>small {
  color:#8b7f98}
.question-card {
  color:#6f5387}
.goal-card .badge {
  color:#866ba5}
.goal-card .badge.green {
  color:#4a8066}
@media(max-width:620px) {
  .greeting h2 {
  font-size:25px}
.goal-summary {
  font-size:11px}
.account-rail {
  scroll-padding-left:20px}
.bottomnav {
  padding-bottom:5px}
.field label {
  font-size:12px}
.modal-description {
  font-size:12px}
}
.goal-card.panel {
  padding:0}
.goal-card-footer small,.goal-card-footer strong {
  display:block}
.goal-card-footer strong {
  margin-top:4px}
.goal-summary {
  font-size:12px;
  line-height:1.7}
.field select:disabled {
  background:#f6f3f9;
  color:#94889f;
  cursor:default}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
  transition:none!important;
  animation:none!important;
  scroll-behavior:auto!important}
}
/* Shared controls and accessible states */
button,input,select,textarea {
  font:inherit}
button,a,input,select,textarea,summary {
  -webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:3px}
button:disabled,.btn:disabled {
  opacity:.55;
  cursor:wait;
  filter:none;
  transform:none}
button:active:not(:disabled) {
  filter:brightness(.94)}
.ico {
  display:block;
  flex-shrink:0;
  aspect-ratio:1;
  shape-rendering:geometricPrecision}
.btn.icon-button {
  padding:0;
  border-radius:50%;
  flex-shrink:0;
  width:44px;
  height:44px;
  min-height:44px}
.btn.text {
  min-height:44px;
  padding:8px 4px}
.btn.small {
  min-height:44px}
.field input,.field select,.filters select,.search-field,.file-label {
  min-height:44px}
.file-label {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:12px;
  cursor:pointer}
.field,.form-two>* {
  min-width:0}
.field input,.field select,.field textarea {
  max-width:100%}
.field textarea {
  resize:vertical}
.top-actions {
  min-width:0}
.save-status {
  white-space:nowrap;
  font-size:11px;
  line-height:1.4}
.save-status.error {
  color:#a53854}
.dialog-save-status {
  font-size:11px;
  color:var(--green);
  margin:-10px 0 18px}
.dialog-save-status.error {
  color:#a53854}
.bottom-item {
  min-height:56px;
  line-height:1.2}
.bottom-item .ico {
  width:22px;
  height:22px}
.fab .ico {
  width:26px;
  height:26px}
.fab[hidden] {
  display:none}
.modal-head .icon-button {
  align-self:flex-start}
.modal-head h2 {
  overflow-wrap:anywhere}
.form-error {
  overflow-wrap:anywhere}
.bank-emblem:has(.brand-logo) {
  border:0;
  background:none;
  width:auto}
.bank-meta span:last-child {
  display:inline-flex;
  align-items:center;
  gap:4px}
.bank-meta .ico {
  width:12px;
  height:12px}
.brand-logo {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:62px;
  height:44px;
  border-radius:11px;
  background:#fff;
  border:1px solid #eeedf3;
  flex:0 0 62px;
  padding:7px;
  overflow:hidden;
  color:#65527f}
.brand-logo img {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center}
.brand-logo>span {
  font-size:14px;
  font-weight:700}
.bank-card .brand-logo {
  width:76px;
  height:44px;
  padding:7px 9px}
.brand-selection {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:56px;
  margin:4px 0 8px}
.brand-selection>span:not(.brand-logo) {
  flex:1;
  min-width:0}
.brand-selection strong,.brand-selection small {
  display:block;
  overflow-wrap:anywhere}
.brand-selection small {
  color:var(--muted);
  font-size:11px;
  margin-top:3px}
.optional {
  font-weight:400;
  color:var(--muted);
  font-size:11px}
.brand-search {
  background:#f8f7fc;
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius:14px}
.brand-search>summary {
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  min-height:28px;
  color:var(--primary);
  font-size:13px}
.brand-search>summary .ico {
  width:17px;
  height:17px}
.brand-search[open]>summary {
  margin-bottom:10px}
.brand-results {
  max-height:260px;
  overflow-y:auto;
  overscroll-behavior:contain;
  display:grid;
  gap:5px;
  margin-top:10px}
.brand-result {
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid transparent;
  padding:6px 8px;
  border-radius:12px;
  min-height:56px;
  text-align:left;
  color:var(--ink)}
.brand-result:hover {
  border-color:#cabcdf}
.brand-result>span:not(.brand-logo) {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere}
.brand-result>.ico {
  width:16px;
  color:var(--primary)}
.brand-editor {
  border-top:1px solid var(--line);
  padding-top:16px;
  margin-top:12px}
.brand-upload-preview {
  display:flex;
  justify-content:center;
  align-items:center;
  height:96px;
  border:1px dashed #d5cbe6;
  border-radius:14px;
  margin:12px 0;
  background:#fff}
.brand-upload-preview>img {
  max-width:90%;
  max-height:76px;
  object-fit:contain}
.brand-upload-preview>.ico {
  width:30px;
  height:30px;
  color:var(--muted)}
.brand-library {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px}
.brand-library-row {
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  min-width:0}
.brand-library-row>div {
  flex:1;
  min-width:0}
.brand-library-row strong {
  display:block;
  font-size:12px;
  overflow-wrap:anywhere}
.brand-library-row small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px}
.brand-library-row .brand-logo {
  width:48px;
  flex-basis:48px}
#syncBanner {
  background:#fff5df;
  border:1px solid #ecdfbd;
  border-radius:16px;
  padding:18px;
  margin:0 0 24px;
  line-height:1.6}
#syncBanner[hidden] {
  display:none}
#syncBanner p {
  margin:5px 0 12px;
  font-size:12px}
#syncBanner strong {
  font-size:14px}
#syncBanner .actions {
  flex-wrap:wrap}
.backup-list .simple-row {
  gap:12px}
.backup-list small {
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-top:5px}
.backup-list strong {
  font-size:12px}
.backup-list .btn {
  flex-shrink:0}
.transaction .tx-content {
  min-width:0}
.tx-content small {
  line-height:1.6}
.transaction .tx-amount {
  flex-shrink:0;
  max-width:46%;
  overflow-wrap:anywhere}
.transaction:has(.tx-brand) {
  column-gap:12px}
.tx-brand {
  width:48px;
  flex-basis:48px;
  height:44px}
@media(max-width:620px) {
  #topbar {
  position:relative;
  padding-bottom:46px;
  gap:10px}
.greeting {
  min-width:0}
.greeting h2 {
  overflow-wrap:anywhere}
.top-actions {
  gap:5px}
.top-actions .save-status {
  display:block;
  position:absolute;
  bottom:15px;
  left:0;
  font-size:11px;
  max-width:none}
.today-label {
  display:block;
  line-height:1.5}
.brand-library {
  grid-template-columns:1fr}
.brand-library-row .brand-logo {
  width:62px;
  flex-basis:62px}
.transaction .tx-content strong {
  font-size:13px}
.bank-card .bank-name {
  margin-top:18px}
.btn {
  min-height:44px}
.plan-row>.btn {
  min-height:36px}
.question-card {
  min-height:56px}
.brand-selection .icon-button {
  width:44px}
.modal {
  padding-left:18px;
  padding-right:18px}
}
@media(max-width:380px) {
  .form-two {
  grid-template-columns:1fr}
.app-shell {
  padding-left:16px;
  padding-right:16px}
.account-rail {
  margin-left:-16px;
  margin-right:-16px;
  padding-left:16px;
  padding-right:16px}
.greeting h2 {
  font-size:23px}
.total-balance {
  font-size:39px}
.income-expense {
  gap:20px}
.income-expense strong {
  font-size:19px}
.segmented .btn {
  padding:8px;
  min-width:0}
.transaction .tx-amount {
  font-size:12px}
.tx-brand {
  width:40px;
  flex-basis:40px;
  padding:5px}
}

/* Institution palettes keep balances readable and logos faithful to their colors. */
.bank-card.institution-card { background:linear-gradient(125deg,var(--card-from),var(--card-to)); color:var(--card-ink) }
.bank-card.institution-card::before { opacity:.22 }
.bank-card.institution-card .bank-tag,.bank-card.institution-card .bank-meta { color:inherit }
.bank-card.institution-card .bank-tag { border-color:currentColor; background:#ffffff12; opacity:.85 }
.bank-card .bank-emblem { height:52px; min-width:52px }
.bank-card .brand-logo { height:52px; width:52px; flex-basis:52px; padding:5px; border-radius:13px; border-color:#ffffff40; box-shadow:0 2px 8px #0000000d }
.bank-card .brand-logo.logo-wordmark { width:108px; flex-basis:108px; padding:9px }
.brand-logo.logo-dark { background:#162622; border-color:#162622 }
.brand-library-row .brand-logo.logo-wordmark { width:86px; flex-basis:86px }
.brand-logo.logo-symbol { padding:5px }
.transaction .tx-icon,.transaction .tx-brand { width:46px; height:46px; flex:0 0 46px; border-radius:13px }
.transaction .tx-brand { background:#fff; border:1px solid var(--line); padding:5px }
.transaction .tx-brand.logo-dark { background:#162622 }
.tx-icon .ico { width:23px; height:23px; stroke-width:1.8 }
.tx-icon.category-market { background:#e6f5ec; color:#24744d }
.tx-icon.category-food { background:#fff0df; color:#9b5c1a }
.tx-icon.category-transport { background:#e8efff; color:#3a63b3 }
.tx-icon.category-health { background:#fce9ed; color:#b34666 }
.tx-icon.category-personal { background:#eeeafb; color:#7356b1 }
.tx-icon.category-education { background:#e6f3f6; color:#237385 }
.tx-icon.category-work { background:#e9edf4; color:#526986 }
.tx-icon.category-home { background:#eef0e3; color:#69743a }
.tx-icon.category-leisure { background:#f7e9f8; color:#95519d }
.tx-icon.category-shopping { background:#f0edf6; color:#75618f }
.tx-icon.category-income { background:#e2f4ec; color:#217855 }
.income-expense .expense-summary .ico { color:#ac496b }

/* The supplied Claro Pay image has generous square margins; frame it without changing the file. */
.bank-card .brand-logo.logo-centered-square { width:90px; height:52px; flex-basis:90px; padding:4px }
.brand-logo.logo-centered-square img { object-fit:cover }
.bank-card .brand-logo.logo-centered-square img { object-fit:cover }
