/* HR presentation layer, aligned with GaoQ CRM's navy / sky design tokens.
   This sheet is loaded only by the HR shell, not department-native or exams. */
:root {
  color-scheme: light;
  --blue: #0369a1;
  --blue-dark: #075985;
  --primary: #0f172a;
  --ink: #0f172a;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --canvas: #f8fafc;
  --panel: #ffffff;
  --radius: 8px;
  --crm-accent-soft: #e0f2fe;
  --crm-inset: #f1f5f9;
  --crm-border-strong: #cbd5e1;
  --crm-secondary: #475569;
  --crm-sidebar: 216px;
  --crm-topbar: 48px;
  --crm-shadow: 0 1px 2px rgb(15 23 42 / 4%);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}
html, body { background: var(--canvas); color: var(--ink); }
body { letter-spacing: 0; }
button, input, select, textarea { font-family: inherit; }
button, a, input, select, textarea, summary, [tabindex] { outline-offset: 3px; }
:is(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
}
button, .btn, a { -webkit-tap-highlight-color: transparent; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--blue); }
::selection { background: var(--blue); color: white; }

/* Shared shell: compact like CRM, with HR's existing groups and destinations. */
.app-shell { min-height: 100dvh; }
.sidebar, .compact-candidates .sidebar {
  width: var(--crm-sidebar);
  border-right: 1px solid var(--line);
  background: var(--panel);
}
.brand {
  height: var(--crm-topbar);
  min-height: var(--crm-topbar);
  padding: 0 12px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.brand-mark, .auth-brand .brand-mark {
  width: 38px;
  height: 27px;
  flex: 0 0 38px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.brand-mark img { padding: 0; object-fit: contain; }
.brand > span:last-child { min-width: 0; }
.brand strong { font-size: 12px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand small { margin-top: 1px; font-size: 9px; color: var(--muted); }
#main-nav { padding: 10px 8px; scrollbar-width: thin; scrollbar-color: var(--crm-border-strong) transparent; }
.nav-section { margin-bottom: 6px; border: 0; border-radius: 6px; background: transparent; }
.nav-section-label {
  min-height: 34px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0;
}
.nav-section-label:hover, .nav-section-label.current-section { color: var(--ink); background: var(--crm-inset); }
.nav-chevron { font-size: 13px; color: var(--muted); }
.nav-section-items { padding: 2px 0; border: 0; }
.nav-btn {
  position: relative;
  min-height: 34px;
  margin: 1px 0;
  padding: 6px 10px;
  gap: 8px;
  border-radius: 6px;
  color: var(--crm-secondary);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav-btn:hover { color: var(--ink); background: var(--crm-inset); }
.nav-btn.active { color: var(--blue); background: var(--crm-accent-soft); font-weight: 650; }
.nav-icon { width: 18px; color: currentColor; font-size: 14px; opacity: .85; }
.nav-count { padding: 1px 6px; color: var(--muted); background: var(--crm-inset); font-variant-numeric: tabular-nums; }
.nav-btn.active .nav-count { color: var(--blue-dark); background: white; }
.ai-note {
  margin: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: none;
}
.support-assistant-entry { width: calc(100% - 16px); }
.ai-note span, .ai-note .support-assistant-brand { color: var(--ink); }
.ai-note strong { margin-top: 8px; font-size: 12px; font-weight: 600; }
.ai-note small { font-size: 10px; line-height: 1.6; color: var(--muted); }
.support-assistant-brand img { width: 28px; height: 28px; border: 0; border-radius: 7px; }
.support-assistant-entry:hover { transform: none; background: var(--crm-inset); box-shadow: none; }
.main-area, .compact-candidates .main-area { min-width: 0; padding-left: var(--crm-sidebar); }
.topbar {
  height: var(--crm-topbar);
  padding: 0 20px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: none;
}
.global-search { width: min(360px, 35vw); min-width: 120px; }
.global-search > span { display: flex; align-items: center; top: 9px; left: 10px; color: var(--muted); }
.global-search input {
  height: 32px;
  padding-left: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--canvas);
  font-size: 12px;
}
.global-search input:focus { border-color: var(--blue); background: white; box-shadow: 0 0 0 2px var(--crm-accent-soft); }
.top-actions { min-width: 0; gap: 12px; }
.session-user { min-width: 0; }
.session-user small { color: var(--muted); font-size: 9px; }
.session-user strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--crm-secondary); }
.todo-entry { min-height: 30px; padding: 0 9px; border-color: var(--line); border-radius: 6px; color: var(--crm-secondary); background: white; font-size: 11px; }
.todo-entry:hover { border-color: var(--crm-border-strong); background: var(--canvas); }
.todo-entry b { min-width: 18px; height: 18px; font-size: 10px; background: var(--blue); }
.session-brand-logo { width: 54px; height: 25px; flex: 0 0 54px; overflow: hidden; }
.session-brand-logo img { display: block; width: 100%; height: 100%; padding: 0; object-fit: cover; }
.icon-btn { border-radius: 6px; color: var(--muted); }
.icon-btn:hover { color: var(--ink); background: var(--crm-inset); }
#workspace, .compact-candidates #workspace { width: 100%; max-width: 1720px; min-width: 0; padding: 24px; }
.page-head { align-items: center; gap: 16px; margin-bottom: 20px; }
.page-head h1, .cost-head h1, .performance-heading h1 { font-size: 23px; font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.page-head p { max-width: 80ch; color: var(--muted); font-size: 12px; line-height: 1.65; }
.eyebrow { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.actions { gap: 8px; }

/* Controls: navy primary action, sky selection; semantics stay distinct. */
.btn, .toolbar button, .page-toolbar button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--crm-border-strong);
  border-radius: 6px;
  color: var(--crm-secondary);
  background: white;
  font-size: 12px;
  font-weight: 550;
  box-shadow: var(--crm-shadow);
  transition: background-color 160ms ease, border-color 160ms ease;
}
.btn:hover { color: var(--ink); border-color: #94a3b8; background: var(--canvas); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { border-color: var(--primary); color: white; background: var(--primary); box-shadow: none; }
.btn.primary:hover { border-color: #1e293b; color: white; background: #1e293b; }
.btn.secondary { color: var(--crm-secondary); background: white; border-color: var(--crm-border-strong); }
.btn.ghost { border-color: transparent; color: var(--blue); background: var(--crm-accent-soft); box-shadow: none; }
.btn.danger { border-color: #fecaca; color: #b91c1c; background: #fef2f2; }
.btn.compact { min-height: 30px; font-size: 11px; }
.btn:disabled { opacity: .5; box-shadow: none; }
.link-btn { color: var(--blue); font-size: 12px; }
.link-btn.flow-link { color: white; background: var(--primary); border-radius: 6px; }
.link-btn.flow-link:hover { color: white; background: #1e293b; }
.danger-link { color: #b91c1c; }
.tabs, .sub-tabs, .interview-tabs, .people-tabs, .pool-tabs, .cost-tabs, .performance-tabs {
  border-color: var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}
.tab, .sub-tab, .interview-tabs button, .people-tabs button, .cost-tabs button, .performance-tabs button { color: var(--crm-secondary); font-size: 12px; }
.tab.active, .sub-tab.active, .interview-tabs button.active { color: var(--blue); }
.tab.active::after, .sub-tab.active::after, .interview-tabs button.active::after { background: var(--blue); }
.people-tabs button.active, .cost-tabs button.active, .performance-tabs button.active { color: var(--blue-dark); background: var(--crm-accent-soft); }
.cost-tabs button:hover { background: var(--crm-inset); }
.training-hub-tabs { gap: 4px; padding: 6px; border-color: var(--line); border-radius: 8px; }
.training-hub-tabs button, .training-hub-tabs a { min-height: 38px; padding: 8px 14px; border-radius: 6px; color: var(--crm-secondary); font-size: 12px; }
.training-hub-tabs [aria-current] { color: var(--blue); background: var(--crm-accent-soft); }
.training-hub-tabs a:hover, .training-hub-tabs button:hover { color: var(--ink); background: var(--crm-inset); }
.training-hub-tabs :is(a, button):focus-visible { outline: 2px solid var(--blue); }
.knowledge-search label, .knowledge-boundary-note, .knowledge-library small, .knowledge-directory-row small { color: var(--muted); }
.knowledge-search input { border-color: var(--crm-border-strong); border-radius: 6px; color: var(--ink); background: var(--canvas); }
.knowledge-library { color: var(--ink); }
.knowledge-library:hover { border-color: var(--blue); }
.knowledge-library-mark { color: var(--blue); background: var(--crm-accent-soft); border-radius: 8px; }
.knowledge-breadcrumb button, .knowledge-name { color: var(--blue); }
.toolbar input, .toolbar select, .form-field input:not([type="checkbox"]):not([type="radio"]), .form-field select, .form-field textarea,
.member-search-row input, .filter-field select, .filter-field input, .access-role-filters input, .access-role-filters select,
.request-picker > input[type="search"], .dashboard-filters select, .interview-controls input, .cost-controls :is(input, select) {
  min-height: 36px;
  border-color: var(--crm-border-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--canvas);
  font-size: 12px;
  box-shadow: none;
}
.form-field { min-width: 0; color: var(--crm-secondary); }
.filter-field { font-size: 11px; color: var(--muted); }
.filter-foot { font-size: 11px; color: var(--muted); }
.dashboard-filters > label { align-content: start; }
.searchable-filter .searchable-choice-row input {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--crm-border-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--canvas);
  font-size: 12px;
}
:is(.dashboard-filters, .requirement-filters, .performance-filters) .searchable-filter [data-action="search-searchable-filter"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
}
.searchable-filter .searchable-choice-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px var(--crm-accent-soft); }
.searchable-filter-selected { color: var(--muted); }
.searchable-filter { position: relative; }
.searchable-filter .searchable-choice-row { flex-direction: row; align-items: center; }
.searchable-filter .searchable-choice-results.has-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 8;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 28px rgb(15 23 42 / 12%);
}
.searchable-filter:not(:focus-within) .searchable-choice-results.has-results { display: none; }
.form-field > span { font-size: 12px; }
.form-field > small, .form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
:is(.form-field input, .form-field select, .form-field textarea, .filter-field input, .filter-field select, .toolbar input, .toolbar select, .cost-controls input, .cost-controls select):focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--crm-accent-soft);
}
.filter-chip { border-color: var(--line); color: var(--crm-secondary); background: white; border-radius: 6px; }
.readonly-form-field, .source-field { border-color: var(--line); background: var(--canvas); border-radius: 8px; }
.source-fields, .approval-section { border-color: var(--line); background: white; border-radius: 8px; }
.source-fields-head strong { color: var(--ink); }
.request-picker-chip, .field-override { border-color: #bae6fd; color: var(--blue); background: #f0f9ff; border-radius: 6px; }
.request-picker-result:hover, .request-picker-result.selected, .member-choice:has(input:checked), .member-choice.selected, .member-bind-card:hover { border-color: #7dd3fc; background: #f0f9ff; }

/* Flat, readable data surfaces rather than a second layer of decorative cards. */
.panel, .stat, .toolbar-panel, .mailbox-panel, .interview-calendar, .application-qr-card,
.registration-summary-grid article, .candidate-feedback-results, .candidate-feedback-fixed-entry,
.dashboard-overview, .integration-card, .internal-approval-guide, .source-banner, .migration-hero,
.knowledge-library, .knowledge-directory, .cost-skeleton, .performance-panel, .performance-metrics article {
  border-color: var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--crm-shadow);
}
.panel-pad { padding: 18px; }
.panel-head { margin-bottom: 14px; }
.panel-head h2 { color: var(--ink); font-size: 14px; font-weight: 650; }
.panel-head p { color: var(--muted); font-size: 11px; }
.stat { padding: 18px; }
.stat-top { color: var(--muted); }
.stat-value, .dashboard-kpi strong, .registration-summary-grid strong, .candidate-feedback-kpis b { color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.stat-note { color: var(--blue-dark); background: #f0f9ff; }
.dashboard-kpis { border-color: var(--line); border-radius: 8px; background: white; box-shadow: none; }
.dashboard-kpi { border-color: var(--line); min-height: 122px; }
.dashboard-kpi::before { height: 2px; background: var(--blue); opacity: .5; }
.dashboard-kpi:hover { background: var(--canvas); }
.dashboard-kpi strong { font-size: 30px; }
.dashboard-kpi > span { color: var(--crm-secondary); }
.progress-blue, .progress-indigo, .progress-violet, .progress-cyan, .progress-green { background: var(--blue); }
.progress-gray { background: var(--crm-border-strong); }
.funnel-bar, .funnel-1, .funnel-2, .funnel-3, .funnel-4 { color: white; background: var(--blue); }
.integration-icon { background: var(--primary); box-shadow: none; }
.integration-meta span, .source-target, .setup-list > div { color: var(--crm-secondary); background: var(--crm-inset); }
.table-wrap { max-width: 100%; scrollbar-color: var(--crm-border-strong) var(--canvas); }
table { color: var(--crm-secondary); font-variant-numeric: tabular-nums; }
thead th { padding-top: 11px; padding-bottom: 11px; border-color: var(--line); background: var(--canvas); color: var(--muted); font-size: 11px; font-weight: 650; }
tbody td { padding-top: 13px; padding-bottom: 13px; border-color: var(--line); color: var(--crm-secondary); font-size: 12px; line-height: 1.6; }
tbody td:first-child, tbody td strong { color: var(--ink); }
tbody tr:hover { background: var(--canvas); }
.table-note, .table-meta { color: var(--muted); }
.compact-candidates .candidate-pool table { min-width: 1080px; }
.compact-candidates .candidate-pool th, .compact-candidates .candidate-pool td { padding: 12px 10px; }
.compact-candidates .filter-field select, .compact-candidates .filter-field input { height: 34px; min-height: 34px; }
.compact-candidates .pipeline-item { padding: 8px 10px; }
.compact-candidates .pipeline-stats { grid-template-columns: repeat(9, minmax(0, 1fr)); }
.pipeline-item.active { color: var(--blue-dark); background: var(--crm-accent-soft); }
.compact-candidates .candidate-pool td small, .career-item span { color: var(--muted); }
.career-item strong { color: var(--ink); }
.career-item:first-child::before { background: var(--blue); }
.access-role-browser, .access-role-members { background: var(--canvas); border-color: var(--line); }
.access-role-list, .access-role-section-title, .access-role-row { border-color: var(--line); }
.access-role-row:hover { background: var(--crm-inset); }
.access-role-row.is-selected { border-left-color: var(--blue); background: var(--crm-accent-soft); }
.access-role-row-state.is-active { color: #15803d; background: #dcfce7; }
.calendar-week { color: var(--muted); background: var(--canvas); }
.calendar-week span, .calendar-day { border-color: var(--line); }
.calendar-day { background: white; }
.calendar-day.outside { background: var(--canvas); }
.calendar-day > button { color: var(--blue-dark); background: #f0f9ff; border-radius: 6px; }
.interviewer-list article, .candidate-experience-result, .screening-groups article, .communication-list article { border-color: var(--line); background: var(--canvas); }
.internal-approval-timeline article.pending i { border-color: var(--blue); box-shadow: 0 0 0 3px var(--crm-accent-soft); }
.internal-approval-timeline article:not(:last-child)::before { background: var(--line); }
.approval-progress-copy b { color: var(--blue); }
.workflow-config-step { border-color: var(--line); background: var(--canvas); }
.operating-costs, .cost-controls label { color: var(--crm-secondary); }
.cost-table-title, .cost-table-scroll :is(th, td) { border-color: var(--line); }
.cost-table-scroll th, .cost-table-scroll th:first-child { color: var(--muted); background: var(--crm-inset); }
.cost-table-scroll td:first-child { color: var(--ink); background: var(--canvas); box-shadow: 1px 0 var(--line); }
.cost-table-scroll tr:nth-child(even) td:not(:first-child) { background: #f8fafc; }
.cost-table-title a { color: var(--blue); }
.cost-sync, .cost-source-note, .cost-pagination, .cost-head p { color: var(--muted); }
.cost-skeleton span { background: var(--crm-inset); }
.performance-table-panel :is(th, td) { border-color: var(--line); color: var(--crm-secondary); }
.performance-table-panel th { background: var(--canvas); }

/* Consistent semantic states. Never hide an error, disabled action or empty row. */
.status-blue { color: #075985; background: #e0f2fe; }
.status-green { color: #166534; background: #dcfce7; }
.status-amber { color: #92400e; background: #fef3c7; }
.status-red { color: #b91c1c; background: #fee2e2; }
.status-violet { color: #475569; background: #e2e8f0; }
.badge, .tag { border-color: var(--line); color: var(--crm-secondary); background: var(--crm-inset); border-radius: 5px; }
.source-dot { background: var(--blue); box-shadow: 0 0 0 3px #e0f2fe; }
.secure-notice { border-color: #fde68a; background: #fffbeb; }
.empty { padding: 32px 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.compact-empty { padding: 18px; }
.source-banner { border-left: 3px solid var(--blue); }
.privacy-note { color: var(--muted); }

/* Dialog sizing and every business field stay owned by the existing form code. */
dialog, .approval-dialog { border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; box-shadow: 0 20px 48px -12px rgb(2 6 23 / 25%); }
dialog.interview-dialog { border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); box-shadow: 0 20px 48px -12px rgb(2 6 23 / 25%); }
.interview-dialog .dialog-head h2 { color: var(--ink); font-size: 19px; }
.interview-dialog .dialog-head small { color: var(--muted); font-weight: 550; letter-spacing: 0; }
.interview-dialog .dialog-body { background: var(--canvas); }
.interview-summary, .interview-section { border-color: var(--line); border-radius: 8px; box-shadow: none; background: white; }
.interview-candidate-avatar { border-radius: 8px; background: var(--primary); box-shadow: none; }
.interview-section-head > span { border-radius: 6px; color: var(--blue); background: var(--crm-accent-soft); }
.interview-member-section { background: white; border-color: var(--line); }
.interview-submit-hint { border-color: var(--line); border-radius: 8px; background: var(--canvas); }
.interview-submit-hint > span { background: var(--blue); }
.interview-dialog .dialog-actions .btn.primary { box-shadow: none; }
.interview-dialog .form-field input:not([type=hidden]), .interview-dialog .form-field select { border-color: var(--crm-border-strong); border-radius: 6px; }
dialog::backdrop { background: rgb(15 23 42 / 35%); backdrop-filter: blur(2px); }
.dialog-head, .dialog-actions, .approval-dialog .dialog-head, .approval-dialog .dialog-actions { border-color: var(--line); background: white; box-shadow: none; }
.dialog-head { min-height: 68px; padding: 16px 22px; }
.dialog-head small { color: var(--muted); font-size: 11px; letter-spacing: 0; }
.dialog-head h2, .approval-dialog .dialog-head h2 { color: var(--ink); font-size: 19px; font-weight: 650; }
.dialog-head .icon-btn { border-radius: 6px; color: var(--muted); background: var(--crm-inset); }
.dialog-body, .approval-dialog .dialog-body { background: var(--canvas); }
.dialog-actions { min-height: 64px; padding: 14px 22px; }
.approval-guide { border-color: var(--line); background: white; }
.approval-intro { border-color: var(--line); background: var(--canvas); }
.approval-intro > span { background: var(--primary); }
.approval-guide nav a:hover { background: var(--crm-inset); }
.approval-guide nav b, .approval-section-title > span { border-color: #bae6fd; color: var(--blue); background: #f0f9ff; }
.approval-flow-preview { background: var(--crm-inset); }
.approval-upload-card { border-color: var(--crm-border-strong); background: var(--canvas); }
.approval-upload-card:hover, .approval-upload-card.has-selection, .approval-upload-card.is-dragging { border-color: var(--blue); background: #f0f9ff; box-shadow: 0 0 0 2px var(--crm-accent-soft); }
.approval-upload-icon, .approval-upload-preview { color: var(--blue); background: var(--crm-accent-soft); }
.approval-upload-copy em, .approval-upload-cta { color: var(--blue); }
.approval-final-note, .approval-dossier-links { border-color: var(--line); color: var(--crm-secondary); background: var(--canvas); }
.approval-dossier-links a { border-color: var(--line); color: var(--blue); background: white; }
.support-assistant-intro, .support-assistant-rules, .support-updates-panel { border-color: var(--line); background: var(--canvas); box-shadow: none; }
.support-rule { border-color: var(--line); }
.support-update { border-color: var(--line); background: white; }
.support-update > span { color: var(--blue-dark); background: var(--crm-accent-soft); }
.toast { background: var(--primary); border-radius: 8px; }

/* Authentication keeps the working SSO button, callbacks and error text intact. */
.auth-shell { min-height: 100dvh; background: var(--canvas); }
.auth-card { width: min(410px, 100%); padding: 32px; border-color: var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 40px rgb(15 23 42 / 6%); }
.auth-copy { margin: 30px 0 24px; }
.auth-copy > span { color: var(--blue); }
.auth-copy h1 { font-size: 25px; font-weight: 700; color: var(--ink); }
.auth-copy p { color: var(--muted); font-size: 12px; }
.sso-login-button { min-height: 44px; }
.sso-login-icon { color: var(--primary); border-radius: 5px; }
.login-error { color: #b91c1c; }

.sidebar-scrim { display: none; }
@media (min-width: 1001px) {
  .sidebar { transform: none; }
  .mobile-menu { display: none; }
}
@media (max-width: 1000px) {
  .sidebar, .compact-candidates .sidebar { width: 252px; transform: translateX(-100%); transition: transform 160ms ease; }
  .sidebar.open { transform: translateX(0); box-shadow: 16px 0 48px rgb(15 23 42 / 15%); }
  .main-area, .compact-candidates .main-area { padding-left: 0; }
  .mobile-menu { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 6px; color: var(--crm-secondary); }
  .sidebar-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 19; display: block; padding: 0; border: 0; background: rgb(15 23 42 / 30%); }
  body.hr-nav-open { overflow: hidden; }
  .topbar { gap: 10px; padding: 0 16px; }
  #workspace, .compact-candidates #workspace { padding: 20px 16px 32px; }
  .top-actions { margin-left: auto; gap: 8px; }
  .session-brand-logo { display: none; }
  .dashboard-visual-grid, .dashboard-focus-grid { grid-template-columns: minmax(0, 1fr); }
  .compact-candidates .pipeline-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar { height: auto; min-height: 56px; flex-wrap: wrap; padding: 8px 12px; gap: 8px; }
  .mobile-menu { width: 44px; height: 44px; flex-basis: 44px; }
  .global-search { display: block; order: 3; width: 100%; }
  .global-search input { height: 44px; font-size: 16px; }
  .global-search > span { top: 14px; }
  .top-actions { gap: 8px; }
  .session-user small { display: none; }
  .session-user strong { max-width: 130px; font-size: 11px; }
  .top-actions > .icon-btn { display: none; }
  .todo-entry, .top-actions .btn.compact { min-height: 44px; }
  .todo-entry > span { display: inline; }
  #workspace, .compact-candidates #workspace { padding: 18px 12px 28px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .page-head h1, .cost-head h1 { font-size: 22px; }
  .page-head > .actions { width: 100%; }
  .btn, .nav-btn, .nav-section-label, .link-btn, .interview-tabs button, .cost-tabs button { min-height: 44px; }
  .btn, .toolbar button { padding: 0 12px; }
  .toolbar, .interview-controls { flex-wrap: wrap; }
  .interview-controls > div { max-width: 100%; flex-wrap: wrap; }
  .interview-controls input { min-width: 0; max-width: 100%; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-field, .searchable-choice-row { min-width: 0; }
  .searchable-filter .searchable-choice-row .btn { min-height: 44px; height: 44px; }
  .filter-field input, .filter-field select, .compact-candidates .filter-field select, .compact-candidates .filter-field input { height: 44px; min-height: 44px; }
  .dialog-body { padding: 18px 16px; }
  .dialog-head, .dialog-actions { padding-left: 16px; padding-right: 16px; }
  .dialog-actions { flex-wrap: wrap; gap: 8px; }
  .dialog-actions .btn { flex: 1 1 auto; }
  .auth-card { padding: 28px 24px; }
  .tabs, .sub-tabs, .interview-tabs { max-width: 100%; overflow-x: auto; }
  .compact-candidates .pipeline-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .compact-candidates .candidate-pool table { min-width: 1080px; }
  .stat { padding: 16px; }
}
@media (pointer: coarse) { .nav-btn, .nav-section-label, .icon-btn { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .sidebar-scrim { display: none !important; }
  .main-area, .compact-candidates .main-area { padding-left: 0; }
  #workspace { max-width: none; padding: 0; }
  .panel, .stat { box-shadow: none; }
}
