
/* ============================================================
   TalentHub / Pulax — Premium layout (token-driven)
   All colors come from DesignSystem CSS variables.
   Themes: light | mixed | dark via data-thp-theme
   ============================================================ */

.thp-root {
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.011em;
  color: var(--thp-text);
  background: var(--thp-bg);
}

/* ---- App chrome ---- */
.thp-app-layout {
  background: var(--thp-bg) !important;
  min-height: 100vh;
}
.thp-app-main {
  background: var(--thp-bg) !important;
  flex: 1;
  min-width: 0;
}
.thp-app-content {
  padding: 22px 28px 40px !important;
  max-width: min(1120px, 90vw) !important;
  margin-inline: auto;
  width: 100%;
  box-sizing: border-box;
}
.thp-app-main {
  /* content area reads at ~90% density of full viewport */
}
.thp-inbox,
.thp-mj {
  max-width: 100%;
}

/* ---- Sidebar ---- */
.thp-sidebar {
  width: var(--thp-sidebar-w, 248px) !important;
  background: var(--thp-sidebar-bg) !important;
  color: var(--thp-sidebar-text) !important;
  border-right: 1px solid var(--thp-sidebar-border, var(--thp-border)) !important;
  box-shadow: none !important;
}
.thp-sidebar__brand {
  padding: 18px 16px 14px !important;
  border-bottom: 1px solid var(--thp-sidebar-border, var(--thp-border)) !important;
}
.thp-sidebar__logo-full {
  width: 100% !important;
  max-width: 148px !important;
  max-height: 36px !important;
}
.thp-sidebar__nav {
  padding: 10px 8px !important;
  gap: 1px !important;
}
.thp-sidebar__link {
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: var(--thp-radius-sm, 8px) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: var(--thp-sidebar-text) !important;
  letter-spacing: -0.01em;
  transition: background 120ms ease, color 120ms ease !important;
  background: transparent !important;
}
.thp-sidebar__link:hover {
  background: var(--thp-sidebar-hover) !important;
  color: var(--thp-sidebar-active) !important;
  padding-left: 10px !important;
}
.thp-sidebar__link.is-active {
  background: var(--thp-sidebar-active-bg) !important;
  color: var(--thp-sidebar-active) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.thp-sidebar__icon {
  width: 16px !important;
  height: 16px !important;
  opacity: 0.75;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thp-sidebar__link.is-active .thp-sidebar__icon { opacity: 1; }
.thp-sidebar__dot { display: none !important; }
.thp-sidebar__foot {
  padding: 8px !important;
  border-top: 1px solid var(--thp-sidebar-border, var(--thp-border)) !important;
}
.thp-sidebar__foot .thp-sidebar__link {
  font-size: 13px !important;
  opacity: 0.9;
}
.thp-theme-toggle {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

/* ---- Topbar ---- */
.thp-topbar {
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 28px !important;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--thp-topbar-bg, var(--thp-surface)) !important;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--thp-border) !important;
  position: sticky;
  top: 0;
  z-index: 30;
}
.thp-topbar__menu {
  display: none;
  background: transparent;
  border: 1px solid var(--thp-border);
  border-radius: var(--thp-radius-sm, 8px);
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--thp-text);
  cursor: pointer;
}
@media (max-width: 960px) {
  .thp-topbar__menu { display: inline-flex; }
  .thp-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 50;
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }
  .thp-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax rgba(0,0,0,0.35);
  }
  .thp-app-content { padding: 18px 16px 32px !important; }
}
.thp-topbar__title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--thp-text) !important;
  letter-spacing: -0.02em;
}
.thp-topbar__company {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 3px 9px !important;
  border-radius: 6px !important;
  background: var(--thp-surface-2) !important;
  border: 1px solid var(--thp-border) !important;
  color: var(--thp-text-2) !important;
}
.thp-topbar__user {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--thp-text-2) !important;
}

/* ---- Page head ---- */
.thp-page-head {
  margin-bottom: 22px !important;
  align-items: flex-end !important;
  gap: 16px !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.thp-h1 {
  font-size: 26px !important;
  font-weight: 650 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.15 !important;
  color: var(--thp-text) !important;
  margin: 0 0 4px !important;
}
.thp-text-muted {
  font-size: 13.5px !important;
  color: var(--thp-text-2) !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
}
.thp-page-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---- Buttons ---- */
.thp-btn {
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: var(--thp-radius-sm, 8px) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  transition: background 120ms ease, border-color 120ms ease, transform 100ms ease, box-shadow 120ms ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.thp-btn--sm {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
}
.thp-btn--primary {
  background: var(--thp-button) !important;
  background-image: none !important;
  color: var(--thp-button-text) !important;
  border: 1px solid var(--thp-button-border, var(--thp-button)) !important;
  box-shadow: var(--thp-shadow-sm) !important;
}
.thp-btn--primary:hover {
  filter: brightness(1.06);
  box-shadow: var(--thp-shadow) !important;
  transform: translateY(-0.5px);
}
.thp-btn--secondary {
  background: var(--thp-surface) !important;
  color: var(--thp-text) !important;
  border: 1px solid var(--thp-border-strong) !important;
  box-shadow: var(--thp-shadow-sm) !important;
}
.thp-btn--secondary:hover {
  background: var(--thp-surface-2) !important;
}
.thp-btn--ghost {
  background: transparent !important;
  color: var(--thp-text-2) !important;
  border: none !important;
}
.thp-btn--ghost:hover {
  background: var(--thp-surface-2) !important;
  color: var(--thp-text) !important;
}
.thp-btn:active { transform: scale(0.985) !important; }
.thp-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- KPI cards ---- */
.thp-kpi-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
}
.thp-kpi,
a.thp-kpi {
  background: var(--thp-surface) !important;
  border: 1px solid var(--thp-border) !important;
  border-radius: var(--thp-radius, 10px) !important;
  padding: 16px 18px !important;
  box-shadow: var(--thp-card-shadow) !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease !important;
  position: relative;
  overflow: hidden;
}
.thp-kpi::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: 3px 0 0 3px;
  transition: background 140ms ease;
}
.thp-kpi:hover,
a.thp-kpi:hover {
  border-color: color-mix(in srgb, var(--thp-accent) 35%, var(--thp-border)) !important;
  box-shadow: var(--thp-shadow) !important;
  transform: translateY(-1px) !important;
}
.thp-kpi:hover::before,
a.thp-kpi:hover::before {
  background: var(--thp-accent);
}
.thp-kpi__label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--thp-text-3, var(--thp-text-2)) !important;
  margin-bottom: 8px !important;
}
.thp-kpi__value {
  display: block !important;
  font-size: 28px !important;
  font-weight: 650 !important;
  letter-spacing: -0.045em !important;
  line-height: 1 !important;
  color: var(--thp-text) !important;
  font-variant-numeric: tabular-nums;
}
.thp-kpi__hint {
  font-size: 11.5px !important;
  color: var(--thp-text-2) !important;
  margin-top: 6px !important;
}

/* ---- Cards ---- */
.thp-card {
  background: var(--thp-surface) !important;
  border: 1px solid var(--thp-border) !important;
  border-radius: var(--thp-radius, 10px) !important;
  box-shadow: var(--thp-card-shadow) !important;
  overflow: hidden;
}
.thp-card:hover {
  box-shadow: var(--thp-shadow) !important;
}
.thp-card__head {
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--thp-border) !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.thp-card__title {
  font-size: 13.5px !important;
  font-weight: 650 !important;
  letter-spacing: -0.02em !important;
  color: var(--thp-text) !important;
  margin: 0;
}
.thp-card__body {
  padding: 14px 18px !important;
}
.thp-link {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--thp-accent) !important;
  text-decoration: none !important;
}
.thp-link:hover { text-decoration: underline !important; }

/* ---- Pipeline bars ---- */
.thp-bar-row {
  display: grid !important;
  grid-template-columns: 110px 1fr 40px !important;
  gap: 10px !important;
  align-items: center !important;
  margin-bottom: 10px !important;
  font-size: 13px !important;
}
a.thp-bar-row {
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  padding: 4px 2px;
  margin: 0 -2px 6px;
  transition: background 100ms ease;
}
a.thp-bar-row:hover {
  background: var(--thp-surface-2);
}
a.thp-bar-row:hover .thp-bar-row__label {
  color: var(--thp-accent);
}
.thp-bar-row__label {
  color: var(--thp-text) !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}
.thp-bar-row__track {
  height: 6px !important;
  background: var(--thp-track) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}
.thp-bar-row__fill {
  height: 100% !important;
  background: var(--thp-accent) !important;
  border-radius: 999px !important;
  min-width: 0;
  display: block;
}
.thp-bar-row__n {
  font-variant-numeric: tabular-nums;
  font-weight: 650 !important;
  color: var(--thp-text) !important;
  text-align: right;
  font-size: 13px !important;
}

/* ---- List / recent rows ---- */
.thp-list-row,
.thp-recent-row,
.thp-pipe-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 12px !important;
  padding: 11px 8px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: background 100ms ease !important;
  border-bottom: 1px solid var(--thp-border);
  margin: 0 -4px;
}
.thp-list-row:last-child,
.thp-recent-row:last-child,
.thp-pipe-row:last-child {
  border-bottom: none;
}
.thp-list-row:hover,
.thp-recent-row:hover,
.thp-pipe-row:hover {
  background: var(--thp-surface-2) !important;
}
.thp-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 9px !important;
  background: var(--thp-primary-soft) !important;
  color: var(--thp-accent) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thp-list-row__body strong,
.thp-recent-row strong,
.thp-pipe-row span:first-child {
  display: block;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  letter-spacing: -0.015em;
  color: var(--thp-text) !important;
}
.thp-list-row__body .thp-text-muted,
.thp-recent-row .thp-text-muted {
  display: block;
  font-size: 12px !important;
  margin-top: 1px;
  color: var(--thp-text-2) !important;
}
.thp-pipe-row strong {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--thp-text);
}

/* ---- Badges (token soft colors) ---- */
.thp-badge {
  height: 22px !important;
  padding: 0 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.01em !important;
  border: none !important;
  display: inline-flex;
  align-items: center;
  background: var(--thp-surface-2);
  color: var(--thp-text-2);
  text-transform: capitalize;
}
.thp-badge--shortlisted,
.thp-badge--applied,
.thp-badge--screening {
  background: var(--thp-primary-soft) !important;
  color: var(--thp-accent) !important;
}
.thp-badge--hired,
.thp-badge--selected,
.thp-badge--joined,
.thp-badge--offer_released,
.thp-badge--live,
.thp-badge--success {
  background: var(--thp-success-soft) !important;
  color: var(--thp-success) !important;
}
.thp-badge--interview,
.thp-badge--interview_scheduled,
.thp-badge--interviewed {
  background: var(--thp-warning-soft) !important;
  color: var(--thp-warning) !important;
}
.thp-badge--rejected,
.thp-badge--error {
  background: var(--thp-danger-soft) !important;
  color: var(--thp-danger) !important;
}

/* ---- Attendance ---- */
.thp-dash-attendance {
  border-radius: var(--thp-radius, 10px) !important;
  border: 1px solid var(--thp-border) !important;
  box-shadow: var(--thp-card-shadow) !important;
  background: var(--thp-surface) !important;
}
.thp-dash-attendance strong {
  font-size: 13.5px !important;
  font-weight: 650 !important;
  color: var(--thp-text);
}

/* ---- Tables ---- */
.thp-table-wrap {
  border-radius: var(--thp-radius, 10px) !important;
  border: 1px solid var(--thp-border) !important;
  box-shadow: var(--thp-card-shadow) !important;
  overflow: auto;
  background: var(--thp-surface);
}
.thp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.thp-table th {
  font-size: 11px !important;
  font-weight: 650 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--thp-text-2) !important;
  background: var(--thp-surface-2) !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--thp-border) !important;
  position: sticky;
  top: 0;
  z-index: 1;
}
.thp-table td {
  padding: 11px 14px !important;
  font-size: 13.5px !important;
  border-bottom: 1px solid var(--thp-border) !important;
  color: var(--thp-text) !important;
}
.thp-table tbody tr:hover td {
  background: var(--thp-surface-2) !important;
}

/* ---- Inputs ---- */
.thp-input, .thp-select, .thp-textarea {
  height: 38px !important;
  border-radius: var(--thp-radius-sm, 8px) !important;
  border: 1px solid var(--thp-border-strong) !important;
  font-size: 13.5px !important;
  padding: 0 12px !important;
  background: var(--thp-input-bg, var(--thp-surface)) !important;
  color: var(--thp-text) !important;
  box-shadow: var(--thp-shadow-sm) !important;
  transition: border-color 120ms ease, box-shadow 120ms ease !important;
  font-family: inherit;
  width: 100%;
}
.thp-input:focus, .thp-select:focus, .thp-textarea:focus {
  border-color: var(--thp-accent) !important;
  box-shadow: 0 0 0 3px var(--thp-primary-soft) !important;
  outline: none !important;
}
.thp-textarea {
  height: auto !important;
  min-height: 100px !important;
  padding: 10px 12px !important;
}
.thp-field > span, .thp-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--thp-text-2) !important;
  letter-spacing: -0.01em;
  margin-bottom: 5px !important;
  display: block;
}

/* ---- Kanban ---- */
.thp-kanban {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  min-height: 60vh;
}
.thp-kanban__col {
  flex: 0 0 248px !important;
  border-radius: var(--thp-radius, 10px) !important;
  border: 1px solid var(--thp-border) !important;
  background: var(--thp-surface-2) !important;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
}
.thp-kanban__head {
  padding: 12px !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  border-bottom: 1px solid var(--thp-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--thp-text);
}
.thp-kanban__list {
  padding: 0.55rem;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  transition: background 160ms ease;
}
.thp-kanban__list.is-over {
  background: var(--thp-primary-soft);
  border-radius: 8px;
}
.thp-kanban__card {
  background: var(--thp-surface) !important;
  border: 1px solid var(--thp-border) !important;
  border-radius: 9px !important;
  box-shadow: var(--thp-shadow-sm) !important;
  padding: 10px 11px !important;
  margin-bottom: 0.5rem;
  cursor: grab;
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}
.thp-kanban__card:hover {
  border-color: color-mix(in srgb, var(--thp-accent) 40%, var(--thp-border)) !important;
  box-shadow: var(--thp-shadow) !important;
  transform: translateY(-2px);
}
.thp-kanban__card.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}
.thp-kanban__name {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--thp-text);
  text-decoration: none;
  display: block;
}
.thp-kanban__name:hover { color: var(--thp-accent); }
.thp-kanban__meta {
  font-size: 0.76rem;
  color: var(--thp-text-2);
  margin-top: 0.2rem;
}
.thp-kanban__empty {
  font-size: 0.78rem;
  color: var(--thp-text-3, var(--thp-text-2));
  text-align: center;
  padding: 1.5rem 0.5rem;
  border: 1px dashed var(--thp-border);
  border-radius: 8px;
}

/* ---- Job form ---- */
.thp-jobpost { gap: 20px !important; }
.thp-jobpost__steps {
  border-radius: var(--thp-radius, 10px) !important;
  border: 1px solid var(--thp-border) !important;
  padding: 6px !important;
  background: var(--thp-surface);
  box-shadow: var(--thp-card-shadow) !important;
}
.thp-jobpost__step {
  font-size: 12.5px !important;
  font-weight: 550 !important;
  padding: 9px 11px !important;
  border-radius: 8px !important;
  color: var(--thp-text-2) !important;
  text-decoration: none;
  display: block;
  transition: background 140ms ease, color 140ms ease;
}
.thp-jobpost__step.is-active,
.thp-jobpost__step:hover {
  background: var(--thp-primary-soft) !important;
  color: var(--thp-accent) !important;
  font-weight: 650 !important;
}
.thp-jobpost__step.is-active {
  box-shadow: inset 3px 0 0 var(--thp-accent) !important;
}

/* ---- Toasts ---- */
.thp-toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.thp-toast {
  pointer-events: auto;
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--thp-surface);
  color: var(--thp-text);
  border: 1px solid var(--thp-border);
  box-shadow: var(--thp-shadow);
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity 200ms ease, transform 200ms ease;
}
.thp-toast--success { border-left: 3px solid var(--thp-success); }
.thp-toast--error { border-left: 3px solid var(--thp-danger); }

/* ---- Grid ---- */
.thp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .thp-grid-2 { grid-template-columns: 1fr; }
  .thp-kpi-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 560px) {
  .thp-kpi-grid { grid-template-columns: 1fr !important; }
}

/* ---- Focus ---- */
.thp-root a:focus-visible,
.thp-root button:focus-visible,
.thp-root input:focus-visible,
.thp-root select:focus-visible,
.thp-root textarea:focus-visible {
  outline: 2px solid var(--thp-accent);
  outline-offset: 2px;
}

/* Theme icon visibility handled by JS */
.thp-theme-toggle .thp-icon-sun,
.thp-theme-toggle .thp-icon-moon,
.thp-theme-toggle .thp-icon-mixed {
  display: none;
}



/* ============================================================
   Filters, facets, counts — consistent alignment
   ============================================================ */

.thp-filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.thp-filter-form .thp-field {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.thp-filter-form .thp-field > span,
.thp-filter-form .thp-label {
  margin: 0 !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--thp-text-2) !important;
  line-height: 1.3;
}
.thp-filter-form .thp-input,
.thp-filter-form select.thp-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 36px !important;
  box-sizing: border-box !important;
  font-size: 13px !important;
}
.thp-filter-form .thp-input::placeholder {
  color: var(--thp-text-3, var(--thp-muted));
  opacity: 0.85;
}
.thp-filter-form input[type="number"].thp-input {
  -moz-appearance: textfield;
  appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.thp-filter-form input[type="number"].thp-input::-webkit-outer-spin-button,
.thp-filter-form input[type="number"].thp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Exp min/max pair stays on one row in narrow sidebar */
.thp-filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
}
.thp-filter-pair .thp-field {
  min-width: 0;
}
.thp-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.thp-filter-actions .thp-btn {
  flex: 1 1 auto;
  min-width: 0;
}
.thp-filter-actions__full {
  width: 100% !important;
  margin-top: 4px;
}

/* Facet rows: label left, count right, aligned */
.thp-mj__facet-row,
.thp-inbox__nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100%;
  box-sizing: border-box;
}
.thp-facet-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.thp-facet-count {
  flex: 0 0 auto;
  min-width: 1.75rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 650 !important;
  font-size: 12.5px !important;
  color: var(--thp-text-2);
  letter-spacing: -0.01em;
  line-height: 1;
}
.thp-mj__facet-row.is-active .thp-facet-count,
.thp-inbox__nav .thp-facet-count {
  color: var(--thp-sidebar-active, var(--thp-accent));
}
.thp-mj__tab .thp-facet-count,
.thp-mj__tab strong.thp-facet-count {
  margin-left: 0.35rem;
  color: inherit;
  font-size: 12.5px;
  opacity: 0.85;
}
.thp-mj__tab.is-active .thp-facet-count {
  opacity: 1;
}

/* Chips with counts */
.thp-chip {
  gap: 0.4rem !important;
  white-space: nowrap;
}
.thp-chip-count {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  opacity: 0.9;
}

/* Toolbar / chips meta: keep controls on one aligned row */
.thp-inbox__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.thp-inbox__chips-meta,
.thp-mj__tabs-meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.thp-inbox__chips-meta .thp-input,
.thp-mj__tabs-meta .thp-input,
.thp-mj__show select,
.thp-mj__sort select,
.thp-input--sm {
  height: 32px !important;
  min-height: 32px !important;
  width: auto !important;
  min-width: 7rem;
  max-width: 11rem;
  padding: 0 10px !important;
  font-size: 12.5px !important;
}
.thp-mj__show,
.thp-mj__sort {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 12.5px;
  color: var(--thp-text-2);
  white-space: nowrap;
}

/* Sidebar filter panels */
.thp-mj__filters,
.thp-inbox__side {
  min-width: 0;
  overflow: hidden;
}
.thp-mj__facet {
  margin-top: 1rem;
}
.thp-mj__facet:first-child {
  margin-top: 0;
}
.thp-mj__facet-title {
  margin-bottom: 0.5rem !important;
}

/* Prevent number inputs from expanding the grid */
.thp-mj__filters .thp-grid-2,
.thp-inbox__side .thp-grid-2 {
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}
.thp-mj__filters .thp-grid-2 .thp-input,
.thp-inbox__side .thp-grid-2 .thp-input {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 960px) {
  .thp-inbox__chips-meta,
  .thp-mj__tabs-meta {
    margin-left: 0;
    width: 100%;
  }
}



/* ============================================================
   Apply Inbox — space management & toolbar beautification
   ============================================================ */

/* Content scale ~90% of full desktop */
.thp-app-content {
  max-width: min(1180px, 92%) !important;
  margin-inline: auto;
  padding: 20px 24px 36px !important;
  width: 100%;
  box-sizing: border-box;
}

/* Inbox grid: slightly wider main, compact filter rail */
.thp-inbox {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}
.thp-mj {
  display: grid !important;
  grid-template-columns: 220px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}
.thp-inbox__side,
.thp-mj__filters {
  padding: 12px !important;
  border-radius: 12px !important;
  position: sticky;
  top: 64px;
  max-height: calc(100vh - 80px);
  overflow: auto;
}
.thp-inbox__main,
.thp-mj__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Page head tighter */
.thp-page-head {
  margin-bottom: 14px !important;
}
.thp-h1 {
  font-size: 22px !important;
  margin-bottom: 2px !important;
}
.thp-inbox-crumb {
  margin-bottom: 2px !important;
  font-size: 12.5px !important;
}

/* ---- Status tabs: single scrollable row, no awkward wrap ---- */
.thp-mj__tabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border-bottom: 1px solid var(--thp-border) !important;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.thp-mj__tab {
  flex: 0 0 auto;
  text-decoration: none !important;
  color: var(--thp-text-2) !important;
  font-weight: 550 !important;
  font-size: 13px !important;
  padding: 10px 12px !important;
  border-bottom: 2px solid transparent !important;
  margin-bottom: -1px !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 120ms ease, border-color 120ms ease;
}
.thp-mj__tab:hover {
  color: var(--thp-text) !important;
}
.thp-mj__tab.is-active {
  color: var(--thp-accent) !important;
  border-bottom-color: var(--thp-accent) !important;
  font-weight: 650 !important;
}
.thp-mj__tab .thp-facet-count {
  margin-left: 4px;
  font-size: 12px !important;
  font-weight: 650 !important;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.thp-mj__tab.is-active .thp-facet-count {
  opacity: 1;
  color: var(--thp-accent);
}
.thp-mj__tabs-meta {
  display: none !important; /* pagination lives in toolbar below */
}

/* ---- Chips + toolbar card ---- */
.thp-inbox__chips {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin: 0 0 8px !important;
  padding: 12px 14px !important;
  background: var(--thp-surface) !important;
  border: 1px solid var(--thp-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--thp-card-shadow) !important;
}
.thp-inbox__chips-views {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.thp-chip {
  height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  border: 1px solid var(--thp-border) !important;
  background: var(--thp-surface) !important;
  color: var(--thp-text) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.thp-chip:hover {
  border-color: color-mix(in srgb, var(--thp-accent) 35%, var(--thp-border)) !important;
  background: var(--thp-surface-2) !important;
}
.thp-chip.is-on {
  background: var(--thp-primary-soft) !important;
  border-color: color-mix(in srgb, var(--thp-accent) 40%, transparent) !important;
  color: var(--thp-accent) !important;
  font-weight: 650 !important;
}
.thp-chip-count {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  font-size: 11.5px;
  opacity: 0.9;
}

/* Toolbar row: total | sort | per page | pagination — one clean line */
.thp-inbox__toolbar {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px !important;
  margin: 0 !important;
  padding-top: 10px;
  border-top: 1px solid var(--thp-border);
  width: 100%;
}
.thp-inbox__total {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--thp-text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-right: 4px;
}
.thp-toolbar-field {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
}
.thp-toolbar-field__label {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--thp-text-2) !important;
  white-space: nowrap;
}
.thp-toolbar-field .thp-input,
.thp-toolbar-field select.thp-input,
.thp-input--sm {
  height: 30px !important;
  min-height: 30px !important;
  width: auto !important;
  min-width: 7.5rem !important;
  max-width: 11rem !important;
  padding: 0 8px !important;
  font-size: 12.5px !important;
  border-radius: 7px !important;
  margin: 0 !important;
  background: var(--thp-surface) !important;
}

/* Pagination pill */
.thp-pagination {
  display: inline-flex !important;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  background: var(--thp-surface-2);
  border: 1px solid var(--thp-border);
  border-radius: 8px;
  padding: 2px;
  height: 30px;
  box-sizing: border-box;
}
.thp-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 24px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--thp-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
}
.thp-pagination__btn:hover:not(.is-disabled) {
  background: var(--thp-primary-soft);
  color: var(--thp-accent);
}
.thp-pagination__btn.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}
.thp-pagination__status {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--thp-text-2);
  font-variant-numeric: tabular-nums;
  padding: 0 6px;
  white-space: nowrap;
  min-width: 4.8rem;
  text-align: center;
}

/* Bulk toolbar */
.thp-mj__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 4px;
}
.thp-mj__check-all {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--thp-text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.thp-inbox__reshuffle {
  display: inline-flex !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: wrap;
  margin-left: auto;
}
.thp-inbox__reshuffle .thp-input {
  height: 30px !important;
  min-width: 140px;
  width: auto !important;
  font-size: 12.5px !important;
  padding: 0 8px !important;
}

/* Applicant cards denser */
.thp-inbox__list {
  gap: 10px !important;
}
.thp-acard {
  border-radius: 12px !important;
  border: 1px solid var(--thp-border) !important;
  background: var(--thp-surface) !important;
  box-shadow: var(--thp-card-shadow) !important;
}

/* Facet sidebar cleaner */
.thp-mj__facet-title {
  font-size: 10.5px !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 6px !important;
  color: var(--thp-text-3, var(--thp-text-2)) !important;
}
.thp-mj__facet-row {
  padding: 6px 8px !important;
  font-size: 12.5px !important;
  border-radius: 7px !important;
}
.thp-facet-count {
  min-width: 1.5rem !important;
  font-size: 12px !important;
}
.thp-filter-form {
  gap: 8px !important;
}
.thp-filter-form .thp-input {
  height: 34px !important;
  font-size: 12.5px !important;
}

@media (max-width: 1100px) {
  .thp-inbox,
  .thp-mj {
    grid-template-columns: 200px minmax(0, 1fr) !important;
  }
}
@media (max-width: 960px) {
  .thp-inbox,
  .thp-mj {
    grid-template-columns: 1fr !important;
  }
  .thp-inbox__side,
  .thp-mj__filters {
    position: static !important;
    max-height: none;
  }
  .thp-pagination {
    margin-left: 0;
  }
  .thp-mj__tabs {
    flex-wrap: wrap !important;
  }
}



/* ============================================================
   Kanban pipeline — DnD reliability + stage control
   ============================================================ */

.thp-kanban {
  display: flex !important;
  gap: 12px !important;
  overflow-x: auto !important;
  padding-bottom: 16px !important;
  min-height: 62vh !important;
  align-items: stretch;
}
.thp-kanban__col {
  flex: 0 0 260px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 420px !important;
  background: var(--thp-surface-2) !important;
  border: 1px solid var(--thp-border) !important;
  border-radius: 12px !important;
}
.thp-kanban__head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 12px 12px 10px !important;
  border-bottom: 1px solid var(--thp-border) !important;
  gap: 8px;
}
.thp-kanban__title {
  font-size: 12.5px !important;
  font-weight: 650 !important;
  color: var(--thp-text) !important;
  letter-spacing: -0.01em;
}
.thp-kanban__list {
  flex: 1 1 auto !important;
  min-height: 280px !important;
  padding: 10px !important;
  overflow-y: auto !important;
  transition: background 120ms ease, box-shadow 120ms ease;
}
.thp-kanban__list.is-over {
  background: var(--thp-primary-soft) !important;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--thp-accent) 35%, transparent);
}
.thp-kanban__empty {
  border: 1px dashed var(--thp-border) !important;
  border-radius: 8px !important;
  padding: 28px 12px !important;
  text-align: center !important;
  font-size: 12px !important;
  color: var(--thp-text-3, var(--thp-text-2)) !important;
  min-height: 72px;
  pointer-events: none; /* let drop hit the list */
}
.thp-kanban__card {
  background: var(--thp-surface) !important;
  border: 1px solid var(--thp-border) !important;
  border-radius: 10px !important;
  padding: 10px 11px !important;
  margin-bottom: 8px !important;
  cursor: grab !important;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: var(--thp-shadow-sm) !important;
  transition: box-shadow 140ms ease, transform 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.thp-kanban__card:active {
  cursor: grabbing !important;
}
.thp-kanban__card.is-dragging {
  opacity: 0.45 !important;
  transform: scale(0.98);
}
.thp-kanban__card:hover {
  border-color: color-mix(in srgb, var(--thp-accent) 35%, var(--thp-border)) !important;
  box-shadow: var(--thp-shadow) !important;
}
.thp-kanban__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.thp-kanban__name {
  font-size: 13px !important;
  font-weight: 650 !important;
  color: var(--thp-text) !important;
  text-decoration: none !important;
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.3;
}
.thp-kanban__name:hover {
  color: var(--thp-accent) !important;
}
.thp-kanban__stage-wrap {
  flex: 0 0 auto;
  margin: 0;
}
.thp-kanban__stage {
  max-width: 108px;
  height: 26px !important;
  font-size: 11px !important;
  padding: 0 4px !important;
  border-radius: 6px !important;
  border: 1px solid var(--thp-border) !important;
  background: var(--thp-surface-2) !important;
  color: var(--thp-text) !important;
  cursor: pointer;
}
.thp-kanban__meta {
  font-size: 11.5px !important;
  color: var(--thp-text-2) !important;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}



/* ============================================================
   Brand logo — image only, full sidebar width (no "T" / text)
   ============================================================ */
.thp-sidebar__brand {
  padding: 12px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.thp-sidebar__brand .thp-brand-logo,
.thp-sidebar__brand-link {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 0 !important;
}
.thp-sidebar__brand .thp-brand-logo img,
.thp-sidebar__logo-full,
.thp-brand-logo--sidebar img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
}

/* Auth / login / register header logo */
.thp-header .thp-brand-logo,
.thp-header .thp-logo {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  max-width: 220px !important;
}
.thp-header .thp-brand-logo img,
.thp-brand-logo--auth img,
.thp-brand-logo--header img {
  display: block !important;
  height: 40px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain !important;
}
/* Hide legacy letter-mark text if any remains */
.thp-logo span {
  display: none !important;
}

/* Applicant cards: not fully clickable */
.thp-acard { position: relative; }
.thp-acard__stretch { display: none !important; pointer-events: none !important; }
.thp-acard--clickable { cursor: default !important; }
.thp-acard__name { font-weight: 650; color: var(--thp-text); }
.thp-acard__call .thp-input--sm { max-width: 180px; }


/* ============================================================
   Applicant card — clean SaaS layout + working actions
   ============================================================ */
.thp-acard {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: start;
  padding: 14px 14px 12px;
  border-radius: 12px !important;
  border: 1px solid var(--thp-border) !important;
  background: var(--thp-surface) !important;
  box-shadow: none !important;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.thp-acard:hover {
  border-color: color-mix(in srgb, var(--thp-accent) 28%, var(--thp-border)) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}
.thp-acard__cb {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-top: 4px;
  z-index: 2;
}
.thp-acard__cb input { width: 15px; height: 15px; cursor: pointer; }
.thp-acard__body {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thp-acard__rail {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
.thp-acard__top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.thp-acard__name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--thp-text);
  line-height: 1.25;
}
.thp-acard__meta {
  font-size: 12px !important;
  color: var(--thp-text-2, #64748b) !important;
  margin: 0 !important;
}
.thp-acard__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 12.5px;
  color: var(--thp-text-2);
  font-weight: 500;
}
.thp-acard__quick span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.thp-acard__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--thp-surface-2, color-mix(in srgb, var(--thp-bg) 65%, var(--thp-surface)));
  border: 1px solid var(--thp-border);
}
.thp-acard__fact {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.thp-acard__fact--wide { grid-column: 1 / -1; }
.thp-acard__fact-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--thp-text-3, #94a3b8);
}
.thp-acard__fact-value {
  font-size: 13px;
  font-weight: 550;
  color: var(--thp-text);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.thp-acard__headline {
  margin: 0;
  font-size: 12.5px;
  color: var(--thp-text-2);
  line-height: 1.4;
}
.thp-acard__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 2px;
}
.thp-acard__status-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 3;
}
.thp-acard__status-actions .thp-btn {
  pointer-events: auto !important;
  position: relative;
  z-index: 3;
}
.thp-acard__call-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.thp-acard__call-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--thp-text-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.thp-acard__call-wrap .thp-call-select {
  height: 30px;
  min-width: 140px;
  font-size: 12px;
  border-radius: 8px;
}
.thp-acard__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 12px;
  color: var(--thp-text-3, #94a3b8);
}
.thp-acard__foot-sep { opacity: 0.6; }
.thp-acard__stretch { display: none !important; }
.thp-inbox__list { gap: 10px !important; }
@media (max-width: 720px) {
  .thp-acard {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .thp-acard__rail {
    grid-column: 2;
    grid-row: auto;
    flex-direction: row;
    justify-content: flex-start;
  }
  .thp-acard__facts { grid-template-columns: 1fr; }
}

.thp-status-form-ext {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}


/* Public job board header + footer logo */
.thp-header__inner {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
.thp-header .thp-brand-logo,
.thp-header .thp-brand-logo--header {
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  max-width: 200px !important;
  margin-right: auto !important;
}
.thp-header .thp-brand-logo img,
.thp-header .thp-brand-logo--header img {
  display: block !important;
  height: 36px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
}
.thp-footer {
  border-top: 1px solid var(--thp-border, #e2e8f0);
  padding: 20px 0 !important;
  margin-top: 48px;
}
.thp-footer__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}
.thp-footer__brand {
  display: flex !important;
  align-items: center !important;
  margin-right: auto !important;
}
.thp-footer__brand .thp-brand-logo,
.thp-footer__brand .thp-brand-logo--header {
  display: inline-flex !important;
  max-width: 160px !important;
}
.thp-footer__brand img {
  display: block !important;
  height: 28px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
}
.thp-footer__copy {
  font-size: 13px;
  color: var(--thp-text-2, #64748b);
}

.thp-input--job-body { min-height: 180px; line-height: 1.55; }
.thp-notes-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thp-note-item { border: 1px solid var(--thp-border, #e2e8f0); border-radius: 10px; padding: 12px 14px; background: var(--thp-surface, #fff); }
.thp-note-item__meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--thp-text-2, #64748b); margin-bottom: 6px; }
.thp-note-item__body { font-size: 14px; color: var(--thp-text, #0f172a); line-height: 1.5; white-space: pre-wrap; }

/* Header / topbar click reliability */
.thp-header, .thp-topbar { position: relative; z-index: 40; }
.thp-header a, .thp-topbar a, .thp-sidebar__link { pointer-events: auto; }
.thp-header__inner { position: relative; z-index: 2; }
.thp-check-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 8px; max-height: 220px; overflow: auto; padding: 4px 0; }
.thp-check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
