:root{font:15px system-ui,sans-serif;color:#143630;background:#eef4f1;--line:#d8e5df;--green:#12644f;--muted:#49645c}*{box-sizing:border-box}body{margin:0;display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}aside{background:#123b32;color:#fff;padding:25px 14px;display:flex;flex-direction:column;gap:24px}.brand{font-weight:800;font-size:22px;padding:0 8px}.brand span{color:#85e5c1}.brand small{display:block;font-size:10px;letter-spacing:1px;color:#a7cfbf;margin:5px 0}nav{display:grid;gap:5px}nav button{text-align:left;background:transparent;border:0;color:#deece6}nav button[aria-current=true]{background:#2c6252;color:white}footer{margin-top:auto;color:#b1cfc2;font-size:12px;padding:0 8px}main{max-width:1460px;width:100%;padding:25px;margin:auto;align-self:start}header,.bar,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}header,.bar{justify-content:space-between}header{margin-bottom:18px}h1,h2,h3,p{margin:0}h1{font-size:30px;letter-spacing:-.8px}h2{font-size:19px}h3{font-size:16px}small,.muted{color:var(--muted)}header small{letter-spacing:1px;font-size:11px}button,select,input,textarea{font:inherit;border:1px solid var(--line);border-radius:8px;padding:8px 11px;color:inherit;background:white}button{cursor:pointer;font-weight:650}button:hover{border-color:var(--green)}.primary{background:var(--green);color:white;border-color:var(--green)}.panel,.card{background:white;border:1px solid var(--line);border-radius:13px;padding:16px}.panel{margin:14px 0}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px;margin:14px 0}.metric{font-size:25px;font-weight:800;margin-top:5px}.note{background:#e0eee7;padding:10px 13px;border-radius:8px;margin:10px 0}.tag{display:inline-block;border-radius:20px;padding:4px 9px;font-size:12px;font-weight:700;background:#dbefe5;color:#164f3f}.warn{background:#ffedcd;color:#784100}.red{background:#fbe0dc;color:#912f21}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;margin-top:9px}th,td{text-align:left;padding:10px;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);white-space:nowrap}dialog{width:min(680px,95vw);max-height:90vh;border:1px solid var(--line);border-radius:13px;color:inherit}dialog::backdrop{background:#122f2990}#fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:14px 0}label{display:grid;gap:5px;font-size:13px;font-weight:650}label :is(input,select,textarea){width:100%;min-width:0}#error{color:#a12418;margin-bottom:8px}.chart{margin:12px 0}.chart svg{width:100%;height:auto;max-height:225px;display:block}.chart text{font:12px system-ui;fill:#49645c}.chart a{cursor:pointer}.chart a:focus circle{stroke:#111;stroke-width:3}.scenario{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;margin-top:12px}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #c07828;outline-offset:2px}@media(max-width:760px){body{display:block}aside{padding:12px;gap:9px}nav{display:flex;overflow:auto}nav button{white-space:nowrap}footer{display:none}main{padding:13px}h1{font-size:24px}.grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}}

.brand{display:flex;align-items:center;gap:10px;line-height:1.15}
.brand-logo{display:block;flex:none;object-fit:contain;border-radius:50%}
.brand small{font-size:9px;line-height:1.35}

.panel,.scroll{min-width:0}
.scroll{
 max-width:100%;
 max-height:min(48vh,360px);
 margin-top:10px;
 overflow:auto;
 border:1px solid var(--line);
 border-radius:8px;
 scrollbar-width:auto;
 scrollbar-color:#648d80 #edf4f1;
}
.scroll table{margin-top:0;border-collapse:separate;border-spacing:0}
.scroll th{
 position:sticky;
 top:0;
 z-index:1;
 background:#edf4f1;
}
.scroll td{min-width:70px}
.scroll td:last-child .actions{flex-wrap:nowrap}
.scroll:focus-visible{outline:2px solid #12644f;outline-offset:2px}
@media(max-width:760px){
 .brand-logo{width:44px;height:42px}
 .scroll{max-height:min(48vh,310px)}
 .scroll :is(th,td){padding:8px}
}

.role-picker{min-width:145px}
.role-help{margin:-5px 0 15px;padding:8px 11px;border-radius:8px;background:#e0eee7;color:#31534a;font-size:13px}
