:root{--ink:#16324a;--muted:#607789;--line:#dbe5ec;--paper:#fff;--bg:#f3f7fa;--teal:#0788bd;--red:#a43b35;--shadow:0 14px 36px #18313610}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
header{position:relative;padding:30px max(22px,calc((100vw - 1240px)/2));background:#10375b;color:#f5fbfa}header:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;background:linear-gradient(90deg,#8dc63f 0 28%,#00aeef 58%,#72cde8 100%)}
h1{font-size:clamp(27px,4vw,38px);line-height:1.1;margin:8px 0;letter-spacing:-.035em}
.brand-logo{position:absolute;right:max(22px,calc((100vw - 1240px)/2));top:23px;width:158px;height:auto;max-height:52px;object-fit:contain}
nav{display:flex;gap:8px;max-width:1240px;margin:0 auto;padding:14px 22px 0}nav a{padding:8px 13px;border-radius:9px;text-decoration:none;color:#456068;font-weight:700;font-size:13px}nav a[aria-current=page]{background:#dcefeb;color:#0876a6}
main{max-width:1240px;margin:0 auto;padding:17px 22px 48px}.toolbar,.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 13px;flex-wrap:wrap}.toolbar h2,.section-head h2{font-size:17px;margin:0}.status,.hint{font-size:13px;color:var(--muted)}
.refresh-control{display:flex;flex-direction:column;align-items:flex-end;gap:4px}.refresh-control .status{font-size:11px}
.panel{background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.table-wrap{overflow:auto;max-height:68vh}table{border-collapse:separate;border-spacing:0;width:100%}th,td{padding:12px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}thead th{position:sticky;top:0;z-index:2;background:#f7faf9;color:#607178;text-transform:uppercase;letter-spacing:.075em;font-size:10px;font-weight:800}tbody tr:last-child>*{border-bottom:0}tbody tr:hover>*{background:#f8fbfa}
.matrix{min-width:680px}.matrix thead th:first-child{left:0;z-index:3;min-width:210px}.matrix thead tr:nth-child(2) th{top:32px}.matrix tbody th{position:sticky;left:0;z-index:1;background:white;min-width:210px;font-size:13px}.matrix td{text-align:center;min-width:96px;padding:8px 6px}.matrix .level-cell{min-width:108px;padding:8px 7px;text-align:left}.level-count{display:flex;align-items:center;justify-content:space-between;gap:4px;padding:4px 5px;border-radius:7px;font-size:11px;white-space:nowrap}.level-count+.level-count{margin-top:5px}.level-label{display:inline-flex;align-items:center;gap:4px;font-weight:800;flex-shrink:0}.level-count strong{color:inherit;font-size:13px;flex-shrink:0}.level-count strong[title]{cursor:help}.professional-level{background:#e6f5fb;color:#146d99}.expert-level{background:#e8f7e9;color:#237544}.zero-candidates{opacity:.25}.student-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.student-cap{fill:currentColor;stroke:currentColor;stroke-width:1}.student-tassel{stroke-width:1.4}.unknown-level{color:var(--muted);background:#f3f5f6}
.level-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:12px 2px;color:var(--muted);font-size:12px}.legend-item{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:7px}.legend-item strong{font-size:11px}
.date{font-variant-numeric:tabular-nums;font-weight:650;white-space:nowrap}.date:before{content:"";display:inline-block;width:7px;height:7px;background:var(--teal);border-radius:50%;margin-right:7px}.empty{color:#a2afb2}
.errors{list-style:none;padding:0;margin:11px 0}.errors li{padding:9px 12px;margin:6px 0;border-left:3px solid var(--red);background:#fff0ee;color:#74332e;border-radius:0 7px 7px 0;font-size:13px}button{font:inherit;cursor:pointer;border:0;border-radius:8px;padding:9px 13px;font-weight:700}.buttons{display:flex;gap:8px;flex-wrap:wrap}.primary{background:var(--teal);color:white}.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.danger{background:#fff0ee;color:var(--red);padding:7px 9px}
input,select{width:100%;border:1px solid var(--line);border-radius:7px;padding:8px 9px;font:inherit;color:var(--ink);background:white}input:focus,select:focus{outline:2px solid #9ad6ce;border-color:var(--teal)}.source-table{min-width:590px}.source-table th:first-child{width:64%}.source-table th:nth-child(2){width:28%}.source-table th:last-child{width:8%}.source-name{font-weight:650;white-space:nowrap}.classification-settings{margin-top:28px}.classification-table{min-width:1060px}.classification-table th:first-child{min-width:380px}.classification-table th:not(:first-child){min-width:140px}.classification-name-header{white-space:nowrap}.classification-name-header label{display:inline-block;margin:0 9px 0 0;vertical-align:middle}.classification-name-header input{display:inline-block;width:calc(100% - 108px);min-width:140px;padding:7px 8px;text-transform:none;letter-spacing:normal;font-size:12px;vertical-align:middle}
.boolean-button{display:inline-flex;align-items:center;gap:7px;min-width:78px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--muted);font-size:12px;font-weight:700;cursor:pointer;user-select:none}.boolean-button:has(input:checked){border-color:#87c9a0;background:#e8f7e9;color:#237544}.boolean-button input{width:auto;margin:0;accent-color:#24854c}.new-classification td{background:#e8f7e9}.new-classification:hover td{background:#dcf2df}
.password-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}.password-form label{display:grid;gap:6px;color:var(--muted);font-size:13px;font-weight:700}.password-form .buttons{grid-column:1/-1;align-items:center}
.knights{margin:0 0 22px}.knight-table{min-width:520px}.knight-count{font-weight:800;color:var(--teal);cursor:help}.search{max-width:360px}.search-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.toggle{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.toggle input{width:auto;accent-color:var(--teal)}.empty-state{padding:28px;color:var(--muted);text-align:center}.foot{font-size:12px;color:var(--muted);margin:14px 2px}
.partnership-section{margin:0 0 24px}.partnership-picker{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;font-weight:700}.partnership-picker select{width:auto;min-width:145px}.partnership-table{min-width:560px;table-layout:fixed}.partnership-table th:first-child{width:32%}.partnership-table th:nth-child(2){width:12%}.partnership-table th:nth-child(n+3){width:18.66%;text-align:center}.partnership-table tbody th,.partnership-table tbody td{text-align:center}.partnership-table tbody .partnership-role{text-align:left;vertical-align:middle;color:var(--ink);font-size:13px}.partnership-table .partnership-level{color:var(--muted)}.partnership-number{font-variant-numeric:tabular-nums;font-weight:750}.partnership-table td.delta-positive{background:#e7f5e9;color:#237544}.partnership-table td.delta-negative{background:#fff0ee;color:#a43b35}
.matrix thead tr:first-child th:not(:first-child){text-align:center;background:#e6f5fb;color:#146d99}.matrix thead tr:nth-child(2) th{background:#f3f8fb;color:#476b80}.matrix thead tr:first-child th.sales-group{background:#e9f3d7;color:#4f6a22;border-bottom:3px solid #8dc63f}.matrix thead tr:first-child th.technical-group{background:#dceef8;color:#146d99;border-bottom:3px solid #00aeef}.matrix thead tr:nth-child(2) th.technical-subheader{background:#f0f8fc;color:#276d8d}.matrix tbody td.sales-column{background:#fafcf5;border-left:2px solid #e1eccb}.matrix tbody td.technical-column{background:#f7fbfd;border-left:2px solid #d8eaf4}
@media(max-width:650px){header{padding:25px 130px 25px 19px}.brand-logo{right:13px;top:15px;width:104px;max-height:36px}nav{padding-left:12px;padding-right:12px}main{padding:14px 12px 35px}}
.count-trigger{font:inherit;color:inherit;background:transparent;border:0;border-radius:5px;padding:2px 4px;font-weight:800;cursor:pointer;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}.count-trigger:hover{background:#ffffffa8}.count-trigger:focus-visible{outline:2px solid var(--teal);outline-offset:2px}.knight-count{color:var(--teal);cursor:pointer}
.details-dialog{width:min(760px,calc(100vw - 28px));max-width:760px;max-height:80vh;padding:20px;border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);box-shadow:0 24px 70px #102f4940}.details-dialog::backdrop{background:#102f49aa}.details-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.details-head h2{font-size:18px;margin:0}.details-content{overflow:auto;max-height:calc(80vh - 90px)}.details-table{min-width:100%}.details-table td{font-size:13px}
.cert-total{font-weight:800;text-align:center;font-variant-numeric:tabular-nums;color:var(--ink);background:#f2f7f8}
.certification-matrix{min-width:722px}.certification-matrix tbody td:first-child{position:sticky;left:0;width:42px;min-width:42px;max-width:42px;padding:4px;text-align:center;background:#fff;z-index:2}.certification-matrix thead th:first-child{position:sticky;left:0;width:42px;min-width:42px;max-width:42px;padding:4px;text-align:center;background:#e6f5fb;color:#146d99;z-index:4}.certification-matrix thead th:nth-child(2){position:sticky;left:42px;z-index:3;min-width:210px}.certification-matrix tbody th:nth-child(2){left:42px;min-width:210px}.badge-image{display:block;width:30px;height:30px;max-width:30px;max-height:30px;object-fit:contain;margin:0 auto}.badge-image-trigger{display:inline-flex;align-items:center;justify-content:center;cursor:zoom-in;outline-offset:2px}.badge-image-large-preview{position:fixed;z-index:10000;padding:8px;background:#fff;border:1px solid #cbd8dd;border-radius:8px;box-shadow:0 8px 28px rgba(18,48,58,.28);pointer-events:none}.badge-image-large-preview[hidden]{display:none}.badge-image-large-preview img{display:block;width:auto;height:auto;max-width:90vw;max-height:85vh;object-fit:contain}
.source-table{min-width:980px}.source-table th:first-child{width:37%}.source-table th:nth-child(2){width:35%}.source-table th:nth-child(3){width:20%}.source-table th:last-child{width:8%}
.cert-dates{display:grid;justify-items:start;gap:4px}.expiry-date{display:block;padding-left:14px;color:var(--muted);font-size:11px;font-weight:650;white-space:nowrap}
.expiry-section{margin:0 0 24px}.expiry-table{width:100%;min-width:650px;table-layout:fixed}.expiry-table th:first-child{width:100px}.expiry-table thead th:not(:first-child),.expiry-table .expiry-count-cell{text-align:center}.expiry-table tbody th{font-size:13px}.expiry-summary-label{text-align:left;background:#f2f7f8}.expiry-count{min-width:42px}.expiry-table .expiry-over-year{background:#e7f5e9;color:#237544}.expiry-table .expiry-six-to-twelve{background:#fffde7;color:#746b13}.expiry-table .expiry-three-to-six{background:#ffecb3;color:#7a5c00}.expiry-table .expiry-within-three{background:#ffe0b2;color:#8a4300}.expiry-table .expiry-expired{background:#ffebee;color:#a43b35}
