:root { color-scheme: light; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #172033; background: #f4f6f8; letter-spacing: 0; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.topbar { height: 64px; padding: 0 24px; background: #111827; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 750; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: #37b778; border-radius: 6px; }
.connection { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d1d5db; }
.connection span:first-child { width: 9px; height: 9px; border-radius: 50%; background: #e05252; }
.connection.online span:first-child { background: #37b778; }
.layout { width: min(760px, 100%); margin: 0 auto; padding: 32px 24px 64px; }
.wallet-installation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.wallet-installation button { max-width: 100%; white-space: normal; padding-block: 8px; }
.wallet-installation p { margin: 0; font-size: 13px; color: #354052; overflow-wrap: anywhere; }
.auth-view { width: min(440px, 100%); margin: 7vh auto 0; }
.auth-heading h1 { margin: 0 0 8px; font-size: 30px; }
.auth-heading p { margin: 0; color: #687386; line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #d9dee5; margin-top: 28px; }
.auth-tab { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px; color: #687386; font-weight: 700; }
.auth-tab.active { color: #172033; border-color: #37b778; }
.auth-form { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #abb4c0; border-radius: 5px; padding: 9px 11px; color: #172033; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(55,183,120,.2); border-color: #237a54; }
small { color: #687386; font-size: 12px; font-weight: 500; }
.account-type { border: 0; margin: 0; padding: 0; }
.account-type legend { margin-bottom: 7px; font-size: 14px; font-weight: 650; }
.account-type { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.account-type label { position: relative; }
.account-type input { position: absolute; opacity: 0; pointer-events: none; }
.account-type span { min-height: 44px; display: grid; place-items: center; border: 1px solid #abb4c0; border-radius: 5px; background: #fff; }
.account-type input:checked + span { border-color: #237a54; background: #eaf7f0; color: #145b3d; box-shadow: inset 0 0 0 1px #237a54; }
.account-type input:focus-visible + span { outline: 3px solid rgba(55,183,120,.2); }
.primary, .secondary { min-height: 46px; border-radius: 6px; padding: 0 18px; font-weight: 700; }
.primary { border: 1px solid #237a54; background: #237a54; color: #fff; }
.primary:hover { background: #1c6847; }
.secondary { border: 1px solid #bcc4ce; background: #fff; color: #172033; }
.compact { min-height: 38px; padding: 0 13px; }
.form-error { min-height: 20px; margin: 0; color: #b42318; font-size: 14px; }
.account-heading, .section-heading, .modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.account-heading { margin-bottom: 20px; }
.account-heading p { margin: 0 0 4px; color: #687386; font-size: 13px; }
.account-heading h1 { margin: 0; font-size: 25px; }
.account-picker { margin: -6px 0 20px; }
.account-picker span { color: #687386; font-size: 13px; }
.account-picker select { max-width: 420px; }
.balance-band { background: #172033; color: #fff; padding: 28px; border-radius: 8px; }
.balance-band > p { margin: 0 0 8px; color: #aeb7c7; font-size: 14px; }
.balance-band > strong { display: block; margin-bottom: 8px; font-size: 46px; }
.balance-band > span { color: #d1d5db; }
.pay-number { margin-top: 24px; padding-top: 18px; border-top: 1px solid #374151; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #aeb7c7; font-size: 13px; }
.pay-number button { border: 0; background: transparent; color: #fff; padding: 4px; }
.pay-number code { font-size: 14px; }
.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 18px 0 32px; }
.account-notice { margin: -14px 0 32px; padding: 14px 16px; border-left: 4px solid #23845d; background: #eaf6f0; color: #24334c; line-height: 1.5; }
.section { margin-top: 30px; }
.section h2 { margin: 0 0 14px; font-size: 18px; }
.refresh, .close { border: 0; background: transparent; color: #237a54; }
.close { color: #687386; font-size: 28px; width: 40px; height: 40px; }
.activity { border-top: 1px solid #d9dee5; }
.activity-row { min-height: 76px; border-bottom: 1px solid #d9dee5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; }
.activity-row strong, .activity-row p { display: block; margin: 0; }
.activity-row p { color: #687386; font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.amount { white-space: nowrap; font-weight: 750; color: #237a54; }
.amount.out { color: #172033; }
.request-controls { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.request-controls button { border-radius: 5px; padding: 6px 10px; font-size: 13px; font-weight: 650; }
.request-pay { border: 1px solid #237a54; background: #237a54; color: #fff; }
.request-secondary { border: 1px solid #bcc4ce; background: #fff; color: #354052; }
.empty { padding: 28px 2px; color: #687386; }
.modal { position: fixed; inset: 0; background: rgba(17,24,39,.58); display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-panel { width: min(440px, 100%); background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 18px 60px rgba(0,0,0,.24); }
.modal-heading h2 { margin: 0; font-size: 21px; }
#paymentForm { display: grid; gap: 16px; margin-top: 20px; }
#refundForm { display: grid; gap: 16px; margin-top: 18px; }
.kale-confirmation { max-height: calc(100vh - 40px); overflow-y: auto; }
.kale-qr { display: block; width: min(320px, 100%); aspect-ratio: 1; margin: 18px auto; border: 1px solid #d9dee5; }
.kale-details { margin: 0 0 20px; }
.kale-details > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #e3e7ec; }
.kale-details dt { color: #687386; font-size: 13px; }
.kale-details dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.kale-scanner { display: grid; gap: 10px; }
.kale-camera-panel { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 7px; background: #0f172a; }
.kale-camera-panel video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 16%; border: 3px solid #fff; border-radius: 7px; box-shadow: 0 0 0 999px rgba(15,23,42,.34); }
.scan-status { min-height: 22px; margin: 0; color: #687386; font-size: 14px; }
.scan-status.success { color: #187652; font-weight: 700; }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 360px; background: #172033; color: #fff; padding: 13px 16px; border-radius: 6px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (max-width: 700px) { .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .topbar { padding: 0 16px; } .layout { padding: 24px 16px 48px; } .actions { grid-template-columns: 1fr; } .balance-band > strong { font-size: 36px; } .activity-row { align-items: flex-start; } }
.receipt-link { border: 0; background: transparent; color: #177b55; font: inherit; font-weight: 700; padding: 8px 0 0; cursor: pointer; }
.refund-link { border: 1px solid #bcc4ce; border-radius: 5px; background: #fff; color: #172033; font: inherit; font-size: 13px; font-weight: 700; margin-top: 9px; padding: 6px 10px; }
.receipt-verification { padding: 12px; border: 1px solid #b91c1c; color: #991b1b; font-weight: 700; }
.receipt-verification.verified { border-color: #198754; color: #146c43; }
.text-action { border: 0; background: transparent; color: #177b55; padding: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.form-notice { margin: 0; color: #41506a; font-size: 14px; line-height: 1.5; }
#transferRecoveryStatus { overflow-wrap: anywhere; line-height: 1.5; }
#transferRecovery a { display: inline-block; margin: 8px 12px; overflow-wrap: anywhere; }

/* DCB dark gold theme for customer and merchant wallet screens. */
:root { color-scheme: dark; color: #f5efdf; background: #0d1119; }
body { background: #0d1119; }
.topbar { background: #111722; border-bottom: 3px solid #e2b34d; }
.brand-mark { background: #e2b34d; color: #17130b; }
.connection { color: #d8cba9; }
.connection.online span:first-child { background: #e2b34d; }
.wallet-installation p, .auth-heading p, small, .account-heading p,
.account-picker span, .activity-row p, .empty, .scan-status,
.form-notice, .account-heading p { color: #b9b09e; }
.auth-view { padding: 24px; border: 1px solid #50442d; border-top: 4px solid #e2b34d; border-radius: 8px; background: #151c27; }
.auth-tabs, .activity, .activity-row, .kale-details > div { border-color: #504a3f; }
.auth-tab { color: #b9b09e; }
.auth-tab.active { color: #f0ca73; border-color: #e2b34d; }
input, select, textarea, .account-type span { background: #202a37; color: #f5efdf; border-color: #5d574a; }
input:focus, select:focus, textarea:focus, button:focus-visible,
.account-type input:focus-visible + span { outline: 3px solid #f0ca73; outline-offset: 2px; border-color: #e2b34d; }
.account-type input:checked + span { background: #3a301b; color: #f0ca73; border-color: #e2b34d; box-shadow: inset 0 0 0 1px #e2b34d; }
.primary, .request-pay { background: #e2b34d; color: #17130b; border-color: #e2b34d; }
.primary:hover, .request-pay:hover { background: #f0ca73; }
.secondary, .request-secondary, .refund-link { background: #202a37; color: #f0ca73; border-color: #8b7139; }
.secondary:hover, .request-secondary:hover, .refund-link:hover { background: #322a1c; }
.balance-band { background: #151c27; color: #f5efdf; border: 1px solid #8b7139; }
.balance-band > p, .balance-band > span, .pay-number { color: #d8cba9; }
.pay-number { border-color: #504a3f; }
.pay-number button { color: #f0ca73; }
.account-notice { background: #302819; color: #f5efdf; border-color: #e2b34d; }
.refresh, .receipt-link, .text-action, .amount { color: #e2b34d; }
.amount.out, .close { color: #d8cba9; }
.modal-panel { background: #151c27; color: #f5efdf; border: 1px solid #655536; }
.kale-qr { background: #fff; border-color: #8b7139; }
.toast { background: #e2b34d; color: #17130b; }
.form-error { color: #ff9d94; }
.scan-status.success, .receipt-verification.verified { color: #f0ca73; }
.receipt-verification.verified { border-color: #e2b34d; }
.receipt-verification { color: #ff9d94; }
@media (max-width: 560px) { .auth-view { padding: 20px; margin-top: 20px; } }
