:root {
    --bg: #f4f7f6;
    --surface: #ffffff;
    --surface-muted: #f8faf9;
    --text: #1d2926;
    --muted: #66736f;
    --border: #dfe7e4;
    --primary: #176b5b;
    --primary-dark: #0e5144;
    --success: #1e7a50;
    --warning: #8a6116;
    --info: #245f79;
    --danger: #a43c3c;
    --shadow: 0 8px 24px rgba(20, 45, 38, .06);
    --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 30; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar-brand, .topbar-actions, .brand-link, .user-menu { display: flex; align-items: center; }
.brand-link { gap: 10px; font-weight: 750; letter-spacing: -.01em; }
.brand-mark, .user-avatar { display: grid; place-items: center; border-radius: 9px; font-weight: 800; }
.brand-mark { width: 36px; height: 36px; background: var(--primary); color: #fff; }
.topbar-actions { gap: 18px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 9px; }
.mobile-menu-toggle { display: none; margin-right: 8px; }
.user-menu { gap: 9px; }
.user-avatar { width: 34px; height: 34px; background: #e6f0ed; color: var(--primary-dark); }
.user-meta { display: grid; line-height: 1.15; }
.user-meta small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.app-shell { display: flex; min-height: calc(100vh - 68px); }
.sidebar { width: 238px; flex: 0 0 238px; background: #fff; border-right: 1px solid var(--border); padding: 18px 12px; }
.sidebar nav { display: grid; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #52605c; font-size: 14px; }
.nav-item span { width: 18px; text-align: center; }
.nav-item:hover { background: var(--surface-muted); color: var(--text); }
.nav-item.active { background: #eaf4f1; color: var(--primary-dark); font-weight: 700; }
.nav-section { margin: 18px 12px 5px; text-transform: uppercase; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #8a9793; }
.app-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.page-container { width: min(1440px, 100%); margin: 0 auto; padding: 24px; flex: 1; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 16px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; }
.page-header h1 { margin: 2px 0 3px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.page-header p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--primary); text-transform: uppercase; font-size: 10px; letter-spacing: .13em; font-weight: 800; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-gap { margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.card p { color: var(--muted); }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.stat-card { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; }
.stat-label, .stat-note { color: var(--muted); font-size: 12px; }
.stat-value { font-size: 23px; letter-spacing: -.03em; }
.stat-note { font-size: 11px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 9px; border: 1px solid transparent; font-size: 13px; font-weight: 700; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border-radius: 999px; background: #eef2f1; color: #53615d; font-size: 11px; font-weight: 750; }
.badge-success { background: #e8f5ee; color: var(--success); }
.alert { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; font-size: 13px; }
.alert-info { background: #edf6fa; border-color: #d4e8f0; color: var(--info); }
.alert-warning { background: #fff7e5; border-color: #f1dfb2; color: var(--warning); }
.compact { padding: 8px 10px; display: inline-flex; }
.component-stack { display: grid; gap: 12px; }
.demo-row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.demo-row:last-child { border-bottom: 0; padding-bottom: 0; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.pagination { display: flex; justify-content: flex-end; gap: 5px; margin-top: 14px; }
.page-button { min-width: 32px; height: 32px; border: 1px solid var(--border); background: #fff; border-radius: 7px; }
.page-button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-button:disabled { opacity: .45; cursor: not-allowed; }
.checklist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.checklist div { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-muted); font-size: 13px; }
.empty-state { padding: 16px; border: 1px dashed var(--border); border-radius: 9px; background: var(--surface-muted); }
.empty-state strong { display: block; }
.empty-state p { margin: 3px 0 0; font-size: 12px; }
.loading { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; background: #fff; }
.mobile-drawer, .mobile-drawer-backdrop { display: none; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.error-page .card { max-width: 720px; width: 100%; }
code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
    .sidebar { display: none; }
    .mobile-menu-toggle { display: inline-grid; place-items: center; }
    .user-meta { display: none; }
    .page-container { padding: 18px; }
    .page-header { align-items: flex-start; flex-direction: column; }
    .grid-2, .checklist { grid-template-columns: 1fr; }
    .demo-row { grid-template-columns: 1fr; }
    .footer { flex-direction: column; padding: 16px 18px; }
    .mobile-drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.3); }
    .mobile-drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(300px, 86vw); display: block; background: #fff; padding: 16px; transform: translateX(-105%); transition: transform .18s ease; box-shadow: 12px 0 30px rgba(0,0,0,.12); }
    .mobile-drawer.open { transform: translateX(0); }
    .mobile-drawer-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .mobile-drawer nav { display: grid; gap: 4px; }
}
@media (max-width: 520px) { .topbar { padding: 0 14px; } .grid-4 { grid-template-columns: 1fr; } .topbar-actions { gap: 8px; } }

.auth-body{min-height:100vh;margin:0;display:flex;align-items:center;justify-content:center;background:#f4f7f9;padding:24px}.auth-shell{width:100%;max-width:460px}.auth-card{padding:32px}.auth-brand{display:flex;gap:12px;align-items:center;margin-bottom:28px}.auth-brand small{display:block;color:#6b7280;margin-top:3px}.auth-heading h1{margin:.25rem 0 .5rem}.auth-heading p:not(.eyebrow){color:#6b7280;margin-top:0}.form-stack{display:grid;gap:16px}.form-field{display:grid;gap:7px}.form-field input{width:100%;box-sizing:border-box}.form-field small{color:#6b7280}.btn-block{width:100%}.auth-link{text-align:center;margin:18px 0 0}.inline-form{display:inline-flex;margin:0}.btn-small{padding:8px 12px;font-size:.85rem}
.form-card{max-width:980px}.form-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:4px}.filter-grid{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:12px;align-items:end}.filter-actions{display:flex;gap:8px}.role-options{display:grid;gap:8px;padding:8px 0}.check-option{display:flex;gap:9px;align-items:center;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted);cursor:pointer}.check-option input{width:16px;height:16px}.action-row{display:flex;gap:6px;align-items:center}.btn-danger{background:#fff0f0;color:var(--danger);border-color:#f0caca}.badge-danger{background:#fff0f0;color:var(--danger)}.alert-success{background:#e8f5ee;border-color:#cce9d9;color:var(--success)}.alert-danger{background:#fff0f0;border-color:#f0caca;color:var(--danger)}.muted{color:var(--muted)}.detail-list{margin:0;display:grid;gap:0}.detail-list div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--border)}.detail-list div:last-child{border-bottom:0}.detail-list dt{color:var(--muted);font-size:12px}.detail-list dd{margin:0;text-align:right;font-weight:650}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.info-grid div{padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--surface-muted)}.info-grid span{display:block;color:var(--muted);font-size:11px}.info-grid strong{display:block;margin-top:4px}.user-menu-link{color:inherit}.user-menu-link:hover{opacity:.82}.nav-item.active{background:#eaf4f1;color:var(--primary-dark);font-weight:700}@media(max-width:900px){.filter-grid{grid-template-columns:1fr 1fr}.filter-actions{grid-column:1/-1}.info-grid{grid-template-columns:1fr}}@media(max-width:520px){.filter-grid{grid-template-columns:1fr}.filter-actions{grid-column:auto}.form-actions{flex-direction:column-reverse}.form-actions .btn{width:100%}}

/* Phase 5 UI polish */
:root{--bg:#f5f7f9;--surface:#fff;--surface-muted:#f8fafb;--text:#17211f;--muted:#687572;--border:#dfe6e4;--primary:#146b5a;--primary-dark:#0d5145;--shadow:0 4px 18px rgba(24,44,39,.055);--radius:14px}
body{font-size:14px}
.topbar{height:72px;padding:0 28px;box-shadow:0 1px 0 rgba(20,40,35,.02)}
.brand-link{font-size:15px}.brand-mark{width:38px;height:38px;border-radius:10px}
.topbar-actions{gap:12px}.topbar-actions .icon-button{background:#f8faf9;border-color:#e3e9e7}
.user-menu{padding:5px 8px;border-radius:10px}.user-menu:hover{background:#f5f8f7}.user-avatar{width:36px;height:36px}
.app-shell{min-height:calc(100vh - 72px)}
.sidebar{width:248px;flex-basis:248px;padding:22px 14px;position:sticky;top:72px;height:calc(100vh - 72px);overflow:auto}
.sidebar nav{gap:4px}.nav-item{min-height:42px;padding:10px 13px;font-size:13px}.nav-section{margin-top:22px}
.app-main{min-width:0}.page-container{width:min(1500px,100%);padding:30px 32px 36px}
.page-header{margin-bottom:24px;align-items:center}.page-header>div{min-width:0}.page-header h1{font-size:30px}.page-header .eyebrow{margin:0 0 4px}.page-header p{font-size:13px}
.grid{gap:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-4{gap:18px}
.section-gap{margin-top:20px}.card{padding:22px;border-radius:14px;box-shadow:var(--shadow)}.card-header{margin-bottom:18px}.card-header h2{font-size:16px}.card-header p{margin:4px 0 0;font-size:12px}
.form-stack{gap:18px}.form-field{gap:7px;min-width:0}.form-field>span{font-size:12px;font-weight:700;color:#34413e}.form-field input,.form-field select,.form-field textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #d7e0dd;border-radius:9px;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}.form-field textarea{min-height:100px;resize:vertical}.form-field input::placeholder{color:#9aa6a2}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#7db7aa;box-shadow:0 0 0 3px rgba(20,107,90,.10)}.form-field small{font-size:11px;line-height:1.45}
.filter-grid{padding:0;grid-template-columns:minmax(260px,2fr) minmax(150px,1fr) minmax(170px,1fr) auto}.filter-actions{align-self:end}.filter-actions .btn{min-width:82px}
.table-wrap{margin:0 -4px}.data-table{font-size:13px}.data-table th,.data-table td{padding:13px 12px}.data-table tbody tr:hover{background:#fafcfb}.data-table td:first-child{min-width:190px}.data-table th:last-child,.data-table td:last-child{text-align:right}.action-row{justify-content:flex-end;flex-wrap:wrap}.btn{min-height:40px;border-radius:9px}.btn-small{min-height:34px;padding:6px 10px;font-size:12px}
.pagination{justify-content:flex-end;align-items:center;margin-top:18px}.page-button{display:inline-grid;place-items:center;text-decoration:none;color:var(--text)}
.alert{margin-bottom:16px}.alert:last-child{margin-bottom:0}
.form-card{max-width:1050px}.form-actions{margin-top:2px;padding-top:18px;border-top:1px solid var(--border)}.role-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.check-option{min-height:44px;background:#fff}.check-option:hover{border-color:#b9ccc6;background:#f8fbfa}
.info-grid{gap:14px}.detail-list div{padding:14px 0}.detail-list dd{max-width:65%;overflow-wrap:anywhere}
.footer{padding:16px 32px;background:#fff}.auth-card{box-shadow:0 12px 40px rgba(20,45,38,.09)}
@media(max-width:1100px){.page-container{padding:24px}.filter-grid{grid-template-columns:1fr 1fr}.filter-actions{grid-column:1/-1}.role-options{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.topbar{padding:0 18px}.page-container{padding:20px 16px 28px}.page-header{gap:14px;align-items:flex-start}.page-header .btn{width:100%}.grid-2{grid-template-columns:1fr}.sidebar{display:none}.footer{padding:16px}.filter-grid{grid-template-columns:1fr}.filter-actions{grid-column:auto}.role-options{grid-template-columns:1fr}.table-wrap{margin:0 -10px;padding:0 10px}}
@media(max-width:520px){.topbar{height:64px;padding:0 12px}.app-shell{min-height:calc(100vh - 64px)}.page-container{padding:18px 12px 24px}.topbar-actions .icon-button{display:none}.topbar-actions{gap:5px}.brand-link{font-size:13px}.brand-mark{width:34px;height:34px}.user-menu{padding:3px}.user-avatar{width:34px;height:34px}.page-header h1{font-size:25px}.card{padding:17px}.form-actions{flex-direction:column-reverse}.form-actions .btn{width:100%}}
/* Phase 6 settings */
.settings-form{max-width:1180px}.settings-form .card{padding:24px}.settings-form .card-header h2{font-size:18px}.settings-form .card-header p{margin:5px 0 0}.settings-form .check-option{align-self:end;min-height:42px}.settings-form .form-actions{max-width:1180px}.settings-form .form-field textarea{min-height:90px}

/* Dashboard + mobile-first polish */
.dashboard-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;padding:4px 0 26px}.dashboard-hero h1{margin:4px 0 7px;font-size:30px;letter-spacing:-.025em}.dashboard-hero p{margin:0;color:var(--muted);max-width:650px}.dashboard-actions{display:flex;gap:8px;flex-wrap:wrap}.dashboard-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.dash-kpi{background:var(--surface);border:1px solid var(--border);border-radius:15px;padding:18px;display:flex;gap:13px;align-items:center;box-shadow:var(--shadow);min-width:0}.dash-kpi .kpi-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf6f3;color:var(--primary);font-size:19px;flex:0 0 auto}.dash-kpi div{min-width:0}.dash-kpi span:not(.kpi-icon){display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}.dash-kpi strong{display:block;font-size:25px;line-height:1.15;margin:4px 0}.dash-kpi small{display:block;color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-grid{display:grid;gap:20px}.dashboard-grid-main{grid-template-columns:minmax(0,1.5fr) minmax(300px,.9fr)}.dashboard-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:20px}.dashboard-table-card{margin-top:20px}.dashboard-chart-card{min-height:300px}.bar-chart{height:230px;display:flex;align-items:flex-end;gap:14px;padding:16px 6px 0;border-top:1px solid var(--border)}.bar-item{height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:28px}.bar-item span{font-size:11px;color:var(--muted)}.bar-value{font-size:11px;font-weight:700;color:var(--text);min-height:14px}.bar-track{width:min(34px,75%);height:175px;background:#eef3f1;border-radius:8px 8px 4px 4px;display:flex;align-items:flex-end;overflow:hidden}.bar-fill{width:100%;background:linear-gradient(180deg,#2c8b77,#146b5a);border-radius:7px 7px 3px 3px;min-height:8px}.invoice-status-list{display:grid;gap:18px;margin-top:10px}.status-row>div:first-child{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px}.status-row strong{font-size:12px}.status-track{height:8px;border-radius:99px;background:#edf1f0;overflow:hidden}.status-track span{display:block;height:100%;border-radius:99px;background:var(--primary)}.billing-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.billing-summary span{display:block;color:var(--muted);font-size:11px}.billing-summary strong{display:block;margin-top:4px;font-size:16px}.upcoming-list,.mini-list{display:grid;gap:7px}.upcoming-item,.mini-row{display:flex;align-items:center;gap:11px;padding:10px 8px;border-radius:10px;text-decoration:none;color:inherit}.upcoming-item:hover,.mini-row:hover{background:var(--surface-muted)}.date-tile{width:42px;height:44px;border-radius:10px;background:#edf6f3;color:var(--primary);display:grid;place-items:center;align-content:center;line-height:1}.date-tile b{font-size:15px}.date-tile small{font-size:9px;text-transform:uppercase;font-weight:800;margin-top:4px}.upcoming-copy,.mini-row>span:nth-child(2){min-width:0;flex:1}.upcoming-copy strong,.upcoming-copy small,.mini-row strong,.mini-row small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upcoming-copy small,.mini-row small{color:var(--muted);font-size:11px;margin-top:3px}.avatar-sm{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e9f1ef;color:var(--primary);font-size:11px;font-weight:800;flex:0 0 auto}.text-link{font-size:12px;color:var(--primary);font-weight:700;text-decoration:none}.text-link:hover{text-decoration:underline}.dashboard-table-card .card-header{align-items:center}
@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid-main{grid-template-columns:1fr}.dashboard-grid-secondary{grid-template-columns:1fr}}
@media(max-width:700px){.dashboard-hero{display:block;padding-bottom:18px}.dashboard-hero h1{font-size:24px}.dashboard-actions{margin-top:15px}.dashboard-actions .btn{flex:1;min-width:0}.dashboard-kpis{grid-template-columns:1fr 1fr;gap:10px}.dash-kpi{padding:14px 12px;border-radius:12px;gap:9px}.dash-kpi .kpi-icon{width:36px;height:36px;border-radius:10px;font-size:16px}.dash-kpi strong{font-size:20px}.dash-kpi small{font-size:10px}.bar-chart{gap:8px}.bar-track{width:26px}.dashboard-table-card .data-table{min-width:680px}.dashboard-chart-card{min-height:0}}
@media(max-width:420px){.dashboard-kpis{grid-template-columns:1fr}.dashboard-actions{display:grid}.dashboard-actions .btn{width:100%}.billing-summary{grid-template-columns:1fr}.card-header{gap:10px}}

.billing-status{padding:10px 12px;border:1px solid #cce9d9;background:#eaf7ef;color:#176b5b;border-radius:9px;font-size:12px}.mobile-bottom-nav{display:none}
@media (max-width:800px){body{padding-bottom:72px}.topbar{height:62px;box-shadow:0 2px 12px rgba(20,45,38,.06)}.page-container{padding:14px 12px}.card{padding:14px;border-radius:14px}.page-header{margin-bottom:14px}.page-header h1{font-size:24px}.btn{min-height:44px;border-radius:11px}.filter-card{position:sticky;top:62px;z-index:10}.data-table th,.data-table td{padding:10px 8px}.mobile-bottom-nav{position:fixed;display:grid;grid-template-columns:repeat(5,1fr);align-items:stretch;left:0;right:0;bottom:0;height:68px;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-top:1px solid var(--border);z-index:45;box-shadow:0 -6px 20px rgba(20,45,38,.08)}.mobile-bottom-nav a,.mobile-bottom-nav button{border:0;background:transparent;color:var(--muted);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:20px}.mobile-bottom-nav span{font-size:10px;font-weight:700}.mobile-bottom-nav a:hover,.mobile-bottom-nav button:hover{color:var(--primary)}.stat-card{min-height:105px}.grid-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.form-actions{flex-wrap:wrap}.form-actions .btn{flex:1 1 auto}.table-card{overflow:hidden}.table-wrap{margin:0 -2px}.mobile-drawer{border-radius:0 18px 18px 0}.dashboard-table-card .table-wrap{overflow-x:auto}}
@media(max-width:520px){.grid-4{grid-template-columns:1fr 1fr}.stat-value{font-size:20px}.page-header .btn{width:100%}.filter-grid{grid-template-columns:1fr}.filter-actions{display:grid;grid-template-columns:1fr 1fr}.form-field input,.form-field select,.form-field textarea{min-height:44px}.card-header{gap:10px}.data-table{font-size:12px}}
/* Premium navigation + dashboard refinement */
.sidebar{width:270px;flex-basis:270px;padding:20px 14px 24px;background:#fbfdfc;box-shadow:8px 0 30px rgba(20,45,38,.035);transition:width .22s ease,transform .22s ease}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:4px 10px 20px;margin-bottom:8px}.sidebar-brand-mark{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:12px;font-weight:850;box-shadow:0 6px 14px rgba(23,107,91,.18)}.sidebar-brand strong{display:block;font-size:15px;letter-spacing:-.02em}.sidebar-brand small{display:block;color:var(--muted);font-size:10px;margin-top:1px}.sidebar nav{gap:4px}.nav-item{min-height:46px;padding:10px 13px;border-radius:12px;gap:13px;font-size:15px;font-weight:600;color:#4f5f5a;transition:background .16s ease,color .16s ease,transform .16s ease}.nav-item:hover{transform:translateX(2px)}.nav-item.active{box-shadow:inset 3px 0 0 var(--primary);font-weight:750}.nav-icon{width:21px;height:21px;flex:0 0 21px}.nav-section{margin:22px 13px 7px;font-size:10px;color:#98a39f}.app-main{min-width:0}.premium-hero{padding-top:4px}.premium-hero h1{font-size:28px}.premium-kpis .dash-kpi{min-height:112px;padding:17px;border-radius:16px}.premium-kpis .kpi-icon{width:46px;height:46px;border-radius:14px;font-size:21px}.compact-header{align-items:center;margin-bottom:12px}.compact-header h2{font-size:16px}.mobile-drawer{width:min(340px,88vw);padding:18px 14px;border-radius:0 22px 22px 0}.mobile-drawer-header{padding:2px 4px 14px}.mobile-drawer .sidebar-brand{padding:0}.mobile-home-link,.mobile-nav-item{display:flex;align-items:center;gap:12px;min-height:50px;padding:10px 12px;border-radius:12px;color:#42514d;font-size:15px;font-weight:650}.mobile-home-link{background:#eaf4f1;color:var(--primary-dark);margin-bottom:10px}.mobile-nav-item:hover{background:#f4f8f6}.mobile-nav-section{padding:14px 12px 6px;color:#98a39f;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.12em}.mobile-nav-item+.mobile-nav-item{margin-top:2px}.mobile-menu-icon{width:24px;text-align:center;color:var(--primary);font-size:18px}.mobile-chevron{margin-left:auto;color:#9aa6a2;font-size:20px}.mobile-bottom-nav{height:76px}.mobile-bottom-nav a,.mobile-bottom-nav button{font-size:22px}.mobile-bottom-nav .bottom-icon{font-size:22px;line-height:1}.mobile-bottom-nav span:last-child{font-size:10px;margin-top:2px}
@media(max-width:800px){.sidebar{display:none}.page-container{padding:16px 14px 28px}.premium-hero h1{font-size:25px}.premium-kpis .dash-kpi{min-height:98px}.mobile-drawer{display:block}.mobile-bottom-nav{height:76px}}
/* Phase 18 - therapist clinical workspace */
.therapist-home-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:4px 0 22px}.therapist-home-head h1{font-size:30px;letter-spacing:-.03em;margin:4px 0 5px}.therapist-home-head p{margin:0;color:var(--muted);font-size:13px}.therapist-home-head .btn{display:inline-flex;align-items:center;gap:7px}.clinical-icon{width:21px;height:21px;display:block}.clinical-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.clinical-kpi{display:flex;align-items:center;gap:12px;padding:16px;background:var(--surface);border:1px solid var(--border);border-radius:16px;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:transform .16s ease,box-shadow .16s ease}.clinical-kpi:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,45,38,.08)}.clinical-kpi>span:nth-child(2){min-width:0;flex:1}.clinical-kpi small,.clinical-kpi strong{display:block}.clinical-kpi small{font-size:11px;color:var(--muted);font-weight:700}.clinical-kpi strong{font-size:25px;line-height:1.15;margin-top:4px}.clinical-kpi>b{color:#9aa6a2;font-size:22px}.clinical-kpi-icon{width:45px;height:45px;border-radius:14px;display:grid;place-items:center;background:#eaf5f1;color:var(--primary);flex:0 0 auto}.clinical-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.8fr);gap:20px}.section-subtitle{display:block;color:var(--muted);font-size:11px;margin-top:3px}.clinical-session-list{display:grid;gap:7px}.clinical-session{display:flex;align-items:center;gap:11px;padding:11px 9px;border-radius:12px;color:inherit;text-decoration:none;border:1px solid transparent}.clinical-session:hover{background:var(--surface-muted);border-color:var(--border)}.time-pill{width:54px;min-height:44px;border-radius:11px;background:#eef6f3;color:var(--primary);display:grid;place-items:center;align-content:center;font-size:13px;font-weight:800;line-height:1}.time-pill small{font-size:8px;margin-top:3px;letter-spacing:.08em}.clinical-session-copy{min-width:0;flex:1}.clinical-session-copy strong,.clinical-session-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.clinical-session-copy small{color:var(--muted);font-size:11px;margin-top:3px}.session-status{font-size:10px;font-weight:800;padding:5px 8px;border-radius:99px;background:#f2f4f3;color:#68736f;white-space:nowrap}.session-status.done{background:#e9f7ef;color:#176b5b}.clinical-empty{min-height:190px;display:grid;place-items:center;align-content:center;gap:5px;text-align:center;color:var(--muted)}.clinical-empty span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#eaf7ef;color:#176b5b;font-size:19px}.clinical-empty strong{color:var(--text);font-size:14px}.clinical-empty small{font-size:11px}.clinical-empty.compact{min-height:120px}.clinical-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.clinical-shortcuts a{display:flex;align-items:center;gap:12px;padding:14px 15px;border:1px solid var(--border);background:var(--surface);border-radius:14px;text-decoration:none;color:inherit;box-shadow:var(--shadow)}.clinical-shortcuts a:hover{border-color:#b9d8cf}.clinical-shortcuts a>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#edf6f3;color:var(--primary)}.clinical-shortcuts strong,.clinical-shortcuts small{display:block}.clinical-shortcuts strong{font-size:13px}.clinical-shortcuts small{font-size:10px;color:var(--muted);margin-top:2px}.clinical-shortcuts .clinical-icon{width:19px;height:19px}
@media(max-width:1000px){.clinical-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.clinical-grid{grid-template-columns:1fr}}
@media(max-width:700px){.therapist-home-head{display:block;padding-bottom:16px}.therapist-home-head h1{font-size:25px}.therapist-home-head .dashboard-actions{margin-top:14px;display:grid;grid-template-columns:1fr 1fr}.therapist-home-head .btn{justify-content:center}.clinical-kpis{grid-template-columns:1fr 1fr;gap:9px}.clinical-kpi{padding:13px 11px;border-radius:13px;gap:9px}.clinical-kpi-icon{width:38px;height:38px;border-radius:11px}.clinical-kpi strong{font-size:20px}.clinical-kpi>b{font-size:18px}.clinical-session{padding:10px 6px}.session-status{display:none}.clinical-shortcuts{grid-template-columns:1fr;gap:8px}.clinical-shortcuts a{padding:12px}.clinical-grid{gap:12px}.clinical-today-card,.clinical-upcoming-card{padding:13px}}
@media(max-width:390px){.therapist-home-head .dashboard-actions{grid-template-columns:1fr}.clinical-kpis{grid-template-columns:1fr}.clinical-kpi{min-height:72px}}

/* Mobile navigation reliability + scrolling */
@media (max-width: 800px) {
    html.mobile-menu-open,
    body.mobile-menu-open { overflow: hidden; }
    .mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        display: block;
        background: rgba(12, 25, 22, .42);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }
    .mobile-drawer-backdrop[hidden] { display: none !important; }
    .mobile-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 9999;
        width: min(360px, 88vw);
        max-width: 100%;
        height: 100dvh;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        padding: max(16px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        transform: translate3d(-105%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition: transform .24s ease, visibility 0s linear .24s;
        box-shadow: 14px 0 40px rgba(15, 35, 30, .18);
    }
    .mobile-drawer.open {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition: transform .24s ease, visibility 0s linear 0s;
    }
    .mobile-drawer-header {
        flex: 0 0 auto;
        position: sticky;
        top: 0;
        z-index: 2;
        background: #fff;
        padding: 2px 2px 14px;
    }
    .mobile-drawer nav { display: grid; gap: 3px; padding-bottom: 20px; }
    .mobile-nav-item,
    .mobile-home-link {
        flex: 0 0 auto;
        min-height: 52px;
        box-sizing: border-box;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .mobile-nav-item:active,
    .mobile-home-link:active { transform: scale(.99); background: #edf6f3; }
    .mobile-bottom-nav {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(76px + env(safe-area-inset-bottom));
        z-index: 10000;
    }
    .mobile-bottom-nav button {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Mobile navigation icons + profile card */
.mobile-nav-svg{width:22px;height:22px;min-width:22px;flex:0 0 22px;display:block;color:var(--primary)}
.mobile-profile-card{display:flex;align-items:center;gap:11px;margin:0 0 10px;padding:11px 12px;border:1px solid var(--border);border-radius:14px;background:#f8fbfa;color:inherit;text-decoration:none;min-height:58px;box-sizing:border-box}
.mobile-profile-card:hover{background:#f1f7f4;border-color:#c9ddd7}
.mobile-profile-avatar{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:0 0 38px;background:var(--primary);color:#fff;font-size:12px;font-weight:800}
.mobile-profile-copy{min-width:0;flex:1}.mobile-profile-copy strong,.mobile-profile-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-profile-copy strong{font-size:13px}.mobile-profile-copy small{font-size:10px;color:var(--muted);margin-top:2px}
.mobile-profile-card>.mobile-nav-svg{color:var(--muted);width:20px;height:20px}
.mobile-home-link .mobile-nav-svg{width:21px;height:21px}
.mobile-nav-item .mobile-nav-svg{width:21px;height:21px}
.mobile-bottom-nav .mobile-nav-svg{width:22px;height:22px;margin:0 auto}
.mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px}
@media(max-width:800px){.mobile-drawer nav{padding-bottom:28px}.mobile-profile-card{flex:0 0 auto}.mobile-nav-item,.mobile-home-link{gap:13px}.mobile-nav-item .mobile-chevron{margin-left:auto}.mobile-bottom-nav .mobile-nav-svg{width:23px;height:23px}.mobile-bottom-nav span:last-child{font-size:10px}}


/* Phase 22.5 — Login + role dashboards polish */
.auth-body{background:radial-gradient(circle at top,#eaf5f1 0,#f6f8f7 48%,#eef2f1 100%);padding:20px}
.auth-shell{max-width:430px}.auth-card{padding:34px 32px 22px;border-radius:22px;box-shadow:0 20px 60px rgba(18,55,45,.10);border-color:#dbe6e2}
.login-brand{display:flex;align-items:center;gap:13px;margin-bottom:30px}.login-logo{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:var(--primary);color:#fff;font-weight:850;font-size:18px;letter-spacing:-.04em;box-shadow:0 8px 18px rgba(23,107,91,.2)}
.login-brand-name{font-size:18px;font-weight:800;letter-spacing:-.02em}.login-brand-subtitle{font-size:11px;color:var(--muted);margin-top:2px}.login-intro{margin-bottom:22px}.login-intro h1{font-size:30px;line-height:1.1;margin:5px 0 8px;letter-spacing:-.04em}.login-intro p:last-child{margin:0;color:var(--muted);font-size:14px}.login-alert{margin-bottom:16px}.login-form{gap:15px}.form-field>span{font-size:12px;font-weight:750;color:#43514d}.form-field input{min-height:48px;border:1px solid #ccd9d5;border-radius:11px;padding:10px 12px;background:#fff;outline:none;transition:border-color .15s,box-shadow .15s}.form-field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(23,107,91,.10)}.password-wrap{position:relative}.password-wrap input{padding-right:68px}.password-toggle{position:absolute;right:8px;top:7px;height:34px;padding:0 9px;border:0;border-radius:8px;background:#eef5f2;color:var(--primary-dark);font-size:11px;font-weight:800}.login-submit{min-height:48px;border-radius:11px;font-size:14px;margin-top:3px}.login-link{text-align:center;margin:17px 0 2px}.login-link a{font-size:12px;font-weight:750;color:var(--primary-dark)}.auth-secure-note{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:20px;color:#84918d;font-size:10px}.auth-secure-note span{font-size:9px;color:var(--success)}
.role-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px;padding:2px 0}.role-hero h1{font-size:30px;letter-spacing:-.04em;margin:4px 0 4px}.role-hero p{margin:0;color:var(--muted);font-size:13px}.dashboard-actions{display:flex;gap:8px;flex-wrap:wrap}.dashboard-icon{width:20px;height:20px;display:block;flex:0 0 20px}.dashboard-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.dashboard-stat{min-height:104px;background:#fff;border:1px solid var(--border);border-radius:15px;padding:15px;display:flex;align-items:center;gap:12px;box-shadow:var(--shadow);transition:transform .15s,border-color .15s}.dashboard-stat:hover{transform:translateY(-1px);border-color:#c9dcd6}.dashboard-stat .stat-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#eaf4f1;color:var(--primary);flex:0 0 42px}.dashboard-stat span:nth-child(2){min-width:0;display:grid}.dashboard-stat small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7a8783;font-weight:800}.dashboard-stat strong{font-size:24px;line-height:1.05;letter-spacing:-.04em;margin-top:3px}.dashboard-stat em{font-style:normal;color:var(--muted);font-size:10px;margin-top:3px}.dashboard-stat>b{margin-left:auto;color:#9aa6a2;font-size:22px}.dashboard-two-col{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin-bottom:16px}.dashboard-two-col>.card{min-width:0}.dashboard-list{display:grid;gap:2px}.dashboard-list-row{display:flex;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px solid #edf1ef}.dashboard-list-row:last-child{border-bottom:0}.dashboard-list-row:hover{background:#fafcfb}.list-time{width:54px;text-align:center;font-weight:800;font-size:13px;line-height:1.05;color:var(--primary-dark)}.list-time small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.list-main{min-width:0;flex:1}.list-main strong,.list-main small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.list-main strong{font-size:13px}.list-main small{font-size:11px;color:var(--muted);margin-top:2px}.list-status{font-size:10px;font-weight:800;padding:5px 7px;border-radius:999px;background:#f0f3f2;color:#6d7975}.list-status.done{background:#e8f5ee;color:var(--success)}.dashboard-list-row>b{color:#a0aaa7}.date-tile{width:42px;height:42px;border-radius:11px;background:#edf5f2;display:grid;place-items:center;align-content:center;line-height:1}.date-tile b{font-size:16px;color:var(--primary-dark)}.date-tile small{font-size:8px;text-transform:uppercase;color:var(--muted);margin-top:2px}.clean-empty{padding:24px 10px;text-align:center;color:var(--muted)}.clean-empty span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;margin:0 auto 8px;background:#e8f5ee;color:var(--success);font-weight:800}.clean-empty strong{display:block;color:var(--text);font-size:13px}.clean-empty small{font-size:11px}.dashboard-quick-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}.dashboard-quick-grid a{background:#fff;border:1px solid var(--border);border-radius:14px;padding:15px;display:grid;gap:4px}.dashboard-quick-grid a>span{width:38px;height:38px;border-radius:11px;background:#edf5f2;color:var(--primary);display:grid;place-items:center;margin-bottom:4px}.dashboard-quick-grid strong{font-size:13px}.dashboard-quick-grid small{color:var(--muted);font-size:10px}.bar-chart{height:230px;display:flex;align-items:end;gap:10px;padding:12px 2px 2px}.bar-item{height:100%;flex:1;display:grid;grid-template-rows:18px 1fr 18px;gap:4px;text-align:center;min-width:0}.bar-value{font-size:10px;color:var(--muted)}.bar-track{height:100%;display:flex;align-items:end;background:#f1f5f3;border-radius:7px;overflow:hidden}.bar-fill{width:100%;background:linear-gradient(180deg,#2d8a76,#176b5b);border-radius:7px 7px 0 0;min-height:4px}.bar-item>span{font-size:9px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}.invoice-status-list{display:grid;gap:12px}.status-row>div:first-child{display:flex;justify-content:space-between;font-size:11px}.status-row strong{font-size:12px}.status-track{height:7px;margin-top:5px;background:#eef2f1;border-radius:999px;overflow:hidden}.status-track span{display:block;height:100%;background:var(--primary);border-radius:999px}.billing-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}.billing-summary span{display:block;color:var(--muted);font-size:10px}.billing-summary strong{font-size:16px}.admin-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-quick-links a{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--border);border-radius:11px;font-size:12px;font-weight:750}.admin-quick-links a:hover{background:#f7faf8}.admin-quick-links .dashboard-icon{color:var(--primary)}
@media(max-width:1000px){.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-two-col{grid-template-columns:1fr}}
@media(max-width:800px){.role-hero{align-items:flex-start;flex-direction:column}.role-hero h1{font-size:27px}.dashboard-actions{width:100%}.dashboard-actions .btn{flex:1}.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-stat{min-height:96px;padding:12px}.dashboard-stat strong{font-size:21px}.dashboard-stat .stat-icon{width:38px;height:38px;flex-basis:38px}.dashboard-quick-grid{grid-template-columns:1fr}.bar-chart{height:190px}}
@media(max-width:480px){.auth-body{padding:12px}.auth-card{padding:28px 20px 20px;border-radius:18px}.login-brand-name{font-size:16px}.login-intro h1{font-size:27px}.dashboard-stat-grid{grid-template-columns:1fr 1fr}.dashboard-stat{gap:8px}.dashboard-stat .stat-icon{width:34px;height:34px;flex-basis:34px}.dashboard-stat .dashboard-icon{width:17px;height:17px}.dashboard-stat strong{font-size:20px}.dashboard-stat small{font-size:9px}.dashboard-stat em{font-size:9px}.list-status{display:none}}

.error-message{font-size:1rem;line-height:1.6;margin:1rem 0 1.5rem;color:var(--text,#334155)}


/* Grow Tool Therapies brand refresh — light blue */
:root{
    --primary:#0AA9E8;
    --primary-dark:#0787C0;
    --primary-soft:#EAF8FF;
    --primary-border:#CDEEFF;
    --bg:#F6FAFC;
    --surface:#FFFFFF;
    --surface-muted:#F8FCFE;
    --border:#DCEBF2;
    --text:#14212A;
    --muted:#667782;
    --shadow:0 8px 28px rgba(8,92,132,.07);
}
.brand-mark,
.sidebar-brand-mark,
.mobile-profile-avatar{background:var(--primary);box-shadow:0 6px 16px rgba(10,169,232,.18)}
.btn-primary{background:var(--primary);border-color:var(--primary)}
.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark)}
.page-button.active{background:var(--primary);border-color:var(--primary)}
.nav-item.active{background:var(--primary-soft);color:var(--primary-dark)}
.nav-item:hover{background:#F0FAFF;color:var(--primary-dark)}
.eyebrow{color:var(--primary-dark)}
.spinner{border-top-color:var(--primary)}
.mobile-nav-svg{color:var(--primary)}
.mobile-home-link{color:var(--primary-dark)}
.mobile-nav-item:hover{background:var(--primary-soft)}
.mobile-bottom-nav a.active,
.mobile-bottom-nav button.active{color:var(--primary-dark)}
a{color:inherit}
.topbar .brand-link:hover{color:var(--primary-dark)}
.auth-body{
    background:
      radial-gradient(circle at 50% 0%, #E9F8FF 0, #F7FBFD 45%, #F1F7FA 100%);
}
.auth-card{
    border-color:#D8EAF2;
    box-shadow:0 20px 60px rgba(6,92,132,.10);
}
.login-branding{text-align:center;margin:0 auto 24px}
.login-logo-image{
    display:block;
    width:min(230px,82%);
    max-height:150px;
    object-fit:contain;
    object-position:center;
    margin:0 auto;
}
.login-intro{text-align:center;margin-bottom:24px}
.login-intro h1{
    color:#42B8ED;
    font-size:25px;
    font-weight:800;
    letter-spacing:-.025em;
    margin:0 0 8px;
}
.login-intro p{color:#61717B;font-size:14px;margin:0}
.login-form{gap:15px}
.login-form .form-field input{
    background:#EAF2FF;
    border-color:#D3E0EE;
    min-height:50px;
    border-radius:11px;
}
.login-form .form-field input:focus{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(10,169,232,.14);
    outline:none;
}
.password-wrap{
    display:flex;
    align-items:center;
    gap:0;
    background:#EAF2FF;
    border:1px solid #D3E0EE;
    border-radius:11px;
    overflow:hidden;
}
.password-wrap:focus-within{
    border-color:var(--primary);
    box-shadow:0 0 0 3px rgba(10,169,232,.14);
}
.password-wrap input{
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    min-width:0;
}
.password-toggle{
    border:0;
    background:#F4F9FF;
    color:#075E7F;
    font-weight:800;
    padding:8px 13px;
    margin-right:5px;
    border-radius:9px;
}
.login-submit{
    min-height:48px;
    border-radius:11px;
    font-size:14px;
    margin-top:2px;
}
.login-link{text-align:center;margin:18px 0 0}
.login-link a{color:#075E7F;font-weight:800}
.auth-secure-note{color:#7A8A93}
.auth-secure-note span{color:var(--primary)}
.sidebar-brand{align-items:center}
.sidebar-brand-mark{background:var(--primary)}



/* Invoice line-item editor */
.invoice-item-actions{display:flex;align-items:center;gap:16px}
.invoice-item-actions strong{font-size:15px;white-space:nowrap}
#invoice-items tbody tr.invoice-row-invalid{background:#fff5f5}
#invoice-items tbody tr.invoice-row-invalid input,
#invoice-items tbody tr.invoice-row-invalid select{border-color:#d66}
@media(max-width:800px){
  .invoice-item-actions{width:100%;justify-content:space-between}
  #invoice-items{min-width:760px}
}

.invoice-live-summary{display:flex;justify-content:flex-end;margin:16px 0;font-size:1rem}.invoice-live-summary>div{min-width:220px;padding:14px 18px;border:1px solid #d9e2ea;border-radius:12px;display:flex;justify-content:space-between;gap:24px}.invoice-live-summary strong{font-size:1.2rem}
