:root {
  --red: #e94043; --action: #be282d; --ink: #292930; --muted: #696973;
  --border: #e6e6ed; --background: #f6f6f9; --soft-red: #fff4f4;
  font-family: "Segoe UI", Arial, sans-serif; font-size: 14px; color: var(--ink);
  background: var(--background); font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: not-allowed; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 36px; font-weight: 600; letter-spacing: -1.2px; line-height: 1.2; }
h2 { margin-bottom: 0; font-size: 19px; font-weight: 600; letter-spacing: -.35px; }
h3 { font-size: 15px; font-weight: 600; }
p { line-height: 1.7; }
.red { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; top: -60px; left: 20px; padding: 12px; background: white; z-index: 10; }
.skip:focus { top: 10px; }
.header { min-height: 91px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(28px, calc((100vw - 1320px)/2)); background: white; border-top: 3px solid var(--red); border-bottom: 1px solid var(--border); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { object-fit: contain; }
.brand > span { display: flex; flex-direction: column; gap: 6px; }
.brand strong { font-size: 28px; line-height: 1; letter-spacing: -1px; }
.brand small { font-size: 8px; letter-spacing: 1.8px; color: var(--muted); }
.header-label { font-size: 9px; letter-spacing: 1.7px; color: var(--muted); }
#account { display: flex; align-items: center; gap: 15px; }
#user-name { font-size: 12px; max-width: 220px; overflow-wrap: anywhere; }
.quiet, .primary { border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 40px; text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.4; }
.quiet { background: white; color: var(--ink); border: 1px solid #dcdce5; padding: 10px 14px; }
.quiet:hover:not(:disabled) { border-color: var(--action); color: var(--action); background: #fffafa; }
.primary { background: var(--action); color: white; border: 1px solid var(--action); padding: 13px 18px; min-height: 45px; }
.primary:hover:not(:disabled) { background: #a51f24; }
.primary > span { font-size: 19px; line-height: 1; }
.primary.compact { min-height: 38px; padding: 9px 14px; font-size: 12px; }
.primary[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.text-button { border: 0; background: none; color: var(--action); padding: 8px 0; font-size: 12px; font-weight: 600; min-height: 36px; text-align: left; }
.text-button:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 4px; }
.demo-bar { padding: 10px 24px; text-align: center; background: #fff1dd; color: #794a0a; font-size: 12px; line-height: 1.6; }
main { max-width: 1376px; padding: 0 28px; margin: auto; }
.eyebrow { color: var(--action); letter-spacing: 1.7px; font-size: 10px; font-weight: 700; margin-bottom: 13px; }
.hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }
.surface { background: white; border: 1px solid var(--border); border-radius: 12px; min-width: 0; }
.login-layout { min-height: calc(100vh - 190px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 85px; align-items: center; padding: 65px 48px; }
.login-intro h1 { font-size: clamp(38px, 4vw, 58px); letter-spacing: -1.8px; line-height: 1.17; }
.login-intro h1 > span { color: var(--muted); font-weight: 400; }
.lead { font-size: 16px; color: var(--muted); max-width: 470px; margin: 24px 0 30px; }
.login-capabilities { display: grid; gap: 14px; max-width: 470px; }
.login-capabilities > div { display: flex; align-items: center; gap: 17px; }
.capability-number { font-size: 11px; color: var(--action); flex: 0 0 36px; height: 36px; display: grid; place-items: center; background: #fff0f0; border-radius: 9px; font-weight: 700; }
.login-capabilities p { margin: 0; font-size: 12px; line-height: 1.65; }
.login-capabilities strong, .login-capabilities p > span { display: block; }
.login-capabilities p > span { color: var(--muted); }
.login-card { background: white; padding: 36px; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 40px #29293005; }
.card-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #fff0f0; color: var(--action); font-weight: 700; border-radius: 12px; margin-bottom: 28px; }
.login-card .eyebrow { font-size: 9px; }
.login-card h2 { font-size: 25px; }
.login-card > p:not(.eyebrow) { font-size: 14px; color: var(--muted); margin: 16px 0 28px; }
.login-card .primary { width: 100%; justify-content: space-between; }
.login-foot { display: flex; gap: 11px; align-items: flex-start; margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--border); font-size: 11px; line-height: 1.8; color: var(--muted); }
.access-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--action); flex: 0 0 6px; display: inline-block; }
.login-foot .access-dot { margin-top: 7px; }
.tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--border); margin-top: 18px; }
.tabs button { border: 0; border-bottom: 3px solid transparent; padding: 18px 0 16px; background: transparent; color: var(--muted); font-size: 13px; }
.tabs .active { border-bottom-color: var(--red); color: var(--ink); font-weight: 600; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 33px 0 25px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading p:last-child { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.access-tag { border: 1px solid var(--border); border-radius: 20px; background: white; padding: 10px 13px; color: var(--muted); font-size: 10px; display: flex; gap: 9px; align-items: center; flex-shrink: 0; }
.search-panel { padding: 22px 24px; }
.search-main { display: flex; align-items: flex-end; gap: 14px; }
.search-field { flex: 1; min-width: 0; }
.search-main label, .filter-field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 600; }
.search-box { display: flex; align-items: center; border: 1px solid #d9d9e3; border-radius: 7px; background: #fdfdfe; }
.search-box > span { padding-left: 13px; font-size: 24px; color: var(--muted); line-height: 1; }
.search-box input { border: 0; background: transparent; padding: 12px 13px; width: 100%; min-width: 0; height: 44px; font-size: 13px; color: var(--ink); border-radius: 7px; }
.search-box:focus-within { border-color: var(--action); }
.employment-field { flex: 0 0 176px; }
select, .filter-field input, .export-context input, .template-save input { color: var(--ink); border: 1px solid #d9d9e3; border-radius: 7px; padding: 11px 12px; width: 100%; min-width: 0; min-height: 44px; background: white; font-size: 12px; }
.search-main > .primary { flex-shrink: 0; }
.filter-toolbar { display: flex; align-items: center; gap: 24px; margin-top: 14px; }
.filter-toolbar > .hint { margin: 0 0 0 auto; font-size: 11px; }
.filter-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 600; min-height: 36px; }
.filter-count { display: grid; place-items: center; height: 19px; min-width: 19px; border-radius: 5px; background: var(--soft-red); color: var(--action); font-size: 10px; }
.employee-filters { border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px; }
.filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 16px; }
.employee-filters > .quiet { margin-top: 15px; }
.filter-field { min-width: 0; }
.filter-field input[type="date"] { max-width: 100%; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 17px; border-top: 1px solid var(--border); margin-top: 13px; }
.filter-chip { border-radius: 5px; padding: 6px 9px; background: #f2f2f6; color: #555560; font-size: 11px; overflow-wrap: anywhere; max-width: 100%; }
.list-panel { margin-top: 20px; overflow: hidden; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; }
.list-heading > div { display: flex; align-items: baseline; gap: 15px; }
.list-heading h2 { font-size: 14px; }
.list-heading > div > span { font-size: 11px; color: var(--muted); }
.list-heading > .hint { margin: 0; font-size: 11px; }
.selection-bar { display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff7f7; border-top: 1px solid #f1e0e0; border-bottom: 1px solid #f1e0e0; padding: 13px 24px; }
.selection-summary-bar { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.selection-summary-bar strong { font-size: 12px; font-weight: 600; }
.selection-summary-bar > span { font-size: 10px; color: var(--muted); }
.selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.selection-actions .quiet { padding: 8px 11px; min-height: 36px; font-size: 11px; }
.selection-actions .text-button { font-size: 11px; }
.employee-results { min-width: 0; }
.directory-table { border-collapse: collapse; width: 100%; table-layout: fixed; text-align: left; font-size: 12px; }
.directory-table th { padding: 13px 18px; font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .65px; background: #fafafd; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.directory-table td { border-bottom: 1px solid #efeff4; padding: 15px 18px; line-height: 1.65; overflow-wrap: anywhere; vertical-align: middle; }
.directory-table tbody tr:last-child td { border-bottom: 0; }
.directory-table tbody tr:hover { background: #fffafa; }
.directory-table .selection-cell { width: 72px; padding-right: 0; text-align: center; }
.directory-table th:nth-child(2):not(:last-child) { width: 34%; }
.directory-table:not(:has(.selection-cell)) th:first-child { width: 36%; }
.directory-table .employee-name-cell { padding-top: 9px; padding-bottom: 9px; }
.employee-row { display: flex; align-items: center; width: 100%; min-width: 0; text-align: left; gap: 12px; background: transparent; border: 0; border-radius: 5px; padding: 7px 0; color: var(--ink); }
.employee-row:hover { color: var(--action); }
.row-avatar { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 10px; background: #f2f2f7; color: var(--muted); font-size: 11px; font-weight: 600; }
.row-content { flex: 1; min-width: 0; }
.row-content strong { display: block; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.5; }
.row-arrow { font-size: 18px; color: var(--action); flex-shrink: 0; }
.employee-check { display: inline-flex; align-items: center; justify-content: center; padding: 8px; cursor: pointer; min-width: 34px; min-height: 34px; }
.employee-check input, .field-choice input, .export-download input { accent-color: var(--action); width: 16px; height: 16px; flex: 0 0 16px; margin: 0; }
.employment-badge { display: inline-block; border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; background: #f7f7fa; font-size: 10px; line-height: 1.5; }
.muted-value { color: #858590; font-style: italic; }
.history-date { color: var(--muted); font-size: 11px; }
.empty { padding: 46px 24px 50px; text-align: center; color: var(--muted); }
.state-symbol { display: inline-grid; place-items: center; height: 45px; width: 45px; border: 1px solid var(--border); border-radius: 13px; background: #fafafd; font-size: 24px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 19px 0 9px; font-size: 15px; }
.empty p { font-size: 12px; max-width: 390px; margin: 0 auto; }
.empty .quiet { margin-top: 20px; }
.loading .state-symbol { border: 3px solid #f4dfe0; border-top-color: var(--action); width: 28px; height: 28px; border-radius: 50%; background: transparent; animation: spin .9s linear infinite; }
.error-state .state-symbol { background: var(--soft-red); color: var(--action); border-color: #f0cccc; }
@keyframes spin { to { transform: rotate(360deg); } }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding: 18px 24px; }
.pagination > span { font-size: 11px; color: var(--muted); }
.detail-navigation { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0 20px; }
.detail-navigation > .hint { margin: 0; font-size: 10px; letter-spacing: 1px; }
.detail-panel { border-top: 3px solid var(--red); padding: 32px; }
.detail-status { margin-top: 4px; }
#detail-retry { margin-top: 15px; }
.profile-heading { display: flex; align-items: center; gap: 22px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.profile-heading > div { min-width: 0; }
.profile-placeholder { flex: 0 0 68px; height: 68px; display: grid; place-items: center; border-radius: 17px; background: #fff0f0; color: var(--action); font-size: 22px; font-weight: 600; }
.profile-heading .eyebrow { margin-bottom: 8px; font-size: 9px; }
.profile-heading h1 { font-size: 27px; letter-spacing: -.65px; overflow-wrap: anywhere; }
.profile-heading p:last-child { margin: 9px 0 0; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.employee-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 28px; align-items: start; }
.field-group { border: 1px solid var(--border); border-radius: 10px; padding: 22px; min-width: 0; }
.field-group h2 { font-size: 12px; color: var(--action); letter-spacing: .6px; margin: 0 0 21px; }
.field-group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px 20px; margin: 0; }
.field-group dl > div { min-width: 0; }
.field-group dt { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.field-group dd { font-size: 13px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.detail-foot { padding-top: 21px; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); margin: 28px 0 0; }
#message { padding: 14px 18px; border: 1px solid #edc4c5; border-left: 3px solid var(--red); border-radius: 7px; background: #fff3f3; color: #8d252a; font-size: 13px; line-height: 1.65; margin-top: 20px; overflow-wrap: anywhere; }
.export-steps { display: flex; list-style: none; padding: 0; margin: 0 0 22px; gap: 0; border: 1px solid var(--border); border-radius: 10px; background: white; overflow: hidden; }
.export-steps li { flex: 1; display: flex; align-items: center; gap: 12px; padding: 16px 22px; font-size: 12px; font-weight: 600; border-right: 1px solid var(--border); min-width: 0; }
.export-steps li:last-child { border: 0; }
.export-steps li > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 8px; background: var(--soft-red); color: var(--action); font-size: 12px; }
#export-status:not(:empty) { padding: 13px 18px; background: #fff6f6; border: 1px solid #edc4c5; border-radius: 8px; font-size: 12px; line-height: 1.7; margin-bottom: 20px; overflow-wrap: anywhere; }
.export-card { padding: 25px 28px; margin-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
.section-heading h2 { font-size: 18px; }
.section-heading > div { min-width: 0; }
.mini-tag { font-size: 10px; background: #f5f5f8; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; flex-shrink: 0; }
.export-selection { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 320px; overflow-y: auto; padding: 2px; }
.export-selection > .hint { grid-column: 1 / -1; padding: 17px; background: #f7f7fa; border-radius: 8px; margin: 0; }
.selection-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; min-width: 0; }
.selection-item > span { overflow-wrap: anywhere; min-width: 0; font-weight: 600; line-height: 1.55; }
.selection-item .quiet { font-size: 10px; padding: 5px 8px; min-height: 30px; flex-shrink: 0; }
.selection-summary { display: block; color: var(--muted); font-weight: 400; font-size: 10px; line-height: 1.6; margin-top: 5px; }
.export-configuration { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 34px; }
.column-configuration { min-width: 0; }
.template-label { font-size: 12px; font-weight: 600; display: block; margin-bottom: 9px; }
.columns-fieldset { border: 0; margin: 24px 0 0; padding: 0; min-width: 0; }
.columns-fieldset legend { font-size: 12px; font-weight: 600; margin-bottom: 15px; padding: 0; }
.export-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 18px; }
.export-fields > .hint { grid-column: 1 / -1; margin: 0; }
.field-choice { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; cursor: pointer; line-height: 1.5; min-width: 0; }
.field-choice input { margin-top: 1px; }
.field-choice > span { overflow-wrap: anywhere; }
.export-order { max-height: 260px; overflow-y: auto; margin-top: 22px; border-top: 1px solid var(--border); padding-top: 15px; }
.export-order:empty { border: 0; margin-top: 0; padding-top: 0; }
.export-order > .hint { margin: 0 0 9px; font-weight: 600; }
.column-order { display: flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 12px; }
.column-order > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.column-order .quiet { padding: 4px 10px; min-height: 30px; }
.template-save { display: flex; gap: 9px; margin-top: 20px; }
.template-save input { flex: 1; font-size: 12px; }
.template-save button { flex-shrink: 0; }
.export-context-panel { border-left: 1px solid var(--border); padding-left: 34px; min-width: 0; }
.export-context-panel h3 { font-size: 13px; margin-bottom: 8px; }
.optional { font-size: 10px; font-weight: 400; color: var(--muted); margin-left: 6px; }
.export-context { display: grid; gap: 16px; margin-top: 21px; }
.export-context label { font-size: 12px; font-weight: 600; }
.export-context input { display: block; margin-top: 8px; font-weight: 400; }
.privacy-note { background: #f7f7fa; border-radius: 8px; padding: 17px; margin: 22px 0; }
.privacy-note strong { font-size: 12px; }
.privacy-note p { font-size: 11px; color: var(--muted); margin: 8px 0 0; }
.export-context-panel > .primary { width: 100%; justify-content: space-between; }
.table-scroll { overflow: auto; max-height: 460px; max-width: 100%; margin-top: 18px; border: 1px solid var(--border); border-radius: 8px; }
.table-scroll table { border-collapse: collapse; font-size: 12px; text-align: left; width: 100%; }
.table-scroll th, .table-scroll td { padding: 12px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table-scroll th:last-child, .table-scroll td:last-child { border-right: 0; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.table-scroll th { background: #faf1f1; font-weight: 600; position: sticky; top: 0; }
.missing-value { color: #845714; background: #fff5df; }
.export-warning { padding: 13px 16px; background: #fff5df; color: #845714; border-radius: 7px; font-size: 12px; margin: 0; }
.export-download { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 23px; }
.export-download label { display: flex; align-items: flex-start; gap: 11px; font-size: 12px; line-height: 1.7; }
.export-download input { margin-top: 3px; }
.export-download > .primary { flex-shrink: 0; }
.export-record { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 28px; border-top: 1px solid var(--border); padding: 17px 0; }
.export-record strong { font-size: 12px; overflow-wrap: anywhere; }
.export-record .hint { margin: 0; overflow-wrap: anywhere; }
.export-history .section-heading { margin-bottom: 17px; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 24px 0; margin-top: 35px; border-top: 1px solid var(--border); font-size: 10px; color: var(--muted); line-height: 1.7; }
footer > span:first-child { letter-spacing: .7px; white-space: nowrap; }
.divider { padding: 0 10px; color: #a0a0a8; }
@media (max-width: 1100px) {
  .login-layout { gap: 40px; padding: 50px 16px; }
  .login-card { padding: 30px; }
  .header-label { display: none; }
  .access-tag { display: none; }
  .filter-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .export-selection { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-configuration { gap: 24px; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .export-context-panel { padding-left: 24px; }
  .employee-fields { gap: 20px; }
  .field-group { padding: 19px; }
}
@media (max-width: 800px) {
  .search-main { flex-wrap: wrap; }
  .search-field { flex-basis: calc(100% - 190px); }
  .search-main > .primary { margin-left: auto; }
  .filter-toolbar { flex-wrap: wrap; gap: 8px 22px; }
  .filter-toolbar > .hint { width: 100%; margin: 0; }
  .selection-bar { align-items: flex-start; flex-direction: column; }
  .employee-fields { grid-template-columns: minmax(0, 1fr); }
  .export-configuration { grid-template-columns: minmax(0, 1fr); }
  .export-context-panel { border-left: 0; padding-left: 0; padding-top: 22px; border-top: 1px solid var(--border); }
  .export-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .export-context-panel > .primary { width: auto; }
  .export-steps li { padding: 15px; gap: 9px; }
}
@media (max-width: 620px) {
  main { padding: 0 18px; }
  .header { padding: 17px 18px; gap: 14px; min-height: 81px; }
  .brand { gap: 9px; }
  .brand img { height: 39px; width: 39px; }
  .brand strong { font-size: 25px; }
  .brand small { font-size: 7px; }
  #account { gap: 8px; flex-direction: column; align-items: flex-end; }
  #account .quiet { min-height: 30px; padding: 5px 10px; font-size: 10px; }
  #user-name { max-width: 140px; font-size: 10px; }
  .demo-bar { font-size: 10px; padding: 9px 18px; }
  .login-layout { grid-template-columns: minmax(0, 1fr); padding: 26px 0 20px; gap: 28px; min-height: 0; }
  .login-intro { grid-row: 2; }
  .login-intro h1 { font-size: 36px; letter-spacing: -1.1px; }
  .lead { font-size: 14px; margin: 20px 0 24px; }
  .login-capabilities { gap: 12px; }
  .login-capabilities p { font-size: 11px; }
  .login-card { grid-row: 1; padding: 27px; }
  .login-card h2 { font-size: 24px; }
  .login-card > p:not(.eyebrow) { font-size: 13px; }
  .tabs { gap: 24px; margin-top: 9px; }
  .tabs button { font-size: 11px; padding: 16px 0 13px; }
  .page-heading { padding: 26px 0 20px; align-items: flex-start; }
  h1 { font-size: 30px; letter-spacing: -.8px; }
  .page-heading p:last-child { font-size: 12px; }
  .eyebrow { font-size: 9px; }
  .search-panel { padding: 18px; }
  .search-main { gap: 14px 12px; }
  .search-field { flex: 1 1 100%; }
  .employment-field { flex: 1 1 110px; }
  .search-main > .primary { flex: 1 1 150px; padding: 12px 13px; gap: 8px; font-size: 11px; }
  .filter-toolbar { gap: 5px 18px; margin-top: 12px; }
  .filter-toolbar .text-button, .filter-toggle { font-size: 11px; }
  .filter-toolbar > .hint { font-size: 10px; margin-top: 4px; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .filter-field label { font-size: 11px; line-height: 1.5; }
  .filter-field input, .filter-field select { font-size: 11px; padding: 10px 8px; }
  .list-panel { overflow: visible; background: transparent; border: 0; margin-top: 17px; }
  .list-heading { padding: 8px 0 16px; gap: 10px; }
  .list-heading > div { flex-direction: column; gap: 5px; }
  .list-heading > .hint { max-width: 135px; font-size: 10px; text-align: right; }
  .selection-bar { padding: 14px; border: 1px solid #f1e0e0; border-radius: 9px; gap: 12px; margin-bottom: 14px; }
  .selection-actions { gap: 7px 12px; width: 100%; }
  .selection-actions .primary { margin-left: auto; }
  .selection-actions .quiet { font-size: 10px; padding: 7px 8px; min-height: 34px; }
  .selection-actions .text-button { font-size: 10px; }
  .selection-actions .primary.compact { font-size: 10px; padding: 8px 10px; min-height: 34px; }
  .directory-table, .directory-table tbody { display: block; width: 100%; }
  .directory-table thead { display: none; }
  .directory-table tbody { display: grid; gap: 12px; }
  .directory-table tr { display: grid; position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; border: 1px solid var(--border); border-radius: 10px; background: white; padding: 15px; }
  .directory-table td, .directory-table tbody tr:last-child td { display: block; border: 0; padding: 0; min-width: 0; font-size: 11px; }
  .directory-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; margin-bottom: 4px; }
  .directory-table .employee-name-cell { grid-column: 1 / -1; padding: 0 0 12px; border-bottom: 1px solid var(--border); }
  .directory-table .employee-name-cell::before, .directory-table .selection-cell::before { display: none; }
  .directory-table .selection-cell { position: absolute; left: 9px; top: 16px; width: 34px; padding: 0; }
  .directory-table tr:has(.selection-cell) .employee-name-cell { padding-left: 29px; }
  .employee-row { padding: 0; gap: 10px; }
  .row-content strong { font-size: 12px; }
  .row-avatar { height: 33px; width: 33px; flex-basis: 33px; font-size: 10px; }
  .history-date { grid-column: 1 / -1; }
  .empty { border: 1px solid var(--border); border-radius: 10px; background: white; padding: 34px 20px; }
  .empty p { font-size: 11px; }
  .pagination { padding: 17px 0; border: 0; }
  .pagination .quiet { font-size: 11px; padding: 9px 11px; }
  .detail-navigation { padding: 22px 0 17px; display: block; }
  .detail-navigation .text-button { font-size: 11px; }
  .detail-navigation > .hint { display: block; margin-top: 7px; font-size: 9px; }
  .detail-panel { padding: 22px 18px; }
  .detail-status .empty { border: 0; }
  .profile-heading { align-items: flex-start; gap: 14px; padding-bottom: 23px; }
  .profile-placeholder { flex-basis: 47px; height: 47px; border-radius: 12px; font-size: 16px; }
  .profile-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .profile-heading h1 { font-size: 21px; letter-spacing: -.35px; }
  .profile-heading p:last-child { font-size: 11px; }
  .employee-fields { margin-top: 23px; gap: 17px; }
  .field-group { padding: 17px; }
  .field-group dl { gap: 17px 15px; }
  .field-group dd { font-size: 12px; }
  .field-group dt { font-size: 10px; }
  .detail-foot { font-size: 10px; line-height: 1.7; }
  .export-heading { flex-direction: column; gap: 16px; }
  .export-heading .quiet { font-size: 11px; }
  .export-steps li { padding: 12px 9px; font-size: 10px; line-height: 1.5; flex-direction: column; align-items: flex-start; gap: 8px; }
  .export-steps li > span { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; border-radius: 6px; }
  .export-card { padding: 21px 18px; }
  .section-heading { gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 19px; }
  .section-heading h2 { font-size: 17px; }
  .section-heading .hint { font-size: 11px; }
  .mini-tag { font-size: 9px; padding: 6px 8px; }
  .export-selection { grid-template-columns: minmax(0, 1fr); max-height: 310px; }
  .selection-item { padding: 12px; }
  .export-fields { gap: 14px 12px; }
  .field-choice { font-size: 11px; }
  .columns-fieldset legend, .template-label { font-size: 11px; }
  .export-context { grid-template-columns: minmax(0, 1fr); }
  .template-save { flex-direction: column; }
  .template-save .quiet { align-self: flex-start; }
  .export-context-panel > .primary { width: 100%; }
  .export-download { flex-direction: column; align-items: stretch; gap: 18px; }
  .export-download label { font-size: 11px; }
  .export-download > .primary { justify-content: space-between; }
  .table-scroll { max-height: 340px; }
  .export-record { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  footer { flex-direction: column; gap: 9px; margin-top: 27px; padding: 21px 0; font-size: 9px; }
  #message { font-size: 12px; padding: 12px 14px; }
}
@media (max-width: 360px) {
  main { padding: 0 13px; }
  .header { padding: 15px 13px; gap: 9px; }
  #user-name { max-width: 108px; }
  .tabs { gap: 18px; }
  .tabs button { font-size: 10px; }
  .login-intro h1 { font-size: 31px; }
  .login-card { padding: 23px; }
  .search-panel, .export-card { padding: 17px 14px; }
  .search-main > .primary { flex-basis: 130px; }
  .filter-fields { grid-template-columns: minmax(0, 1fr); }
  .selection-actions .primary { margin-left: 0; }
  .field-group dl { grid-template-columns: minmax(0, 1fr); }
  .export-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; }
}
