:root {
  --ink: #1c1915;
  --muted: #655e54;
  --paper: #f3efe7;
  --card: #fffcf7;
  --line: #e3d9cc;
  --accent: #7d2e24;
  --accent-ink: #fffaf6;
  --good: #215c3e;
  --warn: #8a5a10;
  --split: #f6ddd8;
  --sans: "Segoe UI", "Helvetica Neue", sans-serif;
  --serif: Georgia, "Iowan Old Style", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.45 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0 0 8px; }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 20px; }
h2 span, .count { color: var(--muted); font-family: var(--sans); font-size: 14px; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 18px; background: var(--ink); color: #f6f1ea; position: sticky; top: 0; z-index: 5; }
.brand { font-family: var(--serif); font-size: 20px; text-decoration: none; color: #f6f1ea; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: #f6f1ea; text-decoration: none; padding: 6px 8px; border-radius: 4px; }
.nav a.on, .nav a:hover { background: #3a332c; }
.badge { background: var(--accent); border-radius: 99px; padding: 0 6px; font-size: 12px; }
.find { flex: 1; } /* overridden below for compact search */
.find input, input, select, textarea { font: inherit; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 4px; padding: 7px 8px; width: 100%; }
.find input { background: #2a241f; color: #f6f1ea; border-color: #4a433c; }
.logout { margin: 0; }
button, .btn { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 4px; padding: 6px 10px; cursor: pointer; text-decoration: none; display: inline-block; }
button.primary, .btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.quiet { background: transparent; color: inherit; border-color: transparent; }
button.danger { background: var(--accent); color: white; border-color: var(--accent); }
button.on { background: var(--ink); color: white; border-color: var(--ink); }
.page { width: min(1180px, calc(100% - 32px)); margin: 20px auto 40px; }
.page-head, .profile-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 14px; }
.kicker { letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.lede, .muted, .sub { color: var(--muted); }
.flash { background: var(--warn-bg, #fff6e5); border: 1px solid var(--warn-border, #f2c14e); color: var(--ink); padding: 8px 10px; }
.row, .panel, .kpi, .card, .login-card, .sheet { background: var(--card); border: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; margin: 8px 0; align-items: center; }
.name { font-family: var(--serif); font-size: 18px; text-decoration: none; }
.row-actions, .inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-actions form { display: flex; gap: 6px; margin: 0; }
section { margin: 18px 0; }
.empty { color: var(--muted); }
.board { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { width: 220px; flex: 0 0 220px; background: var(--board-col); border-radius: 8px; padding: 8px; }
.col header { display: flex; justify-content: space-between; }
.card { display: block; padding: 8px; margin-top: 8px; text-decoration: none; }
.card span, .card strong { display: block; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips a, .tag { border: 1px solid var(--line); background: var(--card); padding: 3px 8px; text-decoration: none; font-size: 12px; }
.grid { width: 100%; border-collapse: collapse; background: var(--card); }
.grid th, .grid td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid th a { text-decoration: none; }
.overdue { color: var(--accent); font-weight: 650; }
.help { margin: 8px 0 14px; }
.pager { display: flex; gap: 12px; }
.split { display: grid; grid-template-columns: 1.4fr .8fr; gap: 16px; align-items: start; }
.panel { padding: 12px; margin: 0 0 12px; }
.scorestack { display: flex; gap: 8px; }
.scorestack div { background: var(--card); border: 1px solid var(--line); min-width: 84px; padding: 8px 10px; }
.scorestack b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.scorestack span { color: var(--muted); font-size: 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.alerts { margin: 0 0 12px; padding-left: 18px; }
.alerts li { color: var(--accent); }
pre.brief { white-space: pre-wrap; font-family: var(--sans); margin: 0 0 10px; }
.stack { display: grid; gap: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fields .wide, .fields .check { grid-column: 1 / -1; }
label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
label.check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; }
.timeline { margin: 12px 0 0; padding-left: 18px; }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meter { display: flex; justify-content: space-between; margin: 8px 0 0; }
.docs { list-style: none; padding: 0; }
.docs li { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.docs form { margin: 0; }
tr.split, .split-row { background: var(--split); }
.kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.kpis article, .kpi { padding: 10px 12px; }
.kpis b { display: block; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.checks { list-style: none; padding: 0; }
.checks li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.checks .ok b { color: var(--good); }
.checks .bad b { color: var(--accent); }
.links { display: flex; gap: 12px; flex-wrap: wrap; }
.foot { color: var(--muted); text-align: center; padding: 4px 12px; font-size: 11px; }
.login-body { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: min(420px, calc(100% - 32px)); padding: 22px; }
.sheet { padding: 14px; }
code { font-size: 12px; }
@media (max-width: 900px) {
  .split, .fields, .kpis, .score-grid { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .row, .profile-head, .page-head { flex-direction: column; align-items: stretch; }
}
@media print {
  .topbar, .foot, form, .row-actions { display: none; }
  .page { width: auto; }
}

/* notes */
.notes-panel { border-left: 3px solid var(--accent); }
.notes { list-style: none; padding: 0; margin: 10px 0 0; }
.notes li { padding: 8px 0; border-top: 1px solid var(--line); }
.notes li p { margin: 2px 0; }
.note-meta { font-size: 12px; color: var(--muted); }
.note-meta b { color: var(--ink); }
.note-body { white-space: pre-wrap; color: var(--muted); }
.notes-feed li.panel { padding: 10px 12px; margin: 0 0 8px; border-top: 1px solid var(--line); }
.note-snip { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.note-cell { min-width: 160px; }
.qn { font-size: 12px; margin-top: 4px; }
.qn summary { cursor: pointer; color: var(--muted); }
.qn form { margin-top: 6px; }
.card-link { display: block; text-decoration: none; }
.card-link span, .card-link strong { display: block; }
.facts { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.tag.warn { border-color: var(--accent); color: var(--accent); }


/* outreach import, teammate contact, ContactOut, workflow brief */
.outreach-banner, .contact-banner, .contact-warn, .workflow-brief {
  border: 1px solid var(--line);
  background: var(--banner-bg);
  padding: 10px 12px;
  margin: 0 0 14px;
}
.contact-banner, .contact-warn { border-left: 3px solid var(--accent); color: var(--ink); font-weight: 600; }
.contact-banner.recent, .contact-warn.recent, .contacted-badge.recent, .contact-flag.recent {
  background: var(--split);
}
.contacted-badge, .contact-flag {
  display: inline-block;
  margin-left: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--split);
  border-radius: 99px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 650;
  vertical-align: middle;
  cursor: help;
}
.contact-flag { display: block; margin: 4px 0 0; border-radius: 4px; font-weight: 600; }
.preview-row { align-items: flex-start; margin: 8px 0; }
.preview-row span { display: grid; gap: 2px; }
.steps { padding-left: 20px; }
.steps li { margin: 6px 0; }
.contact-values { list-style: none; padding: 0; margin: 0 0 10px; }
.contact-values li { padding: 4px 0; border-bottom: 1px solid var(--line); }
.li-thread { margin: 8px 0; }
.li-messages { list-style: none; padding: 0; margin: 8px 0 0; }
.li-messages li { padding: 6px 0 6px 10px; border-left: 3px solid var(--line); margin: 6px 0; }
.li-messages li.out { border-left-color: var(--accent); }
.li-messages li.in { border-left-color: var(--good); }

.reach-banner, .daily-update { border: 1px solid var(--banner-border); background: var(--banner-bg); color: var(--banner-ink); padding: 10px 12px; margin: 0 0 14px; }
.reach-banner { border-left: 3px solid var(--accent); }
.reach-banner p { margin: 0; }
.daily-lines { margin: 6px 0 0; padding-left: 18px; }
#reach-again .inline label { margin: 0; }

.user-menu { position: relative; }
.user-menu-list { position: absolute; right: 0; top: 100%; background: var(--card); color: var(--ink); border: 1px solid var(--line); min-width: 180px; padding: 6px; z-index: 80; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.user-menu-list a, .user-menu-list button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 6px 8px; color: var(--ink); text-decoration: none; cursor: pointer; }
.user-menu-list a:hover, .user-menu-list button:hover { background: var(--paper); }
.user-menu-list form { margin: 0; }
.get-started .progress-bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 0 0 12px; }
.get-started .progress-bar span { display: block; height: 100%; background: var(--accent); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.checklist .check-mark { width: 22px; height: 22px; border-radius: 99px; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: 12px; flex: 0 0 22px; }
.checklist li.done .check-mark { background: var(--good); color: #fff; border-color: var(--good); }
.tour-overlay { display: none; position: fixed; inset: 0; background: rgba(28,25,21,.45); z-index: 40; }
.tour-tip { display: none; position: fixed; z-index: 41; background: var(--card); color: var(--ink); border: 1px solid var(--line); padding: 12px 14px; width: 360px; max-width: calc(100vw - 24px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.tour-tip h3 { margin: 0 0 6px; font-size: 18px; }
.tour-tip p { margin: 0 0 8px; }
.tour-step { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.tour-actions { display: flex; gap: 6px; justify-content: flex-end; }
.tour-highlight { position: relative; z-index: 42; box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--accent); border-radius: 4px; }

body.compact .page { max-width: 1100px; }
body.compact .panel { padding: 10px 12px; }
body.compact h1 { font-size: 1.4rem; }
.help-open, .assist-toggle { margin-left: 6px; }
.helpbar { position: fixed; inset: 0; background: rgba(28,25,21,.45); z-index: 50; display: grid; place-items: start center; padding: 12vh 16px 16px; }
.helpbar[hidden] { display: none; }
.helpbar-card { background: var(--card); color: var(--ink); width: min(640px, 100%); border: 1px solid var(--line); padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.helpbar-card header { display: flex; justify-content: space-between; align-items: center; }
.helpbar-card input[type=search] { width: 100%; margin: 8px 0; }
.helpbar-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 240px; overflow: auto; }
.helpbar-list a { display: block; padding: 6px 8px; text-decoration: none; color: var(--ink); }
.helpbar-list a:hover { background: var(--paper); }
.helpbar-list span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.assist-panel { position: fixed; top: 56px; right: 12px; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 72px); overflow: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); z-index: 35; padding: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.assist-panel header { display: flex; justify-content: space-between; align-items: center; }
.assist-log { min-height: 80px; max-height: 40vh; overflow: auto; margin: 8px 0; }
.assist-msg { padding: 6px 8px; margin: 0 0 6px; border-radius: 6px; white-space: pre-wrap; }
.assist-msg.you { background: var(--paper); }
.assist-msg.bot { background: var(--paper); color: var(--ink); }
.match-flag { display: inline-block; margin-left: 6px; font-size: 12px; background: var(--accent, #3b5); color: #fff; padding: 1px 6px; border-radius: 99px; }

.profile-flow { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 960px) {
  .profile-flow { grid-template-columns: 1fr minmax(280px, 360px); align-items: start; }
  .profile-flow .slot.wide { grid-column: 1 / -1; }
}
.search-snip mark, .search-snip { font-size: 12px; }
.search-snip mark { background: var(--pill-seniority-bg); color: var(--pill-seniority-ink); padding: 0 1px; }
.customize { margin: 0 0 12px; }
.customize-list { list-style: none; padding: 0; margin: 0 0 8px; }
.customize-item { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.customize-item[draggable="true"] { cursor: grab; }
body[data-assistant="0"] .assist-toggle, body[data-assistant="0"] .assist-panel { display: none; }
body.side-panel .assist-panel { display: block; }
body.side-panel .assist-panel[hidden] { display: none !important; }
.slot[data-admin-shown] { outline: 1px dashed var(--line); }

.scorestack .headline-score { min-width: 10rem; }
.scorestack .reasons, .panel .reasons { margin: 0.4rem 0 0; padding-left: 1.1rem; font-size: 0.85rem; font-weight: 400; }
.scorestack .reasons li { font-size: 0.8rem; color: inherit; }

/* Settings hub */
.settings-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2rem; }
.settings-nav a { font-size: 0.95rem; }
.settings-nav { position: sticky; top: 0; background: var(--paper); padding: 8px 0; z-index: 5; }
.badge-list { list-style: none; padding: 0; }
.badge-list li { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.badge { display: inline-block; font-size: 12px; line-height: 1.3; padding: 1px 7px; border-radius: 99px; background: var(--count-bg); color: var(--count-ink); border: 1px solid var(--line); margin: 0 4px 2px 0; white-space: nowrap; }
.badge-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }

/* Assistant FAB + right-side panel */
.assist-fab {
  position: fixed; z-index: 40;
  min-width: 52px; min-height: 52px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--card, #fff); color: var(--ink);
  box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; font: inherit;
}
.assist-corner-bottom-right .assist-fab { right: 20px; bottom: 20px; }
.assist-corner-bottom-left .assist-fab { left: 20px; bottom: 20px; }
.assist-corner-top-right .assist-fab { right: 20px; top: 72px; }
.assist-corner-top-left .assist-fab { left: 20px; top: 72px; }
body[data-assistant="0"] .assist-fab,
body[data-assistant="0"] .assist-panel { display: none !important; }
.assist-panel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw); max-height: 100vh;
  overflow: auto; background: var(--card); color: var(--ink);
  border-left: 1px solid var(--line); z-index: 45; padding: 16px 16px 24px;
  box-shadow: -8px 0 30px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
}
.assist-panel[hidden] { display: none !important; }
.assist-panel header { display: flex; justify-content: space-between; align-items: center; }
.assist-log { flex: 1; min-height: 120px; overflow: auto; margin: 8px 0; }
body.assist-open { }
@media (max-width: 640px) {
  .assist-panel { width: 100vw; }
  .settings-nav { font-size: 0.9rem; }
}


/* Connection status pills, banners, and 3-step guides */
.status-pill {
  display: inline-block; font-size: 11px; line-height: 1.3;
  padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--pill-school-bg); color: var(--pill-school-ink); white-space: nowrap; vertical-align: middle;
}
.status-pill.connected { background: var(--pill-source-bg); color: var(--pill-source-ink); border-color: var(--accent); }
.status-pill.not_connected, .status-pill.coming_soon { background: var(--pill-school-bg); color: var(--pill-school-ink); border-color: var(--line); }
.status-pill.waiting { background: var(--pill-seniority-bg); color: var(--pill-seniority-ink); border-color: var(--banner-border); }
.connect-banner {
  border: 1px solid var(--banner-border); background: var(--banner-bg); color: var(--banner-ink);
  padding: 14px 16px; border-radius: 12px; margin: 0 0 1.2rem;
}
.connect-banner ul { margin: 8px 0 0; padding: 0; list-style: none; }
.connect-banner li { margin: 0 0 6px; }
.connection-card { margin: 1rem 0 1.4rem; padding-top: 4px; }
.connection-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.connection-head h3 { margin: 0; }
.steps-visual { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
@media (min-width: 720px) {
  .steps-visual { grid-template-columns: repeat(3, 1fr); }
}
.steps-visual li {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  background: var(--card, #fff);
}
.steps-visual .step-num {
  flex: 0 0 28px; height: 28px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.steps-visual p { margin: 4px 0 0; }
.setup-notices code.setup-link { display: block; margin-top: 4px; word-break: break-all; }
.sso-row { margin: 1rem 0 0; }


/* Get Started connect-your-tools */
.connect-tools .progress-bar { margin: 8px 0 16px; }
.connect-grid { display: grid; gap: 14px; }
@media (min-width: 960px) {
  .connect-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
}
.connect-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 16px;
  background: var(--card, #fff);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.connect-card .btn.primary, .connect-card button.primary { align-self: flex-start; }
.drop-zone {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
}
.drop-zone.drag { border-color: var(--accent); background: var(--hover-bg); }

/* Smaller, quieter assistant bubble + compact panel */
.assist-fab {
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  padding: 0; border-radius: 50%;
  font-size: 18px; line-height: 1;
  opacity: 0.85; box-shadow: 0 2px 8px rgba(0,0,0,.12);
  display: inline-flex; align-items: center; justify-content: center;
}
.assist-fab:hover, .assist-fab:focus { opacity: 1; }
.assist-panel {
  width: min(320px, 100vw);
  padding: 12px 12px 16px;
}
.assist-panel header h2 { font-size: 1rem; margin: 0; }
.assist-notice {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 11px; line-height: 1.4; margin: 0 0 10px;
  padding: 6px 8px 6px 10px; border-radius: 8px;
  background: var(--banner-bg); border: 1px solid var(--banner-border); color: var(--banner-ink);
  color: var(--ink);
}
.assist-notice[hidden] { display: none !important; }
.assist-notice-dismiss {
  flex: 0 0 auto; margin-left: auto; padding: 0 4px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 14px; line-height: 1; cursor: pointer;
}
.assist-notice-dismiss:hover { color: var(--ink); }
.assist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.assist-chips .chip {
  font-family: var(--sans, inherit);
  font-size: 12px; line-height: 1.3; font-weight: 500;
  padding: 5px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--paper, #f7f8fb);
  color: var(--ink); cursor: pointer;
}
.assist-chips .chip:hover { background: var(--ZLK-TableHoverGreen, #e8f4ee); border-color: #b7e0cc; }
.assist-empty { color: var(--muted, #666); font-size: 13px; padding: 4px 0 8px; }
.assist-empty ul { margin: 6px 0 0; padding-left: 1.1rem; }
.assist-msg { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.assist-msg.you { background: var(--hover-bg); color: var(--ink); margin-left: 18px; }
.assist-msg.bot { background: var(--paper); color: var(--ink); margin-right: 8px; }
.assist-msg .assist-actions { margin-top: 6px; display: flex; gap: 6px; }
.assist-msg .assist-actions button { font-size: 11px; }
.assist-typing { font-size: 12px; color: var(--muted, #666); margin: 0 0 8px; display: none; align-items: center; gap: 6px; }
.assist-typing.is-on { display: flex; }
.assist-typing[hidden] { display: none !important; }
.assist-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #888;
  display: inline-block; animation: assist-blink 1s infinite ease-in-out;
}
.assist-typing span:nth-child(2) { animation-delay: .15s; }
.assist-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assist-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.assist-form-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.assist-panel textarea { width: 100%; resize: vertical; min-height: 52px; }
/* Mission page */
.mission-page .lede { max-width: 40rem; margin: 0 0 18px; }
.mission-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.mission-kpis article {
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.mission-kpis b {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 4px;
}
.mission-kpis span { color: var(--muted); font-size: 13px; }
.mission-grid { display: grid; gap: 16px; }
.mission-grid .panel { padding: 16px 18px; border-radius: 10px; }
.mission-grid .panel h2 { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.mission-grid .panel h3 { margin: 20px 0 8px; font-size: 13px; font-weight: 650; }
.mission-meta { margin: 12px 0 0; }
.mission-page .grid th {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  white-space: nowrap;
}
.mission-page .grid td { padding: 8px 10px; }
.mission-more { margin: 16px 0 8px; }
.mission-more > summary { cursor: pointer; color: var(--muted); font-size: 13px; padding: 8px 0; }
.mission-more .panel { margin-top: 8px; padding: 16px 18px; border-radius: 10px; }
.status-pill.coming_soon, .status-pill.coming-soon { color: var(--muted); background: transparent; }


/* Compact header search */
.topbar .find {
  flex: 0 1 220px;
  width: 220px;
  max-width: min(220px, 36vw);
  margin: 0;
}
.topbar .find input {
  font-size: 13px;
  padding: 4px 9px;
  height: 28px;
  line-height: 1.2;
  width: 100%;
}
.topbar .find:focus-within {
  flex-basis: 360px;
  width: 360px;
  max-width: min(360px, 52vw);
}
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; }
  .topbar .find,
  .topbar .find:focus-within {
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    order: 5;
  }
}

/* Clean people lists */
.people-page .page-head { margin-bottom: 16px; }
.people-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.people-filters input[type="search"],
.people-filters select {
  width: auto;
  min-width: 10rem;
  max-width: 20rem;
  font-size: 13px;
  padding: 6px 8px;
  height: 34px;
}
.people-filters input[type="search"] { flex: 1 1 180px; min-width: 12rem; }
.columns-picker { margin: 0 0 14px; }
.columns-picker > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}
.columns-picker .stack { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); max-width: 16rem; }
.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
}
.bulk-bar[hidden] { display: none; }
.people-table { width: 100%; border-collapse: collapse; background: var(--card); }
.people-table th, .people-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
  font-size: 14px;
}
.people-table thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  padding: 10px 12px;
  z-index: 1;
}
.people-table tbody tr.people-row { cursor: pointer; }
.people-table tbody tr.people-row:hover { background: color-mix(in srgb, var(--line) 45%, transparent); }
.people-table .col-check { width: 36px; padding-right: 0; }
.person-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-text { min-width: 0; }
.person-name { font-weight: 600; text-decoration: none; display: block; line-height: 1.2; }
.person-sub { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 28rem; }
.avatar {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--paper);
  color: #5c564f;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.status-icon { font-size: 16px; line-height: 1; }
.people-table .empty-row td { white-space: normal; color: var(--muted); padding: 24px 12px; }
.col-status, .col-last_contact { width: 1%; }
.board .card .person-id { margin-bottom: 6px; }
.board .card .person-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12px; }
.row.person-row .person-id { margin-bottom: 0; }
.row.person-row { align-items: center; padding: 14px 12px; }

/* Pipelines and compact Settings */
.settings-more { margin: 1.5rem 0 2rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.settings-more > summary { cursor: pointer; font-weight: 600; padding: 12px 16px; list-style: none; }
.settings-more > summary::-webkit-details-marker { display: none; }
.settings-more > summary::before { content: "▸ "; color: var(--muted, #6f6558); }
.settings-more[open] > summary::before { content: "▾ "; }
.settings-more-body { padding: 0 16px 16px; }
.pipe-switcher { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.pipe-switcher label { margin: 0; }
.stage-list { list-style: none; padding: 0; margin: 0 0 12px; }
.stage-item { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 8px 0; }
.stage-item .drag-hint { color: var(--muted, #6f6558); cursor: grab; }
.stage-item .stage-name { font-weight: 600; }
.stage-actions { margin-left: auto; }
.stage-edit { margin: 8px 0; padding: 8px 0; border-top: 1px solid var(--line, #e0d8cc); }
.profile-pipe { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 10px; }

.assist-panel { font-family: var(--sans, inherit); }
.assist-body { display: flex; flex-direction: column; gap: 0; flex: 1; min-height: 0; }
.assist-compose { margin-top: 8px; }
.assist-composer {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.assist-composer:focus-within {
  border-color: var(--ZLK-Green);
  box-shadow: 0 0 0 3px rgba(63, 159, 127, 0.18);
}
.assist-composer textarea {
  width: 100%; resize: vertical; min-height: 52px;
  border: 0; box-shadow: none; border-radius: 10px 10px 0 0;
  padding: 10px 12px 4px; background: transparent;
}
.assist-composer textarea:focus { border: 0; box-shadow: none; outline: none; }
.assist-composer-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 4px 8px 8px;
}
.assist-remember {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin: 0; padding: 0;
  border-radius: 6px; color: var(--muted); cursor: pointer;
  position: relative; font-weight: 500;
}
.assist-remember input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
  padding: 0; border: 0; box-shadow: none;
}
.assist-remember-icon { display: inline-flex; }
.assist-remember:hover { background: var(--paper, #f7f8fb); color: var(--ink); }
.assist-remember:has(input:checked) { color: var(--ZLK-Green); background: rgba(63, 159, 127, 0.12); }
.assist-remember:has(input:checked) .assist-remember-icon path { fill: var(--ZLK-Green); stroke: var(--ZLK-Green); }
.assist-composer-bar .primary { margin-left: auto; padding: 6px 12px; }
.assist-form-row { display: none; }

/* Click-anywhere person cards */
.rdb-card[data-href],
.person-row[data-href],
article.row[data-href],
.people-row[data-href],
.task-card[data-href] { cursor: pointer; }
.rdb-card[data-href]:hover {
  border-color: var(--ZLK-Green, #3F9F7F);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--ZLK-Navy, #171D2F) 10%, transparent);
}
.person-row[data-href]:hover,
article.row[data-href]:hover { background: color-mix(in srgb, var(--line, #e6ebf2) 45%, transparent); }
.rdb-card[data-href]:focus-visible,
.person-row[data-href]:focus-visible,
article.row[data-href]:focus-visible {
  outline: 2px solid var(--ZLK-Green, #3F9F7F);
  outline-offset: 2px;
}

/* Brief an attorney */
.brief-form { max-width: 44rem; }
.brief-form .recipient-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; }
.brief-form .recipient-list li { display: flex; gap: 0.5rem; align-items: flex-start; }
.brief-draft { white-space: pre-wrap; background: var(--ZLK-BGColor, #F8FAFD); border: 1px solid var(--line, #e6ebf2); padding: 1rem; border-radius: 8px; }
.interview-feedback-list { list-style: none; padding: 0; margin: 0; }
.interview-feedback-list li { margin: 0 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line, #e6ebf2); }
