/* 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: 1120px;
}
.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); }
}

/* 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; }

/* 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; }
.has-shell .page { padding-bottom: 88px; }

.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; }

.people-page.resumes .people-table { table-layout: fixed; width: 100%; }
.people-page.resumes .people-table th,
.people-page.resumes .people-table td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.25;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
.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);
}
.people-page.resumes .people-table .col-person { width: 18%; }
.people-page.resumes .people-table .col-role { width: 14%; }
.people-page.resumes .people-table .col-file { width: 16%; }
.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%; }

.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; }
