.th-purpose-options{border:0;padding:0;margin:0 0 18px;min-width:0;color:#142547}
.th-purpose-options legend{font-size:16px;font-weight:700;padding:0;margin-bottom:12px}
.th-purpose-options__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.th-purpose-option{display:flex!important;align-items:flex-start;gap:10px;padding:16px;border:1px solid #d7e2f3;border-radius:14px;background:#fff;cursor:pointer;min-width:0}
.th-purpose-option:has(input:checked){border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb}
.th-purpose-option:has(input:focus-visible){outline:3px solid #bfd5ff;outline-offset:3px}
.th-purpose-option input[type=radio]{appearance:auto!important;accent-color:#2563eb;width:18px!important;height:18px!important;min-height:18px!important;flex:0 0 18px;margin:2px 0 0!important;padding:0!important}
.th-purpose-option strong{font-size:14px;line-height:1.5;display:block;color:#152749}
.th-purpose-option small{font-size:12px;line-height:1.5;color:#627895;display:block;margin-top:4px}
/* Owner-approved cream palette on registration only; cabinet choices stay blue. */
.register-page .th-purpose-options{color:#413523}
.register-page .th-purpose-option{background:#fffaf1;border-color:#e7d8bd;transition:background-color .15s,border-color .15s}
.register-page .th-purpose-option:hover{background:#fff5e3;border-color:#c8a36b}
.register-page .th-purpose-option:has(input:checked){background:#fff0d5;border-color:#b88c46;box-shadow:0 0 0 1px #b88c46}
.register-page .th-purpose-option:has(input:focus-visible){outline-color:#80602a}
.register-page .th-purpose-option input[type=radio]{accent-color:#a77b34}
.register-page .th-purpose-option strong{color:#413523}
.register-page .th-purpose-option small,.register-page .th-purpose-options .th-purpose-hint{color:#786a54}
.th-purpose-hint{font-size:12px;color:#637a98;line-height:1.5;margin:10px 0}
.th-profile-purpose__heading{display:flex;align-items:center;gap:7px}
body.cabinet .th-profile-purpose__trigger{display:inline-flex;align-items:center;justify-content:center;background:#fff!important;background-image:none!important;border:1px solid #bfd2f4!important;border-radius:10px!important;box-shadow:none!important;width:auto!important;min-height:38px!important;padding:8px 14px!important;color:#2458ac!important;font-family:inherit;font-size:13px;font-weight:600;line-height:20px;text-align:center;text-decoration:none!important;cursor:pointer;box-sizing:border-box}
body.cabinet .th-profile-purpose__trigger:hover{background:#eff6ff!important;border-color:#93b8f5!important}
.th-profile-purpose__current{font-size:12px;line-height:1.5;color:#647b99;margin:5px 0 0}
body.cabinet .th-profile-purpose__help{display:inline-flex!important;align-items:center;justify-content:center;width:20px!important;min-width:20px!important;height:20px!important;min-height:20px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;flex:none}
.th-profile-purpose__help svg{width:15px!important;height:15px!important}
.th-profile-purpose__help .cabinet-th-help__bubble{width:260px!important;max-width:calc(100vw - 60px)!important;text-align:left;white-space:normal;font-weight:400}
.th-profile-purpose__help .cabinet-th-help__bubble:not(.is-pinned){left:-120px;right:auto;transform:none}
.th-profile-purpose button:focus-visible{outline:3px solid #bfdbfe!important;outline-offset:3px}
.th-purpose-dialog{width:min(620px,calc(100vw - 32px))!important}
.th-purpose-dialog .th-purpose-settings{border:0;margin:0;padding:0;background:none}
.th-purpose-dialog .th-purpose-options__grid{grid-template-columns:1fr}
.th-purpose-dialog .th-purpose-settings form>.th-purpose-hint{display:block;margin:14px 0 0}
.th-purpose-dialog button{background-image:none!important;width:auto!important}
.th-purpose-dialog header button{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;flex:0 0 36px}
.th-people-error{padding:10px 12px;border:1px solid #fecaca;border-radius:10px;background:#fff5f5;color:#a42535;font-size:13px}
.th-purpose-settings{border:1px solid #dde7f5;background:#f6f9fe;border-radius:16px;padding:20px;margin:0 0 20px}
.th-purpose-settings form>.th-purpose-hint{display:inline-block;margin-left:12px}
.th-purpose-settings button,.th-people button{background-image:none!important;width:auto!important;min-height:36px!important}
.th-people-primary,.th-people-secondary{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:auto!important;min-height:36px!important;padding:8px 13px!important;border-radius:10px!important;font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;cursor:pointer;text-decoration:none!important;white-space:nowrap}
.th-people-primary{background:#2563eb!important;color:#fff!important;border:1px solid #2563eb!important;box-shadow:none!important}
.th-people-secondary{background:#fff!important;color:#244165!important;border:1px solid #d5e1f3!important;box-shadow:none!important}
.th-people-primary:hover{background:#1d4ed8!important}.th-people-secondary:hover{background:#eff6ff!important}
.th-people button:focus-visible,.th-purpose-settings button:focus-visible{outline:3px solid #bdd5ff!important;outline-offset:2px}
.th-people button:disabled{opacity:.45;cursor:not-allowed}
.th-people-heading,.th-people-links{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.th-people-links{margin:0;font-size:12px}.th-people-links svg{width:16px;height:16px}
.th-people-filters{display:grid;grid-template-columns:minmax(160px,1.3fr) repeat(3,minmax(130px,1fr)) auto;gap:10px;align-items:end;padding:14px;background:#f5f8fd;border:1px solid #e0e8f4;border-radius:14px}
.th-people-filters--education{grid-template-columns:minmax(160px,1.2fr) repeat(4,minmax(130px,1fr)) auto}
.th-people-filters.th-people-filters--columns{display:none}
.th-people-filters>label[hidden]{display:none!important}
.th-people .th-column-trigger{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;width:100%!important;min-height:32px!important;margin:0!important;padding:4px 0!important;border:0!important;border-radius:5px!important;background:transparent!important;box-shadow:none!important;color:#244165!important;font:inherit!important;text-align:left;cursor:pointer}
.th-column-chevron{display:block;width:8px;height:8px;margin:0 3px 3px 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;color:#7188a7;transform:rotate(45deg);transform-origin:center;transition:transform .16s ease,color .16s ease}
.th-column-trigger[aria-expanded=true] .th-column-chevron{margin-top:4px;margin-bottom:0;transform:rotate(225deg);color:#2563eb}
.th-column-trigger:hover .th-column-chevron{color:#2563eb}
.th-people .th-column-trigger:hover,.th-people .th-column-trigger.is-active{color:#2563eb!important}
.th-column-trigger small{grid-column:1 / -1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:400;color:#2563eb;max-width:100%}
.th-column-popover{position:fixed;inset:auto;margin:0;box-sizing:border-box;padding:12px;border:1px solid #d5e1f3;border-radius:13px;background:#fff;color:#172d50;box-shadow:0 12px 36px #18345b26;overflow:hidden}
.th-column-popover:popover-open{display:flex;flex-direction:column;gap:8px}
.th-column-popover input{flex:none;width:100%!important;box-sizing:border-box;height:38px;min-height:38px!important;padding:8px 10px!important;border:1px solid #d2e0f3!important;border-radius:8px!important;background:#fff!important;font-family:inherit;font-size:13px;line-height:1.4;color:#172d50}
.th-column-options{overflow-y:auto;min-height:0;display:flex;flex-direction:column;gap:3px}
.th-people .th-column-option{flex:none;width:100%!important;min-height:36px!important;margin:0!important;padding:9px 10px!important;border:0!important;border-radius:7px!important;background:#fff!important;box-shadow:none!important;color:#244165!important;text-align:left;white-space:normal;overflow-wrap:anywhere;font-family:inherit;font-size:13px;font-weight:400!important;cursor:pointer}
.th-people .th-column-option:hover{background:#f1f6ff!important}
.th-people .th-column-option[aria-pressed=true]{background:#eaf2ff!important;color:#2563eb!important;font-weight:600!important}
.th-column-empty{margin:8px;font-size:13px;color:#657f9e}
.th-people-filters>a{height:38px!important;min-height:38px!important;box-sizing:border-box;align-self:end}
.th-people-filters>label{margin:0!important}
.th-people-institution-create{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:18px}
.th-people-institution-create label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#526e90;min-width:0}
.th-people-institution-label{grid-column:1 / -1}
.th-people-group-fields{flex:1;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.th-people-group-fields:has(select){grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}.th-people-group-edit{align-items:center}
/* The global cabinet button rule sets width:auto with very high specificity. */
.th-people .cabinet-staff-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;flex:0 0 34px!important;box-sizing:border-box!important;border-radius:10px!important}
.th-people .cabinet-staff-action svg{width:17px!important;height:17px!important;flex:none!important}
.th-people .cabinet-staff-refresh-btn,.th-people [data-people-dialog-close]{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;flex:0 0 38px!important;box-sizing:border-box!important;border-radius:10px!important}
.th-people .cabinet-staff-refresh-btn svg{width:18px!important;height:18px!important;flex:none!important}
.th-people-filters label,.th-people-group-create label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;color:#526e90}
.th-people-filters input,.th-people-filters select,.th-people-move select,.th-people-dialog input,.th-people-dialog select{width:100%!important;min-width:0;min-height:36px!important;height:38px;border:1px solid #d2e0f3!important;border-radius:9px!important;background:#fff!important;padding:7px 10px!important;font-size:13px!important;color:#172d50;box-sizing:border-box}
.th-people input:focus,.th-people select:focus{outline:2px solid #bfdbfe!important;border-color:#3b82f6!important}
.th-people-move{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:14px 0 18px;font-size:12px;color:#536e91}
.th-people-move-label{display:flex;align-items:center;gap:8px}.th-people-move select{max-width:240px}
.th-people-progress a{font-size:12px;font-weight:600;color:#2563eb;text-decoration:none}.th-people-progress small{display:block;font-size:11px;color:#647d9a;margin-top:5px}
.th-people [data-people-history][hidden]{display:none!important}
.th-people .cabinet-staff-table{min-width:1240px!important;table-layout:fixed}
.th-people #cabinetStaffTable>thead>tr>th,.th-people #cabinetStaffTable>tbody>tr>td{text-align:center!important}
.th-people #cabinetStaffTable .cabinet-staff-field,.th-people #cabinetStaffTable .th-people-group-field{text-align:center!important;text-align-last:center}
.th-people #cabinetStaffTable .th-column-trigger{display:block!important;position:relative;text-align:center;padding-left:12px!important;padding-right:12px!important;box-sizing:border-box;white-space:normal!important}
.th-people #cabinetStaffTable .th-column-trigger .th-column-chevron{position:absolute;right:0;top:50%;margin-top:-5px}
.th-people #cabinetStaffTable .th-column-trigger small{display:block;text-align:center}
.th-people #cabinetStaffTable .cabinet-staff-actions,.th-people #cabinetStaffTable .cabinet-staff-actions__idle,.th-people #cabinetStaffTable .cabinet-staff-actions__busy{justify-content:center}
.th-people #cabinetStaffTable .th-people-shared-actions{justify-items:center;text-align:center}
.th-people #cabinetStaffTable .th-people-shared-actions>div{justify-content:center}
.th-people .cabinet-staff-col--cb{width:42px}.th-people .cabinet-staff-col--name{width:190px}.th-people .cabinet-staff-col--phone{width:135px}.th-people .cabinet-staff-col--email{width:195px}.th-people .cabinet-staff-col--job{width:140px}.th-people .cabinet-staff-col--org{width:145px}.th-people .th-people-col-group{width:160px}.th-people .th-people-col-progress{width:150px}.th-people .cabinet-staff-col--actions{width:170px}
.th-people .th-people-shared-actions[hidden]{display:none!important}
.th-people .th-people-shared-actions{display:grid;gap:5px;margin:0}
.th-people .th-people-shared-actions>[data-staff-selected-count]{font-size:11px;font-weight:500;color:#526e90}
.th-people .th-people-shared-actions>div{display:flex;gap:6px}
.th-people .th-people-shared-actions button>span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.th-people tr.is-staff-bulk-selected .cabinet-staff-actions__idle,.th-people tr.is-staff-bulk-host .cabinet-staff-actions__idle{display:none!important}
.th-people-group-field{width:100%;min-width:0;height:38px;box-sizing:border-box;font-size:12px;color:#183960;border:1px solid #dce7f6!important;border-radius:9px;background:#f8faff;padding:6px}
.th-people-group-field:disabled{opacity:1;color:#345477;background:#f7f9fc;-webkit-text-fill-color:#345477;appearance:none;-webkit-appearance:none;background-image:none!important;padding-right:6px}
.th-people-dialog{position:fixed;width:min(720px,calc(100vw - 28px));max-width:none;max-height:85dvh;padding:0;border:1px solid #dbe7f7;border-radius:20px;color:#162d50;box-shadow:0 24px 80px #102c5b35;background:#fff;overflow:hidden}
.th-people-dialog::backdrop{background:#13294c65;backdrop-filter:blur(4px)}
.th-people-dialog header{display:flex;justify-content:space-between;gap:14px;padding:20px;background:#f2f7ff;border-bottom:1px solid #e0e8f5}.th-people-dialog h2{font-size:20px;margin:0 0 6px}.th-people-dialog header p{font-size:12px;color:#617a9b;margin:0}
.th-people-dialog header button{align-self:flex-start;min-width:34px;min-height:34px;border:1px solid #dce6f6!important;border-radius:10px!important;background:#fff!important;color:#526e91!important;font-size:24px!important;padding:0!important;box-shadow:none!important}
.th-people-dialog-body{overflow:auto;max-height:calc(85dvh - 110px);padding:18px}
.th-people-management-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.th-people [data-people-management-tab]{white-space:normal!important;min-height:38px!important;line-height:20px!important}
.th-people [data-people-management-tab][aria-pressed="true"]{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
.th-people [data-people-management-tab]:focus-visible{outline:3px solid #bfdbfe;outline-offset:2px}
.th-people [data-people-management-panel][hidden]{display:none!important}
.th-people-management-list{max-height:360px;overflow-y:auto;overscroll-behavior:contain;border:1px solid #e0e8f5;border-radius:12px}
.th-people .th-people-management-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0}
.th-people .th-people-management-table th{position:sticky;top:0;z-index:1;background:#f4f8fd;color:#244165;font-size:12px;text-align:left;padding:10px 12px}
.th-people .th-people-management-table td{padding:10px 12px;border-top:1px solid #e9eff7;font-size:13px;overflow-wrap:anywhere;vertical-align:middle}
.th-people .th-people-management-table th:last-child,.th-people .th-people-management-table td:last-child{width:88px}
.th-people-management-table [data-management-display] small{display:block;color:#647d9a;font-size:11px;margin-top:4px}
.th-people .th-people-management-table [hidden]{display:none!important}
.th-people-management-actions{display:flex;gap:6px;align-items:center}
.th-people-management-actions form{margin:0}
.th-people .th-people-management-actions button{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:9px!important}
.th-people-management-actions svg{width:16px;height:16px}
.th-people .th-people-management-actions .th-people-management-delete{color:#e86f77!important;border-color:#f8d7dc!important;background:#fff8f9!important}
.th-people-management-fields{display:flex;gap:8px;min-width:0}
.th-people-management-fields>*{flex:1;min-width:0}
@media(max-width:620px){.th-people .th-people-management-table th,.th-people .th-people-management-table td{padding:8px}.th-people .th-people-management-table th:last-child,.th-people .th-people-management-table td:last-child{width:72px}.th-people-management-fields{flex-direction:column}}
.th-people-group-create{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;align-items:end;margin-bottom:18px}
.th-people .th-people-group-create>label,.th-people .th-people-institution-create>label{margin:0!important}
.th-people .th-people-group-create>button,.th-people .th-people-institution-create>button{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0 14px!important;box-sizing:border-box!important}
.th-people-group-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:12px 0;border-top:1px solid #edf1f7}
.th-people-group-meta{flex:0 0 100%;font-size:11px;color:#6b829f}.th-people-group-edit{display:flex;gap:8px;flex:1;min-width:180px}.th-people-group-row>strong{flex:1;font-size:14px}.th-people-group-empty{padding:24px 14px;text-align:center;font-size:13px;color:#657f9e;background:#f7faff;border-radius:12px}
@media(max-width:1100px){.th-people-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.th-purpose-options__grid{grid-template-columns:1fr}.th-purpose-settings{padding:14px}.th-purpose-settings form>.th-purpose-hint{margin-left:0}.th-people-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.th-people-group-create{grid-template-columns:1fr}.th-people-move-label{width:100%}.th-people-move select{max-width:none}.th-people-links{align-items:flex-start;gap:10px}.th-people-dialog header{padding:16px}.th-people-dialog-body{padding:14px}.th-people-institution-create{grid-template-columns:1fr}}
@media(max-width:620px){.th-people-group-edit:has(.th-people-group-fields){flex-wrap:wrap}.th-people-group-fields{flex-basis:100%}.th-people-group-row>form:last-child{align-self:flex-end}.th-people-move-label{white-space:nowrap}}
.th-people .cabinet-page-size-total{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;min-width:0}
.th-people .cabinet-records-total{font-size:13px;line-height:1.4;color:#617b9f;white-space:nowrap}
