:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17233a;background:#f3f5f8;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:10px 14px;background:#2362df;color:white;font-weight:600}button.secondary{background:#e9eef7;color:#26416d}button.danger{background:#fbe9e9;color:#a52b2b}button:disabled{opacity:.5;cursor:default}input,select,textarea{border:1px solid #cdd6e4;background:white;border-radius:8px;padding:10px;min-width:0;width:100%;color:inherit}textarea{resize:vertical;min-height:75px}label{display:block;font-weight:600;margin:12px 0 5px}.login{width:min(420px,92vw);margin:12vh auto;background:white;padding:36px;border:1px solid #e3e8f0;border-radius:18px;box-shadow:0 16px 60px #20304d12}.brand{font-size:25px;font-weight:800;letter-spacing:-1px}.brand span{color:#3877fa}.muted{color:#68758a;font-size:13px}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.side{background:#15233b;color:#e6efff;padding:24px 16px;display:flex;flex-direction:column;gap:8px}.side .brand{margin:0 9px 30px}.side button{background:transparent;color:#aebdd6;text-align:left}.side button.active,.side button:hover{background:#2b405f;color:white}.side .bottom{margin-top:auto}.main{padding:28px;min-width:0}.top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}h1{margin:0;font-size:27px;letter-spacing:-.6px}h2{font-size:19px;margin:0 0 12px}p{line-height:1.5}.panel{background:#fff;border:1px solid #e1e6ee;border-radius:12px;padding:18px;margin-bottom:16px}.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;margin-bottom:18px}.metric{background:white;border:1px solid #e1e6ee;border-radius:12px;padding:18px}.metric b{font-size:26px;display:block;margin-top:8px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:15px}.toolbar input{max-width:380px}.tablewrap{overflow:auto;border:1px solid #e1e6ee;border-radius:9px}table{border-collapse:collapse;width:100%;text-align:left;background:white;font-size:13px}th{background:#f0f3f8;color:#50627c;font-size:12px;font-weight:700;white-space:nowrap}td,th{padding:12px 10px;border-bottom:1px solid #e8ecf2;vertical-align:middle}td:first-child{min-width:145px}tr:last-child td{border-bottom:0}.pill{display:inline-block;border-radius:7px;padding:6px 8px;background:#edf0f5;color:#57677e;white-space:nowrap;font-size:12px}.pill.green{background:#e0f4e8;color:#17663d}.pill.red{background:#fbe7e7;color:#a12c35}.pill.blue{background:#e4edff;color:#2455b5}.pill.amber{background:#fff0d5;color:#8b5c0c}.cell{background:none;padding:0;color:inherit;font-weight:400}.cell:hover .pill{outline:1px solid #2362df}.link{background:none;color:#2362df;text-align:left;padding:0}.tiny{font-size:12px;margin-top:4px}.row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.split{display:grid;grid-template-columns:1fr 1fr;gap:12px}.empty{padding:30px;text-align:center;color:#68758a}.spacer{flex:1}dialog{border:1px solid #e2e7ef;border-radius:14px;padding:24px;width:min(520px,94vw);max-height:90vh;overflow:auto;color:inherit}dialog::backdrop{background:#15233b88}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#toast{position:fixed;bottom:20px;right:20px;background:#15233b;color:white;padding:12px 18px;border-radius:9px;display:none;max-width:85vw;z-index:999}.tag{font-size:12px;color:#65738a;border:1px solid #d6deeb;border-radius:20px;padding:6px 10px}.fieldline{display:flex;gap:8px;align-items:end}.fieldline>div{flex:1}@media(max-width:760px){.layout{display:block}.side{flex-direction:row;overflow:auto;padding:10px;align-items:center}.side .brand{margin:0 12px 0 0;white-space:nowrap;font-size:20px}.side button{white-space:nowrap}.side .bottom{margin:0}.main{padding:14px}.top{align-items:start}h1{font-size:22px}.split{grid-template-columns:1fr}.panel{padding:12px}.toolbar{flex-wrap:wrap}}

.check-overdue{background:#fff6e5;border:1px solid #e3bd70;border-radius:8px;padding:7px}.review-due{font-size:12px;font-weight:700;color:#89570b;margin-top:5px;white-space:normal;min-width:125px}.check-comment{overflow-wrap:anywhere;max-width:210px}.toolbar{flex-wrap:wrap}

/* v0.1.3: compact client grid; only this table has pinned identity columns. */
.client-tablewrap table{table-layout:fixed;min-width:940px;border-collapse:separate;border-spacing:0}
.client-tablewrap .client-col{width:150px}.client-tablewrap .need-col{width:108px}.client-tablewrap .action-col{width:110px}
.client-tablewrap td,.client-tablewrap th{padding:9px 6px;white-space:normal;overflow-wrap:anywhere;border-right:1px solid #e1e6ee}
.client-tablewrap td:first-child,.client-tablewrap td:nth-child(2){min-width:0}
.client-tablewrap th:last-child,.client-tablewrap td:last-child{border-right:0}
.client-tablewrap th+th,.client-tablewrap td+td{border-left:1px solid #f3f5f8}

.client-tablewrap th:nth-child(1),.client-tablewrap td:nth-child(1):not(.empty){position:sticky;left:0;z-index:2;background:#fff}
.client-tablewrap th:nth-child(2),.client-tablewrap td:nth-child(2){position:sticky;left:150px;z-index:2;background:#fff;box-shadow:2px 0 4px #15233b0e}
.client-tablewrap th:nth-child(1),.client-tablewrap th:nth-child(2){background:#f0f3f8;z-index:3}
.client-tablewrap .pill{white-space:normal;max-width:100%;overflow-wrap:anywhere;padding:5px 6px;line-height:1.25;font-size:11px}
.client-tablewrap .cell{max-width:100%;text-align:left}.client-tablewrap .check-overdue{padding:4px}
.client-tablewrap .review-due{min-width:0;font-size:11px;line-height:1.25}
.client-tablewrap .check-comment{max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}
.client-tablewrap .tiny{font-size:11px}.client-tablewrap td:last-child button{padding:7px 6px;max-width:100%;font-size:12px;white-space:normal}
.client-tablewrap td:last-child .row{gap:4px}
@media(min-width:761px){.layout{grid-template-columns:190px minmax(0,1fr)}.main{padding:20px}.panel{padding:14px}}
@media(max-width:760px){.client-tablewrap .client-col{width:130px}.client-tablewrap .need-col{width:90px}.client-tablewrap th:nth-child(2),.client-tablewrap td:nth-child(2){left:130px}}

.client-tablewrap table:has(thead th:nth-child(10)){min-width:1035px}
.client-tablewrap table:has(thead th:nth-child(11)){min-width:1130px}
.client-tablewrap table:has(thead th:nth-child(12)){min-width:1225px}
.client-tablewrap table:has(thead th:nth-child(13)){min-width:1320px}
.client-tablewrap table:has(thead th:nth-child(14)){min-width:1415px}
.client-tablewrap table:has(thead th:nth-child(15)){min-width:1510px}
.client-tablewrap table:has(thead th:nth-child(16)){min-width:1605px}
.client-tablewrap table:has(thead th:nth-child(17)){min-width:1700px}
.client-tablewrap table:has(thead th:nth-child(18)){min-width:1795px}
.client-tablewrap table:has(thead th:nth-child(19)){min-width:1890px}
.client-tablewrap table:has(thead th:nth-child(20)){min-width:1985px}
.client-tablewrap table:has(thead th:nth-child(21)){min-width:2080px}
.client-tablewrap table:has(thead th:nth-child(22)){min-width:2175px}
.client-tablewrap table:has(thead th:nth-child(23)){min-width:2270px}
.client-tablewrap table:has(thead th:nth-child(24)){min-width:2365px}
.client-tablewrap table:has(thead th:nth-child(25)){min-width:2460px}
.client-tablewrap table:has(thead th:nth-child(26)){min-width:2555px}
.client-tablewrap table:has(thead th:nth-child(27)){min-width:2650px}
.client-tablewrap table:has(thead th:nth-child(28)){min-width:2745px}
.client-tablewrap table:has(thead th:nth-child(29)){min-width:2840px}
.client-tablewrap table:has(thead th:nth-child(30)){min-width:2935px}
.client-tablewrap table:has(thead th:nth-child(31)){min-width:3030px}
.client-tablewrap table:has(thead th:nth-child(32)){min-width:3125px}
.client-tablewrap table:has(thead th:nth-child(33)){min-width:3220px}


/* v0.1.5: centered headers and polished client grid */
.client-tablewrap th{ text-align:center; vertical-align:middle; font-size:13px; letter-spacing:.02em; }
.client-tablewrap th:nth-child(1),
.client-tablewrap th:nth-child(2){ text-align:left; }
.client-tablewrap td{ vertical-align:middle; }
.client-tablewrap td:nth-child(n+3):not(:last-child){ text-align:center; }
.client-tablewrap td:nth-child(n+3):not(:last-child) .cell,
.client-tablewrap td:nth-child(n+3):not(:last-child) .row{ display:flex; justify-content:center; align-items:center; }
.client-tablewrap td:nth-child(n+3):not(:last-child) .row{ flex-direction:column; gap:6px; }
.client-tablewrap td:nth-child(n+3):not(:last-child) .pill,
.client-tablewrap td:nth-child(n+3):not(:last-child) .check-overdue{ margin-inline:auto; }
.client-tablewrap thead th{ background:linear-gradient(180deg,#f4f7fb 0%,#eef2f7 100%); }
.client-tablewrap tbody tr:hover td{ background:#fbfcfe; }
.client-tablewrap tbody tr:hover td:nth-child(1),
.client-tablewrap tbody tr:hover td:nth-child(2){ background:#fbfcfe; }
.client-tablewrap .pill{ border:1px solid rgba(62,90,136,.08); box-shadow:0 1px 0 rgba(22,35,58,.02); }
.client-tablewrap .check-overdue{ box-shadow:inset 0 0 0 1px rgba(227,189,112,.35); }
.client-tablewrap td:last-child, .client-tablewrap th:last-child{ text-align:center; }
.client-tablewrap td:last-child .row{ justify-content:center; }
.client-tablewrap .action-col button{ box-shadow:0 1px 0 rgba(22,35,58,.04); }

/* v0.1.6 contact permissions */
.side .nav-request{display:flex;align-items:center;justify-content:space-between;gap:6px}.request-count{flex:none;background:#c83e45;color:white;border-radius:20px;font-size:11px;padding:3px 7px;line-height:1.2}.contact-detail{display:flex;align-items:center;flex-direction:column;gap:6px}.contact-phone{font-weight:650;font-size:12px;color:#234b85;overflow-wrap:anywhere;user-select:text}.client-tablewrap td:last-child .contact-detail button{font-size:11px}

/* v0.1.9: public registry metadata, compact warnings */
.org-details{margin:12px 0;padding:12px;border:1px solid #e1e6ee;border-radius:9px;background:#f7f9fc}
.org-details h3{margin:0 0 8px;font-size:14px}.org-details dl{display:grid;grid-template-columns:1fr 1.2fr;gap:6px 10px;margin:0;font-size:13px}.org-details dt{color:#68758a}.org-details dd{margin:0;overflow-wrap:anywhere}.org-warning{color:#8b5c0c;font-size:11px;font-weight:600;margin-top:5px;line-height:1.3}.org-warning.risk{color:#a12c35}.client-name{font-size:13px;overflow-wrap:anywhere;max-width:100%;text-align:left}
