/* ============================================================================================================
   Performdesk design layer (UI_DESIGN.md). Loaded after style.css: it re-skins the app shell and the shared components and adds the
   journey pieces (Getting started, hiring journey bar, empty states, command palette). It only uses and adds tokens; the light, dark and
   system themes of style.css keep working because every color here is a variable.
   ============================================================================================================ */
:root {
  --sidebar-w: 252px;
  --rail-w: 76px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
  --shadow-2: 0 6px 16px rgba(16, 24, 40, 0.08), 0 2px 4px rgba(16, 24, 40, 0.05);
  --surface-2: rgba(100, 116, 160, 0.06);
  /* the sidebar is the one deliberately dark, theme-invariant surface (like the toast): it anchors the page in every theme */
  --sidebar-bg: #0e1027;
  --sidebar-bg-2: #181b3a;
  --sidebar-text: #b4badc;
  --sidebar-title: #7a82b2;
  --sidebar-hover: rgba(255, 255, 255, 0.07);
  --sidebar-active: rgba(129, 140, 248, 0.2);
  --sidebar-accent: #a5b4fc;
  --font: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35); --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.45); --surface-2: rgba(160, 174, 220, 0.07); --sidebar-bg: #090b1a; --sidebar-bg-2: #10132b; }
}
:root[data-theme="dark"] { --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35); --shadow-2: 0 6px 16px rgba(0, 0, 0, 0.45); --surface-2: rgba(160, 174, 220, 0.07); --sidebar-bg: #090b1a; --sidebar-bg-2: #10132b; }

body { font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }

/* ---------------- the shell ---------------- */
.app-shell { display: flex; min-height: 100vh; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-main > main { width: 100%; padding: 22px 32px 72px; margin: 0 auto; max-width: 1560px; }

.sidebar {
  width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh; z-index: 40; display: flex; flex-direction: column;
  padding: 18px 12px 14px; overflow-y: auto; overflow-x: hidden; color: var(--sidebar-text);
  background: radial-gradient(120% 60% at 0% 0%, rgba(99, 102, 241, 0.22), transparent 60%), linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  transition: width 0.2s ease, transform 0.22s ease;
}
.sidebar::-webkit-scrollbar { width: 6px; } .sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 6px; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; color: #fff; text-decoration: none; }
.brand-name { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }

.sidebar nav.tabs { display: block; flex: 1; padding: 0; margin: 0; background: transparent; border: 0; position: static; gap: 0; }
.nav-group { margin: 0 0 16px; }
.nav-group:not(:has(.tab-btn:not([hidden]))) { display: none; }
.nav-title { padding: 0 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sidebar-title); white-space: nowrap; }
.sidebar nav.tabs button.tab-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; margin: 1px 0; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--sidebar-text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; position: relative; border-bottom: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.sidebar nav.tabs button.tab-btn .ico { width: 20px; height: 20px; flex: none; opacity: 0.85; }
.sidebar nav.tabs button.tab-btn .nav-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav.tabs button.tab-btn:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar nav.tabs button.tab-btn.active { background: var(--sidebar-active); color: #fff; }
.sidebar nav.tabs button.tab-btn.active .ico { opacity: 1; color: var(--sidebar-accent); }
.sidebar nav.tabs button.tab-btn.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--sidebar-accent); }
.sidebar nav.tabs .nav-count { margin-left: 0; }
.sidebar-collapse { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 9px 12px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--sidebar-title); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sidebar-collapse:hover { background: var(--sidebar-hover); color: #fff; }
.sidebar-collapse .ico { width: 18px; height: 18px; transition: transform 0.2s ease; }
body.nav-collapsed .sidebar-collapse .ico { transform: rotate(180deg); }

/* icon rail */
body.nav-collapsed .sidebar { width: var(--rail-w); }
body.nav-collapsed .brand-name, body.nav-collapsed .nav-title, body.nav-collapsed .nav-label, body.nav-collapsed .sidebar-collapse .nav-label { display: none; }
body.nav-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
body.nav-collapsed .sidebar nav.tabs button.tab-btn, body.nav-collapsed .sidebar-collapse { justify-content: center; padding-left: 0; padding-right: 0; }
body.nav-collapsed .sidebar nav.tabs .nav-count { position: absolute; top: 2px; right: 8px; margin: 0; }
body.nav-collapsed .nav-group { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
body.nav-collapsed .nav-group:last-child { border-bottom: 0; }

.nav-scrim { display: none; }

/* ---------------- the top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px 32px; min-height: 68px;
  background: var(--card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.page-head { min-width: 0; }
.page-head h1 { margin: 0; font-size: 20px; font-weight: 750; letter-spacing: -0.015em; line-height: 1.2; }
.page-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); max-width: 78ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.topbar-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.topbar-btn:hover { background: var(--brand-tint); border-color: var(--brand); }
.topbar-btn.active { background: var(--brand-solid); color: var(--brand-contrast); border-color: var(--brand-solid); }
.topbar-btn .ico { width: 20px; height: 20px; }
.hamburger { display: none; }

.palette-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 38px; min-width: 230px; padding: 0 8px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.palette-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.palette-btn .ico { width: 17px; height: 17px; flex: none; }
.palette-btn .palette-text { flex: 1; text-align: left; }
kbd { font: inherit; font-size: 11px; font-weight: 600; padding: 2px 6px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--card); color: var(--muted); }

.user-chip {
  position: static !important; top: auto !important; right: auto !important; height: 38px; max-width: 280px; display: inline-flex; align-items: center; gap: 9px; padding: 0 12px 0 5px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text); font-size: 13px;
}
.user-chip[hidden] { display: none !important; }
.user-chip-avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.user-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.user-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; font-size: 12.5px; }
.user-chip-role { background: transparent !important; padding: 0 !important; font-size: 11px; color: var(--muted); }

.help-banner { padding: 8px 32px; }
.impersonation-banner { margin: 0; }

/* ---------------- shared components, polished ---------------- */
.tab-panel.active { animation: tw-rise 0.22s ease both; }
@keyframes tw-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.card { border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-1); }
.card h2 { font-size: 17px; font-weight: 700; }
.card h3 { font-size: 14px; font-weight: 700; }
.tab-panel > p.muted:first-child { margin-top: 0; }

button.btn { border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 650; box-shadow: var(--shadow-1); }
button.btn.ghost, button.btn.secondary, button.btn.danger { box-shadow: none; }
button.btn:hover { transform: translateY(-1px); }
button.btn:active { transform: translateY(0); }

input[type=text], input[type=email], input[type=number], input[type=password], input[type=tel], input[type=date], input[type=search], textarea, select { border-radius: var(--radius-sm); padding: 9px 12px; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
label { letter-spacing: 0.005em; }

.table-wrap { border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
table { font-size: 13.5px; }
th { background: var(--surface-2); font-size: 11.5px; letter-spacing: 0.07em; padding: 10px 12px; white-space: nowrap; }
td { padding: 11px 12px; }
tbody tr { transition: background-color 0.12s ease; }
tbody tr:hover td { background: var(--surface-2); }
.badge { padding: 3px 10px; font-weight: 650; }

.stat { border-radius: var(--radius); padding: 16px 14px; box-shadow: var(--shadow-1); }
.stat .num { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat .label { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.stat.clickable:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* segmented sub-tabs instead of an underlined second row of tabs */
.provider-tabs, .subtab-nav, .wizard-tabs { display: flex; flex-wrap: wrap; gap: 4px !important; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); width: fit-content; max-width: 100%; margin-bottom: 16px; }
.provider-tabs button, .subtab-nav button, .wizard-tabs button { padding: 8px 14px !important; margin: 0 !important; border: 0 !important; border-radius: 9px; font-size: 13.5px !important; font-weight: 600 !important; color: var(--muted); }
.provider-tabs button:hover:not(.active), .subtab-nav button:hover:not(.active), .wizard-tabs button:hover:not(.active) { background: var(--card); color: var(--text); }
.provider-tabs button.active, .subtab-nav button.active, .wizard-tabs button.active { background: var(--card); color: var(--brand) !important; box-shadow: var(--shadow-1); }

.modal-card { border-radius: 16px; box-shadow: var(--shadow-lg); }
.toast { border-radius: 12px; }

/* ---------------- journeys ---------------- */
.journey-card {
  display: grid; gap: 16px; padding: 22px 24px; margin-bottom: 20px; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1);
  background: radial-gradient(90% 140% at 0% 0%, var(--brand-tint), transparent 70%), var(--card);
}
.journey-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.journey-head h2 { margin: 0 0 2px; font-size: 18px; }
.journey-pct { font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.journey-progress { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.journey-progress > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-solid), #8b5cf6); transition: width 0.5s ease; }
.journey-tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 18px; }
.journey-track h3 { margin: 0 0 8px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.jstep { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.jstep .dot { width: 28px; height: 28px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; font-weight: 800; background: var(--neutral-bg); color: var(--neutral-text); }
.jstep.done .dot { background: var(--ok-solid); color: #fff; }
.jstep.current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.jstep.current .dot { background: var(--brand-solid); color: var(--brand-contrast); }
.jstep .txt { flex: 1; min-width: 0; }
.jstep .txt strong { display: block; font-size: 14px; }
.jstep .txt span { display: block; font-size: 12.5px; color: var(--muted); }
.jstep.done .txt strong { color: var(--muted); font-weight: 600; }
.jstep .go { flex: none; }

.hj { display: flex; align-items: flex-start; margin: 0 0 18px; padding: 14px 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-1); overflow-x: auto; }
.hj-step { position: relative; flex: 1 1 0; min-width: 116px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 6px; border: 0; background: transparent; font: inherit; color: var(--muted); text-align: center; cursor: pointer; }
.hj-step:not(:first-child)::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--border); border-radius: 3px; }
.hj-step.done:not(:first-child)::before, .hj-step.current:not(:first-child)::before { background: var(--ok-solid); }
.hj-dot { position: relative; z-index: 1; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 14px; font-weight: 800; background: var(--card); border: 2px solid var(--border); color: var(--neutral-text); transition: transform 0.15s ease; }
.hj-step:hover .hj-dot { transform: scale(1.08); border-color: var(--brand); }
.hj-step.done .hj-dot { background: var(--ok-solid); border-color: var(--ok-solid); color: #fff; }
.hj-step.current .hj-dot { background: var(--brand-solid); border-color: var(--brand-solid); color: var(--brand-contrast); box-shadow: 0 0 0 4px var(--brand-tint); }
.hj-label { font-size: 13px; font-weight: 700; color: var(--text); }
.hj-hint { font-size: 11.5px; line-height: 1.3; max-width: 17ch; }
.hj-step.current .hj-hint { color: var(--brand); font-weight: 600; }

.empty-state { text-align: center; padding: 38px 20px; border: 1px dashed var(--input-border); border-radius: var(--radius); background: var(--surface-2); }
.empty-state .es-ico { width: 52px; height: 52px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--brand-tint); color: var(--brand); }
.empty-state .es-ico .ico { width: 26px; height: 26px; }
.empty-state h3 { margin: 0 0 6px; font-size: 16px; }
.empty-state p { margin: 0 auto 14px; max-width: 52ch; color: var(--muted); }
tr.empty-row td { padding: 0; border: 0; background: transparent !important; }

/* ---------------- command palette ---------------- */
.palette-overlay { position: fixed; inset: 0; z-index: 400; display: none; align-items: flex-start; justify-content: center; padding: 11vh 16px 0; background: var(--overlay-bg); backdrop-filter: blur(3px); }
.palette-overlay.show { display: flex; }
.palette-card { width: min(660px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; animation: tw-rise 0.16s ease both; }
.palette-card input.palette-input { width: 100%; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 18px 20px; font-size: 16px; background: transparent; box-shadow: none; }
.palette-list { max-height: 52vh; overflow: auto; padding: 8px; }
.palette-group { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.palette-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.palette-item .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.palette-item .p-main { flex: 1; min-width: 0; }
.palette-item .p-main strong { display: block; font-size: 14px; }
.palette-item .p-main span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-item .kind { font-size: 11px; color: var(--muted); }
.palette-item.active { background: var(--brand-tint); }
.palette-item.active .ico { color: var(--brand); }
.palette-empty { padding: 22px; text-align: center; color: var(--muted); }
.palette-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-2); }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) { .palette-btn .palette-text, .palette-btn kbd { display: none; } .palette-btn { min-width: 0; width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 900px) { .app-main > main { padding: 16px 16px 64px; } .topbar { padding: 10px 14px; } .page-sub { display: none; } .user-chip-text { display: none; } .user-chip { padding: 0 4px; } }
@media (max-width: 760px) {
  .sidebar, body.nav-collapsed .sidebar { position: fixed; left: 0; top: 0; width: min(290px, 86vw); transform: translateX(-102%); box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: var(--shadow-lg); }
  body.nav-collapsed .brand-name, body.nav-collapsed .nav-title, body.nav-collapsed .nav-label { display: initial; }
  body.nav-collapsed .nav-title { display: block; }
  body.nav-collapsed .sidebar nav.tabs button.tab-btn, body.nav-collapsed .sidebar-collapse { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
  .sidebar-collapse { display: none; }
  .nav-scrim { display: none; position: fixed; inset: 0; z-index: 35; background: var(--overlay-bg); }
  body.nav-open .nav-scrim { display: block; }
  .hamburger { display: inline-flex; }
  .topbar { gap: 10px; }
  .topbar-btn, .palette-btn, .user-chip { height: 44px; min-width: 44px; }
  .topbar-btn { width: 44px; }
  button.btn { min-height: 44px; }
  .hj { padding-bottom: 6px; }
  .palette-overlay { padding-top: 6vh; }
}
/* the title takes whatever room is left and shortens with an ellipsis instead of colliding with the buttons */
.page-head { flex: 1 1 auto; }
.page-head h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) {
  #helpModeBtn, #themeBtn, #viewAsBtn { display: none; }
  .page-head h1 { font-size: 17px; }
  .topbar { padding: 8px 10px; gap: 8px; min-height: 60px; }
  .app-main > main { padding: 12px 12px 56px; }
  .card { padding: 16px; }
  .journey-card { padding: 16px; }
}

/* ===== Hiring round 5 (HIRING_V3_DESIGN.md): the interview chain on a journey card ===== */
.pipe-steps { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.pipe-plan { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; margin: 8px 0; background: var(--card); }
.pipe-alloc label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.pipe-alloc input, .pipe-alloc select { min-width: 150px; }
.pipe-score { display: flex; flex-direction: column; gap: 8px; }
.pipe-score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.pipe-score-grid label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.badge.tier-must_hire { background: var(--ok-bg); color: var(--ok); }
.badge.tier-strong { background: var(--pending-bg); color: var(--pending-text); }
.badge.tier-good { background: var(--neutral-bg); color: var(--neutral-text); }
.badge.tier-promising { background: var(--pending-bg); color: var(--pending-text); }
.badge.tier-hold { background: var(--warn-bg); color: var(--warn); }

/* ===== Hiring round 5: the role dashboards (Projects > Insights), the interviews queue and the bell ===== */
.ins-head { justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ins-window { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.ins-window select { width: auto; }
.ins-views { margin-bottom: 12px; }
.ins-card { margin-bottom: 14px; }
.ins-tile.clickable { cursor: pointer; }
.ins-tile.clickable:hover, .ins-tile.clickable:focus-visible { box-shadow: 0 0 0 2px var(--brand-glow); outline: none; }
.ins-tile.warn { border-color: var(--warn); background: var(--warn-bg); }
.ins-tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.ins-todo { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ins-todo li { margin: 0; }
.ins-todo-btn { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.ins-todo-btn:hover, .ins-todo-btn:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-glow); outline: none; }
.ins-todo-btn .muted { font-size: 12px; }
.ins-todo li:not(:has(button)) { padding: 6px 2px; }
.warn-text { color: var(--warn-text); font-weight: 600; }
.ins-bars { display: flex; flex-direction: column; gap: 5px; }
.ins-bar { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 44px; gap: 8px; align-items: center; font-size: 13px; }
.ins-bar-label { color: var(--muted); overflow-wrap: anywhere; }
.ins-bar-track { display: block; height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.ins-bar-track i { display: block; height: 100%; border-radius: 99px; background: var(--brand-solid); }
.ins-bar-track i.pos { background: var(--ok-solid); } .ins-bar-track i.neg { background: var(--err-solid); }
.ins-bar-n { text-align: right; font-weight: 700; }
.ins-hero { display: flex; align-items: center; gap: 16px; padding: 4px 2px 14px; }
.ins-rank { font-size: 34px; font-weight: 800; color: var(--brand); min-width: 70px; text-align: center; line-height: 1; }
tr.ins-you td { background: var(--brand-tint); }
.ins-pos { border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.ins-compare { margin-top: 8px; }
.ins-help { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ins-help input[type="text"] { flex: 1; }
.ins-helpform { display: flex; flex-direction: column; gap: 8px; }
.pos-extras { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.pe-out { margin-top: 8px; }
.pe-comment { padding: 6px 10px; border-radius: 10px; background: var(--neutral-bg); margin-bottom: 6px; }
.pe-comment.mine { background: var(--brand-tint); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 99px; background: var(--neutral-bg); color: var(--neutral-text); font-size: 12px; margin: 1px 2px 1px 0; }
.light-chip { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.light-chip.green { background: var(--ok-bg); color: var(--ok); } .light-chip.amber { background: var(--warn-bg); color: var(--warn); } .light-chip.red { background: var(--err-bg); color: var(--err); }
.badge.pri-p1 { background: var(--err-bg); color: var(--err); } .badge.pri-p2 { background: var(--neutral-bg); color: var(--neutral-text); } .badge.pri-p3 { background: var(--pending-bg); color: var(--pending-text); }
.int-card { margin-bottom: 14px; }
.int-card select, .int-card input[type="datetime-local"], .int-card input[type="url"] { min-width: 130px; }
.int-bulk { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--neutral-bg); }
/* the bell */
.notif-btn { position: relative; }
.notif-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--err-solid); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.notif-panel { position: fixed; top: 64px; right: 16px; z-index: 60; width: min(380px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--card); }
.notif-item { width: 100%; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.notif-item:hover, .notif-item:focus-visible { background: var(--brand-tint); outline: none; }
.notif-item.unread { background: var(--pending-bg); }
.notif-item.unread .notif-title::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; }
.notif-title { font-weight: 700; font-size: 13px; }
.notif-body { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.notif-time { color: var(--muted); font-size: 11px; }
@media (max-width: 560px) { .notif-panel { top: 58px; right: 8px; } .ins-bar { grid-template-columns: minmax(90px, 130px) 1fr 40px; } }

.ins-todo-btn.inline { flex-direction: row; align-items: baseline; gap: 8px; }
.pipe-alloc label { flex: 1 1 160px; }

/* ---- self-ratings against technical ratings (HIRING_V3_DESIGN.md section 12) ---- */
.pipe-facts { border: 1px solid var(--border); background: var(--card); border-radius: 10px; padding: 10px 12px; }
.pipe-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; }
.pipe-facts-grid > div { display: flex; flex-direction: column; font-size: 13px; }
.pipe-facts-grid .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
.pipe-selfrating { border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.pipe-skillrate { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

#candRatingsTable { margin-bottom: 10px; }
.rate-template { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: var(--card); }
.rate-row { display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(200px, 2fr) minmax(180px, 1.5fr) auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.rate-row .rate-self { display: flex; gap: 4px; align-items: center; font-size: 12px; white-space: nowrap; margin: 0; }
@media (max-width: 900px) { .rate-row { grid-template-columns: 1fr; } }
.rate-desc { display: block; font-size: 12px; font-weight: 400; line-height: 1.35; }
.pipe-skilltable { display: flex; flex-direction: column; gap: 8px; }
.pipe-skillrow { display: grid; grid-template-columns: minmax(180px, 2fr) 110px minmax(140px, 1.5fr); gap: 8px; align-items: start; padding: 6px 0; border-top: 1px solid var(--border); }
.pipe-skillrow label { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 720px) { .pipe-skillrow { grid-template-columns: 1fr; } }

/* the number you clicked on the Pipeline screen stays marked while its list is open */
#projDrillCard { scroll-margin-top: 84px; }
.seg-selected { outline: 3px solid var(--brand) !important; outline-offset: 2px; box-shadow: 0 0 0 5px var(--brand-glow); position: relative; z-index: 1; }
.stat.proj-kpi.seg-selected { background: var(--brand-tint); }

/* A hiring-only account (no outreach package): the Dashboard shows the hiring cards and the Getting started card, not empty email charts. */
body.no-outreach #tab-dashboard > :not(#dashBusinessHost):not(#gsCard):not(.journey-card) { display: none !important; }

/* ---- shared hiring tables: project filter, sortable headers, paging (tableKit.js) ---- */
.twk-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 8px; }
.twk-field { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: 13px; }
.twk-field select { width: auto; min-width: 70px; }
.twk-count { margin-left: auto; font-size: 13px; }
.twk-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-weight: 600; color: inherit; }
.twk-sort:hover { color: var(--brand); }
.twk-sort:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.twk-arrow { font-size: 10px; opacity: .45; }
.twk-sort.on .twk-arrow { opacity: 1; color: var(--brand); }
.twk-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 10px 0 2px; }
.twk-pager .btn { padding: 4px 10px; min-width: 34px; }
.twk-pager .btn.active { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); font-weight: 700; }

/* the way back to where a candidate was opened from (navBack.js) */
.back-bar { position: sticky; top: 68px; z-index: 29; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 12px; margin: 0 0 12px; border: 1px solid var(--brand); background: var(--brand-tint); border-radius: 10px; }
.back-bar[hidden] { display: none; }
.back-bar .back-where { font-size: 13px; color: var(--muted); }
.tier-why { cursor: help; text-decoration: underline dotted; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }
.rc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.rc-fieldset[disabled] input, .rc-fieldset[disabled] select { opacity: .85; cursor: default; }
.rc-readonly-note { border: 1px solid var(--border); background: var(--card); border-left: 4px solid var(--brand); border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
#candDetailCard { scroll-margin-top: 150px; }

/* the demo environment's "Switch user" menu in the top bar (shell.js; exists only when the server runs in demo mode) */
.demo-switch-btn { width: auto; padding: 0 12px; gap: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.demo-tag { background: var(--brand-solid); color: var(--brand-contrast); border-radius: 6px; padding: 1px 6px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.demo-panel { position: fixed; z-index: 60; width: min(380px, calc(100vw - 16px)); max-height: min(72vh, 640px); overflow: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .25); padding: 8px; }
.demo-panel[hidden] { display: none; }
.demo-panel-head { padding: 6px 8px 8px; font-weight: 700; font-size: 13px; }
.demo-group-name { padding: 8px 8px 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.demo-user { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; width: 100%; padding: 7px 8px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.demo-user span.muted { grid-column: 1; font-size: 12px; }
.demo-user .badge { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.demo-user:hover, .demo-user:focus-visible { background: var(--brand-tint); }
.demo-user.current { cursor: default; background: var(--brand-tint); }
@media (max-width: 900px) { .demo-switch-btn span:nth-child(2) { display: none; } }
.fit-stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
/* a link from a notification scrolls a request, position or flag note into view below the sticky top bar */
.ins-help, #projBrief .pos-card, #candFlagPending { scroll-margin-top: 110px; }
