/* Independent Billing visual theme: no business logic or external assets. */
:root{color:#182638;background:#f7f8fa;--accent:#435f7b;--border:#d6dde5}
body{background:#f7f8fa;color:#182638}
aside{background:linear-gradient(160deg,#e5f2ff,#eff8fb 65%,#e8f5ef);color:#24364a;border-right:1px solid #c6ddec;box-shadow:3px 0 14px #5987a810}
.brand,.brand span,.profile strong{color:#192d43}.brand b,.auth-brand b{background:linear-gradient(145deg,#4b99eb,#236ac4);box-shadow:0 3px 0 #18529c,0 6px 12px #417cb52b;border:1px solid #2d79c8}
.profile{border-color:#c4daeb}.profile small,.brand small,.side-note,.module-label{color:#496177}.profile button{color:#255982}.profile .avatar{background:linear-gradient(145deg,#bce8db,#74cbb8);color:#174c40;box-shadow:0 3px 0 #53a995,0 5px 9px #4d8f7926;font-weight:750}
.module{background:#e6ebf1;color:#234866;border:1px solid #c6d1dc;box-shadow:0 2px 4px #5987a816}
nav{border-color:#b6d0e4}nav button,nav button.active{color:#23374d;background:transparent;border:1px solid transparent;font-weight:600}nav button:hover{background:#e9eef3}nav button.active,nav button.active:hover{background:#e2e8ef;color:#173d66;border-color:#b9c6d3;box-shadow:inset 3px 0 #647e97,0 3px 6px #6496c51a}
nav button svg,#permissions-nav svg{width:29px;height:29px;flex:0 0 29px;margin:0;filter:drop-shadow(0 2px 2px #42668122)}nav button{gap:7px;padding:5px 6px}
#permissions-nav{color:#2a405b;display:flex;align-items:center;gap:7px;border:1px solid transparent}#permissions-nav:hover{background:#e9eef3}#permissions-nav.active{background:#e2e8ef;border-color:#b9c6d3}
header{background:#fff;border-color:#d6e5f0;color:#40576b}header #current-location{color:#40576b}.environment{background:#e2f2f0;color:#245f53;border:1px solid #b6dbd2}
h1,h2,h3,label,.section-title h2{color:#182638}.subtitle,.hint,.section-description,.summary-note,.eyebrow,#mode,footer{color:#465a6c}#mode{border-color:#d4e4ee}
.panel,.price-settings,.price-review-card,dialog{background:#fff;border-color:#cfdfeb;box-shadow:0 3px 12px #456c9010;border-radius:9px}.section-title h2>span,h2>span{background:#d9ecfc;color:#24557f;border:1px solid #b5d5ed;box-shadow:0 2px 0 #bed7ea}
button{background:#435f7b;color:#fff;border-color:#3b546e}button:hover{background:#354e66;filter:none}button.secondary{background:#f5faff;color:#274763;border-color:#9ebbd3}button.secondary:hover{background:#e6f2ff;border-color:#6999c2}.quiet,.link{color:#245c92;background:transparent;border-color:transparent}
input,select,textarea{color:#182638;background:#fff;border-color:#9bb6cd}input::placeholder,textarea::placeholder{color:#607489}input:focus,select:focus,textarea:focus,button:focus-visible,summary:focus-visible{outline:3px solid #377ac5;outline-offset:2px}
th,.ledger th,.limits-table th{background:#edf0f4;color:#233f59;border-color:#bdd5e9;font-weight:650}td,.ledger td{color:#192b3d;border-color:#d4e3ef}.ledger tbody tr:nth-child(even),#products tr:nth-child(even){background:#f6f8fa}.ledger tbody tr:hover{background:#e7f3fb}
.selected{background:#eaf5ff;border-color:#bed9ee;color:#2a5177}.summary{border-top:3px solid #58aa9d;background:linear-gradient(160deg,#fff,#f0fbf8)}.summary-total strong{color:#126e63}.summary-total{border-color:#bfddd5}.pill{background:#edf5fe;border-color:#b6d2ec;color:#28547e}
#filters button.active,.price-tab[aria-selected=true]{background:#dceeff;color:#204e7a;border-color:#8ab8e3}.tag{color:#2c4255}.price-overview{background:#eaf5ff;color:#2b4e6b}.price-tabs{border-color:#c9ddeb}.price-priority{background:#fff3d9;border-color:#e4c180;color:#634917}
#view-clients .client-directory th{background:#e9edf2;color:#1c3d5a;border-bottom-color:#a6c9e7}#view-clients .client-directory th button{color:#1c3d5a}#view-clients .client-directory tbody tr:nth-child(even){background:#f5f7f9}#view-clients .client-directory tbody tr:hover{background:#edf1f5}
#view-clients #client-search{background:#f4f6f8;border-color:#d2dae3}#view-clients .client-initials button[aria-pressed=true]{background:#e1e7ee;color:#1e4a73;border-color:#a6b5c5;box-shadow:inset 0 -3px #637f99}#view-clients .client-initials button{border-color:#a8c3d9;color:#274862}#view-clients .client-code{background:#eef2f6!important;border-color:#bbc9d6!important;color:#274b6b!important}
#view-clients .client-type-tag.personal{background:#e9eff6;border-color:#8da4ba}#view-clients .client-type-tag.company{background:#edf3ef;border-color:#99afa2}#view-clients .client-type-tag.unknown{background:#f6f1e5;border-color:#b8aa88}
.view h1::before{content:'';width:40px;height:40px;flex-basis:40px;background-color:transparent;border:0;border-radius:0;background-repeat:no-repeat;background-position:center;background-size:contain;filter:drop-shadow(0 3px 3px #42668120)}
@media(max-width:700px){aside{border-right:0;border-bottom:1px solid #bfd6e8;box-shadow:0 3px 9px #618ead12}.brand{flex-wrap:nowrap}nav button svg{width:27px;height:27px;flex-basis:27px}nav button{padding:5px 8px;min-height:44px}.view h1::before{width:34px;height:34px;flex-basis:34px}#permissions-nav svg{width:24px;height:24px;flex-basis:24px}.profile #logout{color:#28577e}.subtitle{margin-left:46px}}

aside .profile #logout{color:#2b557a;border-color:#93b6d4;padding:2px 5px}
.module svg{width:25px;height:25px;flex:0 0 25px}.module{align-items:center;gap:8px}
#invoices td:last-child{min-width:225px}.record-actions{display:grid;grid-template-columns:repeat(2,minmax(90px,1fr));gap:5px;align-items:start}.record-actions button{white-space:normal;margin:0}
@media(min-width:701px){nav button{white-space:normal;line-height:1.25;min-height:40px}}
@media(max-width:700px){.record-actions button{min-height:44px}nav button{white-space:nowrap}}

/* V6: workspace-inspired restrained line icon system. */
aside{background:#f0f3f6;border-color:#d4dce5;box-shadow:1px 0 3px #26384a08}
.brand b,.auth-brand b{background:#566c82;border-color:#4e6175;box-shadow:0 1px 2px #24354b1a;border-radius:4px}.profile .avatar{background:#dce3e9;color:#3a4f63;box-shadow:none;border:1px solid #c8d1da;border-radius:5px}
.module{background:#e6ebf1;border-color:#cbd5df;box-shadow:none;border-radius:4px}
nav button.active,nav button.active:hover{box-shadow:inset 2px 0 #70869c;background:#e2e8ef;color:#263b50;border-color:#bcc8d4}
nav button svg,#permissions-nav svg{width:21px;height:21px;flex-basis:21px;color:#566b7e;filter:none}.module svg{width:21px;height:21px;flex-basis:21px;color:#51677a}
nav button{gap:9px}#permissions-nav{color:#344657}.panel,.price-settings,.price-review-card,dialog{box-shadow:0 1px 4px #22354b08;border-radius:6px;border-color:#d6dee6}
.section-title h2>span,h2>span{background:#edf1f5;color:#4b6277;border-color:#d3dde5;box-shadow:none;border-radius:3px}
.summary{background:#fff;border-top:2px solid #8faaa7}.summary-total strong{color:#355b5a}.selected{background:#edf2f7;border-color:#cad7e3;color:#38536d}.pill,.environment{background:#f0f4f6;border-color:#cbd6dd;color:#415d64}
.view h1::before{width:30px;height:30px;flex-basis:30px;filter:none;border:0;background-color:transparent;border-radius:0}.subtitle{margin-left:42px}
#filters button.active,.price-tab[aria-selected=true]{background:#e7edf3;color:#324c64;border-color:#b4c3d1}.price-overview{background:#f0f4f7;color:#3f566b}.price-priority{background:#f8f4ea;border-color:#d9cfb6;color:#635637}
#view-clients .client-directory th button{color:#263d52}#view-clients .client-directory th{color:#263d52;border-color:#bdcbd8}#view-clients .client-directory th button:hover{background:transparent}.client-amount-note{color:#536170}
button:focus-visible,input:focus,select:focus,textarea:focus,summary:focus-visible{outline-color:#617e9a}
@media(max-width:700px){aside{background:#f0f3f6;border-color:#d4dce5;box-shadow:0 1px 3px #26384a08}nav button svg,#permissions-nav svg{width:21px;height:21px;flex-basis:21px}.view h1::before{width:28px;height:28px;flex-basis:28px}.subtitle{margin-left:40px}}
#view-create h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14%203H5v18h14V8l-5-5zM14%203v5h5M8%2014h8M12%2010v8%22%2F%3E%3C%2Fsvg%3E")}
#view-records h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h12v18l-3-2-3%202-3-2-3%202V3zM9%207h6M9%2011h6M9%2015h3%22%2F%3E%3C%2Fsvg%3E")}
#view-clients h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2020v-2a6%206%200%200%201%2012%200v2M16%205a3%203%200%200%201%200%206M18%2014a5%205%200%200%201%203%204v2%22%2F%3E%3C%2Fsvg%3E")}
#view-products h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207l9-4%209%204v10l-9%204-9-4V7zM3%207l9%204%209-4M12%2011v10M7.5%205l9%204%22%2F%3E%3C%2Fsvg%3E")}
#view-archive h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%204h18v5H3zM5%209v11h14V9M9%2013h6%22%2F%3E%3C%2Fsvg%3E")}
#view-pricing h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%204H5v17h14V4h-3M9%203h6v4H9zM8%2014l3%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
#view-permissions h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%203l8%203v6c0%205-8%209-8%209s-8-4-8-9V6l8-3zM8%2012l3%203%205-6%22%2F%3E%3C%2Fsvg%3E")}
#view-pricing:has(#price-rules-tab[aria-selected=true]) h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%206h16M4%2012h16M4%2018h16%22%2F%3E%3Crect%20x%3D%227%22%20y%3D%224%22%20width%3D%223%22%20height%3D%224%22%20rx%3D%22.5%22%20fill%3D%22%23f7f8fa%22%2F%3E%3Crect%20x%3D%2214%22%20y%3D%2210%22%20width%3D%223%22%20height%3D%224%22%20rx%3D%22.5%22%20fill%3D%22%23f7f8fa%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%2216%22%20width%3D%223%22%20height%3D%224%22%20rx%3D%22.5%22%20fill%3D%22%23f7f8fa%22%2F%3E%3C%2Fsvg%3E")}

/* Client details: matched to the workspace's company-profile form, not the mail list. */
.owner-workflow:has(input[name=clientCode]){width:min(940px,96vw);padding:0;background:#fff;color:#1f1f1f;border:1px solid #d3dae3;border-radius:8px;font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 12px 36px #17253624}
.owner-workflow:has(input[name=clientCode])>.section-title{position:sticky;top:0;z-index:2;background:#f6f7fb;border-bottom:1px solid #e6e9ef;padding:14px 24px;margin:0;min-height:62px;align-items:center}
.owner-workflow:has(input[name=clientCode])>.section-title h2{font-size:22px;font-weight:700;letter-spacing:-.35px;line-height:1.4;color:#171717;margin:0}
.owner-workflow:has(input[name=clientCode])>.section-title button{margin:0;min-height:38px;font-size:13px}
.owner-workflow:has(input[name=clientCode])>div:nth-child(2){padding:22px 26px 27px}
.owner-workflow:has(input[name=clientCode])>div:nth-child(2)>p:first-child{font-size:12px;line-height:1.6;color:#595959;margin:0 0 18px}
.owner-workflow:has(input[name=clientCode]) .profile-grid{gap:12px 18px;align-items:start}
.owner-workflow:has(input[name=clientCode]) label{color:#595959;font-size:12px;font-weight:550;margin:0;display:flex;flex-direction:column;gap:6px;line-height:1.5;min-width:0}
.owner-workflow:has(input[name=clientCode]) input,.owner-workflow:has(input[name=clientCode]) select,.owner-workflow:has(input[name=clientCode]) textarea{background:#fff;color:#1f1f1f;border:1px solid #aeb9c5;border-radius:6px;font-family:inherit;font-size:14px;font-weight:400;line-height:1.45;min-height:42px;height:auto;padding:9px 10px;margin:0;box-sizing:border-box}
.owner-workflow:has(input[name=clientCode]) textarea{min-height:74px;white-space:pre-wrap}
.owner-workflow:has(input[name=clientCode]) label:has(input[name=name]){color:#1f1f1f;font-weight:650}
.owner-workflow:has(input[name=clientCode]) input[name=name]{font-size:16px;font-weight:650}
.owner-workflow:has(input[name=clientCode]) input[name=clientCode]{background:#f6f7fb;color:#344759;font-family:ui-monospace,Consolas,monospace;letter-spacing:.04em}
.owner-workflow:has(input[name=clientCode]) .profile-grid>button{align-self:end;justify-self:start;margin:24px 0 0;min-height:42px}
.owner-workflow:has(input[name=clientCode]) .profile-grid>label:has(textarea[name=address]){grid-column:1/-1}
.owner-workflow:has(input[name=clientCode]) form>button{margin:18px 8px 0 0;min-height:40px}
.owner-workflow:has(input[name=clientCode]) section{border-top:1px solid #e6e9ef;margin-top:20px;padding-top:17px}
.owner-workflow:has(input[name=clientCode]) h3{font-size:14px;font-weight:650;color:#1f1f1f;line-height:1.4;margin:0 0 12px}
.owner-workflow:has(input[name=clientCode]) section form{display:grid;gap:12px}
.owner-workflow:has(input[name=clientCode]) details{border-top:1px solid #e6e9ef;margin-top:18px;padding-top:12px;color:#595959;font-size:12px}
.owner-workflow:has(input[name=clientCode])>p{padding:0 26px;color:#334b61}
@media(max-width:700px){.owner-workflow:has(input[name=clientCode])>.section-title{padding:12px 16px;gap:12px;align-items:start}.owner-workflow:has(input[name=clientCode])>.section-title h2{font-size:19px}.owner-workflow:has(input[name=clientCode])>div:nth-child(2){padding:18px 16px 22px}.owner-workflow:has(input[name=clientCode]) .profile-grid{grid-template-columns:minmax(0,1fr);gap:12px}.owner-workflow:has(input[name=clientCode]) input,.owner-workflow:has(input[name=clientCode]) select,.owner-workflow:has(input[name=clientCode]) textarea{font-size:16px;min-height:44px}.owner-workflow:has(input[name=clientCode]) .profile-grid>button{margin:0;min-height:44px}.owner-workflow:has(input[name=clientCode])>.section-title button{min-height:44px;white-space:normal}.owner-workflow:has(input[name=clientCode]) button{min-height:44px}}

.owner-workflow:has(input[name=clientCode])>div:nth-child(2)>form,.owner-workflow:has(input[name=clientCode]) section form{padding:0}

/* V7: sidebar-only workspace palette. Content surfaces remain V6. */
aside{background:#202a45;color:#f1f1f1;border-color:#435374;box-shadow:none}
aside .brand,aside .brand span,aside .profile strong{color:#f1f1f1}
aside .brand small,aside .profile small,aside .side-note,aside .module-label{color:#c6c6c6}
aside .profile{border-color:#435374}aside .profile .avatar{background:#34435d;color:#eef2f7;border-color:#53637b}
aside .brand b{background:#405775;border-color:#627995;color:#fff;box-shadow:none}
aside .module{background:#2e3a59;color:#f1f1f1;border-color:#435374}
aside nav{border-color:#435374}aside nav button,aside #permissions-nav{background:transparent;color:#f1f1f1;border-color:transparent}
aside nav button svg,aside #permissions-nav svg,aside .module svg{color:#d7e3ef}
aside nav button:hover,aside #permissions-nav:hover{background:#2e3a59;color:#fff}
aside nav button.active,aside nav button.active:hover,aside #permissions-nav.active{background:#365c83;color:#fff;border-color:#587b9d;box-shadow:inset 3px 0 #9ac5e6}
aside nav button.active svg,aside #permissions-nav.active svg{color:#fff}
/* Peer modules outside the nav element use the same selected/unselected rules. */
#work-shell>aside .hub-menu>button[data-view]{background:transparent;color:#f1f1f1;border-color:transparent;font-size:12px;line-height:1.5;font-weight:600;padding:9px 11px;min-height:38px;gap:10px;margin:0}
#work-shell>aside .hub-menu>button[data-view]:hover{background:#2e3a59;color:#fff}
#work-shell>aside .hub-menu>button[data-view].active,#work-shell>aside .hub-menu>button[data-view].active:hover{background:#365c83;color:#fff;border-color:#587b9d;box-shadow:inset 3px 0 #9ac5e6}
#work-shell>aside .hub-menu>button[data-view] svg{color:#d7e3ef;width:17px;height:17px;flex-basis:17px}
#work-shell>aside .hub-menu>button[data-view].active svg{color:#fff}
aside button:focus-visible,aside a:focus-visible{outline:2px solid #b8ddff;outline-offset:2px}
aside .profile #logout{background:transparent;color:#e6edf5;border-color:#6e8099}
aside .profile #logout:hover{background:#2e3a59}
@media(max-width:700px){aside{background:#202a45;border-bottom-color:#435374;box-shadow:none}}

/* Clients-only functional grouping; data rows remain light. */
#view-clients>.title-row{background:#e4e9ef;border:1px solid #bbc7d3;border-left:3px solid #748a9f;border-radius:5px;padding:12px;margin-bottom:16px}
#view-clients>.title-row>div{min-width:0}#view-clients .title-row h1{color:#172431}#view-clients .title-row .subtitle{color:#435364}
#view-clients #client-search{background:#e1e8f0;border:1px solid #9aabbc;border-radius:5px;padding:10px}
#view-clients #client-search input{background:#fff;border:1px solid #778ca2;color:#171717}
#view-clients #client-search input:focus{outline:2px solid #3c607f;outline-offset:2px;border-color:#3c607f;box-shadow:0 0 0 4px #c6d7e6}
#view-clients #client-directory-controls{background:#ebeff4;border:1px solid #b5c1ce;border-radius:5px;padding:8px}
#view-clients .client-directory th{background:#cbd6e2;color:#203448;border-bottom:2px solid #899db0}
#view-clients .client-directory th button{color:#203448;font-weight:700}
#view-clients .client-initials button{border-color:#91a5b8}#view-clients .client-initials button[aria-pressed=true]{background:#c7d5e3;border-color:#708ca5;color:#193b57}
#view-clients #client-results{border-color:#aebdcb}
@media(max-width:700px){#view-clients>.title-row{padding:10px;gap:8px}#view-clients #client-directory-controls{padding:7px}}

/* Workspace modules are peers; invoice tools retain their Billing navigation. */
aside #module-navigation{margin:8px 0 0;padding:0;border:0;display:flex;flex-direction:column;gap:6px}
aside #module-navigation button{font-size:14px;font-weight:650;padding:12px 14px;width:100%;margin:0}
aside #billing-navigation{margin-top:7px}
#view-clients #client-open{background:#324f6d;border:1px solid #253f59;color:#fff;font-size:13px;font-weight:650;padding:11px 16px;min-height:42px}
#view-clients #client-open:hover{background:#263f59}
#view-clients #client-open:focus-visible{outline:2px solid #365f85;outline-offset:3px}
#view-clients #client-search button:not(.secondary){background:#eaf0f6;border:1px solid #879db1;color:#263f59}
@media(max-width:800px){aside #module-navigation{flex-direction:row}aside #module-navigation button{width:auto;flex:1}aside #billing-navigation{margin-left:0;padding-left:0}}

/* V8: match the mail workspace navigation density, scoped to the sidebar. */
aside #module-navigation{gap:4px}
aside #module-navigation button{font-size:12px;line-height:1.5;font-weight:600;padding:9px 11px;min-height:38px;gap:10px}
aside #billing-navigation{display:flex;flex-direction:column;gap:4px}
aside #billing-navigation button,aside #permissions-nav{font-size:12px;line-height:1.5;font-weight:500;padding:7px 8px;min-height:34px;margin:0;gap:5px}
aside nav button svg,aside #permissions-nav svg{width:17px;height:17px;flex-basis:17px}
aside nav button.active{font-weight:600}
@media(max-width:800px){aside #billing-navigation{flex-direction:row}aside #billing-navigation button,aside #permissions-nav{min-height:38px}aside #module-navigation button{min-height:38px}}

/* Restrained in-page client accent; sidebar symbols remain monochrome. */
#view-clients .title-row h1{color:#246b76}
#view-clients h1::before{background-image:url("data:image/svg+xml,%3Csvg%20aria-hidden%3D%22true%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20fill%3D%22none%22%20stroke%3D%22%23246b76%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%229%22%20cy%3D%228%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M3%2020v-2a6%206%200%200%201%2012%200v2M16%205a3%203%200%200%201%200%206M18%2014a5%205%200%200%201%203%204v2%22%2F%3E%3C%2Fsvg%3E")}

/* V8 Clients surfaces: white/light neutral rows and semantic, softly colored tags. */
#view-clients>.title-row{background:#f5f8f7;border-color:#c2cfca;border-left-color:#68918b}
#view-clients>.panel{background:#fff;border-color:#d7dce5;box-shadow:none}
#view-clients #client-search{background:#f7f8fa;border-color:#b7c1cd}
#view-clients #client-directory-controls{background:#fbfbfa;border-color:#c8cdd4}
#view-clients .client-directory th{background:#e2e7e6;color:#171717;border-bottom-color:#95a8a2}
#view-clients .client-directory th button{color:#171717}
#view-clients #client-results .client-directory tbody tr{background:#fff}
#view-clients #client-results .client-directory tbody tr:nth-child(even){background:#fafbf8}
#view-clients #client-results .client-directory tbody tr:hover,#view-clients #client-results .client-directory tbody tr:focus-within{background:#eff8f3}
#view-clients #client-results .client-directory td{color:#171717;border-color:#d7dce5}
#view-clients .client-type-tag.personal{background:#dceffc;border-color:#6b9eb8;color:#171717}
#view-clients .client-type-tag.company{background:#daf3e5;border-color:#6a9b7e;color:#171717}
#view-clients .client-type-tag.unknown{background:#fff0d7;border-color:#b09961;color:#171717}
#view-clients .client-state-tag{background:#e4f4e9;border-color:#8ba895;color:#171717}
#view-clients .client-state-tag.archived{background:#eceef3;border-color:#a7afbc;color:#343b46}

#billing-module::after{content:"›";margin-left:auto;font-size:17px;line-height:1;transform:rotate(0deg)}
#billing-module[aria-expanded="true"]::after{transform:rotate(90deg)}

/* Clients heading icon tile only; sidebar and other headings are unchanged. */
#view-clients h1::before{width:36px;height:36px;flex-basis:36px;background-color:#e2f0ee;background-size:24px 24px;border:1px solid #b7d3ce;border-radius:6px;box-shadow:0 2px 0 #c6dcd7,0 3px 6px #244d4614}
@media(max-width:700px){#view-clients h1::before{width:34px;height:34px;flex-basis:34px;background-size:23px 23px}}

/* Keep profile-save outcomes beside the action, inside the padded footer. */
.owner-workflow .client-save-actions .profile-save-feedback{margin:8px 0;padding:12px 14px;border:1px solid #86aba5;border-left:4px solid #39746b;border-radius:6px;background:#edf7f4;color:#173e37;font-size:14px;line-height:1.5;text-align:left;max-width:440px}
.owner-workflow .profile-save-feedback:empty{display:none}
.owner-workflow .profile-save-feedback:focus{outline:2px solid #39746b;outline-offset:2px}

/* Compact centered profile-result dialog, removed entirely on dismissal. */
dialog.profile-toast{position:fixed;inset:0;margin:auto;width:min(400px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:26px 28px 22px;border:1px solid #9bc5aa;border-top:4px solid #26814d;border-radius:12px;background:#f5fbf7;color:#174d2b;box-shadow:0 18px 65px #142e3333;text-align:center;overflow:auto}
dialog.profile-toast::backdrop{background:#182b3b38}
dialog.profile-toast h2{margin:0 0 10px;font-size:19px;color:inherit}dialog.profile-toast p{margin:0 0 20px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
dialog.profile-toast--info{background:#f5f9ff;border-color:#a3bedb;border-top-color:#3979b8;color:#224f7b}
dialog.profile-toast .profile-toast-close{min-width:100px;min-height:40px;padding:8px 20px;border:1px solid currentColor;border-radius:6px;background:transparent;color:inherit;font-size:14px;box-shadow:none}.profile-toast-close:hover{background:#00000008}.profile-toast-close:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:700px){dialog.profile-toast{padding:24px 20px 20px;width:calc(100vw - 32px)}dialog.profile-toast .profile-toast-close{min-height:44px}}

.client-phone-hint{display:block;margin-top:5px;font-size:11px;line-height:1.4;color:#627080;font-weight:400}


.client-save-toast{position:fixed;top:max(20px,env(safe-area-inset-top));left:50%;transform:translateX(-50%);z-index:10000;display:flex;align-items:center;gap:9px;padding:11px 20px;max-width:calc(100vw - 32px);border:1px solid #b9ddc5;border-radius:9px;background:#edf9f0;color:#22643a;box-shadow:0 5px 20px #16372418;font-size:14px;pointer-events:none}.client-save-toast>span:first-child{font-weight:700;font-size:17px}
#view-task-statistics h1::before{background-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23526b80%22%20stroke-width%3D%221.65%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%203v17h17M8%2016v-5M13%2016V7M18%2016V4%22%2F%3E%3C%2Fsvg%3E")}
