:root {
  color-scheme: light;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #18253b;
  background: #f3f6fb;
  --muted: #50627b;
  --line: #dce5f1;
  --primary: #193fb4;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--primary); text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #5776ed; outline-offset: 3px; }
.wrap { width: min(100% - 2rem, 68rem); margin-inline: auto; }
.mast { background: #fff; border-bottom: 1px solid var(--line); }
.mast-inner { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; padding-block: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 750; color: #172845; }
.mark { width: 2rem; height: 2rem; border-radius: .54rem; background: #233f9b; color: white; display: grid; place-items: center; flex: none; }
.mark i { display: block; width: .92rem; height: .68rem; margin-top: .32rem; border: 1.5px solid currentColor; border-radius: .2rem; position: relative; }
.mark i::before { content: ""; position: absolute; width: .39rem; height: .37rem; left: 50%; bottom: 100%; transform: translateX(-50%); border: 1.5px solid currentColor; border-bottom: 0; border-radius: .3rem .3rem 0 0; }
.mark i::after { content: ""; position: absolute; inset: 40% auto auto 50%; height: .19rem; border-left: 1.5px solid currentColor; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.055em; line-height: 1.1; }
h2 { font-size: 1.28rem; letter-spacing: -.025em; }
h3 { font-size: 1.1rem; }
.entrance, .overview, .editor, .narrow { padding-block: clamp(1.65rem, 5vw, 4rem); }
.entry-card {
  --welcome-blue: #075eae;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  min-height: 35rem;
  padding: clamp(1.5rem, 5.5vw, 4.5rem);
  border-radius: 1.65rem;
  color: #fff;
  background: linear-gradient(120deg, #091e42c9, #14386422), url("/welcome-city.png") center bottom / cover, #164c81;
}
.entry-card h1 { font-size: clamp(2.45rem, 6.5vw, 5rem); }
.entry-card p { color: #ecf4ff; margin-top: 1rem; line-height: 1.55; }
.sign-in-card { width: 100%; max-width: 26rem; justify-self: end; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1rem; background: #fff; color: #253449; box-shadow: 0 .75rem 2.5rem #081b3d33; }
.button, button { font: inherit; font-weight: 700; display: inline-block; border: 0; border-radius: .65rem; padding: .72rem 1rem; background: var(--primary); color: #fff; cursor: pointer; text-decoration: none; }
.button:hover, button:hover { filter: brightness(1.18); }
.sign-in { display: grid; gap: 1rem; }
.sign-in-field, .remember-username { color: inherit; font: inherit; }
.sign-in-field input { background: transparent; color: inherit; border: 0; border-bottom: 1px solid #738298; border-radius: 0; padding: .55rem .1rem; }
.sign-in-password { position: relative; }
.sign-in-password input { padding-right: 4.5rem; }
.password-toggle { position: absolute; right: 0; bottom: .2rem; padding: .32rem .4rem; background: transparent; color: var(--welcome-blue); }
.remember-username:not([hidden]) { display: flex; align-items: center; gap: .55rem; }
.remember-username input { width: 1.13rem; height: 1.13rem; margin: 0; accent-color: var(--welcome-blue); }
.sign-in-submit { width: 100%; background: var(--welcome-blue); color: #fff; }
footer { padding-top: 1.55rem; font-size: .9rem; }
.overview { --account-blue: linear-gradient(105deg, #173878, #075bb6); }
.panels { margin-top: 1.35rem; display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.panels h2 { margin-bottom: .75rem; }
.surface { padding: 0; margin: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.account-group { overflow: hidden; }
.account-group h3 { padding: 1rem 1.25rem; background: var(--account-blue); color: #fff; }
.account-group ul { margin: 0; padding: 0; list-style: none; }
.account { display: grid; gap: .75rem; padding: 1.05rem 1.25rem; }
.account-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; }
.account-name span { font-size: .875rem; color: var(--muted); }
.account-balance { text-align: right; }
.account-balance strong { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 650; font-variant-numeric: tabular-nums; }
.movement { padding: 1rem; display: grid; align-items: center; gap: .7rem; }
.account + .account, .movement + .movement { border-top: 1px solid var(--line); }
.movement { grid-template-columns: minmax(0, 1fr) auto; }
.account strong, .movement strong { overflow-wrap: anywhere; }
.movement > div:last-child { text-align: right; }
small, time { display: block; margin-top: .2rem; font-size: .875rem; color: var(--muted); }
.amount { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.positive, .completed { color: #166653; }
.pending { color: #7a4a0b; }
.cancelled { color: #93364d; }
.empty { padding: 1rem; }
.editor-head, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.editor-head { justify-content: space-between; }
.editor > p { margin-top: .8rem; color: var(--muted); }
.editor > h2 { margin-top: 1.8rem; }
.form-card { padding: clamp(1rem, 3vw, 1.6rem); margin-top: .95rem; }
.form-card form { display: grid; gap: .85rem; justify-items: start; margin-top: .9rem; }
.fields { display: flex; flex-wrap: wrap; gap: .85rem; width: 100%; }
.fields label { flex: 1 1 9rem; min-width: 0; }
label { width: 100%; display: grid; gap: .32rem; font-size: .9rem; font-weight: 650; }
input, select, textarea { min-width: 0; width: 100%; font: inherit; font-size: 1rem; color: inherit; background: #fff; border: 1px solid #94a5bd; border-radius: .45rem; padding: .62rem; }
.danger { background: #fae9ed; color: #8b233b; }
.notice { margin-top: .8rem; padding: .7rem .85rem; border-radius: .45rem; background: #e1f5ec; color: #16543e; }
.notice.error { background: #fae9ed; color: #8b233b; }
@media (max-width: 51rem) { .panels { grid-template-columns: 1fr; } }
@media (max-width: 46rem) {
  .entry-card { grid-template-columns: 1fr; gap: 1.5rem; min-height: 33rem; align-content: center; }
  .sign-in-card { justify-self: start; }
}

.quick-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.15rem; }
.quick-actions a, .quick-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.65rem; padding: .4rem 1rem; border: 1px solid #c8d9f0; border-radius: 2rem; background: #fff; color: #174b89; font: inherit; font-weight: 650; text-decoration: none; }
.quick-actions a:hover { background: #e8f2ff; }
.quick-actions button:disabled { cursor: default; opacity: .68; filter: none; }
.quick-actions .quick-add { min-width: 3rem; font-size: 1.35rem; }
.transfer-page { max-width: 33rem; padding-block: clamp(1.65rem, 5vw, 4rem); }
.transfer-page h1 { margin-block: .8rem .45rem; }
.transfer-limit { color: var(--muted); }
.transfer-options, .transfer-card { margin-top: 1.15rem; }
.transfer-options a { display: block; padding: 1rem 1.25rem; text-decoration: none; }
.transfer-options a:hover { background: #eff6ff; }
.transfer-options li + li { border-top: 1px solid var(--line); }
.transfer-card { padding: 1.2rem; }
.transfer-card h2 + p { margin-top: .35rem; }
.transfer-label { margin-top: 1rem; }
.transfer-amount { font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .4rem; margin-block: .35rem; border: 1px solid #94a5bd; border-radius: .6rem; padding-inline: .7rem; font-size: 1.65rem; }
.transfer-amount input { border: 0; font-size: inherit; }
.transfer-limit { font-size: .875rem; }
.transfer-next { width: 100%; margin-top: 1rem; }
.transfer-error { color: #a12727; margin-bottom: .6rem; }
.transfer-card [data-preview] .button { margin-top: 1rem; }
.transfer-card [data-preview] { padding-block: 1.2rem; text-align: center; }
.transfer-check { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto .9rem; border-radius: 50%; background: #e4f5eb; color: #197044; }
.transfer-check::before { content: ""; width: .8rem; height: 1.4rem; border: solid currentColor; border-width: 0 .2rem .2rem 0; transform: translateY(-.13rem) rotate(45deg); }

.overview-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: clamp(.15rem, 2vw, .75rem); width: 100%; color: #365474; }
.overview-toolbar input { color: inherit; opacity: 1; background: transparent; border: 1px solid #8396ad; border-radius: 2rem; padding-inline: .85rem; text-overflow: ellipsis; }
.overview-toolbar input::placeholder { color: #52657e; opacity: 1; }
.overview-toolbar button { display: grid; place-items: center; width: 2rem; height: 2.4rem; padding: 0; background: transparent; color: inherit; cursor: default; filter: none; }
.overview-toolbar button span { display: block; position: relative; width: 1.2rem; height: 1.05rem; border: 1.5px solid currentColor; }
.overview-toolbar .toolbar-add { border-radius: .17rem; border-top-width: .29rem; }
.toolbar-add::after { content: "+"; display: grid; place-items: center; position: absolute; right: -.3rem; bottom: -.3rem; width: .72rem; height: .72rem; border: 1px solid currentColor; border-radius: 50%; background: #fff; font-size: .65rem; line-height: 1; }
.overview-toolbar .toolbar-chat { border-radius: .35rem; height: .88rem; }
.toolbar-chat::after { content: ""; position: absolute; bottom: -.24rem; left: .22rem; width: .3rem; height: .3rem; border: solid currentColor; border-width: 0 0 1.5px 1.5px; background: #fff; transform: rotate(-45deg); }
.overview-toolbar .toolbar-profile { width: 1.3rem; height: 1.3rem; border-radius: 50%; overflow: hidden; }
.toolbar-profile::before, .toolbar-profile::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 1.5px solid currentColor; border-radius: 50%; }
.toolbar-profile::before { width: .32rem; height: .32rem; top: .16rem; }
.toolbar-profile::after { width: .68rem; height: .5rem; top: .66rem; }

.overview:has(.overview-shortcuts) { padding-bottom: calc(6.25rem + env(safe-area-inset-bottom, 0px)); }
.overview-shortcuts { position: fixed; z-index: 2; left: 50%; bottom: calc(.6rem + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(100% - 1rem, 68rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 .2rem 1rem #18253b1c; }
.overview-shortcuts button, .overview-shortcuts a { display: grid; grid-template-rows: 1.25rem auto; justify-items: center; align-content: start; gap: .45rem; min-height: 4.25rem; padding: .7rem .2rem .5rem; background: transparent; color: #51647e; font-size: clamp(.75rem, 3.4vw, .875rem); font-weight: 600; line-height: 1.25; text-align: center; cursor: default; filter: none; }
.overview-shortcuts button[aria-current] { color: #075eae; }
.overview-shortcuts a { color: #075eae; cursor: pointer; text-decoration: none; border-radius: .8rem; }
.overview-shortcuts a:hover { background: #eff6ff; }
.overview-shortcuts span { position: relative; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; line-height: 1; }
.shortcut-wallet::before { content: ""; width: 1.15rem; height: .78rem; border: 1.5px solid currentColor; border-radius: .22rem; background: #e8f3ff; }
.shortcut-wallet::after { content: ""; position: absolute; right: .17rem; width: .22rem; height: .22rem; border-radius: 50%; background: currentColor; }
.shortcut-transfer { font-size: 1.6rem; }
.shortcut-transfer::after { content: "$"; position: absolute; font-size: .62rem; }
.shortcut-plan { font-size: .92rem; border: 1.5px solid currentColor; border-radius: .16rem; }
.shortcut-more::before { content: ""; width: 1.05rem; height: 1.5px; background: currentColor; box-shadow: 0 -.32rem currentColor, 0 .32rem currentColor; }
.editor .quick-actions { margin-block: 1rem; }
.editor .quick-actions a[aria-current="page"] { background: var(--primary); color: #fff; border-color: var(--primary); }
