:root{--navy:#051528;--orange:#fa4616;--blue:#7ba6e7;--ink:#152538;--muted:#697787;--line:#e5e9ef;--surface:#f5f7fa;--radius:14px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px}*{box-sizing:border-box}body{margin:0;background:var(--surface)}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input{outline-offset:4px}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;letter-spacing:-1px;margin-bottom:12px;font-weight:600}h2{font-size:18px;margin-bottom:6px}small{font-size:12px;color:var(--muted)}.muted{color:var(--muted);line-height:1.6}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--muted);margin-bottom:12px}.skip{position:absolute;left:-1000px;top:12px;background:white;padding:16px;z-index:10}.skip:focus{left:20px}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--navy);color:#d4dfeb;padding:30px 20px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;color:white;font-size:23px;letter-spacing:-1px;font-weight:600}.brand-mark{width:29px;height:29px;margin-right:9px;background:var(--orange);display:inline-grid;place-items:center;font-size:20px;font-weight:800;clip-path:polygon(50% 0,100% 100%,0 100%);color:white;padding-top:5px}.brand-dot{color:var(--orange)}.workspace-label{color:#708296;font-size:9px;font-weight:600;letter-spacing:2px;margin:45px 14px 17px}.nav-link{padding:14px 12px;display:flex;gap:10px;border-radius:8px;font-size:13px;margin-bottom:8px;color:#9cafc5}.nav-link span{font-size:17px;line-height:17px}.nav-link.active{background:#182c43;color:white;box-shadow:inset 3px 0 var(--orange)}.nav-link:hover{color:white;background:#12253a}.sidebar-note{margin:auto 10px 24px;border-top:1px solid #233447;padding-top:24px;font-size:11px;color:#98acc3}.sidebar-note strong{display:block;font-size:16px;letter-spacing:1px;color:#dbe4ef;margin:11px 0 7px}.sidebar-note small{font-size:10px;color:#71869f}.status-dot{display:inline-block;width:7px;height:7px;background:#4d9d87;border-radius:50%;margin-right:7px;flex-shrink:0}.status-dot.warning{background:#c18a32}.profile{display:flex;gap:11px;align-items:center;border-top:1px solid #233447;padding:20px 8px 0}.profile strong{display:block;font-size:12px;color:#e2e9f2}.profile small{color:#7f94ad;font-size:10px}.profile form{margin-left:auto}.avatar{width:34px;height:34px;border-radius:50%;background:#304a6a;color:#b8cff0;display:grid;place-items:center;font-size:10px}.logout{background:none;border:0;color:#9cafc5;font-size:11px;cursor:pointer;padding:4px}.main{margin-left:248px;padding:0 40px 24px;max-width:1920px}.topbar{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted);gap:20px}.topbar strong{color:#304358;font-weight:500}.divider{color:#bbc3ce;padding:0 12px}.tag{font-size:9px;letter-spacing:1px;font-weight:600;border:1px solid #dce2eb;border-radius:5px;padding:7px 9px;color:#728093;background:#fff}.page-heading{padding:34px 0 26px;display:flex;gap:20px;align-items:center;justify-content:space-between}.page-heading p:last-child{margin-bottom:0;font-size:12px}.button{border:0;background:var(--orange);color:white;display:inline-flex;justify-content:center;align-items:center;gap:20px;border-radius:7px;padding:12px 17px;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}.button:hover{filter:brightness(.96)}.button.secondary{background:white;border:1px solid #dce2e9;color:#33465b}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:23px 22px;min-height:150px}.stat-card>span{font-size:11px;color:var(--muted);display:block;margin-bottom:15px}.stat-card>strong{display:block;font-size:32px;letter-spacing:-1px;font-weight:600;margin-bottom:12px}.stat-card em{font-size:19px;font-style:normal;color:#b1bbc8;font-weight:400}.stat-card small{font-size:10px}.stat-card .date-stat{font-size:24px;padding:5px 0}.stat-card .mode-stat{font-size:22px;padding:7px 0}.accent-card{background:#f0f5fd;border-color:#dce7f7}.accent-card>span{color:#5575a1}.accent-card>strong{color:#24476f}.sync-bar{display:flex;align-items:center;gap:10px;padding:16px 20px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:24px}.sync-bar strong{display:block;font-size:12px;margin-bottom:4px}.sync-bar small{font-size:10px}.sync-bar>.text-link{margin-left:auto;white-space:nowrap}.sync-bar details{font-size:11px;margin-top:10px;max-width:700px;overflow-wrap:anywhere}.sync-bar details p{margin-top:10px}.sync-bar summary{cursor:pointer;color:#476b95}.text-link{font-size:11px;color:#486c97;font-weight:600}.text-link:hover{text-decoration:underline}.panel{border:1px solid var(--line);border-radius:var(--radius);background:white;overflow:hidden}.panel-heading{padding:24px;display:flex;gap:20px;align-items:center;justify-content:space-between}.panel-heading p{font-size:11px;color:var(--muted);margin:0}.count{font-size:11px;border-radius:6px;background:#f0f3f7;color:#67798e;padding:6px 9px}.filters{display:flex;gap:12px;align-items:flex-end;padding:0 24px 22px;flex-wrap:wrap}.filters .search-field{flex:1;min-width:190px;max-width:380px;margin-right:auto}label{font-size:11px;display:block;margin-bottom:7px;color:#617285}input{border:1px solid #dce2e9;border-radius:6px;background:#fff;padding:10px 12px;color:#334459;max-width:100%;min-height:39px}input::placeholder{color:#96a1af}.search-field input{width:100%}.filters .muted{font-size:11px;align-self:center;margin-left:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:11px;white-space:nowrap}th{text-align:left;color:#758497;font-size:10px;font-weight:500;background:#f8fafc;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:13px 18px}td{padding:19px 18px;border-bottom:1px solid #edf0f4}td:first-child,th:first-child{padding-left:24px}tbody tr:last-child td{border-bottom:0}.numeric{text-align:right;font-variant-numeric:tabular-nums}.numeric small{font-size:9px;color:#8492a3}.bold{font-weight:600}.client-name{font-size:12px;font-weight:600;margin-bottom:6px;max-width:260px;white-space:normal;overflow-wrap:anywhere}.client-name a:hover{color:var(--orange)}td small{font-size:10px;color:#8a97a7}.block{display:block;margin-top:5px;font-size:9px}.badge{padding:5px 7px;border-radius:4px;font-size:9px;display:inline-block}.badge.good{background:#edf6f2;color:#4d846f}.badge.pending{background:#fff6e8;color:#9d763c}.panel-footer{padding:17px 24px;background:#fcfdfe;border-top:1px solid var(--line);font-size:10px;color:#8390a1;line-height:1.7}.empty-state{text-align:center;padding:60px 20px}.empty-state h3{font-size:18px;margin-bottom:12px}.empty-state p{font-size:12px;color:#7d8b9b;line-height:1.9;margin-bottom:18px}.empty-icon{display:inline-grid;place-items:center;width:52px;height:52px;background:#f0f4fa;border:1px solid #e5ebf4;border-radius:12px;color:#88a3c6;font-size:26px;margin-bottom:20px}.notice{padding:17px 20px;border:1px solid #f0dfbf;background:#fffbf3;color:#8d6b38;border-radius:10px;font-size:12px;line-height:1.8;margin-bottom:24px}.demo-notice{border-color:#d8e4f5;background:#eff5ff;color:#4f709b}.notice.error{color:#a24135;border-color:#f2d6d1;background:#fff5f2}.page-footer{display:flex;justify-content:space-between;margin-top:25px;font-size:10px;color:#9aa5b3}.pagination{display:flex;gap:18px;align-items:center;justify-content:flex-end;padding:18px 24px;font-size:11px;color:var(--muted)}.login-main{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:white}.login-art{background:var(--navy);color:#d9e4f1;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-art::after{content:"";position:absolute;border:1px solid #19304c;width:450px;height:450px;transform:rotate(35deg);bottom:-250px;right:-170px;pointer-events:none}.login-art .eyebrow{color:#7893b5}.login-art h1{font-size:54px;line-height:1.2;margin-top:22px;letter-spacing:-2px}.login-art p{color:#8fa5c0;line-height:1.8;font-size:15px}.login-art small{color:#5e7591}.login-panel{display:grid;place-items:center;padding:50px 30px}.login-form{width:100%;max-width:340px}.login-form h2{font-size:29px;margin:14px 0}.login-form .muted{font-size:12px;margin-bottom:34px}.login-form label{margin-top:20px}.login-form input{width:100%;padding:13px}.login-form .button{width:100%;margin-top:26px;justify-content:space-between;padding:15px}.fine-print{font-size:10px;color:#99a5b2;line-height:1.9;margin-top:25px}@media(min-width:1700px){.main{padding-left:60px;padding-right:60px}.stat-card{padding:27px}.client-name{max-width:340px}}@media(max-width:1200px){.main{padding:0 24px 24px}.sidebar{width:220px;padding:28px 16px 18px}.main{margin-left:220px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start}.page-heading>.button{margin-top:22px}.brand{font-size:21px}.login-art{padding:40px}.login-art h1{font-size:44px}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:18px 20px;display:block}.sidebar .brand{font-size:21px}.workspace-label,.sidebar-note,.profile{display:none}.sidebar nav{display:flex;gap:8px;margin-top:18px;overflow:auto}.nav-link{margin:0;font-size:11px;padding:11px;white-space:nowrap}.main{margin:0;padding:0 16px 20px}.topbar{height:58px;font-size:10px}.tag{font-size:8px}.page-heading{padding:25px 0 22px;display:block}h1{font-size:27px}.page-heading>.button{margin-top:18px}.stat-grid{gap:10px;margin-bottom:16px}.stat-card{padding:17px 14px;min-height:136px}.stat-card>strong{font-size:27px}.stat-card .date-stat{font-size:19px}.stat-card .mode-stat{font-size:18px}.stat-card small{font-size:9px}.sync-bar{padding:15px;align-items:flex-start;flex-wrap:wrap;gap:8px}.sync-bar .status-dot{margin-top:4px}.sync-bar>div{flex:1;min-width:200px}.sync-bar>.text-link{margin-left:15px}.panel-heading{padding:20px 16px}.panel-heading p{font-size:10px;line-height:1.6}.filters{padding:0 16px 20px;gap:10px}.filters .search-field{flex-basis:100%;max-width:none}.filters input{font-size:12px}.filters .muted{margin:0}.panel-footer{padding:15px 16px}.page-footer{font-size:9px;gap:12px}.login-main{grid-template-columns:1fr}.login-art{min-height:210px;padding:27px}.login-art>div:nth-child(2){margin-top:30px}.login-art h1{font-size:30px;letter-spacing:-1px;margin-top:8px}.login-art p:not(.eyebrow),.login-art small{display:none}.login-art h1 br{display:none}.login-panel{padding:38px 25px 50px}.login-form h2{font-size:26px}}
@media(max-width:760px){.sidebar .profile{display:flex;position:absolute;right:16px;top:13px;border:0;padding:0}.sidebar .profile>.avatar,.sidebar .profile>div:not(.avatar){display:none}.sidebar .profile .logout{padding:4px 10px}}

.settings-form{padding:24px;display:flex;flex-direction:column;gap:12px;max-width:600px}.settings-form input,.settings-form select{box-sizing:border-box;max-width:100%;width:100%;padding:12px;border:1px solid #dbe2eb;border-radius:6px;background:white;color:#051528;font:inherit}.settings-form .button{align-self:flex-start}.balance-editor{display:grid;grid-template-columns:1fr 1fr}.balance-editor .panel-heading{grid-column:1/-1}.notice a{overflow-wrap:anywhere}td form{display:inline-block;margin:4px}@media(max-width:800px){.balance-editor{display:block}.settings-form{padding:18px}}

.brand-logo{display:block;width:188px;height:auto;max-width:100%}.login-art .brand-logo{width:216px}.brand-mark,.brand-dot{display:none}.settings-form h3{margin:0;font-size:17px}.settings-form label{margin:2px 0 0}.settings-form .muted{font-size:12px;margin-bottom:0}.panel+.panel{margin-top:24px}.balance-editor{scroll-margin-top:20px}table{font-size:12px}th{font-size:11px}td small{font-size:11px}.nav-link{font-size:12px}.panel-footer{font-size:11px}.badge{font-size:10px}.client-name{font-size:13px}.login-art h1{font-weight:700;letter-spacing:-.03em}.sidebar .brand{min-height:30px}select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}.balance-editor .settings-form{min-width:0}.settings-form h2{margin-bottom:6px}@media(max-width:760px){.sidebar .brand-logo{width:154px}.login-art .brand-logo{width:185px}.sidebar .profile .logout{font-size:11px}.sidebar nav{padding-bottom:4px}.table-wrap{max-width:100%}}

.nav-heading{font-size:9px;letter-spacing:1.6px;color:#90a2b8;padding:20px 13px 10px}.nav-link.planned{color:#a0adbd;cursor:default}.planned-label{margin-left:auto;font-size:9px;font-weight:400;border:1px solid #334359;border-radius:4px;padding:3px 5px}.nav-link.planned:hover{background:transparent}.nav-link.planned .nav-icon{opacity:.7}@media(max-width:760px){.nav-heading{display:none}.planned-label{font-size:8px}}

.nav-link svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}

@media(min-width:761px){.sidebar{overflow-y:auto}.sidebar>*{flex-shrink:0}}
/* Client controls remain local to the independent application. */
.filters select {min-height:40px;max-width:100%;border:1px solid var(--line);border-radius:6px;padding:8px;background:#fff;color:var(--ink);font:inherit}
.heading-actions {display:flex;flex-wrap:wrap;gap:10px}
.settings-form .check-label {display:flex;align-items:center;gap:10px;line-height:1.5}
.settings-form .check-label input {width:18px;height:18px;min-height:18px;flex:0 0 18px;accent-color:#fa4616}
.sort-link {color:inherit;text-decoration:none;white-space:nowrap;display:block;padding:4px 0}
.sort-link:hover {color:#fa4616;text-decoration:underline}
.clients-table {min-width:1560px}
.clients-table th:first-child,.clients-table td:first-child {min-width:220px;position:sticky;left:0;background:#fff;z-index:1}
.clients-table th:first-child {background:#f5f7fa;z-index:2}
.clients-table td small {white-space:normal}
.nav-heading {margin-top:18px}
@media(max-width:768px) {.heading-actions{width:100%}.filters>div{max-width:100%}.clients-table th:first-child,.clients-table td:first-child{position:static}.settings-form select{max-width:100%}}

/* Client actions remain visible inside the sticky name column. */
.client-identity{display:flex;align-items:center;justify-content:space-between;gap:12px}.client-identity>div{min-width:0}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border:1px solid #dce2e9;border-radius:7px;background:#fff;color:#53687f}.icon-button:hover{background:#f2f5f9;color:var(--navy);border-color:#b9c6d5}.icon-button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.icon-button svg{width:19px;height:19px}.usage-details{display:grid;grid-template-columns:1fr 1fr;gap:28px;padding:0 24px 24px;font-size:12px;line-height:1.7;color:#617285}.usage-details h3{color:var(--navy);font-size:14px}.usage-details a{overflow-wrap:anywhere}@media(max-width:768px){.usage-details{grid-template-columns:1fr;gap:12px}}

/* Compact native scrollbars retain keyboard, touch and high-contrast support. */
*{scrollbar-width:thin;scrollbar-color:#aebccd transparent}*::-webkit-scrollbar{width:7px;height:7px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background:#aebccd;border-radius:8px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background:#7f94ad;background-clip:padding-box}*::-webkit-scrollbar-corner{background:transparent}.sidebar{scrollbar-color:#40536a transparent}.table-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.section-tabs{display:flex;align-items:center;gap:6px;overflow-x:auto;max-width:100%;border-bottom:1px solid var(--line);margin:0 0 24px;padding:0 2px;white-space:nowrap}.section-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px;border-bottom:3px solid transparent;color:#65788e;font-size:12px;font-weight:600;flex-shrink:0}.section-tabs a:hover{background:#eef2f7;color:var(--navy)}.section-tabs a[aria-current=page]{color:var(--navy);border-bottom-color:var(--orange)}.section-tabs a:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}.section-tabs .tab-settings{margin-left:auto}.tab-settings svg{width:19px;height:19px}.period-panel{margin-bottom:24px}.period-panel .filters{padding:18px 24px}.spend-chart{padding:0 24px 16px}.spend-chart svg{width:100%;max-height:300px;display:block}.chart-bar{fill:#fa4616}.chart-baseline{stroke:#dce2e9;stroke-width:1}.chart-label{fill:#64778d;font-size:10px;text-anchor:middle}.form-details{border-top:1px solid var(--line)}.form-details summary{padding:18px 24px;color:#405a78;font-size:12px;cursor:pointer}.balance-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0 24px 24px}.balance-summary span{display:block;font-size:11px;color:var(--muted);margin-bottom:12px}.balance-summary strong{font-size:24px;font-weight:600}.balance-summary small{font-size:12px}.button:disabled{opacity:.5;cursor:not-allowed}.settings-form input[type=email]{text-overflow:ellipsis}.page-heading h1{overflow-wrap:anywhere}@media(max-width:760px){.section-tabs a{padding:10px 13px;font-size:11px}.balance-summary{grid-template-columns:1fr}.period-panel .filters{padding:18px 16px}}@media(forced-colors:active){*{scrollbar-color:auto;scrollbar-width:auto}.chart-bar{fill:CanvasText}.chart-baseline{stroke:CanvasText}.chart-label{fill:CanvasText}}
