/* Extracted from CompanySettings.razor (C5) — global styles, behaviour-identical to the former inline <style>. */

    /* ══ Page shell ══ */
    .cs-page {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: #f1f5f9;
        font-family: system-ui, -apple-system, sans-serif;
    }

    /* ── Topbar ── */
    .cs-topbar {
        background: linear-gradient(90deg, #0a1628 0%, #0d2344 60%, #1a3a6b 100%);
        padding: 14px 24px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .cs-topbar-left {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .cs-topbar-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        background: rgba(37,99,176,.4);
        border: 1px solid rgba(96,165,250,.25);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #93c5fd;
    }

    .cs-topbar-title {
        font-size: 1rem;
        font-weight: 800;
        color: #fff;
    }

    .cs-topbar-sub {
        font-size: .78rem;
        color: rgba(255,255,255,.45);
        margin-top: 1px;
    }

    .cs-topbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* Toast */
    .cs-toast {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 8px 14px;
        border-radius: 9px;
        font-size: .8125rem;
        font-weight: 600;
        animation: csFadeIn .25s ease both;
    }

    .cs-toast-ok {
        background: #f0fdf4;
        border: 1px solid #bbf7d0;
        color: #15803d;
    }

    .cs-toast-err {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
    }

    @keyframes csFadeIn {
        from {
            opacity: 0;
            transform: translateY(-6px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }

    .cs-alert-err {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 16px 24px 0;
        padding: 11px 14px;
        border-radius: 10px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
        font-size: .875rem;
    }

    /* ── Body layout ── */
    .cs-body {
        display: flex;
        flex: 1;
        padding: 24px;
        gap: 20px;
    }

    /* ── Left nav (F1 — sticky section rail on desktop) ── */
    .cs-nav {
        width: 210px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        position: sticky;
        top: 76px;
        align-self: flex-start;
        max-height: calc(100vh - 96px);
        overflow-y: auto;
    }

    .cs-nav-btn {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border-radius: 11px;
        border: none;
        background: transparent;
        color: #475569;
        font-size: .875rem;
        font-weight: 600;
        cursor: pointer;
        text-align: left;
        font-family: inherit;
        transition: background .15s, color .15s;
    }

        .cs-nav-btn:hover {
            background: #e2e8f0;
            color: #0f172a;
        }

    .cs-nav-active {
        background: #fff !important;
        color: #2563b0 !important;
        box-shadow: 0 1px 4px rgba(0,0,0,.08);
    }

        .cs-nav-active svg {
            color: #2563b0;
        }

    /* ── Main area ── */
    .cs-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 14px;
        min-width: 0;
    }

    /* Context bar */
    .cs-ctx-bar {
        background: #fff;
        border-radius: 14px;
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
        border: 1px solid #e2e8f0;
    }

    .cs-ctx-name {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
    }

    .cs-ctx-meta {
        font-size: .78rem;
        color: #64748b;
        margin-top: 2px;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .cs-ctx-actions {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .cs-status-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        display: inline-block;
    }

    .cs-dot-ok {
        background: #22c55e;
    }

    .cs-dot-off {
        background: #94a3b8;
    }

    /* Buttons */
    .cs-btn {
        height: 36px;
        padding: 0 16px;
        border-radius: 9px;
        border: none;
        font-size: .8125rem;
        font-weight: 700;
        font-family: inherit;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: background .15s, transform .1s, box-shadow .15s;
    }

        .cs-btn:disabled {
            opacity: .5;
            cursor: not-allowed;
        }

    .cs-btn-ghost {
        background: #fff;
        color: #64748b;
        border: 1.5px solid #e2e8f0;
    }

        .cs-btn-ghost:hover {
            background: #f8fafc;
            color: #0f172a;
        }

    .cs-btn-primary {
        background: #2563b0;
        color: #fff;
        box-shadow: 0 2px 8px rgba(37,99,176,.25);
    }

        .cs-btn-primary:hover {
            background: #1d50a0;
            transform: translateY(-1px);
        }

    .cs-btn-success {
        background: #059669;
        color: #fff;
        box-shadow: 0 2px 8px rgba(5,150,105,.25);
    }

        .cs-btn-success:hover:not(:disabled) {
            background: #047857;
            transform: translateY(-1px);
        }

    .cs-mt8 {
        margin-top: 12px;
    }

    /* Cards */
    .cs-card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0,0,0,.06);
        border: 1px solid #e2e8f0;
        overflow: hidden;
    }

    .cs-card-mb {
        margin-bottom: 14px;
    }

    .cs-card-header {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 18px;
        font-size: .8125rem;
        font-weight: 800;
        color: #374151;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        text-transform: uppercase;
        letter-spacing: .04em;
    }

    .cs-card-body {
        padding: 18px;
    }

    /* Grids */
    .cs-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px 18px;
    }

    .cs-grid-3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 14px 18px;
    }

    .cs-grid-4 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 14px 18px;
    }

    .cs-f-span2 {
        grid-column: span 2;
    }

    .cs-field-full {
        grid-column: 1 / -1;
    }

    /* Fields */
    .cs-field {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .cs-label {
        font-size: .78rem;
        font-weight: 700;
        color: #374151;
    }

    .cs-input, .cs-select {
        height: 38px;
        padding: 0 11px;
        background: #fff;
        border: 1.5px solid #e2e8f0;
        border-radius: 9px;
        font-size: .875rem;
        color: #0f172a;
        font-family: inherit;
        outline: none;
        width: 100%;
        transition: border-color .15s, box-shadow .15s;
        appearance: none;
    }

    .cs-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 11px center;
        padding-right: 32px;
    }

        .cs-input:focus, .cs-select:focus {
            border-color: #2563b0;
            box-shadow: 0 0 0 3px rgba(37,99,176,.1);
        }

    .cs-input-ro {
        background: #f8fafc;
        color: #64748b;
        cursor: default;
        border-color: #f1f5f9;
    }

        .cs-input-ro:focus {
            border-color: #f1f5f9;
            box-shadow: none;
        }

    .cs-input-wrap {
        position: relative;
    }

    .cs-input-ico {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
        pointer-events: none;
    }

    .cs-input-pad {
        padding-left: 32px;
    }

    /* Legal picker */
    .cs-legal-picker {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
    }

    .cs-legal-btn {
        height: 34px;
        padding: 0 14px;
        border-radius: 8px;
        border: 1.5px solid #e2e8f0;
        background: #fff;
        font-size: .8125rem;
        font-weight: 700;
        color: #64748b;
        cursor: pointer;
        font-family: inherit;
        transition: all .15s;
    }

        .cs-legal-btn:hover {
            border-color: #2563b0;
            color: #2563b0;
            background: #f0f6ff;
        }

    .cs-legal-active {
        background: #2563b0 !important;
        border-color: #2563b0 !important;
        color: #fff !important;
        box-shadow: 0 2px 6px rgba(37,99,176,.3);
    }

    .cs-legal-display {
        font-size: .875rem;
        color: #0f172a;
        font-weight: 700;
        padding: 6px 0;
    }

    /* Upload zones */
    .cs-field-upload-wrap {
    }

    .cs-upload-zone {
        position: relative;
        border-radius: 12px;
        border: 2px dashed #cbd5e1;
        background: #f8fafc;
        min-height: 90px;
        cursor: pointer;
        transition: border-color .2s, background .2s;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .cs-upload-zone:hover {
            border-color: #2563b0;
            background: #f0f6ff;
        }

    .cs-upload-done {
        border-color: #10b981 !important;
        background: #f0fdf4 !important;
        border-style: solid !important;
    }

    .cs-upload-disabled {
        cursor: not-allowed;
        opacity: .6;
    }

        .cs-upload-disabled:hover {
            border-color: #cbd5e1 !important;
            background: #f8fafc !important;
        }

    .cs-upload-input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
    }

    .cs-upload-disabled .cs-upload-input {
        pointer-events: none;
    }

    .cs-upload-idle {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 16px;
        text-align: center;
    }

    .cs-upload-ico {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #fff;
        border: 1.5px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
    }

    .cs-upload-zone:hover .cs-upload-ico {
        border-color: #2563b0;
        color: #2563b0;
    }

    .cs-upload-idle-text {
        font-size: .8125rem;
        font-weight: 700;
        color: #374151;
    }

    .cs-upload-idle-sub {
        font-size: .72rem;
        color: #94a3b8;
    }

    .cs-upload-preview-done {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .cs-upload-has-file {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 16px;
    }

    .cs-upload-fname {
        font-size: .8125rem;
        font-weight: 700;
        color: #059669;
        word-break: break-all;
    }

    .cs-upload-fsize {
        font-size: .72rem;
        color: #6ee7b7;
        margin-top: 2px;
    }

    .cs-logo-preview {
        max-height: 50px;
        max-width: 120px;
        object-fit: contain;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
    }

    .cs-stamp-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
        background: #f0f6ff;
        border: 1px solid #bfdbfe;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Skeleton */
    .cs-skeleton-wrap {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .cs-skeleton {
        height: 16px;
        background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
        background-size: 200% 100%;
        border-radius: 6px;
        animation: csSkel 1.4s ease infinite;
    }

    .cs-sk-w60 {
        width: 60%;
    }

    .cs-sk-w80 {
        width: 80%;
    }

    .cs-sk-w50 {
        width: 50%;
    }

    .cs-sk-w70 {
        width: 70%;
    }

    .cs-sk-mt {
        margin-top: 10px;
    }

    @keyframes csSkel {
        0% {
            background-position: 200% 0
        }

        100% {
            background-position: -200% 0
        }
    }

    /* Spinner */
    .cs-spinner {
        width: 13px;
        height: 13px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.3);
        border-top-color: #fff;
        animation: csSpin .7s linear infinite;
        display: inline-block;
    }

    @keyframes csSpin {
        to {
            transform: rotate(360deg)
        }
    }

    /* Bank list */
    /* ── Bank cards grid ── */
    .cs-bank-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
        gap: 14px;
    }

    .cs-bank-card {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        overflow: hidden;
        display: flex;
        box-shadow: 0 1px 4px rgba(0,0,0,.05);
        transition: box-shadow .2s, border-color .2s, transform .18s;
    }

        .cs-bank-card:hover {
            box-shadow: 0 6px 24px rgba(37,99,176,.1);
            border-color: #bfdbfe;
            transform: translateY(-2px);
        }

    .cs-bank-card-accent {
        width: 4px;
        flex-shrink: 0;
        background: linear-gradient(180deg, #2563b0 0%, #60a5fa 100%);
    }

    .cs-bank-card-body {
        flex: 1;
        padding: 16px 18px;
        display: flex;
        flex-direction: column;
        gap: 11px;
        min-width: 0;
    }

    /* ── Top row ── */
    .cs-bank-card-top {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Logo */
    .cs-bank-logo-wrap {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 6px;
    }

    .cs-bank-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .cs-bank-logo-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
    }

    /* Info */
    .cs-bank-card-info {
        flex: 1;
        min-width: 0;
    }

    .cs-bank-card-name {
        font-size: .9rem;
        font-weight: 700;
        color: #0f172a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cs-bank-card-sub {
        font-size: .775rem;
        color: #64748b;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Badges */
    .cs-bank-card-badges {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .cs-bank-currency-badge {
        font-size: .7rem;
        font-weight: 700;
        padding: .22rem .6rem;
        border-radius: 20px;
        letter-spacing: .04em;
        border: 1px solid transparent;
    }

    .cs-bank-currency-tnd  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
    .cs-bank-currency-usd  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
    .cs-bank-currency-eur  { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
    .cs-bank-currency-gbp  { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }

    .cs-bank-currency-badge:not(.cs-bank-currency-tnd):not(.cs-bank-currency-usd):not(.cs-bank-currency-eur):not(.cs-bank-currency-gbp) {
        background: #f1f5f9;
        color: #475569;
        border-color: #e2e8f0;
    }

    .cs-bank-swift-badge {
        font-size: .7rem;
        font-weight: 600;
        padding: .22rem .6rem;
        border-radius: 20px;
        background: #f8fafc;
        color: #64748b;
        border: 1px solid #e2e8f0;
        font-family: 'Courier New', monospace;
        letter-spacing: .02em;
    }

    /* Actions */
    .cs-bank-card-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    /* ── IBAN row ── */
    .cs-bank-card-iban-row {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #f8fafc;
        border: 1px solid #e8eef5;
        border-radius: 10px;
        padding: 9px 12px;
    }

    .cs-bank-iban-label {
        font-size: .65rem;
        font-weight: 700;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: .08em;
        flex-shrink: 0;
    }

    .cs-bank-iban-value {
        flex: 1;
        font-size: .8rem;
        color: #1e40af;
        font-family: 'Courier New', 'Consolas', monospace;
        letter-spacing: .04em;
        font-weight: 600;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cs-bank-copy-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 7px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #64748b;
        cursor: pointer;
        flex-shrink: 0;
        transition: all .15s;
    }

        .cs-bank-copy-btn:hover {
            background: #eff6ff;
            border-color: #93c5fd;
            color: #2563b0;
        }

    .cs-bank-copy-btn--ok {
        background: #f0fdf4 !important;
        border-color: #86efac !important;
        color: #16a34a !important;
    }

    @media (max-width: 720px) {
        .cs-bank-grid {
            grid-template-columns: 1fr;
        }
    }

    /* Icon buttons */
    .cs-icon-btn {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        border: 1.5px solid #e2e8f0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #64748b;
        cursor: pointer;
        transition: background .15s, border-color .15s, color .15s;
    }

        .cs-icon-btn:hover {
            background: #f0f6ff;
            border-color: #2563b0;
            color: #2563b0;
        }

    .cs-icon-btn-danger:hover {
        background: #fef2f2;
        border-color: #dc2626;
        color: #dc2626;
    }

    /* Empty state */
    .cs-empty {
        background: #fff;
        border-radius: 14px;
        border: 1px solid #e2e8f0;
        padding: 48px 24px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cs-empty-ico {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        background: #f0f6ff;
        border: 1px solid #bfdbfe;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #2563b0;
        margin-bottom: 14px;
    }

    .cs-empty-title {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
    }

    .cs-empty-sub {
        font-size: .8125rem;
        color: #64748b;
        margin-top: 4px;
        max-width: 320px;
        line-height: 1.5;
    }

    /* ══ Modal ══ */
    .cs-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(15,23,42,.5);
        backdrop-filter: blur(4px);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        animation: csOvIn .2s ease both;
    }

    @keyframes csOvIn {
        from {
            opacity: 0
        }

        to {
            opacity: 1
        }
    }

    .cs-modal {
        background: #fff;
        border-radius: 18px;
        width: 540px;
        max-width: calc(100vw - 32px);
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 24px 64px rgba(0,0,0,.22);
        animation: csMdIn .25s cubic-bezier(.34,1.56,.64,1) both;
    }

    @keyframes csMdIn {
        from {
            opacity: 0;
            transform: scale(.94) translateY(10px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }

    .cs-modal-header {
        padding: 20px 22px 18px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .cs-modal-title-wrap {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .cs-modal-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        flex-shrink: 0;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #2563b0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cs-modal-title {
        font-size: 1rem;
        font-weight: 800;
        color: #0f172a;
    }

    .cs-modal-sub {
        font-size: .78rem;
        color: #94a3b8;
        margin-top: 2px;
    }

    .cs-modal-close {
        width: 28px;
        height: 28px;
        border-radius: 7px;
        border: none;
        background: #f1f5f9;
        color: #64748b;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background .15s;
        flex-shrink: 0;
    }

        .cs-modal-close:hover {
            background: #fef2f2;
            color: #dc2626;
        }

    .cs-modal-body {
        padding: 20px 22px;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .cs-modal-footer {
        padding: 16px 22px;
        border-top: 1px solid #f1f5f9;
        display: flex;
        justify-content: flex-end;
        gap: 8px;
    }

    .cs-modal-alert {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 10px 13px;
        border-radius: 9px;
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
        font-size: .8125rem;
    }

    /* Modal fields */
    .cs-mfield {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .cs-mlabel {
        font-size: .8125rem;
        font-weight: 700;
        color: #374151;
    }

    .cs-mreq {
        color: #dc2626;
        margin-left: 2px;
    }

    .cs-mopt {
        font-size: .7rem;
        color: #94a3b8;
        font-weight: 500;
        margin-left: 4px;
    }

    .cs-mfield-row {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .cs-mfield-hint {
        font-size: .72rem;
        color: #94a3b8;
    }

    .cs-prefix-example {
        font-size: .74rem;
        color: #64748b;
        margin-top: 2px;
    }

    .cs-mfield-errmsg {
        font-size: .72rem;
        color: #dc2626;
        font-weight: 600;
    }

    .cs-minput {
        flex: 1;
        height: 42px;
        padding: 0 12px;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        font-size: .875rem;
        color: #0f172a;
        font-family: inherit;
        outline: none;
        transition: border-color .15s, background .15s, box-shadow .15s;
    }

        .cs-minput:focus {
            border-color: #2563b0;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(37,99,176,.1);
        }

    .cs-minput-ok {
        border-color: #e2e8f0;
    }

    .cs-minput-err {
        border-color: #fca5a5 !important;
        background: #fff5f5;
    }

    .cs-minput-iban {
        font-family: 'Courier New', monospace;
        letter-spacing: .05em;
    }

    .cs-mfield-indicator {
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    /* Custom bank dropdown */
    .cs-bank-select-wrap {
        position: relative;
    }

    .cs-bank-trigger {
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: border-color .15s, box-shadow .15s;
    }

        .cs-bank-trigger:hover, .cs-bsel-open .cs-bank-trigger {
            border-color: #2563b0;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(37,99,176,.1);
        }

    .cs-bank-trigger-sel {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .cs-bsel-name {
        font-size: .875rem;
        font-weight: 700;
        color: #0f172a;
    }

    .cs-bsel-placeholder {
        font-size: .875rem;
        color: #94a3b8;
    }

    .cs-bsel-logo {
        width: 28px;
        height: 28px;
        object-fit: contain;
        border-radius: 6px;
        border: 1px solid #e2e8f0;
        background: #fff;
        padding: 2px;
    }

    .cs-bsel-logo-ph {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .65rem;
        font-weight: 800;
        color: #2563b0;
    }

    .cs-bsel-chevron {
        color: #94a3b8;
        transition: transform .2s;
        flex-shrink: 0;
    }

    .cs-bsel-open-chev {
        transform: rotate(180deg);
    }

    .cs-bank-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        right: 0;
        z-index: 100;
        background: #fff;
        border: 1.5px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,.12);
        max-height: 260px;
        overflow-y: auto;
        animation: csDdIn .15s ease both;
    }

    @keyframes csDdIn {
        from {
            opacity: 0;
            transform: translateY(-6px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }

    .cs-bank-option {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 10px 14px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-family: inherit;
        text-align: left;
        transition: background .1s;
    }

        .cs-bank-option:hover {
            background: #f0f6ff;
        }

    .cs-bank-option-sel {
        background: #eff6ff;
    }

    .cs-bopt-logo-wrap {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cs-bopt-logo {
        width: 32px;
        height: 32px;
        object-fit: contain;
        border-radius: 7px;
        border: 1px solid #e2e8f0;
        background: #fff;
        padding: 2px;
    }

    .cs-bopt-logo-ph {
        width: 32px;
        height: 32px;
        border-radius: 7px;
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: .7rem;
        font-weight: 800;
        color: #2563b0;
    }

    .cs-bopt-name {
        flex: 1;
        font-size: .875rem;
        color: #0f172a;
        font-weight: 600;
    }

    .cs-bopt-check {
        color: #2563b0;
        flex-shrink: 0;
    }

    @media (max-width: 992px) {
        .cs-grid-3, .cs-grid-4 {
            grid-template-columns: 1fr 1fr;
        }

        .cs-f-span2 {
            grid-column: span 2;
        }

        .cs-bank-row {
            flex-wrap: wrap;
            align-items: flex-start;
            gap: 12px;
        }

        .cs-bank-info,
        .cs-bank-meta,
        .cs-bank-iban {
            width: 100%;
        }

        .cs-bank-actions {
            margin-left: auto;
        }

        .cs-bank-iban code {
            display: block;
            width: 100%;
            overflow-wrap: anywhere;
        }
    }

    @media (max-width: 768px) {
        .cs-page {
            min-height: 100dvh;
        }

        .cs-topbar {
            padding: 12px 16px;
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .cs-topbar-right {
            width: 100%;
        }

        .cs-toast {
            width: 100%;
        }

        .cs-alert-err {
            margin: 12px 16px 0;
        }

        .cs-body {
            flex-direction: column;
            padding: 14px;
            gap: 14px;
        }

        .cs-nav {
            width: 100%;
            flex-direction: row;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            padding-bottom: 2px;
            /* F1 — drop the desktop sticky rail on mobile */
            position: static;
            max-height: none;
            align-self: auto;
        }

        .cs-nav-btn {
            flex: 0 0 auto;
            white-space: nowrap;
            min-height: 40px;
        }

        .cs-ctx-bar {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
            padding: 12px 14px;
        }

        .cs-ctx-actions {
            width: 100%;
            flex-wrap: wrap;
        }

        .cs-ctx-actions .cs-btn {
            flex: 1;
            justify-content: center;
            min-width: 120px;
        }

        .cs-card-header,
        .cs-card-body {
            padding-left: 14px;
            padding-right: 14px;
        }

        .cs-grid-2, .cs-grid-3, .cs-grid-4 {
            grid-template-columns: 1fr;
        }

        .cs-f-span2 {
            grid-column: span 1;
        }

        .cs-upload-zone {
            min-height: 82px;
        }

        .cs-empty {
            padding: 28px 16px;
        }

        .cs-modal {
            width: calc(100vw - 20px);
            max-height: calc(100dvh - 20px);
            border-radius: 14px;
        }

        .cs-modal-header,
        .cs-modal-body,
        .cs-modal-footer {
            padding-left: 14px;
            padding-right: 14px;
        }

        .cs-modal-footer {
            flex-wrap: wrap;
        }

        .cs-modal-footer .cs-btn {
            flex: 1;
            justify-content: center;
            min-width: 120px;
        }

        .cs-mfield-row {
            align-items: flex-start;
        }

        .cs-bank-trigger-sel,
        .cs-bsel-name,
        .cs-bopt-name {
            min-width: 0;
        }

        .cs-bsel-name,
        .cs-bopt-name {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }

    @media (max-width: 500px) {
        .cs-topbar-title {
            font-size: .92rem;
        }

        .cs-topbar-sub,
        .cs-ctx-meta {
            font-size: .74rem;
        }

        .cs-btn {
            height: 38px;
            padding: 0 12px;
        }

        .cs-bank-row {
            padding: 12px;
        }

        .cs-bank-actions {
            width: 100%;
            justify-content: flex-end;
        }

        .cs-icon-btn {
            width: 34px;
            height: 34px;
        }

        .cs-modal-body {
            gap: 12px;
        }

        .cs-mfield-row {
            gap: 8px;
        }

        .cs-mfield-indicator {
            width: 18px;
            height: 18px;
        }
    }

    /* ══ TEIF tab ══ */
    .cs-teif-badge {
        font-size: .7rem; font-weight: 700; letter-spacing: .04em;
        padding: 3px 8px; border-radius: 20px; text-transform: uppercase;
    }
    .cs-teif-badge--on  { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
    .cs-teif-badge--off { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

    .cs-teif-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }

    .cs-teif-switch { cursor: pointer; flex-shrink: 0; }
    .cs-teif-switch input { display: none; }
    .cs-teif-track {
        display: block;
        width: 44px; height: 24px;
        border-radius: 12px;
        background: #cbd5e1;
        position: relative;
        transition: background .2s;
    }
    .cs-teif-track::after {
        content: '';
        position: absolute;
        top: 3px; left: 3px;
        width: 18px; height: 18px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 1px 3px rgba(0,0,0,.2);
        transition: transform .2s;
    }
    .cs-teif-switch input:checked ~ .cs-teif-track { background: #2563b0; }
    .cs-teif-switch input:checked ~ .cs-teif-track::after { transform: translateX(20px); }

    .cs-input-err { border-color: #ef4444 !important; }

    .cs-teif-pw-row {
        display: flex;
        align-items: center;
        gap: 0;
        border: 1.5px solid #e2e8f0;
        border-radius: 9px;
        overflow: hidden;
    }
    .cs-teif-pw-row .cs-input {
        border: none !important;
        border-radius: 0 !important;
        flex: 1;
        min-width: 0;
    }
    .cs-teif-eye {
        border: none;
        background: #f8fafc;
        border-left: 1.5px solid #e2e8f0;
        padding: 0 10px;
        height: 38px;
        cursor: pointer;
        color: #64748b;
        display: flex; align-items: center;
        flex-shrink: 0;
        transition: background .15s;
    }
    .cs-teif-eye:hover { background: #e2e8f0; }

    .cs-teif-method-list { display: flex; flex-direction: column; gap: 6px; }
    .cs-teif-method-row {
        display: flex; align-items: flex-start; gap: 12px;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1.5px solid #e2e8f0;
        cursor: pointer;
        transition: border-color .15s, background .15s;
    }
    .cs-teif-method-row:hover { border-color: #93c5fd; background: #f0f7ff; }
    .cs-teif-method-row--sel { border-color: #2563b0; background: #eff6ff; }

    .cs-teif-radio {
        width: 18px; height: 18px; flex-shrink: 0;
        border-radius: 50%;
        border: 2px solid #cbd5e1;
        margin-top: 1px;
        transition: border-color .15s;
    }
    .cs-teif-radio--on { border: 5px solid #2563b0; }

    .cs-teif-cert-info {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 14px;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        background: #f8fafc;
    }

    .cs-btn-danger-ghost {
        background: #fff;
        color: #ef4444;
        border: 1.5px solid #fecaca;
    }
    .cs-btn-danger-ghost:hover { background: #fef2f2; }

    .cs-teif-upload-zone {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 6px; padding: 20px;
        border: 2px dashed #e2e8f0;
        border-radius: 10px;
        background: #f8fafc;
        cursor: pointer;
        color: #64748b;
        font-size: .875rem;
        transition: border-color .15s, background .15s;
        text-align: center;
    }
    .cs-teif-upload-zone:hover {
        border-color: #93c5fd;
        background: #f0f7ff;
        color: #2563b0;
    }

    .cs-teif-cert-pending {
        margin-top: .75rem;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
    }

    .cs-teif-test-card .cs-card-header { font-size: .85rem; font-weight: 700; }
    .cs-teif-test-ok .cs-card-header { color: #15803d; }
    .cs-teif-test-err .cs-card-header { color: #dc2626; }
    .cs-teif-step {
        display: flex; align-items: center; gap: 8px;
        padding: 5px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: .8rem;
    }
    .cs-teif-step:last-child { border-bottom: none; }
    .cs-teif-step-ok svg { color: #15803d; }
    .cs-teif-step-fail svg { color: #dc2626; }
