/*
 * Seller Center · Finances (Your plan, Wallet, Payout accounts, Withdrawals, Fees, Payout verification,
 * Statements, Invoice). Built from the approved Finances mockup, 26 Nov 2026.
 *
 * Scope: every rule sits under a root this group owns -
 *   .fin            the page classes of this group's pages (getPageClasses on each page)
 *   .afw / .pa / .afv / .afi / .fin-plan   the roots of the group's own Blade views
 *   .fin-modal      the window of this group's action modals (extraModalWindowAttributes)
 * so no other Seller Center page changes. Colours come only from tokens.css; tinted borders the tokens
 * do not list are mixed from the matching status dot and the surface, so both modes follow.
 */

.fin {
    --fin-accent-border: color-mix(in srgb, var(--sc-accent) 30%, var(--sc-surface));
}

/* ───────────── Shared: page head drawn by the view (pages whose Filament heading is empty) ───────────── */
.fin-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.fin-head__text { min-width: 0; }
.fin-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12.5px; color: var(--sc-text-3); }
.fin-crumbs a { color: var(--sc-text-3); text-decoration: none; }
.fin-crumbs a:hover { color: var(--sc-text); text-decoration: underline; }
.fin-crumbs svg { width: 12px; height: 12px; }
.fin-h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--sc-text); }
.fin-lede { margin: 4px 0 0; font-size: 14px; color: var(--sc-text-2); }
.fin .fi-breadcrumbs-item, .fin .fi-breadcrumbs-item-label { font-size: 12.5px; font-weight: 500; color: var(--sc-text-3) !important; }
.fin .fi-header { align-items: flex-end; }

/* Notes and banners (icon chip, text, optional link) */
.fin-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--sc-border); background: var(--sc-surface); color: var(--sc-text); }
.fin-note .sc-chip { background: var(--sc-surface); }
.fin-note__body { flex: 1 1 auto; min-width: 0; font-size: 13px; }
.fin-note__t { margin: 0; font-weight: 700; font-size: 14px; }
.fin-note__s { margin: 2px 0 0; }
.fin-note .sc-link, .fin-note__link { flex: none; align-self: flex-start; color: inherit; }
.fin-note--info { background: var(--sc-info-bg); color: var(--sc-info-text); border-color: var(--sc-info-border); }
.fin-note--warn { background: var(--sc-warn-bg); color: var(--sc-warn-text); border-color: var(--sc-warn-border); }
.fin-note--danger { background: var(--sc-danger-bg); color: var(--sc-danger-text); border-color: var(--sc-danger-border); }
.fin-note--accent { background: var(--sc-accent-soft); color: var(--sc-accent-text); border-color: var(--fin-accent-border); }
.fin-note--ok { background: var(--sc-ok-bg); color: var(--sc-ok-text); border-color: var(--sc-ok-border); }
.fin-note--info .sc-chip, .fin-note--warn .sc-chip, .fin-note--danger .sc-chip, .fin-note--accent .sc-chip { color: inherit; }
.fin-note .sc-chip svg, .sc-empty .sc-chip svg, .pa-card-top .sc-chip svg, .pa-secure .sc-chip svg { width: 16px; height: 16px; }
.fin-note .sc-link svg { width: 14px; height: 14px; }

/* Section heading above a block */
.fin-section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fin-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fin-section__title { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--sc-text); }
.fin-section__note { font-size: 13px; color: var(--sc-text-3); }

/* A plain pill with no dot */
.fin-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; line-height: 20px; border-radius: 999px; border: 1px solid var(--sc-border); background: var(--sc-surface); font-size: 12.5px; font-weight: 600; color: var(--sc-text-2); white-space: nowrap; }

/* Disabled look for an sc-btn */
.sc-btn.fin-btn-off, .sc-btn[disabled] { background: var(--sc-surface-2); color: var(--sc-text-3); border-color: var(--sc-border); cursor: not-allowed; }
.sc-btn svg { width: 16px; height: 16px; flex: none; }

/* Pager under hand-drawn lists (Wallet orders, plan payments) */
.fin .sc-pager .sc-pg { text-decoration: none; }
.fin .sc-pager .sc-pg[aria-disabled="true"] { color: var(--sc-text-3); opacity: .6; cursor: not-allowed; pointer-events: none; }
.fin .sc-pager .sc-pg svg { width: 14px; height: 14px; }

/* Empty state inside a card */
.fin .sc-empty .sc-chip { width: 40px; height: 40px; border-radius: 10px; }
.fin .sc-empty .sc-chip svg { width: 18px; height: 18px; }

/* ───────────── Modals of this group ───────────── */
.fin-modal .fi-modal-heading { font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: var(--sc-text); }
.fin-modal .fi-modal-description { color: var(--sc-text-2); font-size: 14px; }
.fin-modal .fi-modal-icon-bg { border-radius: 10px !important; }
.fin-modal .fi-modal-icon-bg.fi-color-primary, .fin-modal .fi-modal-icon-bg.fi-color-gray { background: var(--sc-accent-soft) !important; }
.fin-modal .fi-modal-icon-bg.fi-color-primary .fi-icon, .fin-modal .fi-modal-icon-bg.fi-color-gray .fi-icon { color: var(--sc-accent-text) !important; }
.fin-modal .fi-modal-icon-bg.fi-color-danger { background: var(--sc-danger-bg) !important; }
.fin-modal .fi-modal-icon-bg.fi-color-danger .fi-icon { color: var(--sc-danger-text) !important; }
.fin-modal .fi-modal-icon-bg.fi-color-warning { background: var(--sc-warn-bg) !important; }
.fin-modal .fi-modal-icon-bg.fi-color-warning .fi-icon { color: var(--sc-warn-text) !important; }

/* Plan change summary inside the Upgrade / Switch / Cancel modals */
.fin-chg { display: flex; flex-direction: column; gap: 14px; font-size: 14px; color: var(--sc-text-2); }
.fin-chg p { margin: 0; }
.fin-chg__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.fin-chg__list li { display: flex; gap: 8px; align-items: flex-start; color: var(--sc-text); }
.fin-chg__list svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.fin-chg__a { color: var(--sc-ok-text); }
.fin-chg__l { color: var(--sc-danger-text); }
.fin-chg__c { color: var(--sc-text-3); }
.fin-quote { border: 1px solid var(--sc-border); border-radius: 10px; background: var(--sc-surface-2); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.fin-quote > div { display: flex; justify-content: space-between; gap: 12px; color: var(--sc-text); }
.fin-quote__tot { border-top: 1px solid var(--sc-line); padding-top: 8px; font-weight: 700; }
.fin-quote small { color: var(--sc-text-3); font-size: 12.5px; }

/* ═════════════════════════════ Your plan ═════════════════════════════ */
.fin-plan { display: flex; flex-direction: column; gap: 24px; color: var(--sc-text); }
.fin-plan p { margin: 0; }
.fin-plan__hero { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; padding: 20px; }
.fin-plan__k { font-size: 13px; color: var(--sc-text-3); font-weight: 600; }
.fin-plan__name { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 2px; }
.fin-plan__name b { font-size: 24px; letter-spacing: -.02em; }
.fin-plan__facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--sc-text-2); font-size: 14px; }
.fin-plan__facts li { display: flex; gap: 8px; align-items: flex-start; }
.fin-plan__facts svg { width: 15px; height: 15px; flex: none; color: var(--sc-text-3); margin-top: 3px; }
.fin-plan__strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 20px 20px; padding: 12px 14px; border-radius: 10px; background: var(--sc-warn-bg); color: var(--sc-warn-text); border: 1px solid var(--sc-warn-border); font-size: 14px; }
.fin-plan__card-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 4px 20px 20px; }
.fin-plan__cardchip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--sc-border); border-radius: 10px; background: var(--sc-surface-2); font-weight: 600; font-size: 14px; }
.fin-plan__cardchip svg { width: 18px; height: 18px; color: var(--sc-text-2); }
.fin-plan__cardform { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.fin-plan__stripe { min-height: 42px; padding: 11px 12px; border: 1px solid var(--sc-border-strong); border-radius: 10px; background: var(--sc-surface); }
.fin-plan__err { display: flex; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--sc-danger-text); }
.fin-plan__btns { display: flex; gap: 8px; }
.fin-plan__hint { font-size: 12.5px; color: var(--sc-text-3); }

.fin-plan__benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fin-plan__benefit { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--sc-border); border-radius: 12px; background: var(--sc-surface); }
.fin-plan__benefit .t { font-weight: 700; font-size: 14px; }
.fin-plan__benefit .u { color: var(--sc-text-2); font-size: 13.5px; }
.fin-plan__benefit .r { font-size: 12.5px; color: var(--sc-text-3); }
.fin-plan__meter { height: 6px; border-radius: 999px; background: var(--sc-line); overflow: hidden; margin-top: 6px; }
.fin-plan__meter span { display: block; height: 100%; background: var(--sc-accent); }

/* Billing period switch */
.fin-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--sc-border); border-radius: 10px; background: var(--sc-surface-2); }
.fin-seg button { padding: 6px 12px; border: 0; border-radius: 7px; background: transparent; font: 600 13px Inter, sans-serif; color: var(--sc-text-2); cursor: pointer; }
.fin-seg button:hover { color: var(--sc-text); }
.fin-seg button[aria-pressed="true"] { background: var(--sc-surface); color: var(--sc-text); box-shadow: var(--sc-shadow); }
.dark .fin-seg button[aria-pressed="true"] { background: var(--sc-border-strong); }

/* Compare plans */
.fin-cmp-wrap { overflow-x: auto; }
.fin-cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.fin-cmp th, .fin-cmp td { padding: 11px 16px; border-bottom: 1px solid var(--sc-line); text-align: left; vertical-align: top; }
.fin-cmp thead th { font-size: 14px; font-weight: 700; color: var(--sc-text); background: var(--sc-surface-2); }
.fin-cmp thead th small { display: block; font-size: 12px; font-weight: 600; color: var(--sc-accent-text); }
.fin-cmp .is-cur { background: var(--sc-accent-soft) !important; }
.fin-cmp thead th.is-cur { color: var(--sc-accent-text); }
.fin-cmp tbody th { font-weight: 500; color: var(--sc-text-2); width: 28%; }
.fin-cmp td { color: var(--sc-text); }
.fin-cmp td.is-lock { color: var(--sc-text-3); }
.fin-cmp td.is-lock svg { width: 15px; height: 15px; }
.fin-cmp td small { display: block; font-size: 12px; color: var(--sc-accent-text); font-weight: 600; margin-top: 2px; }
.fin-cmp tbody tr:last-child th, .fin-cmp tbody tr:last-child td { border-bottom: 0; }
.fin-cmp tr.fin-cmp__cta td { padding-top: 14px; padding-bottom: 16px; }
.fin-cmp__pay { margin-bottom: 8px; font-size: 13.5px; }
.fin-cmp__pay b { color: var(--sc-text); }
.fin-cmp__was { color: var(--sc-text-3); text-decoration: line-through; font-size: 12.5px; margin-left: 4px; }
.fin-cmp__cur { font-weight: 700; color: var(--sc-accent-text); font-size: 13px; }
.fin-plan .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Plan payments */
.fin-plan .sc-dt td:first-child, .fin-plan .sc-dt th:first-child { padding-left: 20px; }

/* Welcome / plan-change pop-ups: solid colours, same wording as before */
.fin-pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; background: color-mix(in srgb, var(--sc-text) 48%, transparent); }
.dark .fin-pop { background: color-mix(in srgb, var(--sc-bg) 70%, transparent); }
.fin-pop__card { width: 100%; max-width: 440px; padding: 24px 20px 20px; border: 1px solid var(--sc-border); border-radius: 16px; background: var(--sc-surface); box-shadow: var(--sc-shadow-pop); text-align: center; color: var(--sc-text); animation: fin-pop .25s ease-out both; }
@keyframes fin-pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.fin-pop__ic { width: 40px; height: 40px; margin: 0 auto; border-radius: 10px; display: grid; place-items: center; background: var(--sc-accent-soft); color: var(--sc-accent-text); }
.fin-pop__ic--ok { background: var(--sc-ok-bg); color: var(--sc-ok-text); }
.fin-pop__ic svg { width: 20px; height: 20px; }
.fin-pop__eyebrow { margin: 14px 0 2px !important; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-accent-text); }
.fin-pop__t { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.fin-pop__d { margin: 4px 0 0 !important; font-size: 14px; color: var(--sc-text-2); }
.fin-pop__perks { list-style: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--sc-surface-2); border: 1px solid var(--sc-border); text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--sc-text); }
.fin-pop__perks li { display: flex; gap: 8px; align-items: flex-start; }
.fin-pop__perks svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--sc-ok-dot); }
.fin-pop__perks .is-lead { color: var(--sc-text-2); }
.fin-pop__note { margin: 14px 0 0 !important; font-size: 13px; color: var(--sc-text-2); }
.fin-pop__card .sc-btn { width: 100%; margin-top: 18px; }

/* ═════════════════════════════ Wallet ═════════════════════════════ */
.afw { display: flex; flex-direction: column; gap: 24px; color: var(--sc-text); }
.afw p { margin: 0; }
.afw-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.afw-stack { display: flex; flex-direction: column; gap: 16px; }
.afw-bal { padding: 20px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.afw-bal--accent { border-color: var(--sc-accent); box-shadow: inset 4px 0 0 var(--sc-accent); }
.afw-k { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--sc-text-2); }
.afw-i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--sc-border-strong); display: inline-grid; place-items: center; font-size: 10px; font-style: normal; color: var(--sc-text-3); cursor: help; }
.afw-v { font-size: 34px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.afw-v--m { font-size: 24px; }
.afw-s { font-size: 13.5px; color: var(--sc-text-2); }
.afw-pend { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
.afw-pend__main { display: flex; flex-direction: column; gap: 6px; flex: 1 1 260px; min-width: 0; }
.afw-count { flex: 0 1 260px; min-width: 240px; border: 1px solid var(--sc-border); border-radius: 12px; background: var(--sc-surface-2); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.afw-clock { display: flex; gap: 8px; }
.afw-clock > span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 8px 6px; border-radius: 10px; background: var(--sc-surface); border: 1px solid var(--sc-border); }
.afw-clock b { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.afw-clock small { font-size: 11px; font-weight: 700; color: var(--sc-text-3); letter-spacing: .06em; }
.afw-release { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.afw-release svg { width: 16px; height: 16px; flex: none; color: var(--sc-text-2); }
.afw-release b { display: block; }

.afw-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--sc-line); }
.afw-select { height: 36px; padding: 0 32px 0 12px; border: 1px solid var(--sc-border-strong); border-radius: 10px; background-color: var(--sc-surface); color: var(--sc-text); font: 600 13px Inter, sans-serif; cursor: pointer; }

.afw-rows { display: flex; flex-direction: column; }
.afw-row { display: grid; grid-template-columns: 36px minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 1fr) 16px; gap: 6px 14px; align-items: center; padding: 14px 20px; border-top: 1px solid var(--sc-line); }
.afw-row:first-child { border-top: 0; }
.afw-row:hover { background: var(--sc-hover); }
.afw-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--sc-border); background: var(--sc-surface-2); color: var(--sc-text-2); }
.afw-ic svg { width: 18px; height: 18px; }
.afw-ic--released { color: var(--sc-ok-text); background: var(--sc-ok-bg); border-color: var(--sc-ok-border); }
.afw-ic--pending { color: var(--sc-warn-text); background: var(--sc-warn-bg); border-color: var(--sc-warn-border); }
.afw-ic--returned { color: var(--sc-danger-text); background: var(--sc-danger-bg); border-color: var(--sc-danger-border); }
.afw-oid { font-weight: 700; }
.afw-om { font-size: 12.5px; color: var(--sc-text-3); line-height: 1.45; }
.afw-st { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.afw-st__s { font-size: 13px; color: var(--sc-text); }
.afw-st__w { font-size: 12.5px; color: var(--sc-text-3); }
.afw-bar { height: 5px; width: 100%; max-width: 220px; border-radius: 999px; background: var(--sc-line); overflow: hidden; margin-top: 2px; }
.afw-bar i { display: block; height: 100%; background: var(--sc-warn-dot); }
.afw-amt { text-align: right; font-variant-numeric: tabular-nums; }
.afw-amt b { font-size: 15px; }
.afw-amt p { font-size: 12px; color: var(--sc-text-3); line-height: 1.4; }
/* Desktop has room for "Added on Sep 18, 2026" on one line (as the mockup); phones keep the break. */
@media (min-width: 1280px) { .afw-amt p br { display: none; } }
.afw-amt .is-pos { color: var(--sc-ok-text); }
.afw-amt .is-neg { color: var(--sc-danger-text); }
.afw-go { color: var(--sc-text-3); display: grid; place-items: center; }
.afw-go svg { width: 16px; height: 16px; }
.afw-strip { grid-column: 2 / -1; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sc-danger-text); background: var(--sc-danger-bg); border-radius: 8px; padding: 7px 10px; }
.afw-strip svg { width: 15px; height: 15px; flex: none; }
.afw-eg { flex: 0 0 auto; border: 1px solid var(--sc-border); border-radius: 10px; background: var(--sc-surface-2); padding: 10px 12px; min-width: 240px; font-size: 13px; color: var(--sc-text); }
.afw-eg > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.afw-eg__k { font-weight: 700; font-size: 12px; color: var(--sc-text-3); text-transform: uppercase; letter-spacing: .06em; }
.afw-secure { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 12.5px; color: var(--sc-text-3); }
.afw-secure svg { width: 14px; height: 14px; }

/* ═════════════════════════════ Payout accounts ═════════════════════════════ */
.pa {
    --pa-ink: var(--sc-text); --pa-ink-2: var(--sc-text-2); --pa-muted: var(--sc-text-3); --pa-faint: var(--sc-text-3);
    --pa-line: var(--sc-border); --pa-line-2: var(--sc-border-strong); --pa-surface: var(--sc-surface); --pa-soft: var(--sc-surface-2);
    --pa-blue: var(--sc-accent); --pa-blue-ink: var(--sc-info-text); --pa-blue-soft: var(--sc-info-bg); --pa-blue-line: var(--sc-info-border);
    --pa-green: var(--sc-ok-dot); --pa-green-ink: var(--sc-ok-text); --pa-green-soft: var(--sc-ok-bg); --pa-green-line: var(--sc-ok-border);
    --pa-amber-soft: var(--sc-warn-bg); --pa-amber-line: var(--sc-warn-border); --pa-amber-ink: var(--sc-warn-text);
    --pa-red: var(--sc-danger-text); --pa-red-soft: var(--sc-danger-bg);
    color: var(--sc-text); display: flex; flex-direction: column; gap: 24px; font-size: 14px;
}
.pa p { margin: 0; }

/* Header */
.pa-secure { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--sc-border); border-radius: 12px; background: var(--sc-surface); }
.pa-secure b { display: block; font-size: 13px; }
.pa-secure span.pa-secure__s { display: block; font-size: 12.5px; color: var(--sc-text-3); }

/* Country and currency card */
.pa-where { padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pa-label { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--sc-text-2); }
.pa-label em { font-style: normal; font-weight: 400; color: var(--sc-text-3); }

/* Inputs */
.pa-input, .pa-select { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--sc-border-strong); border-radius: 10px; background: var(--sc-surface); color: var(--sc-text); font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.pa-input:focus, .pa-select:focus { outline: none; border-color: var(--sc-accent); box-shadow: 0 0 0 2px var(--sc-focus); }
.pa-input::placeholder { color: var(--sc-text-3); }
.pa-select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--sc-text-3) 50%), linear-gradient(135deg, var(--sc-text-3) 50%, transparent 50%);
    background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.pa-input[disabled] { background: var(--sc-surface-2); color: var(--sc-text-3); cursor: not-allowed; }
.pa-input.is-bad { border-color: var(--sc-danger-dot); box-shadow: 0 0 0 3px var(--sc-danger-bg); }
.pa-err { display: flex; gap: 5px; margin: 6px 0 0 !important; font-size: 12.5px; font-weight: 500; color: var(--sc-danger-text); }
.pa-hint { margin: 6px 0 0 !important; font-size: 12.5px; line-height: 1.45; color: var(--sc-text-3); }

/* Picker */
.pa-pick { position: relative; }
.pa-pick-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--sc-border-strong); border-radius: 10px; background: var(--sc-surface); color: var(--sc-text); font-size: 14px; text-align: left; cursor: pointer; }
.pa-pick-btn:focus-visible, .pa-pick-btn[aria-expanded=true] { outline: none; border-color: var(--sc-accent); box-shadow: 0 0 0 2px var(--sc-focus); }
.pa-flag { width: 20px; height: 14px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px var(--sc-border); background: var(--sc-surface-2); }
.pa-pick-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-pick-caret { width: 16px; height: 16px; flex: none; color: var(--sc-text-3); }
.pa-pick-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); overflow: hidden; border: 1px solid var(--sc-border); border-radius: 12px; background: var(--sc-surface); box-shadow: var(--sc-shadow-pop); }
.pa-pick-search { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--sc-line); }
.pa-pick-search svg { width: 16px; height: 16px; color: var(--sc-text-3); flex: none; }
.pa-pick-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--sc-text); font-size: 14px; outline: none; box-shadow: none; padding: 0; }
.pa-pick-list { max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; }
.pa-pick-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 14px; color: var(--sc-text-2); }
.pa-pick-list li:hover { background: var(--sc-hover); color: var(--sc-text); }
.pa-pick-list li.is-on { background: var(--sc-accent-soft); color: var(--sc-accent-text); font-weight: 600; }
.pa-pick-list li span { flex: 1; min-width: 0; }
.pa-pick-tick { width: 16px; height: 16px; flex: none; }
.pa-pick-empty { color: var(--sc-text-3); cursor: default !important; }

/* The two ways in */
.pa-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.pa-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--sc-border); border-radius: var(--sc-radius-card); background: var(--sc-surface); box-shadow: var(--sc-shadow); }
.pa-card--click { cursor: pointer; }
.pa-card--click:hover { border-color: var(--sc-border-strong); }
.pa-card--click:focus-visible { outline: 2px solid var(--sc-focus); outline-offset: 2px; }
.pa-card--selected, .pa-card--selected:hover { border-color: var(--sc-accent); box-shadow: 0 0 0 2px var(--sc-focus); }
.pa-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pa-card-top .sc-chip svg { width: 16px; height: 16px; }
.pa-card h2 { margin: 4px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--sc-text); }
.pa-card-text { color: var(--sc-text-2); font-size: 14px; line-height: 1.5; }
.pa-ticks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--sc-text); }
.pa-ticks li { display: flex; align-items: center; gap: 8px; }
.pa-ticks svg { width: 15px; height: 15px; flex: none; color: var(--sc-ok-dot); }
.pa-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sc-line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pa-card-note { display: flex; align-items: center; gap: 6px; max-width: 300px; font-size: 12.5px; color: var(--sc-text-3); }
.pa-card-note svg { width: 13px; height: 13px; flex: none; }
.pa-or { display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--sc-text-3); }

/* Notes on this page */
.pa .fin-note .sc-chip svg { width: 16px; height: 16px; }
.pa .fin-note--warn .sc-chip { color: var(--sc-warn-text); }
.pa .fin-note--info .sc-chip { color: var(--sc-info-text); }
.pa-test { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--sc-info-border); background: var(--sc-info-bg); color: var(--sc-info-text); font-size: 14px; }
.pa-test svg { width: 20px; height: 20px; flex: none; }
.pa-test b { font-weight: 700; }
.pa-inline-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--sc-warn-border); background: var(--sc-warn-bg); color: var(--sc-warn-text); font-size: 14px; }
.pa-inline-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.pa-inline-note__body { flex: 1 1 auto; min-width: 0; }
.pa-inline-note__body b { font-weight: 700; }

/* Panels */
.pa-panel { border: 1px solid var(--sc-border); border-radius: var(--sc-radius-card); background: var(--sc-surface); box-shadow: var(--sc-shadow); }
.pa-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px 12px; }
.pa-panel-head h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--sc-text); }
.pa-panel-head p { margin: 2px 0 0; font-size: 13px; color: var(--sc-text-3); }
.pa-panel-head .fin-tag img { width: 18px; height: 13px; }
.pa-panel-body { padding: 14px 20px 20px; }
.pa-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pa-span-2 { grid-column: 1 / -1; }
.pa-check { display: flex; align-items: center; gap: 10px; height: 38px; margin-top: 24px; font-size: 14px; color: var(--sc-text-2); cursor: pointer; user-select: none; }
.pa-check input { width: 18px; height: 18px; border-radius: 5px; accent-color: var(--sc-accent); }
.pa-wrapfield { position: relative; }
.pa-spin { position: absolute; top: 50%; right: 34px; width: 14px; height: 14px; margin-top: -7px; border: 2px solid var(--sc-border-strong); border-top-color: var(--sc-accent); border-radius: 50%; animation: pa-spin .6s linear infinite; pointer-events: none; }
@keyframes pa-spin { to { transform: rotate(360deg); } }
.pa-divider { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-text-3); }
.pa-divider::after { content: ''; flex: 1; height: 1px; background: var(--sc-line); }
.pa-panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--sc-line); border-radius: 0 0 var(--sc-radius-card) var(--sc-radius-card); }
.pa-panel-foot > p { display: flex; align-items: center; gap: 6px; margin: 0 auto 0 0; font-size: 13px; color: var(--sc-text-3); }
.pa-panel-foot > p svg { width: 14px; height: 14px; flex: none; }
.pa-actions { display: flex; gap: 8px; }

/* What the bank said */
.pa-result { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; border: 1px solid var(--sc-border); display: flex; flex-direction: column; gap: 6px; }
.pa-result--ok { border-color: var(--sc-ok-border); background: var(--sc-ok-bg); color: var(--sc-ok-text); }
.pa-result--warn { border-color: var(--sc-warn-border); background: var(--sc-warn-bg); color: var(--sc-warn-text); }
.pa-result > b { font-size: 14px; }
.pa-result-row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; font-size: 13px; color: var(--sc-text); }
.pa-result-row strong { font-weight: 600; }
.pa-yes { color: var(--sc-ok-text); }
.pa-no { color: var(--sc-danger-text); }

/* How to fix the last save's errors */
.pa-guide { display: grid; gap: 10px; margin-top: 16px; }
.pa-guide-item { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--sc-border); border-left: 4px solid var(--sc-danger-dot); border-radius: 10px; background: var(--sc-surface-2); color: var(--sc-text-2); font-size: 13.5px; line-height: 1.5; }
.pa-guide-item b, .pa-guide-item strong { color: var(--sc-text); }
.pa-guide-next { font-size: 12.5px; color: var(--sc-text-3); }

/* Accounts on file */
.pa-acct { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; padding: 16px 20px; border-top: 1px solid var(--sc-line); align-items: flex-start; }
.pa-acct-icon { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sc-surface-2); border: 1px solid var(--sc-border); color: var(--sc-text-2); }
.pa-acct-icon--ok { background: var(--sc-ok-bg); color: var(--sc-ok-text); border-color: var(--sc-ok-border); }
.pa-acct-icon > svg { width: 20px; height: 20px; }
.pa-acct-icon .pa-flag { position: absolute; right: -6px; bottom: -4px; width: 18px; height: 13px; }
.pa-acct-body { min-width: 0; }
.pa-acct-name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 700; }
.pa-acct-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 3px; font-size: 13.5px; color: var(--sc-text-2); }
.pa-acct-line .dots { letter-spacing: 1px; }
.pa-acct-line .sep { color: var(--sc-text-3); }
.pa-acct-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--sc-text-3); }
.pa-acct-meta svg { width: 13px; height: 13px; }
.pa-acct-warn { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; background: var(--sc-warn-bg); color: var(--sc-warn-text); }
.pa-acct-warn--red { background: var(--sc-danger-bg); color: var(--sc-danger-text); }
.pa-acct-warn--info { background: var(--sc-info-bg); color: var(--sc-info-text); }
.pa-acct-actions { position: relative; display: flex; align-items: center; gap: 6px; flex: none; }
.pa-more { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--sc-border); border-radius: 10px; background: var(--sc-surface); color: var(--sc-text-2); cursor: pointer; }
.pa-more:hover { background: var(--sc-hover); color: var(--sc-text); }
.pa-more svg { width: 18px; height: 18px; }
.pa-menu { position: relative; }
.pa-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 260px; padding: 6px; border: 1px solid var(--sc-border); border-radius: 12px; background: var(--sc-surface); box-shadow: var(--sc-shadow-pop); }
.pa-menu-list a, .pa-menu-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 14px; font-weight: 500; text-align: left; color: var(--sc-text-2); text-decoration: none; cursor: pointer; }
.pa-menu-list a svg, .pa-menu-list button svg { width: 16px; height: 16px; flex: none; }
.pa-menu-list a:hover, .pa-menu-list button:hover { background: var(--sc-hover); color: var(--sc-text); }
.pa-menu-list .pa-menu-danger, .pa-menu-list .pa-menu-danger:hover { color: var(--sc-danger-text); }
.pa-menu-list .pa-menu-note { padding: 8px 10px; font-size: 12.5px; line-height: 1.45; color: var(--sc-text-3); }
.pa-menu-sep { height: 1px; margin: 4px 0; background: var(--sc-line); }

/* Confirm dialog for Deactivate / Delete (same question the browser used to ask) */
.pa-confirm { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 120px 16px 16px; background: color-mix(in srgb, var(--sc-text) 48%, transparent); }
.dark .pa-confirm { background: color-mix(in srgb, var(--sc-bg) 70%, transparent); }
.pa-confirm__box { width: min(520px, 100%); border: 1px solid var(--sc-border); border-radius: 16px; background: var(--sc-surface); box-shadow: var(--sc-shadow-pop); color: var(--sc-text); }
.pa-confirm__head { display: flex; gap: 14px; align-items: flex-start; padding: 20px 20px 4px; }
.pa-confirm__ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.pa-confirm__ic svg { width: 20px; height: 20px; }
.pa-confirm__ic--warn { background: var(--sc-warn-bg); color: var(--sc-warn-text); }
.pa-confirm__ic--danger { background: var(--sc-danger-bg); color: var(--sc-danger-text); }
.pa-confirm__t { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.pa-confirm__d { margin: 4px 0 0 !important; color: var(--sc-text-2); font-size: 14px; }
.pa-confirm__x { margin-left: auto; width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--sc-text-3); display: grid; place-items: center; cursor: pointer; flex: none; }
.pa-confirm__x svg { width: 16px; height: 16px; }
.pa-confirm__foot { display: flex; gap: 8px; justify-content: flex-end; padding: 16px 20px 20px; flex-wrap: wrap; }
.pa-confirm .sc-btn--danger { background: var(--sc-danger-solid); color: var(--sc-on-accent); }
.pa-confirm .sc-btn--danger:hover { background: var(--sc-danger-solid); filter: brightness(1.08); }

/* View details (one account) */
.pa-view { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
.pa-view__stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fin-dl { display: flex; flex-direction: column; margin: 0; }
.fin-dl > div { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; padding: 12px 20px; border-top: 1px solid var(--sc-line); align-items: baseline; }
.fin-dl > div:first-child { border-top: 0; }
.fin-dl dt { font-size: 13px; color: var(--sc-text-3); font-weight: 600; }
.fin-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; color: var(--sc-text); }

/* The payout account drawn as a card (View details) */
.afc-card { position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 210px; padding: 20px; border-radius: 16px; background: var(--sc-accent); color: var(--sc-on-accent); text-decoration: none; }
.afc-card--muted { background: var(--sc-surface-2); color: var(--sc-text-2); border: 1px solid var(--sc-border); }
.afc-top { display: flex; justify-content: space-between; gap: 10px; }
.afc-bank { font-size: 18px; font-weight: 700; }
.afc-rail { margin: 0; font-size: 12.5px; opacity: .85; }
.afc-star { height: max-content; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, currentColor 16%, transparent); font-size: 12px; font-weight: 700; }
/* The card's gold chip (mockup), from the warm warn tones so it reads in both modes; an outline alone looked like a missing image. */
.afc-chip { width: 40px; height: 30px; border-radius: 6px; background: var(--sc-warn-border); }
.dark .afc-chip { background: var(--sc-warn-text); }
.afc-number { font-size: 19px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.afc-meta { display: flex; justify-content: space-between; gap: 12px; }
.afc-meta-k { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.afc-meta-v { display: block; font-size: 14px; font-weight: 700; }
.afc-foot { display: flex; flex-wrap: wrap; gap: 8px; }
.afc-rows { display: flex; flex-direction: column; }
.afc-r { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 16px; padding: 12px 20px; border-top: 1px solid var(--sc-line); align-items: baseline; }
.afc-r:first-child { border-top: 0; }
.afc-r-k { font-size: 13px; line-height: 1.4; color: var(--sc-text-3); font-weight: 600; }
.afc-r-v { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; color: var(--sc-text); }

/* ═════════════════════════════ Payout verification ═════════════════════════════ */
.fin .afv .steps { gap: 6px; padding: 6px; border-radius: 14px; margin-bottom: 24px; }
.fin .afv .step { padding: 8px 10px; border-radius: 10px; gap: 10px; }
.fin .afv .step + .step { border-left: 0; }
.fin .afv .step-n { width: 26px; height: 26px; flex-basis: 26px; }
.fin .afv .step-t { font-size: 13px; color: var(--sc-text); }
.fin .afv .step-s { font-size: 11.5px; color: var(--sc-text-3); }
.fin .afv .step.is-on .step-t { color: var(--sc-accent-text); }
.fin .afv .btn { height: 38px; border-radius: 10px; font-size: 14px; padding: 0 14px; }
/* Steps not reachable yet: at opacity .45 their text fell to about 2:1. Keep them readable (the mockup
   does not dim them) and mark them with a dashed number ring and the not-allowed cursor instead. */
.fin .afv .step.is-locked { opacity: 1; }
.fin .afv .step.is-locked .step-t { color: var(--sc-text-2); }
.fin .afv .step.is-locked .step-n { border-style: dashed; color: var(--sc-text-3); }
/* Eight steps (seller-record switch on) do not fit one row at 1440: "Represen…", "Business d…".
   Two rows of four keep every title and subtitle whole; six steps stay on one row. */
@media (min-width: 1024px) {
    .fin .afv .steps:has(> .step:nth-child(7)) { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .fin .afv .steps:has(> .step:nth-child(7)) .step { min-width: 0; }
}

/* ═════════════════════════════ Withdrawals, Fees, Statements (Filament tables) ═════════════════════════════ */
.fin .fi-ta-header-toolbar { padding: 14px 20px; }
.fin .fi-ta-cell { font-variant-numeric: tabular-nums; }
/* Filament's empty-value text ("—", "Not yet processed") used gray-400, 2.7:1 on white. */
.fin .fi-ta-placeholder, .fin .fi-in-placeholder { color: var(--sc-text-3); }
/* The soft danger button (chrome.css) keeps Filament's white icon, invisible on its pale fill. */
.fin .fi-btn.fi-color-danger:not(.fi-outlined) .fi-icon { color: currentColor; }
.fin-head-pill { margin-left: 10px; vertical-align: middle; font-size: 12.5px; letter-spacing: 0; }
.fin-withdraw-create .fi-page-content, .fin-withdraw-create .fi-form-actions { max-width: 760px; }
.fin-wd-details .fi-in-entry-label, .fin-wd-details .fi-in-entry-wrp-label { color: var(--sc-text-3); font-weight: 600; font-size: 13px; }
/* Details: one ruled row per entry, label column 200px wide (mockup) */
.fin-wd-details .fi-section-content { gap: 0 !important; padding-top: 4px; padding-bottom: 4px; }
.fin-wd-details .fi-section-content > * { padding: 11px 0; }
.fin-wd-details .fi-section-content > * + * { border-top: 1px solid var(--sc-line); }
@media (min-width: 640px) {
    .fin-wd-details .fi-in-entry-has-inline-label { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); align-items: center; gap: 16px; }
    .fin-wd-details .fi-in-entry-has-inline-label > * { grid-column: auto !important; }
}

/* Table toolbar: search on the left, Filters / Columns as outlined buttons on the right */
.fin .fi-ta-header-toolbar > div:last-child { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.fin .fi-ta-search-field { margin-right: auto; width: 260px; max-width: 100%; }
.fin .fi-ta-header-toolbar .fi-dropdown-trigger > .fi-btn:not(.fi-color-primary) {
    min-height: 36px; height: 36px; padding: 0 12px; gap: 6px; border: 1px solid var(--sc-border-strong) !important; border-radius: 10px !important;
    background: var(--sc-surface) !important; color: var(--sc-text) !important; font-size: 13px; font-weight: 600;
}
.fin .fi-ta-header-toolbar .fi-dropdown-trigger > .fi-btn:not(.fi-color-primary):hover { background: var(--sc-hover) !important; }
.fin .fi-ta-header-toolbar .fi-btn .fi-btn-badge-ctn { position: static !important; transform: none !important; translate: none !important; inset: auto !important; margin: 0; }
.fin .fi-ta-header-toolbar .fi-btn .fi-badge { min-width: 18px; height: 18px; padding: 0 5px !important; border: 0; justify-content: center; font-size: 11px; background: var(--sc-accent) !important; color: var(--sc-on-accent) !important; }
.fin .fi-ta-header-toolbar .fi-btn .fi-badge::before { display: none; }

.fin .fi-ta-header-toolbar .fi-ta-actions:not(:has(*)) { display: none; }

/* Pages that draw their own head: the empty Filament header takes no room */
.fin-pa .fi-header:not(:has(.fi-header-heading, .fi-breadcrumbs, .fi-ac)) { display: none; }

/* Request a withdrawal: the form card and an action bar under it */
.fin-wd-form .fi-in-entry-content-ctn, .fin-wd-form .fi-in-entry-content-ctn * { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sc-text); }
.fin-withdraw-create .fi-sc-actions { max-width: 760px; padding: 12px 20px; border: 1px solid var(--sc-border); border-radius: var(--sc-radius-card); background: var(--sc-surface); }
.fin-withdraw-create .fi-sc-actions .fi-ac { flex-direction: row-reverse; justify-content: flex-start; flex-wrap: wrap; gap: 8px; }

/* ═════════════════════════════ Invoice ═════════════════════════════ */
.afi { display: flex; flex-direction: column; gap: 16px; max-width: 820px; width: 100%; margin: 0 auto; color: var(--sc-text); }
.afi p { margin: 0; }
.afi__bar { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.afi__card { overflow: hidden; }
.afi__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 24px; border-bottom: 1px solid var(--sc-line); flex-wrap: wrap; }
.afi__brand { display: flex; gap: 12px; align-items: center; }
.afi__brand .sc-chip svg { width: 20px; height: 20px; }
.afi__title { margin: 0; font-size: 18px; font-weight: 700; }
.afi__sub { font-size: 12.5px; color: var(--sc-text-3); }
.afi__big { font-size: 26px; font-weight: 800; letter-spacing: .02em; text-align: right; }
.afi__no { color: var(--sc-text-3); font-weight: 600; text-align: right; }
.afi__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 20px 24px; border-bottom: 1px solid var(--sc-line); font-size: 14px; color: var(--sc-text-2); }
.afi__k { margin-bottom: 6px !important; font-size: 11.5px; font-weight: 700; color: var(--sc-text-3); text-transform: uppercase; letter-spacing: .06em; }
.afi__strong { font-weight: 700; color: var(--sc-text); }
.afi .sc-dt th:first-child, .afi .sc-dt td:first-child { padding-left: 24px; }
.afi .sc-dt th:last-child, .afi .sc-dt td:last-child { padding-right: 24px; }
.afi__tot { display: flex; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--sc-line); }
.afi__tot > div { width: 260px; display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.afi__pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 20px 24px; background: var(--sc-surface-2); border-top: 1px solid var(--sc-line); font-size: 13.5px; color: var(--sc-text-2); }
.afi__foot { padding: 16px 24px; border-top: 1px solid var(--sc-line); font-size: 12.5px; color: var(--sc-text-3); }
@media print {
    .afi { width: 210mm; max-width: none; }
    .no-print { display: none !important; }
}

@media (max-width: 1100px) {
    .fin-plan__benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .pa-row { grid-template-columns: minmax(0, 1fr); }
    .pa-or { height: 20px; }
    .pa-where, .pa-grid { grid-template-columns: minmax(0, 1fr); }
    .pa-check { margin-top: 0; }
    .afw-grid { grid-template-columns: minmax(0, 1fr); }
    .pa-view { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .fin-h1 { font-size: 23px; }
    .fin-head__actions { width: 100%; }
    .fin-note { flex-wrap: wrap; }
    .fin-note__body { flex: 1 1 200px; }
    .afw-amt { max-width: 150px; }
    .afw-row .afw-amt p { font-size: 11.5px; }
    .fin-note .sc-link { margin-left: 42px; }
    .fin-plan__benefits { grid-template-columns: minmax(0, 1fr); }
    .fin-plan__hero { padding: 16px; }
    .fin-chg__list { grid-template-columns: minmax(0, 1fr); }
    .fin-cmp th, .fin-cmp td { padding: 10px 10px; font-size: 13px; }
    .fin-cmp tbody th { width: auto; min-width: 120px; }

    .afw-v { font-size: 28px; }
    .afw-count { min-width: 0; flex-basis: 100%; }
    .afw-toolbar { padding: 14px 16px; }
    .afw-row { grid-template-columns: 36px minmax(0, 1fr) auto; padding: 12px 16px; }
    .afw-row .afw-st { grid-column: 2 / -1; grid-row: 2; }
    .afw-row .afw-amt { grid-column: 3; grid-row: 1; }
    .afw-row .afw-go { display: none; }
    .afw-strip { grid-column: 1 / -1; }
    .afw-eg { min-width: 0; width: 100%; }

    .pa-secure { width: 100%; }
    .pa-acct { grid-template-columns: 44px minmax(0, 1fr); padding: 14px 16px; }
    .pa-acct-actions { grid-column: 1 / -1; }
    .pa-acct-actions > .sc-btn { flex: 1; }
    .pa-panel-head, .pa-panel-body { padding-left: 16px; padding-right: 16px; }
    .pa-panel-foot { padding: 12px 16px; }
    .pa-panel-foot .pa-actions, .pa-panel-foot .pa-actions .sc-btn { width: 100%; flex: 1; }
    .pa-result-row, .fin-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .pa-where { padding: 16px; }
    .pa-confirm { padding-top: 60px; }
    .afi__cols, .afi__pay { grid-template-columns: minmax(0, 1fr); }
    .afi__head, .afi__cols, .afi__pay, .afi__tot, .afi__foot { padding-left: 16px; padding-right: 16px; }
    .afi__tot > div { width: 100%; }
    .fin .fi-ta-search-field { width: 100%; }
    .fin .fi-header { align-items: stretch; text-align: left; }
    .fin .fi-header .fi-ac { justify-content: flex-start; }
}

/* ───────────── Audit fixes (26 Nov 2026) ───────────── */
/* Keyboard focus: these controls showed the browser's black default ring instead of the Seller Center one. */
.fin select:focus-visible, .fin .pa-more:focus-visible, .fin .afv .step:focus-visible, .fin .afv .btn:focus-visible { outline: 2px solid var(--sc-focus); outline-offset: 2px; }
/* An order row in the wallet opens nothing, so it should not show a "go" chevron. */
.afw-row .afw-go { visibility: hidden; }
