/* Opaque reading surfaces keep heat statuses legible over both app themes. */
#page-hr .hr-tabs{max-width:100%;flex-wrap:wrap;display:flex;width:fit-content}
#page-hr .hr-tab{white-space:normal;min-height:42px}
.hht,.hht-dialog{--hht-text:#25364a;--hht-muted:#526176;--hht-line:#d8e2ed;--hht-blue:#245bb2;color:var(--hht-text);font-family:var(--font,Arial,sans-serif);font-size:13px;line-height:1.5;color-scheme:light}
.hht *,.hht-dialog *{box-sizing:border-box}
.hht{min-width:0;animation:hht-enter .28s ease-out}
.hht h2,.hht h3,.hht p{margin:0}.hht-intro{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:4px 0 20px}.hht-intro h2{font-size:26px;font-weight:750;letter-spacing:-.6px;margin:3px 0 6px}.hht-intro p,.hht-muted{color:var(--hht-muted)}
.hht-eyebrow{font-size:10px;font-weight:750;letter-spacing:.12em;color:#546880}.hht-live{color:#345445;background:#ecf6ef;border:1px solid #cee5d6;padding:7px 11px;border-radius:99px;font-size:11px;white-space:nowrap}
.hht-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.hht-stat{display:flex;flex-direction:column;gap:3px;padding:17px 20px;background:#fff;border:1px solid var(--hht-line);border-radius:17px;min-width:0}.hht-stat>span{font-size:12px;color:var(--hht-muted)}.hht-stat strong{font-size:32px;line-height:1.25;font-variant-numeric:tabular-nums;letter-spacing:-1px}.hht-stat small{color:var(--hht-muted);font-size:11px}.hht-stat-need{background:#f2f6fd}
.hht-tools{display:flex;flex-wrap:wrap;gap:10px;padding:12px;background:#f5f8fc;border:1px solid var(--hht-line);border-radius:16px;align-items:center}.hht-btn{appearance:none;font:inherit;font-size:12px;font-weight:650;line-height:1.4;min-height:40px;padding:9px 13px;border:1px solid var(--hht-line);border-radius:10px;background:#fff;color:var(--hht-text);cursor:pointer;transition:background .18s,border-color .18s,transform .18s,box-shadow .18s}.hht-btn:hover{background:#eef4fc;border-color:#99b4d7}.hht-btn:active{transform:translateY(1px)}.hht-btn.active,.hht-primary{background:#245bb2;color:#fff;border-color:#245bb2}.hht-btn.active:hover,.hht-primary:hover{background:#194989;color:#fff}.hht-views{display:flex;gap:4px;max-width:100%;flex-wrap:wrap}.hht-search{flex:1 1 190px;min-width:0}.hht input,.hht select,.hht-dialog input:not([type=checkbox]),.hht-dialog select,.hht-dialog textarea{font:inherit;font-size:13px;min-height:42px;max-width:100%;border:1px solid #cbd8e6;border-radius:10px;background:#fff;color:var(--hht-text);padding:9px 11px;box-shadow:none}.hht input{width:100%}.hht select{width:100%}.hht-tools>label{max-width:100%;min-width:0}.hht input::placeholder,.hht-dialog input::placeholder,.hht-dialog textarea::placeholder{color:#607186;opacity:1}.hht :is(button,input,select):focus-visible,.hht-dialog :is(button,input,select,textarea):focus-visible{outline:3px solid #3275cc;outline-offset:3px}
.hht-green{color:#286044;background:#e6f4ec}.hht-blue{color:#24579d;background:#e9f1ff}.hht-yellow{color:#754a00;background:#fff0b3}.hht-red{color:#a32232;background:#ffe4e7}.hht-unknown{color:#566274;background:#edf1f6}.hht-badge{display:inline-flex;align-items:center;border:1px solid currentColor;border-radius:8px;padding:4px 8px;font-size:11px;font-weight:700;max-width:100%}
.hht-result-caption{font-size:12px;color:var(--hht-muted);margin:4px 0 16px;display:flex;align-items:center;flex-wrap:wrap;gap:10px}.hht-canvas{position:relative;isolation:isolate}.hht-wires{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:visible}.hht-wires path{fill:none;stroke:#8ba3be;stroke-width:2}.hht-level{margin-bottom:30px}.hht-level-name{color:#526176;font-size:11px!important;letter-spacing:.06em;font-weight:650;margin-bottom:12px!important;text-transform:uppercase}.hht-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:18px;align-items:start}
.hht-card{position:relative;min-width:0;border:1px solid #cfdbe7;border-top:4px solid #a7b4c5;border-radius:17px;padding:18px;background:#fff;box-shadow:0 4px 14px #243b5310;transition:box-shadow .2s,border-color .2s,transform .2s;animation:hht-enter .28s ease-out}.hht-tone-green{border-top-color:#478664}.hht-tone-blue{border-top-color:#5f8dcb}.hht-tone-yellow{border-top-color:#d6a317;background:#fffcf1}.hht-tone-red{border-top-color:#cf4b5b;background:#fff5f6}.hht-card:hover{box-shadow:0 7px 21px #243b531a}.hht-selected{outline:2px solid #245bb2;outline-offset:2px}.hht-related{box-shadow:0 0 0 1px #aac3e4,0 8px 24px #245bb214}.hht-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.hht-card h3{font-size:18px;letter-spacing:-.3px;overflow-wrap:anywhere;line-height:1.3;margin-top:4px}.hht-icon{min-width:40px;flex-shrink:0;padding:8px;font-size:18px}.hht-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:14px 0}.hht-counts span{display:flex;flex-direction:column;color:var(--hht-muted);font-size:10px}.hht-counts b{font-size:25px;font-weight:700;color:var(--hht-text);font-variant-numeric:tabular-nums}.hht-progress{height:5px;background:#e2e8f1;border-radius:5px;overflow:hidden;margin-bottom:13px}.hht-progress i{display:block;height:100%;background:#5c86bb;border-radius:5px;transition:width .35s ease-out}.hht-tone-green .hht-progress i{background:#478664}.hht-tone-yellow .hht-progress i{background:#c49a23}.hht-tone-red .hht-progress i{background:#ca5b66}.hht-relation{font-size:11px;color:var(--hht-muted);line-height:1.7;overflow-wrap:anywhere;margin:10px 0!important}.hht-relation b{font-weight:650}.hht-team{display:flex;flex-direction:column;gap:5px;min-width:0;margin-top:12px}.hht-person{display:flex;align-items:center;gap:9px;width:100%;text-align:left;background:#fff;border:1px solid #e1e7ef;border-radius:10px;padding:9px;color:var(--hht-text);font:inherit;cursor:pointer;transition:background .18s,border-color .18s;min-height:54px}.hht-person:hover{background:#eff5ff;border-color:#9db7d9}.hht-person>span:nth-child(2){min-width:0;flex:1}.hht-person strong{display:block;font-size:12px;font-weight:650;overflow-wrap:anywhere}.hht-person small{display:block;color:var(--hht-muted);font-size:10px;line-height:1.5;overflow-wrap:anywhere}.hht-avatar{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#edf2f9;color:#496888;font-size:10px;font-weight:750}.hht-arrow{color:#597291}.hht-vacancies{display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:10px;border:1px dashed #9bb2cb;border-radius:10px;color:#415a76;background:#f3f7fd;font-size:11px;overflow-wrap:anywhere;white-space:pre-line}.hht-tone-yellow .hht-vacancies{color:#754a00;border-color:#b69435;background:#fff5cd}.hht-tone-red .hht-vacancies{color:#932535;border-color:#d37d87;background:#ffecef}.hht-edit{width:100%;margin-top:13px;min-height:40px}.hht-columns{display:flex;align-items:flex-start;gap:16px;overflow-x:auto;max-width:100%;padding:4px 4px 18px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}.hht-columns>.hht-card{flex:0 0 308px;max-width:90vw;scroll-snap-align:start}.hht-footnote{font-size:11px;color:var(--hht-muted);margin:15px 0 4px!important;line-height:1.7}.hht-table-scroll{overflow:auto;max-width:100%;border:1px solid var(--hht-line);border-radius:15px;background:#fff;overscroll-behavior-x:contain}.hht-table{width:100%;border-collapse:collapse;min-width:1100px;font-size:12px}.hht-table caption{text-align:left;font-weight:650;padding:12px 15px;background:#fff}.hht-table thead{background:#edf3f9;color:#34475c}.hht-table th,.hht-table td{padding:14px;border-bottom:1px solid var(--hht-line);text-align:left;vertical-align:top;min-width:80px}.hht-table th{font-weight:650}.hht-table th:first-child{min-width:170px}.hht-table td:nth-child(6){min-width:260px}.hht-table td:nth-child(5),.hht-table td:nth-child(7){min-width:170px}.hht-table th .hht-badge{margin-top:8px}.hht-table td small{display:block;color:var(--hht-muted);margin-top:7px}.hht-table .hht-team{margin:0}.hht-empty{padding:40px 20px;text-align:center;background:#fff;border:1px dashed var(--hht-line);border-radius:16px}.hht-empty p{color:var(--hht-muted);margin:8px 0 15px}.hht-notice{padding:12px;margin:12px 0;background:#edf5ff;border:1px solid #a9c2df;color:#30527a;border-radius:12px}.hht-error{color:#a02030!important;white-space:pre-line}.hht-notice.hht-error{background:#fff0f2;border-color:#e5acb5}.hht-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.hht-dialog{width:760px;max-width:calc(100% - 24px);max-height:calc(100dvh - 32px);margin:auto;padding:0;background:#fff;border:1px solid #d4deea;border-radius:20px;box-shadow:0 24px 80px #12294340;animation:hht-enter .2s ease-out;overscroll-behavior:contain}.hht-dialog::backdrop{background:#1b2f496b;backdrop-filter:blur(5px)}.hht-dialog form{margin:0}.hht-dialog header,.hht-dialog footer{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:18px 22px;background:#fff;position:sticky;z-index:2}.hht-dialog header{top:0;border-bottom:1px solid var(--hht-line)}.hht-dialog h2{font-size:22px;line-height:1.3;margin:3px 0;overflow-wrap:anywhere}.hht-dialog footer{bottom:0;border-top:1px solid var(--hht-line);justify-content:flex-end}.hht-form-body{padding:20px 22px}.hht-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:18px 0}.hht-form-grid label,.hht-form-label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;min-width:0}.hht-form-grid small,.hht-form-label small{font-size:11px;color:var(--hht-muted);font-weight:400}.hht-dialog fieldset{border:1px solid var(--hht-line);border-radius:13px;padding:14px;margin:20px 0;min-width:0}.hht-dialog legend{font-size:13px;font-weight:700;padding:0 5px}.hht-dialog .hht-muted{font-size:12px;margin:0}.hht-checks{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.hht-checks label{display:flex;align-items:center;gap:8px;min-height:38px;font-size:12px}.hht-checks input{accent-color:#245bb2;width:18px;height:18px;flex-shrink:0}.hht-manager-list label{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;margin:12px 0;min-width:0}.hht-manager-list label>span{font-size:12px;overflow-wrap:anywhere}.hht-manager-list small{display:block;color:var(--hht-muted);font-size:11px}.hht-form-hint{padding:12px;background:#f1f6fd;border-radius:10px;font-size:12px;color:#3a5676}.hht-dialog textarea{resize:vertical;min-height:82px}
@keyframes hht-enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.hht-intro{align-items:flex-start;flex-direction:column}.hht-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.hht-tools>label:not(.hht-search){flex:1 1 130px}.hht-search{flex-basis:100%}}
@media(max-width:520px){#page-hr .hr-tabs{width:100%}#page-hr .hr-tab{flex:1 1 auto!important;font-size:11px!important;padding:8px 10px!important}.hht-intro h2{font-size:23px}.hht-stat{padding:12px}.hht-stat strong{font-size:27px}.hht-views{width:100%}.hht-views .hht-btn{flex:1;padding-inline:8px;font-size:11px}.hht-grid{grid-template-columns:1fr}.hht-card{padding:14px}.hht-form-grid,.hht-checks,.hht-manager-list label{grid-template-columns:1fr}.hht-dialog header,.hht-dialog footer,.hht-form-body{padding:14px}.hht-dialog footer{gap:8px}.hht-dialog footer .hht-btn{font-size:11px}.hht-level{margin-bottom:24px}.hht-wires{display:none}.hht-result-caption{font-size:11px}}
@media(prefers-reduced-motion:reduce){.hht,.hht-card,.hht-dialog{animation:none}.hht *,.hht-dialog *{transition:none!important;scroll-behavior:auto!important}}

.hht-tree{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:24px;align-items:start}.hht-branch{min-width:0}.hht-children{padding-left:22px;padding-top:20px;display:flex;flex-direction:column;gap:18px}.hht-tree .hht-card{height:auto}.hht-draft-box{padding:14px;background:#fff6d8;border:1px solid #dcc572;border-radius:12px;margin-bottom:14px;color:#654e15;font-size:12px}.hht-draft-box p{margin:6px 0 10px}.hht-draft-box .hht-btn{margin:3px 7px 3px 0}.hht-dialog{overflow-x:hidden}.hht-dialog select{min-width:0;width:100%}@media(max-width:520px){.hht-tree{grid-template-columns:1fr}.hht-children{padding-left:12px;border-left:2px solid #b7c8dc}.hht-tree .hht-card h3{font-size:17px}}

.hht-children .hht-children .hht-children{padding-left:0}

.hht-children{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));align-items:start}.hht-tree>.hht-branch:has(>.hht-children){grid-column:1/-1}.hht-tree>.hht-branch:has(>.hht-children)>.hht-card{max-width:360px}@media(max-width:520px){.hht-children{grid-template-columns:1fr}}
@media(min-width:800px){.hht-tree>.hht-branch:has(>.hht-children)>.hht-card{max-width:none;display:grid;grid-template-columns:minmax(240px,1fr) minmax(300px,2.4fr);column-gap:24px}.hht-tree>.hht-branch:has(>.hht-children)>.hht-card>:not(.hht-team){grid-column:1}.hht-tree>.hht-branch:has(>.hht-children)>.hht-card>.hht-team{grid-column:2;grid-row:1 / span 8;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-content:start;gap:8px;margin:0}.hht-tree>.hht-branch:has(>.hht-children)>.hht-card>.hht-team>.hht-person{height:100%}}

.hht-auto-relations{font-size:11px;color:#415873;margin:10px 0;min-width:0}.hht-auto-relations>b{display:block;font-size:11px;margin-bottom:5px}.hht-auto-edge{margin:4px 0;overflow-wrap:anywhere}.hht-auto-edge summary{cursor:pointer;color:#315a8e;min-height:28px;padding:4px 0;list-style-position:inside}.hht-auto-edge>span{display:block;padding:5px 9px;border-left:2px solid #afc4dd;color:#526176;background:#f4f7fc;border-radius:0 6px 6px 0}.hht-auto-preview{margin:18px 0;padding:14px;border:1px solid #c9daee;border-radius:13px;background:#f6f9fe}.hht-auto-preview h3{font-size:14px;margin:0 0 6px}.hht-auto-preview>p{font-size:12px;color:#526176;margin:0 0 9px}.hht-wires .hht-wire-auto{stroke:#4678b7;stroke-dasharray:5 5;stroke-width:2}
/* Visibility is personal; the shared staffing totals always keep hidden departments. */
#hhtVisibility{position:relative;min-width:150px}.hht-visibility>summary,.hht-audit>summary{cursor:pointer;min-height:42px;display:flex;align-items:center;gap:12px;padding:10px 13px;font-size:12px;font-weight:700;list-style:none;border-radius:10px}.hht-visibility>summary::-webkit-details-marker,.hht-audit>summary::-webkit-details-marker{display:none}.hht-visibility>summary{border:1px solid #cbd8e6;background:#fff}.hht-visibility>summary::after,.hht-audit>summary::after{content:'⌄';margin-left:auto}.hht-visibility[open]>summary::after,.hht-audit[open]>summary::after{content:'⌃'}.hht-visibility summary span{color:#526176;font-variant-numeric:tabular-nums}.hht-visibility-body{position:absolute;right:0;top:calc(100% + 8px);z-index:20;width:min(440px,calc(100vw - 48px));max-height:min(70dvh,520px);overflow:auto;background:#fff;border:1px solid #cbd8e6;border-radius:14px;padding:16px;box-shadow:0 18px 45px #23364e2b;animation:hht-enter .18s ease-out}.hht-visibility-body>p{font-size:12px;color:#526176;margin-bottom:12px}.hht-visibility-body input[type=checkbox]{appearance:auto;width:18px;min-width:18px;height:18px;min-height:18px;padding:0;accent-color:#245bb2}.hht summary:focus-visible{outline:3px solid #3275cc;outline-offset:3px}.hht-hide{margin-top:12px;min-height:36px;font-size:11px}.hht-hire-summary{display:flex;flex-direction:column;gap:4px;padding:12px;margin-top:12px;border:1px solid #d8e2ed;border-radius:10px;background:#f5f8fc;font-size:11px;color:#425872;overflow-wrap:anywhere}.hht-hire-summary b{font-size:12px;color:#25364a}.hht-audit{background:#fff;border:1px solid #d8e2ed;border-radius:14px;margin:8px 0 18px;overflow:hidden}.hht-audit>summary{flex-wrap:wrap;background:#f5f8fc}.hht-audit>summary span{font-weight:500;color:#526176}.hht-audit>p{margin:12px 16px!important;font-size:12px}.hht-audit-grid,.hht-hiring-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px}.hht-audit-grid{padding:0 16px 16px}.hht-audit-grid article,.hht-hire-card{min-width:0;background:#fff;border:1px solid #d8e2ed;border-radius:12px;padding:16px;overflow-wrap:anywhere}.hht-audit-grid h3,.hht-hire-card h3{font-size:15px;margin:0 0 10px}.hht-audit-grid ul{padding-left:18px;margin:8px 0 12px;font-size:12px;color:#526176}.hht-audit-grid li+li{margin-top:5px}.hht-hiring>h3{font-size:18px;margin-bottom:5px}.hht-hiring>p{font-size:12px;margin-bottom:15px}.hht-hire-card>p{font-size:12px;white-space:pre-line;margin-top:12px}.hht-hire-card{animation:hht-enter .2s ease-out}
@media(max-width:600px){#hhtVisibility{width:100%}.hht-visibility-body{left:0;right:auto;width:100%}.hht-checks{grid-template-columns:1fr}.hht-audit>summary{gap:4px 10px}.hht-audit>summary span{font-size:11px}}
@media(prefers-reduced-motion:reduce){.hht-visibility-body,.hht-hire-card{animation:none}}
