/* Readable defaults and personal appearance settings. */
html{font-size:18px;--nav-bg:#12392f;--nav-hover:#204b3d;--accent:#d9ee9c;--nav-text:#d5e3dc;--action:#235542;--hero:#1c4739;--hero-text:#eff4e3;--hero-muted:#d2dfcd;--surface:#f4f5ef;--ink:#193b36;--muted:#596b61;--line:#dce4d9;--soft:#eaf0e1;--active-text:#193b2b}
html[data-text-size=standard]{font-size:16px}html[data-text-size=extra-large]{font-size:20px}
html[data-palette=navy]{--nav-bg:#1b304c;--nav-hover:#2b4668;--accent:#c9e5fb;--nav-text:#d7e3f2;--action:#244f7c;--hero:#233f62;--hero-text:#f1f6fc;--hero-muted:#d2e2f2;--surface:#f2f5f9;--ink:#203954;--muted:#53677c;--line:#d9e2ed;--soft:#e6eef8;--active-text:#193b5c}
html[data-palette=plum]{--nav-bg:#40293e;--nav-hover:#5a3c56;--accent:#f2d4e2;--nav-text:#eddde8;--action:#6c4361;--hero:#51334b;--hero-text:#fff1f8;--hero-muted:#ecd4e3;--surface:#f8f3f6;--ink:#51364b;--muted:#725e6c;--line:#e8dce4;--soft:#f2e5ed;--active-text:#523044}
body{font-size:1rem;background:var(--surface);color:var(--ink)}h1{font-size:1.9rem}h2{font-size:1.45rem}h3{font-size:1.15rem}p{line-height:1.65}.muted,.card .muted{font-size:.9rem;color:var(--muted)}small,td small{font-size:.8rem}.brand strong{font-size:1rem}.brand small{font-size:.6rem;letter-spacing:1.1px}.brand{min-width:0}.brand-mark{background:var(--nav-bg)}.brand-mark>span{color:var(--accent)}.user-copy b{font-size:.85rem}.user-copy small,.signout{font-size:.8rem}.workspace-label{font-size:.75rem}.usernav a{color:var(--ink)}.avatar{background:var(--soft);color:var(--ink);border-color:var(--line)}
.sidebar{background:var(--nav-bg);width:270px;flex-basis:270px}.sidebar-title{font-size:.7rem;color:var(--nav-text)}.sidebar-title>span{color:var(--nav-text)}.sidebar>a.nav-item{font-size:.9rem;color:var(--nav-text);min-height:47px;gap:10px}.sidebar>a.nav-item:hover{background:var(--nav-hover)}.sidebar>a.active,.sidebar>a.active:hover{background:var(--accent);color:var(--active-text)}.nav-dot{background:currentColor}.nav-item svg{width:20px;height:20px;flex-basis:20px}.sidebar-note b{font-size:.85rem}.sidebar-note small{font-size:.75rem;color:var(--nav-text)}.sidebar-note-icon{color:var(--accent)}.sidebar-note,.sidebar-bottom>a{border-color:var(--nav-hover)}.sidebar-bottom>a{font-size:.85rem;color:var(--nav-text)}
table{font-size:.9rem}th{font-size:.78rem;letter-spacing:.5px;color:var(--muted);background:var(--soft)}td{padding:16px 14px}td a,.actions>a:not(.btn){font-size:inherit;color:var(--action)}tr:hover td{background:var(--surface)}.badge{font-size:.8rem}.metric{font-size:2rem;color:var(--ink)}label{font-size:.9rem;color:var(--ink)}input,select,textarea{font-size:.95rem;color:var(--ink);background:white;border-color:var(--line)}.btn,button{font-size:.88rem;background:var(--action);padding:11px 16px}.btn:hover,button:hover{background:var(--nav-bg)}.btn.secondary,button.secondary{color:var(--ink);background:var(--soft);border-color:var(--line)}td form button{font-size:.8rem}.actions{align-items:center;gap:10px}.alert{font-size:.95rem}summary{font-size:1rem}.footer{font-size:.75rem;background:var(--surface)}.signature{font-size:.85rem}.bill-branding{font-size:.8rem}.bill-head h2{color:var(--ink)}.bill-head{border-color:var(--action)}a{color:var(--action)}.quick-actions{background:var(--soft);border-color:var(--line)}.quick-actions h3{font-size:1rem}.overview-banner{background:var(--hero);padding:30px}.overview-banner h1{font-size:2.2rem;color:var(--hero-text)}.overview-banner p{font-size:.9rem;color:var(--hero-muted)}.eyebrow{font-size:.7rem;color:var(--accent)}.overview-date span{font-size:.8rem;color:var(--hero-muted)}.overview-date strong{color:var(--accent)}.section-heading>span{font-size:.8rem}.overview-banner:after{border-color:var(--hero-muted);opacity:.3}.section-heading{gap:15px;flex-wrap:wrap}.dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.auth-page{background:var(--surface)}.item-row{grid-template-columns:minmax(120px,1fr) minmax(150px,2fr) minmax(100px,1fr) auto}
html[data-density=compact] td{padding:9px 12px}html[data-density=compact] th{padding:10px 12px}html[data-density=compact] .card{padding:17px;margin-bottom:15px}html[data-density=compact] .sidebar>a.nav-item{min-height:39px;padding:7px 12px}html[data-density=compact] input,html[data-density=compact] select{padding:7px 10px}
@media(max-width:1200px){.workspace-label{display:none}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-metrics .card{margin-bottom:0}.dashboard-metrics{margin-bottom:22px}.topbar{padding:12px 20px;height:auto;min-height:88px}.app-layout .container{padding:22px}.usernav{gap:8px}.user-copy{max-width:180px}}
@media(max-width:760px){.sidebar{width:100%;flex-basis:auto}.sidebar>a.nav-item{font-size:.85rem}.topbar{padding:14px 16px;flex-wrap:wrap}.brand strong{font-size:.95rem}.brand small{font-size:.55rem}.app-layout .container{padding:20px 14px}.overview-banner h1{font-size:1.7rem}.overview-banner{padding:22px}.overview-banner p{font-size:.85rem}.overview-date span{font-size:.7rem}.overview-date{min-width:85px}.overview-date strong{font-size:2.4rem}.card{padding:18px}.quick-actions .btn{flex-basis:160px}.item-row{grid-template-columns:1fr 1fr}.row{grid-template-columns:minmax(0,1fr)}.row>input[type=hidden]{display:none}.section-heading>span{font-size:.8rem}.grid{min-width:0}.dashboard-metrics .card .muted{overflow-wrap:break-word}.dashboard-metrics .card{padding:16px}}
@media(max-width:420px){.overview-date{display:none}.overview-banner p{max-width:none}.brand small{letter-spacing:.5px}.usernav{margin-left:auto}.dashboard-metrics{gap:10px}}
@media screen{
 .workspace{min-height:100vh;display:flex;flex-direction:column}
 .topbar{height:auto;min-height:64px;padding:8px 24px;flex-shrink:0;gap:12px}
 .brand-mark{width:36px;height:36px;font-size:27px;border-radius:10px}
 .brand small{margin-top:2px}
 .app-layout{flex:1;min-height:0}
 .sidebar{min-height:0}
 .app-layout .container{min-height:0}
 .footer{padding:6px 16px;line-height:1.4;margin:0;flex-shrink:0}
}
@media screen and (min-width:761px){
 .sidebar{position:sticky;top:0;align-self:flex-start;height:100vh;overflow-y:auto}
}
@media screen and (max-width:760px){.topbar{min-height:58px;padding:7px 16px}.brand-mark{width:32px;height:32px;font-size:24px}.footer{padding:6px 12px}}
@media print{html{font-size:12px}body{color:black;background:white}th,td{font-size:10px}.sidebar,.footer,.topbar{display:none!important}.card{border:0;box-shadow:none}a{color:black}.overview-banner{background:white}.overview-banner h1,.overview-banner p,.metric{color:black}}
