:root{--blue:#245b98;--brand-blue:#4a83c9;--soft:#f5f8fc;--border:#d6e2f0;--text:#1f3550;--muted:#62758a;--ok:#087651;--err:#b3261e;--warn:#966016}
body{font-family:'Segoe UI',Arial,sans-serif;line-height:1.5;background:linear-gradient(135deg,#eaf4ff 0%,#f5f9fe 45%,#e9f8f6 100%);background-attachment:fixed}
.dashboard-topbar{position:relative;background:linear-gradient(110deg,#123e70 0%,#245b98 65%,#276fa0 100%);color:#fff;border-bottom:4px solid #69ccbf;padding:8px 4vw;gap:12px;z-index:30;box-shadow:0 5px 20px #123e7026}
.dashboard-topbar .brand{display:flex;align-items:center;flex:none;background:#fff;padding:2px 10px;border-radius:10px;box-shadow:0 3px 12px #082d4b26}.dashboard-topbar .brand img{display:block;width:120px;height:auto}
.dashboard-topbar .nav-home,.dashboard-topbar .nav-link,.dashboard-topbar .nav-group summary,.dashboard-topbar .linkbutton{color:#fff}
.dashboard-topbar .nav-home,.dashboard-topbar .nav-link,.dashboard-topbar .nav-group summary{font-size:14px;font-weight:650}
.dashboard-topbar .nav-home,.dashboard-topbar .nav-link,.dashboard-topbar .nav-group summary{border-radius:8px;padding:10px 12px}
.dashboard-topbar .nav-home:hover,.dashboard-topbar .nav-link:hover,.dashboard-topbar .nav-group summary:hover{background:#ffffff20;color:#fff}
.dashboard-topbar .nav-group[open] summary,.dashboard-topbar .nav-group:has([aria-current=page]) summary,.dashboard-topbar .main-nav>.nav-home[aria-current=page],.dashboard-topbar .main-nav>.nav-link[aria-current=page]{background:#d8f4ef;color:#123e70;box-shadow:inset 0 -3px #69ccbf}
.dashboard-topbar .nav-menu{background:#fff;color:var(--text);border:1px solid #b8d3ee;border-top:4px solid #69ccbf;border-radius:10px;box-shadow:0 12px 30px #123e7033}
.dashboard-topbar .nav-menu a{color:var(--text)}
.dashboard-topbar .nav-menu a:hover,.dashboard-topbar .nav-menu a[aria-current=page]{background:#e9f2fc;color:#1f5d9f}
.page{max-width:1580px;padding:35px 4vw}
h1{font-size:36px;letter-spacing:-1px;margin:5px 0;line-height:1.2}
h2{font-size:21px;line-height:1.3}
.splithead p{margin:10px 0 0}.muted{color:var(--muted)}
.card,.module-card,.invoice-metric{border-radius:12px;box-shadow:0 3px 14px #123e7008}
.module-card{border-top:5px solid #4a83c9;background:linear-gradient(140deg,#fff,#edf5ff)}
.module-card:nth-child(3n+2){border-top-color:#43b8ad;background:linear-gradient(140deg,#fff,#e8f8f4)}
.module-card:nth-child(3n){border-top-color:#5c9fce;background:linear-gradient(140deg,#fff,#edf8fc)}
.module-card.primary{background:linear-gradient(125deg,#e1efff,#e1f6f2);border-color:#9fc4e8;border-top-color:#245b98}
.module-card:hover{border-color:var(--blue);box-shadow:0 4px 16px #173b4009}
.module-card .module-status{background:#eaf1fa;color:#365e88;border-radius:4px;font-size:11px;font-weight:650;letter-spacing:.03em}
.grouped-modules .module-card{padding:22px;min-height:178px}
.grouped-modules .module-card h2{font-size:22px;margin-top:18px}
.dashboard-section>h2{font-size:12px;text-transform:uppercase;letter-spacing:.12em;color:var(--blue);margin-bottom:16px}
button,.button{font:inherit;border:1px solid var(--blue);border-radius:6px;padding:9px 14px}
button:hover,.button:hover{filter:brightness(.96)}
.secondary{background:white;color:var(--text);border:1px solid #bdceca}
.linkbutton{border:0}
input,select,textarea{border-color:#bdceca;border-radius:5px}
input[type=checkbox],input[type=radio]{accent-color:var(--blue)}
.tabs{border-bottom:1px solid var(--border);gap:8px;flex-wrap:wrap}
.tabs a,.tabs a.active{background:transparent;color:var(--muted);border:0;border-radius:0;border-bottom:3px solid transparent;padding:10px 14px;font-weight:500}
.tabs a.active{color:var(--blue);border-bottom-color:var(--blue);font-weight:650}
th{background:transparent;font-size:11px;letter-spacing:.06em}
.pill{border-radius:4px;font-weight:600}.summarybox,.address-card{background:#f8fbff}
.formbar{background:#f5f8fcf2}.invoice-metric.selected{background:#edf5fd}
.loginpage{background:#245b98}.loginbox{border-radius:12px;box-shadow:0 20px 60px #0002}
.loginbox h1{font-size:28px}
.dashboard-topbar .linkbutton:hover{background:#ffffff20;color:white;border-radius:8px}
.dashboard-topbar a:focus-visible,.dashboard-topbar summary:focus-visible{outline:3px solid #8ce5d7;outline-offset:3px}
.dashboard-shell #pet .designer-groups a{border-top:4px solid #69ccbf;background:#eaf5ff;box-shadow:0 3px 10px #123e7008}
.dashboard-shell #pet .designer-groups a[aria-current=page]{background:linear-gradient(115deg,#174a7d,#286eaa);border-color:#245b98;border-top-color:#69ccbf;color:white}
.dashboard-shell #pet .pet-heading{border-left:5px solid #43b8ad;padding:4px 0 4px 18px}
@media(max-width:1200px){.dashboard-topbar{flex-wrap:wrap;gap:8px 16px}.dashboard-topbar .main-nav{order:3;flex-basis:100%}}
@media(max-width:900px){.page{padding:25px 16px}}
@media(max-width:640px){.dashboard-topbar{position:static;padding:16px}.dashboard-topbar .main-nav{display:grid;grid-template-columns:1fr 1fr}.dashboard-topbar .nav-home{grid-column:auto}.dashboard-topbar .nav-menu{min-width:210px;max-width:calc(100vw - 32px)}h1{font-size:30px}}
