:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20343c;background:#f3f6f8;font-size:16px;line-height:1.5;--nav:#102b35;--ink:#17343f;--teal:#08735c;--border:#dbe3e8;--muted:#60747d}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button,.button{border:1px solid var(--border);border-radius:7px;background:white;color:var(--ink);padding:.62rem 1rem;font-size:.9rem;font-weight:600;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:40px}button:hover,.button:hover{background:#edf4f2;border-color:#9bbab0}button:disabled{opacity:.5;cursor:wait}.primary{background:var(--teal);color:white;border-color:var(--teal)}.primary:hover{background:#075b4a;color:white}.danger{color:#a12637}.small{font-size:.8rem;padding:.35rem .6rem;min-height:32px}.text-button{border:0;background:transparent;color:#096e60;padding:.2rem;min-height:30px;text-align:left;justify-content:start}.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-weight:700;font-size:.75rem;color:#527078;margin:0 0 .65rem}h1,h2,h3,p{margin-top:0}h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.035em;margin-bottom:.55rem}h2{font-size:1.1rem;letter-spacing:-.015em}h3{font-size:1rem;margin-bottom:.5rem}a{color:#08735c}.layout{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:var(--nav);color:#e6f0f2;padding:28px 18px 18px;overflow-y:auto;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 24px;font-weight:700;line-height:1.2}.brand small{display:block;font-size:.69rem;letter-spacing:.12em;color:#a8c5ca;margin-top:6px}.brand-icon{border:2px solid #7bddb7;color:#7bddb7;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;font-size:1.4rem;font-weight:600;flex-shrink:0}.nav-label{font-size:.65rem;letter-spacing:.13em;text-transform:uppercase;color:#a3bbc3;margin:20px 12px 7px}.nav-link{color:#bfd0d6;display:flex;align-items:center;gap:11px;padding:10px 12px;margin:3px 0;border-radius:6px;text-decoration:none;font-size:.88rem}.nav-link:hover{background:#1d3c48;color:white}.nav-link.active{color:#b4f4da;background:#214d51;box-shadow:inset 3px 0 #80e1bb}.nav-symbol{width:20px;text-align:center;font-size:1rem}.sidebar-bottom{border-top:1px solid #2e4b55;margin-top:auto;padding:18px 10px 0;font-size:.75rem;color:#a3bbc3}.workspace{grid-column:2;min-width:0}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);padding:0 36px;display:flex;align-items:center;justify-content:space-between;gap:20px}.agency-name{font-weight:600;font-size:.9rem}.top-actions{display:flex;align-items:center;gap:14px}.avatar{width:36px;height:36px;border-radius:50%;background:#e1eee8;color:#286553;display:grid;place-items:center;font-weight:700;font-size:.8rem}.user-meta{font-size:.8rem;line-height:1.4}.user-meta small{text-transform:capitalize;color:var(--muted)}.page{padding:34px 36px 50px;max-width:1600px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:26px}.page-heading p{color:var(--muted);font-size:.9rem;margin:0}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}.metric{background:white;border:1px solid var(--border);border-radius:10px;padding:21px}.metric .metric-title{font-size:.86rem;color:var(--muted);display:flex;justify-content:space-between;gap:10px}.metric strong{display:block;font-size:2.15rem;font-weight:650;letter-spacing:-.04em;margin:9px 0}.metric small{font-size:.8rem;color:var(--muted)}.metric.highlight{border-top:3px solid var(--teal);padding-top:19px}.columns{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:22px;align-items:start}.card{background:white;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:22px}.card-heading{padding:20px 23px;border-bottom:1px solid #e8edef;display:flex;align-items:center;justify-content:space-between;gap:12px}.card-heading h2,.card-heading p{margin:0}.card-heading p{font-size:.82rem;color:var(--muted);margin-top:4px}.card-body{padding:22px}.list-row{padding:15px 22px;border-bottom:1px solid #edf1f3;display:flex;justify-content:space-between;gap:15px;align-items:center}.list-row:last-child{border-bottom:0}.list-row p{margin:3px 0 0;font-size:.82rem;color:var(--muted)}.badge{display:inline-block;padding:3px 9px;border-radius:5px;background:#edf1f5;color:#536570;font-size:.75rem;font-weight:650;white-space:nowrap}.badge.green{background:#e2f3eb;color:#086348}.badge.amber{background:#fff0d2;color:#8a5b04}.badge.red{background:#ffe8e9;color:#a42b3c}.badge.blue{background:#e7effd;color:#325eaa}.pill-note{display:inline-flex;font-size:.72rem;padding:4px 8px;background:#f0f5f6;color:#60747d;border-radius:4px}.toolbar{display:flex;gap:10px;padding:17px 20px;background:white;border:1px solid var(--border);border-bottom:0;border-radius:9px 9px 0 0;align-items:center;flex-wrap:wrap}.toolbar input{max-width:300px;min-width:170px}.toolbar select{max-width:205px;min-width:140px}.toolbar .count{margin-left:auto;font-size:.82rem;color:var(--muted)}input,select,textarea{background:white;border:1px solid #c9d5da;border-radius:6px;color:#20343c;padding:.65rem .75rem;width:100%;min-height:43px;font-size:.9rem}input:focus,select:focus,textarea:focus{border-color:#16876e;outline:2px solid #b0dfd1}textarea{min-height:100px;resize:vertical}input[type=checkbox]{min-height:18px;width:18px;height:18px;accent-color:var(--teal)}label{display:block;font-size:.86rem;font-weight:600;margin-bottom:15px}label input,label select,label textarea{display:block;margin-top:6px;font-weight:400}label small{font-weight:400;color:var(--muted);display:block;margin-top:4px}fieldset{border:1px solid var(--border);border-radius:7px;padding:12px 15px;margin:0 0 15px}legend{font-size:.86rem;font-weight:600}.check-label{display:flex;align-items:center;gap:9px;font-size:.86rem;font-weight:400;margin:8px 0}.check-label input{margin:0}.table-wrap{overflow:auto;background:white;border:1px solid var(--border);border-radius:0 0 9px 9px}table{width:100%;border-collapse:collapse;font-size:.87rem;white-space:nowrap}th{text-align:left;background:#f8fafb;color:#697d86;font-size:.72rem;text-transform:uppercase;letter-spacing:.045em;font-weight:650;padding:14px 20px;border-bottom:1px solid var(--border)}td{padding:16px 20px;border-bottom:1px solid #edf1f3}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdfd}.name-cell{display:flex;align-items:center;gap:10px}.name-cell small{display:block;color:var(--muted);font-size:.76rem}.empty{padding:46px 25px;text-align:center;color:var(--muted);white-space:normal}.empty h3{color:var(--ink)}.empty p{max-width:440px;margin:0 auto 20px}.notice{padding:13px 16px;border-radius:6px;background:#eaf5f1;color:#26584c;margin-bottom:20px;font-size:.87rem}.notice.error{background:#fff0f0;color:#9c2534}.notice.info{background:#eaf1f7;color:#36546c}.notice.warn{background:#fff4df;color:#825a0e}.section-foot{font-size:.8rem;color:var(--muted);margin-top:15px}.auth-body{display:grid;min-height:100vh;place-items:center;background:#eaf0f3}.auth-card{max-width:470px;margin:6vh auto;padding:36px;background:white;border:1px solid var(--border);border-radius:14px;box-shadow:0 18px 60px #123b4b0a}.auth-card .brand-icon{background:var(--nav);margin-bottom:22px}.auth-card .primary{width:100%;margin-top:8px}.auth-card h1{font-size:1.65rem}.auth-card>p{font-size:.9rem;color:var(--muted)}dialog{border:1px solid #cbdadd;border-radius:12px;max-width:840px;width:calc(100% - 32px);padding:0;color:var(--ink);max-height:90vh;box-shadow:0 30px 100px #102b3533}dialog::backdrop{background:#09243088;backdrop-filter:blur(2px)}.modal-head{padding:22px 26px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;gap:20px}.modal-head h2{font-size:1.3rem;margin:0}.modal-body{padding:24px 26px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding-top:18px;border-top:1px solid var(--border);margin-top:8px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.full{grid-column:1/-1}.profile-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 24px}.profile-summary dt{color:var(--muted);font-size:.76rem}.profile-summary dd{margin:4px 0 0;font-weight:600;font-size:.9rem}.profile-section{margin:24px 0;border-top:1px solid var(--border);padding-top:18px}.profile-section h3{display:flex;justify-content:space-between;align-items:center}.profile-section .list-row{padding:10px 0}.profile-section ul{padding-left:21px;font-size:.85rem}.hierarchy-row{margin:8px 0;border:1px solid var(--border);border-left:3px solid #3c9f83;background:white;border-radius:6px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:15px}.hierarchy-row.level-1{margin-left:28px}.hierarchy-row.level-2{margin-left:56px}.hierarchy-row.level-3{margin-left:84px}.hierarchy-row.level-4{margin-left:112px}.hierarchy-row.level-5{margin-left:140px}.hierarchy-row.level-6{margin-left:168px}.hierarchy-row small{display:block;color:var(--muted);font-size:.8rem}.hierarchy-tools{display:flex;gap:12px;margin-bottom:22px}.hierarchy-tools input{max-width:350px}.pipeline{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:24px}.pipeline-item{padding:16px;background:#fff;border:1px solid var(--border);border-radius:8px}.pipeline-item strong{display:block;font-size:1.6rem}.pipeline-item span{font-size:.8rem;color:var(--muted)}.bars{display:flex;gap:3px;height:9px;margin:18px 0;background:#edf2f4;border-radius:4px;overflow:hidden}.bar{background:#209578;min-width:2px}.bar.amber{background:#e5b858}.bar.blue{background:#6b95c5}.split-stat{display:flex;align-items:center;justify-content:space-between;font-size:.86rem;margin:12px 0}.dot{display:inline-block;width:9px;height:9px;border-radius:3px;background:#209578;margin-right:8px}.dot.amber{background:#e5b858}.dot.blue{background:#6b95c5}#toast{position:fixed;bottom:24px;right:25px;background:#173f35;color:white;padding:14px 22px;border-radius:8px;box-shadow:0 10px 30px #0002;z-index:100;max-width:calc(100% - 40px);display:none}#toast.show{display:block}#toast.error{background:#962b3c}.mobile-menu{display:none}.nowrap{white-space:nowrap}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.audit-json{white-space:pre-wrap;font-size:.8rem;overflow-wrap:anywhere;background:#f4f7f8;padding:15px;border-radius:6px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.mobile-shade{display:none}@media(max-width:1200px){.metrics{gap:12px}.metric{padding:16px}.page{padding:26px 24px}.topbar{padding:0 24px}.columns{grid-template-columns:1.4fr 1fr}.layout{grid-template-columns:212px 1fr}.sidebar{width:212px}.nav-link{font-size:.83rem}}@media(max-width:1000px){.columns{grid-template-columns:1fr}.metrics{grid-template-columns:1fr 1fr}.settings-grid{grid-template-columns:1fr}.user-meta{display:none}.page-heading{align-items:flex-start}.pipeline{grid-template-columns:1fr 1fr}}@media(max-width:760px){.layout{display:block}.sidebar{transform:translateX(-100%);width:240px;transition:transform .15s}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-flex;padding:.4rem .65rem}.mobile-shade.open{display:block;position:fixed;inset:0;background:#0006;z-index:9}.page{padding:22px 16px}.topbar{height:65px;padding:0 16px;gap:10px}.agency-name{font-size:.8rem;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-actions{gap:8px}.top-actions>.avatar{display:none}.page-heading{flex-direction:column;gap:16px}h1{font-size:1.65rem}.metric strong{font-size:1.85rem}.metric-title{font-size:.8rem!important}.form-grid{grid-template-columns:1fr}.profile-summary{grid-template-columns:1fr 1fr}.modal-head{padding:18px}.modal-body{padding:18px}.toolbar{padding:14px}.toolbar input{max-width:100%}.toolbar select{max-width:none;flex:1}.toolbar .count{width:100%}.auth-card{margin:25px 16px;padding:28px}.hierarchy-row.level-1{margin-left:14px}.hierarchy-row.level-2{margin-left:28px}.hierarchy-row.level-3,.hierarchy-row.level-4,.hierarchy-row.level-5,.hierarchy-row.level-6{margin-left:42px}.hierarchy-row .badge{display:none}}
@media print{.sidebar,.topbar,.actions,button,.notice{display:none!important}.layout{display:block}.workspace{display:block}.page{padding:0;max-width:none}.card{break-inside:avoid}.list-row{break-inside:avoid}body{background:white}h1{font-size:22pt}}

.ui-icon{width:18px;height:18px;vertical-align:middle}.nav-symbol{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.logo-topbar{display:block;width:280px;height:64px;object-fit:contain}.logo-signin{display:block;width:100%;height:auto;margin:0 0 24px}.logo-install{display:block;width:100%;height:auto;margin-bottom:18px}.backup-row{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:18px 22px;border-top:1px solid var(--border)}.backup-row p{margin:4px 0;font-size:.82rem;color:var(--muted)}.backup-row small{font-size:.8rem;color:var(--muted)}.backup-row .actions{flex-shrink:0}@media(max-width:1000px){.logo-topbar{width:220px}.backup-row{flex-wrap:wrap}}@media(max-width:760px){.logo-topbar{width:170px;height:54px}.topbar .agency-name{display:none}}
