/* ATS layout on top of brand.css v1.0.0 (app/static/brand.css).
   Do not re-declare :root L&K tokens here. */

/* Shell: navy left sidebar + light workspace.
   Pinning is scoped to html[data-app="ats"] so a brand/theme sync cannot
   re-clip Mission Control's long Areas list (MC stretches, ATS sticks). */
.has-shell { display: flex; min-height: 100vh; background: var(--paper); }
.shell-nav {
  flex: 0 0 220px;
  width: 220px;
  background: var(--ZLK-Navy);
  color: #f8fafd;
  display: flex;
  flex-direction: column;
  padding: 12px 10px 16px;
  box-sizing: border-box;
  z-index: 8;
}
html[data-app="ats"] body.has-shell {
  height: 100vh;
  overflow: hidden;
  align-items: stretch;
}
html[data-app="ats"] .shell-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: flex-start;
  overflow: hidden;
  background: var(--ZLK-Navy);
}
html[data-app="ats"] .shell-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-decoration: none;
  color: #fff;
  padding: 8px 8px 14px;
  letter-spacing: normal;
}
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}
.brand-lockup .brand-text {
  color: #fff;
  font-family: var(--Serif400, "Noto Serif", Georgia, serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: normal;
}
.shell-nav .nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  flex-wrap: nowrap;
}
.shell-nav .nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.shell-nav .nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.shell-nav .nav a.on {
  background: rgba(63, 159, 127, 0.22);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--ZLK-Green);
}
.shell-nav .badge {
  background: var(--ZLK-Green);
  color: #fff;
  border-radius: 99px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}
.shell-nav-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--ZLK-NavyLine); }
.shell-nav-foot a, .shell-nav-foot button {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 6px 8px;
  border-radius: 8px;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.shell-nav-foot a:hover, .shell-nav-foot button:hover { background: rgba(255,255,255,0.06); color: #fff; }
.shell-nav-foot a.on { background: rgba(63, 159, 127, 0.22); color: #fff; box-shadow: inset 3px 0 0 var(--ZLK-Green); }

.shell-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.has-shell .topbar {
  background: var(--card);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 6;
  box-shadow: none;
}
.has-shell .topbar .brand, .has-shell .topbar .nav { display: none; }
.has-shell .topbar { justify-content: space-between; }
.has-shell .topbar-left { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; }
.has-shell .topbar-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.has-shell .topbar-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 55%;
  overflow: visible;
  position: relative;
  z-index: 40;
}
.user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.has-shell .topbar .find { margin-left: 0; margin-right: 0; }
.has-shell .topbar .find input {
  width: 220px;
  height: 32px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 12px;
  font-size: 13px;
  transition: width 0.2s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.has-shell .topbar .find input:focus,
.has-shell .topbar .find:focus-within input {
  width: 360px;
  border-color: var(--ZLK-Green);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(63, 159, 127, 0.2);
  outline: none;
}
.has-shell .topbar .help-open,
.has-shell .topbar .user-menu > button {
  background: transparent;
  border: 0;
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
}
.has-shell .topbar .user-menu { min-width: 0; max-width: 240px; overflow: visible; position: relative; z-index: 50; }
.has-shell .topbar .user-menu > button {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}
.has-shell .topbar .help-open:hover,
.has-shell .topbar .user-menu > button:hover { background: var(--paper); }
.has-shell .page {
  width: auto;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  flex: 1;
}
.has-shell .foot {
  padding: 16px 32px 24px;
  color: var(--muted);
}
.has-shell .foot .ver {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}
.has-shell .foot .ver:hover { color: var(--ZLK-Green); border-bottom-style: solid; }

.filters, .people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  align-items: center;
}
.people-row { cursor: pointer; }

/* Asana-style pipeline board */
.board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  align-items: flex-start;
  min-height: 420px;
}
.board .col {
  width: 280px;
  flex: 0 0 280px;
  background: var(--board-col);
  border-radius: 12px;
  padding: 8px;
  border: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 220px);
}
.board .col.drag-over { background: var(--board-col-hover); outline: 2px dashed var(--accent); }
.col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 12px;
  gap: 8px;
}
.col-head h3, .col-head b {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.col-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--count-bg);
  color: var(--count-ink);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.col-cards {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 4px 4px;
  min-height: 48px;
  flex: 1;
}
.task-card {
  background: var(--card);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px;
  cursor: grab;
  transition: box-shadow 0.15s ease, transform 0.15s ease, outline-color 0.15s ease;
  border: 1px solid transparent;
}
.task-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.task-card:focus-visible { outline: 2px solid var(--ZLK-Green); }
.task-card.is-dragging { opacity: 0.6; cursor: grabbing; transform: scale(0.98); box-shadow: var(--shadow-hover); }
.task-card.is-drop-target { outline: 2px dashed var(--ZLK-Green); }
.task-title, a.task-title, .task-card .person-name { font-weight: 600; color: var(--heading); font-size: 14px; margin: 0 0 2px; text-decoration: none; }
a.task-title:hover, .task-card a.person-name:hover { color: var(--accent); text-decoration: none; }
.task-sub { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.task-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.task-foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.task-count { display: inline-flex; align-items: center; gap: 4px; }
.col-add {
  display: block;
  padding: 8px 12px;
  margin: 4px 4px 0;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  opacity: 0.78;
}
.col-add:hover { background: var(--hover-bg); color: var(--heading); opacity: 1; text-decoration: none; }
.pipe-switcher { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.board-live { position: relative; }
.board-live.is-busy { cursor: progress; }

/* Suggestions & drafts */
.suggest-list, .draft-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.suggest-item, .draft-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.suggest-item p, .draft-item p { margin: 0 0 6px; }
.suggest-actions, .draft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.suggest-item form, .draft-item form { display: inline; }
.draft-body { white-space: pre-wrap; font: 13px/1.45 var(--sans); margin: 0 0 8px; color: var(--ink); }

/* Settings, profile, chips */
.settings-nav a { color: var(--link); text-decoration: none; }
.settings-nav a:hover { color: var(--accent); text-decoration: none; }
.settings-more { border-color: var(--line); background: var(--card); border-radius: 12px; box-shadow: var(--shadow); }
.profile-head { margin-bottom: 8px; align-items: start; }
.profile-top { margin: 0 0 10px; }
.profile-top .contacted-banner { margin: 0 0 8px; padding: 8px 12px; }
.profile-top h1 { margin: 0 0 2px; font-size: 1.6rem; }
.profile-top .kicker { margin: 0 0 2px; }
.profile-top .sub { margin: 2px 0 4px; }
.profile-keyfacts { margin: 6px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.profile-top .profile-brief { margin: 6px 0 0; }
.profile-scores { margin: 0 0 14px; }

.pills button { border-radius: 99px; }
.pills button.on { background: var(--ZLK-Green); border-color: var(--ZLK-Green); color: #fff; }
.chip { border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }

@media (max-width: 860px) {
  .has-shell { flex-direction: column; }
  .shell-nav {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
  }
  html[data-app="ats"] body.has-shell,
  html[data-app="ats"] .shell-nav,
  html[data-app="ats"] .shell-main {
    height: auto;
    overflow: visible;
    position: relative;
  }
  .shell-nav .nav { flex-direction: row; flex-wrap: wrap; }
  .shell-nav .navlabel { display: none; }
  .shell-nav-foot { border: 0; margin: 0; padding: 0; display: flex; }
  .has-shell .page { padding: 16px; }
  .has-shell .topbar .find input, .has-shell .topbar .find:focus-within input { width: 160px; }
}


.changelog-release { margin-bottom: 16px; }
.changelog-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 8px; }
.changelog-head h2 { margin: 0; font-size: 18px; }
.changelog-list { margin: 0; padding-left: 1.2em; }
.changelog-list li { margin: 6px 0; }
.changelog-release.current { border-color: var(--ZLK-Green); }

.draft-review { border: 0; }
.draft-summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.draft-summary::-webkit-details-marker { display: none; }
.draft-edit { margin: 12px 0; }
.funnel-tmpl { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; background: var(--card); }
.funnel-tmpl legend { font-weight: 600; padding: 0 6px; }


/* Profile brief under the name */
.profile-brief { margin: 10px 0 12px; max-width: 46rem; }
.profile-brief .brief-short { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.brief-more { margin-top: 6px; }
.brief-more summary { cursor: pointer; color: var(--ZLK-Green); font-weight: 600; }
.brief-more .brief { margin-top: 8px; white-space: pre-wrap; font-family: var(--sans); font-size: 14px; }

/* Resume drop */
.resume-drop-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(30, 44, 72, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.resume-drop-overlay[hidden] { display: none !important; }
.resume-drop-card {
  background: var(--card); border-radius: 16px; padding: 32px 40px;
  box-shadow: var(--shadow); text-align: center; max-width: 28rem;
  border: 2px dashed var(--ZLK-Green);
}
.resume-page-drop {
  border: 2px dashed var(--line); border-radius: 16px;
  padding: 24px; text-align: center; margin: 0 0 20px; background: var(--card);
}
.resume-page-drop.drag, body.resume-drop-active .resume-page-drop {
  border-color: var(--ZLK-Green); background: var(--ZLK-TableHoverGreen);
}
.resume-toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 81;
  display: flex; flex-direction: column; gap: 8px; width: min(360px, calc(100vw - 32px));
}
.resume-toast {
  background: var(--card); border-radius: 12px; box-shadow: var(--shadow);
  padding: 12px 14px; border-left: 4px solid var(--ZLK-Green);
}
.resume-toast.toast-created { border-left-color: var(--ZLK-Green); }
.resume-toast.toast-review, .resume-toast.toast-updated.toast-review { border-left-color: var(--Nicole-Yellow); }
.resume-toast.toast-error { border-left-color: #b42318; }
.resume-toast strong { display: block; }
.resume-toast .toast-file { display: block; color: var(--muted); font-size: 12px; }
.resume-toast.out { opacity: 0; transition: opacity .3s; }

/* History mismatch */
.history-panel { border-color: #b42318; }
.history-panel h2 { color: #b42318; }
.history-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.history-diff h4 { margin: 0 0 8px; }
.history-diffs { margin: 0 0 12px; padding-left: 1.2em; }
@media (max-width: 700px) { .history-diff { grid-template-columns: 1fr; } }

/* Board cards */
.task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.task-top-actions { display: flex; align-items: center; gap: 4px; }
.task-x { font-size: 18px; line-height: 1; padding: 0 6px; color: var(--muted); }
.task-x:hover { color: #b42318; background: #fdecea; }
.task-rank { margin: 2px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.task-expand { margin-left: auto; font-size: 12px; }
.task-detail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; }
.task-brief { margin: 0 0 8px; }
.col-title { cursor: text; border-radius: 6px; padding: 2px 4px; }
.col-title:hover { background: var(--paper); }
.col-rename { width: 100%; font: inherit; font-weight: 600; }
.col-add-column { min-width: 200px; background: transparent; border: 2px dashed var(--line); box-shadow: none; justify-content: flex-start; }
.col-add-form { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.not-fit-pop, .board-undo {
  position: absolute; z-index: 30; background: var(--card); border-radius: 12px;
  box-shadow: var(--shadow); padding: 14px; width: 280px; border: 1px solid var(--line);
}
.board-undo {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: auto; display: flex; align-items: center; gap: 12px;
}
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.reason-chips .pill { cursor: pointer; }
.reason-chips .pill.on { background: var(--ZLK-Green); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Emoji picker */
.emoji-field { position: relative; }
.emoji-picker {
  position: absolute; z-index: 40; top: 100%; left: 0;
  width: 280px; max-height: 320px; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 8px;
}
.emoji-picker-search input { width: 100%; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 2px; }
.emoji-choice { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 6px; font-size: 18px; cursor: pointer; }
.emoji-choice:hover { background: var(--paper); }
.emoji-kicker { margin: 6px 0 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.emoji-warn, .emoji-inline-warn { color: #b42318; font-size: 12px; margin: 6px 0; }
.emoji-open { margin-left: 6px; font-size: 12px; }

/* Stage column customize menu and move-draft modal (v1.1.1) */
.col-emoji { font-size: 16px; line-height: 1; }
.col-emoji:empty { display: none; }
.col-head .col-title { flex: 1; min-width: 0; }
.col-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.col-menu { position: relative; }
.col-menu-btn {
  list-style: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.col-menu-btn::-webkit-details-marker { display: none; }
.col-menu-btn::marker { content: ""; }
.col-menu-btn:hover, .col-menu[open] .col-menu-btn { background: var(--paper, #eef1f6); color: var(--ink); }
.col-menu-pop {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  min-width: 180px;
  background: var(--card);
  border: 1px solid var(--line, #e3e7ee);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(23, 29, 47, 0.12);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.col-menu-pop button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
}
.col-menu-pop button:hover:not(:disabled) { background: var(--paper, #eef1f6); }
.col-menu-pop button:disabled { opacity: .4; cursor: default; }
.col-menu-pop button.danger { color: #b42318; }
.col-head .emoji-picker { position: absolute; right: 0; top: 100%; z-index: 30; }

.lk-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 29, 47, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
  overflow: auto;
}
.lk-modal[hidden] { display: none !important; }
.lk-modal-card {
  background: var(--card);
  border-radius: 14px;
  width: min(640px, 100%);
  box-shadow: 0 16px 48px rgba(23, 29, 47, 0.2);
  padding: 20px 22px 22px;
}
.lk-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lk-modal-head h2 { margin: 0; font-size: 18px; }
body.modal-open { overflow: hidden; }
#move-draft-form .draft-to { margin: 0 0 8px; }
#move-draft-status { color: var(--ink); }
.col-head { position: relative; }

/* Target web search results (v1.1.2) */
.target-result-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.target-result-card { border: 1px solid var(--line, #e3e7ee); border-radius: 12px; padding: 14px 16px; background: var(--card); }
.target-result-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.target-result-top h3 { margin: 0 0 4px; font-size: 16px; }
.target-result-score { text-align: center; min-width: 56px; }
.target-result-score b { display: block; font-size: 22px; color: var(--ZLK-Green, #3F9F7F); line-height: 1; }
.target-result-score span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.target-snippet { font-size: 13px; color: var(--ink); margin: 6px 0; }
.already-in { display: inline-block; background: var(--pill-source-bg); color: var(--pill-source-ink); font-weight: 600; font-size: 12px; padding: 3px 8px; border-radius: 99px; margin: 4px 0; }
.target-skips ul { list-style: none; padding: 0; margin: 6px 0 0; }
.target-skips li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.flash.warning { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--ink); }

/* Pipeline board top bar: tabs + two actions, Asana-like */
.pipe-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 8px 20px;
  margin: 0 0 8px;
  border-bottom: 1px solid var(--line, #e3e7ee);
  flex-wrap: wrap;
}
.pipe-tabs {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.pipe-tab {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.pipe-tab-link {
  display: inline-block;
  padding: 10px 14px 12px;
  color: var(--tab-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border-radius: 8px 8px 0 0;
}
.pipe-tab-link:hover { color: var(--tab-ink-on); background: var(--hover-bg); text-decoration: none; }
.pipe-tab.is-on { border-bottom-color: var(--accent); }
.pipe-tab.is-on .pipe-tab-link { color: var(--tab-ink-on); }
.pipe-tab-menu { position: relative; }
.pipe-tab-more {
  list-style: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--tab-ink-on);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
}
.pipe-tab-more::-webkit-details-marker, .pipe-tab-more::marker { display: none; content: ""; }
.pipe-tab-more:hover, .pipe-tab-menu[open] .pipe-tab-more { background: var(--hover-bg); color: var(--tab-ink-on); }
.pipe-tab-pop {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--line, #e3e7ee);
  border-radius: 10px;
  box-shadow: var(--shadow-hover, 0 10px 24px rgba(23, 29, 47, 0.12));
  padding: 6px;
}
.pipe-tab-pop button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.pipe-tab-pop button:hover { background: var(--hover-bg); color: var(--ink); }
.pipe-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; padding-bottom: 8px; flex-shrink: 0; white-space: nowrap; }
.board.board-live { padding: 16px 8px 32px; min-height: calc(100vh - 200px); }
.task-placeholder {
  border: 2px dashed var(--ZLK-Green, #3f9f7f);
  background: rgba(63, 159, 127, 0.12);
  border-radius: 8px;
  box-sizing: border-box;
  pointer-events: none;
  transition: height 0.15s ease;
}
.task-card.is-origin { display: none !important; }
.task-ghost {
  position: fixed;
  z-index: 80;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(23, 29, 47, 0.18);
  transform: rotate(1.5deg) scale(1.03);
  opacity: 0.96;
  cursor: grabbing;
  margin: 0;
}
.board .col.is-drop-target,
.board .col.drag-over {
  background: var(--board-col-hover);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.col-cards .task-card { transition: transform 0.16s ease, box-shadow 0.15s ease; }
body.is-board-dragging { cursor: grabbing; user-select: none; }
body.is-board-dragging .task-card { cursor: grabbing; }
.resume-batch {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(360px, calc(100vw - 24px));
  background: var(--card);
  border: 1px solid var(--line, #e3e7ee);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(23, 29, 47, 0.16);
  padding: 12px 14px;
}
.resume-batch h3 { margin: 0 0 8px; font-size: 14px; }
.resume-batch ol { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.resume-batch li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.resume-batch .st { font-weight: 600; white-space: nowrap; }
.resume-batch .st-ok { color: var(--ZLK-Green, #3f9f7f); }
.resume-batch .st-review { color: var(--warn); }
.resume-batch .st-fail { color: #b42318; }
.resume-batch .st-wait { color: var(--muted); }

.has-shell .page:has(.pipe-top) { max-width: 100%; width: 100%; min-width: 0; overflow-x: hidden; }


/* Per-user sidebar customize */
.shell-nav .nav a.nav-hidden { display: none; }
.shell-nav.is-editing .nav a.nav-hidden { display: flex; opacity: 0.45; }
.shell-nav.is-editing .nav a { cursor: grab; }
.shell-nav.is-editing .nav a.is-dragging { opacity: 0.6; cursor: grabbing; }
.shell-nav .nav-vis {
  display: none;
  flex: 0 0 auto;
  width: auto;
  padding: 2px 6px;
  margin-left: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
}
.shell-nav.is-editing .nav-vis { display: inline-block; }
.shell-nav-foot .nav-edit-actions { display: none; }
.shell-nav.is-editing .nav-edit-actions { display: block; }
.shell-nav.is-editing #nav-edit { display: none; }
.appearance-picks { display: flex; flex-wrap: wrap; gap: 12px; }
.appearance-picks label.check { margin: 0; }

/* Settings: Asana-style left section list + cards */
.settings-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 8px;
}
.settings-side {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
}
.settings-side a,
.settings-side a:link,
.settings-side a:visited,
.settings-side a:hover,
.settings-side a:active,
.settings-side a:focus {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none !important;
  font-weight: 550;
  border: 1px solid transparent;
}
.settings-side a:hover {
  background: var(--hover-bg);
  color: var(--ink);
  text-decoration: none !important;
}
.settings-side a.is-on,
.settings-side a.is-on:link,
.settings-side a.is-on:visited,
.settings-side a.is-on:hover,
.settings-side a[aria-current="page"] {
  background: var(--ZLK-Green, var(--accent));
  color: #fff;
  font-weight: 600;
  text-decoration: none !important;
  border-color: var(--ZLK-Green, var(--accent));
  box-shadow: none;
}
html[data-theme="dark"] .settings-side a.is-on,
html[data-theme="dark"] .settings-side a.is-on:hover {
  background: var(--ZLK-Green, var(--accent));
  color: #171D2F;
}
.settings-main { min-width: 0; }
.settings-card { padding: 24px; margin: 0 0 24px; }
.settings-card h2 { font-size: 18px; margin: 0 0 6px; color: var(--heading); }
.settings-card .lede, .settings-card > .muted { margin-bottom: 20px; }
.settings-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.settings-subnav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
}
.settings-subnav a:hover, .settings-subnav a.is-on {
  border-color: var(--accent);
  color: var(--heading);
  text-decoration: none;
  background: var(--hover-bg);
}
.theme-seg { display: flex; flex-wrap: wrap; gap: 12px; }
.theme-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  min-width: 104px;
  font-weight: 500;
  color: var(--ink);
}
.theme-swatch input { position: absolute; opacity: 0; pointer-events: none; }
.theme-swatch.is-on, .theme-swatch:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 159, 127, 0.25);
}
.swatch {
  width: 88px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.swatch-bar { height: 12px; display: block; }
.swatch-body { flex: 1; display: block; }
.swatch-light { background: #F8FAFD; }
.swatch-light .swatch-bar { background: #ffffff; border-bottom: 1px solid #e3e7ee; }
.swatch-light .swatch-body { background: #F8FAFD; }
.swatch-dark { background: #26366B; }
.swatch-dark .swatch-bar { background: #1E2C48; border-bottom: 1px solid #3D4962; }
.swatch-dark .swatch-body { background: #26366B; }
.swatch-system {
  background: linear-gradient(90deg, #F8FAFD 50%, #26366B 50%);
}
.swatch-system .swatch-bar { background: linear-gradient(90deg, #fff 50%, #1E2C48 50%); }
.theme-mini {
  display: flex;
  gap: 2px;
  padding: 6px 4px;
  margin: 4px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.theme-mini button {
  flex: 1;
  font-size: 11px;
  padding: 4px 6px !important;
  border-radius: 6px !important;
  color: var(--ink);
  width: auto !important;
}
.theme-mini button.is-on {
  background: var(--hover-bg);
  font-weight: 600;
}
.save-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  box-shadow: var(--shadow-hover);
  z-index: 80;
  font-weight: 500;
}
.connect-banner ul { display: flex; flex-direction: column; gap: 8px; }
.connect-banner li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0;
}
.draft-panel { padding: 20px 24px; }
.draft-item { padding: 16px 18px; }
.draft-edit { gap: 14px; margin: 12px 0; }
.draft-edit textarea {
  min-height: 160px;
  background: var(--input-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }

/* In-place sidebar drag */
.shell-nav .nav a {
  position: relative;
  padding-left: 22px;
}
.shell-nav .nav-grip {
  position: absolute;
  left: 4px;
  top: 50%;
  width: 14px;
  height: 22px;
  margin-top: -11px;
  opacity: 0;
  background:
    radial-gradient(circle, currentColor 1.1px, transparent 1.25px) 3px 4px / 4px 5px,
    radial-gradient(circle, currentColor 1.1px, transparent 1.25px) 7px 4px / 4px 5px;
  background-repeat: repeat-y;
  color: inherit;
  pointer-events: auto;
  cursor: grab;
  transition: opacity 0.12s ease;
}
.shell-nav .nav a:hover .nav-grip, .shell-nav .nav a:focus-visible .nav-grip,
.shell-nav .nav a.is-dragging .nav-grip { opacity: 0.45; }
.shell-nav .nav a { cursor: pointer; }
.shell-nav .nav a.is-dragging { opacity: 0.7; cursor: grabbing; }
.shell-nav .nav a.is-dragging .nav-grip { cursor: grabbing; }
.shell-nav .nav-placeholder {
  height: 36px;
  margin: 2px 0;
  border-radius: 8px;
  border: 1px dashed var(--ZLK-Green);
  background: rgba(63, 159, 127, 0.15);
}
.nav-ctx {
  position: fixed;
  z-index: 80;
  min-width: 160px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-hover);
  padding: 4px;
}
.nav-ctx button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.nav-ctx button:hover { background: var(--hover-bg); }

@media (max-width: 860px) {
  .settings-shell { grid-template-columns: 1fr; gap: 16px; }
  .settings-side { position: static; flex-direction: row; flex-wrap: wrap; }
}


/* Profile quick links — polished pill buttons */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 4px;
}
.ql-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ZLK-Navy, var(--ink));
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: var(--shadow, 0 1px 2px rgba(23, 29, 47, 0.06));
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.ql-btn:visited { color: inherit; }
.ql-btn:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-hover, 0 4px 12px rgba(23, 29, 47, 0.10));
  background: color-mix(in srgb, var(--ZLK-Green, var(--accent)) 12%, var(--card));
  color: var(--ZLK-Green, var(--accent));
  border-color: var(--ZLK-Green, var(--accent));
  text-decoration: none;
}
.ql-btn:focus-visible {
  outline: 2px solid var(--ZLK-Green, var(--accent));
  outline-offset: 2px;
  text-decoration: none;
}
.ql-btn:active { transform: translateY(0) scale(1.02); }
.ql-btn.is-suggested { border-style: dashed; }
.ql-btn[data-key="linkedin"] { color: #0A66C2; border-color: color-mix(in srgb, #0A66C2 40%, var(--line)); }
.ql-btn[data-key="linkedin"]:hover {
  color: #0A66C2;
  background: color-mix(in srgb, #0A66C2 12%, var(--card));
  border-color: #0A66C2;
}
.ql-btn[data-key="teams"] { color: #5B5FC7; border-color: color-mix(in srgb, #5B5FC7 40%, var(--line)); }
.ql-btn[data-key="teams"]:hover {
  color: #5B5FC7;
  background: color-mix(in srgb, #5B5FC7 12%, var(--card));
  border-color: #5B5FC7;
}
.ql-btn[data-key="email"] { color: var(--ZLK-Green, var(--accent)); }
.ql-btn[data-key="phone"] { color: var(--ZLK-DarkBlue, var(--ink)); }
.ql-btn[data-key="bar"],
.ql-btn[data-key^="bar:"] { color: var(--ZLK-Blue, #000465); }
.ql-btn[data-key="firm_site"],
.ql-btn[data-key="firm_bio"],
.ql-btn[data-key="personal"] { color: var(--ZLK-Navy, var(--ink)); }
.ql-add { font-size: 22px; line-height: 1; font-weight: 500; color: var(--muted); }
.ql-icon, .ql-icon svg { width: 18px; height: 18px; display: block; }
.ql-icon svg { stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ql-icon[data-icon="linkedin"] svg,
.ql-icon[data-icon="martindale"] svg { fill: currentColor; stroke: none; }
@media (prefers-reduced-motion: reduce) {
  .ql-btn, .ql-btn:hover, .ql-btn:active {
    transition: none;
    transform: none;
  }
}
html[data-theme="dark"] .ql-btn {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .ql-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.ql-editor {
  margin: 8px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  max-width: 36rem;
}
.ql-editor .stack { display: grid; gap: 10px; }
.ql-editor label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.ql-editor input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input, var(--paper));
  color: var(--ink);
}
.ql-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }


/* Stage template editor */
.tmpl-card { max-width: 40rem; }
.tmpl-scope { display: flex; gap: 6px; margin: 8px 0 4px; }
.tmpl-scope-btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.tmpl-scope-btn.is-on, .tmpl-scope-btn[aria-pressed="true"] {
  background: var(--accent);
  color: var(--tab-ink-on, #fff);
  border-color: var(--accent);
}
.tmpl-badge { margin: 0 0 10px; }
.tmpl-block { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 8px; }
.tmpl-block legend { padding: 0 6px; color: var(--heading, var(--ink)); font-weight: 600; }
.tmpl-checks { display: flex; flex-wrap: wrap; gap: 12px; }


/* Resumes: add one / bulk + in-page profile card */
.resume-upload-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 8px 0 16px; }
@media (max-width: 800px) { .resume-upload-split { grid-template-columns: 1fr; } }
.resume-upload-card { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 16px; }
.resume-upload-card h2 { margin: 0 0 6px; font-size: 1.1rem; color: var(--heading, var(--ink)); }
.resume-profile-dock { margin: 0 0 20px; }
.resume-profile-card { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 16px 18px; }
.resume-profile-card .rpc-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.resume-profile-card h2 { margin: 0; color: var(--heading, var(--ink)); }
.complete-ring, .complete-meter { display: inline-flex; align-items: center; gap: 6px; }
.complete-meter { min-width: 4.5rem; }
.complete-bar { display: inline-block; width: 48px; height: 8px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; vertical-align: middle; }
.complete-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--pct, 0) * 1%); background: var(--accent); border-radius: inherit; }
.rpc-summary, .rpc-experience, .rpc-contact { margin: 10px 0; }
.rpc-missing { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.rpc-missing button, .rpc-missing .rpc-fill { border: 1px dashed var(--line); background: var(--paper, var(--card)); color: var(--ink); border-radius: 8px; padding: 6px 8px; cursor: pointer; }
.rpc-docs { margin-top: 12px; }
.rpc-docs ul { margin: 6px 0; padding-left: 18px; }
.bulk-job-panel { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 16px; margin: 0 0 20px; }
.bulk-job-panel table { width: 100%; }
.bulk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.bulk-compare article { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--paper, var(--card)); }
@media (max-width: 700px) { .bulk-compare { grid-template-columns: 1fr; } }


/* Previously contacted banner + primary contacts + story tabs */
.contacted-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid var(--accent);
  border-left-width: 4px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  color: var(--ink);
}
.contacted-banner p { margin: 0; }
.contacted-banner ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contacted-banner li { margin: 0; color: var(--muted); }
.primary-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 4px;
}
.pc-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  max-width: 100%;
}
.pc-open {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-open:hover { color: var(--accent); text-decoration: underline; }
.pc-copy {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
}
.pc-copy:hover, .pc-copy.is-copied { background: var(--hover-bg, var(--paper)); color: var(--accent); }
.profile-brief { margin: 12px 0 8px; max-width: 52rem; }
.brief-short {
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}
.brief-toggle { padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; font-weight: 600; }
.brief-toggle:hover { text-decoration: underline; }
.brief-more { margin-top: 10px; }
.story-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 10px; }
.story-tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
}
.story-tab.is-on, .story-tab[aria-selected="true"] {
  background: var(--accent);
  color: var(--tab-ink-on, #fff);
  border-color: var(--accent);
}
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.story-list li { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.story-list .note-meta { margin: 0 0 2px; color: var(--muted); font-size: 13px; }
.profile-facts { margin: 0 0 16px; }
.resume-profile-card .brief-short { max-width: 100%; }
.resume-profile-card .rpc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.resume-profile-card .rpc-docs .drop-zone { margin-top: 8px; padding: 12px; }
.resume-profile-card .rpc-edit { display: grid; gap: 8px; margin: 10px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper, var(--card)); }
.resume-profile-card .rpc-edit label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.resume-profile-card .rpc-edit input {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--input, var(--paper)); color: var(--ink);
}
.complete-meter b { font-variant-numeric: tabular-nums; }


/* Never let the document scroll sideways. Only .pipe-row-scroll pans. */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
.has-shell, .shell-main, .has-shell .page, main {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.has-shell { width: 100%; overflow-x: hidden; }
.shell-main { overflow-x: visible; overflow-y: visible; }
.has-shell .page { overflow-x: hidden; }
.has-shell .topbar { overflow: visible; z-index: 40; }
.user-menu-list { z-index: 80; }

/* Pipeline row: own horizontal scroll + zoom; page stays vertical */
.has-shell .page:has(.pipe-row) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  padding-left: 24px;
  padding-right: 24px;
}
.has-shell:has(.pipe-row) .shell-main,
.has-shell:has(.pipe-row) {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.pipe-tabs { align-items: center; }
.pipe-tab-new {
  margin-left: 8px;
  border: 1px dashed var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.pipe-tab-new:hover { border-color: var(--accent); color: var(--accent); }
.pipe-row, .pipe-top, .pipe-hscroll {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.pipe-row { margin: 0 0 28px; }
.pipe-row-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 0 8px;
}
.pipe-row-head > div { min-width: 0; flex: 1 1 auto; }
.pipe-row-head h2 { margin: 0; font-size: 1.15rem; color: var(--heading, var(--ink)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pipe-job-link { margin: 4px 0 0; }
.pipe-zoom {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 100%;
}
.pipe-zoom button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  font: inherit;
  min-width: 2rem;
}
.pipe-zoom button:hover { border-color: var(--accent); color: var(--accent); }
.pipe-zoom [data-zoom-label] {
  min-width: 3.2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}
.pipe-row-scroll {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding-bottom: 4px;
  cursor: grab;
  scrollbar-width: none;
  touch-action: pan-x;
}
.pipe-row-scroll::-webkit-scrollbar { display: none; }
.pipe-row-scroll.is-panning { cursor: grabbing; }
.pipe-hscroll {
  display: block;
  height: 14px;
  margin: 6px 0 4px;
  padding: 3px 0;
}
.pipe-hscroll-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ZLK-Navy, #171D2F) 12%, var(--line, #e3e7ee));
  cursor: pointer;
}
[data-theme="dark"] .pipe-hscroll-track,
html[data-theme="dark"] .pipe-hscroll-track {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 18%, #1b2233);
}
.pipe-hscroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 8px;
  min-width: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--ZLK-Green, #3F9F7F);
  cursor: grab;
}
.pipe-hscroll-thumb:active { cursor: grabbing; }
.pipe-hscroll.is-idle .pipe-hscroll-thumb { opacity: 0.55; }
.pipe-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 16px;
}
.pipe-top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pipe-switch { min-width: 0; flex: 1 1 auto; max-width: 360px; font: inherit; }
.pipe-jumps { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pipe-jump {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none !important;
  font-size: 13px;
}
.pipe-jump.is-on { background: var(--ZLK-Green, #3F9F7F); color: #fff; border-color: var(--ZLK-Green, #3F9F7F); }
.person-row.is-today-alert, .is-today-focus .is-today-alert, section.is-today-focus {
  outline: 2px solid var(--ZLK-Green, #3F9F7F);
  outline-offset: 3px;
  border-radius: 12px;
}
section.is-today-focus { outline-offset: 6px; padding: 8px; }
.pipe-row .board {
  overflow: visible;
  width: max-content;
  min-width: max-content;
  min-height: 280px;
  zoom: var(--pipe-zoom, 1);
}
.pipe-row.is-compact .task-sub,
.pipe-row.is-compact .task-pills,
.pipe-row.is-compact .task-fit-mini,
.pipe-row.is-compact .task-rank { display: none; }
.pipe-row.is-compact .task-card { padding: 8px; }
.task-not-fit {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 2px 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.task-not-fit:hover { color: #b42318; border-color: #b42318; background: #fdecea; }
html[data-theme="dark"] .task-not-fit:hover { background: color-mix(in srgb, #b42318 25%, var(--card)); }
.task-fit-mini { margin: 0 0 8px; font-size: 12px; line-height: 1.35; }
.stage-add-pop {
  position: absolute;
  z-index: 40;
  min-width: 240px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-hover, var(--shadow));
}
.stage-add-pop p { margin: 0 0 8px; font-weight: 600; }
.col-rename { width: 100%; font: inherit; font-weight: 600; }


/* Candidates filters + bulk delete */
.people-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.filter-chips .chip { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.filter-chips .chip:hover { text-decoration: none; border-color: var(--accent); }
.filters-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 14px 16px;
  margin: 0 0 16px;
}
.filter-builder { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.filter-builder label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.save-view-form { margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.saved-views { margin: 10px 0 0; }
.saved-views form { display: inline; }
.col-head-label { display: inline-flex; align-items: center; gap: 4px; }
.col-filter-btn {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: 0 4px; font-size: 12px; line-height: 1;
}
.col-filter-btn:hover { color: var(--accent); }
button.danger, .danger { color: #b42318; }
button.danger:hover { background: #fdecea; }
#undo-delete { position: sticky; bottom: 16px; }

/* --- 1.2.0 scheduling, notify picker, found online, resumes attach --- */
.notify-user-list { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; max-height: 160px; overflow: auto; border: 1px solid var(--border, #e3e7ee); border-radius: 10px; padding: 8px 10px; }
.schedule-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.schedule-item { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; border: 1px solid var(--border, #e3e7ee); border-radius: 12px; padding: 10px 12px; }
.schedule-log-legacy { margin-top: 16px; }
.schedule-log-legacy summary { cursor: pointer; color: var(--muted, #5b6573); }
.found-online .finding-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.finding-item { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border: 1px solid var(--border, #e3e7ee); border-radius: 12px; padding: 12px; }
.finding-item.conf-high { border-color: color-mix(in srgb, var(--accent, #3F9F7F) 45%, var(--border, #e3e7ee)); }
.finding-item.conf-low { opacity: 0.92; }
.finding-snippet { margin: 6px 0; color: var(--text, inherit); }
.finding-case { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; margin-top: 6px; }
.resume-attach-wrap { margin: 0 0 16px; }
.resume-attach-wrap summary { cursor: pointer; color: var(--muted, #5b6573); margin-bottom: 8px; }
.resume-attach-form input[type="file"][hidden] { display: none; }
.people-filters input, .people-filters select, .people-filters button { min-height: 36px; }


/* ===== Profile page (Asana-like) ===== */
.profile-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
  max-width: none;
  width: 100%;
}
.profile-main { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.profile-rail { min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 12px; }
.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow, 0 1px 2px rgba(23, 29, 47, 0.06));
}
.profile-hero { padding: 16px 18px 14px; }
.profile-hero h1 { margin: 0 0 4px; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--ZLK-Blue, var(--ink)); }
.profile-hero .kicker { margin: 0 0 4px; }
.profile-hero .sub { margin: 0 0 8px; color: var(--muted); }
.profile-hero .contacted-banner { margin: 0 0 12px; }
.profile-hero .quick-links { margin: 8px 0 0; }
.profile-glance h2,
.insight-card h2,
.profile-card > h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.glance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.glance-cell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  min-height: 56px;
}
.glance-label { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.glance-value { font-weight: 600; color: var(--ink); }
.glance-badge {
  display: inline-flex;
  align-items: center;
  background: color-mix(in srgb, var(--ZLK-Green, var(--accent)) 16%, var(--card));
  color: var(--good, var(--ZLK-Green));
  border: 1px solid color-mix(in srgb, var(--ZLK-Green, var(--accent)) 40%, var(--line));
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
}
.glance-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  font-weight: 600;
}
.glance-add:hover { border-color: var(--ZLK-Green, var(--accent)); color: var(--ZLK-Green, var(--accent)); background: color-mix(in srgb, var(--ZLK-Green, var(--accent)) 8%, var(--card)); }
.profile-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.seg-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.seg-tab:hover { color: var(--ink); text-decoration: none; }
.seg-tab.is-on, .seg-tab[aria-selected="true"] {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow, 0 1px 2px rgba(23, 29, 47, 0.08));
}
.summary-lede { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.summary-meta { margin: 8px 0 0; }
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.insight-body { margin: 0; color: var(--ink); line-height: 1.45; }
.due-chip {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--Nicole-Yellow, #F0AC32) 20%, var(--card));
  color: var(--warn, #8a5a10);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  vertical-align: middle;
}
.opener-text { margin: 0 0 10px; }
.profile-pipe-card .pills { margin-top: 10px; }
.profile-more { margin-top: 8px; }
.profile-more > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 0;
}
.profile-tab { display: flex; flex-direction: column; gap: 16px; }
html[data-theme="dark"] .glance-cell,
html[data-theme="dark"] .profile-card { background: var(--card); }
html[data-theme="dark"] .profile-seg { background: color-mix(in srgb, var(--card) 70%, #000); }
@media (max-width: 960px) {
  .profile-page { grid-template-columns: 1fr; }
  .profile-rail { position: static; }
  .glance-grid, .insight-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .glance-grid, .insight-grid { grid-template-columns: 1fr; }
}


/* --- 1.2.4.1 hotfix: tabs, zoom, drag, sort/filter, quick edit --- */
.profile-tab[hidden] { display: none !important; }
.pipe-zoom { position: relative; z-index: 6; flex-shrink: 0; }
.pipe-zoom [data-zoom-label] {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 3.2rem;
}
.pipe-zoom [data-zoom-label]:hover { border-color: var(--accent); color: var(--accent); }
.pipe-row { padding-bottom: 28px; }
.pipe-row .board .col { min-width: 280px; flex: 0 0 280px; }
.pipe-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  min-width: 0;
  position: relative;
}
.pipe-tools label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--muted); }
.pipe-tools select, .pipe-tools input {
  font: inherit;
  font-size: 13px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 4px 8px;
}
.pipe-filter-pop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(23, 29, 47, 0.16);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  min-width: min(420px, 90vw);
}
.pipe-filter-pop[hidden] { display: none !important; }
.pipe-filter-pop label { flex-direction: column; align-items: stretch; color: var(--ink); }
.pipe-filter-pop .row-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.pipe-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pipe-chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 2px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pipe-chip:hover { border-color: var(--accent); color: var(--accent); }
.task-card { touch-action: none; }
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 8px;
  font-size: 12px;
}
.task-quick {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  text-decoration: underline dotted transparent;
}
.task-quick:hover, .task-quick:focus { color: var(--accent); text-decoration-color: var(--accent); }
.task-quick.is-empty { font-style: italic; opacity: 0.8; text-decoration: underline dotted currentColor; }
.quick-edit-pop {
  position: fixed;
  z-index: 90;
  width: min(280px, calc(100vw - 16px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(23, 29, 47, 0.18);
  padding: 12px 14px;
}
.quick-edit-pop[hidden] { display: none !important; }
.quick-edit-pop label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; margin-bottom: 8px; }
.quick-edit-pop input {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--bg, var(--card));
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
}
body.is-board-dragging { touch-action: none; }
body.is-board-dragging .pipe-row-scroll { cursor: grabbing; }
.board .col.is-drop-target,
.board .col.drag-over {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 16%, var(--board-col, var(--card)));
  outline: 2px solid var(--ZLK-Green, #3F9F7F);
  outline-offset: -2px;
}
.has-shell .foot, .assist-fab { z-index: 4; }

/* Resume database (1.2.4.2) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rdb-search {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 16px;
}
.rdb-search-box { flex: 1 1 28rem; min-width: 0; }
.rdb-search-box input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.rdb-search-box input[type="search"]:focus {
  outline: 2px solid var(--ZLK-Green, var(--accent));
  outline-offset: 1px;
  border-color: var(--ZLK-Green, var(--accent));
}
.rdb-applied, .rdb-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rdb-applied { margin: 0 0 14px; }
.rdb-facets { display: grid; gap: 12px; margin: 0 0 22px; }
.rdb-facet-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.rdb-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 99px;
  background: var(--paper, var(--card));
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  padding: 5px 11px;
  line-height: 1.2;
}
.rdb-chip:hover { border-color: var(--ZLK-Green, var(--accent)); }
.rdb-chip.on {
  background: color-mix(in srgb, var(--ZLK-Green, var(--accent)) 16%, var(--card));
  border-color: var(--ZLK-Green, var(--accent));
  color: var(--ink);
  font-weight: 600;
}
.rdb-result-meta { color: var(--muted); margin: 8px 0 12px; }
.rdb-cards { display: grid; gap: 14px; }
.rdb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent);
}
.rdb-card-head { display: flex; gap: 12px; align-items: flex-start; }
.rdb-avatar {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--ZLK-Navy, #1b2a4a) 16%, var(--card));
  color: var(--ZLK-Navy, #1b2a4a);
  font-weight: 700;
  font-size: 13px;
}
html[data-theme="dark"] .rdb-avatar,
body.dark .rdb-avatar {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 22%, var(--card));
  color: var(--ink);
}
.rdb-card-id { flex: 1 1 auto; min-width: 0; }
.rdb-name {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.rdb-name:hover { color: var(--ZLK-Green, var(--accent)); }
.rdb-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.rdb-score {
  margin-left: auto;
  min-width: 2.4rem;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 6px 10px;
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 16%, var(--card));
  color: var(--ink);
}
.rdb-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}
.rdb-facts li + li::before {
  content: "·";
  margin-right: 10px;
  color: var(--line-strong, var(--line));
}
.rdb-snip {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.rdb-snip mark {
  background: color-mix(in srgb, var(--ZLK-Gold, #c9a227) 42%, transparent);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}
.rdb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.rdb-uploaded { margin-left: auto; font-size: 12px; }
.rdb-empty {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}
.rdb-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 22px 0 8px;
}
@media (prefers-reduced-motion: reduce) {
  .rdb-chip, .rdb-card, .rdb-name { transition: none; }
}

.rdb-filter-wrap { position: relative; flex: 0 0 auto; }
.rdb-filters-btn { white-space: nowrap; }
.rdb-filter-count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--ZLK-Green, var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
}
.rdb-filters-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(36rem, calc(100vw - 32px));
  max-height: min(70vh, 36rem);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px color-mix(in srgb, var(--ink) 16%, transparent);
  padding: 12px 14px 14px;
}
.rdb-filters-pop[hidden] { display: none !important; }
.rdb-filters-pop-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.rdb-filters-pop-head strong {
  font-family: var(--serif, inherit);
  font-size: 16px;
}
.rdb-preset-label { margin-left: auto; font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.rdb-filters-body { display: grid; gap: 12px; }
.rdb-filters-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.rdb-customize, .rdb-admin { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.rdb-field-list { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rdb-field-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper, var(--card));
  cursor: grab;
}
.rdb-field-item.is-dragging { opacity: 0.5; }
.rdb-field-grip { color: var(--muted); letter-spacing: -2px; }
.rdb-customize-actions, .rdb-admin-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0; }
.rdb-admin-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.rdb-admin-form input, .rdb-admin-form select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); min-width: 12rem; }
@media (max-width: 640px) {
  .rdb-filters-pop { left: 0; right: auto; width: min(100vw - 24px, 36rem); }
}

/* Auto-update toast: silent apply, no refresh prompt */
.ats-updated-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: min(280px, calc(100vw - 32px));
  padding: 8px 12px;
  background: var(--ZLK-Navy, #26366B);
  color: #F8FAFD;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(23, 29, 47, 0.22);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  pointer-events: none;
  opacity: 1;
  transition: opacity .3s ease;
}
.ats-updated-toast.out { opacity: 0; }

/* Soft refresh banner (1.2.4.7) */
.ats-refresh-banner {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  max-width: min(720px, calc(100% - 24px));
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--ZLK-Navy, #26366B);
  color: #F8FAFD;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 29, 47, 0.28);
  font-size: 14px;
  line-height: 1.4;
}
.ats-refresh-banner[hidden] { display: none !important; }
.ats-refresh-banner-text { flex: 1 1 220px; }
.ats-refresh-banner-actions { display: flex; gap: 8px; }
.ats-refresh-banner-go,
.ats-refresh-banner-later {
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font: inherit;
}
.ats-refresh-banner-go { background: #3F9F7F; color: #fff; }
.ats-refresh-banner-go:hover { background: #26614d; }
.ats-refresh-banner-later { background: transparent; color: #F8FAFD; border: 1px solid rgba(255,255,255,0.35); }


/* --- 1.2.4.14 Today desk, matching profile cards --- */
.today-page { max-width: 1120px; display: flex; flex-direction: column; gap: 16px; }
.today-head { margin-bottom: 0; align-items: flex-end; }
.today-head h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.03em; color: var(--ZLK-Blue, var(--ink)); }
.today-date { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.today-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.today-connect { display: flex; flex-wrap: wrap; gap: 8px; }
.today-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
a.today-kpi {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 12px;
  min-height: 108px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.today-kpi:hover {
  border-color: var(--ZLK-Green, var(--accent));
  box-shadow: var(--shadow, 0 2px 8px rgba(23, 29, 47, 0.08));
  text-decoration: none;
}
.today-kpi b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ZLK-Blue, var(--ink));
}
.today-kpi span { color: var(--muted); font-size: 12px; letter-spacing: 0.02em; font-weight: 650; }
.today-spark { display: block; margin-top: auto; color: var(--ZLK-Green, var(--accent)); fill: currentColor; opacity: 0.85; }
.today-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
.today-card { padding: 16px 18px; }
.today-card > h2,
.today-card-head h2 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.today-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.today-card-head h2 { margin: 0; }
.today-card-wide { grid-column: 1 / -1; }
.today-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 0 7px;
  height: 1.4em;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ZLK-Green, var(--accent)) 16%, var(--card));
  color: var(--good, var(--ZLK-Green));
  border: 1px solid color-mix(in srgb, var(--ZLK-Green, var(--accent)) 40%, var(--line));
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}
.today-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.today-card .today-row:first-of-type { border-top: 0; }
.today-row .avatar {
  flex: 0 0 32px;
  background: color-mix(in srgb, var(--ZLK-Blue, var(--ink)) 10%, var(--paper));
  color: var(--ZLK-Blue, var(--ink));
}
.today-row-body { flex: 1; min-width: 0; }
.today-row .name { font-weight: 650; color: var(--ink); text-decoration: none; }
.today-row .name:hover { color: var(--ZLK-Green, var(--accent)); }
.today-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.today-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.today-chip-overdue {
  background: color-mix(in srgb, #c4473a 16%, var(--card));
  border-color: color-mix(in srgb, #c4473a 40%, var(--line));
  color: #a13328;
}
.today-chip-today, .today-chip-feedback {
  background: color-mix(in srgb, var(--Nicole-Yellow, #F0AC32) 20%, var(--card));
  border-color: color-mix(in srgb, var(--Nicole-Yellow, #F0AC32) 40%, var(--line));
  color: var(--warn, #8a5a10);
}
.today-chip-mismatch {
  background: color-mix(in srgb, #c4473a 14%, var(--card));
  border-color: color-mix(in srgb, #c4473a 35%, var(--line));
  color: #a13328;
}
.today-empty { margin: 0; color: var(--muted); font-size: 13px; padding: 8px 0 2px; }
a.today-link-row { text-decoration: none; color: inherit; }
.today-page .get-started {
  border: 0;
  box-shadow: none;
  padding: 0 0 12px;
  margin: 0 0 8px;
  background: transparent;
}
.today-page .get-started .muted,
.today-page .checklist .muted { display: none; }
.today-page .draft-panel > p.muted,
.today-page .suggest-panel .muted { display: none; }
.today-page .suggest-panel, .today-page .draft-panel {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.today-more {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 0 18px;
}
.today-more > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 13px;
  padding: 14px 0;
  color: var(--ink);
}
.today-more .stack { padding-bottom: 16px; }
.today-extra { }
html[data-theme="dark"] .today-kpi b,
html[data-theme="dark"] .today-head h1 { color: var(--ink); }
html[data-theme="dark"] .today-chip-overdue,
html[data-theme="dark"] .today-chip-mismatch { color: #f0b0a8; }
html[data-theme="dark"] .today-chip-today,
html[data-theme="dark"] .today-chip-feedback { color: #f0d08a; }
html[data-theme="dark"] .today-row .avatar {
  background: color-mix(in srgb, var(--ZLK-Green, var(--accent)) 18%, var(--card));
  color: var(--ink);
}
@media (max-width: 960px) {
  .today-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-grid { grid-template-columns: 1fr; }
  .today-card-wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .today-kpis { grid-template-columns: 1fr 1fr; }
  .today-row { flex-wrap: wrap; }
  .today-row .row-actions { width: 100%; justify-content: flex-end; }
}

/* 1.2.4.16 — profile columns scroll on their own; pipeline remove X + modal */
html[data-app="ats"] body.is-profile .shell-main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.is-profile .shell-main > .page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body.is-profile .profile-page {
  flex: 1 1 auto;
  min-height: 0;
  align-items: stretch;
  height: 100%;
}
body.is-profile .profile-main,
body.is-profile .profile-rail {
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
}
body.is-profile .profile-rail {
  position: sticky;
  top: 0;
  align-self: stretch;
}
@media (max-width: 960px) {
  html[data-app="ats"] body.is-profile .shell-main { overflow-y: auto; }
  body.is-profile .shell-main > .page { overflow: visible; height: auto; }
  body.is-profile .profile-page { height: auto; overflow: visible; }
  body.is-profile .profile-main,
  body.is-profile .profile-rail { overflow: visible; max-height: none; }
  body.is-profile .profile-rail { position: static; }
}

.task-card-remove,
.task-not-fit {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.task-card-remove:hover,
.task-not-fit:hover {
  color: #b42318;
  border-color: #b42318;
  background: #fdecea;
}
html[data-theme="dark"] .task-card-remove:hover,
html[data-theme="dark"] .task-not-fit:hover {
  background: color-mix(in srgb, #b42318 25%, var(--card));
}
.remove-modal-card { max-width: 560px; width: min(560px, 100%); }
.remove-modal-card .remove-kind-row {
  display: flex;
  gap: 16px;
  margin: 8px 0 12px;
}
.remove-modal-card .remove-kind-row label { display: flex; gap: 6px; align-items: center; }
.remove-modal-card .reason-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.remove-modal-card .reason-chips .pill.on { background: var(--ZLK-Navy); color: #fff; }
.remove-modal-card .remove-tpl,
.remove-modal-card label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.remove-modal-card textarea { min-height: 180px; resize: vertical; }
#remove-ai-status { margin: 0 0 8px; }
.remove-modal-card .remove-reason { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; }
.remove-modal-card .remove-reason select { max-width: 100%; }
.remove-modal-card label.remove-send-row,
.remove-modal-card .remove-send-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  overflow: visible;
  position: static;
  align-self: stretch;
}
.remove-modal-card .remove-send-row input[type="checkbox"] {
  margin: 0;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none;
  align-self: center;
}
.remove-modal-card .remove-send-row span {
  flex: 1 0 auto;
  width: auto !important;
  min-width: 0;
  white-space: nowrap;
}
.remove-modal-card #remove-email-fields[hidden] { display: none !important; }
.remove-modal-card { min-height: 0; }
.remove-modal-card #remove-no-email { margin: 0 0 10px; color: #8a2f28; }
.remove-modal-card #remove-email-fields { min-width: 0; }
.remove-modal-card #remove-send-hint { margin: 0 0 12px; }

/* 1.2.4.17 — status picker, grouped search, briefing editor */
.status-picker { position: relative; display: inline-flex; vertical-align: middle; }
.status-picker-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 2px 8px 2px 6px; min-height: 28px; cursor: pointer;
  font: inherit; font-size: 13px;
}
.status-picker-btn:hover, .status-picker-btn[aria-expanded="true"] { border-color: var(--ZLK-NavyLine, #4A5A86); }
.status-emoji { font-size: 16px; line-height: 1; }
.status-picker-menu {
  position: absolute; z-index: 80; top: calc(100% + 4px); left: 0;
  min-width: 200px; max-height: 260px; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 4px;
}
.status-picker-menu button {
  display: flex; width: 100%; text-align: left; gap: 8px; align-items: center;
  border: 0; background: transparent; color: var(--ink); padding: 6px 8px;
  border-radius: 6px; cursor: pointer; font: inherit;
}
.status-picker-menu button:hover, .status-picker-menu button[aria-selected="true"] { background: var(--hover-bg, #eef2f8); }
.task-top-actions .status-picker { margin-right: 4px; }
.task-top-actions .status-label { display: none; }
.search-hits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.search-hit, .search-hit-body { display: flex; gap: 10px; align-items: center; }
.search-hit-body { flex: 1; flex-direction: column; align-items: flex-start; gap: 2px; }
.search-group h2 { display: flex; gap: 8px; align-items: baseline; }
.today-search-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0 0 20px; }
.brief-round { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--card); }
.rev-results { border: 1px solid var(--line); border-radius: 8px; background: var(--card); max-height: 220px; overflow: auto; margin: 4px 0 8px; }
.rev-hit { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 8px 10px; cursor: pointer; font: inherit; }
.rev-hit:hover { background: var(--hover-bg, #eef2f8); }
.rev-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.brief-chip { cursor: pointer; }
.brief-sections { display: flex; flex-wrap: wrap; gap: 12px; border: 0; padding: 0; }
.brief-questions .q-item { display: flex; gap: 6px; align-items: center; margin: 6px 0; }
.brief-questions .q-text { flex: 1; }


/* 1.2.4.18 — pipeline At a glance, Sent InMail, outreach flags */
.task-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.pill.sent-inmail { background: #E8F4F0; color: #1F6B55; border: 1px solid #B7D9CE; }
html[data-theme="dark"] .pill.sent-inmail { background: #1F3A34; color: #BFE6D8; border-color: #3F9F7F; }
.task-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 8px 0;
}
.task-glance-item { margin: 0; }
.task-glance-item dt { font-size: 11px; color: var(--muted); font-weight: 600; }
.task-glance-item dd { margin: 0; font-size: 13px; }
.task-glance-item.is-missing dd { color: var(--muted); }
.pipe-filter-pop label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* 1.2.4.19 — slim footer, even pipeline cards, database cards, compact resumes */
.foot,
.has-shell .foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 16px;
  min-height: 28px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  border-top: 1px solid var(--line);
  text-align: center;
}
.foot-logo { height: 14px; width: auto; display: block; }
.foot-logo-dark { display: none; }
html[data-theme="dark"] .foot-logo-light { display: none; }
html[data-theme="dark"] .foot-logo-dark { display: block; }
.foot-text { white-space: nowrap; }
.foot .ver, .has-shell .foot .ver {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  font-size: 11px;
}
.has-shell .foot .ver:hover, .foot .ver:hover { color: var(--ZLK-Green, #3F9F7F); border-bottom-style: solid; }
body.login-page { display: flex; flex-direction: column; min-height: 100vh; }
body.login-page .foot { margin-top: auto; }
/* Footer clearance lives in teams-bubble.css so the bar stays slim. */

.task-card {
  display: flex;
  flex-direction: column;
  height: 164px;
  min-height: 164px;
  max-height: 164px;
  overflow: hidden;
  padding: 10px 10px 8px;
  cursor: pointer;
}
.pipe-row.is-compact .task-card { height: 164px; min-height: 164px; max-height: 164px; padding: 10px 10px 8px; }
.task-top { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.task-title, a.task-title {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.3;
}
.task-top-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.task-sub {
  margin: 2px 0 4px;
  min-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-brief-line {
  margin: 0 0 6px;
  font-size: 12px;
  line-height: 1.35;
  height: calc(1.35em * 2);
  max-height: calc(1.35em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--ink);
}
.task-meta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin: auto 0 4px;
  min-height: 22px;
  overflow: hidden;
}
.task-chip, .task-meta-row .pill {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.2;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--paper, var(--card));
  color: var(--ink);
}
.task-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 18%, var(--card));
  white-space: nowrap;
}
.task-score-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.task-foot { margin-top: 0; min-height: 20px; }
.task-card .status-picker-btn { padding: 1px 6px; font-size: 11px; }

.rdb-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 10px; }
.rdb-view { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rdb-view-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 5px 10px;
  cursor: pointer;
}
.rdb-view-btn.on { background: var(--ZLK-Navy, #26366B); color: #fff; }
html[data-theme="dark"] .rdb-view-btn.on { background: var(--ZLK-Green, #3F9F7F); color: #fff; }
.rdb-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rdb-cards.is-list { grid-template-columns: 1fr; }
.rdb-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rdb-card:hover { border-color: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 45%, var(--line)); }
.rdb-card-top { display: flex; gap: 10px; align-items: flex-start; }
.rdb-avatar {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 16%, var(--card));
  color: var(--ZLK-Navy, #26366B);
  font-weight: 700; font-size: 12px;
}
html[data-theme="dark"] .rdb-avatar {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 22%, var(--card));
  color: var(--ink);
}
.rdb-card-id { flex: 1 1 auto; min-width: 0; }
.rdb-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rdb-name { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdb-name:hover { color: var(--ZLK-Green, var(--accent)); }
.rdb-sub { margin: 2px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.rdb-scoreband {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: 4px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 16%, var(--card));
  min-width: 4.6rem;
}
.rdb-scoreband.mid { background: color-mix(in srgb, #c9a227 22%, var(--card)); }
.rdb-scoreband.low { background: color-mix(in srgb, #b4554a 18%, var(--card)); }
.rdb-score-label { font-size: 9px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.rdb-score-num { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.1; }
.rdb-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.rdb-chips li {
  font-size: 11px; line-height: 1.2; padding: 3px 8px; border-radius: 99px;
  border: 1px solid var(--line); color: var(--ink); background: var(--paper, var(--card));
  max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rdb-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rdb-summary mark { background: color-mix(in srgb, var(--ZLK-Gold, #c9a227) 42%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }
.rdb-card-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.rdb-meta { color: var(--muted); font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.rdb-ghosts { display: flex; gap: 2px; margin-left: auto; }
.rdb-ghost {
  display: inline-flex; align-items: center;
  border: 0; background: transparent; color: var(--muted);
  font-size: 12px; padding: 3px 6px; border-radius: 6px; text-decoration: none;
}
.rdb-ghost:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, var(--card)); }
.rdb-card .rdb-check { flex: 0 0 auto; margin-top: 8px; }
.rdb-bulk { margin: 0 0 14px; }
.rdb-empty { border: 1px dashed var(--line); border-radius: 12px; padding: 24px 16px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

.has-shell .page:has(.people-page.resumes) {
  max-width: none;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}
.people-page.resumes { width: 100%; max-width: none; }
.people-page.resumes .people-table { table-layout: auto; width: 100%; border-collapse: collapse; }
.people-page.resumes .people-table th,
.people-page.resumes .people-table td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  vertical-align: middle;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  max-width: none;
  word-break: break-word;
}
.people-page.resumes .people-table .col-actions {
  white-space: nowrap;
  width: 1%;
}
.people-page.resumes .people-table .col-actions a { margin-right: 8px; }
.people-page.resumes .people-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 6px 8px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line);
  white-space: nowrap;
}
.people-page.resumes .people-table .col-person { width: auto; }
.people-page.resumes .people-table .col-role { width: auto; }
.people-page.resumes .people-table .col-file { width: auto; }
.people-page.resumes .people-table .person-sub { margin-top: 0; max-width: none; }
.people-page.resumes .people-table .person-id { gap: 8px; }
.people-page.resumes .people-table .avatar { flex-basis: 24px; width: 24px; height: 24px; font-size: 10px; }
.people-page.resumes .complete-meter { display: inline-block; max-width: 100%; }
.people-page.resumes .people-table .person-name { font-weight: 650; color: var(--ZLK-Blue, var(--ink)); }
@media (max-width: 900px) {
  .people-page.resumes .people-filters { flex-wrap: wrap; }
}

.rdb-card { position: relative; padding-left: 34px; }
.rdb-card .rdb-check { position: absolute; top: 12px; left: 10px; margin: 0; }
.rdb-select-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); white-space: nowrap; }

/* 1.2.4.20 — roomier Database / pipeline, pager, Today layout */
.has-shell .page:has(.today-page) {
  max-width: 1600px;
  width: 100%;
}
.today-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: none;
  width: 100%;
}
.today-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}
a.today-kpi { min-height: 116px; padding: 16px 18px 14px; }
.today-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  flex: 1 1 auto;
}
.today-main, .today-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.today-card {
  padding: 12px 14px;
  min-height: 0;
  box-sizing: border-box;
  margin: 0;
}
.today-empty, .today-empty-state, .today-empty-state .today-empty {
  margin: 0;
  padding: 2px 0;
  border: 0;
  background: none;
  min-height: 0;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}
.today-fu-summary { margin: 0 0 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.today-fu-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.today-fu-filters button {
  height: 28px; padding: 0 10px; font-size: 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper, var(--card)); color: var(--ink); cursor: pointer;
}
.today-fu-filters button.is-on {
  background: var(--ZLK-Blue, #26366B); color: #fff; border-color: var(--ZLK-Blue, #26366B);
}
.today-fu-wrap { width: 100%; max-width: 100%; overflow-x: auto; }
.today-fu-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.today-fu-table th:nth-child(1), .today-fu-table td:nth-child(1) { width: 14%; }
.today-fu-table th:nth-child(2), .today-fu-table td:nth-child(2) { width: 13%; }
.today-fu-table th:nth-child(3), .today-fu-table td:nth-child(3) { width: 13%; }
.today-fu-table th:nth-child(4), .today-fu-table td:nth-child(4) { width: 8%; }
.today-fu-table th:nth-child(5), .today-fu-table td:nth-child(5) { width: 5%; }
.today-fu-table th:nth-child(6), .today-fu-table td:nth-child(6) { width: 12%; }
.today-fu-table th:nth-child(7), .today-fu-table td:nth-child(7) { width: 13%; }
.today-fu-table th:nth-child(8), .today-fu-table td:nth-child(8) { width: 9%; }
.today-fu-table th:nth-child(9), .today-fu-table td:nth-child(9) { width: 6%; }
.today-fu-table th:nth-child(10), .today-fu-table td:nth-child(10),
.today-fu-table .today-fu-actions {
  width: 68px;
  min-width: 68px;
  max-width: 68px;
  overflow: visible;
  white-space: nowrap;
  padding-left: 4px;
  padding-right: 4px;
}
.today-icon-btn { width: 24px; height: 24px; }
.today-fu-table th {
  text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--muted); padding: 6px 8px; white-space: nowrap;
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; background: var(--card);
}
.today-fu-table th[data-dir="asc"]::after { content: " \2191"; }
.today-fu-table th[data-dir="desc"]::after { content: " \2193"; }
.today-fu-table th:last-child { cursor: default; }
.today-fu-table td {
  padding: 0 6px; height: 44px; vertical-align: middle; border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.today-fu-table td.today-fu-actions { overflow: visible; text-overflow: clip; }
.today-fu-table tr { outline: none; background: transparent; }
.today-fu-clip, .today-fu-name-cell {
  max-width: 9.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.today-fu-name { font-weight: 650; color: var(--ink); text-decoration: none; }
.today-fu-name:hover { color: var(--ZLK-Green, var(--accent)); }
.today-fu-stage { max-width: 8.5rem; display: inline-block; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.today-fu-num { width: 3.2rem; color: var(--muted); }
.today-fu-role {
  color: var(--muted); font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.today-fu-actions { display: flex; align-items: center; gap: 4px; width: 1%; }
.today-fu-actions form { margin: 0; }
.today-icon-btn {
  width: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--paper, var(--card)); color: var(--ink);
  border-radius: 6px; cursor: pointer;
}
.today-icon-btn.primary, .today-fu-actions .today-icon-btn[title="Done"] {
  color: var(--ZLK-Green, #3F9F7F); border-color: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 45%, var(--line));
}
.today-fu-more {
  margin-top: 8px; height: 32px; padding: 0 12px; font-size: 12px;
  border: 1px solid var(--line); background: var(--paper, var(--card)); color: var(--ink);
  border-radius: 8px; cursor: pointer;
}
#today-followups, #today-followups .today-fu-row, #today-followups tr {
  outline: none !important; box-shadow: none;
}
.today-started-chip { position: relative; }
.today-started-chip > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink); font-size: 13px; font-weight: 650;
}
.today-started-chip > summary::-webkit-details-marker { display: none; }
.today-started-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20;
  width: min(360px, 80vw); padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow, 0 8px 24px rgba(23,29,47,.16));
}
.today-started-dismiss { margin-top: 8px; }
.today-side-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.today-side-row:last-child { border-bottom: 0; }
.today-side-row .avatar {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.today-side-row .today-row-body { flex: 1; min-width: 0; }
.today-side-row .today-row-body {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.today-side-row .name,
.today-side-row.person-row .name,
#today-attention .name {
  display: inline-block;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  flex: 0 0 auto;
  min-width: 0;

}
.today-side-row .today-fu-role {
  display: inline-block;
  flex: 1 1 0%;
  min-width: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-fu-join { height: 28px; padding: 0 8px; font-size: 12px; }

.today-below {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  align-items: start;
}
.today-below-wide { grid-column: 1 / -1; }
.today-below-card { padding: 10px 12px 8px; }
.today-below-card h2 { font-size: 13px; }
.today-mini {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.today-mini th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.today-mini td {
  padding: 5px 6px;
  height: 32px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.today-mini tr:last-child td { border-bottom: 0; }
.today-mini .today-fu-num { width: 3.2rem; text-align: right; font-variant-numeric: tabular-nums; }
.today-move { white-space: nowrap; font-variant-numeric: tabular-nums; }
.today-move-in { color: var(--ZLK-Green, #3F9F7F); font-weight: 650; margin-right: 6px; }
.today-move-out { color: var(--muted); }
.today-mini-list { list-style: none; margin: 0; padding: 0; }
.today-more-line { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.today-workload th[scope="row"] {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.today-workload thead th { text-align: right; }
.today-workload td { text-align: right; }
.today-workload .is-overdue { color: #b42318; font-weight: 700; }
@media (max-width: 800px) {
  .today-below { grid-template-columns: 1fr; }
  .today-below-wide { grid-column: auto; }
}

.today-page, .today-layout, .today-main, .today-side, .today-fu-wrap, .today-below {
  min-width: 0;
  max-width: 100%;
}
.today-sug-table td { height: 34px; }
.today-paste-pop { width: min(420px, 88vw); }
.today-paste-pop textarea { width: 100%; min-height: 7rem; font: 13px/1.4 var(--sans); }
.today-head-actions { flex-wrap: wrap; justify-content: flex-end; }
.today-fu-actions { gap: 2px; }
.today-fu-actions .today-icon-btn { flex: 0 0 24px; }

/* Responsive Today tables and layout */
@media (max-width: 1535px) {
  .today-fu-table .col-priority { display: none; }
}
@media (max-width: 1365px) {
  .today-fu-table .col-owner,
  .today-sug-table .col-owner { display: none; }
}
@media (max-width: 1279px) {
  .today-fu-table .col-days,
  .today-fu-table .col-activity,
  .today-sug-table .col-source,
  .today-sug-table .col-days { display: none; }
}
@media (max-width: 1100px) {
  .today-layout {
    grid-template-columns: 1fr;
  }
  .today-fu-table .col-role,
  .today-fu-table .col-next,
  .today-sug-table .col-role { display: none; }
  .today-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 900px) {
  .today-side { grid-template-columns: 1fr; }
  .today-below { grid-template-columns: 1fr; }
  .today-below-wide { grid-column: auto; }
  .today-kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1800px) {
  .today-below { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-below-wide { grid-column: 1 / -1; }
  .today-layout { grid-template-columns: minmax(300px, 1fr) minmax(0, 2.6fr); }
}


.today-started { padding: 8px 14px; }
.today-started > summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.today-started > summary::-webkit-details-marker { display: none; }
.today-started-dismiss { margin-top: 8px; }
#today-followups.today-card,
#today-followups .today-fu-row,
#today-followups .today-fu-row.is-overdue,
#today-followups .person-row {
  outline: none;
  box-shadow: none;
}
a.today-kpi { min-height: 88px; padding: 12px 14px 10px; }
@media (max-width: 1100px) {
  .today-layout { grid-template-columns: 1fr; }
  .today-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .today-kpis { grid-template-columns: 1fr 1fr; }
  .today-fu-row { height: auto; min-height: 44px; flex-wrap: wrap; padding: 6px 8px; }
  .today-fu-actions { width: 100%; justify-content: flex-end; }
}

/* Database cards: max 3 columns, full names, roomier */
.rdb-cards {
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .rdb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .rdb-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rdb-card {
  padding: 16px 18px 16px 40px;
  gap: 10px;
}
.rdb-cards.is-list { grid-template-columns: 1fr; }
.rdb-cards.is-list .rdb-card { padding: 16px 20px 16px 44px; }
.rdb-name {
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.rdb-name-row { display: block; }
.rdb-flags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.rdb-scoreband {
  margin-left: 0;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  min-width: 0;
  border-radius: 999px;
}
.rdb-score-label { font-size: 9px; }
.rdb-score-num { font-size: 13px; }
.rdb-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rdb-meta {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.35;
}

/* Pipeline: responsive column width, even heights, density */
.pipe-row {
  --pipe-col-w: clamp(260px, 22vw, 360px);
  --card-h: 210px;
}
.pipe-row.is-compact {
  --pipe-col-w: clamp(240px, 18vw, 300px);
  --card-h: 164px;
}
.pipe-row .board .col,
.pipe-row.is-compact .board .col {
  min-width: var(--pipe-col-w);
  flex-basis: var(--pipe-col-w);
  width: var(--pipe-col-w);
}
.task-card,
.pipe-row.is-compact .task-card {
  height: var(--card-h);
  min-height: var(--card-h);
  max-height: var(--card-h);
  padding: 12px 12px 10px;
}
.task-title, a.task-title {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  max-height: 2.6em;
}
.pipe-density {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-left: 8px;
}
.pipe-density button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 4px 10px;
  cursor: pointer;
}
.pipe-density button.on { background: var(--ZLK-Navy, #26366B); color: #fff; }
html[data-theme="dark"] .pipe-density button.on { background: var(--ZLK-Green, #3F9F7F); color: #fff; }

/* Pager */
.pager-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 16px 0 8px;
}
.pager-showing { margin: 0; color: var(--muted); font-size: 13px; }
.pager-size, .pager-jump { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pager-size select, .pager-jump input[type="number"] {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
}
.pager-jump input[type="number"] { width: 4.2rem; }
.pager-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
}
.pager-btn:hover { border-color: var(--ZLK-Green, var(--accent)); color: var(--ZLK-Green, var(--accent)); }
.pager-btn.is-current {
  background: var(--ZLK-Navy, #26366B);
  border-color: var(--ZLK-Navy, #26366B);
  color: #fff;
}
.pager-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.pager-gap { color: var(--muted); padding: 0 4px; }
html[data-theme="dark"] .pager-btn.is-current {
  background: var(--ZLK-Green, #3F9F7F);
  border-color: var(--ZLK-Green, #3F9F7F);
}

/* Pipeline card name is a real profile link; do not let drag chrome swallow it. */
a.task-title {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
  cursor: pointer;
  color: inherit;
}
.task-top-actions,
.task-card .status-picker,
.task-card-remove {
  position: relative;
  z-index: 3;
}


/* Footer and full-width workspace.
   One tiny named footer line at the bottom of the main column.
   Page content uses the full width minus padding. Never a side rail. */
html[data-app="ats"] .shell-main {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}
.has-shell .page,
.has-shell .page:has(.today-page),
.has-shell .page:has(.pipe-top),
.has-shell .page:has(.dash-page) {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-bottom: 16px;
}
.today-page,
.dash-page {
  max-width: none;
  width: 100%;
}
.foot,
.has-shell .foot,
body.login-page .foot {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 24px;
  max-height: 24px;
  min-height: 24px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  grid-column: 1 / -1;
  margin: 0;
  margin-top: auto;
  padding: 0 12px;
  position: static;
  inset: auto;
  float: none;
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper, var(--card));
  text-align: center;
  z-index: 5;
}
.foot-logo {
  height: 14px !important;
  width: auto;
  max-height: 14px;
  display: block;
}
/* Only one footer logo per theme (the rule above re-showed the dark one in light mode). */
.foot-logo.foot-logo-dark { display: none; }
html[data-theme="dark"] .foot-logo.foot-logo-light { display: none; }
html[data-theme="dark"] .foot-logo.foot-logo-dark { display: block; }
.foot-text,
.foot .ver,
.has-shell .foot .ver {
  font-size: 11px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}

/* Source / connection-type badges */
.source-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper, var(--card));
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.source-badge-asana { background: color-mix(in srgb, #f9a825 16%, var(--card)); border-color: color-mix(in srgb, #f9a825 40%, var(--line)); }
.source-badge-linkedin { background: color-mix(in srgb, #0a66c2 14%, var(--card)); border-color: color-mix(in srgb, #0a66c2 35%, var(--line)); }
.source-badge-application { background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 16%, var(--card)); border-color: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 40%, var(--line)); }
.source-badge-referral { background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 12%, var(--card)); border-color: color-mix(in srgb, var(--ZLK-Navy, #26366B) 30%, var(--line)); }
.source-badge-sourcing_run { background: color-mix(in srgb, #7c5cbf 14%, var(--card)); border-color: color-mix(in srgb, #7c5cbf 35%, var(--line)); }
.source-badge-email { background: color-mix(in srgb, #4e7a9a 14%, var(--card)); border-color: color-mix(in srgb, #4e7a9a 35%, var(--line)); }
.source-badge-manual, .source-badge-other { background: var(--paper, var(--card)); }
.source-badge-career_fair { background: color-mix(in srgb, #c48a2a 16%, var(--card)); border-color: color-mix(in srgb, #c48a2a 40%, var(--line)); }
.source-badge-outreach { background: color-mix(in srgb, #4e7a9a 14%, var(--card)); border-color: color-mix(in srgb, #4e7a9a 35%, var(--line)); }
.source-badge-unknown { opacity: 0.7; color: var(--muted); }
.task-card .source-badge { font-size: 10px; padding: 0 6px; }
.source-edit { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.source-edit select { font: inherit; font-size: 12px; }

/* Recruiting dashboard */
.dash-page { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.dash-head h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ZLK-Blue, var(--ink)); }
.dash-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.dash-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin: 0; font-weight: 650; }
.dash-filters select, .dash-filters input { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.dash-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.dash-kpi {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; text-decoration: none; color: inherit;
  min-height: 118px;
}
.dash-kpi:hover { border-color: var(--ZLK-Green, var(--accent)); }
.dash-kpi b { font-family: var(--serif); font-size: 28px; font-weight: 500; color: var(--ZLK-Blue, var(--ink)); line-height: 1.1; }
.dash-kpi-label { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0.01em; }
.dash-kpi-delta { font-size: 11px; font-weight: 650; color: var(--muted); }
.dash-kpi-delta.up { color: var(--ZLK-Green, #3F9F7F); }
.dash-kpi-delta.down { color: #b44a4a; }
.dash-kpi .today-spark { margin-top: auto; color: var(--ZLK-Green, var(--accent)); fill: currentColor; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash-span-2 { grid-column: span 2; }
.dash-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; min-height: 260px;
  display: flex; flex-direction: column;
  min-width: 0; overflow: hidden;
}
.dash-card h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.dash-chart { position: relative; flex: 1 1 auto; min-height: 220px; width: 100%; }
.dash-chart-wide { min-height: 240px; }
.dash-chart-tall { min-height: 280px; }
.dash-empty { margin: 24px 0; text-align: center; color: var(--muted); }

.dash-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.dash-card-head h2 { margin: 0; }
.dash-hbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; }
.dash-hbar { margin: 0; }
.dash-hbar.is-empty { opacity: 0.45; }
.dash-hbar-row {
  display: grid;
  grid-template-columns: minmax(9.5rem, 32%) minmax(4rem, 1fr) 3.25rem;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
a.dash-hbar-row:hover .dash-hbar-fill { filter: brightness(1.08); }
.dash-hbar-label {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  text-overflow: unset;
  hyphens: auto;
}
.dash-hbar-track {
  height: 16px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 8%, var(--paper, #eef1f6));
  overflow: hidden;
  min-width: 0;
}
.dash-hbar-fill {
  display: block;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ZLK-Navy, #26366B), var(--ZLK-Green, #3F9F7F));
}
.dash-hbar-n {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  color: var(--ink);
}
.dash-hbars-compact { gap: 5px; }
.dash-hbars-compact .dash-hbar-row { grid-template-columns: minmax(6.5rem, 28%) minmax(3rem, 1fr) 2.6rem; gap: 8px; }
.dash-hbars-compact .dash-hbar-label { font-weight: 550; font-size: 12px; }
.dash-hbars-compact .dash-hbar-track { height: 10px; }
.dash-recruiters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.dash-recruiter { margin: 0; min-width: 0; }
.dash-recruiter-who { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-recruiter-who strong { font-size: 14px; color: var(--ink); overflow: visible; white-space: normal; overflow-wrap: anywhere; }

.dash-interviews { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dash-interview {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 4px; border-radius: 10px;
  text-decoration: none; color: inherit;
}
.dash-interview:hover { background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 6%, var(--card)); }
.dash-avatar {
  flex: 0 0 auto;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ZLK-Navy, #26366B); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.dash-interview-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dash-interview-body strong { font-size: 14px; color: var(--ink); overflow: visible; overflow-wrap: anywhere; white-space: normal; text-overflow: unset; }
.dash-interview-body span { font-size: 12px; color: var(--muted); overflow: visible; overflow-wrap: anywhere; white-space: normal; text-overflow: unset; }

.dash-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 16px; align-items: start; }
.dash-top.is-solo { grid-template-columns: 1fr; }
.dash-top-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dash-card.is-compact { min-height: 0; }
.dash-span-3 { grid-column: 1 / -1; }
.dash-footnote { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.dash-muted { font-size: 12px; color: var(--muted); font-weight: 550; }
.dash-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.dash-seg-btn {
  display: inline-flex; align-items: center;
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper, var(--card));
  color: var(--ink); font-size: 11px; font-weight: 650; text-decoration: none;
}
.dash-seg-btn.is-on { background: var(--ZLK-Navy, #26366B); color: #fff; border-color: var(--ZLK-Navy, #26366B); }
.dash-days-custom { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 12px; }
.dash-days-custom label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); margin: 0; font-weight: 650; }
.dash-days-custom input { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.dash-perf { min-height: 0; }
.dash-perf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dash-perf-col h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; color: var(--ink); }
.dash-perf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.dash-perf-table th, .dash-perf-table td { padding: 6px 8px 6px 0; text-align: left; vertical-align: middle; }
.dash-perf-table thead th { font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.dash-perf-table tbody th { font-weight: 650; color: var(--ink); overflow-wrap: anywhere; white-space: normal; }
.dash-perf-delta { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-perf-delta.up { color: var(--ZLK-Green, #3F9F7F); }
.dash-perf-delta.down { color: #b44a4a; }
.dash-perf-delta.flat { color: var(--muted); font-weight: 550; }
.dash-perf-spark .today-spark { color: var(--ZLK-Green, var(--accent)); fill: currentColor; }

@media (max-width: 1500px) {
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-span-2 { grid-column: span 2; }
  .dash-perf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .dash-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-span-2 { grid-column: span 1; }
  .dash-top { grid-template-columns: 1fr; }
  .dash-recruiters { grid-template-columns: 1fr; }
  .dash-hbar-row { grid-template-columns: minmax(8rem, 36%) minmax(3rem, 1fr) 3rem; }
  .dash-perf-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-kpis { grid-template-columns: 1fr 1fr; }
}



/* 1.2.4.29 profile + paste + files */
.profile-hero-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 2px; }
.profile-hero-top .kicker { font-size: 12px; margin: 0; }
.profile-hero-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.profile-hero-identity h1 { display: inline; margin: 0; font-size: 22px; line-height: 1.2; }
.profile-hero-identity .sub { display: inline; margin: 0; }
.profile-hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 0; }
.profile-hero .status-picker { margin: 0; }
.profile-hero { padding: 10px 14px !important; }
.header-notes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.priority-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 650; letter-spacing: 0.02em; padding: 2px 8px; border-radius: 999px; background: #26366B; color: #fff; }
.priority-chip.priority-high, .priority-chip.priority-urgent { background: #9b1c1c; }
.priority-chip.priority-medium { background: #3F9F7F; }
.header-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; max-width: 42ch; }
.header-note form.inline { display: inline; margin: 0; }

#profile-files, .profile-files { margin-top: 10px; }
.profile-files h2 { margin: 0 0 10px; }
.file-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .file-groups { grid-template-columns: 1fr; } }
.file-group { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; min-height: 80px; }
.file-group h3 { margin: 0 0 8px; font-size: 13px; }
.file-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row a { color: #26366B; }
.file-drop { margin-top: 8px; border: 1px dashed var(--line); border-radius: 10px; padding: 10px; text-align: center; color: var(--muted); font-size: 12px; background: var(--bg); }
.file-drop.is-over { border-color: #3F9F7F; background: color-mix(in srgb, #3F9F7F 8%, var(--bg)); }
.doc-check { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 0; }
.doc-check-mark { width: 1.1em; text-align: center; color: #3F9F7F; }

/* Paste a profile — no vendor name, compact box */
.paste-box, [data-paste-profile], .paste-profile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
}
.paste-box h2, .paste-profile h2 { margin: 0 0 6px; font-size: 14px; }
.paste-box p, .paste-profile p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.paste-box textarea, .paste-profile textarea { width: 100%; min-height: 120px; resize: vertical; }

/* Profile fills the column to the footer; left gutters scroll the page */
body.is-profile .shell-main { overflow: auto; }
body.is-profile .page { min-height: calc(100% - 24px); display: flex; flex-direction: column; }
.profile-page {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}
.profile-main { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.profile-rail { min-width: 0; overflow: auto; overscroll-behavior: contain; }
@media (max-width: 960px) {
  .profile-page { grid-template-columns: 1fr; }
}

body.hide-stage-emojis .col-emoji,
body.hide-stage-emojis [data-stage-emoji-display] { display: none !important; }
.emoji-toggle-form { display: inline; margin: 0; }

@media (max-width: 1366px) {
  .profile-hero-identity h1 { font-size: 20px; }
  .file-groups { grid-template-columns: 1fr 1fr; }
}


/* Job multi-select on Candidates and Database */
.job-filter { position: relative; display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.job-filter-details { position: relative; }
.job-filter-summary {
  list-style: none; cursor: pointer; user-select: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px; border: 1px solid var(--line, #d5dae3);
  border-radius: 8px; background: var(--card, #fff); font: inherit; color: inherit;
}
.job-filter-summary::-webkit-details-marker { display: none; }
.job-filter-summary::marker { content: ""; }
.job-filter-details[open] .job-filter-summary,
.job-filter-summary:hover { border-color: var(--ZLK-Navy, #26366B); }
.job-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--ZLK-Navy, #26366B); color: #fff; font-size: 11px; font-weight: 600;
}
.job-filter-pop {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0;
  min-width: 280px; width: max-content; max-width: min(420px, 92vw);
  background: var(--card, #fff); border: 1px solid var(--line, #d5dae3);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(38, 54, 107, 0.12);
  padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.job-filter-search {
  width: 100%; min-height: 32px; box-sizing: border-box;
  border: 1px solid var(--line, #d5dae3); border-radius: 6px; padding: 0 8px; font: inherit;
}
.job-filter-list { max-height: 280px; overflow: auto; display: flex; flex-direction: column; }
.job-filter-heading {
  margin: 8px 4px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted, #5b6573);
}
.job-filter-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px;
  font-size: 13px; cursor: pointer;
}
.job-filter-item:hover { background: #f3f5f8; }
.job-filter-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-filter-pipe { color: var(--muted, #5b6573); font-weight: 400; }
.job-filter-n { color: var(--muted, #5b6573); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.job-filter-foot { display: flex; justify-content: flex-end; padding: 4px 2px 2px; }
.job-filter-clear {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 99px; text-decoration: none;
  color: var(--muted, #5b6573); font-size: 18px; line-height: 1;
}
.job-filter-clear:hover { background: #f3f5f8; color: var(--ZLK-Navy, #26366B); text-decoration: none; }
.job-filter-empty { margin: 8px 6px; }
.today-job-link { color: inherit; text-decoration: none; }
.today-job-link:hover { color: var(--ZLK-Navy, #26366B); text-decoration: underline; }

/* 1.2.4.43 — full-width profile, header facts, compact files and schedule */
.has-shell .page:has(.profile-page) {
  max-width: none;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}
.profile-page {
  max-width: none !important;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: 20px;
  align-items: start;
}
body.is-profile .shell-main { overflow: auto; }
body.is-profile .shell-main > .page { overflow: visible; height: auto; max-height: none; }
body.is-profile .profile-page { height: auto; align-items: start; }
body.is-profile .profile-main {
  overflow: visible;
  max-height: none;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.is-profile .profile-rail {
  position: sticky;
  top: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  align-self: start;
  min-width: 0;
  max-height: calc(100vh - 32px);
}
.profile-hero { padding: 14px 16px !important; }
.profile-hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; }
.profile-hero-identity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.profile-hero-identity h1 { display: inline; margin: 0; font-size: 1.55rem; line-height: 1.2; color: #26366B; }
.profile-hero-identity .sub { margin: 0; color: var(--muted); }
.profile-add-note { margin-left: auto; }

.score-badges { display: inline-flex; align-items: center; gap: 8px; }
.score-badge {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border: 1px solid color-mix(in srgb, #26366B 25%, var(--line));
  background: color-mix(in srgb, #26366B 8%, var(--card));
  color: #26366B;
  border-radius: 999px;
  padding: 2px 10px 2px 8px;
  font: inherit;
  cursor: pointer;
}
.score-badge.score-internal, .score-badge.score-fit {
  border-color: color-mix(in srgb, #3F9F7F 40%, var(--line));
  background: color-mix(in srgb, #3F9F7F 12%, var(--card));
  color: #1f6b54;
}
.score-name { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.score-val { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.score-pop {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-width: 320px;
  padding: 10px 12px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(23, 29, 47, 0.12);
  text-align: left;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.score-pop strong { display: block; margin-bottom: 4px; font-size: 13px; color: #26366B; }
.score-pop span { display: block; font-size: 12px; color: var(--muted); }
.score-pop ul { margin: 6px 0 0; padding-left: 1.1em; font-size: 12px; }
.score-badge[aria-expanded="true"] { outline: 2px solid color-mix(in srgb, #3F9F7F 50%, transparent); }

.profile-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 10px;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
}
.profile-facts li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  min-width: 0;
}
.profile-facts li span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.profile-facts li b {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-facts .fact-wide { grid-column: span 2; }
.profile-facts .fact-wide b { white-space: normal; }

.profile-hero-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0 0; }
.primary-contacts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.pc-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.pc-text { color: var(--ink); }

.quick-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.quick-field { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.quick-field input {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  background: var(--card);
  width: 100%;
  box-sizing: border-box;
}
.quick-note-form { margin: 8px 0 0; }
.quick-note-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
}

.profile-summary { padding: 14px 16px; }
.profile-summary > h2 { margin: 0 0 8px; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.insight-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.insight-card h2 { margin: 0 0 6px; }

.notes-panel { padding: 14px 16px; }
.notes-head, .files-head { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.notes-panel h2, .profile-files h2, .schedule-panel h2 { margin: 0; }
.note-add-form textarea { width: 100%; box-sizing: border-box; min-height: 72px; }
.notes { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 10px; }
.note-item { padding: 8px 0; border-top: 1px solid var(--line); }
.note-item:first-child { border-top: 0; padding-top: 0; }
.note-meta { margin: 0 0 4px; font-size: 12px; color: var(--muted); }
.note-item.is-asana .note-meta { color: #26366B; }
.note-body { margin: 4px 0 0; color: var(--ink); }

.profile-files { padding: 14px 16px; }
.doc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.doc-chip.doc-check-received { border-color: color-mix(in srgb, #3F9F7F 45%, var(--line)); background: color-mix(in srgb, #3F9F7F 12%, var(--card)); }
.file-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.file-group { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 0; }
.file-group h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.file-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
button.file-name {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: #26366B;
  cursor: pointer;
  text-align: left;
}
button.file-name:hover { text-decoration: underline; }
.file-main { min-width: 0; flex: 1; }
.file-meta { margin: 0; font-size: 11px; }
.file-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.files-drop, [data-files-drop] {
  margin-top: 10px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: var(--bg, var(--paper));
}
.files-drop.is-over, [data-files-drop].is-over { border-color: #3F9F7F; background: color-mix(in srgb, #3F9F7F 8%, var(--bg, var(--paper))); }
.files-count { display: inline-flex; min-width: 1.2em; justify-content: center; font-size: 11px; padding: 0 6px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--muted); font-weight: 700; }

.schedule-panel { padding: 12px 14px; }
.schedule-panel h2 { margin: 0 0 8px; }
.outlook-quiet { margin: 0 0 8px; font-size: 12px; }
.quick-slots { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.quick-slot {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 4px 8px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink);
}
.quick-slot:hover, .quick-slot.is-on { border-color: #3F9F7F; background: color-mix(in srgb, #3F9F7F 12%, var(--card)); color: #1f6b54; }
.sched-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sched-grid label, .schedule-link-form label { margin: 0; font-size: 12px; }
.schedule-book-form, .schedule-link-form { margin-top: 10px; }
.schedule-list { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.schedule-item { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.schedule-item.is-past { opacity: 0.85; }
.schedule-past, .schedule-log-legacy { margin-top: 10px; font-size: 13px; }
.schedule-past > summary, .schedule-log-legacy > summary { cursor: pointer; color: var(--muted); font-weight: 600; }

.task-scores { display: inline-flex; align-items: center; gap: 4px; }
.task-scores .task-score { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, #26366B 8%, var(--card)); color: #26366B; border: 1px solid color-mix(in srgb, #26366B 20%, var(--line)); }
.task-scores .task-score + .task-score { background: color-mix(in srgb, #3F9F7F 12%, var(--card)); color: #1f6b54; border-color: color-mix(in srgb, #3F9F7F 35%, var(--line)); }

@media (min-width: 1920px) {
  .profile-page { grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 24px; }
  .profile-facts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (min-width: 2560px) {
  .profile-page { grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); }
}
@media (max-width: 1536px) {
  .profile-facts { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .file-groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1366px) {
  .profile-hero-identity h1 { font-size: 1.35rem; }
  .quick-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .profile-page { grid-template-columns: minmax(0, 1fr) minmax(250px, 320px); gap: 14px; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .file-groups { grid-template-columns: 1fr; }
  .profile-facts .fact-wide { grid-column: span 1; }
}
@media (max-width: 960px) {
  .profile-page, body.is-profile .profile-page { grid-template-columns: 1fr; }
  body.is-profile .profile-rail { position: static; max-height: none; overflow: visible; }
  .quick-fields { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .quick-fields { grid-template-columns: 1fr; }
  .profile-facts { grid-template-columns: 1fr 1fr; }
}

/* 1.2.4.53 — pipeline cards as a grid; names and facts no longer overlap */
.pipe-row {
  --pipe-col-w: 300px;
  --card-h: auto;
}
.pipe-row.is-compact {
  --pipe-col-w: 280px;
  --card-h: auto;
}

/* Fill the remaining viewport under the top bar and footer; no empty gap. */
.has-shell:has(.pipe-row) .shell-main {
  min-height: 0;
}
.has-shell .page:has(.pipe-row) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding-bottom: 8px;
}
.has-shell .page:has(.pipe-row) > .pipe-top,
.has-shell .page:has(.pipe-row) > .pipe-tabs,
.has-shell .page:has(.pipe-row) > .pipe-top-bar {
  flex: 0 0 auto;
}
.has-shell .page:has(.pipe-row) > .pipe-row,
.pipe-row {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding-bottom: 0;
  width: 100%;
}
.pipe-row-head {
  flex: 0 0 auto;
}
.pipe-row-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
}
.pipe-hscroll {
  flex: 0 0 auto;
  height: 14px;
  margin: 4px 0 0;
}
.pipe-row .board,
.board.board-live,
.pipe-row .board.board-live {
  overflow: visible;
  width: max-content;
  min-width: 100%;
  min-height: calc(100% / var(--pipe-zoom, 1));
  height: calc(100% / var(--pipe-zoom, 1));
  max-height: none;
  align-items: stretch;
  padding: 8px 4px;
  zoom: var(--pipe-zoom, 1);
  gap: 16px;
}
.pipe-row .board .col,
.pipe-row.is-compact .board .col,
.board .col {
  min-width: var(--pipe-col-w, 280px) !important;
  flex: 0 0 var(--pipe-col-w, 280px) !important;
  width: var(--pipe-col-w, 280px) !important;
  max-width: var(--pipe-col-w, 280px);
  min-height: 0;
  max-height: none !important;
  height: 100%;
  align-self: stretch;
  background: var(--board-col, #eef1f6);
}
.col-cards {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.task-card,
.pipe-row.is-compact .task-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  position: relative;
  padding: 12px 12px 10px;
}
.pipe-row.is-compact .task-card { padding: 10px 10px 8px; }

.task-name {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 1.3em;
  position: static;
}
.task-title,
a.task-title,
.task-card .task-title,
.pipe-row.is-compact .task-title,
.pipe-row.is-compact a.task-title {
  display: block !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 1.3em;
  flex: none;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word;
  hyphens: manual;
  line-height: 1.3;
  max-height: calc(1.3em * 2);
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: #26366B !important;
  text-decoration: none !important;
  position: static !important;
  z-index: 2;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}
html[data-theme="dark"] .task-title,
html[data-theme="dark"] a.task-title {
  color: #e8ecf4 !important;
}

.task-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  position: static;
}
.task-toolbar .source-badge,
.task-toolbar .status-picker,
.task-toolbar .task-scores,
.task-toolbar .pill,
.task-toolbar .task-top-actions,
.task-toolbar .task-card-remove {
  flex: 0 0 auto;
  position: static;
}

/* 1.2.4.120 — Reject sits in the card's top-right corner, clear of the name and drag handle. */
.task-card { position: relative; }
.task-card > .task-card-remove {
  position: absolute !important;
  top: 4px;
  right: 4px;
  z-index: 6;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  flex: none;
  pointer-events: auto;
}
.task-card:has(> .task-card-remove) .task-name,
.task-card:has(> .task-card-remove) .task-title,
.task-card:has(> .task-card-remove) a.task-title {
  padding-right: 32px;
  box-sizing: border-box;
}
.pipe-row.is-compact .task-card > .task-card-remove {
  top: 2px;
  right: 2px;
}
.task-top-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.task-scores {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.task-scores .task-score {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
}

.task-sub,
.task-loc,
.task-years,
.pipe-row.is-compact .task-sub,
.pipe-row.is-compact .task-loc,
.pipe-row.is-compact .task-years {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
  position: static !important;
  float: none !important;
  inset: auto !important;
  transform: none !important;
  min-height: 1.2em;
  height: auto !important;
  max-height: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset;
  word-break: normal !important;
  overflow-wrap: break-word;
  line-height: 1.35;
  font-size: 12px;
  color: var(--muted, #5b6573);
  clear: both;
}
.task-brief-line,
.pipe-row.is-compact .task-brief-line {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  position: static;
  height: auto;
  max-height: calc(1.4em * 3);
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
}
.pipe-row.is-compact .task-brief-line {
  -webkit-line-clamp: 2;
  max-height: calc(1.4em * 2);
}

.task-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  position: static;
  overflow: visible;
}
.task-chip,
.task-areas .task-chip,
.task-meta-row .pill {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
  font-size: 11px;
  line-height: 1.25;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--paper, var(--card));
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
  position: static;
}

.task-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  min-height: 0;
  width: 100%;
  position: static;
}
.task-owner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.task-owner-name, .task-days, .task-next {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.task-next { flex: 1 1 8rem; min-width: 0; }

.status-emoji:empty, .status-emoji[hidden] { display: none; }
.status-picker-btn {
  min-height: 22px;
  padding: 1px 6px;
  gap: 4px;
}
.status-picker-btn.is-empty {
  width: 22px;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border-style: dashed;
  background: transparent;
}
.task-top-actions .status-label,
.task-toolbar .status-label { display: none; }
.status-picker-menu {
  position: fixed;
  z-index: 80;
  min-width: 180px;
  max-width: min(240px, calc(100vw - 16px));
  max-height: min(240px, calc(100vh - 16px));
}
.emoji-picker {
  position: fixed;
  z-index: 90;
  top: auto;
  left: auto;
  right: auto;
  width: 220px;
  max-width: calc(100vw - 16px);
  max-height: min(260px, calc(100vh - 16px));
  overflow: auto;
  padding: 6px;
}
.col-head .emoji-picker { right: auto; top: auto; }
.emoji-choice { width: 26px; height: 26px; font-size: 15px; }
.emoji-kicker { margin: 4px 0 2px; font-size: 10px; }
.emoji-picker-search input { font-size: 12px; padding: 4px 6px; }

/* 1.2.4.51 — summary under the header; footer does not cover the profile */
.has-shell .page:has(.profile-page) {
  flex: 1 0 auto;
  height: auto;
  max-height: none;
  overflow: visible;
  padding-bottom: 16px;
}
body.is-profile .shell-main {
  overflow-x: hidden;
  overflow-y: auto;
}
body.is-profile .foot,
.has-shell:has(.profile-page) .foot {
  position: static;
  flex: 0 0 auto;
  margin-top: 0;
  z-index: 1;
}
.profile-facts .fact-wide b {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}
@media (max-width: 1536px) {
  .profile-facts { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
@media (max-width: 1366px) {
  .profile-facts { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px 8px; }
  .profile-facts li { padding: 5px 8px; }
  .profile-hero { padding: 12px 14px !important; }
}

/* 1.2.4.54 — Working Genius, skills, traits, tests, position tag */
.wg-chip, .skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid color-mix(in srgb, var(--wg, #26366B) 45%, var(--line));
  background: color-mix(in srgb, var(--wg, #26366B) 12%, var(--card));
  color: var(--wg, #26366B);
  white-space: nowrap;
}
.wg-chip i, .skill-tag i {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
.wg-chip.wg-frus { opacity: 0.9; }
.wg-chip.tiny, .task-genius .wg-chip {
  padding: 0 6px;
  font-size: 10px;
}
.fit-head, .notes-head { display: flex; align-items: center; gap: 8px; }
.fit-head h2 { margin: 0; flex: 1; }
.fit-actions { display: flex; gap: 6px; }
.fit-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.fit-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: center; }
.fit-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.fit-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fit-edit-form[hidden] { display: none !important; }
.fit-edit-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.fit-edit-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 0; }
.fit-edit-form legend { font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.fit-edit-form select { width: 100%; margin: 4px 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.skill-tag { --wg: #26366B; }
.skill-tag.is-ai { --wg: #3F9F7F; }
.skill-tag button { padding: 0 2px; }
.skill-add input { width: min(240px, 100%); }
.disposition-form textarea { width: 100%; box-sizing: border-box; min-height: 56px; }
.trait-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.trait-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.trait-name { font-weight: 600; }
.test-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.test-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.position-tag { display: inline-flex; align-items: center; gap: 6px; }
.position-tag select, .position-tag input { min-width: 8rem; }
.task-genius { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 4px; }

html[data-app="ats"] body.is-profile .shell-main {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html[data-app="ats"] body.is-profile .shell-main > .page {
  flex: 1 0 auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 28px;
}
html[data-app="ats"] body.is-profile .foot,
.has-shell body.is-profile .foot {
  position: static !important;
  flex: 0 0 auto;
  margin-top: 0 !important;
  z-index: 1;
}
@media (max-width: 1100px) {
  .fit-row { grid-template-columns: 1fr; gap: 4px; }
  .fit-edit-form { grid-template-columns: 1fr; }
}

/* 1.2.4.58 — Working Genius chips in the profile header */
.wg-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
}
.wg-header-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  min-width: 0;
}
.wg-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.wg-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 2px;
}
.wg-header .wg-chip {
  font-size: 11px;
  padding: 1px 7px;
  cursor: default;
}
.wg-header button.wg-chip { cursor: pointer; }
.wg-chip.wg-empty {
  border-style: dashed;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
}
.wg-header-actions { display: inline-flex; align-items: center; gap: 6px; }
.wg-header .fit-edit-form[hidden] { display: none !important; }
.wg-header .fit-edit-form {
  flex: 1 1 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
@media (max-width: 1100px) {
  .wg-header .fit-edit-form { grid-template-columns: 1fr; }
}

/* 1.2.4.62 — profile scrolling: the main column scrolls; the schedule rail scrolls on its own */
html[data-app="ats"] body.is-profile .shell-main {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  min-height: 0 !important;
  height: 100vh !important;
}
html[data-app="ats"] body.is-profile .shell-main > .page,
html[data-app="ats"] body.is-profile .profile-page,
html[data-app="ats"] body.is-profile .profile-main {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
html[data-app="ats"] body.is-profile .shell-main > .page {
  flex: 1 0 auto !important;
}
html[data-app="ats"] body.is-profile .profile-page {
  align-items: start !important;
  height: auto !important;
}
html[data-app="ats"] body.is-profile .profile-rail {
  overflow-y: auto !important;
  overscroll-behavior: auto;
  max-height: calc(100vh - 48px);
  position: sticky;
  top: 8px;
  align-self: start;
}
html[data-app="ats"] body.is-profile .foot,
.has-shell body.is-profile .foot {
  position: static !important;
  flex: 0 0 auto;
  margin-top: 0 !important;
  z-index: 1;
}
@media (max-width: 960px) {
  html[data-app="ats"] body.is-profile .profile-rail {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* 1.2.4.64 — Today: Stage snapshot sits under Needs attention; empty cards shrink */
.today-page { gap: 14px; }
.today-layout {
  align-items: start !important;
  gap: 14px;
}
.today-side, .today-main {
  align-self: start;
  gap: 10px;
}
.today-card.is-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 8px 12px !important;
  min-height: 0;
}
.today-card.is-empty > h2,
.today-card.is-empty .today-card-head,
.today-card.is-empty .today-card-head h2 {
  margin: 0;
  flex: 0 0 auto;
}
.today-card.is-empty .today-card-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.today-card.is-empty .today-empty {
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto;
}
.today-card.is-empty .today-spark { display: none; }

.today-below {
  align-items: stretch;
  margin-top: 0;
  gap: 12px;
}
.today-below > .today-below-card:not(.is-empty) {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.today-below > .today-below-card.is-empty {
  grid-column: 1 / -1;
  height: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
}
.today-side #today-stages {
  height: auto;
}
.today-page, .today-layout, .today-main, .today-side {
  overflow-x: hidden;
}

@media (min-width: 1101px) and (max-width: 1399px) {
  .today-below { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-below-wide { grid-column: auto; }
  .today-below:has(> #today-sources.is-empty) .today-below-wide {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1400px) {
  .today-below { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today-below-wide { grid-column: 1 / -1; }
  .today-below:has(> #today-sources.is-empty) .today-below-wide {
    grid-column: auto;
  }
  .today-below:has(> #today-sources.is-empty):has(> #today-offers.is-empty) .today-below-wide {
    grid-column: 2 / -1;
  }
}
@media (max-width: 1100px) {
  .today-below { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .today-below-wide { grid-column: auto; }
  .today-below:has(> #today-sources.is-empty) .today-below-wide {
    grid-column: 1 / -1;
  }
  .today-side { align-items: start; }
}
@media (max-width: 900px) {
  .today-below { grid-template-columns: 1fr; }
  .today-below-wide,
  .today-below > .today-below-card.is-empty { grid-column: auto; }
}
/* 1.2.4.65 — Data connectors (MCP) */
.mcp-results { width: 100%; }
.mcp-results td, .mcp-results th { vertical-align: top; }
.mcp-results .inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.profile-hero-top form.mcp-enrich { margin-left: 8px; }
@media (max-width: 1100px) {
  .mcp-results { display: block; overflow-x: auto; }
}
/* 1.2.4.66 — Data connectors on recruiter Settings */
#mcp.connection-card label, .settings-card#mcp label { display: block; }

/* 1.2.4.65 — Data connectors (MCP) */
.mcp-results { width: 100%; }
.mcp-results td, .mcp-results th { vertical-align: top; }
.mcp-results .inline { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.profile-hero-top form.mcp-enrich { margin-left: 8px; }
@media (max-width: 1100px) {
  .mcp-results { display: block; overflow-x: auto; }
}

/* 1.2.4.66 — Recruiter connectors, sourcing filters, LinkedIn panel */
.mcp-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; align-items: end; }
.mcp-filters .primary { grid-column: 1 / -1; justify-self: start; }
.mcp-saved ul { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.mcp-saved li { display: flex; gap: 4px; align-items: center; }
.mcp-panel-data { white-space: pre-wrap; word-break: break-word; max-height: 320px; overflow: auto; padding: 10px; border: 1px solid var(--line, #e4ddd2); border-radius: 6px; font-size: 12px; }
.mcp-results input[type="checkbox"] { width: auto; }
@media (max-width: 1100px) {
  .mcp-filters { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

/* Attorney briefing export and per-user AI rewrite */
.ai-rewrite { margin: 10px 0 14px; padding: 10px 12px; border: 1px solid #d5dae3; border-radius: 8px; background: #f7f8fa; }
.ai-rewrite-form { gap: 8px; }
.ai-rewrite input[type="text"] { width: 100%; max-width: 100%; }
.ai-versions { margin-top: 8px; }
.ai-versions ol { margin: 6px 0 0; padding-left: 18px; }
.briefing-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.briefing-share { background: #fff; color: #222; }
.briefing-share-head { background: #26366B; color: #fff; padding: 24px 20px 20px; }
.briefing-share-head .kicker { color: #c9d2e3; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; margin: 0 0 8px; }
.briefing-share-head h1 { font-family: "Noto Serif", serif; margin: 0 0 8px; }
.briefing-share-head a.btn { background: #3F9F7F; color: #fff; border-color: #3F9F7F; }
.briefing-share-main { max-width: 800px; margin: 0 auto; padding: 20px; }
.briefing-share-main section { margin: 0 0 20px; }
.briefing-share-main h2 { color: #26366B; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 8px; }
.briefing-share-main table { width: 100%; border-collapse: collapse; }
.briefing-share-main th, .briefing-share-main td { border: 1px solid #d5dae3; padding: 6px 8px; text-align: left; }
@media print {
  .briefing-share-head a.btn, .foot { display: none; }
  .briefing-share-head { background: #26366B !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* 1.2.4.70 — Pipeline vertical scroll, switcher, Database table, Today cleanup */

/* Pipeline: allow vertical wheel/trackpad (page + per-column). */
.pipe-row-scroll {
  touch-action: pan-x pan-y !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-all) {
  overflow: hidden;
}
html[data-app="ats"] body.has-shell:has(.pipe-all) .shell-main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100vh;
  min-height: 0;
}
.has-shell .page.pipe-all,
.has-shell .page:has(.pipe-all-mark) {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
}
.page.pipe-all > .pipe-row,
.pipe-all .pipe-row,
.has-shell .page:has(.pipe-all-mark) > .pipe-row {
  flex: 0 0 auto !important;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: min(72vh, 720px);
  max-height: calc(100vh - 132px);
  margin: 0 0 32px;
  padding-bottom: 0;
}
.page.pipe-all .pipe-row-scroll,
.has-shell .page:has(.pipe-all-mark) .pipe-row-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
}
/* Single-pipeline view keeps the filled board; columns scroll. */
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) .col-cards {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.pipe-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.pipe-switcher .pipe-jump { font-weight: 650; }
.pipe-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: var(--muted);
}
.pipe-create-from-job { display: inline-flex; }

/* Database: list table, no sideways scroll, saved views */
html[data-app="ats"] body.has-shell:has(.people-page),
.people-page.rdb,
.rdb-table-wrap {
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
}
.rdb-views-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}
.rdb-views-bar form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.rdb-table-wrap { width: 100%; overflow-x: hidden; }
.rdb-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card, #fff);
}
.rdb-table th, .rdb-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.rdb-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--muted); }
.rdb-table .col-check { width: 28px; }
.rdb-table .col-name { width: 24%; }
.rdb-table .col-firm { width: 18%; }
.rdb-table .col-school { width: 16%; }
.rdb-table .col-stage { width: 24%; white-space: normal; overflow: visible; text-overflow: unset; line-height: 1.25; }
.rdb-table .col-owner { width: 12%; }
.rdb-table .col-updated { width: 7rem; }
/* ats-db-columns: drop Status and Source, give Stage room */
@media (max-width: 1100px) {
  .rdb-table th, .rdb-table td { padding: 7px 6px; }
  .rdb-table .col-name { width: 22%; }
  .rdb-table .col-firm { width: 16%; }
  .rdb-table .col-school { width: 15%; }
  .rdb-table .col-stage { width: 26%; }
  .rdb-table .col-owner { width: 12%; }
}

.rdb-table a.rdb-name { font-weight: 650; color: var(--ZLK-Navy, #26366B); text-decoration: none; }
.rdb-table a.rdb-name:hover { color: var(--ZLK-Green, #3F9F7F); text-decoration: underline; }
.rdb-table .is-muted { color: var(--muted); font-size: 12px; }
.rdb-sort { color: inherit; text-decoration: none; }
.rdb-sort.is-on { color: var(--ZLK-Navy, #26366B); font-weight: 700; }
.rdb-chips-extra { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }

/* Phase 2: positions, role scores, email tab, alerts, morning brief */
.profile-tabs{display:flex;gap:.25rem;flex-wrap:wrap;border-bottom:1px solid #d9dee8;margin:0 0 1rem;padding:0}
.profile-tabs a{padding:.55rem .9rem;color:#26366B;text-decoration:none;border-bottom:2px solid transparent;font-weight:600}
.profile-tabs a[aria-current="page"],.profile-tabs a.is-active{border-bottom-color:#26366B}
.profile-alerts{background:#f6f7fb;border:1px solid #d9dee8;border-radius:8px;padding:1rem 1.1rem;margin:0 0 1rem}
.profile-alerts h2{margin:0 0 .6rem;font-size:1rem;color:#26366B}
.profile-alerts ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.6rem}
.profile-alert{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;background:#fff;border-left:3px solid #3F9F7F;padding:.7rem .8rem}
.profile-alert.severity-high{border-left-color:#26366B}
.profile-alert p{margin:.2rem 0 0;color:#445}
.profile-alert-actions{display:flex;gap:.4rem;align-items:center;flex-shrink:0}
.morning-brief{margin-bottom:1rem}
.morning-brief-body{white-space:pre-wrap;line-height:1.5}
.morning-brief-body p{margin:.15rem 0}
.morning-brief-actions{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.8rem}
.email-thread{border:1px solid #d9dee8;border-radius:8px;margin:0 0 .7rem;padding:.4rem .8rem;background:#fff}
.email-thread summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:.4rem 1rem;align-items:baseline}
.email-preview{flex-basis:100%;color:#556;font-size:.92rem}
.email-msg{border-top:1px solid #e6e9f0;padding:.7rem 0}
.email-msg.is-unread{background:#f3faf7}
.email-body{white-space:pre-wrap;font-family:inherit;margin:.4rem 0;background:#f6f7fb;padding:.7rem;border-radius:6px}
.email-atts,.email-msg-actions,.email-compose .inline{display:flex;gap:.5rem;flex-wrap:wrap}
.email-connect{padding:.8rem 0}
.email-files{border:0;padding:0;margin:.4rem 0}
.email-files legend{font-weight:600;color:#26366B}
.onboard-list{list-style:none;margin:0;padding:0}
.onboard-list li{display:flex;gap:.7rem;align-items:center;padding:.35rem 0}
.onboard-list li.is-done span{text-decoration:line-through;color:#667}
.role-scores{display:flex;flex-wrap:wrap;gap:.3rem}
.role-score{display:inline-flex;align-items:center;gap:.3rem;background:#f0f3f9;border-radius:999px;padding:.1rem .55rem;font-size:.85rem;color:#26366B}
.role-score b{font-variant-numeric:tabular-nums}
.today-inbox .today-empty,.email-connect .muted{margin-top:.4rem}

/* Job mapping + provisional scores */
.job-suggest { display: flex; flex-wrap: wrap; gap: .35rem .6rem; align-items: center; }
.job-suggest-chip { display: inline-flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; font-size: .9em; }
.role-score.is-provisional { background: #f3f4f7; color: #26366B; border: 1px dashed #26366B; padding: .1rem .4rem; border-radius: 4px; }
.role-score.is-provisional::before { content: none; }

/* Dashboard data quality */
.dash-quality { margin: 1rem 0; padding: .8rem 1rem; border: 1px solid #d8dbe3; border-radius: 8px; background: #fff; }
.dash-quality.is-ok { border-color: #3F9F7F; }
.dash-quality.is-warn { border-color: #c48a2a; }

/* Targets by job */
#job-targets .grid td, #results .grid td { vertical-align: top; }
#job-targets .row-actions, .row-actions { display: flex; gap: .5rem; align-items: center; }

/* Morning brief card — structured, not a prose wall */
.brief-chip-wrap { margin: 0 0 1rem; }
.brief-chip {
  font-family: var(--Sans400, "Noto Sans", sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ZLK-Navy, #26366B);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ZLK-Navy, #26366B) 22%, #fff);
  border-radius: 999px;
  padding: .35rem .85rem;
  cursor: pointer;
}
.brief-chip:hover { border-color: var(--ZLK-Green, #3F9F7F); color: var(--ZLK-Green, #3F9F7F); }

.brief-card {
  font-family: var(--Sans400, "Noto Sans", sans-serif);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ZLK-Navy, #26366B) 14%, #fff);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(38, 54, 107, 0.06);
  margin: 0 0 1.25rem;
  overflow: hidden;
}
.brief-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem .85rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ZLK-Navy, #26366B) 6%, #fff) 0%, #fff 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--ZLK-Navy, #26366B) 10%, #fff);
}
.brief-greeting {
  margin: 0;
  font-family: var(--Serif400, "Noto Serif", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ZLK-Navy, #26366B);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.brief-date {
  margin: .2rem 0 0;
  color: #5a6478;
  font-size: 13px;
}
.brief-head-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }
.brief-icon-btn {
  font-family: inherit;
  background: transparent;
  border: 0;
  color: #5a6478;
  cursor: pointer;
  border-radius: 8px;
  padding: .25rem .45rem;
  line-height: 1;
}
.brief-icon-btn:hover { background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 8%, #fff); color: var(--ZLK-Navy, #26366B); }
.brief-dismiss { font-size: 1.35rem; font-weight: 400; padding: .1rem .5rem .25rem; }
.brief-collapse-label { font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.brief-card.is-collapsed .brief-card-head { border-bottom: 0; }

.brief-card-body { padding: .9rem 1.15rem 1.05rem; }
.brief-kpis {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: 0;
}
.brief-kpi {
  display: flex;
  flex-direction: column;
  min-width: 7.2rem;
  padding: .45rem .7rem .5rem;
  border-radius: 10px;
  background: #f4f6fa;
  border: 1px solid transparent;
  color: var(--ZLK-Navy, #26366B);
}
.brief-kpi b { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.brief-kpi span { font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #5a6478; }
.brief-kpi.is-hot {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 12%, #fff);
  border-color: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 35%, #fff);
}
.brief-kpi.is-hot b { color: #2c7a60; }

.brief-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1100px) {
  .brief-grid { grid-template-columns: 1fr 1fr; }
}

.brief-sec {
  border: 1px solid color-mix(in srgb, var(--ZLK-Navy, #26366B) 10%, #fff);
  border-radius: 10px;
  padding: .7rem .8rem .75rem;
  background: #fbfcfe;
  min-width: 0;
}
.brief-sec h3 {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .55rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ZLK-Navy, #26366B);
}
.brief-ico { width: 16px; height: 16px; color: var(--ZLK-Green, #3F9F7F); flex-shrink: 0; }

.brief-items { list-style: none; margin: 0; padding: 0; }
.brief-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: .4rem 0;
  border-top: 1px solid color-mix(in srgb, var(--ZLK-Navy, #26366B) 8%, #fff);
}
.brief-item:first-child { border-top: 0; padding-top: 0; }
.brief-sec:not(.is-expanded) .brief-item.is-more { display: none; }
.brief-item-copy { min-width: 0; display: flex; flex-wrap: wrap; gap: .15rem .45rem; align-items: baseline; }
.brief-name {
  font-weight: 650;
  color: var(--ZLK-Navy, #26366B);
  text-decoration: none;
  white-space: nowrap;
}
a.brief-name:hover { color: var(--ZLK-Green, #3F9F7F); text-decoration: underline; }
.brief-reason { color: #5a6478; font-size: 13px; min-width: 0; }
.brief-action {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--ZLK-Navy, #26366B);
  border: 1px solid color-mix(in srgb, var(--ZLK-Navy, #26366B) 22%, #fff);
  background: #fff;
  border-radius: 999px;
  padding: .2rem .65rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.brief-action:hover { border-color: var(--ZLK-Green, #3F9F7F); color: #2c7a60; }
.brief-empty, .brief-show-all { margin: .35rem 0 0; font-size: 13px; color: #5a6478; }
.brief-show-all { background: none; border: 0; cursor: pointer; font-weight: 650; color: var(--ZLK-Navy, #26366B); padding: 0; }

.brief-next {
  margin: 1rem 0 0;
  padding: .7rem .85rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 6%, #fff);
  color: var(--ZLK-Navy, #26366B);
  font-size: 14px;
  line-height: 1.45;
}
.brief-next span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ZLK-Green, #3F9F7F);
  margin-bottom: .15rem;
}
.brief-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .9rem; }
.brief-disclaimer { margin: 0 0 0 auto; font-size: 12px; }
@media (max-width: 700px) {
  .brief-disclaimer { margin-left: 0; flex-basis: 100%; }
  .brief-kpi { min-width: calc(50% - .5rem); }
}

/* 1.2.4.74 — Pipeline column scroll */
/* Each stage column is bounded to the leftover viewport under the header
   and above the footer, with its own overflow-y. The page can still scroll
   when there are several roles. The footer stays in document flow. */

html[data-app="ats"] body.has-shell:has(.pipe-row) {
  overflow: hidden;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100vh;
  display: flex !important;
  flex-direction: column !important;
}

.has-shell:has(.pipe-row) .foot {
  position: static !important;
  flex: 0 0 24px !important;
  margin-top: 0 !important;
  z-index: 2;
  pointer-events: auto;
}

.has-shell .page:has(.pipe-row) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  padding-bottom: 12px !important;
}

.has-shell .page:has(.pipe-row) > .pipe-row,
.pipe-row {
  --pipe-chrome: 240px;
  flex: 0 0 auto;
  display: flex !important;
  flex-direction: column !important;
  min-height: 280px;
  height: calc(100vh - var(--pipe-chrome, 240px)) !important;
  max-height: calc(100vh - var(--pipe-chrome, 240px)) !important;
  margin: 0 0 16px !important;
  padding-bottom: 0 !important;
}

.pipe-row-scroll,
.page.pipe-all .pipe-row-scroll,
.has-shell .page:has(.pipe-all-mark) .pipe-row-scroll,
.has-shell .page:has(.pipe-row) .pipe-row-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  touch-action: pan-x pan-y !important;
}

.pipe-row .board,
.pipe-row .board.board-live,
.board.board-live {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}

.pipe-row .board .col,
.pipe-row.is-compact .board .col,
.board .col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}

.pipe-row .col-head,
.board .col-head,
.col-head {
  flex: 0 0 auto !important;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--board-col, #eef1f6);
}

.pipe-row .col-cards,
.board .col-cards,
.col-cards {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  padding-bottom: 12px;
}

.pipe-row-scroll { touch-action: pan-x pan-y !important; }

/* 1.2.4.75 — Profile file cards: one-line names, no overlapping actions */
.file-groups {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 10px !important;
}
.file-group {
  min-width: 0;
  min-height: 0;
}
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.file-row {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  padding: 7px 0 !important;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
}
.file-row:last-child { border-bottom: 0; }
.file-icon {
  display: block;
  width: 16px;
  height: 18px;
  margin-top: 2px;
  flex: 0 0 16px;
  background:
    linear-gradient(var(--ZLK-Blue, #26366B), var(--ZLK-Blue, #26366B)) 3px 5px / 10px 1.5px no-repeat,
    linear-gradient(var(--ZLK-Blue, #26366B), var(--ZLK-Blue, #26366B)) 3px 8px / 10px 1.5px no-repeat,
    linear-gradient(var(--ZLK-Blue, #26366B), var(--ZLK-Blue, #26366B)) 3px 11px / 7px 1.5px no-repeat,
    #fff;
  border: 1px solid var(--ZLK-Blue, #26366B);
  border-radius: 2px;
  opacity: 0.85;
}
.file-main {
  min-width: 0 !important;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.file-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  width: 100%;
}
button.file-name,
.file-row button.file-name {
  flex: 1 1 auto;
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  display: block;
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 650;
  color: #26366B;
  cursor: pointer;
  text-align: left;
  line-height: 1.3;
}
button.file-name:hover { text-decoration: underline; }
.file-date,
.file-row .file-date {
  flex: 0 0 auto;
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  line-height: 1.3;
}
.file-meta { display: none; } /* date lives on the filename line now */
.file-actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px !important;
  min-width: 0;
  width: 100%;
}
.file-actions .file-btn,
a.file-btn,
button.file-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card, #fff);
  color: #26366B;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}
.file-actions .file-btn:hover,
a.file-btn:hover,
button.file-btn:hover {
  border-color: var(--ZLK-Green, #3F9F7F);
  color: #1f6b54;
}
.file-cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.file-cat select {
  font: inherit;
  font-size: 11px;
  max-width: 11.5rem;
  min-width: 0;
  height: 22px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card, #fff);
  color: var(--ink);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.files-drop, [data-files-drop] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 6px 12px !important;
  text-align: left !important;
  min-height: 0;
}
.files-drop-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 !important;
  width: 100%;
  font-size: 12px;
  color: var(--muted);
}
.files-drop-dot { color: var(--muted); }
.files-drop .file-cat { margin-left: 0; }
.files-drop .linkish { color: #26366B; font-weight: 650; cursor: pointer; }

@media (max-width: 1024px) {
  .file-groups { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; }
}

/* 1.2.4.76 — Fill the last Files row; keep the drop line on one line */
.file-groups {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  grid-template-columns: none !important;
}
.file-group {
  flex: 1 1 calc(50% - 10px);
  min-width: min(260px, 100%);
  max-width: 100%;
}
@media (min-width: 1800px) {
  .file-group { flex-basis: calc(33.333% - 10px); }
}
.files-drop-line,
.files-drop .file-cat,
.profile-files .file-cat {
  white-space: nowrap;
  flex-wrap: nowrap;
}
.files-drop-line {
  flex-wrap: nowrap !important;
  overflow: hidden;
}

/* 1.2.4.77 — Pipeline horizontal nav */
.pipe-board-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pipe-hscroll-top,
.pipe-board-frame > .pipe-hscroll {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 8;
  display: block !important;
  height: 16px;
  margin: 0 0 6px;
  padding: 4px 12px;
  background: var(--paper, #fff);
  box-sizing: content-box;
}
.pipe-hscroll-top.is-idle,
.pipe-hscroll-top.is-idle .pipe-hscroll-thumb {
  opacity: 1;
}
.pipe-hscroll-top .pipe-hscroll-track {
  height: 10px;
  background: color-mix(in srgb, var(--ZLK-Navy, #26366B) 14%, var(--line, #e3e7ee));
}
.pipe-hscroll-top .pipe-hscroll-thumb {
  height: 10px;
  background: var(--ZLK-Green, #3F9F7F);
}
.pipe-edge {
  position: absolute;
  top: calc(26px + (100% - 26px) / 2);
  transform: translateY(-50%);
  z-index: 7;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line, #d5dae3);
  background: #fff;
  color: var(--ZLK-Blue, #26366B);
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(38, 54, 107, 0.16);
  cursor: pointer;
}
.pipe-edge-left { left: 8px; }
.pipe-edge-right { right: 8px; }
.pipe-edge:hover:not(:disabled) {
  border-color: var(--ZLK-Green, #3F9F7F);
  color: #1f6b54;
}
.pipe-edge:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}
.pipe-row-scroll:focus,
.pipe-row-scroll:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 50%, transparent);
  outline-offset: 2px;
}
/* 1.2.4.78 dashboard performance window labels */
.dash-perf .dash-perf-window { flex: 1 1 100%; line-height: 1.45; max-width: 100%; }
/* 1.2.4.80 Find time — week calendars and suggested slots */
.ft-page { max-width: 100%; min-width: 0; }
.ft-head { margin: 0 0 16px; }
.ft-head h1 { margin: 0 0 6px; color: var(--ZLK-Blue, #26366B); letter-spacing: -0.03em; }
.ft-sub, .ft-head .kicker { margin: 0 0 8px; color: var(--muted); }
.ft-banner {
  background: #fff7e8; border: 1px solid #ead7a8; color: #5a4a20;
  border-radius: 10px; padding: 10px 14px; margin: 0 0 16px; font-size: 14px;
}
.ft-suggest {
  background: #fff; border: 1px solid var(--border, #e3e7ee); border-radius: 14px;
  padding: 16px 18px; margin: 0 0 18px;
  position: sticky; top: 8px; z-index: 5;
}
.ft-suggest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ft-suggest-head h2, .ft-tools h2, .ft-week-bar h2 { margin: 0; font-size: 1.05rem; color: var(--ZLK-Blue, #26366B); }
.ft-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ft-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-align: left; border: 1px solid var(--ZLK-Green, #3F9F7F); background: #fff;
  color: var(--ZLK-Blue, #26366B); border-radius: 10px; padding: 8px 12px; cursor: pointer;
}
.ft-chip strong { font-size: 13px; }
.ft-chip span { font-size: 11px; color: var(--muted); font-weight: 550; }
.ft-chip:hover, .ft-chip.is-on {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 16%, #fff);
}
.ft-draft { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ft-draft-label { margin: 0; }
.ft-week-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.ft-grid-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--border, #e3e7ee); border-radius: 12px; background: #fff; }
.ft-grid { width: 100%; border-collapse: collapse; min-width: 720px; table-layout: fixed; }
.ft-grid th, .ft-grid td { border-bottom: 1px solid var(--border, #e3e7ee); vertical-align: stretch; padding: 8px; }
.ft-grid thead th { font-size: 12px; text-align: center; color: var(--muted); font-weight: 650; background: #f7f8fb; }
.ft-grid tbody th { width: 180px; text-align: left; font-weight: 600; color: var(--ZLK-Blue, #26366B); }
.ft-grid tbody th .dash-muted { display: block; font-weight: 500; font-size: 11px; margin-top: 2px; }
.ft-lane {
  position: relative; height: 192px; background:
    repeating-linear-gradient(to bottom, transparent 0, transparent calc(12.5% - 1px), #eef1f6 calc(12.5% - 1px), #eef1f6 12.5%);
  border-radius: 6px; overflow: hidden;
}
.ft-block {
  position: absolute; left: 3px; right: 3px; border-radius: 4px; font-size: 10px;
  padding: 1px 4px; overflow: hidden; line-height: 1.2; pointer-events: none;
}
.ft-block.is-busy { background: color-mix(in srgb, #26366B 22%, #fff); color: #26366B; }
.ft-block.is-free { background: color-mix(in srgb, #3F9F7F 28%, #fff); color: #1d5c48; }
.ft-block.is-picked { outline: 2px solid #3F9F7F; }
.ft-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 24px; }
.ft-add, .ft-link { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.ft-link input { flex: 1 1 220px; min-width: 0; }
.ft-tools .stack { margin-top: 14px; }
@media (max-width: 1100px) {
  .ft-tools { grid-template-columns: 1fr; }
  .ft-suggest { position: static; }
}
.avail-page .avail-bar { margin: 0 0 10px; color: #26366B; }
.avail-picked { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.avail-picked li { background: color-mix(in srgb, #3F9F7F 16%, #fff); border-radius: 8px; padding: 4px 8px; font-size: 13px; }


/* Section tabs: the pages inside Today, People and Jobs */
.section-tabs{display:flex;flex-wrap:wrap;gap:.25rem;margin:0 0 1rem;border-bottom:1px solid var(--line);overflow-x:auto}
.section-tabs a{padding:.5rem .85rem;color:var(--muted);text-decoration:none;font-weight:600;font-size:.92rem;border-bottom:3px solid transparent;margin-bottom:-1px;white-space:nowrap}
.section-tabs a:hover{color:var(--ink)}
.section-tabs a.on{color:var(--ink);border-bottom-color:var(--accent)}
.section-tabs a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.section-tabs .badge{margin-left:.3rem}
html[data-theme="dark"] .section-tabs a.on{color:#fff}

/* 1.2.4.81 — Pipeline vertical scroll hotfix
   The 77 sticky top scrollbar plus a fixed height: calc(100vh - --pipe-chrome)
   made the board taller than the visible window (short Chrome/Edge at 125%).
   The row was flex: 0 0 auto inside a page with overflow:visible, so cards
   painted under the footer and neither the column nor the page could scroll. */
html[data-app="ats"] body.has-shell:has(.pipe-row) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.has-shell:has(.pipe-row) .foot {
  position: static !important;
  flex: 0 0 auto !important;
  margin-top: 0 !important;
  z-index: 2;
  pointer-events: auto;
}

/* Single-role board: fill leftover space above the footer; never paint under it. */
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
}
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-top,
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-tabs,
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-top-bar {
  flex: 0 0 auto !important;
}

/* Override the 74/77 100vh --pipe-chrome height so the row is flex-sized. */
.has-shell .page:has(.pipe-row) > .pipe-row,
.pipe-row {
  height: auto !important;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-row {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: calc(var(--pipe-vh, 100dvh) - var(--pipe-chrome, 0px)) !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.pipe-board-frame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden;
  position: relative;
}
.pipe-hscroll-top,
.pipe-board-frame > .pipe-hscroll {
  flex: 0 0 auto !important;
  position: relative !important;
  top: auto;
}
.has-shell .page:has(.pipe-row) .pipe-row-scroll,
.pipe-row-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
.pipe-row .board,
.pipe-row .board.board-live,
.board.board-live {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
}
.pipe-row .board .col,
.pipe-row.is-compact .board .col,
.board .col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}
.pipe-row .col-head,
.board .col-head,
.col-head {
  flex: 0 0 auto !important;
}
.pipe-row .col-cards,
.board .col-cards,
.col-cards {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: auto !important;
}
/* + Add stays at the column foot as a flex sibling, never covering cards. */
.pipe-row .col-add,
.board .col-add,
.col-add {
  flex: 0 0 auto !important;
  position: relative !important;
  bottom: auto;
  margin-top: 0;
  background: var(--board-col, #eef1f6);
  z-index: 2;
}

/* All-jobs: each role is bounded; the page scrolls between roles. */
.page.pipe-all,
.has-shell .page:has(.pipe-all-mark) {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  flex: 0 0 auto !important;
  padding-bottom: 12px !important;
}
.page.pipe-all > .pipe-row,
.pipe-all .pipe-row,
.has-shell .page:has(.pipe-all-mark) > .pipe-row {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: min(64vh, 640px);
  max-height: calc(var(--pipe-vh, 100dvh) - 132px) !important;
  margin: 0 0 32px !important;
  overflow: hidden;
}

/* 1.2.4.82 — Pipeline fills the window; columns scroll
   81 used height:auto + max-height, so column height:100% never resolved,
   cards were clipped with no scrollbar, and zoom:0.9 left a blank band
   above a slim footer. Use a definite flex-height chain (height:0; flex:1)
   and counteract zoom so the board fills the leftover space. */
html[data-app="ats"]:has(.pipe-row),
html[data-app="ats"] body.has-shell:has(.pipe-row) {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) {
  display: flex !important;
  flex-direction: row !important;
  min-height: 0 !important;
  align-items: stretch !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-nav {
  flex: 0 0 auto !important;
  height: 100% !important;
  max-height: 100% !important;
  align-self: stretch !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .topbar {
  flex: 0 0 auto !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .foot,
.has-shell:has(.pipe-row) .foot {
  flex: 0 0 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  position: static !important;
  overflow: hidden !important;
  border-top: 1px solid var(--line, #e3e7ee);
  background: var(--paper, #fff);
}

html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding-bottom: 0 !important;
  margin: 0 !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-top,
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-tabs,
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-top-bar {
  flex: 0 0 auto !important;
}

html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-row,
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-row {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

.pipe-board-frame {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
}
.pipe-hscroll-top,
.pipe-board-frame > .pipe-hscroll {
  flex: 0 0 auto !important;
  position: relative !important;
  top: auto !important;
}
.has-shell .page:has(.pipe-row) .pipe-row-scroll,
.pipe-row-scroll {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}

/* Counter CSS zoom so a 90% board still fills the scroller (no blank band). */
.pipe-row .board,
.pipe-row .board.board-live,
.board.board-live {
  height: calc(100% / var(--pipe-zoom, 1)) !important;
  max-height: none !important;
  min-height: 0 !important;
  width: max-content;
  align-items: stretch !important;
}

.pipe-row .board .col,
.pipe-row.is-compact .board .col,
.board .col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}
.pipe-row .col-head,
.board .col-head,
.col-head {
  flex: 0 0 auto !important;
}
.pipe-row .col-cards,
.board .col-cards,
.col-cards {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: auto !important;
  scrollbar-width: thin;
  scrollbar-color: #3F9F7F #e3e7ee;
}
.col-cards::-webkit-scrollbar {
  display: block !important;
  width: 10px !important;
  height: 10px !important;
}
.col-cards::-webkit-scrollbar-track {
  background: #e8ebf1;
  border-radius: 8px;
}
.col-cards::-webkit-scrollbar-thumb {
  background: #3F9F7F;
  border-radius: 8px;
}
.pipe-row .col-add,
.board .col-add,
.col-add {
  flex: 0 0 auto !important;
  position: relative !important;
  bottom: auto;
  margin-top: 0;
  background: var(--board-col, #eef1f6);
  z-index: 2;
}

/* Keep the chat button out of the footer band (bottom-right of the viewport). */
body.has-shell:has(.pipe-row) .assist-fab,
body.has-shell:has(.pipe-row) button.assist-fab {
  position: fixed !important;
  right: 20px !important;
  bottom: 36px !important;
  left: auto !important;
  top: auto !important;
}

/* Edge arrows stay inside the board frame, not in the footer. */
.pipe-board-frame > .pipe-edge {
  position: absolute !important;
  top: calc(26px + (100% - 26px) / 2) !important;
  bottom: auto !important;
  margin: 0 !important;
}

/* All-jobs: page may scroll between roles. */
.page.pipe-all,
.has-shell .page:has(.pipe-all-mark) {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-all) .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-all-mark) .shell-main {
  overflow-y: auto !important;
}

/* 1.2.4.83 — Explicit column heights; CSS zoom no longer breaks scroll
   CSS zoom on .board made height:100% resolve to auto, so columns grew with
   their cards, overflow was clipped by the frame, and there was no scrollbar.
   Zoom now only changes column width. Pixel heights are set in pipeline-zoom.js. */
.pipe-row .board,
.pipe-row .board.board-live,
.board.board-live {
  zoom: 1 !important;
  transform: none !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-items: stretch !important;
}
.pipe-row .board .col,
.pipe-row.is-compact .board .col,
.board .col {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
}
.pipe-row .col-cards,
.board .col-cards,
.col-cards {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: #3F9F7F #e3e7ee;
}
.col-cards::-webkit-scrollbar {
  display: block !important;
  width: 10px !important;
}
.col-cards::-webkit-scrollbar-track { background: #e8ebf1; border-radius: 8px; }
.col-cards::-webkit-scrollbar-thumb { background: #3F9F7F; border-radius: 8px; }
.pipe-row .col-add,
.board .col-add,
.col-add {
  flex: 0 0 auto !important;
  background: var(--board-col, #eef1f6);
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main {
  overflow: hidden !important;
}

/* 1.2.4.86 — Pipeline scrolls sideways again.
   The board was squeezed to the window width (flex shrink + overflow hidden set by
   pipeline-zoom.js), so 14 columns fit in ~1170px and nothing could scroll sideways.
   The board now takes the width of all its columns; .pipe-row-scroll scrolls it.
   :is(#pipe-fit-x, …) gives these rules id-level priority over the older patches. */
div:is(#pipe-fit-x, .board.board-live) {
  flex: 0 0 auto !important;
  width: max-content !important;
  min-width: max-content !important;
  max-width: none !important;
}
div:is(#pipe-fit-x, .pipe-row-scroll) { overflow-x: auto !important; }

/* 1.2.4.86 — + Add clears the footer; hide empty undo; visible scrollbars */
.board-undo[hidden],
.board-undo:empty {
  display: none !important;
}
.pipe-row .col-cards,
.board .col-cards,
.col-cards {
  overflow-y: scroll !important;
  scrollbar-width: thin !important;
  scrollbar-color: #3F9F7F #e3e7ee !important;
}
.col-cards::-webkit-scrollbar {
  display: block !important;
  width: 10px !important;
}
.col-cards::-webkit-scrollbar-thumb {
  background: #3F9F7F;
  border-radius: 8px;
}

/* ats-88 profile header, conversations, applying-for, find-time draft */
.profile-hero-v88 { padding: 14px 16px 12px !important; }
.ph-row1 { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.ph-id { min-width: 0; flex: 1 1 420px; }
.ph-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; }
.ph-kicker .kicker { margin: 0; font-size: 12px; }
.ph-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ph-name-line h1 { margin: 0; font-size: 1.55rem; line-height: 1.2; color: #26366B; }
.ph-scores { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ph-priority { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; background: #5b1f2a; color: #fff; font-size: 11px; font-weight: 650; }
.ph-sub { margin: 4px 0 0; color: var(--muted, #5b6270); font-size: 14px; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ph-actions .primary { background: #26366B; color: #fff; }
.ph-applying { margin: 8px 0 0; }
.ph-applying label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; color: #26366B; }
.ph-applying select { min-width: 220px; max-width: 100%; height: 34px; font-size: 14px; font-weight: 600; }
.ph-applying { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ph-applied-kicker { font-size: 13px; font-weight: 700; color: #26366B; }
.ph-applied-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; max-width: 100%; }
.ph-applied-chip { display: inline-flex; align-items: center; max-width: 100%; margin: 0; padding: 4px 10px; border: 1px solid #c5d0c9; border-radius: 999px; background: #f3f7f5; color: #26366B; font-size: 13px; font-weight: 650; line-height: 1.3; }
.ph-applied-chip a { color: #26366B; text-decoration: none; }
.ph-applied-chip a:hover, .ph-applied-chip a:focus { color: #3F9F7F; text-decoration: underline; outline: none; }
.ph-applied-chip.is-historical { background: #f4f5f8; border-color: #d5dae4; }
.ph-applied-chip.is-text { background: #fff; border-style: dashed; }
.ph-applied-add { margin: 0; }
.ph-applied-add label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 700; color: #26366B; }
.ph-applied-add select { min-width: 180px; max-width: 100%; height: 34px; font-size: 14px; font-weight: 600; }


.ph-wg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 8px 0 0; }
.ph-wg-label { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #26366B; }
.ph-wg-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.glance-strip { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 10px 0 0; padding: 8px 0 0; border-top: 1px solid #e2e6ef; }
.glance-strip li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 0; padding: 0; min-width: 0; max-width: 100%; background: none; border: 0; box-shadow: none; }
.glance-strip span { font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #6b7280; }
.glance-strip b { font-size: 13px; font-weight: 650; color: #1f2937; white-space: normal; overflow: visible; text-overflow: unset; }
.glance-stage.is-action { cursor: pointer; border-radius: 6px; padding: 2px 4px; }
.glance-stage.is-action:hover, .glance-stage.is-action:focus { background: #eef2fb; outline: none; }

.job-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 8px 0 0; padding: 8px 10px; background: #f3f7f5; border: 1px solid #cfe3da; border-radius: 8px; font-size: 13px; }
.job-banner-actions { display: flex; gap: 6px; align-items: center; }

.ph-next { margin: 8px 0 0; padding: 8px 10px; background: #eef4fb; border-left: 3px solid #26366B; border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.45; }
.ph-next span { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #26366B; }

/* Next interview banner at the top of the profile header */
.ph-next-interview {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 0 0 10px;
  padding: 8px 12px;
  background: #f3f7f5;
  border: 1px solid #cfe3da;
  border-left: 3px solid #3F9F7F;
  border-radius: 0 8px 8px 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  color: #26366B;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.ph-next-interview.is-empty {
  background: #f6f7fa;
  border-color: #d5dae4;
  border-left-color: #9aa3b5;
  color: #5b6270;
}
.ph-ni-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #26366B;
  flex: 0 0 auto;
}
.ph-ni-when { font-weight: 700; color: #26366B; min-width: 0; }
.ph-ni-who, .ph-ni-where { color: #26366B; min-width: 0; overflow-wrap: anywhere; }
.ph-ni-when + .ph-ni-who::before,
.ph-ni-when + .ph-ni-teams::before,
.ph-ni-when + .ph-ni-where::before,
.ph-ni-who + .ph-ni-teams::before,
.ph-ni-who + .ph-ni-where::before,
.ph-ni-teams + .ph-ni-where::before {
  content: "·";
  margin-right: 8px;
  color: #8a93a6;
  font-weight: 600;
}
.ph-ni-teams { color: #3F9F7F; font-weight: 700; text-decoration: none; }
.ph-ni-teams:hover, .ph-ni-teams:focus { text-decoration: underline; outline: none; }
.ph-ni-none { color: #5b6270; font-weight: 500; }
.ph-ni-details, .ph-ni-sched {
  margin-left: auto;
  font-weight: 650;
  color: #26366B;
  text-decoration: none;
  white-space: nowrap;
}
.ph-ni-details:hover, .ph-ni-details:focus,
.ph-ni-sched:hover, .ph-ni-sched:focus { color: #3F9F7F; text-decoration: underline; outline: none; }
@media (max-width: 1100px) {
  .ph-ni-details, .ph-ni-sched { margin-left: 0; }
}


.ph-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; }
.ph-more { position: relative; }
.ph-more > summary { list-style: none; cursor: pointer; border: 1px solid #d5dae4; border-radius: 8px; padding: 5px 10px; font-weight: 650; color: #26366B; background: #fff; }
.ph-more > summary::-webkit-details-marker { display: none; }
.ph-more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 180px; background: #fff; border: 1px solid #d5dae4; border-radius: 8px; box-shadow: 0 8px 24px rgba(38,54,107,.12); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.ph-more-menu a, .ph-more-menu button { display: block; width: 100%; text-align: left; padding: 6px 8px; border: 0; background: none; border-radius: 6px; font: inherit; color: #26366B; }
.ph-more-menu a:hover, .ph-more-menu button:hover { background: #f3f5fa; }
.ph-quick-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; }
.ph-quick-fields .quick-field { flex: 1 1 160px; margin: 0; }
.ph-quick-fields .quick-field input { width: 100%; }

.profile-conversations { margin-top: 12px; }
.conv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.conv-head h2 { margin: 0; }
.conv-toggles { display: flex; gap: 4px; }
.conv-tab { border: 1px solid #d5dae4; background: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 650; color: #26366B; }
.conv-tab.is-on { background: #26366B; color: #fff; border-color: #26366B; }
.conv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
@media (max-width: 1100px) { .conv-split { grid-template-columns: 1fr; } }
.conv-col h3 { margin: 0 0 6px; font-size: 15px; color: #26366B; }
.conv-ai-sum { margin: 4px 0 0; font-size: 13px; color: #374151; font-weight: 500; }
.conv-timeline-list { list-style: none; margin: 8px 0 0; padding: 0; }
.conv-tl-item { padding: 8px 0; border-bottom: 1px solid #eef0f5; }
.conv-tl-kind { font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: #3F9F7F; margin-right: 8px; }
.li-connect { padding: 10px; background: #f5f7fb; border-radius: 8px; }

.stage-move-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-move-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d5dae4; border-radius: 999px; padding: 5px 10px; cursor: pointer; font-weight: 650; }
.stage-move-pill.is-on, .stage-move-pill:has(input:checked) { background: #26366B; color: #fff; border-color: #26366B; }
.stage-move-pill input { accent-color: #3F9F7F; }
.stage-move-reject { margin-top: 8px; }

#ft-draft[hidden], .ft-draft[hidden] { display: none !important; }
#ft-draft-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Hide the redundant LinkedIn source-type select that sat beside the badge */
.profile-hero-v88 .source-edit select { display: none; }

@media (max-width: 1024px) {
  .ph-name-line h1 { font-size: 1.3rem; }
  .ph-actions { width: 100%; }
}

/* ats-89: full-width Add/Edit position form */
.position-panel {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding: 20px 24px;
}
form.position-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  max-width: none;
  margin: 0;
  text-align: left;
}
form.position-form .pos-import,
form.position-form .pos-grid,
form.position-form .pos-wide,
form.position-form .pos-actions {
  width: 100%;
  max-width: none;
}
form.position-form .pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: start;
  justify-items: stretch;
}
form.position-form .pos-wide,
form.position-form .pos-import {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
form.position-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  margin: 0;
  font-weight: 650;
  color: var(--ink, #26366B);
  font-size: 13px;
  gap: 6px;
}
form.position-form input,
form.position-form select,
form.position-form textarea {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 0;
  text-align: left;
}
form.position-form textarea {
  min-height: 8rem;
  resize: vertical;
}
form.position-form .pos-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}
form.position-form .pos-actions .btn,
form.position-form .pos-actions button {
  width: auto;
}
.pos-import-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.pos-import-actions button,
.pos-paste-text button {
  width: auto;
  align-self: flex-start;
}
.pos-import-status { margin: 0; }
.pos-import-status.is-error { color: #b42318; }
.pos-import-status.is-ok { color: #3F9F7F; }
.pos-source { margin: 0; font-size: 13px; word-break: break-all; }
@media (max-width: 720px) {
  form.position-form .pos-grid { grid-template-columns: 1fr; }
  .position-panel { padding: 16px; }
}

/* ats-89: status/kicker overlap, applying-for */
.profile-hero-v88 .ph-kicker {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px !important;
}
.profile-hero-v88 .ph-kicker .status-picker {
  position: relative !important;
  flex: 0 0 auto;
  margin: 0;
  z-index: 2;
}
.profile-hero-v88 .ph-kicker .kicker {
  position: relative !important;
  flex: 1 1 14rem;
  min-width: 0;
  margin: 0 !important;
}
.profile-hero-v88 .status-picker-btn {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  white-space: nowrap;
  padding: 2px 8px !important;
}
.profile-hero-v88 .status-picker-btn.is-empty {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 2px 8px !important;
  border-style: solid;
}
.profile-hero-v88 .status-picker-btn .status-label {
  display: inline !important;
  position: static !important;
}

/* ats-132 disclosure rows */
/* Shared disclosure rows: hide the native marker, put a chevron inline with the label. */
html[data-app="ats"] details.panel > summary,
html[data-app="ats"] details.settings-card > summary,
html[data-app="ats"] details.settings-more > summary,
html[data-app="ats"] details.easy-more > summary,
html[data-app="ats"] details.scorecard-form > summary,
html[data-app="ats"] details.ai-versions > summary,
html[data-app="ats"] details.profile-more > summary,
html[data-app="ats"] details.mission-more > summary,
html[data-app="ats"] details.paste-box > summary,
html[data-app="ats"] details.schedule-past > summary,
html[data-app="ats"] details.schedule-log-legacy > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Noto Sans", "Noto Sans Display", sans-serif;
  font-weight: 650;
  color: #26366B;
}
html[data-app="ats"] details.panel > summary::-webkit-details-marker,
html[data-app="ats"] details.settings-card > summary::-webkit-details-marker,
html[data-app="ats"] details.settings-more > summary::-webkit-details-marker,
html[data-app="ats"] details.easy-more > summary::-webkit-details-marker,
html[data-app="ats"] details.scorecard-form > summary::-webkit-details-marker,
html[data-app="ats"] details.ai-versions > summary::-webkit-details-marker,
html[data-app="ats"] details.profile-more > summary::-webkit-details-marker,
html[data-app="ats"] details.mission-more > summary::-webkit-details-marker,
html[data-app="ats"] details.paste-box > summary::-webkit-details-marker,
html[data-app="ats"] details.schedule-past > summary::-webkit-details-marker,
html[data-app="ats"] details.schedule-log-legacy > summary::-webkit-details-marker,
html[data-app="ats"] details.panel > summary::marker,
html[data-app="ats"] details.settings-card > summary::marker,
html[data-app="ats"] details.settings-more > summary::marker,
html[data-app="ats"] details.easy-more > summary::marker,
html[data-app="ats"] details.scorecard-form > summary::marker,
html[data-app="ats"] details.ai-versions > summary::marker,
html[data-app="ats"] details.profile-more > summary::marker,
html[data-app="ats"] details.mission-more > summary::marker,
html[data-app="ats"] details.paste-box > summary::marker,
html[data-app="ats"] details.schedule-past > summary::marker,
html[data-app="ats"] details.schedule-log-legacy > summary::marker {
  display: none;
  content: "";
}
html[data-app="ats"] details.panel > summary::before,
html[data-app="ats"] details.settings-card > summary::before,
html[data-app="ats"] details.settings-more > summary::before,
html[data-app="ats"] details.easy-more > summary::before,
html[data-app="ats"] details.scorecard-form > summary::before,
html[data-app="ats"] details.ai-versions > summary::before,
html[data-app="ats"] details.profile-more > summary::before,
html[data-app="ats"] details.mission-more > summary::before,
html[data-app="ats"] details.paste-box > summary::before,
html[data-app="ats"] details.schedule-past > summary::before,
html[data-app="ats"] details.schedule-log-legacy > summary::before {
  content: "";
  flex: 0 0 0.42rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  margin-top: -1px;
}
html[data-app="ats"] details.panel[open] > summary::before,
html[data-app="ats"] details.settings-card[open] > summary::before,
html[data-app="ats"] details.settings-more[open] > summary::before,
html[data-app="ats"] details.easy-more[open] > summary::before,
html[data-app="ats"] details.scorecard-form[open] > summary::before,
html[data-app="ats"] details.ai-versions[open] > summary::before,
html[data-app="ats"] details.profile-more[open] > summary::before,
html[data-app="ats"] details.mission-more[open] > summary::before,
html[data-app="ats"] details.paste-box[open] > summary::before,
html[data-app="ats"] details.schedule-past[open] > summary::before,
html[data-app="ats"] details.schedule-log-legacy[open] > summary::before {
  transform: rotate(45deg);
}
html[data-app="ats"] details.panel > summary:hover,
html[data-app="ats"] details.settings-card > summary:hover,
html[data-app="ats"] details.settings-more > summary:hover,
html[data-app="ats"] details.easy-more > summary:hover,
html[data-app="ats"] details.scorecard-form > summary:hover,
html[data-app="ats"] details.profile-more > summary:hover,
html[data-app="ats"] details.mission-more > summary:hover,
html[data-app="ats"] details.paste-box > summary:hover,
html[data-app="ats"] details.schedule-past > summary:hover,
html[data-app="ats"] details.schedule-log-legacy > summary:hover {
  color: #1c2a54;
}
html[data-app="ats"] details > summary h1,
html[data-app="ats"] details > summary h2,
html[data-app="ats"] details > summary h3 {
  display: inline;
  margin: 0;
  font-family: "Noto Sans", "Noto Sans Display", sans-serif;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
/* Avoid a second chevron on menus that already draw their own control. */
html[data-app="ats"] details.col-menu > summary::before,
html[data-app="ats"] details.pipe-tab-menu > summary::before,
html[data-app="ats"] details.job-filter-details > summary::before,
html[data-app="ats"] details.customize > summary::before,
html[data-app="ats"] details.pipe-tab-more > summary::before {
  content: none;
  display: none;
}
/* 1.2.4.x — Schedule interview composer (profile). No horizontal scroll 1024–2560. */
.sched-compose {
  background: #fff;
  border: 1px solid var(--border, #e3e7ee);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 18px;
  min-width: 0;
  max-width: 100%;
}
.sched-compose h3, .sched-suggest-block h4 {
  margin: 0 0 6px;
  color: var(--ZLK-Blue, #26366B);
  font-size: 1.05rem;
}
.sched-compose-lead { margin: 0 0 12px; }
.sched-attendees, .sched-meta, .sched-actions, .sched-custom, .sched-suggest-block { min-width: 0; }
.sched-chip-row, .sched-meta, .sched-actions, .ft-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sched-chip-row { margin: 0 0 8px; }
.sched-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 14%, #fff);
  color: var(--ZLK-Blue, #26366B);
  border-radius: 999px; padding: 4px 8px 4px 4px; font-size: 13px; font-weight: 600;
  max-width: 100%;
}
.sched-av {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ZLK-Blue, #26366B); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex: 0 0 auto;
}
.sched-chip-x {
  border: 0; background: transparent; cursor: pointer; color: var(--muted);
  font-size: 16px; line-height: 1; padding: 0 2px;
}
.sched-search-wrap { position: relative; min-width: 0; max-width: 100%; }
.sched-search-wrap input { width: 100%; max-width: 420px; box-sizing: border-box; }
.sched-suggest {
  list-style: none; margin: 4px 0 0; padding: 4px;
  position: absolute; left: 0; right: 0; max-width: 420px;
  background: #fff; border: 1px solid var(--border, #e3e7ee);
  border-radius: 10px; box-shadow: 0 8px 24px rgba(38, 54, 107, 0.12);
  z-index: 8; max-height: 240px; overflow: auto;
}
.sched-suggest button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 8px 10px; cursor: pointer; border-radius: 8px;
  color: var(--ZLK-Blue, #26366B);
}
.sched-suggest button:hover { background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 14%, #fff); }
.sched-suggest button span { font-size: 12px; color: var(--muted); font-weight: 500; }
.sched-meta { margin: 12px 0; align-items: end; }
.sched-meta label, .sched-avail-label, .sched-custom label { margin: 0; font-size: 12px; min-width: 0; }
.sched-avail-label textarea { width: 100%; max-width: 100%; box-sizing: border-box; display: block; margin-top: 4px; }
.sched-teams-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ZLK-Blue, #26366B); }
.sched-picked { margin: 10px 0; color: var(--ZLK-Blue, #26366B); }
.sched-conflict { margin: 6px 0 0; font-size: 13px; }
.sched-conflict.is-busy { color: #8a2a2a; }
.sched-conflict.is-free { color: #1d5c48; }
.sched-status { margin: 10px 0 0; font-size: 14px; }
.sched-status.is-ok { color: #1d5c48; }
.sched-status.is-err, .sched-status.is-warn { color: #6b4a10; }
.ft-chip-local { font-size: 11px; color: var(--ZLK-Green, #3F9F7F); font-weight: 650; }
.ft-chip { max-width: 100%; }
@media (min-width: 1024px) {
  .sched-compose, .schedule-panel, .ft-page { overflow-x: hidden; }
}
@media (max-width: 1100px) {
  .sched-search-wrap input, .sched-suggest { max-width: 100%; }
}
.ft-custom { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid color-mix(in srgb, #26366B 12%, #e6e8ee); min-width: 0; }
.ft-custom h3 { margin: 0 0 4px; color: var(--ZLK-Blue, #26366B); font-size: 15px; }
.ft-custom-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 10px; }
.ft-custom-row label { margin: 0; font-size: 12px; min-width: 0; }
.ft-custom-row input[type="date"], .ft-custom-row input[type="time"] { display: block; margin-top: 4px; }
.ft-custom-labels { margin: 8px 0 0; color: var(--ZLK-Blue, #26366B); font-weight: 650; }
.ft-custom-conflict { margin: 6px 0 0; font-size: 13px; }
.ft-custom-conflict.is-busy { color: #8a2a2a; }
.ft-custom-conflict.is-free { color: #1d5c48; }
.ft-lane-error { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: #8a2a2a; max-width: 220px; }
/* 1.2.4.x — One page scroll on profiles. Sidebar stays full height.
   Footer sits after the content. No 100vh trap, no blank band under the shell.
   No nested scroll box on the schedule panel.
   Document-only scroll: html is the scroller; body is overflow visible so the nav can stick. */
html[data-app="ats"] {
  height: auto !important;
  max-height: none !important;
  min-height: 100vh;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html[data-app="ats"] body.has-shell,
html[data-app="ats"] body.is-profile,
html[data-app="ats"] body:has(.profile-page) {
  height: auto !important;
  max-height: none !important;
  min-height: 100vh;
  /* Both axes must be visible. If overflow-x is hidden and overflow-y is
     visible, CSS computes overflow-y to auto, body becomes a scroll
     container, and the sticky sidebar scrolls away. Clip X on html only. */
  overflow: visible !important;
  display: flex;
  align-items: stretch;
}
html[data-app="ats"] .shell-nav,
html[data-app="ats"] body.has-shell .shell-nav,
html[data-app="ats"] body.is-profile .shell-nav {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  align-self: flex-start !important;
  overflow-x: hidden;
  overflow-y: auto;
}
html[data-app="ats"] .shell-main,
html[data-app="ats"] body.has-shell .shell-main,
html[data-app="ats"] body.is-profile .shell-main,
html[data-app="ats"] body.has-shell:has(.profile-page) .shell-main {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}
html[data-app="ats"] body.is-profile .shell-main > .page,
html[data-app="ats"] .has-shell .page,
html[data-app="ats"] .has-shell .page:has(.profile-page),
html[data-app="ats"] body.is-profile .profile-page,
html[data-app="ats"] body.is-profile .profile-main,
html[data-app="ats"] body.is-profile .profile-rail,
html[data-app="ats"] .profile-rail,
html[data-app="ats"] .schedule-panel,
html[data-app="ats"] .sched-compose {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
}
html[data-app="ats"] body.is-profile .profile-page { align-items: start !important; }
html[data-app="ats"] body.is-profile .profile-rail,
html[data-app="ats"] .profile-rail { position: static !important; }
html[data-app="ats"] .has-shell .foot,
html[data-app="ats"] body.is-profile .foot,
html[data-app="ats"] .has-shell:has(.profile-page) .foot,
html[data-app="ats"] .foot {
  position: static !important;
  height: auto !important;
  min-height: 40px !important;
  max-height: none !important;
  margin-top: 0 !important;
  flex: 0 0 auto !important;
}

/* Length and time zone stack full width. Teams toggle is its own row. */
html[data-app="ats"] .sched-meta {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
}
html[data-app="ats"] .sched-meta > label {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
html[data-app="ats"] .sched-meta > label select,
html[data-app="ats"] .sched-meta > label input {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Teams checkbox: left-aligned, single line, never overflows the card. */
html[data-app="ats"] .sched-compose > label.sched-teams-toggle,
html[data-app="ats"] label.sched-teams-toggle {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  float: none !important;
  position: static !important;
  grid-column: 1 / -1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ZLK-Blue, #26366B) !important;
  line-height: 1.3 !important;
}
html[data-app="ats"] .sched-teams-toggle input,
html[data-app="ats"] .sched-teams-toggle input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  position: static !important;
  align-self: center !important;
}
html[data-app="ats"] .sched-teams-toggle .sched-teams-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#sched-loc-wrap[hidden] { display: none !important; }

#sched-avail-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 4px;
  background: #fff;
  border: 1px solid var(--ZLK-Blue, #26366B);
  color: var(--ZLK-Blue, #26366B);
  font-weight: 650;
  font-size: 13px;
  border-radius: 8px;
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
}
#sched-avail-apply:hover,
#sched-avail-apply:focus-visible {
  background: color-mix(in srgb, var(--ZLK-Green, #3F9F7F) 14%, #fff);
}


/* Compact day-tab time picker */
.sched-day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 10px;
}
.sched-day-tab {
  border: 1px solid color-mix(in srgb, #26366B 18%, #e6e8ee);
  background: #fff;
  color: var(--ZLK-Blue, #26366B);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.sched-day-tab.is-on,
.sched-day-tab[aria-selected="true"] {
  background: var(--ZLK-Blue, #26366B);
  border-color: var(--ZLK-Blue, #26366B);
  color: #fff;
}
.sched-day-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}
.sched-day-chips .sched-slot,
.sched-day-chips .ft-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  width: auto;
  min-width: 0;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #3F9F7F 45%, #e6e8ee);
  background: #fff;
  color: var(--ZLK-Blue, #26366B);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.sched-day-chips .sched-slot.is-on,
.sched-day-chips .ft-chip.is-on {
  background: color-mix(in srgb, #3F9F7F 16%, #fff);
  border-color: var(--ZLK-Green, #3F9F7F);
}
.sched-slot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ZLK-Green, #3F9F7F);
  flex: 0 0 auto;
}
.sched-slot-dot.is-tight { background: #c9a227; }
.sched-slot-dot.is-unknown { background: #8a8f9c; }
.sched-custom { margin: 8px 0 0; padding: 0; border: 0; }
.sched-chip.is-warn { border-color: #c9a227; background: #fff8e8; }
.sched-chip-warn {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #8a5a00;
  margin: 2px 0 0 28px;
  line-height: 1.3;
  white-space: normal;
}
.sched-avail-note { margin: 6px 0 0; font-size: 13px; color: #5b6474; }
.sched-attendees { margin: 0 0 12px; }
@media (max-width: 960px) {
  html[data-app="ats"] body.is-profile .profile-rail,
  html[data-app="ats"] .profile-rail {
    position: static !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Help and Report a problem live in the header ? menu as of 1.2.4.163.
   Keep the navy Teams bubble (.teams-fab). Hide any leftover floating help button. */
html[data-app="ats"] .help-fab,
html[data-app="ats"] .report-fab,
html[data-app="ats"] button.report-problem,
html[data-app="ats"] .report-problem-fab {
  display: none !important;
}

/* Launch polish: card signals */
.task-owner-none { color: var(--muted); font-size: .85em; }
.task-interview { white-space: nowrap; }
.tenure-high { color: var(--warn, #b45309); font-weight: 600; }
.tenure-medium { color: var(--warn, #b45309); }

/* Personal profile layout (personalize.py) */
.profile-main > .psec { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.profile-main > [data-psec][hidden] { display: none !important; }

.ui-suggestion { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--card); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
.ui-suggestion p { margin: 0 0 8px; }
.ui-suggestion-kicker { font-weight: 600; color: var(--accent); margin-right: 6px; }
.ui-suggestion-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.ui-suggestion-foot { font-size: .82em; margin: 0; }

.my-pages-order { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; max-width: 460px; }
.my-pages-order li { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: var(--card); }
.my-pages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.recent-changes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.recent-changes li { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.recent-changes li.is-undone > span:first-child { text-decoration: line-through; color: var(--muted); }

/* 1.2.4.x — do not let body become a scroll container on profiles */
html[data-app="ats"] body:has(.profile-page),
html[data-app="ats"] body.is-profile,
html[data-app="ats"] body.has-shell:has(.profile-page) {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
/* 1.2.4.x — Restore the Assistant button. Keep leftover help/report fabs hidden.
   The navy Teams bubble stays to the left of the Assistant (see teams-bubble.css).
   Do not cover the header ? menu, the footer, or the sticky sidebar. */
html[data-app="ats"] .help-fab,
html[data-app="ats"] .report-fab,
html[data-app="ats"] button.report-problem,
html[data-app="ats"] .report-problem-fab {
  display: none !important;
}
html[data-app="ats"] button.assist-fab,
html[data-app="ats"] .assist-fab {
  display: inline-flex !important;
  position: fixed !important;
  z-index: 60 !important;
}

/* Profile + schedule: the whole page is the only scroller. No nested box. */
html[data-app="ats"] body.is-profile .shell-main,
html[data-app="ats"] body.is-profile .shell-main > .page,
html[data-app="ats"] body.is-profile .page,
html[data-app="ats"] body.is-profile .profile-page,
html[data-app="ats"] body.is-profile .profile-main,
html[data-app="ats"] body.is-profile .profile-rail,
html[data-app="ats"] .profile-rail,
html[data-app="ats"] .schedule-panel,
html[data-app="ats"] .sched-compose,
html[data-app="ats"] .sched-suggest-block,
html[data-app="ats"] .sched-day-tabs,
html[data-app="ats"] .sched-day-chips,
html[data-app="ats"] #sched-slots,
html[data-app="ats"] #sched-days,
html[data-app="ats"] #sched-custom-wrap,
html[data-app="ats"] .sched-slots,
html[data-app="ats"] .sched-suggest,
html[data-app="ats"] .ft-slots,
html[data-app="ats"] .ft-day-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
}
html[data-app="ats"] body.is-profile .profile-page {
  align-items: start !important;
}
html[data-app="ats"] body.is-profile .profile-rail,
html[data-app="ats"] .profile-rail {
  position: static !important;
}
/* GRO-52: checkboxes must not inherit input { width: 100% }. Same pattern as the Share dialog Include fix (GRO-10). */
input[type="checkbox"],
input[type="radio"] {
  width: auto !important;
  max-width: none;
  height: auto;
  padding: 0;
  flex: 0 0 auto;
  box-sizing: content-box;
  accent-color: #3F9F7F;
}

.email-files {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  border: 0;
  padding: 0;
  margin: 0.4rem 0;
  overflow-x: hidden;
}
.email-files legend {
  margin: 0 0 4px;
  padding: 0;
  font-weight: 600;
  color: #26366B;
}
.email-file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.email-file-list li {
  min-width: 0;
  max-width: 100%;
}
.email-files label.check,
.email-files label.email-file-row,
.profile-mail .email-files label {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 8px 12px !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
}
.email-files label.check input[type="checkbox"],
.email-files label.email-file-row input[type="checkbox"],
.profile-mail .email-files input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  margin: 0;
  padding: 0;
  position: static;
  align-self: center;
}
.email-file-name {
  flex: 1 1 12rem;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #1E2C48;
  font-weight: 600;
  font-size: 14px;
}
.email-file-meta {
  flex: 0 1 auto;
  min-width: 0;
  color: #5b6270;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .email-file-meta { white-space: normal; overflow-wrap: anywhere; }
}

/* Checkbox lists elsewhere: keep the box on the left and the label readable. */
label.check,
label.import-check {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
}
label.check input[type="checkbox"],
label.check input[type="radio"],
label.import-check input[type="checkbox"] {
  width: auto !important;
  flex: 0 0 auto;
  padding: 0;
  margin: 0;
}

/* GRO-57 — page view: one scroller, no clipped boards
   The main column (.shell-main) is the only vertical scroller. The sidebar
   stays put. The top bar sticks inside the main column at its full width and
   never sits under the nav or over page content. */
html[data-app="ats"] {
  --ats-topbar-h: 56px;
  height: auto !important;
  max-height: none !important;
  overflow: auto !important;
}
html[data-app="ats"] body.has-demo-banner {
  --ats-topbar-h: 104px;
}
html[data-app="ats"] body.has-shell,
html[data-app="ats"] body.has-shell.is-profile,
html[data-app="ats"] body.has-shell:has(.profile-page),
html[data-app="ats"] body.has-shell:has(.pipe-row),
html[data-app="ats"] body.has-shell:has(#queue),
html[data-app="ats"] body.has-shell:has(.find-people),
html[data-app="ats"] body.has-shell:has(.ft-page) {
  display: flex !important;
  align-items: stretch !important;
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
html[data-app="ats"] .shell-nav,
html[data-app="ats"] body.has-shell .shell-nav,
html[data-app="ats"] body.is-profile .shell-nav {
  position: relative !important;
  top: auto !important;
  height: 100vh !important;
  max-height: 100vh !important;
  align-self: stretch !important;
  flex: 0 0 220px !important;
  width: 220px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html[data-app="ats"] .shell-main,
html[data-app="ats"] body.has-shell .shell-main,
html[data-app="ats"] body.is-profile .shell-main,
html[data-app="ats"] body.has-shell:has(.profile-page) .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main,
html[data-app="ats"] body.has-shell:has(#queue) .shell-main,
html[data-app="ats"] body.has-shell:has(.ft-page) .shell-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  scroll-padding-top: var(--ats-topbar-h) !important;
}
html[data-app="ats"] .has-shell .topbar,
html[data-app="ats"] body.has-shell .topbar,
html[data-app="ats"] .topbar {
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  z-index: 40 !important;
  background: var(--card, #fff) !important;
  overflow: hidden !important;
}
html[data-app="ats"] .has-shell .topbar-left {
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}
html[data-app="ats"] .has-shell .topbar-title {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
html[data-app="ats"] .has-shell .page {
  flex: 1 1 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .has-shell .foot,
html[data-app="ats"] body.is-profile .foot,
html[data-app="ats"] .foot {
  position: static !important;
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 40px !important;
}

/* Profile + schedule: no nested scroll box. The rail grows with its content. */
html[data-app="ats"] body.is-profile .shell-main > .page,
html[data-app="ats"] body.is-profile .profile-page,
html[data-app="ats"] body.is-profile .profile-main,
html[data-app="ats"] body.is-profile .profile-rail,
html[data-app="ats"] .profile-rail,
html[data-app="ats"] .schedule-panel,
html[data-app="ats"] .sched-compose,
html[data-app="ats"] .sched-suggest-block,
html[data-app="ats"] .sched-day-tabs,
html[data-app="ats"] .sched-day-chips,
html[data-app="ats"] #sched-slots,
html[data-app="ats"] #sched-days,
html[data-app="ats"] #sched-custom-wrap,
html[data-app="ats"] .sched-slots,
html[data-app="ats"] .ft-page,
html[data-app="ats"] .ft-slots,
html[data-app="ats"] .ft-day-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
}
/* Coworker typeahead stays a short dropdown. */
html[data-app="ats"] .sched-suggest {
  max-height: 240px !important;
  overflow: auto !important;
}
html[data-app="ats"] body.is-profile .profile-page {
  align-items: start !important;
}
html[data-app="ats"] body.is-profile .profile-rail,
html[data-app="ats"] .profile-rail {
  position: static !important;
}

/* Pipeline: columns grow with cards; the page scrolls vertically.
   Only .pipe-row-scroll pans sideways. Arrows sit in padding, not on cards. */
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row),
html[data-app="ats"] .pipe-row,
html[data-app="ats"] .pipe-board-frame {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  flex: 0 0 auto !important;
}
html[data-app="ats"] .has-shell .page:has(.pipe-row) {
  display: flex !important;
  flex-direction: column !important;
  padding-bottom: 140px !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .pipe-row {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  width: 100% !important;
}
html[data-app="ats"] .pipe-board-frame {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: visible !important;
}
html[data-app="ats"] .pipe-row-scroll,
html[data-app="ats"] .has-shell .page:has(.pipe-row) .pipe-row-scroll {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 280px) !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  scroll-padding-inline: 48px;
}
html[data-app="ats"] .pipe-row .board,
html[data-app="ats"] .pipe-row .board.board-live,
html[data-app="ats"] .board.board-live {
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 280px) !important;
  width: max-content !important;
  overflow: visible !important;
  align-items: start !important;
  padding: 8px 72px 24px 0 !important;
  zoom: var(--pipe-zoom, 1);
}
html[data-app="ats"] .pipe-row .board .col,
html[data-app="ats"] .pipe-row.is-compact .board .col,
html[data-app="ats"] .board .col {
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 280px) !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
}
html[data-app="ats"] .pipe-row .col-head,
html[data-app="ats"] .board .col-head,
html[data-app="ats"] .col-head {
  position: sticky !important;
  top: var(--ats-topbar-h) !important;
  z-index: 3 !important;
  flex: 0 0 auto !important;
  background: var(--board-col, #eef1f6) !important;
}
html[data-app="ats"] .pipe-row .col-cards,
html[data-app="ats"] .board .col-cards,
html[data-app="ats"] .col-cards {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html[data-app="ats"] .pipe-row .col-add,
html[data-app="ats"] .board .col-add,
html[data-app="ats"] .col-add {
  flex: 0 0 auto !important;
  position: static !important;
}
html[data-app="ats"] .pipe-board-frame > .pipe-edge,
html[data-app="ats"] .pipe-edge {
  position: absolute !important;
  top: calc(var(--ats-topbar-h) + 48px) !important;
  transform: none !important;
  bottom: auto !important;
  z-index: 7 !important;
  width: 36px !important;
  height: 36px !important;
}
html[data-app="ats"] .pipe-edge-left { left: 4px !important; }
html[data-app="ats"] .pipe-edge-right { right: 4px !important; }

/* Find people: top bar and table header keep their own space.
   Bottom padding clears the Ask and Brief bubbles. */
html[data-app="ats"] .has-shell .page:has(#queue),
html[data-app="ats"] .has-shell .page:has(.find-people) {
  padding-bottom: 140px !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
html[data-app="ats"] table.sourcing-queue thead th,
html[data-app="ats"] #queue table.sourcing-queue thead th {
  position: sticky !important;
  top: var(--ats-topbar-h) !important;
  z-index: 5 !important;
  background: var(--card, #fff) !important;
  box-shadow: 0 1px 0 var(--line, #e3e7ee);
}

/* GRO-57b — pipeline board must not widen the page.
   Only .pipe-row-scroll pans sideways. The main column and top bar stay
   within the viewport; min-width:0 lets the flex item shrink. */
html[data-app="ats"] .shell-main,
html[data-app="ats"] body.has-shell .shell-main,
html[data-app="ats"] body.is-profile .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main,
html[data-app="ats"] body.has-shell:has(#queue) .shell-main,
html[data-app="ats"] body.has-shell:has(.ft-page) .shell-main {
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .has-shell .topbar,
html[data-app="ats"] body.has-shell .topbar,
html[data-app="ats"] .topbar {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .has-shell .page,
html[data-app="ats"] .has-shell .page:has(.pipe-row),
html[data-app="ats"] .pipe-row,
html[data-app="ats"] .pipe-board-frame,
html[data-app="ats"] .pipe-row-scroll,
html[data-app="ats"] .has-shell .page:has(.pipe-row) .pipe-row-scroll {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .has-shell .page:has(.pipe-row),
html[data-app="ats"] .pipe-row,
html[data-app="ats"] .pipe-board-frame,
html[data-app="ats"] .pipe-row-scroll {
  width: 100% !important;
}
html[data-app="ats"] .pipe-row-scroll,
html[data-app="ats"] .has-shell .page:has(.pipe-row) .pipe-row-scroll {
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html[data-app="ats"] .pipe-row .board,
html[data-app="ats"] .pipe-row .board.board-live,
html[data-app="ats"] .board.board-live {
  max-width: none !important;
  width: max-content !important;
}

/* GRO-57c — main column uses leftover width, not 100vw.
   max-width: 100% on .shell-main was 100% of the viewport, so the column
   started after the 220px sidebar and ran 220px past the right edge. */
html[data-app="ats"] .shell-main,
html[data-app="ats"] body.has-shell .shell-main,
html[data-app="ats"] body.is-profile .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main,
html[data-app="ats"] body.has-shell:has(#queue) .shell-main,
html[data-app="ats"] body.has-shell:has(.ft-page) .shell-main,
html[data-app="ats"] body.has-shell:has(.find-people) .shell-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
}

/* GRO-57d — one shared emoji map
   Status, tags and source marks use the same glyph, label and order on every
   page. Pipeline cards no longer hide the status label. */
html[data-app="ats"] .status-picker-btn .status-label,
html[data-app="ats"] .task-card .status-label,
html[data-app="ats"] .task-toolbar .status-label,
html[data-app="ats"] .task-top-actions .status-label,
html[data-app="ats"] .rdb-card .status-label,
html[data-app="ats"] .people-table .status-label,
html[data-app="ats"] .search-hit .status-label,
html[data-app="ats"] .today-card .status-label,
html[data-app="ats"] .today-fu-row .status-label {
  display: inline !important;
  position: static !important;
}
html[data-app="ats"] .task-card .status-picker-btn,
html[data-app="ats"] .task-toolbar .status-picker-btn,
html[data-app="ats"] .rdb-card .status-picker-btn,
html[data-app="ats"] .rdb-table .status-picker-btn,
html[data-app="ats"] .people-table .status-picker-btn,
html[data-app="ats"] .search-hit .status-picker-btn,
html[data-app="ats"] .today-card .status-picker-btn,
html[data-app="ats"] .today-fu-row .status-picker-btn,
html[data-app="ats"] .find-result .status-picker-btn {
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 2px 8px !important;
  border-style: solid !important;
  background: var(--card, #fff) !important;
  white-space: nowrap;
  font-size: 13px;
  gap: 6px;
}
html[data-app="ats"] .source-badge .source-emoji {
  font-size: 13px;
  line-height: 1;
}
html[data-app="ats"] .contacted-badge,
html[data-app="ats"] .contacted-banner strong {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
html[data-app="ats"] .badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}
html[data-app="ats"] .task-card .badge-row { margin: 4px 0 0; }
html[data-app="ats"] .ph-kicker .badge-row { margin-left: 4px; }

/* GRO-57e — tall columns grow with the page; glance source labels keep title case.
   Older rules used a viewport-tall .pipe-row and overflow-y:hidden on the
   sideways scroller, which clipped Rejected and other long columns. The
   scroller is now as tall as its tallest column (height: max-content) so
   overflow-y:hidden cannot hide cards. The page (.shell-main) scrolls down.
   A sticky horizontal scrollbar and sticky side arrows stay on screen. */
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row),
html[data-app="ats"] .has-shell .page:has(.pipe-row),
html[data-app="ats"] .has-shell .page:has(.pipe-row) > .pipe-row,
html[data-app="ats"] body.has-shell:has(.pipe-row) .pipe-row,
html[data-app="ats"] .pipe-row,
html[data-app="ats"] .pipe-board-frame {
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
}

html[data-app="ats"] .pipe-board-frame {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
}

html[data-app="ats"] .pipe-row-scroll,
html[data-app="ats"] .has-shell .page:has(.pipe-row) .pipe-row-scroll,
html[data-app="ats"] .page.pipe-all .pipe-row-scroll,
html[data-app="ats"] .has-shell .page:has(.pipe-all-mark) .pipe-row-scroll,
html[data-app="ats"] div:is(#pipe-fit-x, .pipe-row-scroll) {
  flex: 0 0 auto !important;
  height: max-content !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 280px) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html[data-app="ats"] .pipe-row .board,
html[data-app="ats"] .pipe-row .board.board-live,
html[data-app="ats"] .board.board-live {
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 280px) !important;
  width: max-content !important;
  align-items: start !important;
  overflow: visible !important;
}

html[data-app="ats"] .pipe-row .board .col,
html[data-app="ats"] .pipe-row.is-compact .board .col,
html[data-app="ats"] .board .col {
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 280px) !important;
  align-self: start !important;
  display: flex !important;
  flex-direction: column !important;
}

html[data-app="ats"] .pipe-row .col-cards,
html[data-app="ats"] .board .col-cards,
html[data-app="ats"] .col-cards {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
}

/* Keep the horizontal scrollbar under the top bar while the page scrolls. */
html[data-app="ats"] .pipe-hscroll,
html[data-app="ats"] .pipe-hscroll-top,
html[data-app="ats"] .pipe-board-frame > .pipe-hscroll {
  position: sticky !important;
  top: var(--ats-topbar-h, 56px) !important;
  bottom: auto !important;
  z-index: 8 !important;
  flex: 0 0 auto !important;
  background: var(--page, #f4f6fa);
}

/* Side arrows stay in view as the page scrolls down a tall board. */
html[data-app="ats"] .pipe-board-frame > .pipe-edge,
html[data-app="ats"] .pipe-edge {
  position: sticky !important;
  top: calc(var(--ats-topbar-h, 56px) + 48px) !important;
  bottom: auto !important;
  z-index: 7 !important;
}

/* Glance "Source" kicker stays uppercase; the badge itself matches the cards. */
html[data-app="ats"] .glance-strip .source-badge,
html[data-app="ats"] .glance-strip .source-badge *,
html[data-app="ats"] .profile-hero .glance-strip .source-badge,
html[data-app="ats"] .profile-hero .source-badge,
html[data-app="ats"] .profile-hero .source-badge * {
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* ATS-FIX user-menu-and-fixed-bubbles — User menu is not clipped by the top bar.
   Ask and Teams stay fixed to the viewport corner while the page scrolls. */
html[data-app="ats"] .has-shell .topbar,
html[data-app="ats"] body.has-shell .topbar,
html[data-app="ats"] .topbar {
  overflow: visible !important;
}
html[data-app="ats"] .has-shell .topbar-left,
html[data-app="ats"] .has-shell .topbar-title {
  overflow: hidden !important;
}
html[data-app="ats"] .has-shell .topbar-tools,
html[data-app="ats"] .has-shell .topbar .user-menu,
html[data-app="ats"] .has-shell .topbar .help-menu {
  overflow: visible !important;
}
html[data-app="ats"] .user-menu-list,
html[data-app="ats"] .help-menu-list {
  z-index: 4000 !important;
  overflow: visible !important;
}
html[data-app="ats"] .user-menu-list {
  min-width: 200px;
  max-width: min(320px, calc(100vw - 16px));
}
html[data-app="ats"] .user-menu-list a,
html[data-app="ats"] .user-menu-list button {
  overflow: visible;
  white-space: nowrap;
}
html[data-app="ats"] button.assist-fab,
html[data-app="ats"] .assist-fab,
html[data-app="ats"] aside.assist-panel,
html[data-app="ats"] .assist-panel,
html[data-app="ats"] button.teams-fab,
html[data-app="ats"] .teams-fab,
html[data-app="ats"] aside.teams-panel,
html[data-app="ats"] .teams-panel {
  position: fixed !important;
}

/* ATS-FIX window-scroll-footer —
   The page uses one window scroll. GRO-57 pinned body and .shell-main to
   100vh and made .shell-main the scroller. That parked the footer at the
   bottom of the first viewport while Settings and other long pages
   overflowed through it, so the footer appeared as a mid-page strip.
   Restore document scroll: html is the only vertical scroller, the
   sidebar stays sticky, the footer sits after the content, and short
   pages still keep the footer at the bottom of the viewport.
   Ask and Teams stay fixed to the bottom-right. */
html[data-app="ats"] {
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  overflow-x: clip !important;
  overflow-y: auto !important;
}
html[data-app="ats"] body.has-shell,
html[data-app="ats"] body.has-shell.is-profile,
html[data-app="ats"] body.has-shell:has(.profile-page),
html[data-app="ats"] body.has-shell:has(.pipe-row),
html[data-app="ats"] body.has-shell:has(#queue),
html[data-app="ats"] body.has-shell:has(.find-people),
html[data-app="ats"] body.has-shell:has(.ft-page) {
  display: flex !important;
  align-items: stretch !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  /* Both axes must be visible. If overflow-x is hidden and overflow-y is
     visible, CSS computes overflow-y to auto, body becomes a scroll
     container, and the sticky sidebar scrolls away. Clip X on html only. */
  overflow: visible !important;
}
html[data-app="ats"] .shell-nav,
html[data-app="ats"] body.has-shell .shell-nav,
html[data-app="ats"] body.is-profile .shell-nav {
  position: sticky !important;
  top: 0 !important;
  height: 100vh !important;
  max-height: 100vh !important;
  align-self: flex-start !important;
  flex: 0 0 220px !important;
  width: 220px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html[data-app="ats"] .shell-main,
html[data-app="ats"] body.has-shell .shell-main,
html[data-app="ats"] body.is-profile .shell-main,
html[data-app="ats"] body.has-shell:has(.profile-page) .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main,
html[data-app="ats"] body.has-shell:has(#queue) .shell-main,
html[data-app="ats"] body.has-shell:has(.ft-page) .shell-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  display: flex !important;
  flex-direction: column !important;
}
html[data-app="ats"] .has-shell .page,
html[data-app="ats"] body.is-profile .shell-main > .page,
html[data-app="ats"] .has-shell .page:has(.profile-page),
html[data-app="ats"] .has-shell .page:has(.pipe-row) {
  flex: 1 0 auto !important;
  height: auto !important;
  max-height: none !important;
  min-height: auto !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .has-shell .foot,
html[data-app="ats"] body.is-profile .foot,
html[data-app="ats"] .has-shell:has(.profile-page) .foot,
html[data-app="ats"] .has-shell:has(.pipe-row) .foot,
html[data-app="ats"] .foot {
  position: static !important;
  flex: 0 0 auto !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin-top: auto !important;
}

html[data-app="ats"] .settings-shell,
html[data-app="ats"] .settings-main,
html[data-app="ats"] .settings-main .panel {
  min-width: 0 !important;
  max-width: 100% !important;
}
html[data-app="ats"] .settings-main .grid,
html[data-app="ats"] .users-table {
  width: 100% !important;
  max-width: 100% !important;
}
html[data-app="ats"] .settings-main .panel {
  overflow-x: auto !important;
}
/* end ATS-FIX window-scroll-footer */

/* ATS-FIX alerts-full-name — 2026-11-18
   Full name first in Alerts and similar Today lists; only the note ellipsizes. */
.today-side-row .today-row-body,
#today-alerts .today-row-body,
#today-attention .today-row-body,
#today-interviews .today-row-body,
#today-team .today-row-body,
#today-offers .today-row-body {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.today-side-row .name,
.today-side-row.person-row .name,
#today-alerts .name,
#today-attention .name,
#today-interviews .name,
#today-team .name,
#today-offers .name {
  display: inline-block;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}

.today-side-row .today-fu-role,
#today-alerts .today-fu-role,
#today-attention .today-fu-role,
#today-interviews .today-fu-role,
#today-team .today-fu-role,
#today-offers .today-fu-role {
  display: inline-block;
  flex: 1 1 0%;
  min-width: 0;
  max-width: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
  color: var(--muted);
}
/* end ATS-FIX alerts-full-name */

/* ATS-FIX pipeline-card-details */
/* Page may scroll vertically; each stage still scrolls on its own. */
html[data-app="ats"] body.has-shell,
html[data-app="ats"] body.has-shell:has(.pipe-row) {
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
html[data-app="ats"] .shell-main,
html[data-app="ats"] body.has-shell .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main,
html[data-app="ats"] body.has-shell:has(.pipe-row):not(:has(.pipe-all-mark)) .shell-main {
  display: block !important;
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

/* Never let the pipeline row or page collapse (0-height broke scroll and screenshots). */
html[data-app="ats"] .has-shell .page,
html[data-app="ats"] body.has-shell .shell-main > .page,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-main > .page,
html[data-app="ats"] body.has-shell:has(.pipe-row):not(:has(.pipe-all-mark)) .shell-main > .page,
html[data-app="ats"] body.has-shell:has(.pipe-all-mark) .shell-main > .page {
  display: block !important;
  flex: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
  padding-bottom: 24px !important;
}
html[data-app="ats"] .pipe-row,
html[data-app="ats"] body.has-shell:has(.pipe-row) .pipe-row,
html[data-app="ats"] body.has-shell:has(.pipe-row):not(:has(.pipe-all-mark)) .pipe-row,
html[data-app="ats"] body.has-shell:has(.pipe-all-mark) .pipe-row {
  display: block !important;
  flex: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 360px) !important;
  overflow: visible !important;
  --pipe-min-h: calc(100vh - 14rem);
  --pipe-max-h: 160vh;
}


/* Left nav: same full-height sidebar on every page, 1024-2560. */
html[data-app="ats"] .shell-nav,
html[data-app="ats"] body.has-shell .shell-nav,
html[data-app="ats"] body.is-profile .shell-nav,
html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
  flex: 0 0 220px !important;
  width: 220px !important;
  min-width: 220px !important;
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  align-self: flex-start !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html[data-app="ats"] .pipe-board-frame,
html[data-app="ats"] body.has-shell:has(.pipe-row) .pipe-board-frame {
  flex: none !important;
  min-height: var(--pipe-min-h, 360px) !important;
  height: auto !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
  position: relative !important;
}
html[data-app="ats"] .pipe-board-frame > .pipe-hscroll,
html[data-app="ats"] .pipe-hscroll-top {
  position: static !important;
  flex: 0 0 auto !important;
  top: auto !important;
}
html[data-app="ats"] .pipe-row-scroll,
html[data-app="ats"] .has-shell .page:has(.pipe-row) .pipe-row-scroll,
html[data-app="ats"] div:is(#pipe-fit-x, .pipe-row-scroll) {
  flex: 0 1 auto !important;
  min-height: var(--pipe-min-h, 360px) !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .board,
html[data-app="ats"] .board-live,
html[data-app="ats"] .pipe-row .board {
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 360px) !important;
  align-items: stretch !important;
  align-content: stretch !important;
  overflow: visible !important;
  width: max-content !important;
}
html[data-app="ats"] .board .col,
html[data-app="ats"] .pipe-row .col {
  height: auto !important;
  min-height: var(--pipe-min-h, 360px) !important;
  max-height: var(--pipe-max-h, 160vh) !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: visible !important;
}
html[data-app="ats"] .col-head {
  flex: 0 0 auto !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  background: var(--paper, #f4f6fa) !important;
}
html[data-app="ats"] .pipe-row .col-cards,
html[data-app="ats"] .board .col-cards,
html[data-app="ats"] .col-cards {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: var(--pipe-max-h, 160vh) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}
html[data-app="ats"] .col-add {
  flex: 0 0 auto !important;
}

/* All-jobs: each role board is tall enough to scroll inside, page still scrolls. */
html[data-app="ats"] body.has-shell:has(.pipe-all-mark) .pipe-board-frame,
html[data-app="ats"] .page.pipe-all .pipe-board-frame {
  min-height: var(--pipe-min-h, 70vh) !important;
  height: auto !important;
  max-height: var(--pipe-max-h, 160vh) !important;
}

html[data-app="ats"] .section-tabs {
  overflow-x: auto;
  flex-wrap: wrap;
}

html[data-app="ats"] .kicker .stage-emoji,
html[data-app="ats"] .glance-stage .stage-emoji {
  margin-right: 0.25em;
}

/* Card face */
html[data-app="ats"] .task-card {
  position: relative !important;
  overflow: visible !important;
  padding: 8px 28px 8px 10px !important;
}
html[data-app="ats"] .pipe-row.is-compact .task-card {
  padding: 6px 30px 6px 8px !important;
}
html[data-app="ats"] .pipe-row.is-compact .task-card:has(> .task-card-remove) .task-name {
  padding-right: 24px !important;
}
html[data-app="ats"] .task-card > .task-card-remove {
  position: absolute !important;
  top: 6px !important;
  right: 6px !important;
  z-index: 4 !important;
  width: 22px !important;
  height: 22px !important;
  line-height: 20px !important;
  padding: 0 !important;
}
html[data-app="ats"] .task-card:has(> .task-card-remove) .task-name {
  padding-right: 22px !important;
  min-width: 0 !important;
}
html[data-app="ats"] .task-card .task-sub,
html[data-app="ats"] .task-card .task-loc {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.3 !important;
  color: var(--muted, #5b6573) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html[data-app="ats"] .pipe-row.is-compact .task-card .task-sub,
html[data-app="ats"] .pipe-row.is-compact .task-card .task-loc {
  font-size: 11px !important;
}
html[data-app="ats"] .task-card .task-brief-line {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  white-space: normal !important;
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: var(--ink, #1c2430) !important;
  max-height: none !important;
  height: auto !important;
}
html[data-app="ats"] .task-card .task-interviewers {
  margin: 2px 0 0 !important;
  font-size: 11px !important;
  color: var(--muted, #5b6573) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html[data-app="ats"] .task-card .task-foot {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 4px 0 0 !important;
  min-width: 0 !important;
}
html[data-app="ats"] .task-card .task-owner-name,
html[data-app="ats"] .task-card .task-days,
html[data-app="ats"] .task-card .task-next,
html[data-app="ats"] .task-card .task-interview {
  font-size: 11px !important;
  color: var(--muted, #5b6573) !important;
  white-space: nowrap !important;
}
html[data-app="ats"] .task-card .task-owner-name {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 8rem !important;
}
html[data-app="ats"] .task-card .avatar.sm {
  width: 18px;
  height: 18px;
  font-size: 9px;
}
html[data-app="ats"] .pipe-row.is-compact .task-card .avatar.sm {
  width: 16px;
  height: 16px;
  font-size: 8px;
}
html[data-app="ats"] .pipe-details-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}

/* Card details off: tight name + status emojis. Owner avatar stays. */
html[data-app="ats"] .pipe-row.is-details-off .task-card-extra,
html[data-app="ats"] .pipe-row.is-details-off .task-sub,
html[data-app="ats"] .pipe-row.is-details-off .task-loc,
html[data-app="ats"] .pipe-row.is-details-off .task-brief-line,
html[data-app="ats"] .pipe-row.is-details-off .task-interviewers,
html[data-app="ats"] .pipe-row.is-details-off .task-owner-name,
html[data-app="ats"] .pipe-row.is-details-off .task-days,
html[data-app="ats"] .pipe-row.is-details-off .task-next,
html[data-app="ats"] .pipe-row.is-details-off .task-interview,
html[data-app="ats"] .pipe-row.is-details-off .task-card .source-badge {
  display: none !important;
}

/* Never show previously-contacted or long teammate banners on the board. */
html[data-app="ats"] .task-card > .contacted-badge,
html[data-app="ats"] .task-card > .contacted-banner,
html[data-app="ats"] .task-card .task-foot .contacted-badge,
html[data-app="ats"] .task-card .contacted-banner,
html[data-app="ats"] .task-card-hover {
  display: none !important;
}

/* Side arrows stay inside the board frame, not over the first card. */
html[data-app="ats"] .pipe-board-frame > .pipe-edge,
html[data-app="ats"] .pipe-edge {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 7 !important;
  width: 36px !important;
  height: 36px !important;
  bottom: auto !important;
}
html[data-app="ats"] .pipe-edge-left { left: 4px !important; }
html[data-app="ats"] .pipe-edge-right { right: 4px !important; }

/* Keep the page itself from scrolling sideways; only the board does. */
html[data-app="ats"] body.has-shell:has(.pipe-row) {
  overflow-x: hidden !important;
}

/* Profile header: wrap positions, wrap actions, no Log */
html[data-app="ats"] .ph-applying,
html[data-app="ats"] .profile-hero-v88 .ph-applying {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 8px 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html[data-app="ats"] .ph-applied-list,
html[data-app="ats"] .profile-hero-v88 .ph-applied-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  width: auto !important;
  max-width: 100% !important;
  overflow: visible !important;
}
html[data-app="ats"] .ph-applied-chip,
html[data-app="ats"] .ph-applied-chip a,
html[data-app="ats"] .profile-hero-v88 .ph-applied-chip,
html[data-app="ats"] .profile-hero-v88 .ph-applied-chip a {
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  box-sizing: border-box !important;
}
html[data-app="ats"] .ph-applied-add,
html[data-app="ats"] .profile-hero-v88 .ph-applied-add {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
}
html[data-app="ats"] .ph-applied-add label,
html[data-app="ats"] .ph-applying label {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
html[data-app="ats"] .ph-applied-add select,
html[data-app="ats"] .ph-applying select,
html[data-app="ats"] .profile-hero-v88 .ph-applied-add select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 34px !important;
  box-sizing: border-box !important;
  text-overflow: clip !important;
  overflow: hidden !important;
}
html[data-app="ats"] .ph-actions,
html[data-app="ats"] .profile-hero-v88 .ph-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  overflow: visible !important;
}
html[data-app="ats"] .ph-actions > *,
html[data-app="ats"] .profile-hero-v88 .ph-actions > * {
  flex: 0 1 auto !important;
  max-width: 100% !important;
}
html[data-app="ats"] .profile-hero,
html[data-app="ats"] .profile-hero-v88,
html[data-app="ats"] .ph-row1,
html[data-app="ats"] .ph-id {
  overflow: visible !important;
  max-width: 100% !important;
}


/* Beat earlier, more-specific !important rules that keep .page at 24px and .pipe-row at 0. */
html[data-app="ats"],
html[data-app="ats"] body,
html[data-app="ats"] body.has-shell,
html[data-app="ats"] body.has-shell:has(.pipe-row) {
  height: auto !important;
  max-height: none !important;
  min-height: 100vh !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)),
html[data-app="ats"] .has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)),
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) {
  display: block !important;
  flex: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}
html[data-app="ats"] body.has-shell:has(.pipe-row) .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-row,
.has-shell .page:has(.pipe-row):not(.pipe-all):not(:has(.pipe-all-mark)) > .pipe-row {
  display: block !important;
  flex: none !important;
  height: auto !important;
  max-height: none !important;
  min-height: var(--pipe-min-h, 360px) !important;
  overflow: visible !important;
}

/* Left nav fills the window on every page; Workspace stays at the top; Account stays at the bottom. */
@media (min-width: 900px) {
  html[data-app="ats"] .shell-nav,
  html[data-app="ats"] body.has-shell .shell-nav,
  html[data-app="ats"] body.is-profile .shell-nav,
  html[data-app="ats"] body.has-shell:has(.pipe-row) .shell-nav {
    display: flex !important;
    flex-direction: column !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 40 !important;
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    align-self: flex-start !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
  }
  html[data-app="ats"] .shell-nav .nav,
  html[data-app="ats"] #shell-nav-list {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  html[data-app="ats"] .shell-nav-foot {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
  }
}
/* end ATS-FIX pipeline-card-details */
