
:root {
    color-scheme: dark;
    --bg: #090b0f;
    --panel: #10131a;
    --panel-2: #151923;
    --panel-3: #1b202b;
    --line: #343946;
    --line-soft: #242936;
    --text: #f2f4f8;
    --muted: #8d94a3;
    --purple: #b49aff;
    --cyan: #68d8e8;
    --green: #74dfa4;
    --amber: #f2c86b;
    --red: #ff7582;
    --font: "Bahnschrift SemiCondensed", "Bahnschrift", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: var(--font);
    letter-spacing: 0;
    color: var(--text);
    background: transparent;
}

button,
input,
select { font: inherit; letter-spacing: 0; }

button { color: inherit; }

.hidden { display: none !important; }

.bank-root {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    background: rgba(2, 4, 8, 0.62);
    opacity: 0;
    transition: opacity 130ms ease;
}

.bank-root.visible { opacity: 1; }

.bank-shell {
    position: relative;
    width: min(1280px, 81.74vw);
    height: min(780px, 78.26vh);
    min-height: min(620px, 78.26vh);
    overflow: hidden;
    border: 1px solid #3b414d;
    border-top-color: #656d7c;
    border-radius: 4px;
    background: #0a0d12;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68);
    zoom: 1.18;
    transition:
        width 380ms cubic-bezier(.2, .82, .2, 1),
        height 380ms cubic-bezier(.2, .82, .2, 1),
        min-height 380ms cubic-bezier(.2, .82, .2, 1),
        border-radius 260ms ease,
        box-shadow 260ms ease;
}

.bank-shell.layout-instant {
    transition: none !important;
}

.bank-shell::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 34%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple) 56%, var(--cyan));
    z-index: 6;
}

.topbar {
    position: relative;
    z-index: 10;
    height: 62px;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 0 18px 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(11, 14, 20, 0.98);
}

.topbar-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.topbar-actions .network-status { margin-right: 8px; }

.bank-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f5f6f9;
}

.bank-brand strong { font-size: 20px; font-weight: 800; }

.bank-logo {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.bank-logo svg { width: 38px; height: 38px; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bank-logo .logo-roof { fill: rgba(180, 154, 255, 0.1); stroke: url(#bank-logo-gradient); stroke-width: 1.45; }
.bank-logo .logo-roof-line { stroke: #c9baff; stroke-width: 1.25; }
.bank-logo .logo-lintel { stroke: url(#bank-logo-gradient); stroke-width: 1.5; }
.bank-logo .logo-column { fill: rgba(180, 154, 255, 0.13); stroke: #aa91f0; stroke-width: 1.15; }
.bank-logo .logo-base { fill: rgba(104, 216, 232, 0.08); stroke: url(#bank-logo-gradient); stroke-width: 1.35; }
.bank-logo .logo-base-line { stroke: #68d8e8; stroke-width: 1.35; }
.bank-logo .logo-coin { fill: #10141c; stroke: #68d8e8; stroke-width: 1.6; }
.bank-logo .logo-coin-inner { fill: rgba(104, 216, 232, 0.08); stroke: rgba(104, 216, 232, 0.38); stroke-width: 0.8; }
.bank-logo .logo-currency { stroke: #f5fbfc; stroke-width: 1.45; }

.network-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-size: 11px;
}

.network-status i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(116, 223, 164, 0.75);
}

.close-bank-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid #3c4350;
    border-radius: 50%;
    color: #c1c7d0;
    background: rgba(22, 26, 35, 0.72);
    cursor: pointer;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease, transform 140ms ease;
}

.close-bank-button svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
}

.close-bank-button:hover { border-color: rgba(255, 117, 130, 0.75); color: #fff; background: rgba(255, 117, 130, 0.12); transform: rotate(5deg); }
.close-bank-button:active { transform: scale(0.92); }

.icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: #cbd0da;
    background: #151922;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.icon-button:hover { border-color: var(--purple); color: #fff; background: #211a30; }

.bank-layout {
    height: calc(100% - 62px);
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid #2e3440;
    background-color: #0a0d12;
    background-image: linear-gradient(180deg, rgba(180, 154, 255, 0.045), transparent 32%);
}

.account-block {
    position: relative;
    z-index: 7;
    flex: 0 0 auto;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #222733;
}

.eyebrow { color: var(--purple); font-size: 11px; font-weight: 700; }

.account-block-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-block-head .status-pill { margin-top: 0; }
.balance-caption { margin-top: 20px; color: #717988; font-size: 9px; font-weight: 700; }

.account-rail {
    position: relative;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 2px 0;
    overflow: visible;
    scrollbar-width: none;
}

.account-rail::-webkit-scrollbar { display: none; }

.account-list,
.account-add-stage {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.account-list { min-width: 235px; max-width: 330px; }
.account-add-stage { position: relative; }

.account-list,
.account-add-stage {
    transition: opacity 150ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.account-rail.choosing > .account-list,
.account-rail.choosing > .account-add-stage {
    opacity: 0;
    transform: translateX(-10px);
    pointer-events: none;
}

.account-create-actions {
    width: 36px;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
    transition: width 220ms cubic-bezier(.2, .8, .2, 1), gap 180ms ease;
}

.account-add-stage.creating .account-create-actions { width: 68px; gap: 4px; }

.account-rail-button {
    position: relative;
    height: 60px;
    min-width: 235px;
    max-width: 330px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
    opacity: 0.52;
    transition: opacity 150ms ease, color 150ms ease, transform 150ms ease;
}

.account-rail-button::before {
    content: "";
    position: absolute;
    left: 50px;
    right: 0;
    bottom: 1px;
    height: 1px;
    opacity: 0;
    background: rgba(255, 255, 255, 0.52);
    transform: scaleX(0.22);
    transform-origin: left center;
    transition: opacity 140ms ease, transform 180ms ease;
}

.account-rail-button:hover,
.account-rail-button:focus-visible {
    opacity: 0.82;
    transform: translateY(-1px);
}

.account-rail-button.active {
    opacity: 1;
}

.account-rail-button.active::before { opacity: 1; transform: scaleX(1); }

.account-current-card {
    width: 100%;
    cursor: default;
}

.account-current-card::before { left: 0; }

.account-current-card:hover {
    opacity: 1;
    transform: none;
}

.account-rail-button:not(.active) {
    min-width: 150px;
    max-width: 190px;
    gap: 8px;
}

.account-rail-button:not(.active) .account-card-copy strong { font-size: 17px; }
.account-rail-button:not(.active) .account-card-icon { width: 30px; height: 30px; }
.account-rail-button:not(.active) .account-card-icon svg { width: 21px; height: 21px; }
.account-rail-button:not(.active) .account-rail-balance { font-size: 9px; }

.account-rail-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.account-card-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    flex: 1 1 auto;
}

.account-card-copy strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 30px;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-card-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    transition: opacity 140ms ease, transform 140ms ease;
}

.account-rail-button.active .account-card-icon {
    color: #ffffff;
}

.account-rail-balance {
    color: #67d5e4;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.account-card-icon svg,
.account-add-button svg,
.account-create-icon svg,
.account-create-confirm svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-card-icon svg { width: 28px; height: 28px; }

.account-switch-button {
    position: relative;
    z-index: 4;
    width: 42px;
    min-width: 42px;
    height: 40px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(185, 164, 255, 0.24);
    border-radius: 6px;
    outline: none;
    color: #b49aff;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.018);
    cursor: pointer;
    transition: width 220ms cubic-bezier(.2, .8, .2, 1), min-width 220ms cubic-bezier(.2, .8, .2, 1),
        border-width 180ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease,
        box-shadow 180ms ease, opacity 150ms ease, transform 180ms cubic-bezier(.2, .8, .2, 1);
}

.account-switch-button::before {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-top: 1px solid rgba(104, 216, 232, 0.72);
    border-right: 1px solid rgba(104, 216, 232, 0.72);
    border-radius: 0 6px 0 0;
    pointer-events: none;
    transition: border-color 160ms ease, opacity 160ms ease;
}

.account-switch-button::after {
    display: none;
}

.account-switch-button > svg {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.account-switch-card {
    fill: none;
    stroke-width: 1.45;
    transform-box: view-box;
    transform-origin: center;
    opacity: 1;
    transition: stroke 180ms ease, opacity 150ms ease, transform 300ms cubic-bezier(.2, .8, .2, 1);
}

.account-switch-card-back { stroke: #b9a4ff; }
.account-switch-card-front { stroke: #69d6e6; }

.account-switch-close-glyph {
    fill: none;
    stroke: #ff9ba5;
    stroke-width: 1.8;
    opacity: 0;
    transform-box: view-box;
    transform-origin: center;
    transform: rotate(-55deg) scale(0.48);
    transition: opacity 150ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.account-switch-button.is-open {
    border-color: rgba(255, 155, 165, 0.38);
    color: #ff9ba5;
    background: rgba(255, 133, 146, 0.07);
    box-shadow: inset 0 0 0 1px rgba(255, 186, 193, 0.025);
}

.account-switch-button.is-open::before { border-color: rgba(255, 155, 165, 0.76); }
.account-switch-button.is-open .account-switch-card-back { opacity: 0; transform: translate(-2.7px, 6.6px) rotate(8deg) scale(0.58); }
.account-switch-button.is-open .account-switch-card-front { opacity: 0; transform: translate(2.7px, -6.6px) rotate(-8deg) scale(0.58); }
.account-switch-button.is-open .account-switch-close-glyph { opacity: 1; transform: rotate(0) scale(1); transition-delay: 70ms; }

.account-switch-copy {
    display: none;
}

.account-rail.creating-account > .account-switch-button {
    width: 0;
    min-width: 0;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
}

.account-switch-copy strong {
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.account-switch-copy small {
    color: #67d5e4;
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
}

.account-switch-button:hover,
.account-switch-button:focus-visible {
    border-color: rgba(180, 154, 255, 0.56);
    color: #ffffff;
    background: rgba(180, 154, 255, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.account-switch-button:not(.is-open):hover .account-switch-card-back,
.account-switch-button:not(.is-open):focus-visible .account-switch-card-back { transform: translate(0.7px, -0.7px); }

.account-switch-button:not(.is-open):hover .account-switch-card-front,
.account-switch-button:not(.is-open):focus-visible .account-switch-card-front { transform: translate(-0.7px, 0.7px); }

.account-switch-button.is-open:hover,
.account-switch-button.is-open:focus-visible {
    border-color: rgba(255, 155, 165, 0.58);
    background: rgba(255, 133, 146, 0.1);
}

.account-switch-button:hover > svg,
.account-switch-button:focus-visible > svg { transform: scale(1.05); }

.account-switch-button:active { transform: translateY(0) scale(0.95); }

.account-switch-button:disabled {
    opacity: 0.34;
    cursor: default;
    transform: none;
}

.account-switch-button:disabled > svg { transform: none; }

.account-picker {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 2px 0 2px 56px;
    visibility: hidden;
    opacity: 0;
    background: #10131a;
    transform: translateX(14px);
    pointer-events: none;
    transition: visibility 0s linear 180ms, opacity 140ms ease, transform 200ms cubic-bezier(.2, .8, .2, 1);
}

.account-rail.choosing .account-picker {
    visibility: visible;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 40ms, 40ms, 40ms;
}

.account-picker-list {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
}

.account-picker-button {
    position: relative;
    min-width: 0;
    height: 54px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 0;
    padding: 0 10px;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    outline: none;
    color: #969eab;
    background: transparent;
    cursor: pointer;
    transition: color 140ms ease, background 140ms ease;
}

.account-picker-button::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    opacity: 0;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
    transform: scaleX(0.35);
    transition: opacity 140ms ease, transform 180ms ease;
}

.account-picker-button:hover,
.account-picker-button:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.025);
}

.account-picker-button.active {
    color: #ffffff;
    background: transparent;
}

.account-picker-button.active::after { opacity: 1; transform: scaleX(1); }
.account-picker-button:disabled { opacity: 0.45; cursor: default; }

.account-picker-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #aeb6c3;
}

.account-picker-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-picker-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
    text-align: left;
}

.account-picker-copy strong,
.account-picker-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-picker-copy strong { font-size: 12px; font-weight: 650; }
.account-picker-copy small { color: #67d5e4; font-size: 9px; font-weight: 600; }

.account-add-button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: none;
    color: #b49aff;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    clip-path: none;
    transition: width 220ms cubic-bezier(.2, .8, .2, 1), height 220ms cubic-bezier(.2, .8, .2, 1), opacity 150ms ease, color 150ms ease,
        background 150ms ease, transform 150ms ease;
}

.account-add-button svg { transition: transform 260ms cubic-bezier(.2, .85, .2, 1); }

.account-add-button:hover,
.account-add-button:focus-visible {
    color: #ffffff;
    background: rgba(180, 154, 255, 0.12);
    transform: rotate(90deg);
}

.account-add-button:hover svg,
.account-add-button:focus-visible svg { transform: scale(1.08); }

.account-add-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.account-add-stage.creating .account-add-button {
    width: 32px;
    height: 32px;
    border-width: 0;
    opacity: 1;
    color: #ff8995;
    background: transparent;
    transform: none;
    pointer-events: auto;
}

.account-add-stage.creating .account-add-button:hover,
.account-add-stage.creating .account-add-button:focus-visible { background: rgba(255, 117, 130, 0.12); }

.account-add-stage.creating .account-add-button svg { transform: rotate(45deg); }

.account-create-form {
    position: relative;
    width: 0;
    max-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 0;
    opacity: 0;
    background: transparent;
    box-shadow: none;
    transform: translateX(10px) scaleX(0.96);
    transform-origin: left center;
    pointer-events: none;
    transition: width 260ms cubic-bezier(.2, .8, .2, 1), max-width 260ms cubic-bezier(.2, .8, .2, 1),
        padding 240ms cubic-bezier(.2, .8, .2, 1), border-color 180ms ease,
        opacity 150ms ease, transform 260ms cubic-bezier(.2, .8, .2, 1);
}

.account-add-stage.creating .account-create-form {
    width: 220px;
    max-width: 220px;
    padding: 0 3px 0 2px;
    border-bottom-color: rgba(255, 255, 255, 0.38);
    opacity: 1;
    transform: translateX(0) scaleX(1);
    pointer-events: auto;
}

.account-create-icon {
    width: 32px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 150ms 80ms ease, transform 180ms 80ms ease;
}

.account-create-icon svg { width: 21px; height: 21px; }

.account-add-stage.creating .account-create-icon {
    opacity: 1;
    transform: translateX(0);
}

.account-create-form input {
    min-width: 0;
    height: 42px;
    flex: 1 1 auto;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    outline: none;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

.account-create-form input::placeholder { color: #8e96a3; font-weight: 500; }

.account-create-confirm {
    width: 0;
    height: 0;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    outline: none;
    color: #8be8b3;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
    clip-path: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-5px) scale(0.9);
    transition: width 220ms cubic-bezier(.2, .8, .2, 1), height 220ms cubic-bezier(.2, .8, .2, 1),
        color 120ms ease, background 120ms ease, transform 120ms ease;
}

.account-add-stage.creating .account-create-confirm {
    width: 32px;
    height: 32px;
    pointer-events: auto;
    animation: account-create-action-in 180ms 130ms ease-out forwards;
}

.account-create-confirm:hover,
.account-create-confirm:focus-visible {
    color: #b0f2cc;
    background: rgba(116, 223, 164, 0.12);
    transform: scale(1.06);
}

.account-add-stage.creating .account-create-confirm:disabled {
    opacity: 0.45;
    cursor: default;
}

@keyframes account-create-action-in {
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .account-add-button,
    .account-create-form,
    .account-create-icon,
    .account-create-confirm,
    .account-switch-button,
    .account-switch-close-glyph,
    .account-switch-card,
    .account-picker,
    .account-picker-button {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

#sidebar-balance {
    max-width: 100%;
    margin-top: 4px;
    font-size: 30px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-pill {
    margin-top: 9px;
    padding: 4px 7px;
    border-left: 2px solid var(--muted);
    color: var(--muted);
    background: #161922;
    font-size: 10px;
}

.status-pill.active { border-color: var(--green); color: var(--green); }
.status-pill.blocked { border-color: var(--red); color: var(--red); }

.bank-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    margin: 18px 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.bank-nav button {
    position: relative;
    height: 56px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    padding: 0 23px;
    border: 0;
    border-left: 0;
    color: #949baa;
    background: transparent;
    text-align: left;
    font-size: 15px;
    cursor: pointer;
    transition: color 120ms ease, background 120ms ease;
}

.bank-nav button:not(:last-child) { border-bottom: 1px solid #232934; }

.bank-nav .nav-icon {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #70798a;
    background: transparent;
    transition: color 120ms ease, filter 120ms ease, transform 120ms ease;
}

.bank-nav .nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bank-nav .nav-label {
    min-width: 0;
    height: 24px;
    display: flex;
    align-items: center;
    padding-left: 13px;
    border-left: 1px solid #2b323e;
    font-size: 15px;
    transition: border-color 120ms ease;
}
.bank-nav button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    background: var(--purple);
    transform: translateY(-50%);
    transition: height 140ms ease;
}
.bank-nav button:hover { color: #fff; background: rgba(255, 255, 255, 0.025); }
.bank-nav button:hover .nav-icon { color: #cbd2de; transform: translateX(1px); }
.bank-nav button.active { color: #fff; background: linear-gradient(90deg, rgba(180, 154, 255, 0.11), rgba(180, 154, 255, 0.015) 72%, transparent); }
.bank-nav button.active::before { height: 26px; }
.bank-nav button.active .nav-icon { color: var(--purple); filter: drop-shadow(0 0 5px rgba(180, 154, 255, 0.42)); }
.bank-nav button.active .nav-label { border-left-color: rgba(180, 154, 255, 0.48); }
.bank-nav button:disabled { opacity: 0.35; cursor: default; }

.cash-readout {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 20px 23px;
    border-top: 1px solid var(--line-soft);
    background: rgba(17, 20, 27, 0.74);
}

.cash-readout span { display: block; color: var(--muted); font-size: 10px; }
.cash-readout strong { display: block; margin-top: 6px; color: var(--cyan); font-size: 18px; }

.workspace {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background-color: #10131a;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 46px 46px;
}

.workspace::after {
    content: "";
    position: absolute;
    top: 112px;
    right: -90px;
    width: 390px;
    height: 1px;
    background: rgba(104, 216, 232, 0.16);
    box-shadow: 0 96px 0 rgba(180, 154, 255, 0.12), 0 192px 0 rgba(255, 255, 255, 0.045);
    transform: rotate(-32deg);
    pointer-events: none;
}

.bank-app, .access-gate { position: relative; z-index: 1; width: 100%; height: 100%; }
.bank-app { overflow: hidden; }

.view {
    display: none;
    height: 100%;
    padding: 34px 39px 30px;
    overflow: auto;
}

.view.active { display: block; }
.view[data-page="dashboard"] { padding-top: 24px; }
.view[data-page="dashboard"] > .view-heading {
    width: calc(100% + 12px);
    margin-left: -12px;
}

.view-heading {
    min-height: 58px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.view-heading h1 { margin: 5px 0 0; font-size: 31px; font-weight: 650; }
.profile-heading { width: 100%; min-width: 0; }

.balance-hero {
    min-height: 142px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    border: 1px solid #3e4452;
    border-left: 3px solid var(--purple);
    background: rgba(23, 27, 36, 0.94);
}

.balance-hero > div:first-child { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 24px 30px; }
.balance-hero span { color: var(--muted); font-size: 11px; }
.balance-hero strong { margin-top: 10px; font-size: 43px; font-weight: 650; }

.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }

.quick-grid button {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid var(--line-soft);
    border-radius: 3px;
    color: #dfe3ea;
    background: #171b24;
    text-align: left;
    cursor: pointer;
}

.quick-grid button:hover { border-color: #626a7c; background: #1b202a; }
.quick-grid button.active { border-color: rgba(180, 154, 255, 0.7); background: #211b2c; box-shadow: inset 0 -2px 0 var(--purple); }
.quick-grid .quick-icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--cyan);
    background: rgba(104, 216, 232, 0.08);
    transition: color 140ms ease, background 140ms ease, transform 140ms ease;
}

.quick-grid .quick-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 140ms ease;
}

.quick-grid button[data-quick="deposit"] .quick-icon { color: var(--green); background: rgba(116, 223, 164, 0.08); }
.quick-grid button[data-quick="withdraw"] .quick-icon { color: var(--amber); background: rgba(242, 200, 107, 0.08); }
.quick-grid button[data-quick="transfer"] .quick-icon { color: var(--purple); background: rgba(180, 154, 255, 0.09); }
.quick-grid button:hover .quick-icon { color: #fff; transform: scale(1.06); }
.quick-grid button[data-quick="transfer"]:hover .quick-icon svg { transform: translateX(1px); }
.quick-grid button.active .quick-icon { color: #fff; background: rgba(180, 154, 255, 0.16); }
.quick-grid .quick-label { font-size: 14px; font-weight: 650; }

.section-title { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); }
.section-title span { color: var(--muted); font-size: 10px; font-weight: 700; }
.section-title button { border: 0; color: var(--purple); background: transparent; font-size: 11px; cursor: pointer; }
.section-title i { color: #545c6c; font-size: 11px; font-style: normal; }

.operation-inline {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows 240ms cubic-bezier(0.22, 0.78, 0.2, 1), margin-top 240ms ease, opacity 150ms ease;
}

.operation-inline.open {
    grid-template-rows: 1fr;
    margin-top: 18px;
    opacity: 1;
}

.operation-inline-clip {
    min-height: 0;
    overflow: hidden;
    padding-top: 8px;
}

.operation-inline-panel {
    position: relative;
    border: 1px solid #454c59;
    border-top-color: #656d7c;
    background-color: #141923;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 38px 38px;
    transform: translateY(-12px);
    transition: transform 240ms cubic-bezier(0.22, 0.78, 0.2, 1);
}

.operation-inline-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.operation-inline.open .operation-inline-panel { transform: translateY(0); }

.operation-anchor {
    position: absolute;
    top: -7px;
    left: 16.666%;
    width: 14px;
    height: 14px;
    border-top: 1px solid #656d7c;
    border-left: 1px solid #656d7c;
    background: #141923;
    transform: translateX(-50%) rotate(45deg);
    transition: left 180ms ease;
}

.operation-inline[data-operation="withdraw"] .operation-anchor { left: 50%; }
.operation-inline[data-operation="transfer"] .operation-anchor { left: 83.333%; }

.operation-panel-header {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px 0 14px;
    border-bottom: 1px solid var(--line);
}

.operation-panel-header > span { color: #858d9c; font-size: 9px; font-weight: 700; }
.operation-collapse-button {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #aeb5c1;
    background: transparent;
    cursor: pointer;
    transition: color 120ms ease, background 120ms ease, transform 120ms ease;
}

.operation-collapse-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.operation-collapse-button:hover { color: #fff; background: rgba(180, 154, 255, 0.12); transform: translateY(-1px); }

.operation-form {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    padding: 10px 14px 12px;
}

.operation-copy { grid-column: 1; grid-row: 1 / span 2; margin: 0; padding-right: 16px; border-right: 1px solid var(--line-soft); }
.operation-copy h2 { margin: 4px 0 5px; font-size: 21px; }
.operation-copy p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }

.operation-form #recipient-field { grid-column: 2; grid-row: 1; margin-top: 0; }
.operation-form .amount-field { grid-column: 2; grid-row: 2; margin-top: 6px; }
.operation-inline:not([data-operation="transfer"]) .amount-field { grid-row: 1 / span 2; align-self: center; margin-top: 0; }
.operation-form .field > span { margin-bottom: 5px; font-size: 9px; }
.operation-form .field input { height: 38px; }
.operation-form .amount-field b { top: 9px; }

.field { display: block; margin-top: 16px; }
.field > span { display: block; margin-bottom: 7px; color: #9299a8; font-size: 10px; font-weight: 700; }
.field input {
    width: 100%;
    height: 45px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    color: #fff;
    background: #0f1218;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}
.field input:focus { border-color: var(--purple); box-shadow: inset 2px 0 0 var(--purple); }
.field input::placeholder { color: #68717f; font-weight: 500; }
.field input[type="password"][maxlength="4"] { text-align: center; font-size: 20px; font-weight: 700; }
.amount-field > div { position: relative; }
.amount-field b { position: absolute; left: 13px; top: 13px; color: var(--cyan); font-size: 15px; }
.amount-field input { padding-left: 42px; font-size: 20px; font-weight: 650; }

.operation-summary { grid-column: 1; grid-row: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 8px; border: 1px solid var(--line-soft); background: var(--line-soft); }
.operation-summary div { padding: 7px 10px; background: #151922; }
.operation-summary span { color: var(--muted); font-size: 10px; }
.operation-summary strong { display: block; margin-top: 5px; font-size: 14px; }

.primary-button,
.secondary-button {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 3px;
    font-weight: 700;
    cursor: pointer;
}

.primary-button { width: 100%; margin-top: 18px; border: 1px solid var(--purple); color: #0d0b12; background: var(--purple); }
.operation-form .primary-button { grid-column: 2; grid-row: 3; min-height: 42px; margin-top: 8px; align-self: stretch; }
.primary-button:hover { background: #c5b2ff; }
.secondary-button { border: 1px solid #545d6e; color: #eceff4; background: #1a1f29; }
.secondary-button:hover { border-color: var(--purple); background: #211a30; }
.primary-button:disabled, .secondary-button:disabled { opacity: 0.45; cursor: default; }

.pager { display: flex; align-items: center; gap: 9px; }
.pager .icon-button { width: 34px; height: 34px; font-size: 22px; }
.pager span { min-width: 28px; color: var(--cyan); text-align: center; font-size: 12px; }

.history-head,
.history-row { display: grid; grid-template-columns: 1.3fr 1fr 120px 130px; gap: 12px; align-items: center; }
.history-head { height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); color: #697181; font-size: 9px; }
.history-head span:last-child { text-align: right; }
.history-list { min-height: 360px; }
.history-row { min-height: 58px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.history-row:hover { background: #161a22; }
.history-row .history-kind strong { display: block; font-size: 13px; }
.history-row .history-kind small, .history-row .history-target, .history-row time { color: var(--muted); font-size: 10px; }
.history-row .history-amount { text-align: right; color: var(--green); font-size: 14px; }
.history-row .history-amount.out { color: var(--red); }
.history-empty { min-height: 300px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }

.settings-grid { width: min(520px, 100%); display: grid; grid-template-columns: 1fr; gap: 18px; }
.settings-section { padding: 22px; border: 1px solid var(--line); background: #171b24; }
.settings-section .section-title { margin-bottom: 20px; }
.settings-section .secondary-button { width: 100%; margin-top: 18px; }
.settings-section > small { display: block; min-height: 14px; margin-top: 10px; color: var(--amber); font-size: 10px; }
.setting-meta { display: flex; justify-content: space-between; margin-top: 16px; color: var(--muted); font-size: 11px; }
.setting-meta strong { color: var(--cyan); }

.access-gate {
    display: grid;
    grid-template-columns: minmax(210px, 0.8fr) minmax(370px, 1.2fr);
    align-items: stretch;
    background: rgba(12, 15, 21, 0.76);
}

.gate-signal {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background-color: rgba(13, 17, 24, 0.9);
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 18px);
}

.gate-signal::before {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(180, 154, 255, 0.48), transparent);
}
.gate-signal::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: 50%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(104, 216, 232, 0.28), transparent);
}
.gate-signal span { position: relative; z-index: 1; color: var(--purple); font-size: 62px; font-weight: 800; text-shadow: 0 0 24px rgba(180, 154, 255, 0.18); }

.gate-content { width: min(470px, 86%); align-self: center; justify-self: center; }
.gate-content .eyebrow { display: block; margin-bottom: 7px; }
.gate-content h1 { margin: 0; font-size: 31px; }
.gate-content > p { margin: 10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.gate-content form { margin-top: 20px; }
.gate-content .primary-button { margin-top: 20px; }
.gate-alert { padding: 13px 15px; border-left: 2px solid var(--amber); color: #d8dce3; background: #1a1920; font-size: 12px; line-height: 1.45; }
.gate-alert.error { border-color: var(--red); }

.busy-layer {
    position: absolute;
    inset: 62px 0 0 270px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    color: #dfe4eb;
    background: rgba(8, 10, 14, 0.72);
    font-size: 11px;
}
.busy-layer i { width: 22px; height: 22px; border: 2px solid #434b5b; border-top-color: var(--cyan); border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-stack { position: absolute; right: 18px; bottom: 18px; z-index: 12; display: flex; flex-direction: column; gap: 8px; width: min(370px, 50%); pointer-events: none; }
.toast { padding: 13px 15px; border: 1px solid #4a5260; border-left: 3px solid var(--green); border-radius: 3px; background: #171b23; box-shadow: 0 12px 32px rgba(0,0,0,.35); font-size: 12px; animation: toast-in 150ms ease; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Compact authorization shell. Account data stays outside the PIN stage. */
.bank-shell.pin-mode {
    width: min(440px, calc(100vw - 48px));
    height: 350px;
    min-height: 350px;
    border-radius: 8px;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.72);
}

.bank-shell.pin-mode .topbar {
    height: 58px;
    padding: 0 14px 0 17px;
}

.bank-shell.pin-mode .bank-layout {
    height: calc(100% - 58px);
    grid-template-columns: minmax(0, 1fr);
}

.bank-shell.pin-mode .sidebar { display: none; }
.bank-shell.pin-mode .workspace { background: #0d1118; }
.bank-shell.pin-mode .workspace::after { display: none; }
.bank-shell.pin-mode .access-gate {
    grid-template-columns: minmax(0, 1fr);
    background:
        linear-gradient(180deg, rgba(180, 154, 255, 0.035), transparent 48%),
        #0d1118;
}
.bank-shell.pin-mode .gate-signal { display: none; }
.bank-shell.pin-mode .gate-content {
    width: min(350px, calc(100% - 44px));
    padding: 22px 0 24px;
    text-align: center;
}
.bank-shell.pin-mode .gate-content .eyebrow {
    margin-bottom: 8px;
    color: var(--cyan);
    font-size: 11px;
}
.bank-shell.pin-mode .gate-content h1 {
    font-size: 28px;
    font-weight: 700;
}
.bank-shell.pin-mode .gate-content > p {
    margin: 8px 0 17px;
    color: #a1a9b7;
    font-size: 14px;
    line-height: 1.45;
}
.bank-shell.pin-mode .gate-content form { margin-top: 0; }
.bank-shell.pin-mode .network-status span { display: none; }

.pin-access-form { width: 100%; }
.pin-entry {
    position: relative;
    display: block;
    width: 100%;
    cursor: text;
}
.pin-entry input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    opacity: 0;
    cursor: text;
}
.pin-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.pin-slots i {
    position: relative;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid #3c4452;
    border-radius: 6px;
    background: #111620;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 130ms ease, background 130ms ease, transform 130ms ease, box-shadow 130ms ease;
}
.pin-slots i::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #eef5f8;
    box-shadow: 0 0 12px rgba(104, 216, 232, 0.24);
    opacity: 0;
    transform: scale(0.45);
    transition: opacity 110ms ease, transform 150ms cubic-bezier(.2, .9, .2, 1);
}
.pin-entry:focus-within .pin-slots i.current {
    border-color: rgba(104, 216, 232, 0.78);
    background: rgba(104, 216, 232, 0.055);
    box-shadow: 0 0 0 2px rgba(104, 216, 232, 0.07);
    transform: translateY(-1px);
}
.pin-slots i.filled {
    border-color: rgba(180, 154, 255, 0.58);
    background: rgba(180, 154, 255, 0.07);
}
.pin-slots i.filled::after { opacity: 1; transform: scale(1); }
.pin-entry.error .pin-slots i {
    border-color: rgba(255, 117, 130, 0.72);
    animation: pin-shake 260ms ease;
}
.pin-entry.checking .pin-slots i { opacity: 0.72; }
@keyframes pin-shake {
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

.pin-feedback {
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    color: #8f99a9;
    font-size: 12px;
    line-height: 1.35;
}
.pin-feedback::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #596273;
}
.pin-feedback.checking { color: #d7e5e8; }
.pin-feedback.checking::before {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(104, 216, 232, 0.24);
    border-top-color: var(--cyan);
    background: transparent;
    animation: spin 620ms linear infinite;
}
.pin-feedback.error { color: #ff98a2; }
.pin-feedback.error::before { background: var(--red); }
.pin-feedback.success { color: var(--green); }
.pin-feedback.success::before { background: var(--green); }

.unlock-transition {
    position: absolute;
    z-index: 9;
    inset: 62px 0 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 10px;
    color: #f1f6f8;
    background: #0d1118;
    text-align: center;
}
.unlock-transition strong { font-size: 18px; font-weight: 700; }
.unlock-transition small { color: #909aa9; font-size: 12px; }
.unlock-ring {
    position: relative;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border: 1px solid rgba(104, 216, 232, 0.34);
    border-radius: 50%;
    background: rgba(104, 216, 232, 0.06);
}
.unlock-ring::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid transparent;
    border-top-color: var(--cyan);
    border-right-color: rgba(180, 154, 255, 0.78);
    border-radius: 50%;
    animation: spin 720ms linear infinite;
}
.unlock-ring svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: unlock-check-in 260ms 100ms both;
}
@keyframes unlock-check-in {
    from { opacity: 0; transform: scale(0.55); }
}

/* Readability pass for the full banking workspace. */
.bank-brand strong { font-size: 22px; }
.network-status { font-size: 12px; }
.eyebrow { font-size: 12px; }
.balance-caption { font-size: 11px; }
.account-card-copy strong { font-size: 19px; }
.account-rail-balance { font-size: 12px; }
.account-picker-copy strong { font-size: 14px; }
.account-picker-copy small { font-size: 11px; }
.bank-nav .nav-label { font-size: 17px; }
.cash-readout span { font-size: 12px; }
.cash-readout strong { font-size: 21px; }
.view-heading h1 { font-size: 34px; }
.balance-hero span { font-size: 13px; }
.balance-hero strong { font-size: 46px; }
.quick-grid .quick-label { font-size: 16px; }
.section-title span { font-size: 12px; }
.operation-panel-header > span { font-size: 11px; }
.operation-copy h2 { font-size: 23px; }
.operation-copy p { font-size: 13px; }
.operation-form .field > span,
.field > span { font-size: 11px; }
.field input { font-size: 18px; }
.operation-summary span { font-size: 11px; }
.operation-summary strong { font-size: 15px; }
.history-head { font-size: 11px; }
.history-row { font-size: 14px; }
.history-row .history-kind strong { font-size: 15px; }
.history-row .history-kind small,
.history-row .history-target,
.history-row time { font-size: 12px; }
.history-row .history-amount { font-size: 16px; }
.history-empty { font-size: 15px; }
.settings-section > small,
.setting-meta { font-size: 12px; }
.toast { font-size: 14px; }

@media (max-width: 1050px), (max-height: 690px) {
    .bank-root { padding: 2vh 2vw; }
    .bank-shell { width: 83.48vw; height: 83.48vh; min-height: min(560px, 83.48vh); }
    .topbar { height: 58px; grid-template-columns: minmax(150px, 1fr) auto; gap: 14px; padding: 0 14px 0 16px; }
    .bank-brand strong { font-size: 18px; }
    .bank-logo { width: 36px; height: 36px; }
    .bank-logo svg { width: 34px; height: 34px; }
    .bank-layout { height: calc(100% - 58px); grid-template-columns: 225px minmax(0, 1fr); }
    .account-block { min-height: 122px; padding: 16px 18px; }
    .account-list { min-width: 205px; max-width: 280px; }
    .account-rail-button { min-width: 205px; max-width: 280px; }
    .account-rail-button:not(.active) { min-width: 140px; max-width: 175px; }
    .account-switch-button { width: 40px; min-width: 40px; height: 38px; padding: 0; }
    .account-switch-button > svg { width: 22px; height: 22px; }
    .account-add-stage.creating .account-create-form { width: 170px; max-width: 170px; }
    .account-picker-list { gap: 8px; }
    .account-picker-button { gap: 5px; padding: 0 7px; }
    #sidebar-balance { font-size: 25px; }
    .bank-nav { margin: 14px 0; }
    .bank-nav button { height: 48px; padding: 0 18px; }
    .view { padding: 25px 28px; }
    .view[data-page="dashboard"] { padding-top: 18px; }
    .view[data-page="dashboard"] > .view-heading { width: calc(100% + 8px); margin-left: -8px; }
    .balance-hero { min-height: 145px; }
    .balance-hero strong { font-size: 37px; }
    .busy-layer { inset: 58px 0 0 225px; }
}

@media (max-width: 760px) {
    .topbar { grid-template-columns: minmax(130px, 1fr) auto; }
    .network-status { display: none; }
    .operation-form { grid-template-columns: 1fr; grid-template-rows: auto; }
    .operation-copy { grid-column: 1; grid-row: auto; margin-bottom: 14px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .operation-form #recipient-field,
    .operation-form .amount-field,
    .operation-inline:not([data-operation="transfer"]) .amount-field,
    .operation-summary,
    .operation-form .primary-button { grid-column: 1; grid-row: auto; }
}
    