/* TopNotch Send accessibility contrast correction — final stylesheet, loaded last */
:root{color-scheme:light;--tn-forest:#003f35;--tn-deep:#002f29;--tn-green:#087f68;--tn-mint:#e8f7f2;--tn-ink:#123b34;--tn-muted:#536f66;--tn-white:#fff;--tn-line:#b9dcd0}
html,body{background:#f0faf7!important;color:var(--tn-ink)!important}
body :where(h1,h2,h3,h4,h5,h6,.page-title,.section-title,.card-title){color:var(--tn-ink)!important;-webkit-text-fill-color:var(--tn-ink)!important;text-shadow:none!important}
body :where(p,li,dd,dt,.muted,.send-muted,.description,.help-text,.form-text,.small-text,.subtext,.subtitle){color:#49675e!important;-webkit-text-fill-color:#49675e!important;opacity:1!important}
body :where(label,legend,.form-label,.send-form label,.withdraw-form label,.deposit-form label,.admin-form label,.profile-form label){color:#244d43!important;-webkit-text-fill-color:#244d43!important;font-weight:650!important;opacity:1!important}
/* Standard cards and forms: light surfaces, dark readable copy */
body :where(.card,.panel,.panel-pro,.auth-card,.deposit-card,.send-card,.form-card,.form-panel,.bank-panel,.stat,.action-card,.quick,.profile-setting-card,.security-card,.settings-card,.beneficiary-card,.transaction-card,.table-card,.white-card,.content-card){background:#fff!important;color:var(--tn-ink)!important;border-color:#c8e5db!important}
body :where(.card,.panel,.panel-pro,.auth-card,.deposit-card,.send-card,.form-card,.form-panel,.bank-panel,.profile-setting-card,.security-card,.settings-card,.beneficiary-card,.transaction-card,.table-card,.white-card,.content-card) :where(h1,h2,h3,h4,p,span,small,strong,b,label,li,td,th){text-shadow:none!important}
/* Explicit dark-green/mint surfaces must always use white/light text */
body :where(.hero-balance,.balance-card,.balance-hero,.wallet-hero,.wallet-summary,.total-wallet-card,.profile-card,.send-balance,.withdraw-balance,.available-balance-card,.amount-card,.dark-card,.dark-panel,.green-card,.green-panel,.receipt-amount,.receipt-total,.admin-stat-card){background:linear-gradient(145deg,#00483d,#00352d)!important;color:#fff!important;border-color:#087f68!important}
body :where(.hero-balance,.balance-card,.balance-hero,.wallet-hero,.wallet-summary,.total-wallet-card,.profile-card,.send-balance,.withdraw-balance,.available-balance-card,.amount-card,.dark-card,.dark-panel,.green-card,.green-panel,.receipt-amount,.receipt-total,.admin-stat-card) *{color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
body :where(.btn-primary,.btn.btn-primary,.button-primary,.action-primary,.full-btn,button.primary,button[type=submit]){background:linear-gradient(135deg,#078b70,#00594b)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #087f68!important;opacity:1!important}
body :where(.btn-secondary,.btn.btn-secondary,.button-secondary,.btn-outline){background:#fff!important;color:#075b4c!important;-webkit-text-fill-color:#075b4c!important;border:1px solid #80bca9!important}
body :where(button,a.btn,[role=button]){text-shadow:none!important}
/* Form controls are white with dark text on ordinary light panels */
body :where(input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea){background:#fff!important;color:#173e35!important;-webkit-text-fill-color:#173e35!important;border:1px solid #9fcdbd!important;caret-color:#087f68!important;opacity:1!important}
body :where(input,select,textarea)::placeholder{color:#657f75!important;-webkit-text-fill-color:#657f75!important;opacity:1!important}
body :where(select option){background:#fff!important;color:#173e35!important}
body :where(input,select,textarea):focus{border-color:#078b70!important;box-shadow:0 0 0 3px rgba(7,139,112,.18)!important;outline:2px solid transparent!important}
body :where(input[type=checkbox],input[type=radio]){accent-color:#078b70!important}
/* Bank-send page had inline dark fields with dark placeholder/selection text */
.page-main{background:#f0faf7!important;color:#123b34!important}
.page-main .send-card{background:#fff!important;color:#123b34!important;border-color:#c8e5db!important}
.page-main .send-card h2,.page-main .send-head h1{color:#123b34!important;-webkit-text-fill-color:#123b34!important}
.page-main .send-head .eyebrow{color:#087f68!important;-webkit-text-fill-color:#087f68!important}
.page-main .send-muted,.page-main .send-head p,.page-main .send-history-row small{color:#536f66!important;-webkit-text-fill-color:#536f66!important}
.page-main .send-form label{color:#244d43!important;-webkit-text-fill-color:#244d43!important}
.page-main .send-form input,.page-main .send-form select,.page-main .send-form textarea{background:#fff!important;color:#173e35!important;-webkit-text-fill-color:#173e35!important;border-color:#9fcdbd!important}
.page-main .send-form input::placeholder,.page-main .send-form textarea::placeholder{color:#657f75!important;-webkit-text-fill-color:#657f75!important;opacity:1!important}
.page-main .send-form select option{background:#fff!important;color:#173e35!important}
.page-main .account-resolve{background:#e8f7f2!important;color:#174b3e!important;-webkit-text-fill-color:#174b3e!important;border:1px solid #c1e4d7!important}
.page-main .account-resolve *{color:#174b3e!important;-webkit-text-fill-color:#174b3e!important}
.page-main .send-notice{background:#e8f7f2!important;color:#174b3e!important;border-color:#c1e4d7!important}
.page-main .send-warning{background:#fff4d9!important;color:#624600!important;border-color:#e6c777!important}
.page-main .send-status{background:#fff0c2!important;color:#614600!important}
.page-main .send-balance{background:linear-gradient(145deg,#00483d,#00352d)!important;color:#fff!important}
.page-main .send-balance *,.page-main .send-balance small,.page-main .send-balance p,.page-main .send-balance strong{color:#fff!important;-webkit-text-fill-color:#fff!important}
.page-main .send-history-row{border-color:#d5e8e1!important}
/* Tables, receipts, alerts, navigation, badges and selected states */
body :where(th){background:#e1f4ed!important;color:#174b3e!important;border-color:#c4e3d7!important}
body :where(td){color:#244d43!important;border-color:#d5e8e1!important}
body :where(.alert-success){background:#e5f7ec!important;color:#145c35!important;border-color:#a8ddba!important}
body :where(.alert-error){background:#fff0f0!important;color:#8f2028!important;border-color:#edb9bf!important}
body :where(.alert-warning,.send-warning){background:#fff4d9!important;color:#624600!important;border-color:#e6c777!important}
body :where(.alert-info,.send-notice,.account-resolve){background:#e8f7f2!important;color:#174b3e!important;border-color:#c1e4d7!important}
body :where(.status-pending,.status-processing){color:#7a5200!important;-webkit-text-fill-color:#7a5200!important}
body :where(.status-failed,.status-rejected,.status-reversed){color:#a3212c!important;-webkit-text-fill-color:#a3212c!important}
body :where(.status-completed,.status-successful,.status-approved,.status-active){color:#087143!important;-webkit-text-fill-color:#087143!important}
body :where(.site-header,.admin-header,.admin-quick-nav,.desktop-nav,.navbar,.top-nav,.mobile-bottom-nav){background:#fff!important;color:#123b34!important;border-color:#c8e5db!important}
body :where(.site-header nav a,.desktop-nav a,.admin-nav a,.admin-quick-nav a,.admin-menu a,.mobile-bottom-nav a){color:#244d43!important;-webkit-text-fill-color:#244d43!important}
body :where(.site-header nav a:hover,.desktop-nav a:hover,.admin-quick-nav a:hover,.admin-menu a:hover){background:#e2f5ee!important;color:#075b4c!important;-webkit-text-fill-color:#075b4c!important}
body :where(.site-header nav a.active,.desktop-nav .nav-active,.mobile-bottom-nav a.active){background:#087f68!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body :where(.brand,.brand span:not(.brand-mark),.brand strong){color:#123b34!important;-webkit-text-fill-color:#123b34!important;opacity:1!important}
body :where(.brand strong,.brand-accent){color:#087f68!important;-webkit-text-fill-color:#087f68!important}
body :where(.brand-mark){background:#087f68!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
body :where(.footer,.site-footer){background:#00352d!important;color:#fff!important}
body :where(.footer,.site-footer) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(max-width:760px){body :where(.card,.panel,.send-card,.form-card,.form-panel){color:#123b34!important}body :where(.page-title-row h1,.welcome-pro h1){font-size:clamp(27px,7vw,38px)!important}}

/* Receipt panel exception: its surface is light, so its amount/details must use dark ink.
   These high-specificity rules intentionally come last to override the global green-card rule. */
html body .receipt-page .receipt-card .receipt-amount,
html body .receipt-page .receipt-card .receipt-amount *{
  background:#e9f7f2!important;color:#073c32!important;-webkit-text-fill-color:#073c32!important;
  opacity:1!important;visibility:visible!important;text-shadow:none!important;mix-blend-mode:normal!important;
  filter:none!important;
}
html body .receipt-page .receipt-card .receipt-amount{border:1px solid #8acdb8!important;background:#e9f7f2!important}
html body .receipt-page .receipt-card .receipt-amount span{color:#365f53!important;-webkit-text-fill-color:#365f53!important}
html body .receipt-page .receipt-card .receipt-amount strong{font-weight:850!important;font-size:clamp(30px,7vw,42px)!important;color:#073c32!important;-webkit-text-fill-color:#073c32!important}
html body .receipt-page .receipt-card .receipt-detail span{color:#536c63!important;-webkit-text-fill-color:#536c63!important;opacity:1!important}
html body .receipt-page .receipt-card .receipt-detail strong{color:#102f28!important;-webkit-text-fill-color:#102f28!important;opacity:1!important}
html body .receipt-page .receipt-card .receipt-title p{color:#536c63!important;-webkit-text-fill-color:#536c63!important}
