/* Staff CRM layout on top of /shared/ui.css */

.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--ink); }
.signin-card { width: min(400px, 100%); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 0 28px 28px; display: grid; gap: 14px; overflow: hidden; }
.signin-brand { margin: 0 -28px 8px; padding: 22px 28px; background: var(--ink); border-bottom: 3px solid var(--honey); display: flex; align-items: center; justify-content: space-between; }
.signin-brand .logo { height: 34px; width: auto; }
.signin-brand span { color: var(--cream); font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; font-size: 12px; opacity: .8; }
.signin-card h1 { margin-top: 6px; }

.layout { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
/* Sidebar in the brand ink, like the top bar of boeciatalent.com and the client portal. */
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 22px;
  padding: 22px 14px 14px; background: var(--ink); color: var(--cream); border-right: 3px solid var(--honey);
  --text: var(--cream); --text-2: rgb(244 238 223 / .78); --muted: rgb(244 238 223 / .6); --hover: rgb(244 238 223 / .07); --border: rgb(244 238 223 / .14);
}
.sidebar .brand { padding: 0 10px; }
.sidebar .logo, .topbar .logo { height: 36px; width: auto; display: block; }
.sidebar .btn.ghost { color: var(--cream); }
.sidebar .btn.ghost:hover { background: var(--hover); }
nav { display: grid; gap: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 8px;
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.nav-link svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.nav-link:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav-link[aria-current="page"] { background: rgb(244 238 223 / .1); color: var(--cream); box-shadow: inset 3px 0 0 var(--honey); }
.nav-link[aria-current="page"] svg { color: var(--honey); }
.nav-link .count-dot { margin-left: auto; }
/* Comment drafts (Connector site). */
.draft .row { gap: 10px; }
.draft-post { margin: 6px 0 10px; padding: 8px 12px; border-left: 3px solid var(--border); color: var(--text-2); font-size: 13px; white-space: pre-line; }
.draft-text { margin: 4px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); white-space: pre-line; }

/* Recruiting · Sales · Connector: the three staff sites (ats., crm., connector.), as tabs in an ink bar that continues the sidebar. */
.top-sticky { position: sticky; top: 0; z-index: 30; background: var(--ink); border-bottom: 1px solid rgb(244 238 223 / .12); }
.sitebar { display: flex; height: 56px; padding: 0 22px; }
.site-switch { display: flex; gap: 2px; }
.site-link {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
  font-size: 14px; font-weight: 600; color: rgb(244 238 223 / .62); text-decoration: none; white-space: nowrap; transition: color .15s;
}
.site-link svg { width: 17px; height: 17px; flex: none; }
.site-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--honey); transform: scaleX(0); transition: transform .22s cubic-bezier(.16, 1, .3, 1);
}
.site-link:hover { color: var(--cream); text-decoration: none; }
.site-link:hover::after { transform: scaleX(.35); opacity: .5; }
.site-link[aria-current="page"] { color: var(--cream); }
.site-link[aria-current="page"] svg { color: var(--honey); }
.site-link[aria-current="page"]::after { transform: none; opacity: 1; }
.site-link:focus-visible { outline: 2px solid var(--honey); outline-offset: -6px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .site-link, .site-link::after { transition: none; } }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.me-text { display: grid; min-width: 0; }
.me-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 650; font-size: 12px;
}
.sidebar .avatar { background: var(--honey); color: var(--ink); }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }

.main-col { min-width: 0; }
.topbar { display: none; }
.main { padding: 28px 32px 48px; max-width: 1280px; outline: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .titles { display: grid; gap: 4px; min-width: 0; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search input { padding-left: 34px !important; }
.filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 13px; cursor: pointer; }
.filter-chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.filter-chip .n { color: var(--muted); margin-left: 4px; }
.filter-chip[aria-pressed="true"] .n { color: inherit; opacity: .7; }

.bulkbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-text); font-weight: 500; }

/* dashboard */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 4px; text-decoration: none; color: var(--text); border-top: 3px solid transparent; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { text-decoration: none; box-shadow: var(--shadow-lg); border-top-color: var(--honey); }
.stat-label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.stat-note { font-size: 12.5px; color: var(--muted); }
.list { display: grid; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--hover); text-decoration: none; border-radius: 8px; }
.list-item .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.list-item .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .meta { color: var(--muted); font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.off { background: transparent; }

/* pipeline board */
.board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.col { flex: 0 0 248px; background: var(--surface-2); border-radius: var(--radius); padding: 10px; border: 2px solid transparent; }
.col.is-empty { flex-basis: 150px; }
.col.drop { border-color: var(--accent); background: var(--accent-soft); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.col-head .n { color: var(--muted); font-weight: 500; }
.col-cards { display: grid; gap: 8px; min-height: 36px; }
.pcard { background: var(--surface); border-radius: 10px; box-shadow: var(--shadow-sm); padding: 11px 12px; cursor: grab; border: 1px solid transparent; display: grid; gap: 4px; }
.pcard:hover { border-color: var(--border-strong); }
.pcard.dragging { opacity: .45; }
.pcard .name { font-weight: 600; }
.pcard .meta { color: var(--muted); font-size: 12.5px; }
.pcard .row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.pcard select { height: 28px; font-size: 12.5px; padding: 0 6px; width: auto; max-width: 140px; }
.col-empty { color: var(--muted); font-size: 12px; text-align: center; padding: 8px 0; }

/* candidate picker */
.picker-list { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 10px; }
.picker-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; }
.picker-row:last-child { border-bottom: 0; }
.picker-row:hover { background: var(--hover); }

/* activity */
.feed { display: grid; }
.feed-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .who { font-weight: 600; }
.feed-item.client { background: linear-gradient(90deg, var(--accent-soft), transparent 70%); border-radius: 8px; padding-left: 6px; }

.share-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; align-content: start; }
.share-item pre { margin: 0; white-space: pre-wrap; font: 13px/1.5 'Manrope', system-ui, sans-serif; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; max-height: 104px; overflow-y: auto; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }

.perm-list { display: grid; gap: 10px; }

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 45; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 10px 16px 4px; }
  .sitebar { height: 46px; padding: 0 8px; }
  .site-switch { display: grid; width: 100%; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .site-link { padding: 0 4px; font-size: 13px; gap: 6px; }
  .topbar .btn.ghost { color: var(--cream); }
  .topbar .logo { height: 28px; }
  .main { padding: 18px 16px 40px; }
  .page-head { align-items: flex-start; }
  .search { max-width: none; }
  .col { flex-basis: 78vw; }
  .table .hide-sm { display: none; }
}

/* small helpers used by leads / employees / settings */
.text-danger { color: var(--red-text); font-weight: 500; }
.push-right { margin-right: auto; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 520px; }
.perm-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm, 8px); background: var(--surface-2); cursor: pointer; }
.perm-row input { margin-top: 3px; }
.perm-row .perm-key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted); }
.file-drop { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--border); border-radius: var(--radius); }
.link-list { display: grid; }
.link-list .row { justify-content: space-between; flex-wrap: nowrap; padding: 10px 0; border-top: 1px solid var(--border); }
.link-list .row:first-child { border-top: 0; }
.link-list .row > span { min-width: 0; }
.link-list code { font-size: 12.5px; word-break: break-all; }

/* job distribution */
.dot.on { background: var(--green); }
.dot.idle { background: transparent; box-shadow: inset 0 0 0 1.5px var(--border-strong); }
.share-item.done { background: var(--surface-2); }
.share-item.done pre { display: none; }
.push-left { margin-left: auto; }
.ml-4 { margin-left: 4px; }
button.list-item.as-button { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border); font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.list-item.as-button:hover { background: var(--hover); border-radius: 8px; }
.as-link { border: 0; cursor: pointer; font: inherit; font-size: 12px; justify-self: start; }
.picker-row .grow { flex: 1; display: grid; gap: 3px; min-width: 0; }
.picker-list .picker-row:has(.chips) { align-items: flex-start; }
.dot.bad { background: var(--red); }

/* documents */
.doc-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 18px; align-items: start; }
.doc-form { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.doc-form .form { gap: 12px; }
.doc-actions { margin-bottom: 12px; }
.doc-paper { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 44px 52px; line-height: 1.6; font-size: 14.5px; max-width: 860px; }
.doc-paper h1 { font-size: 22px; margin-bottom: 14px; }
.doc-paper h2 { font-size: 16px; margin: 22px 0 8px; }
.doc-paper h3 { font-size: 14.5px; margin: 16px 0 6px; }
.doc-paper p, .doc-paper ul, .doc-paper ol { margin: 0 0 10px; }
.doc-paper ul, .doc-paper ol { padding-left: 22px; }
.doc-paper table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 13.5px; }
.doc-paper th, .doc-paper td { border: 1px solid var(--border); padding: 7px 10px; text-align: left; vertical-align: top; }
.doc-paper blockquote { margin: 10px 0; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); font-size: 13px; }
.doc-paper hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }
.doc-fill { background: var(--accent-soft); border-radius: 3px; padding: 0 2px; }
.doc-missing { background: #fff2a8; color: #6b5300; border-radius: 3px; padding: 0 3px; font-weight: 600; }
@media (max-width: 960px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-form { position: static; max-height: none; }
  .doc-paper { padding: 24px 20px; }
}
.notice.ok { background: var(--green-soft); color: var(--green-text); }
.doc-form label.is-missing input, .doc-form label.is-missing textarea { border-color: var(--accent); background: var(--accent-soft); }
.doc-actions .push { flex: 1; }
.status-grid { display: grid; gap: 10px; }
.status-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.status-row .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--muted); }
.status-row.ok .dot { background: var(--green); }
.status-row.warn .dot { background: var(--accent); }
.status-row.bad .dot { background: var(--red); }
.status-row .what { font-weight: 600; }
.status-row .detail { grid-column: 2 / 4; font-size: 12.5px; color: var(--text-2); }
.status-row .detail b { color: var(--text); font-weight: 600; }
.meter { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--green); }
.meter.warn > span { background: var(--accent); }
.meter.bad > span { background: var(--red); }
@media print {
  .sidebar, .topbar, .sitebar, .page-head, .doc-form, .doc-actions, .toast, .scrim { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; max-width: none; }
  .doc-layout { display: block; }
  body { background: #fff; }
  .doc-paper { box-shadow: none; padding: 0; max-width: none; color: #000; background: #fff; font-size: 11.5pt; }
  .doc-fill { background: none; padding: 0; }
  .doc-missing { background: none; color: #000; }
  .doc-paper blockquote { background: none; }
}

/* ---------- newsletter ---------- */
.nl-compose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .nl-compose { grid-template-columns: minmax(0, 1fr); } }
.nl-compose .form { min-width: 0; }
.nl-label { font-weight: 600; font-size: 13.5px; }
.nl-toolbar { display: flex; flex-wrap: wrap; gap: 6px; }
#nl-body { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13.5px; line-height: 1.6; min-height: 320px; }
.nl-preview { position: sticky; top: 16px; min-width: 0; }
.nl-frame-wrap { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; display: flex; justify-content: center; }
.nl-frame-wrap iframe { width: 100%; height: 640px; border: 0; border-radius: 8px; background: #EFF1EC; transition: width .2s; }
.nl-frame-wrap.phone iframe { width: 380px; max-width: 100%; }
#modal .nl-frame-wrap iframe { height: 70vh; }
.nl-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.nl-timeline { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; }
.nl-timeline li { border-left: 3px solid var(--honey); padding: 2px 0 2px 12px; }

/* ---------- screening scorecard ---------- */
.score-list { display: grid; gap: 8px; margin-bottom: 14px; }
.score-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.score-pick { display: inline-flex; gap: 4px; }
.score-pick label { position: relative; }
.score-pick input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.score-pick span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--text-2); }
.score-pick input:checked + span { background: var(--accent); color: #15241F; border-color: var(--accent-strong); }
.score-pick input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.score-pick input:disabled + span { opacity: .6; }
@media (max-width: 520px) { .score-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- prospects ---------- */
.pr-list { display: grid; gap: 12px; }
.pr-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 6px; }
.pr-who { display: grid; gap: 2px; min-width: 0; }
.pr-who a.primary-cell { color: var(--text); text-decoration: none; }
.pr-who a.primary-cell:hover { text-decoration: underline; }
.pr-who a.primary-cell svg { width: 13px; height: 13px; vertical-align: -1px; opacity: .6; }
.pr-next { margin: 2px 0 4px; font-size: 14px; }
.pr-bulk { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.pr-queue { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.conn-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-muted, inherit); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
span.conn-pill { cursor: default; height: 26px; }
.conn-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA39E; flex: none; }
.conn-pill.on { color: var(--green-text); border-color: var(--green-soft); background: var(--green-soft); }
.conn-pill.on .dot { background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.pr-actions { flex-wrap: wrap; gap: 6px; }
.pr-templates details { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; margin-bottom: 8px; }
.pr-templates summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.pr-templates pre { white-space: pre-wrap; margin: 8px 0; }
#pr-prio { height: 36px; border-radius: 8px; }

/* Prospects, All tab: one header row per category */
.table tr.pr-group th { text-align: left; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; padding-top: 1.1rem; background: transparent; cursor: default; }
.pr-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.pr-filters select { width: auto; min-width: 11rem; flex: 0 1 auto; }

/* LinkedIn campaigns */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.camp-card { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.camp-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(0, 0, 0, .06); }
.camp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.camp-head b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.camp-bar { height: 6px; border-radius: 99px; background: var(--hover); overflow: hidden; }
.camp-bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.camp-nums { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--text-2); }
.camp-note { padding: 14px 16px; margin-bottom: 14px; }
.camp-note p { margin: 4px 0 0; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
