/* ==========================================================================
   m-banking — style.css
   Base color: #e0e0e0. Accent: deep navy (#12304d) with a muted teal for
   positive money movement. Everything scales with --u so the whole interface
   can be resized from one variable.
   ========================================================================== */

:root {
    /* Palette */
    --base:        #e0e0e0;
    --base-dark:   #cfcfcf;
    --base-light:  #ececec;
    --surface:     #f2f2f2;
    --white:       #fafafa;

    --navy:        #12304d;
    --navy-700:    #17395c;
    --navy-500:    #23557f;
    --navy-300:    #4c7ba6;

    --teal:        #1d7a63;
    --red:         #a8342f;
    --amber:       #a3742a;

    --ink:         #16202b;
    --ink-soft:    #4b5a68;
    --ink-faint:   #7b8894;
    --line:        #c6c6c6;

    /* Type */
    --font:  'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --mono:  'DM Mono', 'SF Mono', 'Consolas', monospace;

    /* Geometry */
    --u:      1px;
    --radius: 14px;
    --radius-sm: 9px;

    --shadow-lg: 0 24px 60px rgba(9, 20, 33, .38);
    --shadow-md: 0 6px 18px rgba(9, 20, 33, .10);
    --shadow-sm: 0 2px 6px rgba(9, 20, 33, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
    font-family: var(--font);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    user-select: none;
}

.hidden { display: none !important; }

.ico {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

/* ── Shell ─────────────────────────────────────────────────────────────── */

.app {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 16, 26, .45);
    animation: fade .18s ease-out;
}

.window {
    display: grid;
    grid-template-columns: 232px 1fr;
    width: min(1080px, 82vw);
    height: min(660px, 84vh);
    background: var(--base);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: rise .22s cubic-bezier(.2, .8, .3, 1);
}

@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rise {
    from { opacity: 0; transform: translateY(14px) scale(.985) }
    to   { opacity: 1; transform: none }
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */

.sidebar {
    display: flex;
    flex-direction: column;
    background: var(--navy);
    color: #dfe7ee;
    padding: 22px 14px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 20px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-mark {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    overflow: hidden;
    flex: 0 0 auto;
    background: linear-gradient(140deg, var(--navy-500), var(--navy-300));
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .5px;
    color: #fff;
}

/* Logo image fills the square; the initials stay as a fallback. */
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub  { font-size: 10.5px; color: rgba(223, 231, 238, .55); letter-spacing: .8px; }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: rgba(223, 231, 238, .72);
    font: 500 13.5px/1 var(--font);
    text-align: left;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}

.nav-item:hover   { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item:active  { transform: scale(.985); }
.nav-item.active  { background: rgba(255, 255, 255, .13); color: #fff; }
.nav-item.locked  { opacity: .38; cursor: not-allowed; }
.nav-item:focus-visible { outline: 2px solid var(--navy-300); outline-offset: 2px; }

.sidebar-foot { padding-top: 14px; }

.mode-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    font-size: 11.5px;
    color: rgba(223, 231, 238, .8);
}

/* ── Main ──────────────────────────────────────────────────────────────── */

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--base-light);
    border-bottom: 1px solid var(--line);
}

.topbar-identity, .meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar-meta { display: flex; align-items: center; gap: 22px; }

.label {
    font-size: 10px;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
}

.value { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.mono  { font-family: var(--mono); letter-spacing: .2px; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.icon-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.icon-btn.small { width: 28px; height: 28px; }

/* ── Panels ────────────────────────────────────────────────────────────── */

.content { flex: 1; overflow: hidden; position: relative; }

.panel {
    position: absolute;
    inset: 0;
    padding: 24px 28px 26px;
    overflow-y: auto;
    display: none;
}

.panel.active { display: block; animation: slide .22s ease-out; }

@keyframes slide {
    from { opacity: 0; transform: translateY(8px) }
    to   { opacity: 1; transform: none }
}

.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-title { font-size: 19px; font-weight: 650; letter-spacing: -.2px; }
.panel-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; margin-bottom: 18px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .9px; color: var(--ink-faint); margin: 22px 0 10px; }

/* ── Balance card ──────────────────────────────────────────────────────── */

.bank-card {
    position: relative;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
    color: #eaf1f7;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.bank-card::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.bank-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-label { font-size: 11px; letter-spacing: .9px; text-transform: uppercase; color: rgba(234, 241, 247, .68); font-weight: 600; }

.bc-chip {
    width: 32px;
    height: 23px;
    border-radius: 5px;
    background: linear-gradient(135deg, #d9c07a, #b3923f);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
}

/* ── Forms ─────────────────────────────────────────────────────────────── */

.form-card {
    max-width: 480px;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-faint); font-weight: 600; }

.input-wrap {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

.input-wrap:focus-within { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(35, 85, 127, .14); }
.input-wrap.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(168, 52, 47, .12); }

.input-wrap input {
    flex: 1;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    font: 500 14px/1.2 var(--font);
    color: var(--ink);
    outline: none;
    user-select: text;
    min-width: 0;
}

.input-wrap input.mono { font-family: var(--mono); }
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap input[type=number] { -moz-appearance: textfield; }

.suffix { padding-right: 14px; font-size: 13px; color: var(--ink-faint); font-weight: 600; }

.field-error { font-size: 11.5px; color: var(--red); min-height: 14px; }

.quick-row { display: flex; flex-wrap: wrap; gap: 7px; }

.quick {
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--base-light);
    font: 600 11.5px var(--font);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
}

.quick:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font: 600 13px var(--font);
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .12s, box-shadow .15s;
}

.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--navy-300); outline-offset: 2px; }

.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-700); box-shadow: 0 6px 16px rgba(18, 48, 77, .28); }

.btn.ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn.ghost:hover { background: var(--base-dark); color: var(--ink); }

.btn.outline {
    justify-content: flex-start;
    background: var(--surface);
    color: var(--ink);
    border-color: var(--line);
}
.btn.outline:hover { border-color: var(--navy-500); color: var(--navy); background: var(--white); }

.btn.danger { background: var(--red); color: #fff; }
.btn.danger:hover { background: #8e2b27; box-shadow: 0 6px 16px rgba(168, 52, 47, .26); }

.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin .6s linear infinite;
}

.btn.loading .spinner { display: block; }
.btn.loading .btn-label { opacity: .65; }

@keyframes spin { to { transform: rotate(360deg) } }

/* ── Notes, chips, badges ──────────────────────────────────────────────── */

.limit-note {
    display: flex;
    gap: 10px;
    padding: 11px 13px;
    background: var(--base-light);
    border: 1px solid var(--line);
    border-left: 3px solid var(--navy-500);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.55;
}

.limit-note.warn { border-left-color: var(--amber); }
.limit-note .ico { margin-top: 1px; }

.fee-line { font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.filters { display: flex; align-items: center; gap: 6px; }

.chip {
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--base-light);
    font: 600 11.5px var(--font);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
}

.chip:hover  { background: var(--base-dark); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .4px;
    background: rgba(255, 255, 255, .16);
}

.badge.on  { background: rgba(29, 122, 99, .9); color: #fff; }
.badge.off { background: rgba(168, 52, 47, .9); color: #fff; }

.atm-only-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 18px;
    background: rgba(163, 116, 42, .12);
    border: 1px solid rgba(163, 116, 42, .3);
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    color: var(--amber);
}

/* ── Card tab ──────────────────────────────────────────────────────────── */


/* ── Key/value rows ────────────────────────────────────────────────────── */

.kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-soft);
}

.kv strong { color: var(--ink); font-size: 13.5px; }

/* ── Scrollbars ────────────────────────────────────────────────────────── */

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--base-dark); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #b5b5b5; }

/* ── Responsive within the NUI frame ───────────────────────────────────── */

@media (max-width: 1280px) {
    .window { width: 90vw; height: 86vh; }
}

@media (max-width: 1024px), (max-height: 720px) {
    .window { grid-template-columns: 68px 1fr; }
    .brand-text, .nav-item span, .mode-pill span { display: none; }
    .brand { justify-content: center; padding-inline: 0; }
    .nav-item { justify-content: center; padding-inline: 0; }
    .mode-pill { justify-content: center; padding-inline: 0; }
    .bc-amount { font-size: 32px; }
    .card-grid { grid-template-columns: 1fr; }
    .panel { padding: 18px 20px; }
}

@media (max-height: 620px) {
    .balance-card { padding: 15px 18px; }
    .bc-amount { margin: 8px 0 12px; font-size: 28px; }
    .stat { padding: 10px 13px; }
    .form-card { padding: 16px; gap: 12px; }
}

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

/* ── Statement head ────────────────────────────────────────────────────────
   The overview is modelled on a printed account statement rather than a
   dashboard: identity on the left, money on the right, ledger underneath.
   ------------------------------------------------------------------------ */

.statement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}

.statement-id { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.statement-iban {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: var(--ink);
}

.statement-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: auto; }
.statement-meta div { display: flex; flex-direction: column; gap: 3px; }
.statement-meta dt { font-size: 10px; letter-spacing: .9px; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.statement-meta dd { font-size: 12.5px; font-weight: 550; color: var(--ink); }

/* Money side. The faint diagonal ruling is a nod to guilloche security print
   on real statements — it is the one decorative liberty in the interface. */
.statement-sum {
    position: relative;
    padding: 20px 22px;
    background: var(--navy);
    color: #e7eef4;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.statement-sum::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -52deg,
        rgba(255, 255, 255, .05) 0 1px,
        transparent 1px 9px
    );
    pointer-events: none;
}

.statement-sum > * { position: relative; }
.statement-sum .eyebrow { color: rgba(231, 238, 244, .58); }

.sum-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 34px;
    font-weight: 680;
    letter-spacing: -1.1px;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
}

.sum-cur { font-size: 18px; font-weight: 500; color: rgba(231, 238, 244, .62); }
.sum-asof { font-size: 11px; color: rgba(231, 238, 244, .55); }

.sum-split {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.sum-split div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sum-split span { font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: rgba(231, 238, 244, .5); font-weight: 600; }
.sum-split strong { font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.statement-foot {
    margin-top: 14px;
    font-size: 10.5px;
    color: var(--ink-faint);
    letter-spacing: .1px;
}

/* ── Ledger ────────────────────────────────────────────────────────────────
   Four columns, hairline rules, running balance on the right. Colour is spent
   only on credits; debits stay in ink so the eye isn't split red/green.
   ------------------------------------------------------------------------ */

.ledger-head,
.ledger li {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 130px 146px;
    gap: 14px;
    align-items: baseline;
}

.ledger-head {
    margin-top: 22px;
    padding: 0 6px 8px;
    border-bottom: 1.5px solid var(--ink-soft);
}

.ledger-head span {
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.ledger-head span:nth-child(3),
.ledger-head span:nth-child(4) { text-align: right; }

.ledger { list-style: none; }
.ledger.scroll { max-height: calc(100% - 132px); overflow-y: auto; }

.ledger li {
    padding: 11px 6px;
    border-bottom: 1px solid var(--line);
    transition: background .12s;
}

.ledger li:hover { background: var(--base-light); }

.ledger-group {
    display: block !important;
    padding: 16px 6px 6px;
    border-bottom: 1px solid var(--line);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-faint);
    background: transparent !important;
}

.ledger-date { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); }
.ledger-desc { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ledger-type { font-size: 13px; font-weight: 600; }
.ledger-ref {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--ink-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ledger-amount {
    text-align: right;
    font-size: 13.5px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

.ledger-amount.credit { color: var(--teal); }

.ledger-run {
    text-align: right;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
}

.ledger-empty {
    display: block !important;
    padding: 30px 6px;
    font-size: 12.5px;
    color: var(--ink-faint);
    border-bottom: 1px solid var(--line);
}

/* ── Nav grouping ─────────────────────────────────────────────────────────── */

.nav-eyebrow {
    padding: 14px 12px 6px;
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: rgba(223, 231, 238, .38);
}

.nav-eyebrow:first-child { padding-top: 2px; }

/* ── Card tab ─────────────────────────────────────────────────────────────── */

.card-layout {
    display: grid;
    grid-template-columns: 316px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.bank-card { aspect-ratio: 1.585; display: flex; flex-direction: column; justify-content: space-between; }
.bank-card.inactive { filter: grayscale(.85) contrast(.9); opacity: .7; }
.bank-card-brand { font-size: 13px; font-weight: 700; letter-spacing: 1.6px; color: rgba(234, 241, 247, .85); }
.bank-card-number { font-size: 17px; letter-spacing: 1.6px; }
.bank-card-foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: rgba(234, 241, 247, .82);
}

.detail-list { display: flex; flex-direction: column; }
.detail-list > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
}
.detail-list > div:first-child { padding-top: 0; }
.detail-list dt { font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.detail-list dd { font-size: 13px; font-weight: 600; text-align: right; }

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.btn.link {
    padding: 9px 12px;
    background: transparent;
    border-color: transparent;
    color: var(--navy);
    gap: 9px;
}

.btn.link:hover { background: var(--base-light); border-color: var(--line); }
.btn.link[disabled]:hover { background: transparent; border-color: transparent; }

@media (max-width: 1024px), (max-height: 720px) {
    .statement { grid-template-columns: minmax(0, 1fr); }
    .card-layout { grid-template-columns: minmax(0, 1fr); }
    .bank-card { max-width: 316px; }
    .ledger-head, .ledger li { grid-template-columns: 84px minmax(0, 1fr) 112px; }
    .ledger-head span:nth-child(4), .ledger-run { display: none; }
}

/* ── Form layout with summary aside ────────────────────────────────────── */

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 460px) 236px;
    gap: 18px;
    align-items: start;
}

.form-layout .form-card { max-width: none; }

.side-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: var(--base-light);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.side-title {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--ink-faint);
    font-weight: 600;
}

.side-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--ink-soft);
}

.side-row strong {
    font-size: 13.5px;
    font-weight: 650;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.side-row + .side-row { padding-top: 10px; border-top: 1px solid var(--line); }

.cost-tag {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--base-dark);
    font-size: 11px;
    font-weight: 650;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.btn.outline:hover .cost-tag { background: var(--base); }

@media (max-width: 1024px), (max-height: 720px) {
    .form-layout { grid-template-columns: minmax(0, 1fr); }
    .side-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 18px; }
    .side-title { width: 100%; }
    .side-row { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
    .side-row + .side-row { padding-top: 0; border-top: 0; border-left: 1px solid var(--line); padding-left: 18px; }
}
