/* ClearPay portal theme: calm ink, cool neutrals, and a restrained mint accent. */
:root {
    color-scheme: light;
    --ink: #18232f;
    --muted: #748191;
    --line: #e5eaf0;
    --surface: #ffffff;
    --canvas: #f5f7fa;
    --navy: #102b3e;
    --navy-2: #18394e;
    --mint: #a8efcf;
    --green: #16835d;
    --amber: #d78b2e;
    --violet: #7756c8;
    --blue: #4279bb;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; width: 246px; flex-direction: column; padding: 28px 18px 18px; background: var(--navy); color: #f4f8fb; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 11px; color: #fff; font-size: 17px; font-weight: 750; letter-spacing: -.04em; }
.brand small { display: block; margin-top: 3px; color: #95acbc; font-size: 8px; font-weight: 650; letter-spacing: .16em; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: var(--mint); color: #173a43; font-size: 18px; font-weight: 850; }
.workspace-label { margin: 47px 12px 12px; color: #8097a8; font-size: 9px; font-weight: 750; letter-spacing: .15em; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: #bdcbd5; font-size: 12px; font-weight: 570; }
.nav-item.active { border-color: rgba(168,239,207,.17); background: rgba(168,239,207,.12); color: #fff; }
.nav-item.disabled { color: #8499a8; cursor: default; }
.nav-icon { width: 17px; color: #99b1bf; font-size: 15px; text-align: center; }
.nav-item.active .nav-icon { color: var(--mint); }
.nav-soon { margin-left: auto; color: #8097a8; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.sidebar-footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 15px 1px 0; border-top: 1px solid rgba(255,255,255,.12); }
.merchant-avatar, .avatar-small { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #27495b; color: var(--mint); font-size: 12px; font-weight: 750; }
.merchant-identity { display: grid; min-width: 0; gap: 3px; }
.merchant-identity strong { overflow: hidden; max-width: 145px; color: #f4f8fb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.merchant-identity span { color: #94a9b7; font-size: 9px; }
.logout-button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: #9cb0bd; cursor: pointer; }
.logout-button:hover { background: rgba(255,255,255,.1); color: #fff; }
.main-content { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; height: 66px; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.breadcrumb { color: #7c8997; font-size: 11px; font-weight: 550; }
.breadcrumb span { padding: 0 8px; color: #bbc4ce; }
.topbar-right { display: flex; align-items: center; gap: 15px; }
.mode-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #deeee6; border-radius: 20px; background: #f3fbf6; color: #47836b; font-size: 9px; font-weight: 650; }
.mode-pill i, .date-dot { width: 6px; height: 6px; border-radius: 50%; background: #3db582; }
.avatar-small { width: 30px; height: 30px; background: #edf4f2; color: #326752; font-size: 10px; }
.page-content { width: min(1460px, 100%); margin: 0 auto; padding: 38px 42px 25px; }
.welcome-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.eyebrow { display: block; margin-bottom: 9px; color: #8693a0; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.welcome-row h1, .hero-card h1, .auth-card h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 32px); font-weight: 720; letter-spacing: -.055em; }
.welcome-row p, .auth-intro { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.date-filter { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #586675; font-size: 10px; font-weight: 600; box-shadow: 0 2px 8px rgba(28,43,57,.025); }
.chevron { margin-left: 5px; color: #8a97a5; font-size: 14px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 15px; }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: 0 3px 12px rgba(30,48,66,.025); }
.metric-card { min-height: 129px; padding: 15px 17px 14px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #748191; font-size: 10px; font-weight: 570; }
.metric-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 750; }
.metric-icon.green { background: #e8f8f0; color: var(--green); }
.metric-icon.amber { background: #fff5e6; color: var(--amber); }
.metric-icon.violet { background: #f1edfb; color: var(--violet); }
.metric-icon.blue { background: #ebf3fb; color: var(--blue); }
.metric-value { display: block; margin-top: 10px; color: #1a2935; font-size: 26px; font-weight: 730; letter-spacing: -.055em; }
.metric-foot { display: block; margin-top: 4px; color: #8a96a3; font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr); gap: 14px; margin-bottom: 15px; }
.panel { padding: 18px 19px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.panel-heading h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: -.02em; }
.panel-heading p { margin: 5px 0 0; color: #85919e; font-size: 9px; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; color: #788694; font-size: 9px; }
.chart-legend i { width: 7px; height: 7px; border-radius: 50%; background: #42b287; }
.chart-total { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.chart-total strong { font-size: 21px; letter-spacing: -.05em; }
.chart-total span { color: #8995a2; font-size: 9px; }
.bar-chart { display: grid; height: 152px; grid-template-columns: repeat(14, minmax(0, 1fr)); align-items: end; gap: 8px; margin-top: 15px; padding: 0 1px; border-bottom: 1px solid #edf0f3; background: repeating-linear-gradient(to bottom, transparent 0, transparent 36px, #f1f3f6 37px, transparent 38px); }
.chart-column { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.chart-bar { width: min(18px, 75%); min-height: 5px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #5bcca0, #19805b); transition: filter .15s ease; }
.chart-bar:hover { filter: brightness(.9); }
.chart-bar.level-1 { height: 8%; }
.chart-bar.level-2 { height: 22%; }
.chart-bar.level-3 { height: 42%; }
.chart-bar.level-4 { height: 66%; }
.chart-bar.level-5 { height: 92%; }
.chart-column span { position: relative; bottom: -1px; color: #98a3ae; font-size: 7px; white-space: nowrap; }
.status-panel { padding-bottom: 14px; }
.status-panel .panel-heading { align-items: center; margin-bottom: 11px; }
.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 14px; font-size: 8px; font-weight: 700; white-space: nowrap; }
.status-pending { background: #fff4df; color: #a66a13; }
.status-paid { background: #e9f8f0; color: #187c56; }
.status-expired, .status-cancelled { background: #f1f3f6; color: #687584; }
.status-review_required { background: #ffeded; color: #b23e3e; }
.setup-card { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid #f0f2f4; }
.setup-card:last-of-type { border-bottom: 0; }
.setup-number { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #f0f4f6; color: #758391; font-size: 9px; font-weight: 700; }
.setup-card strong { color: #33414e; font-size: 9px; }
.setup-card p { margin: 4px 0 0; color: #86929f; font-size: 8px; line-height: 1.5; }
.notice-box { display: flex; gap: 8px; margin-top: 7px; padding: 9px; border: 1px solid #f2e3c9; border-radius: 8px; background: #fffaf1; }
.notice-box > span { display: grid; width: 15px; height: 15px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f1d9af; color: #91601b; font-size: 9px; font-weight: 750; }
.notice-box p { margin: 0; color: #876b43; font-size: 8px; line-height: 1.55; }
.payments-panel { padding: 18px 0 0; overflow: hidden; }
.payments-panel > .panel-heading { padding: 0 19px 16px; }
.quiet-link { color: #507965; font-size: 9px; font-weight: 650; }
.quiet-link span { margin-left: 3px; font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 10px 14px; border-top: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; background: #fafbfc; color: #8793a0; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
th:first-child, td:first-child { padding-left: 19px; }
td { padding: 12px 14px; border-bottom: 1px solid #f0f2f4; color: #5c6976; font-size: 9px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: #35424f; font-size: 9px; font-weight: 650; }
td small { display: block; margin-top: 4px; color: #9aa5b0; font-size: 8px; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 21px 10px; color: #62717f; text-align: center; white-space: normal; }
.empty-state strong { font-size: 10px; }
.empty-state small { margin: 0; font-size: 9px; }
.empty-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #eff8f3; color: #32926b; font-size: 16px; }
.dashboard-footer { display: flex; justify-content: space-between; gap: 12px; padding: 15px 2px 0; color: #9aa5b0; font-size: 8px; }

/* Public landing and account forms share the same contained, centered frame. */
.auth-layout { display: grid; min-height: 100vh; align-content: center; justify-items: center; gap: 26px; padding: 35px 20px; background: radial-gradient(ellipse at 50% 0%, #e9f5ef 0, transparent 42%), var(--canvas); }
.auth-brand { color: var(--navy); }
.auth-brand small { color: #84939f; }
.auth-card, .hero-card { width: min(100%, 440px); padding: 32px; border: 1px solid #e1e7eb; border-radius: 17px; background: rgba(255,255,255,.94); box-shadow: 0 15px 45px rgba(32,56,73,.08); }
.auth-card h1 { font-size: 25px; }
.auth-intro { margin-top: 8px; line-height: 1.55; }
.auth-form { display: grid; gap: 15px; margin-top: 24px; }
.auth-form label { display: grid; gap: 7px; color: #455361; font-size: 10px; font-weight: 650; }
.label-hint { color: #8c98a4; font-size: 9px; font-weight: 450; }
.auth-form input { width: 100%; height: 41px; padding: 0 12px; outline: 0; border: 1px solid #dce3e8; border-radius: 8px; background: #fff; color: var(--ink); font-size: 11px; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-form input:focus { border-color: #52ae87; box-shadow: 0 0 0 3px rgba(82,174,135,.14); }
.button { display: inline-flex; min-height: 41px; align-items: center; justify-content: center; gap: 13px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 10px; font-weight: 700; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 5px 12px rgba(16,43,62,.15); }
.button-primary:hover { background: var(--navy-2); box-shadow: 0 8px 16px rgba(16,43,62,.18); }
.button-primary span { color: var(--mint); font-size: 15px; }
.button-secondary { border-color: #dce3e8; background: #fff; color: #445463; }
.button-wide { width: 100%; margin-top: 3px; }
.auth-switch { margin: 20px 0 0; color: #82909c; font-size: 10px; text-align: center; }
.auth-switch a, .text-link { color: #247d5d; font-weight: 700; }
.text-link { display: inline-block; margin-top: 12px; font-size: 11px; }
.form-alert, .form-success { margin-top: 16px; padding: 11px 12px; border: 1px solid #f1d5d5; border-radius: 8px; background: #fff7f6; color: #984c4c; font-size: 10px; line-height: 1.5; }
.form-alert ul { margin: 6px 0 0; padding-left: 17px; }
.form-success { border-color: #cce9d9; background: #f1fbf5; color: #317553; }
.hero-card { width: min(100%, 550px); padding: 43px; }
.hero-card h1 { font-size: clamp(36px, 8vw, 52px); line-height: 1.05; }
.hero-card > p { max-width: 410px; margin: 16px 0 0; color: #71808e; font-size: 13px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 27px; padding-top: 17px; border-top: 1px solid #eef1f3; color: #84919d; font-size: 9px; }
.hero-note span { color: #419b76; font-size: 14px; }

@media (max-width: 1100px) {
    .sidebar { width: 215px; }
    .main-content { margin-left: 215px; }
    .topbar { padding: 0 25px; }
    .page-content { padding: 30px 25px 22px; }
    .dashboard-grid { grid-template-columns: minmax(0, 1.35fr) minmax(255px, .85fr); }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sidebar { position: static; width: 100%; height: auto; padding: 13px 16px; }
    .workspace-label, .side-nav, .sidebar-footer { display: none; }
    .brand-mark { width: 31px; height: 31px; }
    .main-content { margin-left: 0; }
    .topbar { height: 51px; padding: 0 17px; }
    .page-content { padding: 25px 16px 20px; }
    .welcome-row { align-items: flex-start; flex-direction: column; margin-bottom: 18px; }
    .welcome-row h1 { font-size: 25px; }
    .date-filter { align-self: flex-start; }
    .metric-grid { gap: 9px; }
    .metric-card { min-height: 117px; padding: 13px; }
    .metric-value { font-size: 23px; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .bar-chart { gap: 3px; }
    .chart-column span { font-size: 6px; }
    .dashboard-footer { flex-direction: column; }
    .auth-card, .hero-card { padding: 25px 21px; }
    .hero-card h1 { font-size: 38px; }
    .hero-actions .button { flex: 1; }
    th, td { padding-right: 10px; padding-left: 10px; }
}

/* Merchant setup and history pages share the portal palette and readable form sizes. */
.workspace-alert{padding:18px 22px;margin-bottom:22px;border:1px solid #dce6ee;border-radius:12px;background:#f5f8fc;font-size:14px;line-height:1.6}
.workspace-alert.success{background:#e9f8f0;border-color:#a6dfbe;color:#16633b}.workspace-alert.error{background:#fff1f0;color:#97332e;border-color:#efc5c1}
.connection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.connection-card{padding:24px}.connection-card h2,.workspace-columns h2,.workspace-table h2{font-size:20px;margin:12px 0}
.connection-card .panel-heading{align-items:flex-start;gap:12px;flex-wrap:wrap}.workspace-note,.credential-note{font-size:13px;line-height:1.65;color:#65748b}.method-tag{font-size:11px;font-weight:800;letter-spacing:1px;padding:7px 10px;border-radius:6px;background:#fff0bd;color:#745609}.method-tag.tron_trc20{background:#ffe7e8;color:#a52c40}.method-tag.bsc_bep20{background:#e5f3ef;color:#176448}
.workspace-form fieldset{border:0;padding:0;margin:0;min-width:0}.workspace-form label,.payment-filters label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;margin-bottom:18px;color:#273650}
.workspace-form input,.payment-filters input,.payment-filters select{width:100%;min-width:0;padding:12px 13px;border:1px solid #ccd7e3;border-radius:8px;background:white;color:#26354c;font:inherit;box-sizing:border-box}.workspace-form input:focus,.payment-filters input:focus,.payment-filters select:focus{outline:3px solid #bce8d9;outline-offset:1px;border-color:#208066}
.credentials-section{border-top:1px solid #e3e9f0;padding-top:20px;margin-top:20px}.credentials-section>strong{display:block;font-size:14px;margin-bottom:8px}.credential-note{display:block;margin-bottom:18px}.workspace-form .checkbox-label{flex-direction:row;align-items:center;font-weight:400}.checkbox-label input{width:auto}.saved-time{font-size:11px;color:#718096;margin:18px 0 0}
.workspace-columns{display:grid;grid-template-columns:1.2fr 1fr;gap:24px;margin-bottom:24px}.workspace-columns>.panel{padding:28px}.connection-steps{padding-left:22px;font-size:14px;line-height:1.6}.connection-steps li{padding:10px 0}.connection-steps span{display:block;color:#65748b}.workspace-table{margin-top:24px}.workspace-table table{font-size:13px}.long-cell{max-width:320px;overflow-wrap:anywhere}.filter-panel{padding:24px}.payment-filters{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}.payment-filters label{flex:1;min-width:130px;margin:0}.payment-filters .search-label{flex:2;min-width:220px}.filter-reset{font-size:13px;padding:12px;color:#44536b}.pagination{display:flex;align-items:center;justify-content:space-between;padding:20px;font-size:13px}.pagination>div{display:flex;gap:10px}.invoice-detail{padding:28px;margin-top:24px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;font-size:14px}.detail-grid dt{color:#6b7a8d;font-size:12px;margin-bottom:6px}.detail-grid dd{margin:0;overflow-wrap:anywhere}.invoice-link{color:#186b55;font-weight:700}a:focus-visible,button:focus-visible{outline:3px solid #69c3a5;outline-offset:3px}
@media(max-width:1100px){.connection-grid{grid-template-columns:1fr}.connection-card .workspace-form fieldset{max-width:640px}}
@media(max-width:760px){.workspace-columns,.detail-grid{grid-template-columns:1fr}.sidebar .side-nav{display:flex;overflow-x:auto;gap:6px;padding:10px 0}.side-nav .nav-item{flex-shrink:0;margin:0}.workspace-label{display:none}.workspace-columns>.panel,.connection-card{padding:20px}.payment-filters label{flex-basis:40%}}
/* Platform owner settings are kept separate from merchant navigation. */
.admin-provider-card{max-width:680px}.admin-provider-card>form+form{margin-top:24px}

/* Administrative tables stay readable on narrow screens; controls never overlap data. */
.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.admin-metric{padding:24px}.admin-metric span{display:block;color:var(--muted);font-size:13px}.admin-metric strong{display:block;font-size:32px;margin-top:12px}.admin-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}.workspace-form select,.admin-inline select{padding:12px;border:1px solid #ccd7e3;border-radius:8px;background:#fff;font:inherit;max-width:100%}.admin-form label{margin:0}.admin-inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-scroll{overflow-x:auto}.workspace-table td{vertical-align:top}.admin-provider-card{margin:0;max-width:780px;width:100%}@media(max-width:900px){.admin-metrics,.admin-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:550px){.admin-metrics,.admin-form{grid-template-columns:1fr}}
/* Workspace refinement: clear hierarchy, readable client plans and responsive charts. */
.page-heading{margin-bottom:28px}.page-heading h1{font-size:32px;letter-spacing:-.04em;margin:0 0 10px}.page-heading p,.invoice-detail>p,.admin-toolbar p{color:#65748b;font-size:14px;line-height:1.7}.page-heading .eyebrow{color:#16835d}.panel{box-shadow:0 5px 22px rgba(20,45,65,.035)}.admin-metric{border-top:3px solid #73cbb2}.admin-metric strong{font-size:34px;letter-spacing:-.04em}.admin-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0}.admin-toolbar p{max-width:700px;margin:0}.admin-toolbar .button{flex-shrink:0}.admin-badge{display:inline-flex;white-space:nowrap;padding:6px 10px;border-radius:24px;font-size:11px;font-weight:700;line-height:1.3}.admin-badge.good{background:#e3f6ed;color:#167351}.admin-badge.waiting{background:#fff1d7;color:#946012}.admin-badge.muted{background:#eef1f5;color:#66758a}.cell-subtitle{display:block;margin-top:7px;color:#748191;font-size:12px}.admin-actions{margin-top:12px;font-size:12px;color:#65748b}.admin-actions summary{cursor:pointer}.admin-actions form{margin-top:10px}.workspace-table th{background:#f8fafc;font-size:10px;letter-spacing:.08em}.workspace-table td{padding-top:20px;padding-bottom:20px}.workspace-table tr:hover td{background:#fbfcfe}.section-title{font-size:20px;margin-top:30px}.admin-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:24px;margin-top:24px}.income-panel,.admin-next{padding:28px}.income-panel h2{margin:8px 0;font-size:32px;letter-spacing:-.04em}.income-panel h2 small{font-size:12px;color:#748191;letter-spacing:0;font-weight:500}.income-chart{display:flex;align-items:flex-end;justify-content:space-between;height:220px;border-bottom:1px solid #e5eaf0;margin:18px 0;gap:8px;overflow-x:auto;background:repeating-linear-gradient(to top,transparent 0,transparent 49px,#f1f4f8 50px)}.income-column{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:28px;flex:1;gap:8px;height:100%}.income-bar{width:70%;max-width:25px;min-height:2px;background:linear-gradient(#5bd2ac,#16835d);border-radius:5px 5px 0 0}.income-column small{font-size:9px;white-space:nowrap;padding-bottom:10px;color:#748191}.income-value{font-size:10px;color:#65748b}.admin-next h2{font-size:22px}.admin-next>a{display:block;padding:16px 0;border-bottom:1px solid #edf1f5}.admin-next>a strong,.admin-next>a span{display:block}.admin-next>a span{font-size:12px;color:#65748b;margin-top:8px}.admin-next>a:hover strong{color:#16835d}.button-primary{box-shadow:0 3px 8px rgba(22,131,93,.12)}.side-nav .nav-item:hover{background:rgba(168,239,207,.08);color:#fff}
@media(max-width:1050px){.admin-dashboard-grid{grid-template-columns:1fr}}@media(max-width:760px){.page-heading h1{font-size:26px}.admin-toolbar{align-items:flex-start;flex-direction:column}.income-panel,.admin-next{padding:20px}.topbar{gap:10px}.income-chart{gap:5px}.admin-form{grid-template-columns:1fr}.workspace-table .button{white-space:nowrap}}

/* Provider credentials use explicit saved-state summaries rather than echoed secrets. */
.provider-workspace{max-width:1100px}.provider-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.provider-card{padding:28px;margin-bottom:24px}.provider-card h2{font-size:23px;margin:20px 0 10px}.provider-card .panel-heading{gap:12px;flex-wrap:wrap}.provider-card label{margin-top:22px}.provider-saved{display:grid;gap:8px;padding:18px;background:#f5f9f8;border:1px solid #e0ece7;border-radius:10px;margin:22px 0;font-size:13px;overflow-wrap:anywhere}.provider-saved span{color:#167351;font-weight:600}.provider-saved small{color:#748191;line-height:1.6}.provider-permission{padding:16px;border:1px solid #e5eaf0;border-radius:10px}.provider-permission input{accent-color:#16835d}.provider-save{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0}.provider-save span{font-size:13px;color:#65748b}@media(max-width:850px){.provider-grid{grid-template-columns:1fr;gap:0}.provider-save{align-items:flex-start;flex-direction:column}}

/* Client detail navigation remains usable on narrow screens. */
.client-tabs{display:flex;gap:8px;overflow-x:auto;padding:10px 0;margin-bottom:24px;border-bottom:1px solid #e5eaf0}.client-tabs a{white-space:nowrap;padding:12px 16px;border-radius:9px;font-size:13px;color:#65748b}.client-tabs a.active{background:#e3f6ed;color:#167351;font-weight:700}.client-tabs a:hover{background:#edf3f6}
