/* Credit Baniya CB-UI 2.0 · Customer portal, loan journey, settings and inbox.
   Scoped to existing page roots, never changes field display/required attributes. */
body.cb-ui-public #cb64163-myaccount {color:#173b35;font-family:var(--cbui-font)}
body.cb-ui-public #cb64163-myaccount .cb64163-welcome,
body.cb-ui-public #cb64163-myaccount .cb64163-card {border-radius:17px;border-color:#d8e6e0;box-shadow:0 9px 30px rgba(6,35,31,.065)}
body.cb-ui-public #cb64163-myaccount .cb64163-card-head h2 {font-size:18px!important;line-height:1.35}
body.cb-ui-public #cb64163-myaccount .cb64163-card-head :where(span,a) {font-size:12.5px!important}
body.cb-ui-public #cb64163-myaccount .cb64163-eyebrow,
body.cb-ui-public #cb64163-myaccount .cb64163-mobile-greeting>span {font-size:12px!important;letter-spacing:.045em!important}
body.cb-ui-public #cb64163-myaccount .cb64163-stat-grid small,
body.cb-ui-public #cb64163-myaccount .cb64163-wallet-row small {font-size:11px!important;line-height:1.4;letter-spacing:.025em!important;color:#617c74}
body.cb-ui-public #cb64163-myaccount .cb64163-wallet-sub,
body.cb-ui-public #cb64163-myaccount .cb64163-card p {font-size:13px!important;line-height:1.5;color:#536e67}
body.cb-ui-public #cb64163-myaccount .cb64163-notification small,
body.cb-ui-public #cb64163-myaccount .cb64163-history-row small {font-size:12px!important;line-height:1.45}
body.cb-ui-public #cb64163-myaccount .cb64163-side-links a {font-size:13px!important;min-height:43px;align-items:center}
body.cb-ui-public #cb64163-myaccount .cb64163-quick-grid a {min-height:53px;border-radius:12px;font-size:13px;line-height:1.4}
body.cb-ui-public #cb64163-myaccount .cb64163-actions a {min-height:43px;display:inline-flex;justify-content:center;align-items:center;font-size:13px}
body.cb-ui-public #cb64163-myaccount .cb64163-hero-copy>span {font-size:12px!important}
body.cb-ui-public #cb64163-myaccount .cb64163-gold-btn {min-height:42px}
body.cb-ui-public #cb64163-myaccount :where(a,button,input,select):focus-visible {outline:3px solid #e6a129;outline-offset:3px}

/* Loan application wizard — keep fields, steps, OTP and validation untouched. */
body.cb-ui-public .dashboard-wrap {max-width:1190px;padding-top:28px}
body.cb-ui-public .dashboard-wrap .account-topbar {border-radius:16px;border-color:#d7e5df;box-shadow:0 8px 25px rgba(6,35,31,.065)}
body.cb-ui-public .dashboard-wrap .acc-card {border-radius:17px;box-shadow:0 10px 30px rgba(6,35,31,.07)}
body.cb-ui-public .dashboard-wrap .portal-header {gap:16px;flex-wrap:wrap}
body.cb-ui-public .dashboard-wrap .portal-header h1 {font-size:clamp(22px,2.4vw,29px)}
body.cb-ui-public .dashboard-wrap :where(input,select,textarea) {font-family:var(--cbui-font);font-size:16px;max-width:100%}
body.cb-ui-public .dashboard-wrap :where(input,select,textarea):focus-visible {outline:3px solid #e6a129;outline-offset:2px}
body.cb-ui-public .dashboard-wrap :where(button,[role=button]) {font-family:var(--cbui-font);min-height:41px}
body.cb-ui-public .dashboard-wrap label {line-height:1.45}
body.cb-ui-public .dashboard-wrap :where(.step-title,.section-title) {line-height:1.3}

/* Account Settings. Small labels and cramped CTA links upgraded. */
body.cb-ui-public .cb-settings {max-width:900px;padding:28px 18px 110px;font-family:var(--cbui-font)}
body.cb-ui-public .cb-settings .cb-set-head h1 {font-size:clamp(23px,2.4vw,29px)}
body.cb-ui-public .cb-settings .cb-note {font-size:13px;line-height:1.5}
body.cb-ui-public .cb-settings .cb-group {border-radius:17px;box-shadow:0 9px 25px rgba(6,35,31,.06)}
body.cb-ui-public .cb-settings .cb-group h2 {font-size:17px}
body.cb-ui-public .cb-settings .cb-row b {font-size:14px}
body.cb-ui-public .cb-settings .cb-row small {font-size:12.5px;line-height:1.5}
body.cb-ui-public .cb-settings .cb-settings-nav a {font-size:13px;min-height:40px;display:inline-flex;align-items:center}
body.cb-ui-public .cb-settings .cb-link,
body.cb-ui-public .cb-settings .cb-btn {font-size:13px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px}
body.cb-ui-public .cb-settings .cb-form input {font-size:16px;min-height:45px}

/* Customer login: preserve dark brand experience while strengthening controls. */
body.cb-ui-public main:has(>section>h1) :where(input,select,textarea) {font-size:16px}

/* Standalone documents inbox. Scoped only to body.cb-ui-docs. */
body.cb-ui-docs {background:#f4f8f7;color:#173b35;font:14px/1.55 Inter,'Segoe UI',Arial,sans-serif}
body.cb-ui-docs .head {background:linear-gradient(116deg,#06231f,#0b5046);padding-bottom:58px}
body.cb-ui-docs .head h1 {font-size:clamp(24px,3.2vw,32px);letter-spacing:-.03em;line-height:1.2}
body.cb-ui-docs .head p {font-size:13px;line-height:1.55}
body.cb-ui-docs .wrap {max-width:980px}
body.cb-ui-docs .card {border-radius:17px;border-color:#d6e4df;box-shadow:0 10px 26px rgba(6,35,31,.065)}
body.cb-ui-docs .title {font-size:14px}
body.cb-ui-docs .sub {font-size:12.5px;line-height:1.5}
body.cb-ui-docs .badge {font-size:11px}
body.cb-ui-docs .btn,body.cb-ui-docs .share {font-size:13px;min-height:40px;display:inline-flex;align-items:center;justify-content:center}
body.cb-ui-docs .empty {font-size:13px}
body.cb-ui-docs :where(a,button,input):focus-visible {outline:3px solid #e6a129;outline-offset:3px}

/* Customer chat standalone; retains original grid height and composition logic. */
body.cb-ui-messages .c566-customer-shell {max-width:860px;box-shadow:0 14px 40px rgba(6,35,31,.12)}
body.cb-ui-messages .c566-customer-head {background:linear-gradient(120deg,#06231f,#075d53);padding:14px}
body.cb-ui-messages .c566-customer-head b {font-size:15px}
body.cb-ui-messages .c566-customer-head small {font-size:12px;line-height:1.35}
body.cb-ui-messages .c566-customer-banner {font-size:12px;line-height:1.5;padding:11px 14px}
body.cb-ui-messages .c566-customer-compose {gap:10px;padding:11px}
body.cb-ui-messages .c566-customer-compose textarea {font-size:16px;min-height:44px}
body.cb-ui-messages .c566-customer-compose button {min-height:44px;border-radius:11px}
body.cb-ui-messages :where(a,button,textarea):focus-visible {outline:3px solid #e6a129;outline-offset:2px}

@media(max-width:760px) {
 body.cb-ui-public #cb64163-myaccount .cb64163-quick-grid.mobile span {font-size:11.5px!important;line-height:1.25}
 body.cb-ui-public #cb64163-myaccount .cb64163-bottom-nav a {font-size:11px!important;min-height:52px}
 body.cb-ui-public .dashboard-wrap {padding:18px 12px 100px}
 body.cb-ui-public .dashboard-wrap .account-topbar {padding:17px}
 body.cb-ui-public .dashboard-wrap .acc-card {padding:20px}
 body.cb-ui-public .cb-settings .cb-row {gap:10px}
 body.cb-ui-docs .wrap {padding:0 12px 35px}
}
@media(max-width:390px){body.cb-ui-public #cb64163-myaccount .cb64163-stat-grid.three{gap:7px}body.cb-ui-public #cb64163-myaccount .cb64163-stat-grid>div{padding:10px 7px}}
@media(prefers-reduced-motion:reduce){body.cb-ui-public :where(*),body.cb-ui-docs :where(*),body.cb-ui-messages :where(*){scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}
