/* Pagos Israhi ? banking interface, local assets only. */
:root {
    --brand: #ec0000;
    --brand-dark: #c90000;
    --brand-soft: #fff0f0;
    --action: #ec0000;
    --action-hover: #c90000;
    --ink: #252d31;
    --muted: #627278;
    --paper: #f5f7f8;
    --surface: #fff;
    --field-surface: var(--surface);
    --line: #e3e8eb;
    --teal: #16767d;
    --radius: 12px;
    --swal2-background: var(--surface);
    --swal2-color: var(--ink);
    --swal2-border: 1px solid var(--line);
    --swal2-border-radius: var(--radius);
    --swal2-toast-border: 1px solid var(--line);
    --swal2-close-button-color: var(--muted);
    font-family: "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #596b76; outline-offset: 3px; }
svg { flex-shrink: 0; }
.icon { width: 22px; height: 22px; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 20px; top: -80px; z-index: 100; background: var(--surface); color: var(--brand); padding: 12px 20px; border: 2px solid var(--brand); border-radius: 6px; }
.skip-link:focus { top: 10px; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { width: 100%; max-width: 1280px; margin: auto; padding: 0 40px; display: flex; align-items: center; }
.header-inner { min-height: 86px; gap: 28px; }
.brand { color: var(--brand); display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: block; width: 43px; height: 43px; flex-shrink: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand .brand-mark { width: 24px; height: 24px; }
.visual-eyebrow { display: inline-flex; align-items: center; gap: 12px; }
.visual-eyebrow .brand-mark { width: 36px; height: 36px; }
.auth-lock.brand-badge { background: none; border-radius: 0; }
.brand-badge .brand-mark { width: 43px; height: 43px; }
.brand-word { font-size: 30px; font-weight: 600; letter-spacing: -1.5px; line-height: 1; }
.brand-suffix { font-size: 14px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 9px; }
.header-product { border-left: 1px solid var(--line); padding: 5px 0 5px 26px; color: var(--muted); font-size: 13px; }
.top-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.top-right form { margin: 0; }
.theme-toggle { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.theme-toggle:hover { background: var(--paper); }
.theme-toggle[hidden], .theme-toggle[aria-pressed="false"] .theme-sun, .theme-toggle[aria-pressed="true"] .theme-moon { display: none; }
.environment { display: inline-flex; align-items: center; padding: 5px 9px; color: #61717c; background: #f3f5f6; font-size: 11px; line-height: 1.5; border-radius: 4px; white-space: nowrap; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #53656c; }
.user-chip .icon { width: 19px; height: 19px; }
.logout-button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 0 8px 20px; border: 0; border-left: 1px solid var(--line); background: none; color: var(--brand-dark); font-size: 12px; }
.logout-button:hover { text-decoration: underline; }
.logout-button .icon { width: 19px; height: 19px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: #34454d; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.menu-toggle[hidden] { display: none; }
.menu-toggle:hover { border-color: #b8c3c9; background: var(--paper); }
.menu-toggle .icon { width: 20px; height: 20px; }
.navigation-open { overflow: hidden; }
.navigation-drawer { position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; width: 340px; max-width: calc(100vw - 28px); height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; border-right: 1px solid var(--line); color: var(--ink); background: var(--surface); box-shadow: 16px 0 60px #15222e26; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c6cdd2 transparent; }
.navigation-drawer::backdrop { background: #14212e80; backdrop-filter: blur(3px); }
.drawer-shell { display: flex; flex-direction: column; min-height: 100%; }
.drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 28px 24px 24px; border-bottom: 1px solid var(--line); }
.drawer-heading h2 { font-size: 20px; margin-top: 5px; }
.drawer-heading .section-kicker { color: var(--brand-dark); font-size: 10px; }
.drawer-heading form { margin: 0; }
.drawer-close { display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: var(--paper); color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }
.drawer-close:hover { color: var(--brand-dark); border-color: #e8b5b5; }
.drawer-navigation { flex: 1; padding: 20px 16px; }
.drawer-group + .drawer-group { margin-top: 24px; }
.drawer-group-title { padding: 0 14px; margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.3px; }
.drawer-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 14px; border-radius: 7px; font-size: 13px; color: #42545d; }
.drawer-link .icon { width: 20px; height: 20px; }
.drawer-link:hover { background: var(--paper); color: var(--ink); }
.drawer-link.active { background: #eef1f3; color: #263c49; font-weight: 600; }
.drawer-role-tag { font-size: 9px; font-weight: 500; border: 1px solid #dce2e7; color: #64747d; padding: 2px 6px; border-radius: 4px; margin-left: auto; }
.drawer-account { padding: 20px 24px max(24px, env(safe-area-inset-bottom)); background: #fafbfc; border-top: 1px solid var(--line); }
.drawer-user { display: flex; gap: 12px; align-items: center; }
.drawer-avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--brand-dark); font-weight: 600; flex-shrink: 0; }
.drawer-user > div { min-width: 0; }
.drawer-user strong { display: block; overflow-wrap: anywhere; font-size: 12px; font-weight: 600; }
.drawer-user div > span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.drawer-account form { margin: 18px 0 0; }
.drawer-signout { display: flex; align-items: center; gap: 10px; min-height: 44px; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 10px 14px; color: #9e2424; font-size: 12px; }
.drawer-signout:hover { background: var(--brand-soft); border-color: #edc7c7; }
.drawer-signout .icon { width: 18px; height: 18px; }
.navigation-fallback { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 12px; }
.container { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 36px 40px 56px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.eyebrow { margin-bottom: 8px; color: var(--muted); font-size: 10px; letter-spacing: 1.6px; font-weight: 600; }
h1 { font-size: 32px; font-weight: 400; line-height: 1.2; letter-spacing: -1px; margin: 0 0 10px; overflow-wrap: anywhere; }
h2 { font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -.45px; margin: 0; }
h3 { font-size: 17px; font-weight: 500; }
.subtitle { color: var(--muted); margin: 0; line-height: 1.6; font-size: 14px; }
.button { min-height: 45px; border: 1px solid var(--action); background: var(--action); color: white; padding: 11px 23px; border-radius: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; font-size: 13px; font-weight: 600; text-align: center; transition: background .15s, border-color .15s; }
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button .icon { width: 18px; height: 18px; }
.button.wide { width: 100%; justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 17px; }
.stats { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.sync-health { padding: 20px 24px; margin-bottom: 26px; }
.sync-health-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.sync-health-heading > div { flex: 1; min-width: 180px; }
.sync-health h2 { font-size: 16px; }
.sync-health p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.sync-health-details { display: flex; flex-wrap: wrap; gap: 7px 22px; margin-top: 14px; color: var(--muted); font-size: 11px; }
.sync-health-details strong { font-weight: 500; }
.payment-filters { padding: 24px; margin-bottom: 28px; }
.payment-filters h2 { margin-bottom: 20px; font-size: 18px; }
.payment-filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.payment-filter-fields input, .payment-filter-fields select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; margin: 0; border: 1px solid var(--field-line, #becbd1); border-radius: 5px; background: var(--field-surface); color: var(--ink); }
.payment-filter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.payment-filter-actions .button.secondary { margin-left: auto; }
.payment-filters.payments-search { margin-bottom: 16px; }
.payments-search .payment-filter-quick { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.payments-search .payment-filter-actions { margin-top: 8px; }
.payments-search .payment-filter-actions .row-link { min-height: 44px; }
.payment-advanced { margin-top: 12px; border-top: 1px solid var(--line); }
.payments-disclosure-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.payments-disclosure-toggle::-webkit-details-marker { display: none; }
.payments-disclosure-toggle .icon { width: 16px; height: 16px; color: var(--muted); }
.payments-disclosure[open] > .payments-disclosure-toggle .icon { transform: rotate(180deg); }
.payment-advanced .payment-filter-fields { padding: 8px 0; }
.payments-summary { margin-bottom: 16px; padding: 0 20px; }
.payments-summary .stats { margin: 8px 0 16px; }
.payments-panel .payment-results-heading { align-items: center; }
.payment-results-heading .row-link { min-height: 44px; }
.report-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; }
.payments-panel .money-currency { font-size: .9em; }
.stat { min-width: 0; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 15px; min-height: 173px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-label { color: var(--muted); font-size: 12px; }
.stat-icon { color: #617582; display: inline-flex; align-items: center; justify-content: center; }
.stat-icon .icon { width: 25px; height: 25px; }
.stat strong { font-size: 32px; line-height: 1.1; font-weight: 500; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.stat .balance-value { font-size: 34px; }
.total-line { display: block; overflow-wrap: anywhere; }
.total-line + .total-line { margin-top: 8px; }
.total-line small { font-size: 17px; letter-spacing: 0; font-weight: 400; }
.stat-foot { color: var(--muted); font-size: 10px; line-height: 1.6; }
.stat-link { width: fit-content; min-height: 44px; }
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.6; }
.notice { display: flex; align-items: flex-start; gap: 12px; padding: 19px 22px; color: #435762; background: #f5f7f8; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 24px; font-size: 13px; overflow-wrap: anywhere; }
.notice > div { min-width: 0; flex: 1; }
.notice p { margin: 6px 0 12px; font-size: 12px; }
.notice ul { margin: 0; padding-left: 18px; }
.notice.error { border-color: #f0cccc; color: #a32e2e; background: #fff4f3; }
#flash-message[hidden] { display: none; }
.swal2-actions { gap: 10px; }
.swal2-actions .button.secondary { color: var(--ink); border-color: var(--field-line, #becbd1); }
.swal2-popup.swal2-toast .swal2-close { min-width: 44px; min-height: 44px; }
body.swal2-toast-shown .swal2-container.swal2-top-end { top: 86px; }
.secret { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 14px; font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.payments-panel { overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px 20px; }
.section-kicker { display: block; color: var(--muted); font-size: 9px; letter-spacing: 1.3px; font-weight: 600; margin-bottom: 7px; }
.table-wrap { width: 100%; overflow-x: auto; }
.table-label { display: none; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { color: #64767d; font-weight: 500; font-size: 11px; background: #f7f9fa; }
th, td { padding: 17px 26px; border-bottom: 1px solid #edf0f2; }
td { font-size: 12px; }
td strong { font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fdfefe; }
.cell-note { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.environment-text { font-size: 11px; }
.row-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: 12px; font-weight: 600; }
.row-link .icon { width: 16px; height: 16px; }
.row-link:hover, .text-button:hover { text-decoration: underline; }
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 30px; padding: 4px 10px; color: #66737b; background: #f1f4f6; font-size: 10px; font-weight: 500; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.pending, .badge.creating { background: #fff8e7; color: #8b6c24; }
.badge.paid { background: #eaf6ef; color: #217454; }
.badge.failed, .badge.unknown { background: #fff0ef; color: #b53838; }
.empty { text-align: center; padding: 35px 20px 38px; white-space: normal; color: var(--muted); }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--brand); background: #fff2f2; width: 54px; height: 54px; border-radius: 50%; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { color: var(--ink); margin: 15px 0 8px; }
.empty p { margin: 0; font-size: 12px; line-height: 1.8; }
.empty .row-link { margin-top: 18px; }
.empty.compact { padding: 30px 20px; }
.pagination { padding: 0 25px; }
.pagination nav { padding: 18px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 12px; }
.pagination nav > div { display: flex; align-items: center; gap: 16px; }
.projects-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: start; gap: 28px; margin-top: 34px; }
.projects-grid > section { min-width: 0; }
.section-head { min-height: 27px; }
.section-head h2 { font-size: 19px; }
.project-list { overflow: hidden; }
.project { display: flex; align-items: center; gap: 13px; padding: 23px; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.project-avatar { flex: 0 0 43px; width: 43px; height: 43px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #ffe3e3; font-size: 18px; border-radius: 10px; }
.project-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.project-info > strong { font-weight: 600; font-size: 13px; }
.project-actions { display: flex; flex-direction: column; gap: 7px; align-items: flex-end; padding-left: 6px; }
.project-actions form { margin: 0; }
.text-button { border: 0; background: none; padding: 0; color: var(--brand-dark); font-size: 10px; white-space: nowrap; }
.text-button.muted { color: var(--muted); }
.connection-note { display: flex; align-items: flex-start; gap: 10px; margin: 15px 4px 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.connection-note .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--teal); }
.project-form { padding: 26px; }
.form-intro { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; }
.form-intro p { margin: 0; font-size: 13px; color: #52666e; line-height: 1.6; }
.form-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--brand); border-radius: 50%; background: var(--brand-soft); }
label { display: block; margin: 0 0 9px; color: #3c4c53; font-size: 12px; font-weight: 500; }
input { display: block; width: 100%; min-height: 47px; padding: 12px 15px; border: 1px solid var(--field-line, #becbd1); border-radius: 5px; color: var(--ink); background: var(--field-surface); margin-bottom: 20px; font-size: 14px; transition: border-color .15s; }
input:focus { outline: 2px solid #8798a3; outline-offset: 1px; border-color: #657d8c; }
input::placeholder { color: #8a979d; font-size: 12px; }
.field-help { color: var(--muted); font-size: 11px; line-height: 1.7; margin: -11px 0 22px; }
.project-form .button { margin-top: 3px; }
.back-link { margin-bottom: 21px; }
.detail-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: start; }
.detail { padding: 30px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.detail-top .badge { font-size: 12px; }
.detail h2 { font-size: 38px; font-weight: 400; margin-bottom: 20px; overflow-wrap: anywhere; }
.detail h2 .money-currency { color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.detail-grid .detail-qr-link { display: none; }
dl { margin: 0 0 28px; }
dl > div { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 12px; }
dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.detail .notice { margin: 24px 0 0; }
.qr-card { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 28px; gap: 23px; }
.qr-card h2 { font-size: 19px; }
.qr-image { width: 320px; max-width: 100%; height: auto; }
.qr-context { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.bank-profile-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 14px 0 24px; }
.bank-profile-in-use { border-color: #75b89a; background: #f0f9f3; }
.button.bank-profile-active-label { border-color: #217454; background: #217454; }
.bank-profile-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.bank-profile-heading h3 { margin: 0; }
.bank-profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.bank-profile .bank-profile-actions form { margin: 0; }
.bank-profile-action { margin-top: 10px; scroll-margin-top: 76px; }
.bank-profile-action summary { cursor: pointer; }
.bank-profile-action summary::-webkit-details-marker { display: none; }
.bank-profile-action[open] form { margin-top: 12px; }
.bank-profile-editor { max-width: 740px; scroll-margin-top: 76px; }
.bank-profile { min-width: 0; padding: 28px; }
.bank-profile h2 { margin: 10px 0 18px; font-size: 21px; }
.bank-profile form { margin-top: 22px; }
.bank-credential-fields { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.bank-credential-fields legend { font-weight: 600; margin-bottom: 14px; }
.credential-input { position: relative; margin-bottom: 20px; }
.credential-input input { margin: 0; padding-right: 50px; }
.credential-input input::-ms-reveal { display: none; }
.credential-eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 44px; height: 42px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; cursor: pointer; }
.credential-eye:hover, .credential-eye[aria-pressed="true"] { color: var(--ink); }
.credential-eye[aria-pressed="false"] .eye-slash { display: none; }
.bank-profile select { display: block; width: 100%; min-height: 47px; padding: 12px 15px; margin-bottom: 20px; background: var(--field-surface); border: 1px solid var(--field-line, #becbd1); border-radius: 5px; }
.credential-state { float: right; font-size: 10px; color: var(--muted); font-weight: 400; }
.bank-check-state { font-size: 12px; color: #405b6d; }
.bank-requirement { font-size: 12px; color: #526872; line-height: 1.8; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #f8f9fa; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.bank-history { margin-top: 28px; }
@media (max-width: 800px) { .bank-profile-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .bank-profile { padding: 22px; } }
.certification-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: start; }
.certification-card { padding: 28px; min-width: 0; }
.certification-card > p { line-height: 1.7; }
.certification-form { margin-top: 24px; }
.certification-form select { display: block; width: 100%; min-height: 47px; padding: 12px 15px; border: 1px solid var(--field-line, #becbd1); border-radius: 5px; color: var(--ink); background: var(--field-surface); margin-bottom: 20px; }
.certification-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.certification-fields > div { min-width: 0; }
.certification-next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.certification-next p { line-height: 1.7; }
.connection-result { display: flex; gap: 8px; align-items: center; color: var(--teal); font-size: 12px; }
.button.secondary { color: var(--brand-dark); background: var(--surface); }
.button.secondary:hover { background: var(--brand-soft); }
.webhook-settings-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 26px; margin-bottom: 30px; align-items: start; }
.api-key-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.api-permissions { min-width: 0; padding: 0; margin: 0 0 16px; border: 0; }
.api-permissions legend { margin-bottom: 4px; font-size: 13px; font-weight: 600; }
.api-permissions .checkbox-field { min-height: 44px; margin: 0; }
.api-permissions input { flex-shrink: 0; }
.api-key { padding-block: 14px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.api-key-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.api-key-heading h3 { margin: 0; }
.api-key > p, .api-key-permission-list { margin: 6px 0; }
.api-key-permission-list { padding-inline-start: 18px; color: var(--muted); font-size: 12px; }
.api-key-edit summary { min-height: 44px; padding-block: 11px; cursor: pointer; color: var(--brand-dark); font-weight: 600; font-size: 12px; }
.api-key-edit[open] form { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }
.api-key-actions { display: flex; flex-wrap: wrap; gap: 0 14px; }
.api-key-actions form { margin: 0; }
.api-key-actions .text-button { min-height: 44px; font-size: 12px; }
.api-key-list .pagination { padding-inline: 0; }
.api-key-list .pagination nav { gap: 8px; border-top: 0; }
.checkbox-field { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.checkbox-field input { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--brand); }
.webhook-delivery-note { margin-top: 24px; line-height: 1.7; }
.webhook-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.webhook-actions form { margin: 0; }
.webhook-attempts { margin-top: 26px; }
.footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 11px; }
.footer-inner { min-height: 73px; justify-content: space-between; gap: 20px; }
.footer strong { font-weight: 500; color: #42545c; }
.footer-credit { text-align: center; }
.footer-credit a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.footer-security { display: flex; align-items: center; gap: 8px; }
.footer-security .icon { width: 15px; height: 15px; }
/* Private access */
.auth-page { background: #f7f9fa; }
.auth-page .header-product { display: none; }
.auth-page .container { padding-top: 42px; padding-bottom: 42px; display: flex; flex-direction: column; justify-content: center; }
.auth-shell { width: 100%; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; min-height: 620px; box-shadow: 0 12px 40px #2c434808; }
.auth-visual { position: relative; overflow: hidden; isolation: isolate; background: var(--auth-visual, var(--action)); color: white; padding: 46px 46px 34px; display: flex; align-items: flex-start; flex-direction: column; }
.auth-visual::before, .auth-visual::after { content: ""; position: absolute; z-index: -1; border: 1px solid #ffffff25; border-radius: 50%; pointer-events: none; }
.auth-visual::before { width: 630px; height: 630px; left: 72px; top: 230px; box-shadow: 0 0 0 50px #ffffff08, 0 0 0 100px #ffffff05; }
.auth-visual::after { width: 360px; height: 360px; right: -220px; top: -195px; border-width: 45px; border-color: #ffffff09; }
.visual-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; opacity: .9; }
.auth-visual h2 { font-size: clamp(38px, 3.5vw, 48px); font-weight: 400; letter-spacing: -1.6px; line-height: 1.14; margin: 29px 0 19px; }
.auth-visual > p { margin: 0; font-size: 15px; line-height: 1.7; color: #fff3f3; }
.visual-flow { margin: 30px 0; width: 100%; max-width: 370px; position: relative; }
.flow-apps { display: flex; justify-content: center; gap: 29px; }
.flow-apps > span { width: 45px; height: 45px; border: 1px solid #ffffff6b; border-radius: 10px; background: #f51c1c; display: flex; align-items: center; justify-content: center; }
.flow-apps .icon { width: 24px; height: 24px; }
.flow-line { width: 1px; height: 23px; background: #ffffff70; margin: 0 auto; }
.flow-card { display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid #fff; border-radius: 10px; color: var(--ink); padding: 17px; box-shadow: 0 10px 25px #7c00001a; }
.flow-card-icon { color: var(--brand); }
.flow-card-icon .icon { width: 29px; height: 29px; }
.flow-card strong { display: block; font-size: 13px; font-weight: 600; }
.flow-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.flow-check { margin-left: auto; color: var(--teal); }
.flow-check .icon { width: 20px; height: 20px; }
.visual-bottom { font-size: 11px; color: #ffe3e3; margin-top: auto; padding-top: 10px; }
.login-wrap { min-width: 0; padding: 42px 62px; display: flex; flex-direction: column; justify-content: center; }
.auth-lock { width: 43px; height: 43px; display: flex; align-items: center; justify-content: center; background: #fff0f0; border-radius: 50%; color: var(--brand); margin-bottom: 20px; }
.auth-lock .icon { width: 22px; height: 22px; }
.login-wrap .eyebrow { font-size: 9px; }
.login-wrap h1 { font-size: 35px; margin-bottom: 13px; letter-spacing: -1.2px; }
.login-wrap .subtitle { font-size: 13px; margin-bottom: 25px; }
.login-form { margin: 0; }
.login-form .button { margin-top: 6px; }
.login-footnote { display: flex; align-items: flex-start; gap: 9px; margin-top: 25px; color: var(--muted); }
.login-footnote .icon { width: 17px; height: 17px; margin-top: 2px; color: #68818a; }
.login-footnote p { font-size: 10px; line-height: 1.7; margin: 0; }
.setup-wrap { padding-top: 32px; padding-bottom: 32px; }
.setup-wrap .auth-lock { margin-bottom: 16px; }
.setup-wrap h1 { font-size: 31px; }
.setup-wrap input { margin-bottom: 16px; min-height: 43px; }
.setup-wrap .field-help { margin-top: -5px; margin-bottom: 15px; }
@media (min-width: 1450px) { .auth-shell { min-height: 655px; } .auth-visual { padding: 52px; } .visual-flow { margin-top: 40px; } }
@media (max-width: 1100px) {
    .header-inner, .footer-inner { padding-left: 28px; padding-right: 28px; }
    .container { padding-left: 28px; padding-right: 28px; }
    .header-product, .user-chip { display: none; }
    .stats { gap: 13px; }
    .stat { padding: 19px; }
    .stat.balance-stat { padding-top: 17px; }
    .stat-label { font-size: 11px; }
    .stat strong, .stat .balance-value { font-size: 29px; }
    .stat-icon .icon { width: 22px; height: 22px; }
    .projects-grid { grid-template-columns: 1.15fr 1fr; gap: 22px; }
    .project { padding: 20px 17px; gap: 10px; flex-wrap: wrap; }
    .project-actions { flex-basis: 100%; flex-direction: row; justify-content: flex-end; gap: 16px; }
    .login-wrap { padding: 38px; }
    .auth-visual { padding: 42px 35px 30px; }
}
@media (max-width: 800px) {
    .header-inner { min-height: 76px; }
    body.swal2-toast-shown .swal2-container.swal2-top-end { top: 76px; }
    .container { padding-top: 28px; }
    .stats { grid-template-columns: 1fr 1fr; }
    .stat { min-height: 155px; padding: 22px; }
    .stat.balance-stat { padding-top: 20px; }
    .stat strong, .stat .balance-value { font-size: 32px; }
    .projects-grid { grid-template-columns: 1fr; gap: 29px; }
    .project-actions { flex-basis: auto; flex-direction: column; gap: 6px; }
    .project { flex-wrap: nowrap; padding: 22px; gap: 14px; }
    .auth-shell { grid-template-columns: .9fr 1fr; min-height: 590px; }
    .auth-visual { padding: 35px 28px; }
    .auth-visual h2 { font-size: 35px; }
    .auth-visual > p { font-size: 12px; }
    .login-wrap { padding: 30px; }
    .login-wrap h1 { font-size: 29px; }
    .flow-card { padding: 13px; gap: 9px; }
    .flow-card strong { font-size: 11px; }
    .flow-card small { font-size: 9px; }
    .flow-check { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-grid .detail-qr-link { display: inline-flex; }
    .certification-grid { grid-template-columns: 1fr; }
    .webhook-settings-grid { grid-template-columns: 1fr; }
    .payment-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    html { scroll-padding-top: 96px; }
    .header-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
    .header-inner { min-height: 72px; gap: 8px; }
    .brand-mark { width: 34px; height: 34px; }
    .brand-word { font-size: 25px; }
    .brand-suffix { display: none; }
    .top-right { gap: 8px; min-width: 0; }
    body.swal2-toast-shown .swal2-container.swal2-top-end { top: 72px; }
    .environment { font-size: 9px; padding: 5px 8px; gap: 5px; }
    .logout-button { border-left: 0; padding-left: 0; }
    .logout-button > span { display: none; }
    .logout-button .icon { width: 20px; height: 20px; }
    .menu-toggle { width: 44px; padding: 9px; }
    .menu-toggle > span { display: none; }
    .dashboard-page .header-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
    .dashboard-page .top-right { flex: 1; justify-content: flex-end; }
    .dashboard-page .environment { white-space: normal; text-align: right; }
    .container { padding: 26px 20px 38px; }
    .page-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 23px; }
    h1 { font-size: 28px; }
    h2 { font-size: 19px; }
    .subtitle { font-size: 12px; max-width: 340px; }
    .page-head .button { min-height: 40px; padding: 9px 18px; font-size: 12px; }
    .stats { gap: 12px; margin-bottom: 25px; }
    .stat { min-height: 155px; padding: 17px 15px; gap: 15px; }
    .stat-top { align-items: flex-start; gap: 8px; }
    .stat-label { line-height: 1.5; font-size: 10px; }
    .stat-icon .icon { width: 20px; height: 20px; }
    .stat strong, .stat .balance-value { font-size: 28px; }
    .total-line small { font-size: 13px; }
    .stat-foot { font-size: 9px; }
    .panel-heading { padding: 21px 19px 18px; align-items: flex-start; gap: 10px; }
    .panel-heading h2 { font-size: 18px; }
    .panel-heading > .small { font-size: 10px; padding-top: 4px; }
    th, td { padding: 15px 20px; }
    th:nth-child(1) { min-width: 175px; }
    .empty { padding: 30px 14px; }
    .empty h3 { font-size: 15px; }
    .empty p { font-size: 11px; }
    .empty br { display: none; }
    .section-head h2 { font-size: 18px; }
    .section-head .small { font-size: 10px; }
    .projects-grid { margin-top: 28px; }
    .project { padding: 18px 16px; gap: 11px; flex-wrap: wrap; }
    .project-info { min-width: 125px; }
    .project-avatar { flex-basis: 37px; width: 37px; height: 37px; font-size: 16px; }
    .project-actions { flex-basis: 100%; flex-direction: row; justify-content: flex-end; gap: 19px; padding-top: 3px; }
    .project-actions .text-button { display: inline-flex; align-items: center; min-height: 44px; }
    .project-form { padding: 22px; }
    .footer-inner { min-height: 88px; justify-content: center; flex-direction: column; gap: 9px; padding-top: 20px; padding-bottom: 20px; font-size: 10px; }
    .footer-security .icon { width: 14px; height: 14px; }
    .auth-page .container { padding: 25px 20px; }
    .auth-shell { display: block; min-height: auto; border-radius: 12px; }
    .auth-visual { display: none; }
    .login-wrap { padding: 31px 26px; }
    .login-wrap h1 { font-size: 33px; }
    .login-wrap .subtitle { margin-bottom: 28px; }
    .login-wrap .eyebrow { margin-bottom: 8px; }
    .auth-lock { margin-bottom: 20px; }
    .login-form input { min-height: 49px; }
    .login-form .button { min-height: 47px; }
    .login-footnote { margin-top: 26px; }
    .detail { padding: 24px; }
    .detail-actions .button { padding-inline: 16px; }
    .certification-card { padding: 22px; }
    .payment-filters { padding: 20px; }
    .payment-filter-actions .button.secondary { margin-left: 0; }
    .certification-fields { grid-template-columns: 1fr; gap: 0; }
    .detail h2 { font-size: 34px; }
    dl > div { grid-template-columns: 1fr; gap: 5px; }
    .qr-card { padding: 25px; }
}
.login-page { min-height: 100vh; min-height: 100dvh; }
.login-page .topbar, .login-page .footer { flex-shrink: 0; }
.login-page .header-inner { min-height: clamp(56px, 9dvh, 86px); }
.login-page .footer-inner { min-height: clamp(44px, 7dvh, 73px); padding-top: 8px; padding-bottom: 8px; }
.login-page .container { padding-top: clamp(12px, 2.5dvh, 28px); padding-bottom: clamp(12px, 2.5dvh, 28px); }
.login-page .auth-shell { min-height: min(620px, calc(100dvh - 190px)); }
.login-page .login-wrap { padding: clamp(20px, 3dvh, 38px) clamp(24px, 4vw, 62px); }
.login-page .auth-lock { width: 36px; height: 36px; margin-bottom: 12px; flex-shrink: 0; }
.login-page .brand-badge .brand-mark { width: 36px; height: 36px; }
.login-page .login-wrap .eyebrow { margin-bottom: 6px; }
.login-page .login-wrap h1 { font-size: clamp(26px, 4.4dvh, 35px); margin-bottom: 10px; }
.login-page .login-wrap .subtitle { margin-bottom: 18px; }
.login-page .login-form label { margin-bottom: 6px; }
.login-page .login-form input { min-height: 44px; padding: 10px 15px; margin-bottom: 14px; }
.login-page .login-footnote { margin-top: 16px; }
.login-page .auth-visual { padding: clamp(20px, 3.5dvh, 46px) clamp(24px, 3.5vw, 46px); }
.login-page .auth-visual h2 { font-size: clamp(30px, 5dvh, 48px); margin: clamp(14px, 2.5dvh, 29px) 0 14px; }
.login-page .auth-visual > p { font-size: clamp(12px, 1.6dvh, 15px); }
.login-page .visual-flow { margin: clamp(12px, 2.5dvh, 30px) 0; }
@media (max-height: 760px) {
    .login-page .login-wrap { padding-top: 20px; padding-bottom: 20px; }
    .login-page .auth-lock { width: 32px; height: 32px; margin-bottom: 8px; }
    .login-page .brand-badge .brand-mark { width: 32px; height: 32px; }
    .login-page .login-wrap h1 { font-size: 28px; margin-bottom: 8px; }
    .login-page .login-wrap .subtitle { margin-bottom: 14px; }
    .login-page .login-form input { margin-bottom: 12px; }
    .login-page .login-footnote { margin-top: 12px; }
    .login-page .visual-flow { display: none; }
}
@media (max-width: 600px) {
    .login-page .auth-shell { min-height: 0; }
    .login-page .footer-inner { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 400px) {
    .payment-filter-fields { grid-template-columns: 1fr; }
    .payments-search .payment-filter-quick { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
    .swal2-container * { animation-duration: .01ms !important; }
}
.payment-cleanup { width: 100%; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.payment-cleanup h3 { margin: 0 0 10px; font-size: 15px; }
.payment-cleanup .button { width: 100%; }
.payment-cleanup p { max-width: 70ch; line-height: 1.6; }
.cleanup-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 14px; }
.cleanup-confirm input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; }
.trash-actions { display: grid; gap: 12px; min-width: 190px; }
.trash-actions form { margin: 0; }
.trash-purge summary { cursor: pointer; color: #b42323; font-size: 12px; }
.trash-purge[open] { max-width: 280px; min-width: 240px; }
.trash-purge p { white-space: normal; margin: 14px 0; color: #8e2c2c; }
.trash-purge label { display: block; white-space: normal; font-size: 11px; margin-bottom: 8px; }
.trash-purge input { display: block; width: 100%; min-height: 44px; border: 1px solid var(--field-line, #bdc9cf); border-radius: 5px; padding: 10px; margin-bottom: 12px; }
.trash-purge .button.danger { font-size: 11px; border-radius: 6px; padding: 10px 12px; background: #b42323; border-color: #b42323; }
.trash-purge .button.danger:hover { background: #931c1c; border-color: #931c1c; }
.drawer-link.drawer-child { padding-left: 36px; font-size: 12px; }
.drawer-child .icon { width: 17px; height: 17px; }
.dashboard-charts { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-bottom: 30px; }
.dashboard-chart {
    min-width: 0;
    margin: 0;
    padding: 22px 24px;
    --chart-height: 144px;
    --chart-column-width: clamp(8px, 2.5vw, 16px);
    --chart-created: #496d94;
    --chart-paid: #25816a;
    --chart-pending: #a76a1d;
    --chart-review: #ae3b45;
    --chart-neutral: #718491;
    --chart-track: #edf1f3;
}
.dashboard-chart-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.dashboard-chart-heading h2 { font-size: 18px; }
.dashboard-chart-legend, .dashboard-chart-days, .dashboard-chart-statuses { list-style: none; margin: 0; padding: 0; }
.dashboard-chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; color: var(--muted); font-size: 12px; }
.dashboard-chart-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dashboard-chart-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--chart-bar); }
.dashboard-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.dashboard-chart-scale { display: flex; flex-direction: column; justify-content: space-between; align-items: end; height: var(--chart-height); color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dashboard-chart-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; text-align: center; }
.dashboard-chart-days::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--chart-height);
    border-block: 1px solid var(--line);
    background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
    pointer-events: none;
}
.dashboard-chart-days time { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.dashboard-chart-columns { display: flex; justify-content: center; gap: 3px; height: var(--chart-height); }
.dashboard-chart-columns > span { position: relative; width: var(--chart-column-width); }
.dashboard-chart-columns .dashboard-meter {
    position: absolute;
    inset: 50% auto auto 50%;
    width: var(--chart-height);
    height: var(--chart-column-width);
    transform: translate(-50%, -50%) rotate(-90deg);
}
.dashboard-meter { display: block; appearance: none; width: 100%; height: 8px; border: 0; background: transparent; }
.dashboard-meter::-webkit-meter-bar { height: 100%; border: 0; border-radius: 4px; box-shadow: none; background: transparent; }
.dashboard-meter::-webkit-meter-optimum-value { border-radius: 4px; background: var(--chart-bar, var(--chart-neutral)); }
.dashboard-meter::-moz-meter-bar { border-radius: 4px; background: var(--chart-bar, var(--chart-neutral)); }
.dashboard-chart .chart-created { --chart-bar: var(--chart-created); }
.dashboard-chart .chart-paid { --chart-bar: var(--chart-paid); }
.dashboard-chart .chart-pending { --chart-bar: var(--chart-pending); }
.dashboard-chart :is(.chart-review, .chart-failed) { --chart-bar: var(--chart-review); }
.dashboard-chart-statuses { display: grid; gap: 12px; }
.dashboard-chart-statuses li > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.dashboard-chart-statuses strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.dashboard-status-meter { background: var(--chart-track); border-radius: 4px; }
.dashboard-chart-empty { margin: 0; font-size: 13px; }
.dashboard-chart-details { margin-top: 8px; }
.dashboard-chart-details summary { width: fit-content; min-height: 44px; padding-block: 12px; cursor: pointer; color: var(--brand-dark); font-size: 12px; font-weight: 600; }
.dashboard-chart-details :is(th, td) { min-width: 0; padding: 6px 8px; text-align: right; font-size: 12px; }
.dashboard-chart-details :is(th, td):first-child { text-align: left; }
.dashboard-chart-details tbody th { background: transparent; color: var(--ink); }
.overview-pages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.overview-page { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; padding: 25px; transition: border-color .15s; }
.overview-page:hover { border-color: #c5cfd5; }
.overview-page-icon { display: inline-flex; color: #617582; margin-bottom: 20px; }
.overview-page h2 { font-size: 18px; }
.overview-page p { flex: 1; margin: 12px 0 22px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.project-create-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.project-create-guide { padding: 30px; margin-top: 42px; }
.project-create-guide h2 { margin: 10px 0 22px; }
.project-create-guide ol { padding-left: 20px; }
.project-create-guide li, .project-create-guide p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.project-create-guide li + li { margin-top: 12px; }
.verification-grid, .notification-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.verification-guide { margin-top: 24px; }
.notification-project { padding: 26px; min-width: 0; }
.notification-project h2 { margin-top: 6px; overflow-wrap: anywhere; }
.notification-counts { display: flex; flex-wrap: wrap; gap: 15px 24px; padding: 18px 0; margin-bottom: 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notification-counts span { font-size: 11px; color: var(--muted); }
.notification-counts strong { display: block; color: var(--ink); font-size: 23px; font-weight: 500; }
.sales-period-note { margin: 18px 0 0; }
.money-value { font-variant-numeric: tabular-nums; }
.money-currency { font-size: .56em; font-weight: 400; }
.sales-stats .stat > strong { font-size: 29px; overflow-wrap: anywhere; }
.sales-stats .sales-leader > strong { font-size: 21px; line-height: 1.35; letter-spacing: -.3px; }
.stat-denominator { font-size: 16px; font-weight: 400; color: var(--muted); }
.sales-chart { margin: 0 0 28px; overflow: hidden; }
.sales-chart-body { padding: 8px 28px 24px; }
.sales-chart-body > p { padding-top: 18px; margin-bottom: 0; }
.sales-chart-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(80px, 2.5fr) minmax(80px, auto); align-items: center; gap: 16px; padding: 15px 0; }
.sales-chart-label { font-size: 13px; color: #475b66; overflow-wrap: anywhere; }
.sales-chart-amount { text-align: right; color: #344955; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sales-meter { display: block; width: 100%; height: 25px; border: 0; border-radius: 5px; background: #edf1f3; }
.sales-meter::-webkit-meter-bar { height: 15px; border: 0; border-radius: 5px; background: #edf1f3; box-shadow: none; }
.sales-meter::-webkit-meter-optimum-value { background: #8497a3; border-radius: 5px; }
.sales-meter.leader::-webkit-meter-optimum-value { background: #405b6d; }
.sales-meter::-moz-meter-bar { background: #8497a3; border-radius: 5px; }
.sales-meter.leader::-moz-meter-bar { background: #405b6d; }
.sales-table th:first-child { min-width: 35px; width: 45px; }
.sales-table th:nth-child(2) { min-width: 175px; }
.sales-table .money { white-space: nowrap; }
@media (max-width: 1000px) {
    .overview-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .dashboard-charts { grid-template-columns: 1fr; }
    .project-create-layout, .verification-grid, .notification-projects { grid-template-columns: 1fr; }
    .project-create-guide { margin-top: 0; }
}
@media (max-width: 600px) {
    .dashboard-chart { padding: 18px 16px; }
    .dashboard-chart-days time { font-size: 10px; }
    .overview-pages { grid-template-columns: 1fr; gap: 14px; }
    .overview-page, .notification-project, .project-create-guide { padding: 22px; }
    .overview-page-icon { margin-bottom: 14px; }
    .sales-chart-body { padding: 0 20px 22px; }
    .sales-chart-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
    .sales-meter { grid-column: 1 / -1; grid-row: 2; }
    .sales-chart-amount, .sales-chart-label { font-size: 12px; }
    .sales-stats .stat > strong { font-size: 25px; }
    .sales-stats .sales-leader > strong { font-size: 17px; }
}
.docs-version { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; border: 1px solid var(--line); padding: 8px 13px; border-radius: 6px; background: var(--surface); }
.docs-version .icon { width: 18px; height: 18px; }
.documentation-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 28px; align-items: start; }
.documentation-index { position: sticky; top: 110px; padding: 22px 16px; }
.documentation-index h2 { font-size: 13px; margin: 0 10px 18px; letter-spacing: 0; }
.documentation-index a { display: flex; align-items: baseline; gap: 12px; padding: 10px; border-radius: 5px; font-size: 10px; color: #89949b; font-variant-numeric: tabular-nums; }
.documentation-index a span { font-size: 12px; color: #475a65; }
.documentation-index a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.documentation-content { display: grid; gap: 24px; min-width: 0; }
.documentation-section { padding: 30px; min-width: 0; scroll-margin-top: 12px; }
.documentation-section > h2 { font-size: 23px; margin: 10px 0 18px; }
.documentation-section p, .documentation-section li { font-size: 13px; color: #52656f; line-height: 1.9; }
.documentation-section p:last-child { margin-bottom: 0; }
.documentation-section ol { padding-left: 22px; }
.documentation-section li + li { margin-top: 10px; }
.documentation-section p a, .documentation-section li a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.documentation-section code { font-size: 12px; background: #f1f4f6; color: #304857; border: 1px solid #e7ecef; padding: 2px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.docs-note { border: 1px solid var(--line); background: #f8f9fa; color: #4b616e; padding: 15px 18px; margin: 20px 0; border-radius: 6px; font-size: 12px; line-height: 1.8; }
.docs-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.docs-status-grid > div { border: 1px solid var(--line); border-radius: 7px; padding: 16px; }
.docs-status-grid p { font-size: 12px; line-height: 1.7; margin: 12px 0 0; }
.docs-endpoints { margin: 22px 0; border: 1px solid var(--line); border-radius: 7px; padding: 0 16px; }
.docs-endpoints p { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 0; margin: 0; }
.docs-endpoints p + p { border-top: 1px solid var(--line); }
.docs-endpoints p > span:last-child { font-size: 11px; flex-basis: 100%; padding-left: 58px; }
.http-method { min-width: 46px; font: 600 10px Consolas, monospace; color: #9e3b2a; }
.http-method.get { color: #28715b; }
.docs-endpoints code { background: none; border: 0; padding: 0; }
.api-reference { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.api-reference > summary { cursor: pointer; color: #344d5e; font-size: 13px; font-weight: 600; padding: 6px 0; }
.api-reference[open] > summary { margin-bottom: 22px; }
.documentation-prose { min-width: 0; overflow-wrap: anywhere; }
.documentation-prose h1 { font-size: 25px; margin: 24px 0 16px; }
.documentation-prose h2 { font-size: 19px; border-top: 1px solid var(--line); padding-top: 26px; margin: 28px 0 16px; }
.documentation-prose h3 { font-size: 16px; margin-top: 25px; }
.documentation-prose a { color: var(--brand-dark); text-decoration: underline; }
.documentation-prose pre { max-width: 100%; overflow-x: auto; background: #172b3a; border-radius: 7px; padding: 20px; line-height: 1.8; }
.documentation-prose pre code { border: 0; padding: 0; background: none; color: #e1edf3; white-space: pre; overflow-wrap: normal; font: 12px/1.8 Consolas, monospace; }
.documentation-prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.documentation-prose th, .documentation-prose td { padding: 12px 14px; font-size: 12px; white-space: normal; }
.documentation-prose th:first-child { min-width: 140px; }
@media (max-width: 900px) { .docs-status-grid { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
    .documentation-layout { grid-template-columns: 1fr; gap: 20px; }
    .documentation-index { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px 12px; }
    .documentation-index h2 { grid-column: 1 / -1; margin-bottom: 12px; }
}
@media (max-width: 600px) {
    .documentation-section { padding: 22px 20px; }
    .documentation-section > h2 { font-size: 21px; }
    .documentation-index a { gap: 8px; padding: 9px 7px; }
    .documentation-index a span { font-size: 11px; }
    .docs-endpoints { padding: 0 12px; }
    .docs-endpoints p { gap: 6px; }
    .docs-endpoints code { font-size: 11px; min-width: 0; flex: 1; }
    .documentation-prose pre { padding: 16px; }
}

.mfa-enrollment { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.mfa-qr { max-width: 100%; height: auto; background: #fff; }
.mfa-secret { overflow-wrap: anywhere; user-select: all; }
.mfa-recovery-codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 28px 0; }
.mfa-recovery-codes li { padding: 14px; border: 1px solid var(--line); border-radius: 8px; user-select: all; }
@media (max-width: 700px) { .mfa-enrollment { grid-template-columns: 1fr; } }

@media (max-width: 800px) {
    .page-head > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
    .table-wrap { position: relative; padding: 0 16px 16px; }
    .responsive-table { display: block; white-space: normal; }
    .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .responsive-table tbody { display: grid; gap: 12px; }
    .responsive-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
        gap: 12px 16px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 9px;
    }
    .responsive-table td { display: block; min-width: 0; padding: 0; border: 0; font-size: 13px; overflow-wrap: anywhere; }
    .responsive-table .table-primary, .responsive-table .table-action, .responsive-table td[colspan] { grid-column: 1 / -1; }
    .responsive-table .table-primary { font-size: 15px; font-weight: 600; }
    .responsive-table .cell-note { margin-top: 2px; font-weight: 400; }
    .responsive-table .table-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 500; }
    .responsive-table :is(.money, .badge) { white-space: normal; }
    .responsive-table .badge::before { flex-shrink: 0; }
    .responsive-table .table-action { padding-top: 8px; border-top: 1px solid var(--line); }
    .responsive-table .table-action > .row-link {
        display: flex;
        justify-content: space-between;
        min-height: 44px;
        padding: 8px 12px;
        border: 1px solid var(--line);
        border-radius: 6px;
    }
    .responsive-table .table-empty { padding: 0; border: 0; }
    .responsive-table .empty .row-link { min-height: 44px; margin-top: 8px; }
    .sales-table .table-rank { grid-column: 1; }
    .sales-table .table-primary { grid-column: 2 / -1; }
    .sales-table tbody tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sales-table .table-metric { grid-column: span 2; }
    .responsive-table .trash-actions { gap: 2px; min-width: 0; }
    .responsive-table .trash-purge[open] { min-width: 0; max-width: none; }
    .responsive-table .trash-actions .text-button, .responsive-table .trash-purge summary { min-height: 44px; font-size: 13px; }
    .responsive-table .trash-purge summary { padding-block: 12px; }
    .responsive-table .trash-purge .button { max-width: 100%; min-height: 44px; }
    .payments-panel .pagination { padding: 0 16px; }
    .payments-panel .pagination nav { flex-wrap: wrap; gap: 0 12px; padding: 4px 0; }
    .payments-panel .pagination .row-link { min-height: 44px; }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --brand: #ff7c85;
    --brand-dark: #ff9ca3;
    --brand-soft: #332128;
    --action: #b42332;
    --action-hover: #9a1d2a;
    --auth-visual: #862234;
    --ink: #edf1f6;
    --muted: #a8b5c4;
    --paper: #0f141b;
    --surface: #161c25;
    --field-surface: #111720;
    --surface-raised: #212b38;
    --line: #303c4b;
    --field-line: #566578;
    --teal: #6dd3cc;
    --swal2-backdrop: #000a;
}

[data-theme="dark"] :focus-visible { outline-color: #a3cafa; }
[data-theme="dark"] input:focus { border-color: #a3cafa; }
[data-theme="dark"] input::placeholder { color: var(--muted); }
[data-theme="dark"] .auth-page { background: var(--paper); }
[data-theme="dark"] .navigation-drawer { scrollbar-color: var(--field-line) transparent; }
[data-theme="dark"] .navigation-drawer::backdrop { background: #090d14b3; }
[data-theme="dark"] :is(.drawer-account, .notice, .bank-requirement, .docs-note, th) { background: var(--paper); color: var(--muted); }
[data-theme="dark"] :is(.environment, .drawer-link.active, .badge) { background: var(--surface-raised); color: var(--muted); }
[data-theme="dark"] :is(.menu-toggle, .drawer-link, label, .footer strong, .sales-chart-amount, .api-reference > summary) { color: var(--ink); }
[data-theme="dark"] :is(.user-chip, .drawer-role-tag, .stat-icon, .form-intro p, .bank-check-state, .login-footnote .icon, .overview-page-icon, .sales-chart-label, .documentation-index a, .documentation-index a span, .documentation-section p, .documentation-section li) { color: var(--muted); }
[data-theme="dark"] :is(.drawer-signout, .trash-purge summary, .trash-purge p, .http-method) { color: var(--brand-dark); }
[data-theme="dark"] :is(.drawer-role-tag, .flow-card, th, td) { border-color: var(--line); }
[data-theme="dark"] :is(.menu-toggle:hover, .drawer-close:hover, .drawer-signout:hover, .overview-page:hover) { border-color: var(--field-line); }
[data-theme="dark"] tbody tr:hover { background: var(--surface-raised); }
[data-theme="dark"] .badge:is(.pending, .creating) { background: #3b2d18; color: #f3cd82; }
[data-theme="dark"] .badge.paid { background: #18372d; color: #90e4bb; }
[data-theme="dark"] .badge:is(.failed, .unknown), [data-theme="dark"] .notice.error { background: #3d2028; color: #ffb6bd; }
[data-theme="dark"] .notice.error { border-color: #763e49; }
[data-theme="dark"] :is(.empty-icon, .auth-lock:not(.brand-badge)) { background: var(--brand-soft); }
[data-theme="dark"] .project-avatar { border-color: #59313a; }
[data-theme="dark"] .bank-profile-in-use { background: #172b25; border-color: #4b8d75; }
[data-theme="dark"] .bank-profile-active-label { background: #286a50; border-color: #286a50; }
[data-theme="dark"] .flow-apps > span { background: #a33043; }
[data-theme="dark"] .sales-meter { background: var(--surface-raised); }
[data-theme="dark"] .sales-meter::-webkit-meter-bar { background: var(--surface-raised); }
[data-theme="dark"] .sales-meter::-webkit-meter-optimum-value { background: #7394b3; }
[data-theme="dark"] .sales-meter.leader::-webkit-meter-optimum-value { background: #9bc7fa; }
[data-theme="dark"] .sales-meter::-moz-meter-bar { background: #7394b3; }
[data-theme="dark"] .sales-meter.leader::-moz-meter-bar { background: #9bc7fa; }
[data-theme="dark"] .dashboard-chart {
    --chart-created: #8db9e4;
    --chart-paid: #68cbb1;
    --chart-pending: #e4ae5f;
    --chart-review: #df7c86;
    --chart-neutral: #8f9eae;
    --chart-track: #273443;
}
[data-theme="dark"] .documentation-section code { background: var(--surface-raised); color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .documentation-section :is(.docs-endpoints, pre) code { background: none; }
[data-theme="dark"] .http-method.get { color: #90e4bb; }
