/* ── Prowler Chat ─────────────────────────────────────────────────────────────── */
.prowler-chat-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(20,150,255,0.4);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.prowler-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(20,150,255,0.55); }
.prowler-chat-fab.hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }

.prowler-chat-panel {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1001;
  width: 420px;
  max-width: calc(100vw - 40px);
  height: 600px;
  max-height: calc(100vh - 100px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(20,150,255,0.15);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.prowler-chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}
/* Move (drag the header) and resize (edges/corners) — see initProwlerChatWindow in app.js */
.prowler-chat-panel .prowler-chat-header { cursor: move; user-select: none; }
.pc-rz { position: absolute; z-index: 6; }
.pc-rz-n, .pc-rz-s { left: 14px; right: 14px; height: 8px; cursor: ns-resize; }
.pc-rz-n { top: -4px; } .pc-rz-s { bottom: -4px; }
.pc-rz-e, .pc-rz-w { top: 14px; bottom: 14px; width: 8px; cursor: ew-resize; }
.pc-rz-e { right: -4px; } .pc-rz-w { left: -4px; }
.pc-rz-ne, .pc-rz-nw, .pc-rz-se, .pc-rz-sw { width: 16px; height: 16px; }
.pc-rz-nw { top: -4px; left: -4px; cursor: nwse-resize; } .pc-rz-se { bottom: -4px; right: -4px; cursor: nwse-resize; }
.pc-rz-ne { top: -4px; right: -4px; cursor: nesw-resize; } .pc-rz-sw { bottom: -4px; left: -4px; cursor: nesw-resize; }
body.pc-dragging { user-select: none; }
body.pc-dragging .prowler-chat-panel { transition: none; }
@media (max-width: 639px) {
  .pc-rz { display: none; }
  .prowler-chat-panel .prowler-chat-header { cursor: default; }
}

.prowler-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(20,150,255,0.08), rgba(106,91,255,0.05));
  border-radius: 16px 16px 0 0;
}
.prowler-chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.prowler-chat-icon-btn {
  background: none;
  border: none;
  color: var(--muted, #9aa5ba);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.prowler-chat-icon-btn:hover { background: var(--border); color: var(--text); }

.prowler-chat-scope-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.prowler-chat-scope-toggle {
  display: flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}
.prowler-chat-scope-btn {
  background: none;
  border: none;
  color: var(--muted, #9aa5ba);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.prowler-chat-scope-btn.is-active {
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  color: #fff;
}
.prowler-chat-scope-label {
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prowler-chat-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  max-height: 38%;
  overflow-y: auto;
}
.prowler-suggest-card {
  border: 1px solid var(--border);
  border-left: 3px solid #6a5bff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prowler-suggest-kicker { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: #6a5bff; }
.prowler-suggest-title { font-weight: 600; font-size: 13px; }
.prowler-suggest-why { font-size: 12px; opacity: .8; }
.prowler-suggest-actions { display: flex; gap: 6px; margin-top: 2px; }

.prowler-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.prowler-msg { display: flex; flex-direction: column; max-width: 90%; }
.prowler-msg-user { align-self: flex-end; }
.prowler-msg-ai { align-self: flex-start; }

.prowler-msg-body {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}
.prowler-msg-user .prowler-msg-body {
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.prowler-msg-ai .prowler-msg-body {
  background: var(--panel-2, #1d2537);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.prowler-msg-body p { margin: 0 0 6px; }
.prowler-msg-body p:last-child { margin: 0; }
.prowler-msg-body ul { margin: 4px 0; padding-left: 18px; }
.prowler-msg-body li { margin: 2px 0; }
.prowler-msg-body h2, .prowler-msg-body h3, .prowler-msg-body h4 { margin: 8px 0 4px; font-size: 13px; }
.prowler-msg-body code { background: rgba(20,150,255,0.12); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.prowler-msg-body strong { font-weight: 700; }

.prowler-msg-actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.prowler-action-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(46,213,113,0.15);
  color: #2ecc71;
  border: 1px solid rgba(46,213,113,0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prowler-thinking .prowler-msg-body { color: var(--muted, #9aa5ba); font-style: italic; }
.prowler-dots { display: inline-flex; gap: 3px; margin-right: 4px; vertical-align: middle; }
.prowler-dots span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: prowler-bounce 1.2s infinite;
}
.prowler-dots span:nth-child(2) { animation-delay: 0.2s; }
.prowler-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes prowler-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.5; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.prowler-chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  align-items: flex-end;
}
.prowler-chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  resize: none;
  font-family: inherit;
  line-height: 1.4;
  max-height: 100px;
}
.prowler-chat-input:focus { outline: none; border-color: var(--accent); }
.prowler-chat-send-btn { flex-shrink: 0; height: 36px; white-space: nowrap; }
.prowler-chat-send-btn.is-stop { background: var(--bad); border-color: var(--bad); color: #fff; }
.prowler-chat-send-btn.is-stop::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: currentColor; border-radius: 2px; vertical-align: 0; }
.prowler-chat-file-btn { width: 36px; height: 36px; flex-shrink: 0; }

/* ─── Chat file attachments (session-only — gone on reload or "New chat") ──── */
.prowler-chat-staged-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.prowler-staged-file {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600;
  padding: 3px 6px 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text);
}
.prowler-staged-file-remove {
  width: 16px; height: 16px; border: 0; border-radius: 50%; background: transparent; color: var(--text-dim);
  cursor: pointer; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.prowler-staged-file-remove:hover { color: var(--text); background: color-mix(in srgb, var(--text) 12%, transparent); }
.prowler-msg-files { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.prowler-msg-file-chip {
  font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: rgba(20,150,255,0.12);
  color: var(--accent); border: 1px solid rgba(20,150,255,0.3);
}

/* ─── Voice input (mic buttons) — shared base + two layout variants ────────── */
.mic-btn {
  flex-shrink: 0; border-radius: 10px; background: var(--bg); border: 1px solid var(--border);
  color: var(--text-dim); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.mic-btn:hover { color: var(--text); border-color: var(--accent); }
.mic-btn.is-listening {
  color: #fff; background: var(--warn, #e0524d); border-color: var(--warn, #e0524d);
  animation: mic-pulse 1.4s ease-in-out infinite;
}
.mic-btn.is-unsupported { display: none; }
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 82, 77, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(224, 82, 77, 0); }
}
/* Inline, in a flex row next to Send (Prowler Chat's input bar) */
.prowler-chat-mic-btn { width: 36px; height: 36px; }
/* Overlaid in the bottom-right corner of a plain textarea, added automatically to
   every textarea in the app (see attachMicOverlay in app.js). Wrapping the textarea
   pulls it out from under any parent flex/stretch layout it relied on for its width
   (e.g. a flex-column label or field-row), so the wrap and the control inside it both
   have to re-assert full width explicitly instead of inheriting it implicitly. */
.mic-textarea-wrap { position: relative; display: block; width: 100%; flex: 1; min-width: 0; }
.mic-textarea-wrap textarea,
.mic-textarea-wrap .note-rich-input { width: 100%; box-sizing: border-box; }
.mic-btn-overlay {
  position: absolute; bottom: 6px; right: 6px; width: 26px; height: 26px; z-index: 2;
  opacity: 0.7;
}
.mic-btn-overlay:hover { opacity: 1; }

:root {
  --bg: #0e1420;
  --panel: #161d2c;
  --panel-2: #1d2537;
  --border: #2a3348;
  --text: #e7ebf3;
  --text-dim: #9aa5ba;
  --accent: #1496ff;
  --accent-2: #6a5bff;
  --good: #2ecc71;
  --warn: #f5a623;
  --bad: #ff5c5c;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3 { margin: 0; }

/* ─── Topbar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: linear-gradient(90deg, #020810 0%, #050f1f 30%, #081525 65%, #0c1c30 100%);
  border-bottom: 2px solid rgba(20,150,255,0.35);
  position: sticky; top: 0; z-index: 40;
  box-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 0 40px rgba(20,150,255,0.06);
}
.topbar::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, #1496ff 0%, #6a5bff 55%, transparent 100%);
  pointer-events: none;
}

/* ─── Prowl wordmark / brand ─────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }

.prowl-wordmark {
  display: flex; align-items: center; gap: 11px; flex-shrink: 0;
}
.prowl-paw-icon {
  width: 32px; height: 35px; filter: drop-shadow(0 0 6px rgba(20,150,255,0.45));
}
.prowl-brand-text { display: flex; flex-direction: column; line-height: 1; }
.prowl-label-dt {
  font-size: 11px; font-weight: 800; letter-spacing: 0.18em;
  color: #1496ff; text-transform: uppercase; margin-bottom: 2px;
}
.prowl-label-name {
  font-size: 20px; font-weight: 800; letter-spacing: 0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #a8ccff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}

.brand-sep {
  width: 1px; height: 28px; background: rgba(255,255,255,0.1); flex-shrink: 0; margin: 0 4px;
}
.brand-account-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.subtitle { margin: 0; color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; }
.account-stage-pill {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 1px 7px; border-radius: 8px; flex-shrink: 0; line-height: 1.5;
}

.topbar-actions { display: flex; align-items: center; gap: 5px; flex-wrap: nowrap; min-width: 0; flex-shrink: 0; }
.topbar-actions .btn { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
#devTabBtn[hidden] { display: none; }
.status-pill {
  font-size: 11px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2);
  border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap;
}
.status-pill.ok { color: var(--good); border-color: var(--good); }
.status-pill.error { color: var(--bad); border-color: var(--bad); }
.account-select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 10px; font-size: 14px; width: 260px; max-width: 260px;
  margin-right: 28px;   /* clear gap before My Dashboard / Teams / Admin buttons */
}
@media (max-width: 1500px) { .account-select { width: 200px; max-width: 200px; } }
.account-select option.account-option-parent { color: var(--accent); font-weight: 700; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  border: none; border-radius: var(--radius); padding: 9px 16px; font-size: 13px;
  cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: linear-gradient(135deg, #1496ff, #6a5bff); color: white; }
.btn-secondary { background: var(--panel-2); color: var(--text); border: 1px solid var(--border); }
.btn-guide { background: linear-gradient(135deg, rgba(20,150,255,.16), rgba(34,211,168,.14)); color: var(--text); border: 1px solid rgba(34,211,168,.45); text-decoration: none; }
.btn-guide:hover { border-color: rgba(34,211,168,.8); }
.btn-small { padding: 5px 10px; font-size: 12px; border-radius: 7px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn:not(:disabled):hover { filter: brightness(1.1); }

/* ─── Spinner ────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: currentColor;
  border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; flex-shrink: 0;
}
.spinner-lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Research progress panel ────────────────────────────────────────────── */
.research-progress {
  background: var(--panel); border-bottom: 2px solid var(--accent);
  overflow: hidden; transition: max-height 0.35s ease, opacity 0.25s ease;
  max-height: 300px; opacity: 1;
}
.research-progress.hidden { max-height: 0; opacity: 0; pointer-events: none; }
.rp-inner { padding: 10px 24px 12px; }
.rp-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.rp-title-group { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.rp-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-bar-wrap { flex: 1; height: 4px; background: var(--panel-2); border-radius: 2px; min-width: 80px; }
.rp-bar { height: 100%; background: linear-gradient(90deg, #1496ff, #6a5bff); border-radius: 2px; transition: width 0.6s ease; }
.rp-close { background: none; border: none; color: var(--text-dim); font-size: 18px; cursor: pointer; padding: 2px 6px; flex-shrink: 0; }
.rp-contacts { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-contact {
  font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: 5px; transition: all 0.2s;
}
.rp-contact.pending { color: var(--text-dim); }
.rp-contact.searching { color: var(--accent); border-color: rgba(20,150,255,0.5); background: rgba(20,150,255,0.08); }
.rp-contact.done { color: var(--good); border-color: rgba(46,204,113,0.4); background: rgba(46,204,113,0.07); }
.rp-contact.error { color: var(--warn); border-color: rgba(245,166,35,0.4); background: rgba(245,166,35,0.07); }

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs { display: flex; align-items: flex-start; gap: 0; padding: 12px 14px 0; background: var(--bg); border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none; border: none; color: var(--text-dim); padding: 10px 12px;
  cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-btn.active { color: var(--text); border-color: var(--accent); }
.tab-btn:hover:not(.active) { color: var(--text); }
/* The tab strip keeps the dark background; its text is a darker shade of the site blue. */
.tabs .tab-btn { color: #0f7bd6; }
.tabs .tab-btn.active { color: #0f7bd6; font-weight: 600; }
.tabs .tab-btn:hover:not(.active) { color: var(--accent); }

/* AI Usage lives in the topbar (not the tab strip) but reuses .tab-btn for its
   switchTab() wiring — override the transparent tab look with the standard
   topbar-button chrome so it matches Settings/Teams/Partners visually. */
.topbar-actions .tab-btn {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 7px;
  padding: 5px 10px; font-size: 12px;
}
.topbar-actions .tab-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.app-content-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; min-height: calc(100vh - 120px); }
.published-pages-sidebar {
  position: sticky; top: 64px; height: calc(100vh - 108px); min-height: 300px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border-right: 1px solid var(--border);
}
.published-page-nav { min-height: 0; flex: 1 1 auto; overflow-y: auto; }
main { min-width: 0; padding: 20px 24px 60px; max-width: 1400px; width: 100%; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.panel-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 6px 8px; margin-left: 8px; font-size: 13px;
}

/* ─── View toggle (Visual / Table) ──────────────────────────────────────── */
.view-toggle {
  display: flex; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 7px; overflow: hidden;
}
.vtoggle-btn {
  background: none; border: none; color: var(--text-dim); padding: 5px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.vtoggle-btn.active { background: var(--accent); color: white; }

/* ─── Table filters bar ──────────────────────────────────────────────────── */
.table-filters {
  display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap;
}
.filter-input {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 7px 10px; font-size: 13px; font-family: inherit;
  min-width: 200px;
}
.filter-input:focus { outline: none; border-color: var(--accent); }
.filter-select {
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; padding: 7px 8px; font-size: 13px;
}

/* ─── Contact table view ─────────────────────────────────────────────────── */
.contact-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.contact-table th {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
  color: var(--text-dim); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  white-space: nowrap;
}
.contact-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.contact-table-row { cursor: pointer; transition: background 0.1s; }
.contact-table-row:hover { background: rgba(20,150,255,0.05); }
.ct-name { font-weight: 600; }
.ct-role { color: var(--accent-2); font-weight: 500; }
.ct-level { color: var(--text-dim); }
.ct-manager { color: var(--text-dim); }
.ct-email a { color: var(--accent); text-decoration: none; font-size: 12px; }
.ct-email a:hover { text-decoration: underline; }
.ct-findings { font-weight: 700; }

/* ─── Findings ───────────────────────────────────────────────────────────── */
.findings-list { display: flex; flex-direction: column; gap: 14px; }
.finding-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; transition: border-color 0.15s;
}
.finding-card:hover { border-color: #3a4560; }
.finding-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.finding-headline { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.finding-person {
  background: none; border: none; color: var(--accent); cursor: pointer; font-size: 13px;
  padding: 0; text-decoration: underline;
}
.fit-badge {
  flex-shrink: 0; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px;
}
.fit-5 { background: rgba(46,204,113,0.18); color: var(--good); }
.fit-4 { background: rgba(46,204,113,0.12); color: var(--good); }
.fit-3 { background: rgba(245,166,35,0.18); color: var(--warn); }
.fit-2, .fit-1 { background: rgba(255,92,92,0.15); color: var(--bad); }
.finding-summary { color: var(--text); font-size: 14px; margin: 10px 0; line-height: 1.55; }
.finding-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.finding-meta a { color: var(--accent); }
.tag { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 3px 8px; }
.dt-solution { color: var(--accent-2); font-weight: 600; }
.rationale { font-size: 13px; color: var(--text-dim); font-style: italic; margin-bottom: 12px; }
.still-open-badge {
  font-size: 11px; color: var(--text-dim); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px;
}
.finding-actions { display: flex; gap: 8px; align-items: center; }
.status-select {
  background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border);
  border-radius: 6px; padding: 5px 8px; font-size: 12px;
}

/* ─── Contact Challenges tab ─────────────────────────────────────────────── */
.cc-challenge-form { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.cc-challenge-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; transition: border-color 0.15s;
}
.cc-challenge-card:hover { border-color: #3a4560; }
.cc-challenge-card.is-dismissed { opacity: 0.55; }
.cc-challenge-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cc-challenge-text { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.cc-challenge-badge {
  flex-shrink: 0; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #6a5bff; background: rgba(106,91,255,0.14); border-radius: 999px; padding: 2px 8px;
}
.cc-solution-box {
  background: var(--panel-2); border-left: 3px solid var(--accent); border-radius: 6px;
  padding: 10px 14px; margin-top: 10px;
}
.cc-solution-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.cc-solution-text { font-size: 13px; color: var(--text); line-height: 1.55; }
.cc-challenge-actions { display: flex; gap: 14px; margin-top: 10px; }
.empty-state { color: var(--text-dim); padding: 48px; text-align: center; font-size: 14px; }

/* ─── Visual Org Chart ───────────────────────────────────────────────────── */
.org-chart-scroll {
  position: relative;
  overflow: auto;
  height: min(72vh, 680px);
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  cursor: grab;
}
.org-chart-scroll.grabbing { cursor: grabbing; user-select: none; }

/* Pan/zoom scaffolding shared by the contacts and users org charts.
   The outer box's size is set in JS to the inner's natural size × scale, so
   overflow:auto on .org-chart-scroll/.user-org-chart always has the right
   scrollable range — transform:scale alone doesn't affect layout size. */
.orgchart-zoom-outer { position: relative; }
.orgchart-zoom-inner {
  position: absolute; top: 0; left: 0;
  transform-origin: top left;
  padding: 40px 60px 60px;
  display: inline-block;
}
.orgchart-controls {
  position: sticky; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 8px; margin: 10px; z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  width: fit-content;
}
.orgchart-ctrl-btn {
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  border-radius: 5px; width: 24px; height: 24px; line-height: 1; cursor: pointer;
  font-size: 13px; font-weight: 700;
}
.orgchart-ctrl-btn:hover { border-color: var(--accent); color: var(--accent); }
.orgchart-ctrl-btn[data-oc-fit], .orgchart-ctrl-btn[data-oc-reset] { width: auto; padding: 0 8px; font-size: 11px; font-weight: 600; }
.orgchart-ctrl-btn[data-oc-fullscreen] { font-size: 14px; }
/* Full screen: the chart area fills the display; the exit button is pinned to the top-right corner. */
.orgchart-exit-fs { display: none; }
.org-chart-scroll:fullscreen, .user-org-chart:fullscreen {
  width: 100vw; height: 100vh; min-height: 0; max-height: none; border: 0; border-radius: 0; background: var(--panel);
}
.org-chart-scroll:fullscreen .orgchart-exit-fs, .user-org-chart:fullscreen .orgchart-exit-fs {
  display: inline-flex; align-items: center; gap: 6px;
  position: fixed; top: 14px; right: 28px; z-index: 10;
  background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 12px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.orgchart-exit-fs:hover { border-color: var(--accent); color: var(--accent); }
.orgchart-exit-fs kbd { font: inherit; font-size: 10px; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--text-dim); }
.orgchart-zoom-label { font-size: 11px; color: var(--text-dim); min-width: 34px; text-align: center; }
.orgchart-hint { font-size: 10px; color: var(--text-dim); margin-left: 6px; white-space: nowrap; }
@media (max-width: 700px) { .orgchart-hint { display: none; } }
/* Root wrapper */
.org-tree {
  list-style: none; padding: 0; margin: 0;
  display: flex; justify-content: center;
}
/* Children group under a node */
.org-tree ul {
  list-style: none; padding: var(--oc-gap-y, 28px) 0 0; margin: 0;   /* no browser list indent: it pushed every child row 20px off its parent */
  position: relative;
  display: flex; flex-direction: row; justify-content: center;
}
/* Vertical line from parent down to children horizontal bar */
.org-tree ul::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  border-left: var(--oc-line-w, 2px) solid var(--oc-line, var(--border));
  height: var(--oc-gap-y, 28px);
}
/* Each child node's li */
.org-tree li {
  position: relative;
  padding: 0 var(--oc-gap-x, 10px);
  display: flex; flex-direction: column; align-items: center;
}
/* Horizontal connector: left half of this li's top */
.org-tree li::before {
  content: '';
  position: absolute;
  top: 0; right: 50%;
  border-top: var(--oc-line-w, 2px) solid var(--oc-line, var(--border));
  width: 50%;
}
/* Horizontal connector: right half */
.org-tree li::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  border-top: var(--oc-line-w, 2px) solid var(--oc-line, var(--border));
  width: 50%;
}
/* Remove outer half-bars for edge siblings */
.org-tree li:first-child::before { display: none; }
.org-tree li:last-child::after { display: none; }
/* Root: no horizontal bars and no top connector */
.org-tree > li::before,
.org-tree > li::after { display: none; }

/* Org card node */
.org-card {
  margin-top: var(--oc-gap-y, 28px); /* gap for vertical line from horizontal bar to card */
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-width: 150px; max-width: 190px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
/* Vertical line from horizontal bar down to this card */
.org-card::before {
  content: '';
  position: absolute;
  top: calc(var(--oc-gap-y, 28px) * -1); left: 50%; transform: translateX(-50%);
  border-left: var(--oc-line-w, 2px) solid var(--oc-line, var(--border));
  height: var(--oc-gap-y, 28px);
}
/* Root card: no top connector */
.org-tree > li > .org-card::before { display: none; }
/* Root card: no margin-top */
.org-tree > li > .org-card { margin-top: 0; }

.org-card:hover { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(20,150,255,0.15); }
.org-card.has-findings { border-top: 3px solid var(--accent); }

/* Partner logo in org chart — rectangular, not circular */
.oc-partner-logo {
  width: 72px; height: 36px; object-fit: contain;
  display: block; margin: 0 auto 8px;
  border-radius: 4px;
  background: #fff;
  padding: 2px 4px;
}

/* Partner sections in org chart (one tree per linked partner, in the Partners tab) */
.org-tree-partner { margin-top: 32px; }
.org-tree-partner:first-child { margin-top: 0; }
.subsidiary-chart-note {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border: 1px solid rgba(20, 150, 255, 0.22);
  border-radius: 8px;
  background: rgba(20, 150, 255, 0.06);
  color: var(--text-dim);
  font-size: 12px;
}
.org-card-subsidiary {
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, #161d2c 0%, rgba(20, 150, 255, 0.06) 100%);
}
.org-card-subsidiary .btn { margin-top: 8px; }
.org-card-partner {
  border-left: 3px solid var(--accent-2);
  background: linear-gradient(135deg, #161d2c 0%, rgba(106, 91, 255, 0.06) 100%);
  cursor: pointer;
}
.org-card-partner:hover { border-color: var(--accent-2); box-shadow: 0 0 0 2px rgba(255,170,0,0.15); }
.org-card-partner-contact {
  border-left: 3px solid rgba(106, 91, 255, 0.5);
  cursor: pointer;
  position: relative;
}
.org-card-partner-contact:hover { border-color: var(--accent-2); }
.oc-partner-fallback {
  background: linear-gradient(135deg, #6a5bff, #402f99);
}

.ptr-link-contact-btn {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; font-size: 11.5px;
}
.ptr-unlink-contact-btn {
  position: absolute; top: 6px; right: 6px;
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid transparent; background: none; color: var(--text-dim);
  cursor: pointer;
}
.ptr-unlink-contact-btn:hover { color: var(--bad); background: rgba(255,92,92,0.12); border-color: rgba(255,92,92,0.3); }
.org-card-partner-empty {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-size: 12px; color: var(--text-dim);
  border: 1px dashed var(--border); border-radius: 8px;
  background: var(--panel);
}

/* Level-based left accent colors */
.org-card[data-level="0"] { border-left: 3px solid var(--accent); }
.org-card[data-level="1"] { border-left: 3px solid var(--accent-2); }
.org-card[data-level="2"] { border-left: 3px solid var(--good); }

.oc-avatar {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  display: block; margin: 0 auto 8px;
  border: 2px solid var(--border);
}
.oc-avatar-fallback {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.5px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px;
}
.oc-name {
  font-weight: 700; font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-title {
  font-size: 11px; color: var(--text-dim); margin: 2px 0 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oc-role {
  font-size: 10px; color: var(--accent-2); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px;
}
.oc-meta { display: flex; justify-content: center; gap: 6px; align-items: center; margin-top: 6px; }
.oc-findings { font-size: 10px; color: var(--text-dim); }
.oc-li-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  title: 'LinkedIn';
}
.fit-badge.small { font-size: 10px; padding: 2px 6px; }

/* ─── Sent log ───────────────────────────────────────────────────────────── */
.sent-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sent-table th, .sent-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.sent-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; }

/* ─── Settings ───────────────────────────────────────────────────────────── */
.settings-section {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px;
}
.settings-tabs { display: flex; gap: 6px; margin: 18px 0 14px; padding: 0 0 8px; overflow-x: auto; border-bottom: 1px solid var(--border); }
.settings-tab { flex: 0 0 auto; padding: 9px 13px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.settings-tab:hover { background: var(--panel); color: var(--text); }
.settings-tab.is-active { border-color: var(--border); background: var(--panel); color: var(--accent); }
.settings-panel[hidden] { display: none; }
.settings-panel.is-active { animation: settings-panel-in .15s ease-out; }
@keyframes settings-panel-in { from { opacity: .7; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.settings-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.settings-test-row { display: flex; align-items: center; gap: 10px; }
.settings-fields { display: flex; flex-direction: column; gap: 12px; }
.settings-field { display: flex; flex-direction: column; gap: 4px; }
.settings-field label { font-size: 13px; font-weight: 600; }
.settings-field .field-help { font-size: 12px; color: var(--text-dim); }
.settings-field .field-input-row { display: flex; gap: 8px; align-items: center; }
.settings-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 12px;
}
.settings-provider-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}
.settings-provider-card h4 {
  margin: 0 0 3px;
  font-size: 13px;
}
.settings-provider-card .hint {
  margin: 0 0 10px;
  font-size: 11px;
}
.settings-provider-card .settings-fields {
  gap: 10px;
}
.settings-field input {
  flex: 1; background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.settings-field .source-tag {
  font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap;
}
.settings-field .source-tag.ui { color: var(--good); border-color: var(--good); }
.settings-field .source-tag.user { color: var(--good); border-color: var(--good); }
.settings-field .source-tag.env { color: var(--accent); border-color: var(--accent); }
.test-result { font-size: 12px; }
.ai-prompt-browser { display: grid; grid-template-columns: minmax(210px, 270px) minmax(0, 1fr); gap: 18px; }
.ai-prompt-list { max-height: 68vh; overflow-y: auto; padding-right: 6px; }
.ai-prompt-group + .ai-prompt-group { margin-top: 4px; }
.ai-prompt-group-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%;
  margin: 4px 0; padding: 7px 7px; border: none; background: transparent; cursor: pointer;
  color: var(--text-dim); font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 6px;
}
.ai-prompt-group-toggle:hover { background: var(--panel-2); color: var(--text); }
.ai-prompt-group-chevron { transition: transform .15s ease; font-size: 10px; }
.ai-prompt-group:not(.is-collapsed) .ai-prompt-group-chevron { transform: rotate(90deg); }
.ai-prompt-group-body { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.ai-prompt-group.is-collapsed .ai-prompt-group-body { display: none; }
.ai-prompt-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-dim); text-align: left; font: inherit; font-size: 11px; cursor: pointer; }
.ai-prompt-item:hover { background: var(--panel-2); color: var(--text); }
.ai-prompt-item.is-active { border-color: var(--border); background: var(--panel-2); color: var(--accent); }
.ai-prompt-item i { color: var(--good); font-size: 9px; font-style: normal; font-weight: 700; }
.ai-prompt-editor { min-width: 0; padding: 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); }
.ai-prompt-editor-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.ai-prompt-editor-heading h4 { margin: 0 0 4px; font-size: 15px; }
.ai-prompt-editor-heading p { margin: 0; }
.ai-prompt-custom-badge, .ai-prompt-default-badge { flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-dim); font-size: 10px; }
.ai-prompt-custom-badge { color: var(--good); border-color: var(--good); }
.ai-prompt-editor > label { display: block; margin: 12px 0 6px; font-size: 11px; font-weight: 700; }
.ai-prompt-editor textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; line-height: 1.55; }
.ai-prompt-editor .ai-prompt-base { color: var(--text-dim); }
.ai-prompt-editor .field-help { display: block; margin-top: 5px; }
.ai-wf-model { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
.ai-wf-model h5 { margin: 0 0 10px; font-size: 12px; }
.ai-wf-model h5 .hint { font-weight: 400; margin-left: 4px; }
.ai-wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; }
.ai-wf-grid label { display: block; margin: 0 0 4px; font-size: 11px; font-weight: 700; }
.ai-wf-grid select, .ai-wf-grid input { box-sizing: border-box; width: 100%; padding: 7px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 12px; }
.ai-wf-grid select:disabled, .ai-wf-grid input:disabled { opacity: .65; }
.ai-wf-notes p { margin: 8px 0 0; font-size: 11px; }
.ai-wf-warn { color: var(--warn, #f59e0b); line-height: 1.45; }
.ai-prompt-actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-prompt-actions > div { display: flex; gap: 7px; flex-wrap: wrap; }
.linkedin-profile-summary { display: flex; align-items: center; gap: 12px; min-height: 42px; margin: 12px 0; }
.linkedin-profile-summary div { display: flex; flex-direction: column; gap: 3px; }
.linkedin-profile-summary span { color: var(--text-dim); font-size: 12px; }
.linkedin-profile-picture { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.linkedin-capabilities { padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); font-size: 12px; line-height: 1.55; }
.linkedin-capabilities p { margin: 7px 0; color: var(--text-dim); }
.linkedin-capabilities a { color: var(--accent); }

/* ─── Boolean toggle (settings) ─────────────────────────────────────────────── */
.toggle-row { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-wrap { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.toggle-checkbox { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--border); transition: background 0.2s;
}
.toggle-slider::after {
  content: ''; position: absolute;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform 0.2s;
}
.toggle-checkbox:checked + .toggle-slider { background: var(--accent); }
.toggle-checkbox:checked + .toggle-slider::after { transform: translateX(16px); }
.toggle-label-text { font-size: 13px; font-weight: 600; }
.test-result.ok { color: var(--good); }
.test-result.error { color: var(--bad); }
@media (max-width: 760px) {
  .ai-prompt-browser { grid-template-columns: 1fr; }
  .ai-prompt-list { display: flex; gap: 10px; max-height: 200px; overflow: auto; padding: 0 0 6px; }
  .ai-prompt-group { flex: 0 0 200px; }
  .ai-prompt-group + .ai-prompt-group { margin-top: 0; }
  .ai-prompt-editor { padding: 12px; }
}

/* ─── Drawer & Modal ─────────────────────────────────────────────────────── */
.drawer, .modal { position: fixed; inset: 0; display: none; z-index: 50; }
.drawer.open, .modal.open { display: block; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.drawer-panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(520px, 95vw);
  background: var(--panel); border-left: 1px solid var(--border); padding: 24px;
  overflow-y: auto;
}

/* ── Contact drawer: large centered card ── */
#contactDrawer .drawer-panel {
  position: absolute;
  right: auto; bottom: auto;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(1080px, 94vw);
  height: min(88vh, 860px);
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
}
/* The content div must fill the panel so height:100% in children resolves correctly */
#contactDrawer #contactDrawerContent {
  height: 100%;
}

/* ── Two-column contact card layout ── */
.contact-card-layout {
  display: flex;
  height: 100%;
}

/* ── Left sidebar ── */
.cc-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--panel-2);
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.cc-photo-wrap {
  position: relative;
  width: 100px; height: 100px;
  margin: 0 auto 4px;
}
.cc-photo {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; display: block;
  border: 3px solid var(--border);
}
.cc-photo-fallback {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  color: #fff; font-size: 30px; font-weight: 700; letter-spacing: -1px;
  display: flex; align-items: center; justify-content: center;
}
.cc-photo-edit-btn {
  position: absolute; bottom: 3px; right: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--panel-2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; transition: opacity 0.15s;
}
.cc-photo-remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(220,50,50,0.85); border: 2px solid var(--panel-2);
  color: #fff; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; transition: opacity 0.15s;
}
.cc-photo-wrap:hover .cc-photo-edit-btn,
.cc-photo-wrap:hover .cc-photo-remove-btn { opacity: 1; }

.cc-name {
  text-align: center;
  font-size: 17px; font-weight: 700; line-height: 1.2;
  margin: 0;
}
.cc-title-line {
  text-align: center;
  font-size: 12px; color: var(--text-dim); line-height: 1.4;
  margin: 0;
}
.cc-company {
  text-align: center;
  font-size: 12px; color: var(--accent); font-weight: 600;
}
.cc-divider {
  border: none; border-top: 1px solid var(--border); margin: 2px 0;
}
.cc-detail-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; line-height: 1.4;
  color: var(--text-dim);
}
.cc-detail-row a { color: var(--accent); text-decoration: none; }
.cc-detail-row a:hover { text-decoration: underline; }
.cc-detail-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-dim); min-width: 48px;
  padding-top: 1px;
}
.cc-detail-value { color: var(--text); font-size: 12px; word-break: break-word; }
.cc-status-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.cc-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-dim);
  background: var(--panel); white-space: nowrap;
}
.cc-badge.enriched { border-color: var(--good); color: var(--good); }
.cc-badge.has-persona { border-color: var(--accent-2); color: var(--accent-2); }
.cc-badge.has-findings { border-color: var(--accent); color: var(--accent); }
.cc-actions {
  display: flex; flex-direction: column; gap: 6px; margin-top: 4px;
}
.cc-actions .btn { width: 100%; justify-content: center; font-size: 12px; }
.cc-enrich-status {
  font-size: 11px; text-align: center; min-height: 16px;
  color: var(--text-dim);
}
.cc-enrich-status.ok { color: var(--good); }
.cc-enrich-status.error { color: var(--bad); }
.cc-delete-btn {
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Right panel with tabs ── */
.cc-main {
  flex: 1; min-width: 0; min-height: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
}
.cc-close-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  background: none; border: none; color: var(--text-dim);
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.1s, background 0.1s;
}
.cc-close-btn:hover { color: var(--text); background: var(--panel-2); }
.cc-tabs {
  display: flex; border-bottom: 1px solid var(--border);
  padding: 0 20px; flex-shrink: 0;
}
.cc-tab-btn {
  padding: 14px 16px 13px;
  border: none; background: none;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color 0.15s;
}
.cc-tab-btn:hover { color: var(--text); }
.cc-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.cc-tab-pane {
  display: none;
  overflow-y: auto; padding: 24px;
}
.cc-tab-pane.active {
  display: block;
  flex: 1;
  min-height: 0; /* lets the flex item shrink below content height so overflow-y: auto kicks in */
}

/* pane-specific */
.cc-bio-box {
  background: var(--panel-2); border-radius: 8px; padding: 14px 16px;
  font-size: 13px; line-height: 1.6; color: var(--text);
  margin-bottom: 16px;
}
.cc-activity-box {
  background: var(--panel-2); border-radius: 8px; padding: 14px 16px;
  font-size: 13px; line-height: 1.6; margin-bottom: 16px;
}
.cc-activity-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent); margin-bottom: 6px;
}
.cc-section-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 10px;
}
.cc-findings-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}

.modal-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(600px, 95vw); max-height: 92vh; overflow-y: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.modal-panel.modal-wide { width: min(680px, 97vw); }
.drawer-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-dim); font-size: 22px; cursor: pointer; line-height: 1;
}
.drawer h2, .drawer h3 { margin-bottom: 4px; }

/* ─── Contact drawer fields ──────────────────────────────────────────────── */
.form-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.field-row { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.field-row label { font-size: 12px; color: var(--text-dim); font-weight: 500; }
.field-row input, .field-row textarea, .field-row select {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit;
}
.field-row textarea { resize: vertical; }
.field-row input:focus, .field-row textarea:focus, .field-row select:focus {
  outline: none; border-color: var(--accent);
}
.reports-line { font-size: 12px; color: var(--text-dim); margin: 4px 0 10px; line-height: 1.6; }

/* AI Enrich row */
.enrich-row {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 8px;
  padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px;
  flex-wrap: wrap;
}
.enrich-status { font-size: 12px; color: var(--text-dim); flex: 1; min-width: 120px; }
.enrich-status.ok { color: var(--good); }
.enrich-status.error { color: var(--bad); }
.enriched-tag {
  font-size: 11px; color: var(--good); background: rgba(46,204,113,0.1);
  border: 1px solid rgba(46,204,113,0.25); border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.bio-box {
  background: var(--panel-2); border-left: 3px solid var(--accent-2);
  border-radius: 0 6px 6px 0; padding: 10px 12px;
  font-size: 13px; color: var(--text); line-height: 1.6; margin: 6px 0 8px; font-style: italic;
}
.recent-activity-box {
  font-size: 12px; color: var(--text-dim); padding: 6px 0 8px; line-height: 1.5;
}
.linkedin-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--accent); font-size: 12px; text-decoration: none;
}
.linkedin-link:hover { text-decoration: underline; }

/* ─── Dynatrace Persona section ──────────────────────────────────────────── */
.persona-section {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin: 18px 0;
}
.persona-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px;
}
.persona-header h3 { font-size: 13px; }
.persona-header-right { display: flex; align-items: center; gap: 8px; }
.persona-summary {
  font-size: 13px; line-height: 1.6; color: var(--text); margin-bottom: 12px;
  border-left: 3px solid var(--accent-2); padding-left: 10px; font-style: italic;
}
.persona-block { margin-bottom: 12px; }
.persona-block:last-child { margin-bottom: 0; }
.persona-block-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 5px;
}
.persona-list {
  margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 3px; list-style: disc;
}
.persona-list li { font-size: 13px; line-height: 1.5; }
.persona-detail { font-size: 13px; line-height: 1.5; margin: 0; color: var(--text); }
.persona-sensitivity .persona-block-label { color: var(--warn); }
.persona-sensitivity .persona-detail { color: var(--text-dim); font-style: italic; }
.persona-cta { color: var(--text-dim); font-size: 13px; font-style: italic; }
#personaStatus { font-size: 12px; margin-top: 6px; display: block; }
#personaStatus.ok { color: var(--good); }
#personaStatus.error { color: var(--bad); }

/* ─── Email modal ────────────────────────────────────────────────────────── */
#emailForm label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-dim); margin-bottom: 14px; }
#emailForm input, #emailForm textarea {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 6px; padding: 9px 10px; font-size: 13px; font-family: inherit;
}
.modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.hint { font-size: 12px; color: var(--text-dim); margin-top: 8px; line-height: 1.5; }

/* AI email refine panel */
.email-refine {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(20,150,255,0.05); border: 1px solid rgba(20,150,255,0.2);
  border-radius: 8px;
}
.email-refine-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent); margin-bottom: 8px;
}
.refine-controls { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.refine-controls select {
  flex: 1; min-width: 200px; background: var(--panel); color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 8px; font-size: 13px;
}
.refine-custom-input {
  width: 100%; margin-top: 6px; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 8px 10px; font-size: 13px;
  font-family: inherit; resize: vertical;
}
.refine-custom-input:focus { outline: none; border-color: var(--accent); }
.refine-status { font-size: 12px; display: block; margin-top: 6px; }
.refine-status.ok { color: var(--good); }
.refine-status.error { color: var(--bad); }

/* ─── Dashboard ──────────────────────────────────────────────────────────── */
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.stat-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; margin-bottom: 24px;
}
.stat-tile {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; text-align: center; border-top: 3px solid var(--accent);
}
.stat-tile:nth-child(2) { border-top-color: var(--accent-2); }
.stat-tile:nth-child(3) { border-top-color: var(--good); }
.stat-tile:nth-child(4) { border-top-color: var(--warn); }
.stat-tile:nth-child(5) { border-top-color: #c678dd; }
.stat-value { font-size: 34px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-dim); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
}
.dash-card h3 {
  font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.07em; margin-bottom: 18px;
}
.funnel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.funnel-label { width: 75px; font-size: 12px; color: var(--text-dim); text-transform: capitalize; flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; height: 22px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 4px; transition: width 1s ease; min-width: 3px; }
.funnel-bar.new { background: var(--accent); }
.funnel-bar.reviewed { background: var(--accent-2); }
.funnel-bar.sent { background: var(--good); }
.funnel-bar.dismissed { background: var(--border); }
.funnel-count { font-size: 13px; font-weight: 700; min-width: 30px; text-align: right; }
.cat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cat-label { font-size: 11px; color: var(--text-dim); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cat-bar-wrap { width: 90px; height: 14px; background: var(--panel-2); border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.cat-bar { height: 100%; background: linear-gradient(90deg, #1496ff, #6a5bff); border-radius: 3px; transition: width 1s ease; }
.cat-count { font-size: 11px; font-weight: 700; min-width: 22px; text-align: right; flex-shrink: 0; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table tr { border-bottom: 1px solid var(--border); }
.mini-table tr:last-child { border-bottom: none; }
.mini-table td { padding: 8px 4px; font-size: 12px; vertical-align: middle; }
.mini-table td:first-child { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-table .dim { color: var(--text-dim); }
.run-status { font-size: 10px; padding: 2px 7px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.run-status.complete { color: var(--good); border-color: rgba(46,204,113,0.4); }
.run-status.running { color: var(--accent); border-color: rgba(20,150,255,0.4); }
.run-status.error { color: var(--bad); border-color: rgba(255,92,92,0.4); }
.run-status.complete_with_errors { color: var(--warn); border-color: rgba(245,166,35,0.4); }

/* ─── Discover contacts modal ────────────────────────────────────────────── */
.discover-loading { text-align: center; padding: 40px 20px; }
.discover-loading .spinner-lg { margin: 0 auto 16px; display: block; }
.discover-loading p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.discover-suggestions { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.suggestion-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.suggestion-card.added { opacity: 0.5; }
.suggestion-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.suggestion-title { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.suggestion-rationale { font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.suggestion-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.confidence-dots { display: flex; gap: 4px; }
.confidence-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.confidence-dot.filled { background: var(--accent); }
.confidence-label { font-size: 11px; color: var(--text-dim); }
.suggestion-source { font-size: 11px; color: var(--text-dim); }
.suggestion-actions { display: flex; gap: 8px; align-items: center; }
.suggestion-added-label { font-size: 12px; color: var(--good); display: flex; align-items: center; gap: 4px; }

/* ─── Danger button ──────────────────────────────────────────────────────────── */
.btn-danger {
  background: rgba(255,92,92,0.12); color: var(--bad); border: 1px solid rgba(255,92,92,0.3);
  border-radius: var(--radius); padding: 9px 16px; font-size: 13px; cursor: pointer;
  font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(255,92,92,0.22); }

/* ─── Research nudge banners ─────────────────────────────────────────────────── */
.research-nudge {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: rgba(20,150,255,0.06); border: 1px solid rgba(20,150,255,0.2);
  border-radius: var(--radius); margin-bottom: 14px; flex-wrap: wrap;
}
.nudge-icon { font-size: 18px; flex-shrink: 0; }
.nudge-text { flex: 1; min-width: 0; font-size: 13px; }
.nudge-text strong { color: var(--accent); }
.nudge-text p { margin: 2px 0 0; font-size: 12px; color: var(--text-dim); }

/* ─── Contact quality dots ───────────────────────────────────────────────────── */
.quality-row { display: flex; gap: 4px; align-items: center; justify-content: center; margin-top: 6px; }
.quality-dot {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15); background: var(--panel);
  transition: background 0.15s;
}
.quality-dot.q-research { background: var(--accent); border-color: var(--accent); }
.quality-dot.q-enrich   { background: var(--accent-2); border-color: var(--accent-2); }
.quality-dot.q-persona  { background: var(--good); border-color: var(--good); }

/* ─── Contact role badge + overdue indicator ─────────────────────────────────── */
.oc-role-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 10px; margin: 3px auto 4px;
  display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: rgba(20, 150, 255, 0.15);
  color: var(--accent);
}
.oc-role-badge.oc-role-champion       { background: rgba(46, 204, 113, 0.18); color:var(--good); }
.oc-role-badge.oc-role-economic-buyer { background: rgba(106, 91, 255, 0.18); color:var(--accent-2); }
.oc-role-badge.oc-role-blocker        { background: rgba(255, 92, 92, 0.18); color:#e05; }
.oc-role-badge.oc-role-sdr-contact    { background: rgba(20, 150, 255, 0.1); color:var(--text-dim); }
.oc-overdue { color: #f80; font-size: 12px; cursor: default; }

/* ─── Activity log in contact drawer ─────────────────────────────────────────── */
.activity-item {
  display: flex; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item.activity-done { opacity: 0.6; }
.activity-type-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.activity-body { flex: 1; min-width: 0; }
.activity-header { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin-bottom: 4px; }
.activity-type-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-dim); }
.activity-subject { font-size: 13px; font-weight: 600; }
.activity-date { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.activity-user { font-size: 11px; color: var(--text-dim); }
.activity-team-participants { margin: 2px 0 5px; color: var(--text-dim); font-size: 11px; }
.activity-notes { font-size: 12px; color: var(--text); white-space: pre-wrap; margin-bottom: 4px; }
.activity-followup { font-size: 11px; color: var(--text-dim); }
.activity-followup.overdue { color: #f80; font-weight: 600; }

.ev-team-contact-picker { min-width: 0; padding: 8px 10px 10px; border: 1px solid var(--border); border-radius: 8px; }
.ev-team-contact-picker legend { padding: 0 5px; color: var(--text-dim); font-size: 12px; }
.ev-team-contact-picker[hidden] { display: none; }
.ev-team-contact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 10px; max-height: 210px; overflow-y: auto; }
.ev-team-contact-option { display: flex; align-items: flex-start; gap: 7px; min-width: 0; padding: 6px; border-radius: 5px; cursor: pointer; }
.ev-team-contact-option:hover { background: rgba(20,150,255,.07); }
.ev-team-contact-option input { margin: 2px 0 0; }
.ev-team-contact-option > span { display: flex; flex-direction: column; min-width: 0; }
.ev-team-contact-option strong { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.ev-team-contact-option small { overflow: hidden; color: var(--text-dim); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ev-selected-contact { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; }

/* ─── Standby contacts section ───────────────────────────────────────────────── */
.standby-section {
  margin-top: 32px; border-top: 1px solid var(--border); padding-top: 12px;
}
.standby-toggle {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 13px; padding: 6px 0; display: flex; align-items: center; gap: 8px;
}
.standby-toggle:hover { color: var(--text); }
.standby-count-badge {
  font-size: 10px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 1px 7px; color: var(--text-dim);
}
.standby-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px; margin-top: 12px;
}
.standby-card {
  background: var(--panel); border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 12px 14px; opacity: 0.75;
}
.standby-card:hover { opacity: 1; border-color: var(--accent-2); }
.standby-name { font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.standby-title { font-size: 11px; color: var(--text-dim); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.standby-actions { display: flex; gap: 6px; }

/* ─── Research health chart ──────────────────────────────────────────────────── */
.health-rows { display: flex; flex-direction: column; gap: 14px; }
.health-row { display: flex; align-items: center; gap: 12px; }
.health-label { width: 100px; font-size: 12px; color: var(--text-dim); flex-shrink: 0; }
.health-bar-wrap { flex: 1; height: 20px; background: var(--panel-2); border-radius: 4px; overflow: hidden; position: relative; }
.health-bar { height: 100%; border-radius: 4px; transition: width 1s ease; }
.health-bar.researched { background: linear-gradient(90deg, #1496ff, #0db4ff); }
.health-bar.enriched   { background: linear-gradient(90deg, #6a5bff, #a855f7); }
.health-bar.persona    { background: linear-gradient(90deg, #2ecc71, #22d3a3); }
.health-pct { font-size: 12px; font-weight: 700; min-width: 35px; text-align: right; }
.health-count { font-size: 11px; color: var(--text-dim); min-width: 55px; text-align: right; }
.health-action { font-size: 11px; color: var(--accent); text-decoration: underline; cursor: pointer; white-space: nowrap; }

/* ─── Token usage chart ──────────────────────────────────────────────────────── */
.token-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.token-tile {
  background: var(--panel-2); border-radius: 8px; padding: 14px 16px; text-align: center;
}
.token-tile-value { font-size: 22px; font-weight: 800; color: var(--text); }
.token-tile-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.token-cost { font-size: 11px; color: var(--text-dim); text-align: center; }
.token-runs { font-size: 12px; color: var(--text-dim); margin-top: 10px; text-align: center; }

/* ─── Account edit modal extras ─────────────────────────────────────────────── */
#accountEditContext {
  width: 100%; background: var(--panel-2); border: 1px solid var(--border);
  color: var(--text); border-radius: 6px; padding: 9px 10px; font-size: 13px;
  font-family: inherit; resize: vertical;
}
#accountEditContext:focus { outline: none; border-color: var(--accent); }

/* ─── Discover step 1 ───────────────────────────────────────────────────────── */
#discoverStep1 label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

/* ─── Suggestion standby button ────────────────────────────────────────────── */
.btn-standby { background: rgba(106,91,255,0.12); color: var(--accent-2); border: 1px solid rgba(106,91,255,0.3);
  border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-standby:hover { background: rgba(106,91,255,0.2); }

/* ─── General hover polish ──────────────────────────────────────────────────── */
.stat-tile { transition: box-shadow 0.2s, transform 0.15s; }
.stat-tile:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.25); transform: translateY(-2px); }
.dash-card { transition: box-shadow 0.2s; }
.dash-card:hover { box-shadow: 0 2px 14px rgba(0,0,0,0.18); }
.org-card { transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s; }
.org-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
.finding-card { transition: box-shadow 0.15s, transform 0.12s; }
.finding-card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ─── Contact drawer header with photo ─────────────────────────────────────── */
.drawer-header-row { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.drawer-header-info { flex: 1; min-width: 0; }
.drawer-header-info h2 { margin: 0 0 4px; font-size: 20px; line-height: 1.2; }
.drawer-subtitle { color: var(--text-dim); margin: 0 0 6px; font-size: 13px; }

.contact-photo-wrap {
  position: relative; flex-shrink: 0; width: 72px; height: 72px;
}
.contact-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); display: block;
}
.contact-photo-edit-btn {
  position: absolute; bottom: 1px; right: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; transition: opacity 0.15s;
}
.contact-photo-wrap:hover .contact-photo-edit-btn { opacity: 1; }
.contact-photo-remove-btn {
  position: absolute; top: 1px; right: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(220,50,50,0.85); border: 2px solid var(--bg);
  color: #fff; font-size: 13px; line-height: 1; display: flex;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  opacity: 0; transition: opacity 0.15s;
}
.contact-photo-wrap:hover .contact-photo-remove-btn { opacity: 1; }
.contact-photo-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  width: 72px; height: 72px; border-radius: 50%;
  color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.5px;
}

/* ─── LinkedIn profile button ───────────────────────────────────────────────── */
.linkedin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0a66c2; color: #fff; text-decoration: none;
  border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  margin-top: 8px; transition: background 0.15s, transform 0.12s;
}
.linkedin-btn:hover { background: #004182; transform: translateY(-1px); }
.linkedin-btn svg { flex-shrink: 0; }

/* ─── Tech Stack tab ─────────────────────────────────────────────────────────── */
.ts-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) { .ts-layout { grid-template-columns: 1fr; } }

.ts-nav {
  position: sticky;
  top: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 0;
  overflow: hidden;
}
.ts-nav-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-dim); padding: 6px 14px 4px;
}
.ts-nav-label:not(:first-child) { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.ts-nav-list { list-style: none; margin: 0; padding: 0; }
.ts-nav-link {
  display: block; padding: 5px 14px;
  font-size: 12px; color: var(--text-dim); text-decoration: none;
  border-left: 3px solid transparent;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ts-nav-link:hover { color: var(--text); }
.ts-nav-link.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; background: rgba(98,179,255,0.04); }

.ts-main { min-width: 0; }
.ts-cat-section { margin-bottom: 4px; scroll-margin-top: 80px; }
.ts-subsidiary-stacks {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.ts-subsidiary-stacks h3 { margin: 0 0 6px; font-size: 15px; }
.ts-subsidiary-stack {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}
.ts-subsidiary-stack summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 600; }
.ts-subsidiary-category { display: grid; grid-template-columns: minmax(150px, 0.3fr) 1fr; gap: 12px; margin-top: 9px; font-size: 12px; }
.ts-subsidiary-category strong { color: var(--text-dim); }
@media (max-width: 600px) { .ts-subsidiary-category { grid-template-columns: 1fr; gap: 3px; } }

/* ts-grid removed — tech stack is now a single full-width column */
.ts-context-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 0; align-items: start; }
@media (max-width: 760px) { .ts-context-grid { grid-template-columns: 1fr; } }

/* ─── Account logo overlay (fixed bottom-left) ───────────────────────────────── */
.account-logo-overlay {
  width: calc(100% - 32px); max-height: 110px; margin: auto 16px 18px;
  object-fit: contain; flex: 0 0 auto; display: none;
  opacity: 0.85; border-radius: 8px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
}
.account-logo-overlay.visible { display: block; }
.brand-sep { display: none; } /* kept for compat */

.logo-upload-area {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border: 1px dashed var(--border); border-radius: 10px;
  background: var(--panel-2); margin-top: 4px;
}
.logo-upload-preview {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--text-dim); overflow: hidden;
}
.logo-upload-preview img { width: 100%; height: 100%; object-fit: contain; }

/* ─── Tool pill editing ──────────────────────────────────────────────────────── */
.ts-categories .ts-pill { cursor: pointer !important; transition: border-color 0.12s, color 0.12s, opacity 0.12s; }
.ts-categories .ts-pill:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.ts-pill.tool-conf-low { opacity: 0.5; border-style: dashed; }

.ts-add-tool-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px dashed var(--border); background: none;
  color: var(--text-dim); font-size: 14px; cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
  flex-shrink: 0;
}
.ts-add-tool-btn:hover { border-color: var(--accent); color: var(--accent); border-style: solid; }

.ts-cat-add-row { margin-top: 12px; }
.ts-add-cat-btn {
  font-size: 12px; color: var(--text-dim); background: none; border: none;
  cursor: pointer; padding: 0; display: flex; align-items: center; gap: 5px;
  transition: color 0.12s;
}
.ts-add-cat-btn:hover { color: var(--accent); }

.confidence-btn-group { display: flex; gap: 8px; margin-top: 6px; }
.conf-btn {
  flex: 1; padding: 7px 0; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 6px; background: var(--panel-2);
  color: var(--text-dim); cursor: pointer; text-align: center; transition: all 0.12s;
}
.conf-btn:hover:not([class*="active"]) { border-color: var(--text-dim); color: var(--text); }
.conf-btn.active-high { background: rgba(62,206,150,0.15); border-color: var(--good); color: var(--good); }
.conf-btn.active-medium { background: rgba(255,200,80,0.12); border-color: #ffc850; color: #e8b84d; }
.conf-btn.active-low { background: rgba(224,72,72,0.1); border-color: var(--bad); color: var(--bad); }

.ts-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ts-section-header h3 { margin: 0; font-size: 15px; }
.ts-updated-at { font-size: 11px; color: var(--text-dim); margin-left: auto; }

.ts-empty { color: var(--text-dim); font-size: 13px; padding: 20px 0; }

.ts-cat-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.ts-cat-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase;
  letter-spacing: 0.05em; min-width: 160px; padding-top: 5px; flex-shrink: 0; }
.ts-tools-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tool-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: 12px;
  font-weight: 500; color: var(--text); transition: border-color 0.15s; }
.tool-tag.tool-has-map { cursor: default; }
.tool-badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.tool-badge-dot.displace { background: var(--bad); }
.tool-badge-dot.complement { background: var(--warn); }
.tool-badge-dot.expand { background: var(--good); }
.tool-badge-displace { border-color: rgba(224,72,72,0.4); }
.tool-badge-complement { border-color: rgba(255,179,77,0.4); }
.tool-badge-expand { border-color: rgba(100,210,140,0.4); }

.ts-sec-business, .ts-sec-tools { scroll-margin-top: 80px; }
#tsDtValueMap, #tsJobSignals, #tsNotes { scroll-margin-top: 80px; }
.ts-job-signals { margin-top: 20px; }
.ts-job-signals h4 { font-size: 13px; margin-bottom: 8px; }
.ts-signal-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px solid var(--border); font-size: 12px; }
.ts-signal-role { font-weight: 600; min-width: 160px; flex-shrink: 0; color: var(--text); }
.ts-signal-text { flex: 1; color: var(--text-dim); }
.ts-signal-conf { border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.conf-high { background: rgba(100,210,140,0.12); color: var(--good); }
.conf-medium { background: rgba(255,179,77,0.12); color: var(--warn); }
.conf-low { background: rgba(224,72,72,0.1); color: var(--bad); }

.ts-notes-text { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

.ts-context-col {}
.ts-context-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.ts-context-card h3 { margin: 0 0 12px; font-size: 14px; color: var(--text); }

.bc-section { margin-top: 12px; }
.bc-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 5px; }
.bc-list { margin: 0; padding-left: 16px; font-size: 12px; color: var(--text-dim); line-height: 1.7; }
.dtp-value-story { font-size: 13px; color: var(--text); line-height: 1.6; margin-bottom: 12px; font-style: italic; }

.dt-value-map { display: flex; flex-direction: column; gap: 12px; }
.dt-value-row { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; }
.dt-value-tool { min-width: 140px; flex-shrink: 0; padding-top: 2px; }
.dt-value-arrow { color: var(--accent); font-size: 18px; padding-top: 4px; }
.dt-value-opp { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.dt-value-sol { font-size: 12px; color: var(--text-dim); line-height: 1.5; }

/* ─── Research Guide Modal ───────────────────────────────────────────────────── */
.rg-context-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: none; border-top: 1px solid var(--border);
  padding: 8px 0; font-size: 12px; font-weight: 600; color: var(--text-dim);
  cursor: pointer; text-align: left;
}
.rg-context-toggle:hover { color: var(--text); }
.rg-context-caret { font-size: 10px; }
.rg-context-body { padding: 10px 0 2px; display: flex; flex-direction: column; gap: 4px; }
.rg-context-row { font-size: 13px; line-height: 1.5; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rg-context-label { font-size: 11px; font-weight: 700; text-transform: capitalize; color: var(--text-dim); white-space: nowrap; min-width: 52px; }

/* ─── Import modal ───────────────────────────────────────────────────────────── */
.import-preview { display: flex; flex-direction: column; gap: 16px; }
.import-section { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.import-section-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.import-section-header h3 { margin: 0; font-size: 14px; }
.import-count-badge { background: var(--accent); color: #fff; border-radius: 20px;
  padding: 1px 9px; font-size: 11px; font-weight: 700; min-width: 22px; text-align: center; }
.import-contacts-list { display: flex; flex-direction: column; gap: 8px; }
.import-contact-row { display: flex; }
.import-check-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.import-check-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; accent-color: var(--accent); width: 15px; height: 15px; }
.import-check-label strong { font-size: 13px; display: block; }
.import-contact-sub { font-size: 11px; color: var(--text-dim); }
.import-contact-note { font-size: 11px; color: var(--text-dim); margin: 4px 0 0; line-height: 1.5; }
.import-tools-grid { display: flex; flex-direction: column; gap: 8px; }
.import-tool-cat { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.import-tool-cat-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-dim); min-width: 100px; flex-shrink: 0; }

.import-mode-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.import-mode-tab {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.import-mode-tab:hover { color: var(--text); }
.import-mode-tab.active { color: var(--accent); border-color: var(--accent); background: rgba(20,150,255,0.08); }

.import-image-dropzone {
  position: relative; min-height: 260px; border: 2px dashed var(--border); border-radius: 10px;
  background: var(--panel-2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: border-color .15s, background .15s; padding: 16px; overflow: auto;
}
.import-image-dropzone:hover, .import-image-dropzone:focus { border-color: var(--accent); outline: none; }
.import-image-dropzone.drag-over { border-color: var(--accent); background: rgba(20,150,255,0.08); }
.import-image-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--text-dim); }
.import-image-icon { font-size: 32px; }
.import-image-empty strong { color: var(--text); font-size: 14px; }
.import-image-dropzone img#importImagePreview { max-width: 100%; max-height: 420px; border-radius: 8px; display: block; }
.import-contact-manager { font-size: 11px; color: var(--accent); font-weight: 600; }

/* ─── Account Summary doc ────────────────────────────────────────────────────── */
.summary-placeholder { text-align: center; padding: 60px 20px; color: var(--text-dim); }
.summary-placeholder-icon { font-size: 40px; color: var(--accent); margin-bottom: 14px; }
.summary-placeholder h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; }
.summary-placeholder p { font-size: 14px; max-width: 500px; margin: 0 auto 8px; }

.account-summary-doc { max-width: 860px; }
.summary-doc-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--accent); }
.summary-doc-title { font-size: 22px; margin: 0; color: var(--text); }
.summary-generated-date { font-size: 11px; color: var(--text-dim); margin-left: auto; flex-shrink: 0; }

.summary-executive-takeaway { background: linear-gradient(135deg, rgba(98,179,255,0.08), rgba(106,91,255,0.06));
  border: 1px solid rgba(98,179,255,0.2); border-radius: 12px; padding: 18px 20px; margin-bottom: 28px; }
.summary-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.summary-section-actions { display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.summary-section-actions .btn { font-size: 10px; }
.summary-et-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 8px; }
.summary-et-text { font-size: 15px; line-height: 1.7; color: var(--text); margin: 0; font-weight: 500; }

.summary-section { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.summary-section:last-child { border-bottom: none; }
.summary-section-title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent-2); margin: 0 0 10px; }
.summary-section-heading .summary-section-title { margin-bottom: 10px; }
.summary-section-content { font-size: 13px; color: var(--text); line-height: 1.75; }
.summary-section-editor { margin-top: 12px; }
.summary-section-editor[hidden] { display: none; }
.summary-editor-panel { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); }
.summary-editor-panel label { font-size: 11px; font-weight: 700; }
.summary-editor-panel textarea { box-sizing: border-box; width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); color: var(--text); font: inherit; font-size: 12px; line-height: 1.6; }
.summary-editor-panel textarea:read-only { opacity: .75; }
.summary-editor-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.summary-editor-footer > div { display: flex; flex-wrap: wrap; gap: 6px; }
.summary-editor-footer .hint { font-size: 11px; }
.summary-section-content ul { margin: 6px 0; padding-left: 18px; }
.summary-section-content li { margin-bottom: 4px; }
.summary-section-content strong { color: var(--text); }

/* ─── Account Summary — sidebar nav layout ──────────────────────────────────── */
.summary-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1100px;
}
@media (max-width: 800px) { .summary-layout { grid-template-columns: 1fr; } }

/* Sticky left nav */
.summary-nav {
  position: sticky;
  top: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 0 12px;
  overflow: hidden;
}
.summary-nav-account {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 16px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.summary-nav-date {
  font-size: 10px;
  color: var(--text-dim);
  padding: 0 16px 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.summary-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.summary-nav-link {
  display: block;
  padding: 7px 16px;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  line-height: 1.3;
}
.summary-nav-link:hover {
  color: var(--text);
  background: var(--panel-2);
}
.summary-nav-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(98,179,255,0.06);
  font-weight: 600;
}

/* Remove old max-width from .account-summary-doc since it's now inside .summary-doc */
.summary-doc { min-width: 0; }

@media (max-width: 640px) {
  .summary-section-heading { flex-direction: column; }
  .summary-section-actions { width: 100%; }
  .summary-section-actions .btn { flex: 1; }
}

/* ─── User Badge ─────────────────────────────────────────────────────────────── */
.user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(20,150,255,0.2);
}
.user-badge-name {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}
.user-badge-role {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(20,150,255,0.15);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
}
.user-logout-btn {
  background: none;
  border: 1px solid rgba(20,150,255,0.2);
  border-radius: 4px;
  color: var(--text-dim);
  font-size: 12px;
  padding: 3px 8px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.user-logout-btn:hover { border-color: rgba(20,150,255,0.5); color: var(--text); }

/* ─── Tab scroll content ─────────────────────────────────────────────────────── */
.tab-scroll-content {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

/* ─── Teams tab ──────────────────────────────────────────────────────────────── */
.teams-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.team-workspace-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.team-workspace-tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font: inherit;
  padding: 10px 16px;
}
.team-workspace-tab:hover,
.team-workspace-tab.active {
  color: var(--text);
}
.team-workspace-tab.active {
  border-bottom-color: var(--accent, #1496ff);
}
.team-workspace-panel { min-width: 0; }
.team-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.team-card-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.team-card-meta {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}
.team-meta-label {
  font-weight: 600;
  color: var(--text-muted);
}
.chk-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.chk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
}
.chk-label input { cursor: pointer; }

/* ─── Opportunities tab ──────────────────────────────────────────────────────── */
.opps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.opps-actions { display: flex; gap: 8px; }
.opps-list { display: flex; flex-direction: column; gap: 14px; }
.opp-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}
.opp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 8px;
}
.opp-name { font-size: 15px; font-weight: 600; }
.opp-focus {
  font-size: 11px;
  color: var(--text-dim);
  margin-left: 8px;
}
.opp-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.opp-rationale { font-size: 12px; color: var(--text-dim); display: flex; gap: 6px; align-items: baseline; }
.opp-contacts { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.ai-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-right: 4px;
}

/* ─── AI Advisor tab ─────────────────────────────────────────────────────────── */
.advisor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.advisor-actions { display: flex; gap: 8px; }
.advisor-strategy {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}
.advisor-strategy-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.advisor-strategy-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  outline: none;
  min-height: 60px;
  border-radius: 4px;
  padding: 4px;
  margin-bottom: 10px;
}
.advisor-strategy-text:focus { background: rgba(20,150,255,0.05); }
.advisor-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}

/* ─── Gantt chart ─────────────────────────────────────────────────────────────── */
.gantt-wrap { overflow-x: auto; margin-bottom: 32px; }
.gantt-table { min-width: 700px; }
.gantt-head, .gantt-row {
  display: flex;
  align-items: stretch;
}
.gantt-head {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  border-radius: 6px 6px 0 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.gantt-col-meta {
  flex: 0 0 200px;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
}
.gantt-col-week {
  flex: 1;
  padding: 8px 6px;
  text-align: center;
  border-right: 1px solid var(--border);
  font-size: 11px;
}
.gantt-row {
  border-bottom: 1px solid var(--border);
}
.gantt-row:last-child { border-bottom: none; }
.gantt-cell {
  flex: 1;
  padding: 6px;
  border-right: 1px solid var(--border);
  position: relative;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.gantt-cell.empty { background: transparent; }
.gantt-cell-title {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 4px;
}
.gantt-week-edit {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 11px;
  padding: 2px;
  opacity: 0.5;
}
.gantt-cell:hover .gantt-week-edit { opacity: 1; }
.gantt-weeks-detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gantt-week-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
.gwc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.gwc-week { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.gwc-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gwc-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.gwc-opp { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.gwc-owner { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
.gwc-actions {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ─── Modal generic ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.modal-overlay.open { display: flex; }
.modal-panel {
  background: #0d1929;
  border: 1px solid rgba(20,150,255,0.2);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(20,150,255,0.1);
}
.modal-header h3 { font-size: 16px; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(20,150,255,0.1);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-row label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-row input, .form-row select, .form-row textarea {
  background: var(--bg);
  border: 1px solid rgba(20,150,255,0.2);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--accent);
}
.btn-danger {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #ef4444;
  border-radius: 6px;
  font-size: 13px;
  padding: 6px 14px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-tiny {
  font-size: 11px !important;
  padding: 3px 8px !important;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.empty-hint {
  color: var(--text-dim);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}


/* ─── Admin panel sections ────────────────────────────────────────────────────── */
.admin-section {
  margin-bottom: 40px;
}
.admin-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.admin-section-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ─── Users table ─────────────────────────────────────────────────────────────── */
.users-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.users-table thead {
  background: var(--panel-2);
}
.users-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.users-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.users-table tbody tr:last-child td { border-bottom: none; }
.user-id-cell { font-family: monospace; color: var(--muted, #5a7a9f); font-size: 12px; }
.users-table tbody tr:hover { background: rgba(20,150,255,0.04); }
.user-row-me { background: rgba(20,150,255,0.03); }
.user-actions { white-space: nowrap; display: flex; gap: 6px; }
.you-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: rgba(20,150,255,0.12);
  color: var(--accent);
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 4px;
}
.user-title-sub {
  font-size: 11px;
  color: #5a7a9f;
  font-weight: 400;
  margin-top: 1px;
}
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.role-admin {
  background: rgba(20,150,255,0.12);
  color: var(--accent);
}
.role-user {
  background: rgba(100,120,150,0.12);
  color: var(--text-dim);
}
.role-manager {
  background: rgba(139,92,246,0.12);
  color: #a78bfa;
}
.role-ae { background: rgba(20,150,255,0.12); color: var(--accent); }
.role-se { background: rgba(46,204,113,0.12); color: var(--good); }
.role-sdr { background: rgba(100,120,150,0.15); color: var(--text-dim); }
.role-csm { background: rgba(255,170,0,0.12); color: var(--accent-2); }
.role-cse { background: rgba(255,170,0,0.18); color: var(--accent-2); }
.role-regional_director { background: rgba(139,92,246,0.16); color: #a78bfa; }
.role-regional_vp { background: rgba(224,72,72,0.14); color: #e05; }
.role-svp_na { background: rgba(224,72,72,0.22); color: #e05; }
.role-strike_team_leadership { background: rgba(255,170,0,0.22); color: var(--accent-2); }
.role-dem_strike_team { background: rgba(20,150,255,0.14); color: var(--accent); }
.role-security_strike_team { background: rgba(224,72,72,0.14); color: #e05; }
.role-logs_strike_team { background: rgba(46,204,113,0.14); color: var(--good); }
.role-cloud_native_strike_team { background: rgba(139,92,246,0.14); color: #a78bfa; }

.user-org-chart {
  position: relative;
  overflow: auto;
  height: min(72vh, 680px);
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  cursor: grab;
}
.user-org-chart.grabbing { cursor: grabbing; user-select: none; }
.org-card.user-org-card { min-width: 170px; }
.user-org-role-groups { display: flex; flex-direction: column; gap: 24px; }
.user-org-role-group { min-width: max-content; }
.user-org-role-heading {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.user-org-role-row { display: flex; align-items: flex-start; gap: 12px; }
.user-org-role-row .org-card.user-org-card { margin: 0; }

/* prowlerDEV: isolated workspace, page components, and safe authoring controls */
.dev-workspace { display: flex; flex-direction: column; gap: 18px; max-width: 1400px; margin: 0 auto; }
.dev-header, .dev-page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.dev-header h2, .dev-page-heading h2 { margin: 0 0 4px; }
.dev-header p, .dev-page-heading p { margin: 0; }
.dev-page-list { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.dev-page-tab { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; background: var(--panel); color: var(--text-dim); cursor: pointer; font: inherit; font-size: 12px; }
.dev-page-tab:hover, .dev-page-tab.is-active { border-color: var(--accent); color: var(--text); }
.dev-access-badge { color: var(--accent); font-size: 10px; }
.dev-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.dev-editor { display: flex; flex-direction: column; gap: 10px; }
.dev-editor h3, .dev-card h3 { margin: 0 0 8px; font-size: 14px; }
.dev-editor label { font-size: 12px; font-weight: 600; }
.dev-editor textarea { width: 100%; box-sizing: border-box; min-height: 80px; resize: vertical; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-2); color: var(--text); font: inherit; }
.dev-editor-intro h3 { margin: 4px 0; font-size: 18px; }
.dev-editor-intro p { max-width: 760px; margin: 0; line-height: 1.5; }
.dev-builder-step { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.dev-recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 9px; }
.dev-recipe-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 130px; padding: 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, transform .15s, background .15s; }
.dev-recipe-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.dev-recipe-card.is-selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--panel)); box-shadow: 0 0 0 1px var(--accent); }
.dev-recipe-card strong { font-size: 13px; }
.dev-recipe-card span { flex: 1; color: var(--text-dim); font-size: 11px; line-height: 1.45; font-weight: 400; }
.dev-recipe-card small { color: var(--accent); font-size: 10px; font-weight: 700; }
.dev-guided-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.dev-guided-fields label { display: flex; flex-direction: column; gap: 6px; }
.dev-guided-fields select, .dev-editor > input { width: 100%; box-sizing: border-box; padding: 9px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-2); color: var(--text); font: inherit; }
.dev-source-picker { min-width: 0; margin: 2px 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.dev-source-picker legend { padding: 0 5px; font-size: 12px; font-weight: 700; }
.dev-source-picker > .hint { margin: 0 0 10px; }
.dev-source-picker > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 7px; }
.dev-source-option { display: flex; align-items: flex-start; gap: 9px; padding: 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-2); cursor: pointer; }
.dev-source-option input { margin: 2px 0 0; accent-color: var(--accent); }
.dev-source-option span { display: flex; flex-direction: column; gap: 3px; }
.dev-source-option strong { font-size: 11px; }
.dev-source-option small { color: var(--text-dim); font-size: 10px; font-weight: 400; line-height: 1.4; }
.dev-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.dev-editor-actions .hint { flex: 1; min-width: 180px; }
.dev-preview-definition { border-top: 1px solid var(--border); padding-top: 12px; }
.dev-preview-definition li { margin: 5px 0; color: var(--text-dim); font-size: 12px; }
.dev-preview-layout { margin: 8px 0; color: var(--accent); font-size: 12px; text-transform: capitalize; }
.dev-preview-plan { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; padding: 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.dev-preview-plan > strong { font-size: 11px; }
.dev-preview-plan > div { display: flex; flex-wrap: wrap; gap: 6px; }
.dev-preview-plan > small { color: var(--text-dim); font-size: 10px; }
.dev-data-chip { padding: 4px 8px; border: 1px solid var(--border); border-radius: 20px; color: var(--accent); font-size: 10px; }
.dev-preview-live { margin: 14px 0; padding: 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.dev-preview-live > h4 { margin: 0 0 10px; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.dev-preview-live .dev-component-grid { margin-top: 0; }
.dev-page-heading { margin-bottom: 16px; }
.dev-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dev-component-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.dev-component-grid.dev-layout-report,
.dev-component-grid.dev-layout-table,
.dev-component-grid.dev-layout-board { grid-template-columns: minmax(0, 1fr); }
.dev-metric-card { display: flex; flex-direction: column; min-height: 100px; justify-content: center; }
.dev-metric-value { color: var(--accent); font-size: 30px; font-weight: 800; }
.dev-metric-card h3 { color: var(--text-dim); margin: 5px 0 0; }
.dev-copy-card p { color: var(--text-dim); font-size: 13px; line-height: 1.6; white-space: normal; }
.dev-component-grid > .dev-copy-card { grid-column: 1 / -1; }
.dev-account-selector { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.dev-account-selector label { font-size: 13px; font-weight: 700; }
.dev-account-selector select { min-width: 240px; max-width: 100%; padding: 8px 32px 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-2); color: var(--text); font: inherit; }
.dev-account-selector .hint { flex: 1; min-width: 180px; }
.dev-table-card { grid-column: 1 / -1; min-width: 0; }
.dev-list-card,
.dev-chart-card,
.dev-board-card { grid-column: 1 / -1; min-width: 0; }
.dev-table-scroll { overflow: auto; max-width: 100%; }
.dev-table-scroll table { width: 100%; border-collapse: collapse; font-size: 12px; }
.dev-table-scroll th, .dev-table-scroll td { text-align: left; padding: 8px; border-bottom: 1px solid var(--border); max-width: 300px; overflow-wrap: anywhere; }
.dev-table-scroll th { color: var(--text-dim); text-transform: capitalize; }
.dev-record-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.dev-record { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.dev-record > strong { font-size: 13px; overflow-wrap: anywhere; }
.dev-record > span,
.dev-board-item > span { display: flex; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere; }
.dev-record small,
.dev-board-item small { color: var(--text-dim); text-transform: capitalize; }
.dev-chart-content { display: flex; align-items: center; gap: 24px; min-height: 160px; }
.dev-bar-chart { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dev-bar-row { display: grid; grid-template-columns: minmax(70px, 1fr) minmax(80px, 3fr) auto; align-items: center; gap: 10px; font-size: 12px; }
.dev-bar-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.dev-bar-track { height: 10px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.dev-bar-track i { display: block; height: 100%; border-radius: inherit; }
.dev-bar-row > strong { min-width: 36px; text-align: right; }
.dev-change-summary, .dev-health { border: 1px solid var(--border); border-left: 3px solid #6a5bff; border-radius: 8px; padding: 10px 12px; margin: 10px 0; }
.dev-change-summary p { margin: 4px 0; font-size: 13px; }
.dev-change-list, .dev-health ul { margin: 6px 0 0; padding-left: 18px; font-size: 12px; }
.dev-change-list li.is-added::marker { color: #22c55e; }
.dev-change-list li.is-removed::marker { color: #ef4444; }
.dev-change-list li.is-changed::marker, .dev-change-list li.is-moved::marker, .dev-change-list li.is-page::marker { color: #f59e0b; }
.dev-health.is-ok { border-left-color: #22c55e; }
.dev-health.is-warn { border-left-color: #f59e0b; }
.dev-health.is-bad { border-left-color: #ef4444; }
.dev-health li { margin-bottom: 3px; }
.dev-health button { margin-top: 8px; }
.dev-bar-chart.is-funnel .dev-bar-track { background: transparent; }
.dev-bar-chart.is-funnel .dev-bar-track i { margin: 0 auto; }
.dev-donut-chart { position: relative; flex: 0 0 150px; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; }
.dev-donut-chart::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--panel); }
.dev-donut-chart > span { z-index: 1; font-size: 20px; font-weight: 800; }
.dev-chart-legend { display: flex; flex-direction: column; gap: 7px; min-width: 160px; margin: 0; padding: 0; list-style: none; }
.dev-chart-legend li { display: grid; grid-template-columns: 9px minmax(60px, 1fr) auto; align-items: center; gap: 8px; font-size: 12px; }
.dev-chart-legend li > i { width: 9px; height: 9px; border-radius: 50%; }
.dev-chart-legend li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dim); }
.dev-board { display: flex; align-items: flex-start; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.dev-board-column { flex: 1 0 220px; max-width: 340px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); }
.dev-board-column > header { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 12px; text-transform: capitalize; }
.dev-board-column > header > span { color: var(--text-dim); }
.dev-board-items { display: flex; flex-direction: column; gap: 7px; }
.dev-board-item { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); }
.dev-board-item > strong { font-size: 12px; overflow-wrap: anywhere; }
.dev-copy-narrative { grid-column: 1 / -1; }
.dev-copy-narrative p { font-size: 15px; line-height: 1.75; color: var(--text); }
.dev-copy-callout { grid-column: 1 / -1; border-left: 3px solid var(--accent); background: linear-gradient(135deg, rgba(20,150,255,.08), rgba(106,91,255,.05)); }
.dev-timeline-card,
.dev-org-chart-card { grid-column: 1 / -1; min-width: 0; }
.dev-timeline { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 4px; }
.dev-timeline-entry { position: relative; display: flex; gap: 12px; padding: 10px 0 10px 4px; }
.dev-timeline-entry:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: -10px; width: 2px; background: var(--border); }
.dev-timeline-dot { flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--ch, var(--border)); color: var(--ch, var(--text-dim)); z-index: 1; }
.dev-timeline-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dev-timeline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.dev-timeline-head > strong { font-size: 13px; overflow-wrap: anywhere; }
.dev-timeline-head > time { color: var(--text-dim); font-size: 11px; white-space: nowrap; }
.dev-timeline-body > span { display: flex; gap: 6px; color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere; }
.dev-timeline-body small { color: var(--text-dim); text-transform: capitalize; }
.dev-org-chart { overflow-x: auto; padding: 4px; }
.dev-org-root,
.dev-org-node ul { list-style: none; margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.dev-org-root { padding-left: 0; }
.dev-org-node { position: relative; }
.dev-org-node ul { border-left: 1px dashed var(--border); margin-top: 8px; }
.dev-org-box { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); min-width: 160px; }
.dev-org-box > strong { font-size: 12px; }
.dev-org-box > span { color: var(--text-dim); font-size: 11px; }
@media (max-width: 640px) {
  .dev-chart-content { align-items: flex-start; flex-direction: column; }
  .dev-chart-legend { width: 100%; }
  .dev-bar-row { grid-template-columns: minmax(60px, 1fr) minmax(60px, 2fr) auto; gap: 6px; }
}
.dev-share-section { margin-top: 16px; }
.dev-share-add { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.dev-share-add select { min-width: 150px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 7px; }
.dev-shares { display: flex; gap: 7px; flex-wrap: wrap; }
.dev-share-chip { display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: 11px; }
.dev-share-chip button { border: 0; background: none; color: var(--text-dim); cursor: pointer; font-size: 15px; }
.dev-version-section { margin-top: 16px; }
.dev-version-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 7px 0; border-top: 1px solid var(--border); font-size: 12px; }
.dev-version-row > div { display: flex; flex-direction: column; gap: 3px; }
.dev-error-card, .dev-empty, .dev-quarantine { padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.dev-error-card { border-color: var(--bad); }
.dev-error-card h3, .dev-empty h3, .dev-quarantine h3 { margin: 0 0 8px; }
.dev-quarantine { display: flex; flex-direction: column; gap: 6px; }
.published-page-nav { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 10px; }
.published-page-tab {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px;
  padding: 9px 11px; border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; background: linear-gradient(135deg, rgba(20,150,255,.10), rgba(106,91,255,.07));
  color: var(--text); text-align: left; font-size: 12px; font-weight: 600;
  white-space: normal; transition: border-color .15s, background .15s, transform .15s;
}
.published-page-tab:hover:not(.active) { background: linear-gradient(135deg, rgba(20,150,255,.18), rgba(106,91,255,.12)); border-color: rgba(20,150,255,.55); transform: translateX(2px); }
.published-page-tab.active { border-color: var(--accent); background: rgba(20,150,255,.2); }
.published-page-icon { width: 19px; height: 21px; flex: 0 0 auto; fill: currentColor; color: var(--accent); }
.published-page-label { min-width: 0; overflow-wrap: anywhere; }
.published-page-panel { min-height: 320px; }
.published-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.published-page-heading h2 { margin: 4px 0; }
.published-page-heading .hint { margin: 0; }
.published-page-heading > .btn { flex: 0 0 auto; }
.published-page-kicker { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.dev-my-pages { display: flex; flex-direction: column; gap: 12px; }
.dev-my-page-list { display: flex; flex-direction: column; gap: 10px; }
.dev-my-page { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.dev-my-page h4 { margin: 0 0 4px; }
.dev-my-page p { margin: 0 0 8px; }
.dev-publish-status { display: inline-block; color: var(--text-dim); font-size: 11px; }
.dev-publish-status.is-published { color: var(--good); }
.dev-ide { max-width: none; margin: 0; gap: 14px; }
.dev-ide-header { align-items: center; }
.dev-header-actions { display: flex; gap: 8px; align-items: center; }
.dev-ide-body { display: grid; grid-template-columns: 245px minmax(0, 1fr); min-height: min(680px, calc(100vh - 260px)); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); }
.dev-sidebar { min-width: 0; padding: 12px 8px; background: var(--panel-2); border-right: 1px solid var(--border); }
.dev-sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 3px 8px 11px; color: var(--text-dim); font-size: 10px; font-weight: 800; letter-spacing: 0.1em; }
.dev-sidebar-new { width: 23px; height: 23px; padding: 0; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); color: var(--text); font-size: 17px; line-height: 1; cursor: pointer; }
.dev-tree-group { margin: 0 0 15px; }
.dev-tree-group h3 { display: flex; align-items: center; justify-content: space-between; margin: 0; padding: 6px 8px; color: var(--text-dim); font-size: 10px; letter-spacing: 0.07em; }
.dev-tree-group h3 span { color: var(--text-dim); opacity: 0.7; font-size: 10px; }
.dev-tree-page { width: 100%; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 0; border-radius: 5px; background: transparent; color: var(--text-dim); text-align: left; cursor: pointer; font: inherit; font-size: 12px; }
.dev-tree-page:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.dev-tree-page.is-active { background: rgba(20,150,255,0.13); color: var(--text); }
.dev-tree-file-icon { width: 14px; color: var(--accent); text-align: center; }
.dev-tree-page-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-tree-status { color: var(--good); font-size: 9px; }
.dev-tree-empty { margin: 2px 8px 8px; color: var(--text-dim); opacity: 0.65; font-size: 11px; }
.dev-tree-failed-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; color: var(--warn); font-size: 11px; }
.dev-tree-failed-row button { border: 0; background: none; color: var(--accent); cursor: pointer; font: inherit; }
.dev-editor-pane { min-width: 0; padding: 22px; overflow-y: auto; }
.dev-active-page { min-width: 0; }
.dev-active-page > .dev-component-grid { margin-top: 18px; }
.dev-welcome { min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center; }
.dev-welcome-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel-2); color: var(--accent); font-size: 25px; }
.dev-welcome h2 { margin: 0 0 8px; font-size: 20px; }
.dev-welcome p { max-width: 420px; margin: 0 0 18px; color: var(--text-dim); font-size: 13px; line-height: 1.6; }
.dev-ide .dev-my-pages { max-width: 900px; margin: 0 auto; }
.dev-ide .dev-empty { text-align: center; }
@media (max-width: 700px) {
  .tabs { overflow-x: auto; }
  .app-content-layout { grid-template-columns: 170px minmax(0, 1fr); }
  main { padding: 16px 12px 48px; }
  .dev-my-page { align-items: flex-start; flex-direction: column; }
  .dev-ide-body { grid-template-columns: 1fr; }
  .dev-sidebar { border-right: 0; border-bottom: 1px solid var(--border); }
  .dev-tree-group { margin-bottom: 8px; }
  .dev-editor-pane { padding: 14px; }
}
.user-detail-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.user-detail-link:hover { text-decoration: underline; }
.manager-badge {
  background: rgba(139,92,246,0.15);
  color: #a78bfa;
  border-color: rgba(139,92,246,0.3);
}
.team-color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Manager tab admin-only hide */
.admin-only-tab { display: none; }
.elevated-only-tab { display: none; }

/* KPI strip */
.mgr-kpi-strip { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.mgr-kpi { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; flex: 1; min-width: 120px; }
.mgr-kpi-num { font-size: 32px; font-weight: 800; color: var(--text); line-height: 1; }
.mgr-kpi-label { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }

/* AI Usage dashboard */
.ai-usage-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
@media (max-width: 1100px) { .ai-usage-columns { grid-template-columns: 1fr; } }

.ai-usage-bar-list { display: flex; flex-direction: column; gap: 10px; }
.ai-usage-bar-row { display: flex; flex-direction: column; gap: 4px; }
.ai-usage-bar-label { font-size: 12px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-usage-bar-track { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.ai-usage-bar-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.ai-usage-bar-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); }
.ai-usage-bar-share { margin-left: 4px; opacity: 0.7; }
.ai-usage-bar-cost { font-weight: 600; color: var(--text-dim); }

.ai-usage-trend { display: flex; align-items: flex-end; gap: 3px; height: 110px; margin-bottom: 28px; padding: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.ai-usage-trend-col { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 3px; }
.ai-usage-trend-bar { width: 100%; background: var(--accent); border-radius: 2px 2px 0 0; min-height: 2px; }

/* Manager layout grid */
.mgr-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 1100px) { .mgr-layout { grid-template-columns: 1fr; } }
.mgr-right-col { display: flex; flex-direction: column; gap: 24px; }
.mgr-section-title { font-size: 13px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }

/* Accounts table */
.mgr-accounts-wrap { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mgr-accounts-table { width: 100%; border-collapse: collapse; }
.mgr-accounts-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); background: var(--panel-2); border-bottom: 1px solid var(--border); }
.mgr-account-row td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; cursor: pointer; transition: background 0.12s; }
.mgr-account-row:hover td { background: rgba(20,150,255,0.05); }
.mgr-account-row.expanded td { background: rgba(20,150,255,0.07); }
.mgr-account-name { font-weight: 600; font-size: 14px; }
.mgr-team-chips { display: flex; gap: 4px; flex-wrap: wrap; }
.mgr-team-chip { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 3px; background: rgba(20,150,255,0.1); color: var(--accent); }
.mgr-drill-row td { padding: 0; border-bottom: 1px solid var(--border); }
.mgr-drill-inner { display: none; padding: 16px 20px; background: var(--bg); }
.mgr-drill-row.open .mgr-drill-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mgr-drill-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.drill-contact-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.drill-contact-item:last-child { border-bottom: none; }
.drill-enriched-dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; flex-shrink: 0; }
.drill-opp-chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; margin-bottom: 5px; display: inline-block; }
.drill-plan-bar-wrap { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.drill-plan-bar { height: 100%; background: #22c55e; border-radius: 4px; transition: width 0.3s; }
.drill-finding-item { font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.drill-finding-item:last-child { border-bottom: none; }

/* Status dot */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.complete { background: #22c55e; }
.status-dot.error { background: #ef4444; }
.status-dot.running { background: #1496ff; animation: pulse 1s infinite; }
.status-dot.complete_with_errors { background: #f59e0b; }
.status-dot.unknown { background: #4a6080; }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:0.4 } }

/* Users grid */
.mgr-users-grid { display: flex; flex-direction: column; gap: 10px; }
.mgr-user-card { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; transition: border-color 0.15s; }
.mgr-user-card:hover { border-color: rgba(20,150,255,0.4); }
.mgr-user-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg,#1496ff,#6a5bff); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0; }
.mgr-user-info { flex: 1; min-width: 0; }
.mgr-user-name { font-weight: 600; font-size: 13px; }
.mgr-user-meta { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.mgr-user-teams { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }

/* Activity feed */
.mgr-activity-feed { display: flex; flex-direction: column; gap: 0; }
.mgr-run-row { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 10px; font-size: 12px; }
.mgr-run-row:last-child { border-bottom: none; }
.mgr-run-detail { flex: 1; min-width: 0; }
.mgr-run-account { font-weight: 600; color: var(--text); }
.mgr-run-meta { color: var(--text-dim); margin-top: 2px; }
.mgr-run-time { color: var(--text-dim); white-space: nowrap; font-size: 11px; }
.new-findings-badge { background: rgba(20,150,255,0.15); color: var(--accent); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.expand-arrow { color: var(--text-dim); font-size: 12px; transition: transform 0.2s; }
.mgr-account-row.expanded .expand-arrow { transform: rotate(90deg); }

/* --- Opportunity pipeline cards ----------------------------------------------- */
.opps-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #22c55e;
  margin: 20px 0 10px;
}
.opps-group-label:first-child { margin-top: 0; }
.opps-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.opps-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.8;
}
.opp-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.opp-card-top { margin-bottom: 10px; }
.opp-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.opp-card-badges { display: flex; gap: 6px; align-items: center; flex: 1; }
.opp-name { font-size: 15px; font-weight: 700; }
.opp-status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.opp-focus-area {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}
.opp-stage-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.opp-stage-pip {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-dim);
  background: transparent;
  letter-spacing: 0.03em;
}
.opp-stage-pip.active {
  color: var(--accent);
  background: rgba(20,150,255,0.12);
}
.opp-stage-sep {
  color: var(--border);
  font-size: 14px;
  padding: 0 2px;
}
.opp-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 8px;
}
.opp-rationale {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: baseline;
}
.opp-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.opp-meta-chip {
  font-size: 11px;
  background: rgba(100,130,160,0.1);
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.opp-arr {
  background: rgba(20,150,255,0.08);
  color: var(--accent);
  border-color: rgba(20,150,255,0.2);
  font-weight: 700;
}
.opp-notes {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── Restart-required label on settings fields ─────────────────────── */
.restart-note {
  font-size: 10px;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── OTel / monitoring status badge in Settings ────────────────────── */
.otel-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid;
  margin-top: 8px;
}
.otel-status-badge::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.otel-active-badge {
  color: #22c55e;
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
}
.otel-active-badge::before { background: #22c55e; animation: pulse 1.4s infinite; }
.otel-warning-badge {
  color: #f59e0b;
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.3);
  cursor: help;
}
.otel-warning-badge::before { background: #f59e0b; }
.otel-inactive-badge {
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}
.otel-inactive-badge::before { background: #4a6080; }

/* restart-required save banner */
.restart-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: #f59e0b;
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
}

/* ─── Notes fields ──────────────────────────────────────────────────────────── */
.notes-textarea {
  width: 100%;
  min-height: 80px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 6px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
  font-family: inherit;
}
.notes-textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.notes-section {
  margin-top: 12px;
}
.notes-section label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 5px;
}

/* ─── Opportunity AI Strategy card ─────────────────────────────────────────── */
.opp-strategy {
  margin-top: 10px;
  background: rgba(20, 150, 255, 0.05);
  border: 1px solid rgba(20, 150, 255, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
}
.opp-strategy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.strategy-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-top: 10px;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── Strategy v2: callouts + expandable cards ───────────────────────────────── */
.strategy-summary-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(20, 150, 255, 0.08);
  border: 1px solid rgba(20, 150, 255, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.strategy-summary-callout .ico { color: #1496ff; flex-shrink: 0; margin-top: 2px; }
.strategy-summary-callout p { margin: 0; color: var(--text); line-height: 1.55; }

.strategy-success-callout {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 12px;
}
.strategy-success-callout .ico { color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.strategy-success-callout p { margin: 3px 0 0; color: var(--text); line-height: 1.5; }
.strategy-success-callout .sc-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #22c55e; }

.strategy-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  align-items: start;
}
.strategy-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.strategy-card summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.strategy-card summary::-webkit-details-marker { display: none; }
.strategy-card summary:hover { background: rgba(255,255,255,0.03); }
.strategy-card .sc-title { flex: 1; }
.strategy-card .sc-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--panel-2);
  color: var(--text-dim);
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 16px;
  text-align: center;
}
.strategy-card .sc-chevron { color: var(--text-dim); transition: transform 0.15s; flex-shrink: 0; }
.strategy-card[open] .sc-chevron { transform: rotate(180deg); }
.strategy-card .sc-body { padding: 2px 12px 12px; }
.strategy-card.sc-contacts { border-left: 3px solid #1496ff; }
.strategy-card.sc-contacts summary .ico { color: #1496ff; }
.strategy-card.sc-actions { border-left: 3px solid #f59e0b; }
.strategy-card.sc-actions summary .ico { color: #f59e0b; }
.strategy-card.sc-talking { border-left: 3px solid #8b5cf6; }
.strategy-card.sc-talking summary .ico { color: #8b5cf6; }
.strategy-card.sc-risks { border-left: 3px solid #ef4444; }
.strategy-card.sc-risks summary .ico { color: #ef4444; }
.strategy-contact-title { color: var(--text-dim); font-size: 11px; }
.strategy-contacts-list,
.strategy-actions-list,
.strategy-talking-points,
.strategy-risks {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.strategy-contact-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  line-height: 1.4;
}
.strategy-contact-approach {
  width: 100%;
  margin: 2px 0 0 0;
  color: var(--text-dim);
  font-size: 11px;
}
.strategy-role-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.strategy-role-champion       { background: rgba(34,197,94,0.15);  color: #22c55e; }
.strategy-role-economic-buyer { background: rgba(20,150,255,0.15); color: #1496ff; }
.strategy-role-tech-eval      { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.strategy-role-technical-evaluator { background: rgba(139,92,246,0.15); color: #8b5cf6; }
.strategy-role-influencer     { background: rgba(100,116,139,0.15); color: #94a3b8; }
.strategy-role-blocker        { background: rgba(239,68,68,0.15);  color: #ef4444; }
.strategy-action-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  font-size: 12px;
  padding: 4px 6px;
  background: var(--panel-2);
  border-radius: 5px;
}
.strategy-owner-tag {
  font-size: 10px;
  font-weight: 700;
  background: rgba(20,150,255,0.12);
  color: #1496ff;
  padding: 1px 6px;
  border-radius: 8px;
  white-space: nowrap;
}
.strategy-timeframe {
  font-size: 10px;
  color: var(--text-dim);
  white-space: nowrap;
}
.strategy-talking-points li { color: var(--text); padding-left: 10px; position: relative; }
.strategy-talking-points li::before { content: '\2022'; position: absolute; left: 0; color: #1496ff; }
.strategy-risks li { color: #ef4444; padding-left: 14px; position: relative; }
.strategy-risks li::before { content: '\26A0'; position: absolute; left: 0; font-size: 10px; }
.strategy-loading {
  text-align: center;
  padding: 20px;
  color: var(--text-dim);
  font-size: 13px;
  animation: pulse-opacity 1.4s infinite;
}
@keyframes pulse-opacity {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ─── Copy-to-clipboard field wrapper ───────────────────────────────────────── */
.copy-field-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-field-wrap input { flex: 1; }
.copy-field-wrap--textarea { align-items: flex-start; }
.copy-field-wrap--textarea textarea { flex: 1; }
.btn-copy {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-copy:hover { background: rgba(20,150,255,0.1); color: var(--accent); border-color: var(--accent); }
.btn-copy--textarea { margin-top: 4px; }

/* ─── Opportunity cards — uniform grid ──────────────────────────────────────── */
.opps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.opp-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.opp-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.22); }
.opp-card-body {
  flex: 1;
  padding: 16px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opp-name { font-size: 15px; font-weight: 700; }
.opp-focus-area {
  font-size: 11px;
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.opp-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}
.opp-rationale {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}
.opp-card-actions {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.gen-opp-strategy-btn {
  background: rgba(20,150,255,0.1);
  color: var(--accent);
  border-color: rgba(20,150,255,0.3);
  font-weight: 600;
}
.gen-opp-strategy-btn:hover { background: rgba(20,150,255,0.2); }

/* ── Notes sidebar ──────────────────────────────────────────────────────────── */
.notes-sidebar {
  position: fixed;
  top: 0; right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--panel-1, #0d1929);
  border-left: 1px solid var(--border);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
  overflow: hidden;
}
.notes-sidebar.open { right: 0; }
.notes-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1099;
}
.notes-overlay.open { display: block; }
.notes-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.notes-sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.notes-sidebar-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.notes-sidebar-add {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notes-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.note-entry {
  background: var(--panel-2, #0a1525);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.note-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.note-type-account     { background: rgba(20,150,255,0.12); color: #1496ff; }
.note-type-contact     { background: rgba(34,197,94,0.12);  color: #22c55e; }
.note-type-opportunity { background: rgba(139,92,246,0.12); color: #8b5cf6; }
.note-type-general     { background: rgba(100,116,139,0.12); color: #94a3b8; }
.note-author { font-size: 11px; font-weight: 600; color: var(--text-dim); }
.note-date   { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.note-delete-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.note-delete-btn:hover { color: #ef4444; }
.note-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}
.notes-empty { font-size: 13px; color: var(--text-dim); text-align: center; padding: 20px 0; }
.notes-toggle-btn { font-size: 13px; }

/* ── User profile button ─────────────────────────────────────────────────────── */
.user-badge-profile-btn {
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.user-badge-profile-btn span { text-decoration: underline; text-underline-offset: 2px; }
.user-badge-profile-btn:hover { color: var(--accent); }

/* ── Profile photo (My Profile modal) ───────────────────────────────────────── */
.profile-photo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.profile-photo-preview .oav { display: block; }
.profile-photo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ── Corporate branding (Settings → Branding) ────────────────────────────────── */
.brand-logo-row { display: flex; align-items: center; gap: 14px; }
.brand-logo-preview {
  width: 96px; height: 96px; border-radius: 10px;
  border: 1px dashed var(--border); background: var(--panel-2, rgba(255,255,255,0.03));
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.brand-logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-logo-empty { font-size: 11px; color: var(--text-dim); text-align: center; padding: 0 6px; }
.brand-logo-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand-color-row { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 14px; }
.brand-color-field { display: flex; flex-direction: column; gap: 6px; }
.brand-color-input { display: flex; align-items: center; gap: 8px; }
.brand-color-input input[type="color"] {
  width: 36px; height: 32px; padding: 2px; border: 1px solid var(--border); border-radius: 6px; background: none; cursor: pointer;
}
.brand-color-input input[type="text"] { width: 110px; font-family: monospace; }

/* ── Nav Menu quick links (Settings → Nav Menu) ──────────────────────────────── */
.nav-preset-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-preset-chip {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2, rgba(255,255,255,0.03));
  cursor: pointer; font-size: 12px; font-weight: 600; color: var(--text); transition: border-color .15s, background .15s;
}
.nav-preset-chip img { width: 18px; height: 18px; border-radius: 4px; flex-shrink: 0; }
.nav-preset-chip:hover { border-color: var(--accent); }
.nav-preset-chip.is-added { border-color: var(--accent); background: rgba(20,150,255,0.1); color: var(--accent); }
.nav-preset-chip.is-added::after { content: '✓'; font-weight: 800; }

.nav-custom-form { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nav-custom-icon-picker { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nav-custom-icon-preview {
  width: 44px; height: 44px; border-radius: 8px; border: 1px dashed var(--border);
  background: var(--panel-2, rgba(255,255,255,0.03)); display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 18px;
}
.nav-custom-icon-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.nav-custom-fields { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 220px; }
.nav-custom-fields input { width: 100%; }

.nav-links-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.nav-link-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2, rgba(255,255,255,0.03));
}
.nav-link-row img { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; }
.nav-link-row-label { font-weight: 600; font-size: 13px; }
.nav-link-row-url { font-size: 11px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.nav-link-row-remove {
  background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px;
  line-height: 1; padding: 2px 6px; border-radius: 4px; flex-shrink: 0;
}
.nav-link-row-remove:hover { color: var(--bad); background: rgba(255,80,80,0.08); }
.nav-link-row-actions { display: flex; gap: 4px; flex-shrink: 0; }

/* ── MCP Servers (Settings → MCP Servers) ────────────────────────────────── */
.mcp-connections-list { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.mcp-conn-card {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2, rgba(255,255,255,0.03));
  flex-wrap: wrap;
}
.mcp-conn-icon { width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0; }
.mcp-conn-main { min-width: 160px; flex: 1 1 220px; }
.mcp-conn-name { font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.mcp-conn-desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
/* Status line is a <button> (click to expand Details) but keeps the plain-text
   look of the div it used to be — only the hover/cursor give away that it's
   clickable. */
.mcp-conn-status {
  font-size: 11px; margin-top: 3px; display: block; width: 100%; text-align: left;
  background: none; border: none; padding: 0; margin-left: 0; color: var(--text-dim);
  cursor: pointer; font-family: inherit;
}
.mcp-conn-status:hover { text-decoration: underline; }
.mcp-conn-status.ok { color: var(--good); }
.mcp-conn-status.error { color: var(--bad); }
.mcp-conn-details-caret { font-size: 9px; opacity: 0.6; }
.mcp-conn-details-panel {
  flex: 1 1 100%; margin-top: 2px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--panel, rgba(0,0,0,0.12));
  font-size: 12px;
}
.mcp-conn-details-table { border-collapse: collapse; width: 100%; }
.mcp-conn-details-table td { padding: 2px 8px 2px 0; vertical-align: top; }
.mcp-conn-details-table td:first-child { color: var(--text-dim); white-space: nowrap; width: 1%; }
.mcp-conn-details-error { margin-top: 8px; color: var(--bad); white-space: pre-wrap; word-break: break-word; }
.mcp-conn-details-tools-header { margin-top: 10px; font-weight: 600; color: var(--text-dim); }
.mcp-conn-tool-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow-y: auto; }
.mcp-conn-tool-list li { display: flex; flex-direction: column; gap: 1px; }
.mcp-conn-tool-list code { font-size: 11px; color: var(--accent, #6a9bff); }
.mcp-conn-tool-desc { font-size: 11px; color: var(--text-dim); }
/* Token input gets its own full-width row rather than sharing one with the
   action buttons — bearer tokens (Dynatrace, GitHub, etc.) commonly run
   80-100+ characters, and a shared row squeezed it down no matter how much
   min-width was applied to the input alone. */
.mcp-conn-fields { display: flex; flex-direction: column; gap: 8px; flex: 1 1 100%; }
.mcp-conn-token-input {
  width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12px;
  letter-spacing: 0.02em; padding: 9px 11px;
}
.mcp-conn-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mcp-conn-toggle { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
.mcp-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 4px; background: rgba(20,150,255,0.15); color: var(--accent);
}
.mcp-badge-running { background: rgba(46,204,113,0.18); color: var(--good); }

/* ── Floating nav quick-links bar (rendered on every page once configured) ──── */
.nav-quick-links {
  position: fixed; top: 74px; right: 18px; z-index: 45;
  display: flex; align-items: center; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(8,14,26,0.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(20,150,255,0.25);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 20px rgba(20,150,255,0.08);
}
.nav-quick-link {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid transparent; transition: transform .12s, border-color .12s, background .12s;
  overflow: hidden;
}
.nav-quick-link:hover { transform: translateY(-2px); border-color: var(--accent); background: rgba(20,150,255,0.12); }
.nav-quick-link img { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }

/* Draggable grip, vertical layout and the second-URL badge */
.nav-quick-item { position: relative; display: inline-flex; flex: none; }
.nav-quick-grip {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 14px; min-height: 30px; margin-left: 2px; border-radius: 6px;
  color: var(--text-dim); font-size: 12px; letter-spacing: -3px; line-height: 1; cursor: grab;
  user-select: none; touch-action: none; opacity: .65;
}
.nav-quick-grip:hover, .nav-quick-grip:focus-visible { opacity: 1; color: var(--text); background: rgba(255,255,255,0.08); outline: none; }
.nav-quick-links.is-dragging { cursor: grabbing; box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 24px rgba(20,150,255,0.18); }
.nav-quick-links.is-dragging .nav-quick-grip { cursor: grabbing; }
.nav-quick-links.is-vertical { flex-direction: column; border-radius: 18px; }
.nav-quick-links.is-vertical .nav-quick-grip { width: 30px; min-height: 14px; margin: 2px 0 0; }
.nav-quick-links.is-vertical .nav-quick-grip { transform: rotate(90deg); }
.nav-quick-alt {
  position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; line-height: 1;
  background: var(--accent); color: #fff; text-decoration: none; border: 1px solid rgba(8,14,26,0.9);
}
.nav-quick-alt:hover { transform: scale(1.2); }

/* Settings: display options and per-link second URL */
.nav-display-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.nav-display-opt, .nav-display-orient label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; cursor: pointer; }
.nav-display-orient { display: inline-flex; align-items: center; gap: 14px; border: none; padding: 0; margin: 0; }
.nav-display-orient legend { float: left; padding: 0 10px 0 0; font-size: 12px; color: var(--text-dim); }
.nav-link-row { flex-wrap: wrap; }
.nav-link-row-alt { flex: 1 1 100%; display: flex; gap: 6px; padding-left: 30px; }
.nav-link-row-alt .nav-alt-url { flex: 2 1 0; min-width: 0; font-size: 12px; }
.nav-link-row-alt .nav-alt-label { flex: 1 1 0; min-width: 0; font-size: 12px; }


/* ── Opportunity pipeline chart (dashboard + manager) ───────────────────────── */
.opp-pipe-rows { display: flex; flex-direction: column; gap: 10px; }
.opp-pipe-row {
  display: grid;
  grid-template-columns: 80px 1fr 32px auto;
  align-items: center;
  gap: 8px;
}
.opp-pipe-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: capitalize;
}
.opp-pipe-bar-wrap {
  height: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.opp-pipe-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
  opacity: 0.85;
}
.opp-pipe-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}
.opp-pipe-arr {
  font-size: 11px;
  color: var(--good);
  font-weight: 600;
  min-width: 48px;
  text-align: right;
}
.opp-pipe-total {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ── Action items checklist (dashboard) ─────────────────────────────────────── */
.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  margin-bottom: 6px;
  font-size: 13px;
  border-left: 3px solid transparent;
}
.action-item:last-child { margin-bottom: 0; }
.action-icon {
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  width: 18px;
  text-align: center;
}
.action-label { flex: 1; }
.action-priority {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.action-high {
  background: rgba(239,68,68,0.08);
  border-left-color: #ef4444;
}
.action-high .action-icon { color: #ef4444; }
.action-high .action-priority { background: rgba(239,68,68,0.15); color: #ef4444; }

.action-medium {
  background: rgba(245,158,11,0.08);
  border-left-color: #f59e0b;
}
.action-medium .action-icon { color: #f59e0b; }
.action-medium .action-priority { background: rgba(245,158,11,0.15); color: #f59e0b; }

.action-low {
  background: rgba(100,116,139,0.07);
  border-left-color: var(--border);
}
.action-low .action-icon { color: var(--text-dim); }
.action-low .action-priority { background: rgba(100,116,139,0.12); color: var(--text-dim); }

.action-done {
  background: rgba(34,197,94,0.07);
  border-left-color: #22c55e;
}
.action-done .action-icon { color: #22c55e; }

/* ── Manager pipeline row ────────────────────────────────────────────────────── */
.mgr-pipeline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .mgr-pipeline-row { grid-template-columns: 1fr; }
}

.mgr-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
}

/* ── Stage chip ──────────────────────────────────────────────────────────────── */
.stage-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}
.stage-discover  { background: rgba(20,150,255,0.12); color: #1496ff; }
.stage-qualify   { background: rgba(34,197,94,0.12);  color: #22c55e; }
.stage-propose   { background: rgba(245,158,11,0.12); color: #f59e0b; }
.stage-negotiate { background: rgba(139,92,246,0.12); color: #c678dd; }
.stage-close     { background: rgba(239,68,68,0.12);  color: #ef4444; }

/* ── Team performance grid ───────────────────────────────────────────────────── */
.mgr-team-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.mgr-team-perf-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.mgr-team-perf-name {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mgr-team-perf-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.mgr-team-stat { text-align: center; }
.mgr-team-stat-arr { grid-column: 1 / -1; }
.mgr-team-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.mgr-team-stat-arr .mgr-team-stat-num {
  font-size: 16px;
  color: var(--good);
}
.mgr-team-stat-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Modal sizing: 75% wide ─────────────────────────────────────────────────── */
.modal-75 {
  width: 75vw !important;
  max-width: 75vw !important;
  overflow-y: visible !important;
  padding: 24px !important;
}

/* ── Two-column modal layout ────────────────────────────────────────────────── */
.modal-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
}
.modal-col-form {
  padding: 4px 24px 24px 0;
  overflow-y: auto;
  max-height: 82vh;
  border-right: 1px solid var(--border);
}
.modal-col-notes {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 82vh;
}
@media (max-width: 900px) {
  .modal-75 { width: 96vw !important; max-width: 96vw !important; }
  .modal-two-col { grid-template-columns: 1fr; }
  .modal-col-form { border-right: none; border-bottom: 1px solid var(--border); max-height: none; }
  .modal-col-notes { max-height: none; }
}

/* ── Three-column modal layout (account modal: form | notes | tenants) ────── */
.modal-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 0;
  min-height: 0;
}
.modal-three-col .modal-col-form { border-right: 1px solid var(--border); }
.modal-col-tenants {
  padding: 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 82vh;
  border-left: 1px solid var(--border);
}
@media (max-width: 1200px) {
  .modal-three-col { grid-template-columns: 1fr 1fr; }
  .modal-col-tenants { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--border); max-height: none; }
}
@media (max-width: 900px) {
  .modal-three-col { grid-template-columns: 1fr; }
}

.field-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-tenants-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tenant-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.tenant-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.tenant-row-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tenant-default-star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
  padding: 0;
  line-height: 1;
}
.tenant-default-star.is-default { color: #f5b400; }
.tenant-row-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tenant-row-meta span {
  background: rgba(255,255,255,0.05);
  border-radius: 5px;
  padding: 1px 6px;
}
.tenant-row-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.mcp-advanced-auth summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--text-dim);
  user-select: none;
}
.mcp-advanced-auth summary:hover { color: var(--text); }
.mcp-advanced-auth-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.tenant-form {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}

.tenant-chat-panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 220px;
  overflow: hidden;
}
.tenant-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
}
.tenant-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}
.tenant-chat-input-row {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid var(--border);
}
.tenant-chat-input-row input {
  flex: 1;
}

/* ── Rich note input (contenteditable) ──────────────────────────────────────── */
.note-rich-input {
  min-height: 80px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--input-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  outline: none;
  word-break: break-word;
  transition: border-color 0.15s;
}
.note-rich-input:focus { border-color: var(--accent); }
.note-rich-input:empty::before {
  content: attr(data-placeholder);
  color: var(--text-dim);
  pointer-events: none;
}
.note-rich-input img {
  max-width: 100%;
  border-radius: 6px;
  margin: 4px 0;
  display: block;
}

/* ── Modal notes list ───────────────────────────────────────────────────────── */
.modal-notes-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}
.modal-note-entry {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.modal-note-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.modal-note-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
  word-break: break-word;
}
.modal-note-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 6px 0;
  display: block;
}

/* AI-formatted notes: headings, lists, quotes (shared by rendered notes and the editor) */
.modal-note-content h1, .note-rich-input h1 { font-size: 20px; font-weight: 700; margin: 10px 0 6px; line-height: 1.3; }
.modal-note-content h2, .note-rich-input h2 { font-size: 17px; font-weight: 700; margin: 10px 0 6px; line-height: 1.3; }
.modal-note-content h3, .note-rich-input h3 { font-size: 14px; font-weight: 700; margin: 10px 0 4px; line-height: 1.3; color: var(--accent); }
.modal-note-content h4, .note-rich-input h4 { font-size: 13px; font-weight: 700; margin: 8px 0 4px; }
.modal-note-content > :first-child, .note-rich-input > :first-child { margin-top: 0; }
.modal-note-content p, .note-rich-input p { margin: 0 0 8px; }
.modal-note-content ul, .modal-note-content ol,
.note-rich-input ul, .note-rich-input ol { margin: 4px 0 8px; padding-left: 22px; }
.modal-note-content li, .note-rich-input li { margin: 2px 0; }
.modal-note-content table, .note-rich-input table { border-collapse: collapse; margin: 6px 0 10px; font-size: 13px; max-width: 100%; }
.modal-note-content th, .modal-note-content td, .note-rich-input th, .note-rich-input td { border: 1px solid var(--border); padding: 5px 10px; text-align: left; vertical-align: top; }
.modal-note-content th, .note-rich-input th { background: var(--panel-2); font-weight: 700; }
.modal-note-content hr, .note-rich-input hr { border: none; border-top: 1px solid var(--border); margin: 10px 0; }
.modal-note-content blockquote, .note-rich-input blockquote {
  margin: 6px 0 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--border); color: var(--text-dim);
}
.modal-note-content a, .note-rich-input a { color: var(--accent); }
.modal-note-content pre, .note-rich-input pre {
  margin: 6px 0 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 70%, #000 30%); color: var(--text);
  font: 12.5px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre; overflow-x: auto; tab-size: 2;
}
.ne-copy {
  position: fixed; z-index: 1390; padding: 3px 9px; border-radius: 5px; cursor: pointer;
  font: 600 11px/1.4 inherit; color: var(--text-dim); background: var(--panel); border: 1px solid var(--border);
}
.ne-copy:hover { color: var(--text); border-color: var(--accent); }
.ne-copy.done { color: var(--good); border-color: var(--good); }
.modal-note-content pre code, .note-rich-input pre code { font: inherit; background: none; padding: 0; white-space: inherit; }
.modal-note-content :not(pre) > code, .note-rich-input :not(pre) > code {
  font: 0.92em ui-monospace, SFMono-Regular, Consolas, monospace; padding: 1px 5px; border-radius: 4px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}
.note-edit-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 5px;
  font-size: 11px; padding: 1px 8px; cursor: pointer;
}
.note-edit-btn:hover { color: var(--text); border-color: var(--accent); }
.note-edited { margin-left: 6px; font-style: italic; opacity: 0.7; }
.note-ai-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.note-ai-row input { flex: 1; min-width: 0; }

/* ── Note add area ──────────────────────────────────────────────────────────── */
.note-add-area {
  flex-shrink: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Notes tab layout ────────────────────────────────────────────────────────── */
.notes-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.notes-tab-filters {
  display: flex;
  gap: 6px;
}
.ntf-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.ntf-btn:hover { border-color: var(--accent); color: var(--text); }
.ntf-btn.active { background: rgba(20,150,255,0.12); border-color: var(--accent); color: var(--accent); }

.notes-tab-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) {
  .notes-tab-layout { grid-template-columns: 1fr; }
}
.notes-tab-list-col { display: flex; flex-direction: column; gap: 10px; }
.notes-tab-compose-col {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  position: sticky;
  top: 16px;
}
.notes-tab-list { display: flex; flex-direction: column; gap: 10px; }
.notes-tab-entry {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.notes-tab-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ── Topbar Teams/Settings buttons ───────────────────────────────────────────── */
#topbarTeamsBtn, #topbarSettingsBtn { font-size: 12px; }

/* ── Compact Opportunity Cards ───────────────────────────────────────────────── */
.opp-card-compact {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: stretch;
  gap: 0;
}
.opp-card-compact:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(20,150,255,0.10);
}
.opp-card-compact-body {
  flex: 1;
  min-width: 0;
}
.opp-card-compact-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.opp-card-compact-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opp-card-compact-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.opp-card-compact-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.opp-card-compact-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.opp-card-compact-progress {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.opp-card-compact-arrow {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 18px;
  padding-left: 12px;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}
.opp-card-compact:hover .opp-card-compact-arrow {
  opacity: 1;
  color: var(--accent);
}

/* ── Opp Detail Modal ────────────────────────────────────────────────────────── */
.od-modal {
  display: flex;
  flex-direction: column;
  height: 84vh;
  min-height: 0;
}
.od-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
  flex-shrink: 0;
}
.od-modal-title-block {
  flex: 1;
  min-width: 0;
}
.od-modal-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-modal-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}

/* Tab bar */
.od-tab-bar {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  overflow-x: auto;
  padding: 0 2px;
}
.od-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
  padding: 10px 16px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.od-tab-btn:hover { color: var(--text); }
.od-tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* Tab content container */
.od-tab-content {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
}
.od-panel {
  display: none;
  height: 100%;
  overflow-y: auto;
  padding: 16px 2px 4px;
}
.od-panel.active { display: block; }

/* Overview panel */
.od-overview-body { display: flex; flex-direction: column; gap: 16px; }
.od-field { margin-bottom: 10px; }
.od-field-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.od-field-value { font-size: 14px; color: var(--text); }
.od-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
}
.od-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.od-contacts-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.od-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.od-contact-title { color: var(--muted); font-size: 12px; }

/* Edit panel */
.od-edit-body { display: flex; flex-direction: column; gap: 12px; }
.od-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) { .od-edit-grid { grid-template-columns: 1fr; } }
.od-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* Tasks / Next Steps panel */
.od-items-body { display: flex; flex-direction: column; gap: 12px; }
.od-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.od-items-progress {
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 10px;
}
.od-items-list { display: flex; flex-direction: column; gap: 6px; }
.od-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  transition: opacity 0.15s;
}
.od-item-done { opacity: 0.55; }
.od-item-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}
.od-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.od-item-text {
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.od-item-done .od-item-text { text-decoration: line-through; color: var(--muted); }
.od-item-due {
  font-size: 11px;
  color: var(--muted);
}
.od-item-del {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}
.od-item-del:hover { opacity: 1; color: var(--danger); }
.od-item-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.od-item-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  padding: 7px 10px;
}
.od-item-input:focus { outline: none; border-color: var(--accent); }
.od-item-due-input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 7px 8px;
  width: 130px;
}
.od-item-due-input:focus { outline: none; border-color: var(--accent); }

/* Notes panel inside opp detail modal */
.od-notes-body { display: flex; flex-direction: column; gap: 14px; }

/* ── Opp Item chips (status, assignee, due) ───────────────────────────────────── */
.od-item-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.od-status-chip {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.od-status-not-started { background: rgba(122,155,191,0.15); color: #7a9bbf; }
.od-status-in-progress { background: rgba(20,150,255,0.15); color: var(--accent); }
.od-status-blocked { background: rgba(255,80,80,0.15); color: #ff5050; }
.od-status-complete { background: rgba(46,213,115,0.15); color: var(--good); }

.od-assigned-chip {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 8px;
  padding: 2px 7px;
  border: 1px solid var(--border);
}

/* ── Opp Item add form ────────────────────────────────────────────────────────── */
.od-item-add-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  background: var(--bg);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}
.od-item-add-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.od-item-status-sel,
.od-item-assign-sel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
}
.od-item-status-sel:focus,
.od-item-assign-sel:focus { outline: none; border-color: var(--accent); }
.od-item-assign-other {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  padding: 6px 8px;
  width: 110px;
}
.od-item-assign-other:focus { outline: none; border-color: var(--accent); }
.od-item-edit-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 3px;
  opacity: 0.45;
  transition: opacity 0.15s, color 0.15s;
  flex-shrink: 0;
}
.od-item-edit-btn:hover { opacity: 1; color: var(--accent); }
.od-item-due-empty { color: var(--border); font-style: italic; }
.od-item-edit-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ── My Dashboard ─────────────────────────────────────────────────────────── */
.myd-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 0 24px;
  max-width: 1400px;
}
.myd-header { margin-bottom: 4px; }

.myd-kpi-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .myd-kpi-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .myd-kpi-row { grid-template-columns: repeat(2, 1fr); } }
.myd-kpi {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.myd-kpi-val {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}
.myd-kpi-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.myd-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 1000px) { .myd-body { grid-template-columns: 1fr; } }

.myd-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Action items */
.myd-actions-col { display: flex; flex-direction: column; gap: 16px; }
.myd-action-group { display: flex; flex-direction: column; gap: 6px; }
.myd-group-header {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.myd-group-overdue { background: rgba(255,80,80,0.12); color: #ff5050; }
.myd-group-soon { background: rgba(255,193,7,0.15); color: #e6b800; }
.myd-group-open { background: rgba(122,155,191,0.12); color: var(--muted); }

.myd-item-row {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.myd-item-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.myd-item-kind {
  font-size: 10px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}
.myd-item-text {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.myd-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.myd-item-opp {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
}
.myd-item-acct {
  font-size: 11px;
  color: var(--muted);
}
.myd-item-assign {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border-radius: 6px;
  padding: 2px 6px;
  border: 1px solid var(--border);
}
.myd-item-due {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

/* Account overview */
.myd-accounts-col { display: flex; flex-direction: column; }
.myd-account-grid { display: flex; flex-direction: column; gap: 8px; }
.myd-account-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.myd-account-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(20,150,255,0.10);
}
.myd-acc-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.myd-acc-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.myd-acc-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.myd-acc-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.myd-acc-lbl {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.myd-acc-arrow {
  color: var(--muted);
  font-size: 18px;
  opacity: 0.5;
  transition: opacity 0.15s, color 0.15s;
}
.myd-account-card:hover .myd-acc-arrow { opacity: 1; color: var(--accent); }

/* ── Partners Page ────────────────────────────────────────────────────────────── */
.ptrs-wrap { display: flex; flex-direction: column; gap: 20px; padding: 4px 0 24px; max-width: 1200px; }
.ptrs-header { display: flex; align-items: center; justify-content: space-between; }
.ptrs-grid { display: flex; flex-direction: column; gap: 12px; }

.ptr-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ptr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  flex-wrap: wrap;
  gap: 10px;
}
.ptr-card-identity { display: flex; align-items: center; gap: 12px; }
.ptr-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; background: var(--bg); }
.ptr-logo-sm { width: 28px; height: 28px; }
.ptr-logo-placeholder {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1496ff, #6a5bff);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.ptr-logo-placeholder.ptr-logo-sm { width: 28px; height: 28px; font-size: 13px; }
.ptr-name { font-size: 15px; font-weight: 700; color: var(--text); }
.ptr-meta { display: flex; align-items: center; gap: 10px; margin-top: 3px; flex-wrap: wrap; }
.ptr-type-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px;
  background: rgba(20,150,255,0.12); color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.ptr-stat { font-size: 12px; color: var(--muted); }
.ptr-card-actions { display: flex; align-items: center; gap: 6px; }
.ptr-description { padding: 0 16px 12px; font-size: 13px; color: var(--muted); }

.ptr-card-body { border-top: 1px solid var(--border); padding: 16px; background: var(--bg); }
.ptr-body-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .ptr-body-grid { grid-template-columns: 1fr; } }
.ptr-body-col { display: flex; flex-direction: column; gap: 8px; }
.ptr-body-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.ptr-body-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }

.ptr-contact-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px;
}
.ptr-contact-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ptr-contact-name { font-size: 13px; font-weight: 600; color: var(--text); }
.ptr-contact-title { font-size: 11px; color: var(--muted); }
.ptr-contact-email { font-size: 11px; color: var(--accent); text-decoration: none; }
.ptr-contact-focus { font-size: 10px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 6px; border: 1px solid var(--border); margin-top: 2px; align-self: flex-start; }
.ptr-contact-actions { display: flex; gap: 4px; flex-shrink: 0; }

.ptr-account-link-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
}
.ptr-acc-link-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.ptr-acc-link-type { font-size: 10px; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 2px 7px; border: 1px solid var(--border); white-space: nowrap; }
.ptr-unlink-acc-btn { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 4px; opacity: 0.6; }
.ptr-unlink-acc-btn:hover { opacity: 1; color: var(--danger); }

/* Opp detail partners tab */
.od-partners-body { display: flex; flex-direction: column; gap: 10px; }
.od-partner-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
.od-partner-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.od-partner-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.od-partner-add { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.od-partner-add-sel, .od-partner-add-role {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  color: var(--text); font-size: 12px; padding: 7px 8px; cursor: pointer;
}
.od-partner-add-sel { flex: 1; min-width: 160px; }
.od-partner-add-sel:focus, .od-partner-add-role:focus { outline: none; border-color: var(--accent); }

/* ── M365 Settings ────────────────────────────────────────────────────────────── */
.m365-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}
.m365-status-badge.connected {
  background: rgba(46,213,113,0.12);
  border-color: rgba(46,213,113,0.35);
  color: #2ecc71;
}

/* ── Calendar button on task items ───────────────────────────────────────────── */
.od-item-cal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0.6;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.od-item-cal-btn:hover { opacity: 1; }

/* ── Opp Files Tab ────────────────────────────────────────────────────────────── */
.od-files-body { padding: 16px; }
.od-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.od-files-header h4 { margin: 0; font-size: 14px; font-weight: 600; }
.od-file-upload-label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.od-files-list { display: flex; flex-direction: column; gap: 8px; }
.od-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--panel-2, #1d2537);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}
.od-file-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.od-file-icon { font-size: 18px; flex-shrink: 0; }
.od-file-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.od-file-name:hover { text-decoration: underline; }
.od-file-meta { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ── Opp AI Summary section ───────────────────────────────────────────────────── */
.od-summary-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.od-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.od-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.od-summary-age {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.od-summary-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  background: var(--panel-2, #1d2537);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  white-space: pre-wrap;
}
.od-summary-empty { margin: 6px 0 0; }
.od-summary-guide-row {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.od-summary-instruction {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}
.od-summary-instruction:focus { outline: none; border-color: var(--accent); }
.od-summary-guide-actions { display: flex; gap: 8px; align-items: center; }
.od-summary-status { font-size: 12px; color: var(--danger); margin-top: 4px; min-height: 16px; }

/* Summary snippet on compact opp card */
.opp-summary-preview {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 5px;
  margin-bottom: 2px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ── Org chart views (tabs swap the full chart area) ── */
.org-tabs-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px; flex-wrap: wrap; }
.org-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.org-tab { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .12s, border-color .12s; }
.org-tab:hover { color: var(--text); }
.org-tab.is-on { color: var(--text); border-bottom-color: var(--accent); }
.org-tab:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(20,150,255,.5); border-radius: 6px 6px 0 0; }
.org-tab-count { font-size: 11px; font-weight: 700; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); color: var(--text-dim); font-variant-numeric: tabular-nums; }
.org-tab.is-on .org-tab-count { background: rgba(20,150,255,.18); color: #8fbcf3; }
.org-tabs-row #addSupporterBtn,
.org-tabs-row #addOrgPartnerBtn { margin-bottom: 8px; }
.view-toggle[hidden] { display: none; }

.team-empty-state {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.team-role-section {
  margin-bottom: 16px;
}

.team-members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.team-member-card {
  transition: transform 0.15s, border-color 0.15s;
}

.team-member-card:hover {
  transform: translateY(-2px);
}

.team-member-card .org-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
}
.team-member-card .org-card .oav { display: block; margin: 0 auto 8px; }

.team-member-card:hover .org-card {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-name {
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
  margin-bottom: 4px;
}

.team-role {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.team-email {
  font-size: 11px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-tag {
  display: inline-block;
  font-size: 10px;
  background: var(--accent);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* ═══ Outreach design system (SDR queue, workspace, sent log, dashboard) ═══ */

:root {
  color-scheme: dark;
  --muted: var(--text-dim);
  --danger: var(--bad);
  --ring: 0 0 0 2px rgba(20, 150, 255, 0.5);
}
select option, select optgroup { background: var(--panel-2); color: var(--text); }

.ico { flex-shrink: 0; display: inline-block; vertical-align: -0.15em; }
.ico.dim { opacity: 0.55; }

.okpi:focus-visible, .sdr-row:focus-visible, .opill-btn:focus-visible, .ochip:focus-visible,
.seg-btn:focus-visible, .angle-card:focus-visible, .pop-item:focus-visible, .oicon-btn:focus-visible,
.link-btn:focus-visible, .fu-item:focus-visible, .ofeed-item:focus-visible, .viz-col:focus-visible,
.ofunnel-row:focus-visible, .sent-row:focus-visible, .tl-outcome:focus-visible, .viz-toggle:focus-visible,
.ow-close:focus-visible { outline: none; box-shadow: var(--ring); }

/* ── Page head ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.01em; }
.page-sub { margin: 0; color: var(--text-dim); font-size: 13px; max-width: 720px; line-height: 1.5; }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; color: var(--text-dim); min-width: 240px; }
.search-box:focus-within { border-color: var(--accent); }
.search-box input { background: none; border: none; color: var(--text); padding: 9px 0; font-size: 13px; width: 100%; outline: none; }

/* ── Pills & tones ── */
.opill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; font-family: inherit; }
.opill-sm { font-size: 11px; padding: 2px 7px; gap: 5px; }
.opill .tone-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.opill-btn { cursor: pointer; }
.opill-btn:hover { filter: brightness(1.18); }
.opill-caret { opacity: 0.7; margin-left: -1px; }
.tone-neutral { background: rgba(154, 165, 186, 0.14); color: #c3cad8; }
.tone-info    { background: rgba(57, 135, 229, 0.16); color: #8fbcf3; }
.tone-accent  { background: rgba(106, 91, 255, 0.18); color: #b6adff; }
.tone-good    { background: rgba(46, 204, 113, 0.14); color: #72dfa2; }
.tone-win     { background: rgba(46, 204, 113, 0.22); color: #a5f0c6; border-color: rgba(46, 204, 113, 0.45); }
.tone-warn    { background: rgba(245, 166, 35, 0.15); color: #f5c46e; }
.tone-bad     { background: rgba(255, 92, 92, 0.14); color: #ff9a9a; }
.tone-ghost   { background: transparent; color: var(--text-dim); border: 1px dashed var(--border); }
.tone-text-good { color: var(--good); }
.tone-text-bad { color: var(--bad); }
.tone-swatch { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sw-neutral { background: #9aa5ba; }
.sw-info { background: #3987e5; }
.sw-accent { background: #6a5bff; }
.sw-good, .sw-win { background: #2ecc71; }
.sw-warn { background: #f5a623; }
.sw-bad { background: #ff5c5c; }

.ch-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; }
.ch-badge .ico { color: var(--ch); }

.oav { border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.oav-initials { display: inline-grid; place-items: center; background: linear-gradient(135deg, rgba(20, 150, 255, 0.28), rgba(106, 91, 255, 0.28)); color: #dbe6ff; font-weight: 700; }

.tier-badge { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 800; font-size: 12px; flex-shrink: 0; }
.tier-a { background: rgba(46, 204, 113, 0.18); color: #72dfa2; }
.tier-b { background: rgba(57, 135, 229, 0.18); color: #8fbcf3; }
.tier-c { background: rgba(154, 165, 186, 0.16); color: #c3cad8; }
.tier-empty { margin: 0; font-size: 12px; white-space: nowrap; }

.due-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.due-overdue { background: rgba(255, 92, 92, 0.14); color: #ff9a9a; }
.due-today { background: rgba(245, 166, 35, 0.15); color: #f5c46e; }
.due-soon { background: rgba(57, 135, 229, 0.14); color: #8fbcf3; }
.due-later, .due-none { color: var(--text-dim); padding-left: 0; }

.oempty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
.oempty .ico { opacity: 0.75; }
.oempty .hint { margin: 0; }
.oempty-compact { padding: 18px 8px; }

.oicon-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer; text-decoration: none; flex-shrink: 0; }
.oicon-btn:hover { color: var(--accent); background: rgba(20, 150, 255, 0.1); border-color: rgba(20, 150, 255, 0.3); }
.oicon-btn.is-copied, .btn.is-copied { color: var(--good); }
.link-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 2px 0; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }
.link-danger { color: var(--text-dim); }
.link-danger:hover, .link-danger.is-confirming { color: var(--bad); }
.btn-xs { padding: 4px 8px; font-size: 11.5px; border-radius: 6px; gap: 4px; }

/* ── Segmented controls & chips ── */
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-btn { display: inline-flex; align-items: center; gap: 7px; border: none; background: none; color: var(--text-dim); font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: background 0.12s, color 0.12s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.is-on { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); }
.seg-lg { display: flex; }
.seg-lg .seg-btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 13px; }
.seg-ch .ico { color: var(--ch); }
.seg-ch.is-on { box-shadow: inset 0 -2px 0 var(--ch), 0 1px 3px rgba(0, 0, 0, 0.35); }

.ochip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ochip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: border-color 0.12s, background 0.12s; }
.ochip:hover { border-color: #3f4b66; background: var(--panel-2); }
.ochip.is-on { border-color: var(--accent); background: rgba(20, 150, 255, 0.14); }
.ochip .ico { color: var(--ch, currentColor); }
.ochip.is-busy { opacity: 0.6; pointer-events: none; }
.ochip-sm { padding: 3px 9px; font-size: 12px; }
.ochip-count { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; background: var(--panel-2); border-radius: 999px; padding: 0 6px; }
.ochip.ochip-tone { background: var(--bg); color: var(--text); border-color: var(--border); }
.ochip.ochip-tone .tone-dot { width: 7px; height: 7px; border-radius: 50%; }
.ochip-tone.tone-neutral .tone-dot { background: #9aa5ba; }
.ochip-tone.tone-info .tone-dot { background: #3987e5; }
.ochip-tone.tone-good .tone-dot, .ochip-tone.tone-win .tone-dot { background: #2ecc71; }
.ochip-tone.tone-bad .tone-dot { background: #ff5c5c; }
.ochip.ochip-tone.is-on.tone-neutral { background: rgba(154, 165, 186, 0.16); border-color: #9aa5ba; }
.ochip.ochip-tone.is-on.tone-info { background: rgba(57, 135, 229, 0.18); border-color: #3987e5; }
.ochip.ochip-tone.is-on.tone-good, .ochip.ochip-tone.is-on.tone-win { background: rgba(46, 204, 113, 0.16); border-color: #2ecc71; }
.ochip.ochip-tone.is-on.tone-bad { background: rgba(255, 92, 92, 0.14); border-color: #ff5c5c; }

/* ── KPI tiles (double as queue filters) ── */
.okpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.okpi { position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); font-family: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.12s; }
.okpi:hover { border-color: #3a4560; transform: translateY(-1px); }
.okpi.is-on { border-color: var(--accent); background: linear-gradient(180deg, rgba(20, 150, 255, 0.12), rgba(20, 150, 255, 0.02)); box-shadow: inset 0 2px 0 var(--accent); }
.okpi-static { cursor: default; }
.okpi-static:hover { transform: none; border-color: var(--border); }
.okpi-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.okpi-value { font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.okpi-of { font-size: 15px; color: var(--text-dim); font-weight: 600; }
.okpi-sub { font-size: 12px; color: var(--text-dim); }
.okpi-alert .okpi-value { color: #ff9a9a; }
.okpi-alert .okpi-head .ico { color: var(--bad); }

/* ── SDR queue ── */
.sdr-list-filters { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sdr-list-filters label { display: grid; gap: 4px; color: var(--text-dim); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sdr-list-filters select { min-width: 118px; min-height: 34px; padding: 5px 28px 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); color: var(--text); font: inherit; font-size: 12px; text-transform: none; letter-spacing: normal; }
.sdr-queue { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sdr-row { display: grid; grid-template-columns: minmax(240px, 2.4fr) 140px 150px minmax(170px, 1.3fr) 120px 120px 112px; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s; }
.sdr-row:last-child { border-bottom: none; }
.sdr-row:hover { background: rgba(20, 150, 255, 0.05); }
.sdr-row-head { cursor: default; background: var(--panel-2); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); padding: 9px 16px; }
.sdr-row-head:hover { background: var(--panel-2); }
.sdr-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sdr-who-text { min-width: 0; }
.sdr-name { font-weight: 700; font-size: 14px; }
.sdr-title { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdr-hook { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sdr-hook .ico { color: #8fbcf3; }
.sdr-draft-badge { display: inline-flex; align-items: center; gap: 4px; width: fit-content; margin-top: 5px; padding: 2px 7px; border: 1px solid rgba(46, 204, 113, .35); border-radius: 999px; background: rgba(46, 204, 113, .1); color: #76dfa1; font-size: 10px; font-weight: 700; }
.sdr-score-action { display: block; margin-top: 5px; padding: 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 11px; cursor: pointer; }
.sdr-score-action:hover { text-decoration: underline; }
.sdr-score-action:disabled { color: var(--text-dim); cursor: wait; text-decoration: none; }
.sdr-fit { display: flex; align-items: center; gap: 8px; }
.score-meter { width: 48px; height: 5px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.score-meter-fill { height: 100%; background: linear-gradient(90deg, #1496ff, #6a5bff); border-radius: 3px; }
.score-num { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.sdr-last { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; min-width: 0; }
.sdr-last-top { display: flex; align-items: center; gap: 8px; }
.sdr-last .hint, .sdr-fit .hint, .sdr-cadence .hint { margin: 0; }
.cadence-count { font-size: 12px; font-weight: 600; }
.cadence-dots { display: flex; gap: 8px; margin-top: 3px; }
.cadence-dot { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.cadence-dot .ico { color: var(--ch); }
.sdr-go { text-align: right; }
.sdr-go .btn { pointer-events: none; }
.sdr-row:hover .sdr-go .btn { filter: brightness(1.12); }

@media (max-width: 1180px) {
  .sdr-row { grid-template-columns: minmax(200px, 2fr) 140px minmax(150px, 1.2fr) 110px 104px; }
  .sdr-row > :nth-child(2), .sdr-row > :nth-child(5) { display: none; }
}
@media (max-width: 760px) {
  .sdr-list-filters { width: 100%; margin-left: 0; }
  .sdr-list-filters label { flex: 1; }
  .sdr-list-filters select { width: 100%; min-width: 0; }
  .sdr-row { grid-template-columns: 1fr auto; }
  .sdr-row > :not(:first-child):not(:nth-child(6)) { display: none; }
  .sdr-row-head { display: none; }
}

/* ── Popover menu & toast ── */
.pop-menu { position: fixed; z-index: 1200; min-width: 210px; max-width: 280px; background: #1b2335; border: 1px solid #33405a; border-radius: 10px; padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); animation: popIn 0.12s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px); } }
.pop-menu-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); padding: 6px 8px 4px; }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: none; background: none; color: var(--text); font-size: 13px; font-family: inherit; border-radius: 6px; cursor: pointer; text-align: left; }
.pop-item:hover, .pop-item:focus-visible { background: rgba(20, 150, 255, 0.14); box-shadow: none; }
.pop-item.is-active { font-weight: 700; }
.pop-item-label { flex: 1; }
.pop-check { color: var(--accent); }
.pop-input { width: 100%; box-sizing: border-box; margin: 4px 0 8px; background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit; }
.pop-input:focus { outline: none; border-color: var(--accent); }
.pop-input.is-invalid { border-color: var(--bad); }
.pop-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 0 2px 2px; }

.toast-host { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1300; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: #1b2335; border: 1px solid #33405a; color: var(--text); font-size: 13px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s; }
.toast.show { opacity: 1; transform: none; }
.toast-good .ico { color: var(--good); }
.toast-bad { border-color: rgba(255, 92, 92, 0.5); }
.toast-bad .ico { color: var(--bad); }

/* ── Outreach workspace ── */
.ow-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1360px, 96vw); height: min(900px, 94vh); background: var(--bg); border: 1px solid #2f3a52; border-radius: 14px; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.ow-header { display: flex; align-items: center; gap: 24px; padding: 16px 20px; background: linear-gradient(180deg, #19223a, #161d2c); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ow-id { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1; }
.ow-id-text { min-width: 0; }
.ow-id h2 { margin: 0; font-size: 19px; }
.ow-id-sub { display: flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; margin-top: 2px; flex-wrap: wrap; }
.ow-dot { opacity: 0.5; }
.ow-head-meta { display: flex; gap: 22px; align-items: flex-start; }
.ow-meta-block { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.ow-meta-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); }
.ow-meta-val { font-size: 13px; font-weight: 600; line-height: 24px; }
.ow-touchno { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 24px; }
.ow-close { background: none; border: 1px solid transparent; color: var(--text-dim); border-radius: 8px; padding: 6px; cursor: pointer; display: grid; place-items: center; }
.ow-close:hover { color: var(--text); background: var(--panel-2); border-color: var(--border); }
.ow-loading { display: flex; align-items: center; gap: 10px; color: var(--text-dim); padding: 6px 0; }
.ow-banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 20px; background: rgba(245, 166, 35, 0.08); border-bottom: 1px solid rgba(245, 166, 35, 0.25); color: #f0dcb6; font-size: 12.5px; line-height: 1.5; }
.ow-banner .ico { color: var(--warn); margin-top: 2px; }

.ow-body { display: grid; grid-template-columns: 300px minmax(0, 1fr) 350px; min-height: 0; }
.ow-col { overflow-y: auto; min-height: 0; padding: 18px; }
.ow-intel { background: var(--panel); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 14px; }
.ow-composer { display: flex; flex-direction: column; gap: 14px; padding: 18px 22px; }
.ow-history { background: var(--panel); border-left: 1px solid var(--border); padding: 0; }
.ow-col-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: var(--panel); border-bottom: 1px solid var(--border); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }

.ow-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.ow-card-title { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.ow-card-count { margin-left: auto; background: var(--panel-2); color: var(--text); border-radius: 999px; padding: 0 7px; font-size: 11px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.ow-card-count:empty { display: none; }
.ow-reach-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 13px; color: var(--text-dim); min-height: 28px; }
.ow-reach-row + .ow-reach-row { border-top: 1px solid rgba(42, 51, 72, 0.6); }
.ow-reach-val { flex: 1; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-reach-val:hover { color: var(--accent); }
.ow-reach-row.is-missing { opacity: 0.6; font-style: italic; }
.ow-channel-tally { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.tally { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); }
.tally .ico { color: var(--ch); }
.tally strong { color: var(--text); font-variant-numeric: tabular-nums; }
.ow-hooks { display: flex; flex-direction: column; gap: 8px; }
.ow-hook { border: 1px solid var(--border); border-radius: 8px; padding: 10px; background: var(--panel); }
.ow-hook-head { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; }
.ow-hook-title { font-size: 13px; font-weight: 700; line-height: 1.35; }
.fit-chip { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(106, 91, 255, 0.18); color: #b6adff; }
.ow-hook-summary { font-size: 12px; color: var(--text-dim); line-height: 1.5; margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ow-hook-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.ow-hook-foot .hint { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-hook-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.ow-empty-mini { display: flex; gap: 8px; font-size: 12px; color: var(--text-dim); line-height: 1.5; }
.ow-sub-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin: 10px 0 6px; }
.otag-cloud { display: flex; flex-wrap: wrap; gap: 5px; }
.otag { font-size: 11.5px; padding: 2px 8px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-pains { margin: 0; padding-left: 18px; font-size: 12px; color: var(--text); line-height: 1.5; }

.ow-step { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.ow-step-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ow-step-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(20, 150, 255, 0.16); color: #8fbcf3; font-size: 11px; font-weight: 800; }
.ow-step-hint { font-weight: 500; color: var(--text-dim); font-size: 12px; }
.angle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.angle-card { display: flex; gap: 9px; align-items: flex-start; text-align: left; padding: 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; font-family: inherit; transition: border-color 0.12s, background 0.12s; }
.angle-card:hover { border-color: #3f4b66; }
.angle-card.is-on { border-color: var(--accent); background: rgba(20, 150, 255, 0.1); }
.angle-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--panel-2); color: #8fbcf3; flex-shrink: 0; }
.angle-card.is-on .angle-icon { background: rgba(20, 150, 255, 0.22); color: #cfe4ff; }
.angle-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.angle-label { font-size: 12.5px; font-weight: 700; }
.angle-desc { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }

.ow-input { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 9px 11px; font-size: 13px; font-family: inherit; line-height: 1.5; resize: vertical; }
.ow-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 150, 255, 0.15); }
.ow-input.flash { animation: owFlash 0.9s ease-out; }
@keyframes owFlash { 0% { box-shadow: 0 0 0 3px rgba(20, 150, 255, 0.6); } 100% { box-shadow: 0 0 0 3px rgba(20, 150, 255, 0); } }
.ow-body-input { min-height: 180px; font-size: 13.5px; }
.ow-gen-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ow-emoji-toggle {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-dim);
  cursor: pointer; user-select: none;
}
.ow-emoji-toggle input { accent-color: var(--accent); cursor: pointer; }
.ow-emoji-toggle:hover { color: var(--text); }
.ow-status { font-size: 12.5px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ow-status:empty { display: none; }

/* ─── Outreach whitepaper PDF export — off-screen render target, always light/print-styled
   regardless of app theme since it's a document meant to be sent, not a UI panel.
   A one-page point-of-view: headline, problem, solution, proof points, CTA — not a call log. ── */
.ow-pdf-page {
  --pdf-accent: #1496ff; --pdf-accent-2: #6a5bff;
  position: fixed; top: 0; left: -10000px; width: 780px;
  background: #ffffff; color: #16202c; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  padding: 40px 48px; box-sizing: border-box; overflow: hidden;
}
/* Decorative corner graphic — purely visual texture, sits behind everything */
.pdf-bg-shape {
  position: absolute; top: -120px; right: -120px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,150,255,0.07) 0%, rgba(106,91,255,0.05) 55%, rgba(255,255,255,0) 75%);
  z-index: 0;
}
.pdf-header, .pdf-recipient, .pdf-title, .pdf-subtitle, .pdf-section, .pdf-callout-row, .pdf-cta, .pdf-footer { position: relative; z-index: 1; }
.pdf-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pdf-brand-mark { display: flex; align-items: center; gap: 9px; }
.pdf-brand-mark svg { display: block; }
.pdf-brand { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; color: #16202c; text-transform: uppercase; }
.pdf-doc-label { font-size: 11px; color: #8a97a6; }
.pdf-recipient { font-size: 11.5px; color: #6b7a8c; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid #e4eaf0; }
.pdf-recipient strong { color: #16202c; }
.pdf-title { font-size: 25px; font-weight: 800; line-height: 1.25; color: #0a1622; margin-bottom: 8px; }
.pdf-subtitle { font-size: 13.5px; color: #4c5a6a; line-height: 1.5; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 3px solid transparent; border-image: linear-gradient(90deg, var(--pdf-accent), var(--pdf-accent-2)) 1; border-image-slice: 1; }
.pdf-section-label { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pdf-accent); margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.pdf-section-label svg { flex-shrink: 0; }
.pdf-section { margin-bottom: 16px; padding: 14px 16px; border-radius: 8px; border-left: 3px solid #d8e4f0; }
.pdf-section p { font-size: 12.5px; line-height: 1.65; color: #263544; margin: 0 0 8px; }
.pdf-section p:last-child { margin-bottom: 0; }
.pdf-section-problem { background: #fef6f5; border-left-color: #e0524d; }
.pdf-section-problem .pdf-section-label { color: #c8433e; }
.pdf-section-solution { background: #f4f8fc; border-left-color: var(--pdf-accent); }
.pdf-callout-row { display: flex; gap: 16px; margin-bottom: 22px; margin-top: 20px; align-items: stretch; }
.pdf-proof { flex: 1; background: #f4f8fc; border: 1px solid #d8e4f0; border-radius: 8px; padding: 14px 16px; }
.pdf-proof-item { display: flex; gap: 8px; font-size: 12px; line-height: 1.5; color: #263544; margin-bottom: 8px; align-items: flex-start; }
.pdf-proof-item:last-child { margin-bottom: 0; }
.pdf-proof-check { color: #22c55e; font-weight: 800; flex-shrink: 0; }
.pdf-stat { flex: 0 0 150px; background: #0a1622; border-radius: 8px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pdf-stat-value { font-size: 30px; font-weight: 800; color: #ffffff; line-height: 1; }
.pdf-stat-label { font-size: 10.5px; color: #9db4c9; margin-top: 6px; line-height: 1.4; }
.pdf-cta { background: linear-gradient(90deg, var(--pdf-accent), var(--pdf-accent-2)); border-radius: 8px; padding: 14px 18px; color: #ffffff; font-size: 13px; font-weight: 700; margin-bottom: 22px; }
.pdf-footer { padding-top: 12px; border-top: 1px solid #e4eaf0; font-size: 10.5px; color: #8a97a6; display: flex; justify-content: space-between; align-items: center; }
.pdf-footer-brand { display: inline-flex; align-items: center; gap: 5px; }
.pdf-footer-brand svg { display: block; }

/* ─── One Pager format — industry-brief table (challenge/question/solution), dark navy
   theme matching the reference collateral style, distinct from the light whitepaper. ── */
.ow-pdf-page.ow-pdf-page-dark {
  background: #0a1622; color: #dce6f0;
}
.ow-pdf-page-dark .pdf-bg-shape { display: none; }
.op-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.op-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--pdf-accent); text-transform: uppercase; }
.op-title { font-size: 25px; font-weight: 800; line-height: 1.3; color: #ffffff; margin-bottom: 18px; }
.op-intro-row { display: flex; gap: 16px; align-items: stretch; background: #101f30; border-radius: 8px; padding: 16px 18px; margin-bottom: 20px; }
.op-intro-text { flex: 1.3; font-size: 12.5px; line-height: 1.6; color: #b8c6d6; }
.op-callout { flex: 1; border-left: 3px solid var(--pdf-accent-2); padding-left: 14px; font-size: 12.5px; line-height: 1.6; color: #dce6f0; }
.op-callout-label { color: #9fb3c8; font-weight: 700; display: block; margin-bottom: 3px; }
.op-callout strong { color: #ffffff; }
.op-table { width: 100%; border-collapse: collapse; }
.op-table thead th {
  text-align: left; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: #dce6f0; background: #16283c; padding: 10px 14px; border-bottom: 1px solid #24384f;
}
.op-table tbody td { padding: 13px 14px; font-size: 11.5px; line-height: 1.55; vertical-align: top; border-bottom: 1px solid #16283c; }
.op-table tbody tr:nth-child(odd) { background: #0d1c2b; }
.op-table tbody tr:nth-child(even) { background: #0a1622; }
.op-td-challenge { font-weight: 700; color: #ffffff; width: 22%; }
.op-td-question { color: #aebdcd; width: 34%; }
.op-td-solution { color: #c3d0dd; width: 44%; }
.op-td-solution strong { color: #ffffff; }
.op-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 10px; color: #6b7f94; }
.op-footer-brand { display: inline-flex; align-items: center; gap: 5px; }
.op-footer-brand svg { display: block; }

/* ─── InfoGraphic format — light theme, structured diagram: numbered stage flow +
   without/with-Dynatrace comparison checklist, visual blocking rather than prose. ── */
.ig-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--pdf-accent); text-transform: uppercase; position: relative; z-index: 1; }
.ig-title { font-size: 23px; font-weight: 800; line-height: 1.28; color: #0a1622; margin: 6px 0 8px; position: relative; z-index: 1; }
.ig-intro { font-size: 12.5px; color: #4c5a6a; line-height: 1.55; margin-bottom: 22px; position: relative; z-index: 1; }

.ig-stage-flow { display: flex; align-items: flex-start; margin-bottom: 24px; position: relative; z-index: 1; }
.ig-stage { flex: 1; text-align: center; padding: 0 6px; min-width: 0; }
.ig-stage-num {
  width: 34px; height: 34px; line-height: 34px; margin: 0 auto 8px;
  border-radius: 50%; background: linear-gradient(135deg, var(--pdf-accent), var(--pdf-accent-2));
  color: #fff; font-weight: 800; font-size: 14px;
}
.ig-stage-label { font-size: 12px; font-weight: 700; color: #16202c; line-height: 1.3; margin-bottom: 4px; }
.ig-stage-desc { font-size: 10.5px; color: #6b7a8c; line-height: 1.4; }
.ig-stage-connector { flex: 0 0 24px; height: 2px; background: linear-gradient(90deg, var(--pdf-accent), var(--pdf-accent-2)); margin-top: 17px; opacity: 0.4; }

.ig-cmp-section { border: 1px solid #d8e4f0; border-radius: 8px; overflow: hidden; margin-bottom: 18px; position: relative; z-index: 1; }
.ig-cmp-header { display: flex; background: #16202c; }
.ig-cmp-header .ig-cmp-cell { color: #fff; font-weight: 800; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 10px 16px; }
.ig-cmp-row { display: flex; border-top: 1px solid #e4eaf0; }
.ig-cmp-row:nth-child(even) { background: #f7fafc; }
.ig-cmp-cell { flex: 1; padding: 10px 16px; font-size: 11.5px; line-height: 1.5; display: flex; align-items: flex-start; gap: 8px; }
.ig-cmp-left { color: #6b7a8c; }
.ig-cmp-right { color: #16202c; font-weight: 600; border-left: 1px solid #e4eaf0; }
.ig-cmp-icon { flex-shrink: 0; font-weight: 800; font-size: 11px; margin-top: 1px; }
.ig-cmp-icon-bad { color: #c8433e; }
.ig-cmp-icon-good { color: #22c55e; }

.ig-stat { background: #0a1622; border-radius: 8px; padding: 16px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin-bottom: 20px; min-width: 150px; position: relative; z-index: 1; }
.ig-stat-value { font-size: 28px; font-weight: 800; color: #ffffff; line-height: 1; }
.ig-stat-label { font-size: 10.5px; color: #9db4c9; margin-top: 6px; line-height: 1.4; }

.ow-field { margin-bottom: 10px; }
.ow-field[hidden] { display: none; }
.ow-field-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.ow-field-head label { font-size: 12px; font-weight: 600; color: var(--text-dim); flex: 1; }
.ow-count { font-size: 11.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.ow-count.is-over { color: var(--bad); font-weight: 700; }
.ow-draft.is-loading .ow-input { opacity: 0.5; }
.ow-refine { border-top: 1px dashed var(--border); padding-top: 4px; }
.ow-refine-custom { display: flex; gap: 8px; margin-top: 8px; }
.ow-refine .ow-status { margin-top: 8px; }
.ow-log-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.ow-date { margin-top: 8px; width: auto; resize: none; }

.ow-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--panel); }
.ow-log-preview { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-dim); min-width: 0; }
.ow-footer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ow-footer-actions .btn[hidden] { display: none; }
.ow-pdf-group { display: flex; gap: 6px; align-items: center; }
.ow-pdf-format-select, .ow-pdf-topic-input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text);
  font-size: 12.5px; padding: 8px 10px; height: 36px; box-sizing: border-box;
}
.ow-pdf-topic-input { width: 140px; }
.ow-pdf-format-select:focus, .ow-pdf-topic-input:focus { outline: none; border-color: var(--accent); }

.timeline { padding: 14px 16px 20px; }
.tl-item { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.tl-rail { position: relative; display: flex; justify-content: center; }
.tl-rail::after { content: ''; position: absolute; top: 30px; bottom: 2px; width: 2px; background: var(--border); }
.tl-item:last-child .tl-rail::after { display: none; }
.tl-node { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ch); color: var(--ch); }
.tl-content { padding-bottom: 18px; min-width: 0; }
.tl-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tl-channel { font-weight: 700; font-size: 13px; }
.tl-when { font-size: 12px; color: var(--text-dim); }
.tl-flag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #8fbcf3; background: rgba(57, 135, 229, 0.14); padding: 1px 6px; border-radius: 4px; }
.tl-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.tl-meta .hint { margin: 0; display: inline-flex; align-items: center; gap: 4px; }
.tl-outcome { display: inline-flex; align-items: center; gap: 3px; background: none; border: none; padding: 0; cursor: pointer; border-radius: 999px; color: var(--text-dim); }
.tl-outcome:hover .opill { filter: brightness(1.2); }
.tl-subject { font-size: 13px; font-weight: 600; margin-top: 8px; }
.tl-body { font-size: 12.5px; color: #c8cfdc; line-height: 1.55; margin-top: 5px; white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.tl-body.is-clamped { max-height: 104px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.tl-latest .tl-body { border-color: rgba(57, 135, 229, 0.45); }
.tl-content > .link-btn { margin-top: 4px; }
.tl-notes { display: flex; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--text-dim); font-style: italic; line-height: 1.5; }
.tl-notes .ico { margin-top: 2px; font-style: normal; }
.tl-actions { display: flex; gap: 14px; margin-top: 6px; opacity: 0; transition: opacity 0.12s; }
.tl-item:hover .tl-actions, .tl-item:focus-within .tl-actions { opacity: 1; }
@media (hover: none) { .tl-actions { opacity: 1; } }
.ow-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 20px; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.ow-empty strong { color: var(--text); }
.ow-empty .hint { margin: 0; }

@media (max-width: 1250px) {
  .angle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ow-log-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  .ow-panel { height: 96vh; }
  .ow-body { grid-template-columns: 1fr; overflow-y: auto; }
  .ow-col { overflow: visible; }
  .ow-composer { order: -1; }
  .ow-intel { border-right: none; border-top: 1px solid var(--border); }
  .ow-history { border-left: none; border-top: 1px solid var(--border); }
  .ow-footer { flex-wrap: wrap; }
}

/* ── Sent log ── */
.sent-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.table-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sent-table-v2 th { background: var(--panel-2); text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; padding: 10px 12px; }
.sent-table-v2 td { padding: 11px 12px; vertical-align: top; }
.sent-table-v2 .hint { margin: 2px 0 0; }
.sent-row { cursor: pointer; transition: background 0.12s; }
.sent-row:hover, .sent-row.is-open { background: rgba(20, 150, 255, 0.05); }
.sent-when { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sent-contact { font-weight: 600; }
.sent-recipient { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sent-msg { max-width: 460px; }
.sent-subject { font-weight: 600; }
.sent-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 460px; }
.sent-source { white-space: nowrap; }
.src-tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; padding: 2px 6px; border-radius: 4px; margin-right: 6px; }
.src-sdr { background: rgba(106, 91, 255, 0.18); color: #b6adff; }
.src-pitch { background: rgba(57, 135, 229, 0.16); color: #8fbcf3; }
.src-by { font-size: 12px; color: var(--text-dim); }
.sent-detail td { background: var(--bg); padding: 0 12px 12px; }
.sent-body { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.55; color: var(--text); }

/* ── Dashboard: outreach ── */
.dash-section-head { display: flex; align-items: baseline; gap: 12px; margin: 8px 0 12px; flex-wrap: wrap; }
.dash-section-head h3 { margin: 0; font-size: 15px; font-weight: 700; }
.dash-section-head .hint { margin: 0; }
.dash-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .dash-grid-3 { grid-template-columns: 1fr; } }

/* ─── Dashboard sub-tabs ─────────────────────────────────────────────────── */
.dash-subtab-bar { display: flex; gap: 2px; margin-bottom: 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dash-subtab-btn {
  background: none; border: none; color: var(--text-dim); padding: 9px 14px;
  cursor: pointer; font-size: 13px; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap;
}
.dash-subtab-btn.active { color: var(--text); border-color: var(--accent); }
.dash-subtab-btn:hover:not(.active) { color: var(--text); }
.dash-subpanel { display: none; }
.dash-subpanel.active { display: block; }
.dash-scope-select {
  font-size: 12px; font-weight: 600; color: var(--text); background: var(--panel);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; cursor: pointer; max-width: 260px;
}

/* Generic bar-chart rows reused across pipeline/use-case/POC/event/activity breakdowns */
.dbar-rows { display: flex; flex-direction: column; gap: 10px; }
.dbar-row { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 8px; }
.dbar-row.clickable { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.dbar-row.clickable:hover { background: var(--panel-2); }
.dbar-label { font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: capitalize; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbar-wrap { height: 16px; background: rgba(255,255,255,0.06); border-radius: 4px; overflow: hidden; }
.dbar { height: 100%; border-radius: 4px; transition: width 0.5s ease; opacity: 0.85; min-width: 3px; }
.dbar-count { font-size: 13px; font-weight: 700; color: var(--text); text-align: right; }

/* Clickable list rows inside dashboard mini-tables */
.dash-row-click { cursor: pointer; }
.dash-row-click:hover td { background: var(--panel-2); }

.dash-kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 16px; }
.dash-kpi { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.dash-kpi-value { font-size: 20px; font-weight: 700; }
.dash-kpi-label { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

.viz-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -6px 0 14px; flex-wrap: wrap; }
.viz-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.viz-legend-item { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text); }
.viz-swatch { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.viz-toggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border); color: var(--text-dim); font-family: inherit; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; cursor: pointer; }
.viz-toggle:hover { color: var(--text); border-color: #3f4b66; }
.viz-plot { position: relative; height: 190px; margin-left: 26px; }
.viz-grid { position: absolute; inset: 0 0 22px 0; pointer-events: none; }
.viz-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(42, 51, 72, 0.7); }
.viz-gridline span { position: absolute; right: 100%; top: -7px; padding-right: 6px; font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.viz-cols { position: absolute; inset: 0; display: flex; gap: 8px; }
.viz-col { flex: 1; display: flex; flex-direction: column; min-width: 0; border-radius: 6px; }
.viz-hit { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 0 3px; border-radius: 6px 6px 0 0; transition: background 0.12s; }
.viz-col:hover .viz-hit, .viz-col:focus-visible .viz-hit { background: rgba(255, 255, 255, 0.04); }
.viz-stack { width: 100%; max-width: 34px; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; }
.viz-seg { width: 100%; min-height: 2px; flex-shrink: 0; }
.viz-stack > .viz-seg:last-child { border-radius: 4px 4px 0 0; }
.viz-xlabel { height: 22px; line-height: 22px; text-align: center; font-size: 10.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-col.is-current .viz-xlabel { color: var(--text); font-weight: 700; }
.viz-tip { position: fixed; z-index: 1300; pointer-events: none; background: #0b111c; border: 1px solid #33405a; border-radius: 8px; padding: 8px 10px; font-size: 12px; color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); opacity: 0; transition: opacity 0.1s; min-width: 150px; }
.viz-tip.show { opacity: 1; }
.viz-tip-title { font-weight: 700; margin-bottom: 6px; }
.viz-tip-row { display: flex; align-items: center; gap: 8px; padding: 1px 0; color: var(--text-dim); }
.viz-tip-row strong { margin-left: auto; padding-left: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.viz-tip-total { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 5px; }
.viz-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.viz-table th, .viz-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.viz-table th:first-child, .viz-table td:first-child { text-align: left; }
.viz-table th { color: var(--text-dim); font-weight: 600; font-size: 11.5px; }

.ofunnel { display: flex; flex-direction: column; gap: 14px; }
.ofunnel-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 130px; gap: 12px; align-items: center; border-radius: 6px; }
.ofunnel-label { font-size: 12.5px; font-weight: 600; }
.ofunnel-track { height: 14px; background: var(--panel-2); border-radius: 0 4px 4px 0; overflow: hidden; }
.ofunnel-bar { height: 100%; background: #3987e5; border-radius: 0 4px 4px 0; transition: width 0.4s ease; }
.ofunnel-row:hover .ofunnel-bar { filter: brightness(1.15); }
.ofunnel-val { display: flex; flex-direction: column; line-height: 1.25; }
.ofunnel-val strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.ofunnel-val .hint { margin: 0; font-size: 11.5px; }

.chan-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.chan-table th { text-align: left; color: var(--text-dim); font-weight: 600; font-size: 11.5px; padding: 0 6px 8px; }
.chan-table td { padding: 9px 6px; border-top: 1px solid var(--border); }
.chan-table .hint { margin: 0; display: inline; }
.chan-bar-wrap { display: flex; align-items: center; gap: 8px; }
.chan-bar { height: 8px; border-radius: 0 4px 4px 0; min-width: 2px; }
.chan-num { font-weight: 700; font-variant-numeric: tabular-nums; }

.fu-list, .ofeed { display: flex; flex-direction: column; gap: 2px; }
.fu-item, .ofeed-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 8px; padding: 8px; color: var(--text); font-family: inherit; cursor: pointer; }
.fu-item:hover, .ofeed-item:hover { background: var(--panel-2); }
.fu-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fu-name { font-weight: 600; font-size: 13px; }
.fu-who .hint { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-last { display: flex; align-items: center; gap: 6px; }
.ofeed-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ch); color: var(--ch); flex-shrink: 0; }
.ofeed-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ofeed-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ofeed-sub { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofeed-when { margin: 0; text-align: right; white-space: nowrap; font-size: 11.5px; }

/* Workspace sits above the floating Ask Prowler button (z 1000); menus/toasts/tooltips above that. */
#sdrOutreachModal { z-index: 1050; }
.ow-col, .ow-body { scrollbar-width: thin; scrollbar-color: #33405a transparent; }
.ow-col::-webkit-scrollbar, .ow-body::-webkit-scrollbar { width: 8px; }
.ow-col::-webkit-scrollbar-thumb, .ow-body::-webkit-scrollbar-thumb { background: #33405a; border-radius: 4px; }

/* ── Supporting Dynatracers ── */
.sp-group-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px; }
.sp-group-count { font-size: 11px; padding: 0 7px; border-radius: 999px; background: var(--panel-2); color: var(--text-dim); }
.sp-card .org-card { cursor: default; }
.sp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.sp-card-foot .hint { margin: 0; font-size: 11px; }
.sp-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 48px 16px; }
.sp-empty-state .hint { margin: 0 0 6px; }
.sp-empty-title { font-weight: 700; font-size: 15px; }

#supporterModal { z-index: 1050; }
.sp-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 86vh; display: flex; flex-direction: column; gap: 12px; background: var(--panel); border: 1px solid #2f3a52; border-radius: 14px; padding: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.sp-head { display: flex; justify-content: space-between; gap: 12px; }
.sp-head h2 { margin: 0 0 4px; font-size: 18px; }
.sp-head .hint { margin: 0; }
.sp-search { min-width: 0; }
.sp-list { flex: 1; min-height: 160px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); padding: 4px; scrollbar-width: thin; scrollbar-color: #33405a transparent; }
.sp-person { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; border-radius: 8px; padding: 8px 10px; color: var(--text); font: inherit; cursor: pointer; }
.sp-person:hover:not(:disabled) { background: var(--panel-2); }
.sp-person.is-on { background: rgba(20,150,255,.12); }
.sp-person:disabled { opacity: .5; cursor: default; }
.sp-person:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(20,150,255,.5); }
.sp-check { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #3f4b66; font-size: 12px; font-weight: 800; color: white; flex-shrink: 0; }
.sp-person.is-on .sp-check { background: var(--accent); border-color: var(--accent); }
.sp-av { width: 30px; height: 30px; font-size: 12px; border-radius: 50%; }
.sp-who { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sp-who .hint { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-name { font-weight: 600; font-size: 13px; }
.sp-note { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.sp-empty { padding: 24px; text-align: center; color: var(--text-dim); font-size: 13px; }
.sp-role-label { font-size: 12px; font-weight: 600; color: var(--text-dim); }
.sp-role-label .hint { display: inline; margin: 0; font-weight: 400; }
.sp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sp-foot .hint { margin: 0; }
.sp-actions { display: flex; gap: 8px; }
/* The hidden attribute must win over .btn's explicit display. */
.btn[hidden] { display: none; }
.sp-head .ow-close { font-size: 24px; line-height: 1; width: 34px; height: 34px; flex-shrink: 0; }
.org-off-tab { display: none !important; }
/* Team/supporter charts are card grids, not a hierarchy: drop org-tree connectors and
   give the grid a real width (the zoom container otherwise shrink-wraps to one column). */
.team-org-tree { width: 1040px; }
.team-members-list { list-style: none; margin: 0; padding: 0; }
.team-member-card .org-card { margin-top: 0; }
.team-member-card .org-card::before { display: none; }

/* ── Conversation goal + contact-card links ── */
.ow-goal-label { margin-top: 0; }
.ow-purposes { margin-bottom: 4px; }
.ow-purpose .ico { color: #8fbcf3; }
.ow-purpose.is-on .ico { color: #cfe4ff; }
.ow-suggested { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #72dfa2; background: rgba(46,204,113,.14); border-radius: 4px; padding: 1px 5px; margin-left: 2px; }
#owPurposeHint strong { color: var(--text); font-weight: 600; }
#owPurposeHint .link-btn { font-size: 12px; }
.ow-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ow-card-link { display: inline-flex; align-items: center; gap: 5px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ow-card-link:hover { border-color: var(--accent); color: #cfe4ff; }
.ow-card-link:focus-visible, .sdr-card-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(20,150,255,.5); }
.sdr-name { display: flex; align-items: center; gap: 6px; }
.sdr-card-btn { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--text-dim); cursor: pointer; }
.sdr-card-btn:hover { color: var(--accent); background: rgba(20,150,255,.1); border-color: rgba(20,150,255,.3); }
/* Contact card opened from the outreach workspace sits above it (workspace is z 1050). */
#contactDrawer.over-workspace { z-index: 1100; }

.partners-org-trees { padding: 16px; display: flex; flex-direction: column; gap: 8px; }

/* ── Outreach infographic ───────────────────────────────────────────────────── */
.ow-infographic-open { margin-top: 10px; }

#infographicModal { z-index: 1060; }
.ig-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(960px, 96vw); max-height: 92vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 0;
  background: var(--panel); border: 1px solid #2f3a52; border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.ig-head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 20px 14px; border-bottom: 1px solid var(--border); }
.ig-head h2 { margin: 0 0 4px; font-size: 18px; }
.ig-head .hint { margin: 0; max-width: 560px; }

.ig-body { display: grid; grid-template-columns: minmax(0, 480px) minmax(260px, 1fr); gap: 22px; padding: 20px; }
.ig-preview-wrap { position: relative; display: flex; justify-content: center; }
.ig-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(11,15,20,0.75); color: #cfe4ff; font-size: 13px; border-radius: 14px;
}
.ig-loading[hidden] { display: none; }

.ig-controls { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ig-field-label { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-dim); margin: 10px 0 4px; }
.ig-stat-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ig-regenerate-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }

.ig-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-top: 1px solid var(--border); background: var(--panel);
}
.ig-foot .hint { margin: 0; }
.ig-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* The card itself: the exact node captured to PNG. Fixed pixel size so the export
   is deterministic regardless of viewport/zoom. */
.ig-card {
  width: 480px; min-height: 560px;
  background: #0b0f14; color: #f2f5f8;
  border-radius: 10px; overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
  --ig-dt: #b4dc00;
  --ig-customer: #b4dc00; /* literal, not var(--ig-dt) — html2canvas's gradient parser chokes on var-in-var here */
}
.ig-accent-bar { height: 7px; background: linear-gradient(90deg, #b4dc00, #b4dc00); }
.ig-card-inner { padding: 28px 30px 24px; display: flex; flex-direction: column; gap: 14px; height: 100%; box-sizing: border-box; }

.ig-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ig-dt-wordmark { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
.ig-dt-dot { color: var(--ig-dt); }
.ig-account-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--ig-customer);
  border-radius: 999px; padding: 4px 10px 4px 4px;
}
.ig-account-chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: #fff; }
.ig-account-chip span { font-size: 11px; font-weight: 600; color: #e7ebf3; }

.ig-eyebrow {
  display: inline-flex; align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ig-dt); background: rgba(180, 220, 0, 0.16);
  border-radius: 999px; padding: 4px 12px;
  min-height: 14px;
}
.ig-headline { margin: 0; font-size: 27px; line-height: 1.2; font-weight: 800; color: #fff; min-height: 1.2em; }

.ig-stat-block {
  display: flex; align-items: baseline; gap: 10px;
  border-left: 3px solid var(--ig-customer); padding-left: 14px; margin: 2px 0;
}
.ig-stat-value { font-size: 40px; font-weight: 800; color: var(--ig-customer); line-height: 1; }
.ig-stat-label { font-size: 12px; color: #9aa5ba; text-transform: uppercase; letter-spacing: 0.05em; }

.ig-subhead { margin: 0; font-size: 15.5px; line-height: 1.55; color: #c3cad8; flex: 1; }

.ig-cta {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
  background: var(--ig-dt); color: #0b0f14; font-weight: 700; font-size: 13px;
  border-radius: 999px; padding: 9px 18px;
  min-height: 14px;
}
.ig-cta:not(:empty)::after { content: '\2192'; }
.ig-eyebrow[hidden], .ig-stat-block[hidden], .ig-cta[hidden] { display: none; }

.ig-footer-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.08);
}
.ig-sender { font-size: 11.5px; color: #9aa5ba; }
.ig-footer-dt { font-size: 10.5px; color: #6b7688; letter-spacing: 0.03em; }

@media (max-width: 820px) {
  .ig-body { grid-template-columns: 1fr; }
  .ig-card { width: 100%; max-width: 480px; }
}

/* ── Events (calendar) ──────────────────────────────────────────────── */
.ev-wrap { display: flex; flex-direction: column; gap: 14px; }
.ev-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.ev-header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ev-view-toggle { display: flex; gap: 4px; }
.ev-view-toggle .btn { border-radius: 6px; }

.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; background: rgba(20,150,255,0.05); border: 1px solid var(--border); border-radius: 8px; }
.ev-filters select, .ev-filters input[type="date"], .ev-filters input[type="text"], .ev-filters input:not([type]) {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 6px 8px; outline: none;
}
.ev-filters select:focus, .ev-filters input:focus { border-color: var(--accent); }

.ev-table th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); padding: 8px 6px; border-bottom: 1px solid var(--border); }
.ev-table td { padding: 8px 6px; font-size: 12.5px; vertical-align: middle; }
.ev-table td:first-child { font-weight: 500; max-width: none; white-space: nowrap; }
.ev-sortable { cursor: pointer; user-select: none; }
.ev-sortable:hover { color: var(--text); }
.ev-row { cursor: pointer; transition: background 0.1s; }
.ev-row:hover { background: rgba(20,150,255,0.06); }
.ev-title-link { font-weight: 600; }
.ev-url-link { color: var(--accent); text-decoration: none; margin-left: 4px; }
.ev-row-actions { text-align: right; }

.ev-type-badge { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.ev-type-industry { background: rgba(20,150,255,0.15); color: #6ab8ff; }
.ev-type-account { background: rgba(46,204,113,0.15); color: #4ade80; }
.ev-type-partner { background: rgba(255,169,64,0.15); color: #ffb84d; }
.ev-type-contact { background: rgba(154,110,255,0.15); color: #b795ff; }

.ev-sponsor-badge { color: var(--good); font-weight: 600; font-size: 11.5px; }

/* Calendar */
.ev-cal { display: flex; flex-direction: column; gap: 8px; }
.ev-cal-header { display: flex; align-items: center; gap: 10px; }
.ev-cal-month { font-size: 15px; font-weight: 700; min-width: 160px; text-align: center; }
.ev-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ev-cal-dow { margin-top: 4px; }
.ev-cal-dow-cell { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text-dim); text-align: center; padding: 4px 0; }
.ev-cal-cell { min-height: 90px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; background: rgba(255,255,255,0.01); }
.ev-cal-cell:hover { background: rgba(20,150,255,0.06); }
.ev-cal-cell-out { opacity: 0.35; cursor: default; }
.ev-cal-cell-out:hover { background: none; }
.ev-cal-cell-today { border-color: var(--accent); }
.ev-cal-daynum { font-size: 11px; font-weight: 700; color: var(--text-dim); }
.ev-cal-chip { font-size: 10.5px; padding: 1px 5px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.ev-cal-more { font-size: 10px; color: var(--text-dim); cursor: pointer; }
.ev-day-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.ev-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.ev-day-row:last-child { border-bottom: none; }
.ev-day-title { flex: 1; font-size: 13px; font-weight: 500; }

/* Modal form layout */
.form-row-group { display: flex; gap: 12px; }
.form-row-group .form-row { flex: 1; min-width: 0; }

.ev-section { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; border-top: 1px solid var(--border); }
.ev-section-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.ev-chip-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-person-chip { display: inline-flex; align-items: center; gap: 5px; background: rgba(20,150,255,0.1); border: 1px solid var(--border); border-radius: 100px; padding: 3px 6px 3px 10px; font-size: 12px; }
.ev-chip-role { color: var(--text-dim); font-size: 11px; }
.ev-chip-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 13px; line-height: 1; padding: 2px 4px; }
.ev-chip-remove:hover { color: var(--bad); }
.ev-add-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ev-add-row select, .ev-add-row input { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 6px 8px; outline: none; }
.ev-add-row select:focus, .ev-add-row input:focus { border-color: var(--accent); }

.ev-review-list { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; margin: 10px 0; }
.ev-review-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.ev-review-row:has(.ev-review-chk:checked) { border-color: var(--accent); background: rgba(20,150,255,0.06); }
.ev-review-row input[type="checkbox"] { margin-top: 3px; }
.ev-review-info { flex: 1; min-width: 0; }
.ev-review-title { font-weight: 600; font-size: 13px; }
.subsidiary-discovery-list { max-height: min(56vh, 560px); }
.subsidiary-research-status { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.subsidiary-research-status .spinner { flex: 0 0 auto; }
.subsidiary-research-status span:last-child { overflow-wrap: anywhere; }
.subsidiary-research-warning { padding: 9px 11px; border-left: 3px solid var(--accent); background: var(--panel); }
.subsidiary-discovery-row p { margin: 6px 0; }
.subsidiary-discovery-row.is-existing { opacity: .75; cursor: default; }
.subsidiary-discovery-sources { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; }
.subsidiary-discovery-sources a { overflow-wrap: anywhere; }

.ev-preset-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }

.ev-globe-wrap { position: relative; }
.ev-globe-container { width: 100%; height: 560px; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at center, #0d1a2e 0%, #060b14 100%); }
.ev-globe-marker { cursor: pointer; transform: translate(-50%, -50%); transition: transform 0.15s; pointer-events: auto; }
.ev-globe-marker:hover { transform: translate(-50%, -50%) scale(1.35); z-index: 2; }
.ev-globe-marker-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 6px 1px currentColor, 0 0 0 2px rgba(255,255,255,0.15); }
.ev-globe-marker-logo, .ev-globe-marker-dt { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ring-color, #6ab8ff); background: #0d1929; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 8px rgba(0,0,0,0.5); }
.ev-globe-marker-logo img { width: 100%; height: 100%; object-fit: cover; }
.ev-globe-marker-logo.ev-globe-marker-broken { background: var(--ring-color, #6ab8ff); }
.ev-globe-marker-logo.ev-globe-marker-broken img { display: none; }
.ev-globe-marker-dt span { color: #b4dc00; font-size: 9px; font-weight: 800; letter-spacing: 0.02em; }

.ev-globe-tip { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 5; background: #0d1929; border: 1px solid rgba(20,150,255,0.35); border-radius: 8px; padding: 10px 12px; min-width: 180px; max-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); opacity: 0; transform: translateY(4px); transition: opacity 0.1s, transform 0.1s; }
.ev-globe-tip.visible { opacity: 1; transform: translateY(0); }
.ev-globe-tip-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.ev-globe-tip-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); margin-bottom: 3px; }
.ev-globe-tip-hint { font-size: 10.5px; color: var(--accent); margin-top: 4px; }
.contact-globe-marker {
  width: var(--contact-marker-size); height: var(--contact-marker-size); padding: 0;
  display: grid; place-items: center; transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.85); border-radius: 50%;
  background: color-mix(in srgb, var(--contact-marker-color, #1496ff) 80%, transparent); color: #fff;
  font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--contact-marker-color, #1496ff) 22%, transparent), 0 0 16px var(--contact-marker-color, #1496ff);
  cursor: pointer; pointer-events: auto; touch-action: manipulation; transition: transform .15s, box-shadow .15s;
}
.contact-globe-marker:hover, .contact-globe-marker:focus-visible {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--contact-marker-color, #1496ff) 25%, transparent), 0 0 22px var(--contact-marker-color, #1496ff);
}
.contacts-map-summary { display: grid; grid-template-columns: 1fr minmax(220px, 320px); gap: 16px; margin-top: 12px; }
.contacts-map-legend { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.contacts-map-legend > strong { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.contacts-map-legend > span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-dim); }
.contacts-map-legend i, .contacts-globe-role-dot { display: inline-block; width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--role-color, #1496ff); }
.contacts-map-stats { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.contacts-map-stats > div { min-width: 130px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.contacts-map-stats strong { font-size: 20px; line-height: 1.1; }
.contacts-map-stats span, .contacts-map-places > strong { font-size: 11px; color: var(--text-dim); }
.contacts-map-places { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.contacts-map-places > strong { margin-bottom: 3px; }
.contacts-map-place { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; font-size: 12px; }
.contacts-map-place:hover span { color: var(--accent); }
.contacts-map-place b { color: var(--accent); font-variant-numeric: tabular-nums; }
.contacts-map-selection { grid-column: 1 / -1; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.contacts-map-selection:has(.contacts-globe-tip-list) { border-color: rgba(20,150,255,.35); }
.contacts-map-selection-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contacts-map-selection-heading > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contacts-map-selection-heading strong { font-size: 13px; }
.contacts-map-selection-heading span { color: var(--text-dim); font-size: 11px; }
.contacts-map-selection .contacts-globe-tip-list { max-height: 280px; overflow-y: auto; }
.contacts-globe-tip { pointer-events: auto; max-height: min(360px, 60vh); overflow-y: auto; }
.contacts-globe-tip-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.contacts-globe-tip-heading .ev-globe-tip-title { margin-bottom: 2px; }
.contacts-globe-tip-close { flex: 0 0 auto; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); color: var(--text-dim); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.contacts-globe-tip-close:hover { color: var(--text); border-color: var(--accent); }
.contacts-globe-tip-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.contacts-globe-tip-contact { display: grid; grid-template-columns: 9px minmax(0, 1fr) 12px; align-items: center; gap: 8px; width: 100%; padding: 6px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.contacts-globe-tip-contact:hover { background: rgba(20,150,255,.1); }
.contacts-globe-tip-contact > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.contacts-globe-tip-contact strong, .contacts-globe-tip-contact small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contacts-globe-tip-contact strong { font-size: 11.5px; }
.contacts-globe-tip-contact small { margin-top: 2px; color: var(--text-dim); font-size: 10.5px; }

.cc-outreach-section { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cc-outreach-heading { display: flex; align-items: center; justify-content: space-between; color: var(--text-dim); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cc-outreach-heading span { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--panel); text-align: center; font-variant-numeric: tabular-nums; }
.cc-outreach-list { display: flex; flex-direction: column; gap: 6px; }
.cc-outreach-link { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.02); color: var(--text); text-align: left; cursor: pointer; }
.cc-outreach-link:hover { border-color: var(--accent); background: rgba(20,150,255,.06); }
.cc-outreach-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--text-dim); font-size: 10.5px; }
.cc-outreach-subject { overflow: hidden; font-size: 11.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cc-outreach-preview { display: -webkit-box; overflow: hidden; color: var(--text-dim); font-size: 10.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.cc-outreach-detail { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 10.5px; }
.cc-outreach-all { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; }
.cc-outreach-empty { margin: 0; font-size: 11px; }
.cc-load-error { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; }
.cc-load-error p { margin: 0; font-weight: 700; }
.cc-load-error span { color: var(--text-dim); font-size: 12px; }
.tl-item-focused .tl-content { margin: -5px -7px 13px; padding: 5px 7px 8px; border: 1px solid var(--accent); border-radius: 8px; background: rgba(20,150,255,.07); }
@media (max-width: 700px) {
  .contacts-map-summary { grid-template-columns: 1fr; }
  .contacts-map-stats > div { min-width: 95px; flex: 1; }
  .ev-globe-container { height: 380px; }
}

/* Event detail page — a bigger, more "full screen" overlay than the standard modal */
.ev-detail-overlay .ev-detail-panel {
  background: #0d1929; border: 1px solid rgba(20,150,255,0.2); border-radius: 14px;
  width: min(1080px, 94vw); height: min(860px, 92vh); display: flex; flex-direction: column; overflow: hidden;
}
.ev-detail-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 24px 28px 18px; border-bottom: 1px solid rgba(20,150,255,0.12); gap: 12px; }
.ev-detail-header-main { flex: 1 1 auto; min-width: 0; }   /* fill the header so the title field runs nearly the full width of the dialog */
.ev-detail-badges { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.ev-detail-title { font-size: 24px; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.ev-detail-title-input { display: block; text-overflow: ellipsis; font-size: 24px; font-weight: 700; line-height: 1.25; background: transparent; border: none; border-bottom: 2px solid transparent; color: var(--text); font-family: inherit; padding: 2px 0; width: 100%; outline: none; }
.ev-detail-title-input:hover, .ev-detail-title-input:focus { border-bottom-color: var(--accent); }
.ev-detail-title-input::placeholder { color: var(--text-dim); font-weight: 500; }
.ev-detail-sub { font-size: 13.5px; color: var(--text-dim); }
.ev-detail-body { flex: 1; overflow-y: auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; padding: 24px 28px; }
.ev-detail-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ev-detail-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; border-left: 1px solid var(--border); padding-left: 24px; }
.ev-detail-row { font-size: 13.5px; display: flex; gap: 8px; }
.ev-detail-label { color: var(--text-dim); font-weight: 700; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; min-width: 70px; }
.ev-detail-section { display: flex; flex-direction: column; gap: 8px; }
.ev-detail-notes { font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.ev-detail-person { display: flex; align-items: center; gap: 10px; }
.ev-detail-person-name { font-size: 13px; font-weight: 600; }
.ev-detail-footer { display: flex; align-items: center; gap: 10px; padding: 16px 28px; border-top: 1px solid rgba(20,150,255,0.12); }
.ev-detail-footer-spacer { flex: 1; }

@media (max-width: 820px) {
  .ev-detail-body { grid-template-columns: 1fr; }
  .ev-detail-side { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .ev-detail-overlay .ev-detail-panel { width: 96vw; height: 94vh; }
}

@media (max-width: 720px) {
  .form-row-group { flex-direction: column; }
  .ev-cal-cell { min-height: 60px; }
  .ev-globe-container { height: 380px; }
}

/* ── Use Cases + POC (opportunity detail tabs) ──────────────────────────── */
.uc-list { display: flex; flex-direction: column; gap: 8px; }
.uc-card { border: 1px solid var(--border); border-radius: 8px; background: var(--panel); overflow: hidden; }
.uc-card-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: default; }
.uc-cat-badge { display: inline-block; padding: 2px 8px; border-radius: 100px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.uc-card-title { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uc-score-badge { font-size: 11.5px; font-weight: 700; color: var(--good); background: rgba(46,204,113,0.12); border-radius: 100px; padding: 2px 8px; cursor: help; }
.uc-status-chip { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.04em; background: rgba(154,165,186,0.15); color: #9aa5ba; }
.uc-status-scored { background: rgba(20,150,255,0.15); color: var(--accent); }
.uc-status-validated, .uc-status-poc { background: rgba(255,169,64,0.15); color: #ffb84d; }
.uc-status-won { background: rgba(46,204,113,0.15); color: var(--good); }
.uc-status-dropped { background: rgba(255,92,92,0.15); color: var(--bad); }
.uc-expand-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.uc-card-body { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.uc-questions { display: flex; flex-direction: column; gap: 8px; }
.uc-q-list { display: flex; flex-direction: column; gap: 6px; }
.uc-q-row { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; }
.uc-q-text { flex: 1; min-width: 0; font-size: 12.5px; }
.uc-q-answer { flex: 1.2; min-width: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12.5px; padding: 5px 8px; resize: vertical; font-family: inherit; }
.uc-q-answer:focus { outline: none; border-color: var(--accent); }
.uc-q-add-row { display: flex; gap: 6px; flex-wrap: wrap; }
.uc-q-add-row input[type="text"], .uc-q-add-row select { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12.5px; padding: 6px 8px; }
.uc-q-add-row input[type="text"] { flex: 1; min-width: 160px; }
.uc-card-actions { display: flex; align-items: center; gap: 8px; }
.uc-rationale { margin: 0; }
.uc-inline-form { border: 1px dashed var(--border); border-radius: 8px; padding: 12px; margin-top: 4px; display: flex; flex-direction: column; gap: 10px; }

.poc-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.pc-row { flex-wrap: wrap; }
.pc-status-select { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12px; padding: 5px 6px; }
.pc-result-notes { flex: 1.4; min-width: 140px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-size: 12.5px; padding: 5px 8px; }
.pc-del-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 15px; padding: 0 4px; }
.pc-del-btn:hover { color: var(--bad); }

/* ─── Messaging ──────────────────────────────────────────────────────────── */
.messages-btn { position: relative; }
.messages-unread-badge {
  position: absolute; top: -6px; right: -6px; background: var(--bad, #ff5c5c); color: #fff;
  font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px; line-height: 1;
}

.messages-overlay { position: fixed; inset: 0; background: rgba(8,14,24,0.55); backdrop-filter: blur(2px); z-index: 1150; display: none; }
.messages-overlay.open { display: block; }

.messages-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(780px, 96vw);
  background: var(--bg); border-left: 1px solid var(--border); z-index: 1160;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.24s cubic-bezier(.2,.8,.2,1), opacity 0.2s ease;
  box-shadow: -24px 0 70px rgba(0,0,0,0.45);
  border-radius: 0; opacity: 0;
  --msg-font-family: inherit; --msg-font-size: 13.5px; --msg-mine-bg: var(--accent);
}
.messages-panel.open { transform: translateX(0); opacity: 1; }
/* "Popped" = detached floating window: no docked slide-in, draggable/resizable anywhere on screen */
.messages-panel.is-popped {
  top: 80px; right: 40px; bottom: auto; left: auto; height: min(640px, 80vh);
  border-radius: 16px; border: 1px solid var(--border); transform: none;
  min-width: 380px; min-height: 380px;
}
.messages-panel.is-popped.open { transform: none; }

.messages-panel-header {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--panel-2), var(--bg)); cursor: default; user-select: none;
  border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
}
.messages-panel.is-popped .messages-panel-header { cursor: grab; }
.messages-panel.is-popped .messages-panel-header:active { cursor: grabbing; }
.messages-drag-grip { color: var(--text-dim); font-size: 12px; letter-spacing: -2px; display: none; }
.messages-panel.is-popped .messages-drag-grip { display: inline; }
.messages-panel-header h3 { margin: 0; flex: 1; font-size: 15px; }
.messages-panel-header-btns { display: flex; align-items: center; gap: 4px; }
.rp-icon-btn {
  background: none; border: 1px solid transparent; color: var(--text-dim); font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 4px 8px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
}
.rp-icon-btn:hover { background: var(--panel-2); color: var(--text); border-color: var(--border); }
.messages-panel.is-popped #messagesPopoutBtn { color: var(--accent); }

.messages-font-popover {
  position: absolute; top: 52px; right: 56px; z-index: 20; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 10px;
  min-width: 220px;
}
.messages-font-popover[hidden] { display: none; }
.messages-font-popover label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); font-weight: 600; }
.messages-font-popover select { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 8px; font-size: 13px; }
.msg-pref-swatches { display: flex; gap: 6px; }
.msg-color-swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.msg-color-swatch.is-active { border-color: var(--text); box-shadow: 0 0 0 2px var(--panel); }

.messages-panel-body { flex: 1; display: flex; min-height: 0; position: relative; }

.messages-resize-grip {
  position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; display: none;
  background: linear-gradient(135deg, transparent 50%, var(--border) 50%, var(--border) 60%, transparent 60%, transparent 70%, var(--border) 70%, var(--border) 80%, transparent 80%);
}
.messages-panel.is-popped .messages-resize-grip { display: block; }

.messages-convo-list { width: 270px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 12px; gap: 10px; overflow-y: auto; background: var(--panel-2); }
.messages-new-btn { width: 100%; border-radius: 999px; }
.messages-convo-list-inner { display: flex; flex-direction: column; gap: 4px; }
.messages-convo-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  cursor: pointer; border: 1px solid transparent; transition: background 0.12s ease;
}
.messages-convo-item:hover { background: var(--panel); }
.messages-convo-item.active { background: var(--panel); border-color: var(--accent); }
.messages-convo-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.messages-convo-item-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.messages-convo-name { font-size: 13px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-convo-preview { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.messages-convo-unread-dot { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

.msg-avatar {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-right: 8px;
}
.messages-thread-header-name .msg-avatar { width: 26px; height: 26px; font-size: 10.5px; margin-right: 8px; vertical-align: middle; }
.messages-convo-item .msg-avatar { margin-right: 0; }

.messages-thread { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.messages-thread .empty-state { margin: auto; color: var(--text-dim); }
.messages-thread-list { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; font-family: var(--msg-font-family); font-size: var(--msg-font-size); }
.message-bubble-row { display: flex; align-items: flex-end; max-width: 76%; }
.message-bubble-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.message-bubble-col { display: flex; flex-direction: column; min-width: 0; }
.message-bubble-row.mine .message-bubble-col { align-items: flex-end; }
.message-bubble-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.message-bubble {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 16px; padding: 9px 14px;
  font-size: inherit; font-family: inherit; color: var(--text); white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.message-bubble-row.mine .message-bubble { background: var(--msg-mine-bg); color: #fff; border-color: transparent; }
.message-attachment-img { max-width: 260px; border-radius: 10px; margin-top: 6px; display: block; }
.message-attachment-pdf { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.message-bubble-actions { display: flex; gap: 8px; margin-top: 3px; }
.message-action-btn { background: none; border: none; color: var(--text-dim); font-size: 11px; cursor: pointer; padding: 0; }
.message-action-btn:hover { color: var(--accent); text-decoration: underline; }
.message-edit-textarea { width: 220px; min-height: 60px; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 8px; font-size: 13px; font-family: inherit; }

.messages-thread-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.messages-thread-header-name { font-weight: 600; display: flex; align-items: center; }
.messages-thread-header-actions { display: flex; gap: 6px; align-items: center; }

.messages-emoji-popover {
  position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; z-index: 15; background: var(--panel);
  border: 1px solid var(--border); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; width: 260px;
}
.messages-emoji-popover[hidden] { display: none; }
.emoji-pick-btn { background: none; border: none; font-size: 18px; cursor: pointer; padding: 4px; border-radius: 6px; line-height: 1; }
.emoji-pick-btn:hover { background: var(--panel-2); }
.messages-compose { position: relative; }

.manage-member-list { display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; margin-bottom: 4px; }
.manage-member-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }

.messages-compose { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--panel-2); }
.messages-compose-ai-row { display: flex; gap: 6px; flex-wrap: wrap; }
.messages-compose-input-row { display: flex; gap: 8px; align-items: flex-end; }
.messages-compose-textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 140px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); padding: 10px 16px; font-family: var(--msg-font-family); font-size: var(--msg-font-size);
}
.messages-compose-input-row .btn-primary#messagesSendBtn { border-radius: 999px; padding: 10px 20px; }
.messages-ai-flyout { border: 1px solid var(--border); background: var(--panel-2); border-radius: 8px; padding: 10px; display: flex; gap: 8px; align-items: center; }
.messages-ai-flyout input { flex: 1; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 8px; font-size: 13px; }
.messages-attachment-preview { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; }
.messages-attachment-preview img { max-height: 80px; border-radius: 6px; }

/* ─── File uploads (conversation-scoped, session-only) ────────────────────── */
.messages-file-references { padding: 8px 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 8px; font-size: 12px; }
.file-refs-header { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.file-refs-list { display: flex; flex-direction: column; gap: 4px; }
.file-ref-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; background: var(--panel-2); border-radius: 6px; }
.file-ref-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.file-ref-remove { flex: none; padding: 0; width: 20px; height: 20px; border: 0; background: transparent; color: var(--text-dim); cursor: pointer; font-weight: bold; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.file-ref-remove:hover { color: var(--text); background: color-mix(in srgb, var(--text) 10%, transparent); }

/* ─── Voice/video calling ──────────────────────────────────────────────────── */
.incoming-call-banner {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1400;
  background: var(--panel); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,0.45);
  padding: 14px 18px; display: flex; align-items: center; gap: 16px; min-width: 340px;
}
.incoming-call-banner[hidden] { display: none; }
.incoming-call-info { display: flex; align-items: center; gap: 10px; }
.incoming-call-avatar {
  width: 38px; height: 38px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.incoming-call-name { font-weight: 700; font-size: 14px; }
.incoming-call-type { font-size: 12px; color: var(--text-dim); }
.incoming-call-actions { display: flex; gap: 8px; margin-left: auto; }

.active-call-overlay {
  position: fixed; inset: 0; z-index: 1500; background: rgba(6,10,18,0.92);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.active-call-overlay[hidden] { display: none; }
.active-call-status { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.active-call-video-wrap { position: relative; width: min(720px, 90vw); aspect-ratio: 16/9; background: #0a1420; border-radius: 16px; overflow: hidden; }
.call-remote-video { width: 100%; height: 100%; object-fit: cover; background: #0a1420; }
.call-local-video { position: absolute; right: 14px; bottom: 14px; width: 130px; height: 90px; object-fit: cover; border-radius: 10px; border: 2px solid rgba(255,255,255,0.25); background: #0a1420; }
.active-call-controls { display: flex; gap: 14px; }
.call-control-btn {
  width: 52px; height: 52px; border-radius: 50%; border: none; background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.15s ease;
}
.call-control-btn:hover { background: rgba(255,255,255,0.22); }
.call-control-btn.is-off { background: rgba(255,255,255,0.3); color: #ffb3b3; }
.call-hangup-btn { background: #e5484d; }
.call-hangup-btn:hover { background: #c93c40; }
.call-hangup-btn svg { transform: rotate(135deg); }

.platform-admin-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; border: none; background: none;
  color: var(--accent-2); cursor: pointer; flex-shrink: 0; transition: background .15s ease, color .15s ease;
}
.platform-admin-btn:hover { background: rgba(106,91,255,0.14); color: var(--accent-2); }
.platform-admin-btn svg { width: 18px; height: 18px; }

/* ─── Prowler Working overlay — shown during AI generative/research work ─── */
.prowler-working-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(6, 9, 16, 0.72);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: prowlerFadeIn 0.18s ease;
}
.prowler-working-overlay.hidden { display: none; }
@keyframes prowlerFadeIn { from { opacity: 0; } to { opacity: 1; } }
.prowler-working-card {
  width: min(360px, 88vw);
  background: var(--panel, #141b2c);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(20,150,255,0.06);
}
.prowler-working-paw {
  font-size: 34px; line-height: 1;
  animation: prowlerPawBounce 1.1s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(20,150,255,0.35));
}
@keyframes prowlerPawBounce {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-6px) rotate(8deg); }
}
.prowler-working-title {
  margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--text);
  letter-spacing: 0.01em;
}
.prowler-working-status {
  margin-top: 6px; font-size: 12.5px; color: var(--text-dim);
  min-height: 16px;
}
.prowler-working-bar {
  margin-top: 16px; height: 4px; border-radius: 4px; overflow: hidden;
  background: rgba(255,255,255,0.08);
}
.prowler-working-bar-fill {
  height: 100%; width: 40%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: prowlerBarSlide 1.3s ease-in-out infinite;
}
@keyframes prowlerBarSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(80%); }
  100% { transform: translateX(220%); }
}
.prowler-working-joke {
  margin-top: 16px; font-size: 12px; font-style: italic; color: var(--accent);
  min-height: 32px; opacity: 1; transition: opacity 0.2s ease;
}
.prowler-working-dismiss {
  margin-top: 16px; background: none; border: none; color: var(--text-dim);
  font-size: 11px; text-decoration: underline; cursor: pointer; padding: 2px;
}
.prowler-working-dismiss:hover { color: var(--text); }

.toast-clickable { pointer-events: auto; cursor: pointer; }

/* ── Notes workspace (Feed / List / Cards) ───────────────────────────────────── */
.nt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nt-head h2 { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.nt-count { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.nt-head-actions { display: flex; align-items: center; gap: 10px; }
.nt-views { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.nt-views button { background: none; border: none; color: var(--text-dim); font-size: 12px; font-weight: 600; padding: 6px 12px; cursor: pointer; }
.nt-views button + button { border-left: 1px solid var(--border); }
.nt-views button:hover { color: var(--text); }
.nt-views button.on { background: rgba(20,150,255,0.14); color: var(--accent); }

.nt-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.nt-search { flex: 1 1 260px; min-width: 200px; position: relative; display: flex; align-items: center; }
.nt-search input {
  width: 100%; box-sizing: border-box; background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 34px 8px 32px; font-size: 13px; outline: none;
}
.nt-search input:focus { border-color: var(--accent); }
.nt-search-ico { position: absolute; left: 11px; color: var(--text-dim); font-size: 15px; pointer-events: none; }
.nt-help {
  position: absolute; right: 8px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border);
  background: none; color: var(--text-dim); font-size: 11px; cursor: pointer; padding: 0;
}
.nt-help:hover { color: var(--accent); border-color: var(--accent); }
.nt-select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: 7px 8px; border-radius: 8px; font-size: 12px; max-width: 100%;
}
.nt-clear { background: none; border: none; color: var(--accent); font-size: 12px; cursor: pointer; padding: 4px 6px; }
.nt-tips { font-size: 12px; color: var(--text-dim); background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; line-height: 1.9; }
.nt-tips code { background: rgba(127,127,127,0.15); border-radius: 4px; padding: 1px 5px; margin-right: 4px; color: var(--text); }

.nt-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.nt-chip {
  --src: var(--accent);
  background: rgba(127,127,127,0.08); border: 1px solid var(--border); color: var(--text-dim); border-radius: 20px;
  font-size: 12px; font-weight: 600; padding: 4px 12px; cursor: pointer; transition: all .15s; display: inline-flex; gap: 5px; align-items: center;
}
.nt-chip:hover { border-color: var(--src); color: var(--text); }
.nt-chip.on { background: color-mix(in srgb, var(--src) 16%, transparent); border-color: var(--src); color: var(--src); }
.nt-chip.empty:not(.on) { opacity: .45; }
.nt-chip-n { font-size: 11px; opacity: .75; }
#ntPinnedOnly.on { background: rgba(245,158,11,.16); border-color: #f59e0b; color: #f59e0b; }

.nt-body { display: block; }
.nt-body.view-feed { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .nt-body.view-feed { grid-template-columns: 1fr; } }
.nt-composer { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.nt-body.view-feed .nt-composer { order: 2; position: sticky; top: 16px; }
.nt-body.view-feed .nt-results { order: 1; }
.nt-body:not(.view-feed) .nt-composer { display: none; margin-bottom: 16px; max-width: 720px; }
.nt-body:not(.view-feed) .nt-composer.open { display: block; }
.nt-body:not(.view-feed) { display: flex; flex-direction: column; }
.nt-body:not(.view-feed) .nt-composer { order: 1; }
.nt-body:not(.view-feed) .nt-results { order: 2; }
.nt-body.view-feed #ntComposeClose { display: none; }
.nt-composer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nt-composer-head h4 { margin: 0; }
.nt-compose-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 6px; }
.nt-compose-sources { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.nt-compose-sources .nt-chip { padding: 3px 9px; font-size: 11px; }
.nt-compose-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }

.nt-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 18px 0 8px; }
.nt-group:first-child { margin-top: 0; }
.nt-group span, .nt-group-row span { font-weight: 500; opacity: .7; margin-left: 4px; }

.nt-source { font-size: 11px; font-weight: 700; color: var(--src); background: color-mix(in srgb, var(--src) 14%, transparent); border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.nt-link { font-size: 11px; font-weight: 600; border-radius: 5px; padding: 2px 7px; background: rgba(127,127,127,.14); color: var(--text-dim); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.nt-link-contact { background: rgba(34,197,94,.12); color: #22c55e; }
.nt-link-opportunity { background: rgba(139,92,246,.12); color: #8b5cf6; }
.nt-link-poc { background: rgba(20,184,166,.12); color: #14b8a6; }
.nt-link-account { background: rgba(20,150,255,.12); color: #1496ff; }
.nt-avatar { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(127,127,127,.25); font-size: 9px; font-weight: 700; color: var(--text); }
.nt-dim { color: var(--text-dim); font-size: 11px; }
.nt-pin { background: none; border: none; color: var(--text-dim); opacity: .35; font-size: 15px; cursor: pointer; padding: 0 2px; line-height: 1; }
.nt-pin:hover:not(:disabled) { opacity: .9; color: #f59e0b; }
.nt-pin.on { opacity: 1; color: #f59e0b; }
.nt-pin:disabled { cursor: default; }
.nt-outreach-btn { background: none; border: 1px solid var(--border); color: var(--text-dim); font-size: 13px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.15s; }
.nt-outreach-btn:hover { border-color: #1496ff; color: #1496ff; background: rgba(20,150,255,0.05); }
mark { background: rgba(245,158,11,.35); color: inherit; border-radius: 3px; padding: 0 1px; }

/* feed */
.nt-feed { display: flex; flex-direction: column; gap: 10px; }
.nt-feed-item { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--src, var(--border)); border-radius: 8px; padding: 12px 14px; }
.nt-feed-item.pinned { box-shadow: 0 0 0 1px rgba(245,158,11,.25); }
.nt-feed-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.nt-feed-date { font-size: 11px; color: var(--text-dim); margin-left: auto; }

/* cards */
.nt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.nt-card {
  background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--src); border-radius: 10px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; cursor: pointer; min-height: 150px; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.nt-card:hover, .nt-card:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.25); border-color: var(--src); outline: none; }
.nt-card.pinned { box-shadow: 0 0 0 1px rgba(245,158,11,.3); }
.nt-card-top { display: flex; justify-content: space-between; align-items: center; }
.nt-card-title { margin: 0; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card-img { width: 100%; max-height: 110px; object-fit: cover; border-radius: 6px; }
.nt-card-snippet { margin: 0; font-size: 12px; line-height: 1.55; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.nt-card-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); white-space: nowrap; }

/* list */
.nt-table-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.nt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nt-th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); padding: 10px 12px; border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; background: var(--panel); }
.nt-th:hover, .nt-th.sorted { color: var(--text); }
.nt-arrow { font-size: 8px; margin-left: 4px; color: var(--accent); }
.nt-row { cursor: pointer; }
.nt-row td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.nt-row:last-child td { border-bottom: none; }
.nt-row:hover, .nt-row:focus-visible { background: rgba(127,127,127,.09); outline: none; }
.nt-row.pinned { background: rgba(245,158,11,.05); }
.nt-c-pin { width: 32px; text-align: center; padding-left: 8px !important; padding-right: 0 !important; }
.nt-c-title { min-width: 240px; max-width: 480px; }
.nt-row-title { font-weight: 600; }
.nt-row-snippet { font-size: 12px; color: var(--text-dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-row-kind { font-size: 10px; color: var(--text-dim); margin-top: 2px; text-transform: uppercase; letter-spacing: .04em; }
.nt-c-author, .nt-c-date { white-space: nowrap; color: var(--text-dim); font-size: 12px; }
.nt-group-row td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); padding: 10px 12px 6px; background: rgba(127,127,127,.06); border-bottom: 1px solid var(--border); }

.nt-empty { text-align: center; padding: 56px 20px; color: var(--text-dim); }
.nt-empty-ico { font-size: 34px; margin-bottom: 6px; }
.nt-empty h3 { margin: 0 0 6px; color: var(--text); }
.nt-empty p { margin: 0 auto 14px; max-width: 380px; font-size: 13px; line-height: 1.5; }

.nt-view-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.nt-view-by { margin-left: auto; font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; }
.nt-view-content { font-size: 14px; max-height: 60vh; overflow-y: auto; }

/* ── Note tags ───────────────────────────────────────────────────────────────── */
.nt-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 2px 0 6px; }
.nt-tag { background: rgba(127,127,127,.12); border: none; color: var(--text-dim); border-radius: 10px; font-size: 11px; padding: 1px 8px; cursor: pointer; }
.nt-tag:hover { background: rgba(20,150,255,.18); color: var(--accent); }
.nt-taginput { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; background: var(--input-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border); border-radius: 7px; padding: 5px 8px; }
.nt-taginput:focus-within { border-color: var(--accent); }
.nt-taginput input { flex: 1; min-width: 90px; background: none; border: none; outline: none; color: var(--text); font-size: 12px; padding: 2px 0; }
.nt-tag-edit { background: rgba(20,150,255,.16); color: var(--accent); border-radius: 10px; font-size: 11px; padding: 1px 4px 1px 8px; display: inline-flex; align-items: center; gap: 3px; }
.nt-tag-edit button { background: none; border: none; color: inherit; cursor: pointer; font-size: 13px; line-height: 1; padding: 0 3px; }

/* ── Meeting guide ───────────────────────────────────────────────────────────── */
/* meeting guide = a large dialog (backdrop + panel) like the app's other dialogs */
.mg-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 2vh 2vw; box-sizing: border-box; }
.mg-dialog { position: relative; width: min(1700px, 96vw); height: min(94vh, 1100px); overflow-y: auto; background: var(--bg, #0d1320); border: 1px solid rgba(20,150,255,.25); border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,.6); }
@media (max-width: 700px) { .mg-overlay { padding: 0; } .mg-dialog { width: 100vw; height: 100vh; border-radius: 0; } }
.mg-x { background: none; border: none; color: var(--text-dim); font-size: 26px; cursor: pointer; line-height: 1; padding: 0 6px; }
.mg-x:hover { color: var(--text); }
.mg-input { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; font-family: inherit; }
.mg-input:focus, .mg-answer:focus, .mg-notes:focus { border-color: var(--accent); }
.mg-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin: 14px 0 6px; }

.mg-setup { max-width: 980px; margin: 0 auto; padding: 24px 20px 60px; }
.mg-bar { display: flex; justify-content: space-between; align-items: center; }
.mg-bar h2 { margin: 0; }
.mg-lead { color: var(--text-dim); font-size: 14px; line-height: 1.6; max-width: 680px; }
.mg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
@media (max-width: 800px) { .mg-grid { grid-template-columns: 1fr; } }
.mg-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.mg-card .mg-label:first-child { margin-top: 0; }
.mg-attendees { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.mg-check { font-size: 13px; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.mg-gaps { display: flex; flex-direction: column; gap: 6px; }
.mg-gap { font-size: 12.5px; line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; }
.mg-sev { flex: 0 0 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: #64748b; }
.sev3 .mg-sev { background: #ef4444; } .sev2 .mg-sev { background: #f59e0b; } .sev1 .mg-sev { background: #64748b; }
.mg-drafts { display: flex; flex-direction: column; gap: 8px; }
.mg-draft { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; }

.mg-live { min-height: 100%; display: flex; flex-direction: column; }
.mg-dialog .mg-topbar { border-radius: 14px 14px 0 0; }
.mg-topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mg-title-in { flex: 1 1 240px; min-width: 160px; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text); font-size: 17px; font-weight: 700; padding: 4px 8px; outline: none; }
.mg-title-in:hover, .mg-title-in:focus { border-color: var(--border); }
.mg-prog { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.mg-bar-track { width: 130px; height: 7px; border-radius: 4px; background: rgba(127,127,127,.25); overflow: hidden; }
.mg-bar-fill { height: 100%; width: 0; background: linear-gradient(90deg, #1496ff, #22c55e); transition: width .3s; }
.mg-timer { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; color: var(--text-dim); }
.mg-saved { min-width: 70px; }
.mg-refine { position: absolute; top: 100%; right: 20px; z-index: 6; width: min(520px, 92vw); margin-top: 6px; padding: 14px; background: var(--panel); border: 1px solid var(--accent, #1496ff); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.45); }
.mg-refine .mg-input { width: 100%; resize: vertical; }
.mg-refine-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mg-refine-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.mg-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 22px; padding: 18px 20px 40px; max-width: none; margin: 0 auto; width: 100%; box-sizing: border-box; align-items: start; }
@media (max-width: 900px) { .mg-layout { grid-template-columns: 1fr; } .mg-rail { position: static !important; } }
.mg-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.mg-rail-card { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.mg-rail-card p { margin: 0; font-size: 13px; line-height: 1.5; }
.mg-rail-card ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.mg-rail-card li { margin-bottom: 4px; }
.mg-rail-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 8px; }
.mg-nav { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.mg-nav a { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 13px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.mg-nav a:last-child { border-bottom: none; }
.mg-nav a:hover { background: rgba(127,127,127,.1); }
.mg-nav-n { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mg-nav-n.full { color: #22c55e; font-weight: 700; }

.mg-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mg-sec { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; scroll-margin-top: 80px; }
.mg-sec.complete { border-color: rgba(34,197,94,.5); }
.mg-sec-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.mg-sec-head h3 { margin: 0; font-size: 15px; }
.mg-sec-why { margin: 4px 0 0; font-size: 12px; color: var(--text-dim); line-height: 1.45; }
.mg-q { border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: rgba(127,127,127,.04); transition: border-color .2s, background .2s; }
.mg-q.hard { border-left-color: #f59e0b; }
.mg-q.answered { border-left-color: #22c55e; background: rgba(34,197,94,.05); }
.mg-q.skipped { opacity: .55; }
.mg-q.fresh { animation: mgFresh 1.4s ease-out; }
@keyframes mgFresh { from { background: rgba(20,150,255,.25); } to { background: rgba(127,127,127,.04); } }
.mg-q-head { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.mg-q-text { flex: 1 1 280px; min-width: 0; resize: none; overflow: hidden; background: none; border: 1px solid transparent; border-radius: 5px; color: var(--text); font-size: 13.5px; font-weight: 600; line-height: 1.45; padding: 2px 4px; font-family: inherit; outline: none; }
.mg-q-text:hover, .mg-q-text:focus { border-color: var(--border); }
.mg-q-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mg-badge { font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 7px; text-transform: uppercase; letter-spacing: .03em; }
.mg-badge.hard { background: rgba(245,158,11,.16); color: #f59e0b; }
.mg-badge.gap { background: rgba(239,68,68,.14); color: #ef4444; }
.mg-badge.link { background: rgba(20,150,255,.14); color: #1496ff; text-transform: none; }
.mg-mini { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 6px; font-size: 11px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.mg-mini:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.mg-q-why { font-size: 11.5px; color: var(--text-dim); margin: 2px 4px 6px; font-style: italic; }
.mg-answer, .mg-notes { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 8px 10px; font-size: 13px; line-height: 1.5; font-family: inherit; resize: vertical; outline: none; margin-top: 4px; min-height: 44px; }
.mg-notes { margin-top: 10px; }
.mg-add { margin-top: 4px; }

/* ── Meeting types ───────────────────────────────────────────────────────────── */
.mg-typewrap { margin-top: 18px; }
.mg-types { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-type { position: relative; display: inline-flex; align-items: center; gap: 7px; background: rgba(127,127,127,.06); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; }
.mg-type:hover { border-color: var(--accent); }
.mg-type.sel { border-color: #1496ff; background: rgba(20,150,255,.14); box-shadow: 0 0 0 1px #1496ff inset; }
.mg-type:focus-visible { outline: 2px solid #1496ff; outline-offset: 2px; }
.mg-type-ico { font-size: 16px; line-height: 1; }
.mg-type-sug { position: absolute; top: -8px; right: 8px; background: #22c55e; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 8px; padding: 1px 6px; }
.mg-type-info { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.mg-type-tag { margin: 0 0 10px; font-size: 13.5px; }
.mg-type-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 800px) { .mg-type-cols { grid-template-columns: 1fr; } }
.mg-type-cols p { margin: 0; font-size: 12.5px; line-height: 1.5; }
.mg-type-cols ul { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.mg-gap > span:nth-child(2) { flex: 1 1 auto; }
.mg-mode { flex: 0 0 auto; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-radius: 8px; padding: 1px 7px; background: rgba(20,150,255,.14); color: #1496ff; align-self: flex-start; }
.mg-gap.mode-listen .mg-mode { background: rgba(168,85,247,.16); color: #a855f7; }
.mg-gap.mode-park { opacity: .55; }
.mg-gap.mode-park .mg-mode { background: rgba(127,127,127,.2); color: var(--text-dim); }
.mg-plan-type { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 10px; }
.mg-plan .mg-rail-h { margin-top: 10px; margin-bottom: 4px; }
.mg-agenda { margin: 0; padding-left: 18px; font-size: 12.5px; line-height: 1.5; }
.mg-agenda li { margin-bottom: 4px; }
.mg-mins { display: inline-block; min-width: 28px; margin-right: 6px; font-size: 11px; font-weight: 700; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mg-q.kind-move { border-left-color: #1496ff; }
.mg-q.kind-listen { border-left-color: #a855f7; }
.mg-q.answered { border-left-color: #22c55e; }
.mg-badge.move { background: rgba(20,150,255,.14); color: #1496ff; }
.mg-badge.listen { background: rgba(168,85,247,.16); color: #a855f7; }
.mg-outcomes .mg-oc { margin-bottom: 12px; }
.mg-outcomes .mg-oc:last-child { margin-bottom: 0; }
.mg-oc-l { font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.mg-oc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-chip { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 14px; font-size: 11.5px; padding: 3px 10px; cursor: pointer; font-family: inherit; }
.mg-chip:hover { color: var(--text); border-color: var(--accent); }
.mg-chip.sel { background: rgba(20,150,255,.16); border-color: #1496ff; color: #1496ff; font-weight: 600; }
.mg-oc-t { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 6px 8px; font-size: 12.5px; line-height: 1.45; font-family: inherit; resize: vertical; outline: none; min-height: 40px; }
.mt-chip.type { background: rgba(20,150,255,.14); color: #1496ff; }
.mt-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mt-step { font-size: 12px; font-weight: 600; border: 1px solid var(--border); border-radius: 14px; padding: 3px 10px; }
.mt-step.done { border-color: rgba(34,197,94,.5); }
.mt-step.draft { border-style: dashed; color: var(--text-dim); }
.mt-arrow { color: var(--text-dim); }
.mt-bytype { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12px; }
.mt-journey { margin-bottom: 16px; }

/* ── Note dialogs (new / edit / view) ────────────────────────────────────────── */
.modal-panel.nt-dialog { width: min(960px, 95vw) !important; height: min(88vh, 860px); max-height: 92vh; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.nt-dialog .modal-body { padding: 16px 20px; overflow-y: auto; }
.nt-dialog .note-rich-input { min-height: 42vh; max-height: none; font-size: 14px; line-height: 1.65; padding: 14px 16px; }
.nt-dialog .mic-textarea-wrap { flex: none; }
.nt-dialog-meta { display: flex; gap: 24px; flex-wrap: wrap; }
.nt-dialog-meta .nt-compose-row { margin-bottom: 0; }
.nt-ai-input { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 9px 12px; font-size: 13px; line-height: 1.5; font-family: inherit; resize: vertical; outline: none; min-height: 52px; }
.nt-ai-input:focus { border-color: var(--accent); }
.note-ai-row { align-items: flex-start; }
.note-ai-row .mic-textarea-wrap { flex: 1; }
.nt-ai-btns { display: flex; flex-direction: column; gap: 6px; }

/* formatting toolbar */
.ne-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 2px; padding: 6px 10px; border: 1px solid var(--border); border-bottom: none; border-radius: 8px 8px 0 0; background: var(--panel); position: sticky; top: -16px; z-index: 6; }
.ne-toolbar + .mic-textarea-wrap .note-rich-input, .ne-toolbar + .note-rich-input { border-top-left-radius: 0; border-top-right-radius: 0; }
.ne-group { display: inline-flex; align-items: center; gap: 2px; padding-right: 8px; margin-right: 6px; border-right: 1px solid var(--border); }
.ne-group.ne-ai { margin-left: auto; margin-right: 0; padding-right: 0; border-right: none; gap: 8px; }
.ne-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 30px; height: 30px; padding: 0 7px; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text); cursor: pointer; font-size: 13px; font-family: inherit; }
.ne-btn:hover:not(:disabled) { background: rgba(127,127,127,.22); }
.ne-btn:disabled { opacity: .35; cursor: default; }
.ne-btn.on, .ne-btn.open, .ne-split.open .ne-btn, .ne-sizebox.open .ne-btn { background: rgba(20,150,255,.2); color: var(--accent); border-color: rgba(20,150,255,.45); }
.ne-wide { padding: 0 9px; }
.ne-label { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ne-caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .7; }
.ne-split { position: relative; display: inline-flex; }
.ne-split > .ne-btn:first-child { padding: 0 7px; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ne-split > .ne-sp { min-width: 16px; padding: 0 3px; border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid var(--border); }
.ne-bar { position: absolute; left: 6px; right: 6px; bottom: 3px; height: 3px; border-radius: 2px; background: transparent; }
.ne-A { font-weight: 700; font-size: 15px; line-height: 1; }
.ne-A.sm { font-size: 11px; } .ne-A.lg { font-size: 17px; }
.ne-pm { font-size: 12px; font-weight: 700; }
.ne-sizebox { display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--border); border-radius: 6px; background: var(--input-bg, rgba(255,255,255,.05)); margin: 0 2px; }
.ne-sizebox:focus-within { border-color: var(--accent); }
.ne-sizein { width: 34px; height: 100%; border: none; background: none; color: var(--text); text-align: center; font-size: 13px; font-weight: 700; outline: none; padding: 0; font-family: inherit; }
.ne-sizebox .ne-sp { height: 28px; min-width: 20px; padding: 0 4px; border: none; border-left: 1px solid var(--border); border-radius: 0 5px 5px 0; }
.ne-aibtn { padding: 0 12px; font-weight: 600; background: linear-gradient(135deg, rgba(139,92,246,.28), rgba(20,150,255,.28)); border-color: rgba(139,92,246,.55); }
.ne-aibtn:hover:not(:disabled) { background: linear-gradient(135deg, rgba(139,92,246,.42), rgba(20,150,255,.42)); }
.ne-status { font-size: 11.5px; color: var(--text-dim); max-width: 240px; }

/* pop-out menus (appended to <body>, never clipped by the dialog) */
.ne-pop { position: fixed; z-index: 1400; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.5); padding: 6px; }
.ne-menu { display: flex; flex-direction: column; gap: 2px; min-width: 170px; }
.ne-item { display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: none; color: var(--text); padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; font-family: inherit; }
.ne-item:hover { background: rgba(127,127,127,.22); }
.ne-item.on { background: rgba(20,150,255,.2); color: var(--accent); }
.ne-sizes { min-width: 210px; max-height: 360px; overflow-y: auto; }
.ne-szn { width: 26px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.ne-szp { line-height: 1.25; }
.ne-reset { color: var(--text-dim); }
.ne-sep { height: 1px; background: var(--border); margin: 3px 0; }
.ne-blk-h2 { font-size: 20px; font-weight: 700; } .ne-blk-h3 { font-size: 16px; font-weight: 700; }
.ne-blk-blockquote { border-left: 3px solid var(--border); padding-left: 8px; font-style: italic; }
.ne-swatches { display: flex; flex-wrap: wrap; gap: 8px; width: 178px; padding: 10px; }
.ne-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; color: var(--text-dim); font-size: 13px; }
.ne-swatch.on { box-shadow: 0 0 0 2px var(--accent); }
.ne-swatch:hover { transform: scale(1.12); }
.ne-swatch.none { background: none; }

/* emoji library */
.ne-emoji-panel { width: 400px; max-width: 94vw; padding: 0; overflow: hidden; }
.ne-em-head { padding: 10px 10px 6px; }
.ne-em-search { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,.05)); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; }
.ne-em-search:focus { border-color: var(--accent); }
.ne-em-tabs { display: flex; padding: 0 6px; border-bottom: 1px solid var(--border); }
.ne-em-tab { flex: 1; background: none; border: none; border-bottom: 2px solid transparent; font-size: 18px; padding: 6px 0; cursor: pointer; opacity: .55; }
.ne-em-tab:hover { opacity: .9; } .ne-em-tab.on { opacity: 1; border-bottom-color: var(--accent); }
.ne-em-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); padding: 8px 12px 2px; }
.ne-em-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 6px 10px 10px; height: 236px; overflow-y: auto; align-content: start; }
.ne-em { background: none; border: none; border-radius: 6px; font-size: 24px; line-height: 1.2; padding: 4px 0; cursor: pointer; }
.ne-em:hover { background: rgba(127,127,127,.28); transform: scale(1.15); }
.ne-em-none { grid-column: 1 / -1; color: var(--text-dim); font-size: 12px; padding: 12px 4px; }
.ne-em-foot { font-size: 11px; color: var(--text-dim); padding: 7px 12px; border-top: 1px solid var(--border); }

/* AI panel inside the note dialogs (reuses the app's "Refine with AI" look) */
.nt-refine { margin-top: 4px; flex-shrink: 0; }
.nt-dialog .refine-controls select { min-width: 240px; }

/* dialogs: twice as wide as before */
.modal-panel.nt-dialog { width: min(1920px, 96vw) !important; }
.modal-panel.nt-dialog.nt-view-panel { width: min(960px, 95vw) !important; }
.modal-note-content h2, .note-rich-input h2 { font-size: 22px; }
.modal-note-content h3, .note-rich-input h3 { font-size: 17px; }

/* stored formatting (class based so it survives AI clean-up) */
.hl-yellow { background: rgba(253,224,71,.5); } .hl-green { background: rgba(134,239,172,.45); } .hl-blue { background: rgba(147,197,253,.45); }
.hl-pink { background: rgba(249,168,212,.5); } .hl-orange { background: rgba(253,186,116,.5); }
mark[class^="hl-"] { color: inherit; border-radius: 3px; padding: 0 2px; }
.tc-red { color: #ef4444; } .tc-orange { color: #f97316; } .tc-green { color: #22c55e; } .tc-blue { color: #3b82f6; } .tc-purple { color: #a855f7; } .tc-gray { color: #94a3b8; }
/* numeric font sizes written by the editor (fs-<px>) */
.fs-8 { font-size: 8px; line-height: 1.3; }
.fs-9 { font-size: 9px; line-height: 1.3; }
.fs-10 { font-size: 10px; line-height: 1.3; }
.fs-11 { font-size: 11px; line-height: 1.3; }
.fs-12 { font-size: 12px; line-height: 1.3; }
.fs-13 { font-size: 13px; line-height: 1.3; }
.fs-14 { font-size: 14px; line-height: 1.3; }
.fs-15 { font-size: 15px; line-height: 1.3; }
.fs-16 { font-size: 16px; line-height: 1.3; }
.fs-17 { font-size: 17px; line-height: 1.3; }
.fs-18 { font-size: 18px; line-height: 1.3; }
.fs-19 { font-size: 19px; line-height: 1.3; }
.fs-20 { font-size: 20px; line-height: 1.3; }
.fs-21 { font-size: 21px; line-height: 1.3; }
.fs-22 { font-size: 22px; line-height: 1.3; }
.fs-23 { font-size: 23px; line-height: 1.3; }
.fs-24 { font-size: 24px; line-height: 1.3; }
.fs-25 { font-size: 25px; line-height: 1.3; }
.fs-26 { font-size: 26px; line-height: 1.3; }
.fs-27 { font-size: 27px; line-height: 1.3; }
.fs-28 { font-size: 28px; line-height: 1.3; }
.fs-29 { font-size: 29px; line-height: 1.3; }
.fs-30 { font-size: 30px; line-height: 1.3; }
.fs-31 { font-size: 31px; line-height: 1.3; }
.fs-32 { font-size: 32px; line-height: 1.3; }
.fs-33 { font-size: 33px; line-height: 1.3; }
.fs-34 { font-size: 34px; line-height: 1.3; }
.fs-35 { font-size: 35px; line-height: 1.3; }
.fs-36 { font-size: 36px; line-height: 1.3; }
.fs-37 { font-size: 37px; line-height: 1.3; }
.fs-38 { font-size: 38px; line-height: 1.3; }
.fs-39 { font-size: 39px; line-height: 1.3; }
.fs-40 { font-size: 40px; line-height: 1.3; }
.fs-41 { font-size: 41px; line-height: 1.3; }
.fs-42 { font-size: 42px; line-height: 1.3; }
.fs-43 { font-size: 43px; line-height: 1.3; }
.fs-44 { font-size: 44px; line-height: 1.3; }
.fs-45 { font-size: 45px; line-height: 1.3; }
.fs-46 { font-size: 46px; line-height: 1.3; }
.fs-47 { font-size: 47px; line-height: 1.3; }
.fs-48 { font-size: 48px; line-height: 1.3; }
.fs-49 { font-size: 49px; line-height: 1.3; }
.fs-50 { font-size: 50px; line-height: 1.3; }
.fs-51 { font-size: 51px; line-height: 1.3; }
.fs-52 { font-size: 52px; line-height: 1.3; }
.fs-53 { font-size: 53px; line-height: 1.3; }
.fs-54 { font-size: 54px; line-height: 1.3; }
.fs-55 { font-size: 55px; line-height: 1.3; }
.fs-56 { font-size: 56px; line-height: 1.3; }
.fs-57 { font-size: 57px; line-height: 1.3; }
.fs-58 { font-size: 58px; line-height: 1.3; }
.fs-59 { font-size: 59px; line-height: 1.3; }
.fs-60 { font-size: 60px; line-height: 1.3; }
.fs-61 { font-size: 61px; line-height: 1.3; }
.fs-62 { font-size: 62px; line-height: 1.3; }
.fs-63 { font-size: 63px; line-height: 1.3; }
.fs-64 { font-size: 64px; line-height: 1.3; }
.fs-65 { font-size: 65px; line-height: 1.3; }
.fs-66 { font-size: 66px; line-height: 1.3; }
.fs-67 { font-size: 67px; line-height: 1.3; }
.fs-68 { font-size: 68px; line-height: 1.3; }
.fs-69 { font-size: 69px; line-height: 1.3; }
.fs-70 { font-size: 70px; line-height: 1.3; }
.fs-71 { font-size: 71px; line-height: 1.3; }
.fs-72 { font-size: 72px; line-height: 1.3; }
.fs-sm { font-size: .85em; } .fs-lg { font-size: 1.25em; } .fs-xl { font-size: 1.6em; line-height: 1.3; }

/* contact / opportunity multi-select filter */
.nt-ms { position: relative; }
.nt-ms-btn { cursor: pointer; text-align: left; min-width: 150px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ms-btn.active { border-color: var(--accent); color: var(--accent); }
.nt-ms-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 40; width: 280px; max-height: 340px; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 6px; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.nt-ms-search { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,.05)); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 6px 8px; font-size: 12px; margin-bottom: 4px; outline: none; }
.nt-ms-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.nt-ms-row:hover { background: rgba(127,127,127,.14); }
.nt-ms-row span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-ms-row em { font-style: normal; font-size: 11px; color: var(--text-dim); }
.nt-ms-row.empty { opacity: .6; }
.nt-ms-all { font-weight: 700; border-bottom: 1px solid var(--border); border-radius: 6px 6px 0 0; margin-bottom: 4px; }

/* feed now spans the full width (composer moved into a dialog) */
.nt-body.view-feed { display: block; }

/* ── Meetings tab ────────────────────────────────────────────────────────────── */
.nt-views button:disabled { opacity: .4; cursor: default; }
.mt-chip { display: inline-block; font-size: 10.5px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.mt-chip.done, .mt-chip.good { background: rgba(34,197,94,.16); color: #22c55e; }
.mt-chip.draft, .mt-chip.warn { background: rgba(245,158,11,.16); color: #f59e0b; }
.mt-chip.bad { background: rgba(239,68,68,.16); color: #ef4444; }
.mt-table .mt-prog { min-width: 150px; }
.mt-actions { white-space: nowrap; text-align: right; }
.mt-actions .mg-mini { margin-left: 4px; }
.mt-bar { height: 7px; border-radius: 4px; background: rgba(127,127,127,.25); overflow: hidden; margin-bottom: 3px; }
.mt-bar span { display: block; height: 100%; border-radius: 4px; background: #22c55e; }
.mt-bar.warn span { background: #f59e0b; } .mt-bar.bad span { background: #ef4444; }

.mt-sec { margin-bottom: 16px; }
.mt-sec h4 { margin: 0 0 6px; font-size: 13px; color: var(--accent); }
.mt-qa { padding: 7px 0 7px 12px; border-left: 3px solid #22c55e; margin-bottom: 6px; }
.mt-qa.open { border-left-color: #f59e0b; opacity: .85; }
.mt-q { font-weight: 600; font-size: 13px; }
.mt-a { font-size: 13px; line-height: 1.55; margin-top: 2px; }

.mt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mt-tile { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.mt-tile-v { font-size: 26px; font-weight: 700; }
.mt-tile-l { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.mt-tile.good .mt-tile-v { color: #22c55e; } .mt-tile.warn .mt-tile-v { color: #f59e0b; } .mt-tile.bad .mt-tile-v { color: #ef4444; }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; margin-bottom: 14px; }
.mt-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.mt-card h4 { margin: 0 0 12px; font-size: 13px; }
.mt-cov { display: grid; grid-template-columns: 200px 1fr 90px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 12.5px; }
.mt-cov .mt-bar { margin: 0; }
.mt-cov-v { color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; font-size: 11.5px; }
.mt-trend { display: flex; align-items: flex-end; gap: 8px; height: 150px; }
.mt-trend-col { flex: 1; min-width: 26px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.mt-trend-bar { width: 100%; max-width: 38px; border-radius: 4px 4px 0 0; background: #22c55e; }
.mt-trend-bar.warn { background: #f59e0b; } .mt-trend-bar.bad { background: #ef4444; }
.mt-trend-v { font-size: 11px; font-weight: 700; } .mt-trend-d { font-size: 10px; color: var(--text-dim); }
.mt-rec { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.mt-rec:last-child { border-bottom: none; }
.mt-ai-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.mt-ai-head h4 { margin: 0; }
.mt-headline { font-size: 15px; font-weight: 600; margin: 0 0 12px; line-height: 1.45; }
.mt-ai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.mt-ai-col h5 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.mt-ai-col ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.55; }
.mt-ai-col li { margin-bottom: 5px; }
.mt-ai-col.risk h5 { color: #ef4444; } .mt-ai-col.next h5 { color: #22c55e; }

.mg-date { background: var(--input-bg, rgba(255,255,255,.05)); border: 1px solid var(--border); color: var(--text); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-family: inherit; }
.mg-badge.carry { background: rgba(139,92,246,.16); color: #a78bfa; text-transform: none; }

/* paragraph alignment written by the note editor */
.ta-center { text-align: center; } .ta-right { text-align: right; } .ta-justify { text-align: justify; }
ul.ta-center, ol.ta-center, ul.ta-right, ol.ta-right { list-style-position: inside; padding-left: 0; }

/* meeting guide: build progress */
.mg-building { max-width: 720px; }
.mg-steps { list-style: none; margin: 24px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mg-steps li { display: flex; gap: 14px; align-items: flex-start; }
.mg-steps b { display: block; font-size: 15px; }
.mg-step-d { display: block; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.mg-step-ico { flex: 0 0 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }
.mg-steps li.pending { opacity: .45; }
.mg-steps li.active .mg-step-ico { border-color: rgba(20,150,255,.25); border-top-color: var(--accent); animation: mgSpin .8s linear infinite; }
.mg-steps li.done .mg-step-ico { background: #22c55e; border-color: #22c55e; color: #fff; }
.mg-steps li.done .mg-step-ico::after { content: '✓'; }
@keyframes mgSpin { to { transform: rotate(360deg); } }
.mg-found { margin: 14px 0 0 36px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.mg-found:empty { display: none; }
.mg-build-foot { margin-top: 22px; font-size: 12px; color: var(--text-dim); }
#mgBuildTimer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }

/* ── Partner contact profile dialog (reuses the contact drawer's card layout) ── */
.pcp-panel { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1080px, 94vw); height: min(88vh, 860px); background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.55); }
.pcp-panel .contact-card-layout { height: 100%; }
.pcp-panel .field-row { margin-bottom: 12px; }
.pcp-panel .field-row input, .pcp-panel .field-row textarea { width: 100%; box-sizing: border-box; }
.pcp-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.pcp-row3 label { display: block; font-size: 12px; margin-bottom: 4px; }
.pcp-actions { display: flex; align-items: center; gap: 10px; padding: 8px 0 20px; position: sticky; bottom: 0; background: var(--panel); }
.pcp-acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: var(--panel-2); }
.pcp-link { display: flex; gap: 8px; margin-top: 14px; }
.pcp-link select { flex: 1; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 10px; }
.ptr-contact-row { display: flex; align-items: center; gap: 10px; }
.ptr-contact-avatar { flex: 0 0 auto; display: inline-flex; }
.ptr-contact-main { flex: 1; min-width: 0; }
@media (max-width: 760px) { .pcp-panel .contact-card-layout { flex-direction: column; overflow-y: auto; } .pcp-panel .cc-sidebar { width: auto; } .pcp-row3 { grid-template-columns: 1fr; } }

.pcp-photo-edit { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.pcp-photo-edit[hidden] { display: none; }
.pcp-photo-edit label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.pcp-photo-edit input { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,.05)); border: 1px solid var(--border); color: var(--text); border-radius: 7px; padding: 7px 9px; font-size: 12px; outline: none; }
.pcp-photo-edit input:focus { border-color: var(--accent); }
.pcp-photo-actions { display: flex; gap: 6px; }
.pcp-photo-edit .hint { font-size: 11px; line-height: 1.4; }
.pcp-panel .cc-photo-edit-btn { opacity: 1; }

/* ── Market Intel (vertical intelligence) ────────────────────────────────────── */
.vi-lead { max-width: 760px; margin: 0 0 14px; }
.vi-verts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 16px; }
.vi-group-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 6px; }
.vi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vi-vert { display: inline-flex; align-items: center; gap: 6px; background: rgba(127,127,127,.06); border: 1px solid var(--border); color: var(--text); border-radius: 9px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.vi-vert:hover { border-color: var(--accent); }
.vi-vert.sel { border-color: #1496ff; background: rgba(20,150,255,.14); box-shadow: 0 0 0 1px #1496ff inset; }
.vi-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .vi-grid { grid-template-columns: 1fr; } }
.vi-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
@media (max-width: 600px) { .vi-fields { grid-template-columns: 1fr; } }
.vi-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vi-label { font-size: 11.5px; font-weight: 600; }
.vi-hint { font-size: 10.5px; color: var(--text-dim); line-height: 1.3; }
.vi-crit { margin: 0 0 12px; font-size: 12.5px; }
.vi-crit summary { cursor: pointer; color: var(--text-dim); font-weight: 600; }
.vi-crit ul { margin: 0 0 8px; padding-left: 18px; line-height: 1.5; }
.vi-hist { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-size: 12.5px; }
.vi-hist:hover, .vi-hist.sel { border-color: #1496ff; }
.vi-hist-t { font-weight: 600; }
.vi-result-head, .vi-co, .vi-wait { margin-top: 16px; }
.vi-result-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vi-result-title h3 { margin: 0; }
.vi-wait { display: flex; align-items: center; gap: 12px; color: var(--text-dim); }
.vi-spin { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: #1496ff; border-radius: 50%; animation: viSpin .8s linear infinite; flex: none; }
@keyframes viSpin { to { transform: rotate(360deg); } }
.vi-co-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.vi-co-head h4 { margin: 0 0 2px; }
.vi-co-right { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vi-site { font-size: 12px; text-decoration: none; }
.vi-why { margin: 8px 0; font-size: 13px; line-height: 1.5; }
.vi-signals { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vi-signals li { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; }
.vi-sig-ico { flex: none; width: 18px; text-align: center; }
.vi-sig-t { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.vi-hiring { margin-top: 10px; }
.vi-roles { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vi-roles td { padding: 4px 8px 4px 0; vertical-align: top; border-top: 1px solid var(--border); }
.vi-skill, .vi-param { display: inline-block; font-size: 11px; border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px; margin: 0 4px 3px 0; }
.vi-params { margin-top: 10px; }
.vi-line { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; }
.vi-angle { background: rgba(20,150,255,.08); border-left: 3px solid #1496ff; border-radius: 6px; padding: 6px 10px; }
.vi-sources { margin-top: 14px; font-size: 12px; }
.vi-sources ul { padding-left: 18px; overflow-wrap: anywhere; }

/* ── Contact filter bar (Org Chart: Customer Organization + SDR Contacts) ─────── */
.cf-bar { margin: 0 0 14px; }
.cf-bar[hidden] { display: none; }
.cf-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cf-search { flex: 1 1 260px; max-width: 420px; }
.cf-toggle { position: relative; }
.cf-toggle.has-active { border-color: #1496ff; color: #1496ff; }
.cf-badge { display: inline-block; margin-left: 6px; min-width: 16px; padding: 0 5px; border-radius: 9px; background: #1496ff; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.cf-badge[hidden] { display: none; }
.cf-count { font-size: 12px; color: var(--text-dim); }
.cf-clear { font-size: 12px; }
.cf-clear[hidden], .cf-panel[hidden] { display: none; }
.cf-panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.cf-field { display: flex; flex-direction: column; gap: 3px; min-width: 140px; font-size: 11px; font-weight: 600; color: var(--text-dim); }
.cf-field select { font-weight: 400; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 100%; }
.cf-chip { background: none; border: 1px solid var(--border); color: var(--text-dim); border-radius: 14px; font-size: 11.5px; padding: 3px 11px; cursor: pointer; font-family: inherit; }
.cf-chip:hover { color: var(--text); border-color: var(--accent); }
.cf-chip.on { background: rgba(20,150,255,.16); border-color: #1496ff; color: #1496ff; font-weight: 600; }
.cf-dim { opacity: .22; transition: opacity .15s; }
.cf-dim:hover { opacity: .6; }

/* SDR Contacts + the contact card's list switch */
.sdr-bulk { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; }
.sdr-bulk-all { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; cursor: pointer; }
.sdr-sel-col { width: 28px; }
.sdr-actions { white-space: nowrap; text-align: right; }
.sdr-empty { padding: 48px 20px; text-align: center; }
.sdr-empty p { max-width: 520px; margin: 6px auto 0; color: var(--text-dim); }
.cc-list-status { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 2px; font-size: 12px; }
.cc-list-status label { color: var(--text-dim); font-weight: 600; }
.cc-list-select { font-size: 12px; padding: 3px 6px; }
.cc-list-status .cc-enrich-status { flex: 1 1 100%; text-align: center; }
.cc-badge.sdr { border-color: #a855f7; color: #a855f7; }

/* ── Stars ───────────────────────────────────────────────────────────────────── */
.star-btn { background: none; border: none; cursor: pointer; font-size: 17px; line-height: 1; padding: 2px 4px; border-radius: 6px; color: var(--text-dim); opacity: .6; font-family: inherit; flex: none; }
.star-btn:hover { opacity: 1; color: #f5b301; }
.star-btn.on { color: #f5b301; opacity: 1; }
.star-btn:focus-visible { outline: 2px solid #1496ff; outline-offset: 1px; }
.star-col { width: 30px; text-align: center; }
.cc-name-row { display: flex; align-items: center; justify-content: center; gap: 6px; }
.cc-name-row .cc-name { margin: 0; }
.cf-starq.on { border-color: #f5b301; color: #f5b301; }

/* ── Contact cards: denser than the org chart, no connectors, still airy ──────── */
.ccard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; align-items: stretch; }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); cursor: pointer; transition: border-color .12s, transform .12s, box-shadow .12s; }
.ccard:hover, .ccard:focus-visible { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); outline: none; }
.ccard.is-starred { border-color: rgba(245,179,1,.55); }
.ccard-head { display: flex; gap: 11px; align-items: flex-start; }
.ccard-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.ccard-initials { display: flex; align-items: center; justify-content: center; background: rgba(20,150,255,.16); color: var(--accent); font-weight: 700; font-size: 14px; }
.ccard-id { flex: 1; min-width: 0; }
.ccard-name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.ccard-title { margin: 2px 0 0; font-size: 12px; color: var(--text-dim); line-height: 1.35; }
.ccard-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ccard-chip { font-size: 10.5px; font-weight: 600; border-radius: 10px; padding: 1px 8px; border: 1px solid var(--border); color: var(--text-dim); }
.ccard-chip.focus { color: var(--accent-2); border-color: currentColor; }
.ccard-chip.sen { color: var(--role-color); border-color: currentColor; }
.ccard-meta { margin: 0; display: grid; gap: 3px; font-size: 12px; }
.ccard-meta > div { display: flex; gap: 8px; }
.ccard-meta dt { flex: 0 0 64px; color: var(--text-dim); }
.ccard-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ccard-about { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ccard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11.5px; }
.ccard-signals { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quality-dots { display: inline-flex; gap: 3px; }
.quality-dots .quality-dot { display: inline-block; }
.ccard-actions { display: flex; gap: 6px; align-items: center; }

/* List (SDR / Qualified / Standby) dropdown in the table views */
.list-col { white-space: nowrap; }
.list-select { font-size: 12px; padding: 3px 6px; max-width: 150px; }

/* ── LinkedIn icon (contacts, partner contacts, team members, users) ─────────── */
.li-icon { display: inline-flex; align-items: center; justify-content: center; color: #378fe9; line-height: 0; vertical-align: middle; margin-left: 4px; border-radius: 3px; text-decoration: none; flex: none; transition: transform .12s, color .12s, opacity .12s; }
.li-icon:hover { color: #0a66c2; transform: translateY(-1px); }
.li-icon.is-search { color: var(--text-dim); opacity: .5; }
.li-icon.is-search:hover { color: #378fe9; opacity: 1; }
.li-icon:focus-visible { outline: 2px solid #1496ff; outline-offset: 2px; }
.oc-meta .li-icon { margin-left: 0; }
.ccard-actions .li-icon { margin: 0 2px; }

/* Team cards: the whole card opens the editor when you're allowed to edit that team */
.team-card.is-editable { cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.team-card.is-editable:hover, .team-card.is-editable:focus-visible { box-shadow: 0 6px 18px rgba(0,0,0,.18); transform: translateY(-1px); outline: none; }
.team-card.is-editable:focus-visible { outline: 2px solid #1496ff; outline-offset: 2px; }

/* ── Recent AI results (recall) ──────────────────────────────────────────────── */
.recall-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 12px; padding: 8px 10px; border: 1px dashed var(--border); border-radius: 10px; }
.recall-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.recall-chip { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 14px; font-size: 12px; padding: 3px 11px; cursor: pointer; font-family: inherit; }
.recall-chip:hover { border-color: #1496ff; color: #1496ff; }
.recall-ago { color: var(--text-dim); font-size: 11px; margin-left: 4px; }

/* ── Ask Prowler: chat history ───────────────────────────────────────────────── */
.prowler-chat-history { border-radius: 0 0 16px 16px; position: absolute; top: 50px; left: 0; right: 0; bottom: 0; z-index: 3; overflow-y: auto; background: var(--panel); border-top: 1px solid var(--border); }
.prowler-chat-history[hidden] { display: none; }
.pch-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--panel); }
.pch-close, .pch-del { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px 6px; border-radius: 5px; font-family: inherit; }
.pch-close:hover, .pch-del:hover { color: var(--text); background: rgba(127,127,127,.15); }
.pch-del:hover { color: var(--bad); }
.pch-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.pch-item:hover, .pch-item:focus-visible { background: rgba(20,150,255,.1); outline: none; }
.pch-item.is-loading { opacity: .5; pointer-events: none; }
.pch-main { min-width: 0; }
.pch-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pch-meta { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

/* ── Note link tool popover ───────────────────────────────────────────────── */
.ne-link-panel { width: 300px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.ne-link-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.ne-link-sel { font-size: 12px; color: var(--text-dim); margin-bottom: 2px; word-break: break-word; }
.ne-link-in { width: 100%; box-sizing: border-box; background: var(--input-bg, rgba(255,255,255,0.05)); border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; color: var(--text); font-size: 13px; outline: none; }
.ne-link-in:focus { border-color: var(--accent); }
.ne-link-err { min-height: 0; font-size: 11px; color: var(--bad); }
.ne-link-actions { display: flex; gap: 6px; margin-top: 4px; }

/* Inline text-style button used for in-table links (sent log contact / source / "open in outreach"). */
.sent-contact .link-btn { font-weight: 600; }
.src-by.link-btn { font-size: 12px; }
.sent-open-ow { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 4px; }

/* ── Searchable dropdowns (select-enhance.js): lists of more than 10 items ── */
.se-pop {
  position: fixed; z-index: 2000; display: flex; flex-direction: column; box-sizing: border-box;
  padding: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
}
.se-q {
  flex-shrink: 0; width: 100%; box-sizing: border-box; margin-bottom: 4px; padding: 6px 9px;
  font: inherit; font-size: 13px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.se-q:focus { outline: none; border-color: var(--accent); }
.se-list { flex: 1; min-height: 0; overflow-y: auto; max-height: 320px; }
.se-opt {
  padding: 6px 9px; border-radius: 5px; font-size: 13px; color: var(--text); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.se-opt.is-active { background: rgba(20,150,255,.16); }
.se-opt.is-selected { color: var(--accent); font-weight: 600; }
.se-opt.is-selected::after { content: ' ✓'; }
.se-opt.is-disabled { opacity: .45; cursor: default; }
.se-group { padding: 8px 9px 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.se-empty { padding: 10px 9px; font-size: 13px; color: var(--text-dim); }

/* ── Tasks tab (tasks-tab.js) ── */
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 2px 10px; }
.tk-head h2 { margin: 0; }
.tk-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tk-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tk-search { flex: 1 1 200px; min-width: 170px; }
.tk-late { color: var(--bad); font-weight: 600; }
.tk-type { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); }
.tk-link { font-size: 12px; color: var(--text); text-decoration: none; }
a.tk-link { color: var(--accent); }
a.tk-link:hover { text-decoration: underline; }
.tk-prio { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 4px; }
.tk-prio-high { color: var(--bad); background: rgba(255,92,92,.12); }
.tk-prio-low { color: var(--text-dim); background: rgba(127,127,127,.14); }
.tk-check { cursor: pointer; flex-shrink: 0; }
.tk-tr, .tk-card, .tk-tl-row[data-key], .tk-un { cursor: pointer; }
.tk-tr.done .tk-c-text, .tk-card.done .tk-card-text, .tk-tl-row.done .tk-tl-text, .tk-un.done span { text-decoration: line-through; color: var(--text-dim); }
.tk-c-check { width: 30px; }
.tk-c-text { min-width: 220px; overflow-wrap: anywhere; }
.tk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tk-card { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.tk-card:hover, .tk-card:focus-visible { border-color: var(--accent); outline: none; }
.tk-card.late { border-left: 3px solid var(--bad); }
.tk-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tk-card-text { font-size: 14px; color: var(--text); overflow-wrap: anywhere; }
.tk-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; margin-top: auto; }
/* timeline */
.tk-tl-scroll { overflow: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); max-height: calc(100vh - 320px); }
.tk-tl-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--border); min-height: 38px; }
.tk-tl-row:hover:not(.tk-tl-head):not(.tk-tl-grp) .tk-tl-label, .tk-tl-row:hover:not(.tk-tl-head):not(.tk-tl-grp) .tk-tl-track { background: rgba(20,150,255,.06); }
.tk-tl-label { position: sticky; left: 0; z-index: 3; flex: 0 0 260px; width: 260px; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-content: center; padding: 5px 10px; background: var(--panel); border-right: 1px solid var(--border); }
.tk-tl-text { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-tl-sub { grid-column: 2; font-size: 11px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-tl-track { position: relative; flex: none; }
.tk-tl-head { position: sticky; top: 0; z-index: 4; background: var(--panel); min-height: 30px; }
.tk-tl-head .tk-tl-label { align-content: center; font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; display: flex; }
.tk-tl-month { position: absolute; top: 0; bottom: 0; padding: 7px 0 0 6px; border-left: 1px solid var(--border); font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; }
.tk-tl-week { position: absolute; bottom: 0; padding: 0 0 2px 3px; border-left: 1px dashed var(--border); font-size: 10px; color: var(--text-dim); height: 12px; line-height: 12px; }
.tk-tl-grp { background: rgba(127,127,127,.08); min-height: 28px; }
.tk-tl-grp .tk-tl-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-dim); display: flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--panel) 92%, var(--text) 8%); }
.tk-tl-empty { padding: 24px; color: var(--text-dim); font-size: 13px; }
.tk-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--accent); opacity: .7; pointer-events: none; }
.tk-bar { position: absolute; top: 11px; height: 16px; border-radius: 4px; background: #7a9bbf; opacity: .95; }
.tk-mark { position: absolute; top: 12px; width: 14px; height: 14px; transform: rotate(45deg) scale(.82); border-radius: 2px; background: #7a9bbf; }
.tk-bar.s-in_progress, .tk-mark.s-in_progress { background: var(--accent); }
.tk-bar.s-blocked, .tk-mark.s-blocked { background: var(--warn); }
.tk-bar.s-complete, .tk-mark.s-complete { background: var(--good); opacity: .55; }
.tk-bar.late, .tk-mark.late { background: var(--bad); }
.tk-bar.hi { box-shadow: 0 0 0 2px rgba(255,92,92,.45); }
.tk-unsched { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.tk-un { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 7px; font-size: 13px; }
.tk-un span { flex: 1; overflow-wrap: anywhere; }

.tk-table .od-status-chip { white-space: nowrap; }
.od-add-task { margin-left: auto; flex-shrink: 0; align-self: center; }
.cc-add-task { margin: 8px 0 2px; }
/* task status updates (comments) */
.tk-updates { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tk-upd-form { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; }
.tk-upd-form textarea { resize: vertical; min-height: 40px; font: inherit; }
.tk-upd-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 240px; overflow-y: auto; }
.tk-upd { padding: 8px 10px; background: var(--bg); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 6px; }
.tk-upd-head { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.tk-upd-head b { color: var(--text); }
.tk-upd-del { margin-left: auto; background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }
.tk-upd-del:hover { color: var(--bad); }
.tk-upd-body { margin-top: 4px; font-size: 13px; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-cmt { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.tk-latest { margin-top: 3px; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.tk-desc-links { font-size: 12px; margin-bottom: 10px; overflow-wrap: anywhere; }
.tk-desc-links:empty { display: none; }
.tk-upd-body a { color: var(--accent); }
.tk-latest b { color: var(--text); font-weight: 600; }
.tk-card .tk-latest { white-space: normal; max-width: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* ── Asset library (asset-library.js) + message attachments ── */
.al-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.al-search { flex: 1 1 200px; min-width: 170px; }
.al-list { max-height: 60vh; overflow: auto; }
.al-table td { vertical-align: top; }
.al-name { font-weight: 600; color: var(--text); }
.al-tags { margin-top: 3px; font-size: 11px; color: var(--accent); }
.al-kind { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; background: rgba(127,127,127,.16); color: var(--text-dim); margin-right: 6px; }
.al-kind-whitepaper { background: rgba(20,150,255,.14); color: #1496ff; }
.al-kind-one_pager { background: rgba(139,92,246,.16); color: #8b5cf6; }
.al-kind-infographic { background: rgba(20,184,166,.16); color: #14b8a6; }
.al-status { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.al-status-draft { background: rgba(245,166,35,.15); color: var(--warn); }
.al-status-final { background: rgba(46,204,113,.15); color: var(--good); }
.al-actions { white-space: nowrap; text-align: right; }
.al-actions .btn { margin-left: 4px; }
.al-del { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 6px; }
.al-del:hover { color: var(--bad); }
.al-meta { font-size: 12px; margin-bottom: 10px; }
.al-fields { display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.al-field > label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 4px; }
.al-fields .al-f { width: 100%; box-sizing: border-box; font: inherit; }
.al-fields textarea.al-f { resize: vertical; }
.al-array { display: flex; flex-direction: column; gap: 6px; }
.al-item { display: flex; gap: 6px; align-items: flex-start; }
.al-item-main { flex: 1; }
.al-rm { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 18px; padding: 4px 6px; }
.al-rm:hover { color: var(--bad); }
.al-group { padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); display: flex; flex-direction: column; gap: 8px; }
.al-group-title { font-size: 11px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; }
.ow-attachments { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ow-attach-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 4px 3px 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); font-size: 12px; }
.ow-attach-kind { font-size: 10px; font-weight: 700; text-transform: uppercase; color: var(--accent); }
.ow-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.ow-attach-x { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; }
.ow-attach-x:hover { color: var(--bad); }
.al-table th { text-align: left; }

/* ── Live meeting copilot (public/live-meeting.js) ─────────────────────────── */
.lm-home { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.lm-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.lm-card h3 { margin: 0 0 8px; font-size: 15px; }
.lm-card label, .lm-card .lm-check { display: block; margin: 10px 0; font-size: 13px; }
.lm-card input[type=text], .lm-card select, .lm-test input, .lm-test textarea, .lm-col input { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 7px 9px; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.lm-check { display: flex !important; gap: 8px; align-items: flex-start; }
.lm-check input { width: auto !important; margin-top: 2px; }
.lm-muted { color: var(--muted, #8b95a7); font-size: 12px; }
.lm-error { color: #ff6b6b; font-size: 13px; min-height: 1em; }
.lm-readylist, .lm-sessions { list-style: none; padding: 0; margin: 0 0 12px; }
.lm-ready { display: flex; gap: 8px; font-size: 13px; margin: 6px 0; }
.lm-ready b { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.lm-ready.ok b { background: rgba(34,211,168,.2); color: #22d3a8; }
.lm-ready.bad b { background: rgba(255,170,0,.2); color: #ffaa00; }
.lm-sessions li { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.lm-sessions li .btn { margin-left: auto; }
.lm-pill { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); text-transform: capitalize; }
.lm-pill.live { color: #22d3a8; border-color: rgba(34,211,168,.5); }
.lm-pill.used, .lm-pill.edited { color: #1496ff; }
.lm-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.lm-spacer { flex: 1; }
.lm-notice { padding: 8px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 10px; }
.lm-notice.ok { background: rgba(34,211,168,.12); } .lm-notice.bad { background: rgba(255,92,92,.14); }
.lm-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.2fr) minmax(220px, .8fr); gap: 14px; align-items: start; }
.lm-col { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; min-width: 0; }
.lm-col h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #8b95a7); }
.lm-transcript { max-height: 52vh; overflow-y: auto; font-size: 13px; }
.lm-line { padding: 4px 0; border-bottom: 1px solid var(--border); } .lm-line.ours b { color: #1496ff; }
.lm-t { color: var(--muted, #8b95a7); font-size: 11px; margin-right: 4px; }
.lm-test { margin-top: 10px; font-size: 13px; } .lm-test summary { cursor: pointer; }
.lm-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.lm-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lm-sug { border: 1px solid var(--border); border-left: 3px solid #1496ff; border-radius: 10px; padding: 10px 12px; background: var(--panel-2); font-size: 13px; }
.lm-sug.dismissed { opacity: .5; } .lm-sug.used, .lm-sug.edited { border-left-color: #22d3a8; }
.lm-sug header { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lm-sug blockquote { margin: 8px 0; padding-left: 8px; border-left: 2px solid var(--border); color: var(--muted, #8b95a7); }
.lm-sug p { margin: 6px 0; } .lm-sug footer { display: flex; gap: 6px; margin-top: 8px; }
.lm-kind { font-weight: 600; font-size: 12px; } .lm-kind.objection { color: #ffaa00; } .lm-kind.competitor { color: #ff7ab8; }
.lm-conf { font-size: 11px; color: #22d3a8; } .lm-conf.low { color: #ffaa00; } .lm-conf.medium { color: #1496ff; }
.lm-verify { font-size: 11px; color: #ffaa00; border: 1px solid rgba(255,170,0,.5); border-radius: 999px; padding: 1px 7px; }
.lm-src { font-size: 12px; }
#lmState h5, #lmSummary h5 { margin: 12px 0 4px; font-size: 12px; } #lmState ul, #lmSummary ul { margin: 0; padding-left: 18px; font-size: 13px; }
#lmState li.done { text-decoration: line-through; opacity: .6; }
#lmSummary { margin-top: 14px; } .lm-mail { white-space: pre-wrap; background: var(--panel-2); padding: 10px; border-radius: 8px; font: inherit; font-size: 13px; }
@media (max-width: 1000px) { .lm-home, .lm-grid { grid-template-columns: 1fr; } }

/* ── Processors tab: Sniffer · Asks · Knowledge (+ Settings) — public/processors.js ─────────────────────────── */
#tab-processors { --pr-blue: #1496ff; --pr-violet: #a66bff; --pr-teal: #18c29c; }
.pr-tone-good   { --t: var(--good); }
.pr-tone-warn   { --t: var(--warn); }
.pr-tone-bad    { --t: var(--bad); }
.pr-tone-blue   { --t: var(--pr-blue); }
.pr-tone-violet { --t: var(--pr-violet); }
.pr-tone-teal   { --t: var(--pr-teal); }
.pr-tone-muted  { --t: #7f8aa3; }

/* Pills (top left) and the gear (top right) */
.pr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 20px; }
.pr-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 20px; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--text);
  border: 1.5px solid color-mix(in srgb, var(--pr-c) 55%, transparent);
  background: color-mix(in srgb, var(--pr-c) 14%, transparent);
  transition: background .15s, box-shadow .15s, transform .1s;
}
.pr-pill:hover { background: color-mix(in srgb, var(--pr-c) 26%, transparent); }
.pr-pill:active { transform: translateY(1px); }
.pr-pill:focus-visible, .pr-gear:focus-visible { outline: none; box-shadow: var(--ring); }
.pr-pill.is-active { background: var(--pr-c); border-color: var(--pr-c); color: #06101e; box-shadow: 0 4px 18px color-mix(in srgb, var(--pr-c) 42%, transparent); }
.pr-pill-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--pr-c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pr-c) 25%, transparent); flex: none; }
.pr-pill.is-active .pr-pill-dot { background: #06101e; box-shadow: none; }
.pr-pill-count { min-width: 19px; padding: 1px 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; text-align: center; line-height: 1.5; }
.pr-gear {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; flex: none;
  color: var(--text-dim); background: var(--panel); border: 1.5px solid var(--border); transition: color .15s, background .15s, transform .25s;
}
.pr-gear:hover { color: var(--text); border-color: var(--pr-c); transform: rotate(30deg); }
.pr-gear.is-active { background: var(--pr-c); border-color: var(--pr-c); color: #06101e; }

/* View header */
.pr-viewhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.pr-viewhead h2 { margin: 0; font-size: 22px; }
.pr-tagline { margin: 3px 0 0; color: var(--text-dim); font-size: 13px; }
.pr-viewhead-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-agent { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel); }
.pr-agent code { color: var(--text); font-size: 12px; }
.pr-agent-dot { width: 8px; height: 8px; border-radius: 50%; background: #6b7488; }
.pr-agent-dot.on { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }

/* Status bar */
.pr-statusbar, .pr-keyrow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--t, var(--border)); }
.pr-keyrow { margin: 6px 0 10px; }
.pr-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--t); font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.pr-state-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--t); box-shadow: 0 0 0 3px color-mix(in srgb, var(--t) 25%, transparent); }
.pr-state-text { color: var(--text-dim); font-size: 13px; flex: 1 1 260px; }
.pr-addrs { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.pr-addr { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.pr-addr span { color: var(--text-dim); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.pr-addr i { font-style: normal; color: var(--text-dim); }
.pr-addr:hover { border-color: var(--accent); }
.pr-addr.is-copied, .pr-trace.is-copied { border-color: var(--good); color: var(--good); }

/* KPI cards and chart */
.pr-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin: 14px 0 18px; }
.pr-kpi { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--t, var(--border)); border-radius: var(--radius); padding: 13px 16px 14px; min-width: 0; }
.pr-kpi-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.pr-kpi-value { font-size: 28px; font-weight: 800; line-height: 1.2; margin-top: 4px; color: var(--text); }
.pr-kpi-sub { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pr-kpi-chart { grid-column: span 2; border-top-color: var(--border); }
.pr-chart { display: block; width: 100%; height: 64px; margin-top: 8px; }
.pr-bar-good { fill: var(--good); } .pr-bar-warn { fill: var(--warn); } .pr-bar-bad { fill: var(--bad); }
.pr-bar-info { fill: var(--pr-violet); } .pr-bar-empty { fill: var(--border); }

/* Filters */
.pr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; }
.pr-filter-right { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.pr-seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; }
.pr-seg-btn { padding: 6px 15px; border: 0; border-radius: 999px; background: transparent; color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pr-seg-btn:hover { color: var(--text); }
.pr-seg-btn.is-active { background: var(--accent); color: #06101e; }
.pr-seg-lg { margin: 4px 0 14px; }
.pr-seg-lg .pr-seg-btn { padding: 7px 18px; font-size: 13px; }
.pr-search, .pr-select, #tab-processors .pr-panel textarea, #tab-processors .pr-panel input[type="text"] {
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 11px; font: inherit; font-size: 13px;
}
.pr-search { width: 210px; }
.pr-search:focus, .pr-select:focus, #tab-processors .pr-panel textarea:focus, #tab-processors .pr-panel input:focus { outline: none; box-shadow: var(--ring); border-color: var(--accent); }
#tab-processors .pr-panel textarea { width: 100%; resize: vertical; }

/* Log cards */
.pr-list { display: flex; flex-direction: column; gap: 10px; }
.pr-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--t, var(--border)); border-radius: var(--radius); transition: border-color .15s; }
.pr-card:hover { border-color: color-mix(in srgb, var(--t, var(--accent)) 55%, var(--border)); border-left-color: var(--t, var(--border)); }
.pr-card-compact { padding: 10px 14px; gap: 12px; }
.pr-card-icon { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--t); background: color-mix(in srgb, var(--t) 18%, transparent); }
.pr-card-compact .pr-card-icon { flex-basis: 26px; height: 26px; font-size: 13px; }
.pr-card-main { flex: 1; min-width: 0; }
.pr-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pr-card-title { font-weight: 700; color: var(--text); overflow-wrap: anywhere; text-decoration: none; }
a.pr-card-title:hover { color: var(--accent); text-decoration: underline; }
.pr-card-compact .pr-card-title { font-weight: 600; font-size: 13.5px; }
.pr-card-meta { font-size: 12px; color: var(--text-dim); margin-top: 3px; overflow-wrap: anywhere; }
.pr-card-where { margin-top: 8px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.pr-card-compact .pr-card-where { margin-top: 5px; font-size: 13px; color: var(--text-dim); }
.pr-card-actions { display: flex; gap: 6px; flex: none; }
.pr-chip { --c: #7f8aa3; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.pr-chip-good { --c: var(--good); } .pr-chip-warn { --c: var(--warn); } .pr-chip-bad { --c: var(--bad); }
.pr-chip-blue { --c: var(--pr-blue); } .pr-chip-violet { --c: var(--pr-violet); } .pr-chip-teal { --c: var(--pr-teal); }
.pr-ok { color: var(--good); } .pr-bad, .pr-error { color: var(--bad); } .pr-hint { color: var(--warn); font-size: 12px; }
.pr-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

.pr-more { margin-top: 8px; }
.pr-more summary { cursor: pointer; font-size: 12px; font-weight: 700; color: var(--accent); user-select: none; }
.pr-facts { margin: 8px 0 0; }
.pr-facts > div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.pr-facts > div:last-child { border-bottom: 0; }
.pr-facts dt { color: var(--text-dim); font-size: 12px; }
.pr-facts dd { margin: 0; overflow-wrap: anywhere; }
.pr-tag { display: inline-block; padding: 1px 8px; margin: 0 2px 2px 0; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12px; }
.pr-trace { font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); cursor: pointer; }
.pr-trace:hover { border-color: var(--accent); }

.pr-convo { margin-top: 6px; }
.pr-bubble { white-space: pre-wrap; padding: 10px 14px; margin-top: 8px; border-radius: 12px; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; background: var(--panel-2); }
.pr-bubble > span { display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); margin-bottom: 3px; }
.pr-bubble-a { background: color-mix(in srgb, var(--pr-violet) 13%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--pr-violet) 30%, transparent); }
.pr-bubble-err { background: color-mix(in srgb, var(--bad) 12%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }

.pr-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 18px; text-align: center; border: 1.5px dashed var(--border); border-radius: var(--radius); color: var(--text-dim); font-size: 13px; }
.pr-empty strong { color: var(--text); font-size: 14px; }
.pr-more-row { display: flex; justify-content: center; margin: 14px 0 4px; }
.pr-notice { padding: 9px 14px; margin: 0 0 12px; border-radius: 8px; font-size: 13px; border: 1px solid var(--border); background: var(--panel); }
.pr-notice-ok { border-color: color-mix(in srgb, var(--good) 45%, transparent); color: var(--good); }
.pr-notice-bad { border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }

/* Panels (Knowledge pages, search, Settings) */
.pr-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.pr-panel h3 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.pr-panel h4 { margin: 0 0 8px; font-size: 14px; }
.pr-panel h4 small { color: var(--text-dim); font-weight: 400; margin-left: 6px; }
.pr-panel h5 { margin: 18px 0 4px; font-size: 13px; }
.pr-settings .pr-panel { border-top: 3px solid var(--pr-c, var(--border)); }
.pr-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.pr-results { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pr-panel .field-input-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.pr-panel .field-input-row input[type="text"] { flex: 1 1 260px; }
.pr-signals { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pr-signal { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); background: var(--panel-2); border: 1px solid var(--border); }
.pr-signal i { width: 8px; height: 8px; border-radius: 50%; background: #6b7488; }
.pr-signal.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.pr-signal.on i { background: var(--good); }
.pr-agents { margin: 10px 0; }
.pr-code p { margin: 10px 0 3px; font-size: 12px; color: var(--text-dim); }
.pr-code code { display: block; padding: 8px 11px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; font-size: 12px; overflow-x: auto; white-space: pre; }

@media (max-width: 760px) {
  .pr-top { align-items: flex-start; }
  .pr-pill { padding: 8px 15px; font-size: 13px; }
  .pr-kpi-chart { grid-column: auto; }
  .pr-filter-right { margin-left: 0; width: 100%; }
  .pr-search { flex: 1; width: auto; }
  .pr-addrs { margin-left: 0; }
  .pr-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .pr-card { padding: 12px; gap: 10px; }
  .pr-card-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .pr-pill, .pr-gear, .pr-card { transition: none; } .pr-gear:hover { transform: none; } }
.pr-card-where small { color: var(--text-dim); }
.pr-panel .field-help { font-size: 12px; color: var(--text-dim); }
.pr-bubble code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Platform Admin -> AI Router */
.airt-toolbar { display: flex; gap: 8px; align-items: center; }
.airt-days { display: inline-flex; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.airt-days button { background: transparent; border: 0; color: var(--text-dim); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; cursor: pointer; }
.airt-days button.is-active { background: var(--panel-2); color: var(--accent); }
.airt-modes { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.airt-mode { background: transparent; border: 0; color: var(--text-dim); font: inherit; font-weight: 700; padding: 9px 20px; cursor: pointer; }
.airt-mode.is-active { background: var(--accent); color: #fff; }
.airt-mode-desc { margin: 8px 0 16px; }
.airt-gauges { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 18px; }
.airt-gauge { flex: 1; min-width: 160px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 10px 10px; text-align: center; }
.airt-gauge-text { fill: var(--text); font-size: 17px; font-weight: 800; }
.airt-gauge-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.airt-gauge-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.airt-two { display: grid; grid-template-columns: 3fr 2fr; gap: 24px; margin-bottom: 22px; }
@media (max-width: 1000px) { .airt-two { grid-template-columns: 1fr; } }
.airt-daily { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.airt-daily-col { flex: 1; min-width: 14px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: 9px; color: var(--text-dim); }
.airt-daily-stack { width: 100%; flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; }
.airt-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.airt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: baseline; }
.airt-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.airt-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.airt-table th { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); background: var(--panel-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.airt-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.airt-reason { color: var(--text-dim); max-width: 380px; }
.airt-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: var(--panel-2); text-transform: uppercase; }
.airt-pill.airt-auto { color: var(--accent); } .airt-pill.airt-shadow { color: var(--warn); }
.airt-pools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 8px; }
@media (max-width: 1100px) { .airt-pools { grid-template-columns: 1fr; } }
.airt-pool { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.airt-pool-head { display: flex; align-items: center; gap: 6px; }
.airt-pool-row { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 6px; margin-bottom: 6px; }
.airt-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 12px; }
.airt-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; }
.airt-check { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 6px 0; }
.airt-details { margin-top: 10px; } .airt-details summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.airt-wf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 18px; margin-top: 8px; }
.airt-wf { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; font-size: 12px; }

/* ── Global search ───────────────────────────────────────────────────────────── */
.global-search { position: relative; margin-right: 28px; }   /* clear gap before the account drop-down */
.global-search-input {
  width: 260px; padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(120, 190, 255, 0.55);
  background: rgba(120, 190, 255, 0.14); color: #eaf5ff; font-size: 14px; transition: width .15s;
}
.global-search-input:focus { width: 380px; outline: none; border-color: var(--accent); box-shadow: var(--ring); }
@media (max-width: 1500px) { .global-search-input { width: 200px; } .global-search-input:focus { width: 300px; } }
.global-search-panel {
  position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 1200;
  width: min(760px, 94vw); max-height: min(70vh, 640px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55); overflow: hidden;
}
.global-search-panel[hidden] { display: none; }
.gs-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--panel-2); }
.gs-chip { border: 1px solid var(--border); background: transparent; color: var(--text-dim); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.gs-chip b { color: var(--text); margin-left: 2px; font-weight: 600; }
.gs-chip:hover { border-color: var(--accent); color: var(--text); }
.gs-chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.gs-chip.on b { color: #fff; }
.gs-body { overflow-y: auto; padding: 4px 0 8px; }
.gs-group-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px 4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.gs-group-head span { font-weight: 500; }
.gs-showall { margin-left: auto; background: none; border: 0; color: var(--accent); font-size: 12px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.gs-row { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 7px 14px; background: none; border: 0; color: var(--text); cursor: pointer; font: inherit; }
.gs-row:hover, .gs-row.active { background: var(--panel-2); }
.gs-icon { width: 20px; text-align: center; flex-shrink: 0; }
.gs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-sub { font-weight: 400; color: var(--text-dim); font-size: 12px; }
.gs-snip { font-size: 12px; color: var(--text-dim); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: pre-line; }
.gs-where { font-size: 11px; color: var(--text-dim); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.gs-empty, .gs-more { padding: 18px 16px; text-align: center; color: var(--text-dim); font-size: 13px; }
.gs-more { padding: 8px 16px; font-size: 12px; }
.global-search-panel mark { background: rgba(245, 166, 35, .35); color: inherit; border-radius: 2px; padding: 0 1px; }

/* Market Intel: manage verticals (library, versions, custom) */
.vm-h { margin: 22px 0 8px; font-size: 14px; }
.vm-list { display: flex; flex-direction: column; gap: 10px; }
.vm-card.on { border-color: rgba(20,150,255,.55); }
.vm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.vm-title { display: flex; gap: 10px; align-items: flex-start; min-width: 0; flex: 1 1 320px; }
.vm-title > span { font-size: 20px; }
.vm-org { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vm-ver { width: auto; min-width: 190px; max-width: 280px; }
.vm-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.vm-owner { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.vm-versions { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.vm-ver-row { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.vm-ver-main { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.vm-ver-actions { display: flex; gap: 6px; }
.vm-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.vm-comment { background: rgba(127,127,127,.08); border-radius: 6px; padding: 6px 8px; }
.vm-comment-new { display: flex; gap: 6px; }
.vm-wide { grid-column: 1 / -1; }
.vm-draft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 12px 0; padding: 10px 12px; border: 1px dashed var(--border); border-radius: 8px; }
.vi-test { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid #f0a020; background: rgba(240,160,32,.12); font-size: 12.5px; }
textarea.mg-input { resize: vertical; line-height: 1.4; }

/* ─── Business profile (org-profile.js) ──────────────────────────────────── */
.opb-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.opb-target { min-width: 260px; }
.opb-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.opb-bar { width: 160px; height: 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); overflow: hidden; }
.opb-bar span { display: block; height: 100%; background: var(--accent); }
.opb-ai { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.opb-draft { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; max-width: 640px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); }
.opb-suggestions { margin-bottom: 16px; padding: 12px; border: 1px solid rgba(245,166,35,.45); border-radius: var(--radius); background: var(--panel-2); }
.opb-suggestions h4 { margin: 0 0 8px; font-size: 13px; }
.opb-sugg { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.opb-sugg-main { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.opb-sugg-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }
.opb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.opb-field { min-width: 0; }
.opb-wide { grid-column: 1 / -1; }
.opb-label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.opb-input { width: 100%; background: var(--panel-2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; font-size: 13px; font-family: inherit; resize: vertical; }
.opb-input:disabled { opacity: .7; }
.opb-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.opb-checks label { display: inline-flex; gap: 5px; align-items: center; }
.opb-save { display: flex; gap: 10px; margin: 16px 0; max-width: 760px; }
.opb-history { margin-top: 12px; }
.opb-history summary { cursor: pointer; font-size: 13px; color: var(--text-dim); }
.opb-versions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.opb-version { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .opb-form { grid-template-columns: 1fr; } .opb-sugg { flex-direction: column; } }

.global-search-input::placeholder { color: rgba(190, 225, 255, 0.7); }
.global-search-input:focus { background: rgba(120, 190, 255, 0.2); }

/* ─── Account tree levels (selector, search list, subsidiary rows) ─────────── */
.account-select option.acct-d0 { color: var(--accent); font-weight: 700; }
.account-select option.acct-d1 { color: #fff; font-weight: 700; }
.account-select option.acct-d2, .account-select option.acct-d3 { color: var(--text-dim); font-weight: 400; }
.se-opt.se-d0 { color: var(--accent); font-weight: 700; }
.se-opt.se-d1 { color: #fff; font-weight: 700; }
.se-opt.se-d2, .se-opt.se-d3 { color: var(--text-dim); font-weight: 400; }
/* Sub-accounts: indent comes from padding-left (select-enhance.js); a thin guide line makes the nesting easy to follow. */
.se-opt.se-d1, .se-opt.se-d2, .se-opt.se-d3 { border-left: 2px solid rgba(20, 150, 255, 0.35); }
.se-opt.se-d0.is-selected, .se-opt.se-d1.is-selected, .se-opt.se-d2.is-selected, .se-opt.se-d3.is-selected { color: var(--accent-2, var(--accent)); }

/* ─── Account dialog: subsidiaries ─────────────────────────────────────────── */
.acct-subs { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); }
.acct-subs-head h3 { margin: 0 0 4px; font-size: 14px; }
.acct-subs-count { color: var(--text-dim); font-weight: 400; }
.acct-subs-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.acct-subs-list { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow-y: auto; }
.acct-sub-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-left: 3px solid var(--border); border-radius: 6px; background: var(--panel-2); }
.acct-sub-d1 { border-left-color: var(--accent); }
.acct-sub-d1 .acct-sub-name { font-weight: 700; color: #fff; }
.acct-sub-d2 .acct-sub-name, .acct-sub-d3 .acct-sub-name { font-weight: 400; color: var(--text-dim); }
.acct-sub-main { display: flex; flex-direction: column; min-width: 0; }
.acct-sub-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sub-meta { font-size: 11px; color: var(--text-dim); }
.acct-sub-btns { display: flex; gap: 10px; flex-shrink: 0; font-size: 12px; }
.acct-sub-detach { color: var(--bad); }
.subsidiary-place { margin: 6px 0; font-size: 12px; }
.subsidiary-place select { margin-left: 6px; max-width: 100%; }

/* ── Account dialog: left navigation + one pane at a time ───────────────────── */
.acct-dlg { display: grid; grid-template-columns: 200px minmax(0, 1fr); min-height: 0; }
.acct-dlg-nav { display: flex; flex-direction: column; gap: 4px; padding: 4px 16px 4px 0; border-right: 1px solid var(--border); }
.acct-dlg-import { margin-bottom: 12px; width: 100%; justify-content: center; }
.acct-dlg-nav-item {
  background: none; border: none; border-left: 3px solid transparent; border-radius: 4px;
  color: var(--text-dim); font-size: 14px; text-align: left; padding: 9px 10px; cursor: pointer;
}
.acct-dlg-nav-item:hover { color: var(--text); background: var(--panel-2); }
.acct-dlg-nav-item.is-active { color: var(--text); font-weight: 600; border-left-color: var(--accent); background: var(--panel-2); }
.acct-dlg-content { padding: 4px 4px 4px 28px; min-width: 0; }
#tab-account .acct-dlg-pane > div:not(#accountNotesWrap), #tab-account .acct-dlg-pane > form { max-width: 880px; }
.acct-dlg-pane[hidden] { display: none; }
.acct-dlg-pane .acct-subs { margin-top: 0; padding-top: 0; border-top: none; }
.acct-dlg-pane .acct-subs-list { max-height: none; }
@media (max-width: 760px) {
  .acct-dlg { grid-template-columns: 1fr; }
  .acct-dlg-nav { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 10px; margin-bottom: 14px; }
  .acct-dlg-import { width: auto; margin-bottom: 0; }
  .acct-dlg-content { padding: 0; max-height: none; }
}

/* ── Plan-gated controls and the Mail & Calendar client ───────────────────────── */
[data-plan-feature][hidden], #mailTabBtn[hidden] { display: none !important; }
.mail-source-bar { margin-bottom: 12px; }
.mail-source-bar:empty { display: none; }
.ma-form { display: grid; gap: 18px; max-width: 880px; }
.ma-group { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--panel-2); }
.ma-group h4 { margin: 0 0 4px; font-size: 13px; }
.ma-group .hint { margin: 0 0 10px; font-size: 12px; }
.ma-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 14px; }
.ma-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-dim); }
.ma-grid input, .ma-grid select { width: 100%; }
.ma-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ma-result { display: grid; gap: 4px; font-size: 12px; margin-top: 4px; }
.ma-result .ok { color: var(--good); }
.ma-result .bad { color: var(--bad); }
.ma-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); }
.ma-pill.ok { color: var(--good); border-color: var(--good); }
.ma-pill.bad { color: var(--bad); border-color: var(--bad); }
.ma-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.ma-toolbar .spacer { flex: 1; }
.ma-msg { cursor: pointer; }
.ma-msg-body { white-space: pre-wrap; font-size: 13px; line-height: 1.5; max-height: 55vh; overflow: auto; padding: 10px 2px; }
.ma-msg-meta { font-size: 12px; color: var(--text-dim); display: grid; gap: 2px; margin-bottom: 8px; }
.ma-compose { display: grid; gap: 10px; }
.ma-compose input, .ma-compose textarea { width: 100%; }

/* ── Features (Settings → Features, Platform Admin → Features) ─────────────────── */
.ft-summary { display: flex; flex-wrap: wrap; gap: 28px; margin: 6px 0 14px; }
.ft-summary > div { display: flex; flex-direction: column; }
.ft-sum-n { font-size: 20px; font-weight: 700; }
.ft-cat { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.ft-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ft-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; background: var(--panel-2); display: flex; flex-direction: column; gap: 8px; }
.ft-card.on { border-color: rgba(46, 204, 113, .45); }
.ft-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ft-card-head h4 { margin: 0; font-size: 14px; }
.ft-desc { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.45; flex: 1; }
.ft-money { font-size: 12px; }
.ft-note { font-size: 12px; color: var(--warn); }
.ft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 28px; }
.ft-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.ft-badge.ok { color: var(--good); border-color: var(--good); }
.ft-badge.muted { color: var(--text-dim); }
.ft-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; }
.ft-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ft-slider { width: 34px; height: 18px; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; flex: none; }
.ft-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ft-switch input:checked + .ft-slider { background: var(--good); }
.ft-switch input:checked + .ft-slider::after { transform: translateX(16px); }
.ft-switch input:disabled + .ft-slider { opacity: .5; }
.ft-switch input:focus-visible + .ft-slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Mail & Calendar client (Roundcube-style) ───────────────────────────────────── */
#tab-mail.active { padding: 8px 12px 0; }
.mail-tab-content { min-width: 0; }
.mc { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--panel); min-height: 460px; }
.mc-top { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--panel-2); }
.mc-spacer { flex: 1; }
.mc-acct { font-size: 12px; color: var(--text-dim); }
.mc-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.mc-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mc-seg button { background: none; border: none; color: var(--text-dim); padding: 6px 12px; font-size: 13px; cursor: pointer; }
.mc-seg button + button { border-left: 1px solid var(--border); }
.mc-seg button.on { background: var(--accent); color: #fff; }
.mc-seg button:disabled { opacity: .4; cursor: not-allowed; }
.mc-select { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 13px; }
.mc-icon-btn { background: none; border: 1px solid var(--border); color: var(--text); border-radius: 6px; width: 30px; height: 30px; cursor: pointer; font-size: 15px; line-height: 1; flex: none; }
.mc-icon-btn:hover { background: var(--panel-2); }
.mc-body { flex: 1; min-height: 0; display: grid; }
.mc-body.mail { grid-template-columns: 190px 390px minmax(0, 1fr); }
.mc-body.calendar { grid-template-columns: 230px minmax(0, 1fr); }
.mc-folders { border-right: 1px solid var(--border); padding: 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.mc-folder { display: flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text); padding: 7px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; text-align: left; }
.mc-folder:hover { background: var(--panel-2); }
.mc-folder.on { background: rgba(20, 150, 255, .16); font-weight: 600; }
.mc-folder-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }
.mc-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mc-list-head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); }
.mc-search { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; }
.mc-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--text); padding: 6px 0; font-size: 13px; }
.mc-search:focus-within { border-color: var(--accent); }
.mc-newbar { padding: 6px 12px; font-size: 12px; background: rgba(20, 150, 255, .16); cursor: pointer; text-align: center; }
.mc-rows { flex: 1; min-height: 0; overflow-y: auto; outline: none; }
.mc-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) 24px; gap: 8px; align-items: start; padding: 9px 10px 9px 9px; border-bottom: 1px solid var(--border); cursor: pointer; border-left: 3px solid transparent; }
.mc-row:hover { background: var(--panel-2); }
.mc-row.on { background: rgba(20, 150, 255, .14); border-left-color: var(--accent); }
.mc-row.checked { background: rgba(20, 150, 255, .08); }
.mc-chk { margin-top: 3px; cursor: pointer; }
.mc-row-main { min-width: 0; }
.mc-row-top { display: flex; justify-content: space-between; gap: 8px; }
.mc-from { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-date { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.mc-subject { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.mc-preview { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.mc-row.unread .mc-from, .mc-row.unread .mc-subject { font-weight: 700; }
.mc-row.unread .mc-from::before { content: '●'; color: var(--accent); font-size: 9px; margin-right: 6px; vertical-align: 1px; }
.mc-star { background: none; border: none; color: var(--text-dim); font-size: 16px; cursor: pointer; padding: 0; line-height: 1; }
.mc-star:hover { color: #f5b301; }
.mc-star.on { color: #f5b301; }
.mc-read { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.mc-read-head { padding: 14px 18px 10px; border-bottom: 1px solid var(--border); flex: none; }
.mc-read-title { display: flex; align-items: flex-start; gap: 10px; }
.mc-read-title h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; flex: 1; }
.mc-read-title .mc-star { font-size: 20px; margin-top: 2px; }
.mc-meta { display: grid; gap: 2px; font-size: 12.5px; }
.mc-meta span { display: inline-block; width: 44px; color: var(--text-dim); }
.mc-atts, .mc-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mc-att { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; font-size: 12px; color: var(--text); text-decoration: none; }
a.mc-att:hover { background: var(--panel-2); border-color: var(--accent); }
.mc-att small { color: var(--text-dim); }
.mc-x { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.mc-read-actions { display: flex; gap: 14px; margin-top: 8px; }
.mc-open-link { font-size: 12px; }
.mc-imgbar { margin-top: 10px; padding: 6px 10px; border-radius: 6px; background: rgba(245, 166, 35, .14); font-size: 12px; }
.mc-frame { flex: 1; min-height: 0; width: 100%; border: 0; background: #fff; }
.mc-read-body { flex: 1; min-height: 0; overflow: auto; padding: 16px 18px; white-space: pre-wrap; word-wrap: break-word; font-size: 13.5px; line-height: 1.55; }
.mc-back { display: none; background: none; border: none; color: var(--accent); cursor: pointer; padding: 0 0 8px; font-size: 13px; }
.mc-empty { margin: auto; text-align: center; color: var(--text-dim); padding: 30px; font-size: 14px; }
.mc-empty.small { font-size: 13px; padding: 24px 12px; }
.mc-empty-ico { font-size: 38px; opacity: .4; margin-bottom: 6px; }
.mc-loading { padding: 18px; text-align: center; color: var(--text-dim); font-size: 13px; }
.mc-loading.small { padding: 10px; }
.mc-error { padding: 20px; text-align: center; color: var(--bad); font-size: 13px; }
.mc-link { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12px; padding: 0; }
.mc-menu { position: fixed; z-index: 1300; min-width: 190px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); padding: 4px; display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; }
.mc-menu button { background: none; border: none; color: var(--text); text-align: left; padding: 7px 10px; border-radius: 5px; cursor: pointer; font-size: 13px; }
.mc-menu button:hover:not(:disabled) { background: var(--panel-2); }
.mc-menu button:disabled { opacity: .5; cursor: default; }
.mc-menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.mc-cf { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; position: relative; }
.mc-cf label { width: 56px; color: var(--text-dim); font-size: 12px; }
.mc-cf input { flex: 1; }
.mc-compose textarea { width: 100%; resize: vertical; font-family: inherit; }
.mc-ac { position: absolute; left: 64px; right: 0; top: 100%; z-index: 20; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); overflow: hidden; }
.mc-ac button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 7px 10px; cursor: pointer; font-size: 13px; }
.mc-ac button:hover { background: var(--panel-2); }
.mc-ac span { color: var(--text-dim); font-size: 12px; }
/* calendar */
.mc-cal-side { border-right: 1px solid var(--border); padding: 12px; overflow-y: auto; }
.mc-cal-side h5 { margin: 16px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.mc-cal-list { display: flex; flex-direction: column; gap: 4px; }
.mc-cal-item, .ma-cal { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.mc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mc-mini-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.mc-mini-head .mc-icon-btn { width: 24px; height: 24px; font-size: 13px; }
.mc-mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.mc-mini-wd { font-size: 10px; color: var(--text-dim); padding: 2px 0; }
.mc-mini-d { background: none; border: none; color: var(--text); font-size: 11.5px; padding: 5px 0; border-radius: 50%; cursor: pointer; }
.mc-mini-d:hover { background: var(--panel-2); }
.mc-mini-d.dim { color: var(--text-dim); opacity: .55; }
.mc-mini-d.cur { outline: 1px solid var(--accent); }
.mc-mini-d.today { background: var(--accent); color: #fff; opacity: 1; }
.mc-cal-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mc-cal-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.mc-cal-bar .mc-search { flex: 0 1 260px; }
.mc-fc { position: relative; flex: 1; min-height: 0; }
.mc-fc > .fc { position: absolute; top: 10px; bottom: 10px; left: 12px; right: 12px; }
.mc-fc {
  --fc-border-color: var(--border); --fc-page-bg-color: transparent; --fc-neutral-bg-color: var(--panel-2); --fc-neutral-text-color: var(--text-dim);
  --fc-today-bg-color: rgba(20, 150, 255, .10); --fc-now-indicator-color: var(--bad); --fc-list-event-hover-bg-color: var(--panel-2); --fc-event-text-color: #fff;
  --fc-more-link-bg-color: transparent; --fc-highlight-color: rgba(20, 150, 255, .18);
  --fc-button-bg-color: var(--panel-2); --fc-button-border-color: var(--border); --fc-button-text-color: var(--text);
  --fc-button-hover-bg-color: var(--border); --fc-button-hover-border-color: var(--border);
  --fc-button-active-bg-color: var(--accent); --fc-button-active-border-color: var(--accent);
}
.mc-fc .fc-toolbar-title { font-size: 16px; }
.mc-fc .fc-button { font-size: 12.5px; padding: 5px 10px; text-transform: none; }
.mc-fc .fc-button:focus { box-shadow: none; }
.mc-fc .fc-col-header-cell-cushion, .mc-fc .fc-daygrid-day-number, .mc-fc .fc-timegrid-slot-label-cushion, .mc-fc .fc-list-day-text, .mc-fc .fc-list-day-side-text { color: var(--text); text-decoration: none; }
.mc-fc .fc-daygrid-more-link { color: var(--accent); }
.mc-fc .fc-event { cursor: pointer; font-size: 12px; }
.mc-fc .fc-list-event-title a { color: var(--text); }
.mc-fc .fc-day-other .fc-daygrid-day-top { opacity: .5; }
.mc-evd > div { display: flex; gap: 10px; margin-bottom: 8px; font-size: 13.5px; }
.mc-evd > div > span { width: 64px; color: var(--text-dim); flex: none; }
.mc-evd-desc { display: block !important; white-space: pre-wrap; border-top: 1px solid var(--border); padding-top: 10px; color: var(--text-dim); }
.ma-cals { display: grid; gap: 6px; margin-top: 12px; }
@media (max-width: 1150px) {
  .mc-body.mail { grid-template-columns: 150px 330px minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .mc-body.mail { grid-template-columns: minmax(0, 1fr); }
  .mc-body.mail .mc-folders { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .mc-body.mail .mc-read { display: none; }
  .mc.show-read .mc-body.mail .mc-read { display: flex; }
  .mc.show-read .mc-body.mail .mc-list, .mc.show-read .mc-body.mail .mc-folders { display: none; }
  .mc-back { display: block; }
  .mc-body.calendar { grid-template-columns: minmax(0, 1fr); }
  .mc-cal-side { display: none; }
}

/* ─── ProwlerVision (chat panel) ───────────────────────────────────────────── */
.prowler-vision-row { display: flex; align-items: center; gap: 10px; padding: 5px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
.prowler-vision-row[hidden] { display: none; }
.pv-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-weight: 600; color: var(--accent); white-space: nowrap; }
.pv-toggle input { accent-color: var(--accent); margin: 0; }
.pv-seeing { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.prowler-vision-row.is-off .pv-toggle { color: var(--text-dim); }

/* Video Sniffer (Import Account Document -> Video link) */
.vs-h { margin: 14px 0 6px; font-size: 13px; }
.vs-list { margin: 0 0 6px 18px; padding: 0; font-size: 13px; }
.vs-list li { margin: 2px 0; }
.vs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-chip { font-size: 12px; padding: 2px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); }
.vs-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 9px; border: 1px solid; border-radius: 999px; white-space: nowrap; }
.vs-result { margin-top: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.vs-result-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.vs-log { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.vs-log li { display: flex; gap: 10px; margin: 6px 0; }
.vs-log-icon { font-weight: 800; width: 14px; text-align: center; }
.vs-upsell { padding: 16px; border: 1px dashed var(--border); border-radius: 10px; background: var(--panel-2); }

/* ─── Live tool log in the Prowler chat ────────────────────────────────────── */
.prowler-invoke { display: flex; align-items: flex-start; gap: 8px; margin: 3px 0 3px 4px; padding: 5px 9px; max-width: 94%;
  border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--panel-2); font-size: 12px; line-height: 1.35; }
.prowler-invoke.is-mcp { border-left-color: var(--accent-2); }
.prowler-invoke.is-dynatrace { border-left-color: #b455b6; }
.prowler-invoke.is-error { border-left-color: var(--bad); }
.prowler-invoke.is-stopped { opacity: .65; }
.pi-icon { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.pi-img { width: 16px; height: 16px; border-radius: 3px; object-fit: contain; background: #fff; }
.pi-paw { width: 15px; height: 16px; fill: var(--accent); }
.pi-main { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; }
.pi-who { font-weight: 700; color: var(--text); }
.pi-tool { color: var(--text); text-transform: lowercase; }
.pi-args, .pi-note { color: var(--text-dim); overflow-wrap: anywhere; }
.pi-note { flex-basis: 100%; }
.prowler-invoke.is-error .pi-note { color: var(--bad); }
.pi-state { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; color: var(--text-dim); }
.pi-mark { font-weight: 700; color: var(--good); }
.prowler-invoke.is-error .pi-mark { color: var(--bad); }
.pi-spin { width: 11px; height: 11px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: pi-rot .7s linear infinite; }
@keyframes pi-rot { to { transform: rotate(360deg); } }

/* ─── Large-data job progress (Prowler chat) ───────────────────────────────── */
.prowler-progress { margin: 4px 0 4px 4px; padding: 7px 10px; max-width: 94%; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); font-size: 12px; }
.pp-text { color: var(--text); margin-bottom: 5px; overflow-wrap: anywhere; }
.pp-track { height: 4px; border-radius: 2px; background: var(--border); overflow: hidden; }
.pp-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }

/* ── Database Browser (db-browser.js): pgweb-style Data tab ─────────────────────────────────────────────── */
.dbb-root { display: flex; flex-direction: column; gap: 10px; min-height: 60vh; }
.dbb-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dbb-conn-pick { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.dbb-conn-pick select { min-width: 220px; }
.dbb-readonly { margin-left: auto; font-size: 11px; padding: 2px 8px; border: 1px solid var(--good); color: var(--good); border-radius: 999px; }
.dbb-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; align-items: start; }
.dbb-side { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; max-height: calc(100vh - 220px); }
.dbb-side input { margin: 8px; }
.dbb-tables { overflow-y: auto; padding-bottom: 8px; }
.dbb-schema { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); padding: 8px 12px 4px; }
.dbb-table { display: flex; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 5px 12px; background: none; border: 0; color: var(--text); font-size: 13px; cursor: pointer; }
.dbb-table:hover { background: var(--panel-2); }
.dbb-table.is-active { background: rgba(20, 150, 255, .16); color: var(--accent); }
.dbb-table-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbb-table-name em { font-size: 10px; color: var(--text-dim); font-style: normal; border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; margin-right: 4px; }
.dbb-count { font-size: 11px; color: var(--text-dim); flex-shrink: 0; }
.dbb-main { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); min-width: 0; }
.dbb-tabs { display: flex; align-items: center; border-bottom: 1px solid var(--border); }
.dbb-tab { padding: 9px 16px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-dim); cursor: pointer; font-size: 13px; }
.dbb-tab.is-active { color: var(--text); border-bottom-color: var(--accent); }
.dbb-crumb { margin-left: auto; padding-right: 12px; font-size: 12px; color: var(--text-dim); font-family: ui-monospace, Consolas, monospace; }
.dbb-pane { padding: 10px; min-width: 0; }
.dbb-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.dbb-toolbar input[type=search] { min-width: 220px; }
.dbb-grid-wrap { overflow: auto; max-height: calc(100vh - 340px); border: 1px solid var(--border); border-radius: 8px; }
.dbb-grid { border-collapse: collapse; font-size: 12.5px; width: 100%; }
.dbb-grid th, .dbb-grid td { padding: 5px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; white-space: nowrap; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.dbb-grid th { position: sticky; top: 0; background: var(--panel-2); z-index: 1; font-weight: 600; }
.dbb-grid th.dbb-sortable { cursor: pointer; user-select: none; }
.dbb-grid th.dbb-sortable:hover { color: var(--accent); }
.dbb-grid tbody tr:hover { background: rgba(255, 255, 255, .03); }
.dbb-type { display: block; font-size: 10px; font-weight: 400; color: var(--text-dim); }
.dbb-null { color: var(--text-dim); font-style: italic; }
.dbb-empty { text-align: center !important; color: var(--text-dim); padding: 20px !important; }
.dbb-h { margin: 14px 0 6px; font-size: 13px; }
.dbb-sql { width: 100%; box-sizing: border-box; font-family: ui-monospace, Consolas, monospace; font-size: 13px; resize: vertical; background: var(--panel-2); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.dbb-empty-state { text-align: center; padding: 60px 20px; }
@media (max-width: 800px) { .dbb-layout { grid-template-columns: 1fr; } .dbb-side { max-height: 240px; } }
.dbb-readonly.dbb-write { border-color: var(--warn); color: var(--warn); }
.dbc-access-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.dbc-access-row select { min-width: 120px; }
.dbc-access-name { flex: 1; min-width: 0; }
.dbc-access-col { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.dbb-pane.dbb-loading .dbb-grid-wrap { opacity: .45; pointer-events: none; transition: opacity .15s; }
.dbb-edit-hint { margin: 0 0 8px; }
.dbb-rowtools { width: 1%; padding: 0 !important; text-align: center !important; }
.dbb-edit-btn { background: none; border: 0; color: var(--text-dim); cursor: pointer; padding: 4px 8px; font-size: 13px; }
.dbb-edit-btn:hover { color: var(--accent); }
.dbb-editable tbody td[data-col] { cursor: cell; }
.dbb-editable tbody td.dbb-editing { padding: 0 !important; overflow: visible; max-width: none; background: var(--panel-2); outline: 2px solid var(--accent); outline-offset: -2px; }
.dbb-cell-input { box-sizing: border-box; width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; padding: 5px 10px; outline: none; }
.dbb-form-field { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin-bottom: 8px; }
.dbb-form-field > label { padding-top: 7px; word-break: break-word; }
.dbb-type-inline { display: block; font-size: 10px; color: var(--text-dim); font-weight: 400; }
.dbb-form-input { display: flex; flex-direction: column; gap: 4px; }
.dbb-form-input input[type=text], .dbb-form-input input:not([type]), .dbb-form-input textarea, .dbb-form-input select { width: 100%; box-sizing: border-box; }
.dbb-null-chk { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 4px; }
@media (max-width: 600px) { .dbb-form-field { grid-template-columns: 1fr; } }

/* ─── My Account card: profile + personal settings, with account-dialog style left tabs ─── */
#profileModal .profile-card {
  width: min(1180px, 96vw); height: min(90vh, 880px); max-height: 94vh; padding: 0; overflow: hidden; display: block;
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
}
#profileModal .profile-card > .drawer-close { z-index: 3; top: 14px; right: 18px; font-size: 26px; }
.profile-dlg { height: 100%; grid-template-columns: 250px minmax(0, 1fr); }
.profile-nav {
  padding: 26px 14px 20px; gap: 3px; overflow-y: auto; border-right: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(20, 150, 255, .06), transparent 40%), var(--bg);
}
.profile-nav-id { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 6px 18px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.profile-nav-id .oav { display: block; }
.profile-nav-name { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 8px; overflow-wrap: anywhere; }
.profile-nav-sub { font-size: 12px; color: var(--text-dim); overflow-wrap: anywhere; }
.profile-nav .acct-dlg-nav-item { font-size: 14px; padding: 11px 12px; }
.profile-nav .acct-dlg-nav-item[hidden] { display: none; }
.profile-content { padding: 30px 40px 28px; overflow-y: auto; min-height: 0; height: 100%; }
.profile-content .settings-panel { max-width: 960px; }
.profile-content .settings-section { margin-bottom: 22px; }
.profile-h { font-size: 22px; margin: 0 0 6px; }
.profile-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; }
.profile-photo-col, .profile-fields-col { display: flex; flex-direction: column; gap: 14px; }
.profile-photo-col .profile-photo-row { margin-bottom: 4px; }
.profile-opt { font-weight: 400; color: var(--text-dim); font-size: 11px; }
.profile-actions { display: flex; align-items: center; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.profile-settings-actions[hidden] { display: none; }
@media (max-width: 860px) {
  .profile-dlg { grid-template-columns: 1fr; }
  .profile-nav { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--border); padding: 16px 12px 10px; }
  .profile-nav-id { flex-direction: row; width: 100%; text-align: left; padding-bottom: 10px; }
  .profile-content { padding: 20px 18px; height: auto; }
  .profile-grid { grid-template-columns: 1fr; }
}

/* ─── Events: page polish, and a calendar that fits the page ─── */
.ev-wrap { min-width: 0; max-width: 100%; gap: 16px; }
#eventsContent { overflow-x: hidden; }
.ev-header .section-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }

.ev-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.7fr); gap: 12px; }
.ev-stat {
  min-width: 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: 12px;
  background: linear-gradient(155deg, rgba(20, 150, 255, .12), rgba(106, 91, 255, .05) 65%), var(--panel);
}
.ev-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-dim); }
.ev-stat-value { margin-top: 4px; font-size: 28px; font-weight: 800; line-height: 1.15; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-stat-wide .ev-stat-value { font-size: 18px; font-weight: 700; padding: 6px 0 3px; }
.ev-stat-sub { margin-top: 2px; font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ev-filters { border-radius: 12px; padding: 12px 14px; }

.ev-cal {
  min-width: 0; gap: 10px; padding: 18px 18px 20px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}
.ev-cal-header { gap: 14px; flex-wrap: wrap; padding-bottom: 6px; }
.ev-cal-nav { display: flex; gap: 6px; align-items: center; }
.ev-cal-navbtn { min-width: 34px; font-size: 16px; line-height: 1; }
.ev-cal-month { flex: 1; min-width: 0; text-align: left; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.ev-cal-count { font-size: 12px; font-weight: 600; color: var(--accent); background: rgba(20, 150, 255, .12); border: 1px solid rgba(20, 150, 255, .3); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
/* minmax(0, 1fr): the chips never wrap, and a plain 1fr column would grow to fit them and push the grid off the page */
.ev-cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ev-cal-dow-cell { padding: 6px 0; font-size: 11px; letter-spacing: .08em; }
.ev-cal-cell {
  min-width: 0; min-height: 120px; padding: 7px; gap: 3px; border-radius: 9px;
  transition: transform .12s, border-color .12s, box-shadow .12s, background .12s;
}
.ev-cal-cell-we { background: rgba(255, 255, 255, .028); }
.ev-cal-cell-has { border-color: rgba(20, 150, 255, .32); }
.ev-cal-cell:hover:not(.ev-cal-cell-out) { transform: translateY(-1px); border-color: var(--accent); background: rgba(20, 150, 255, .08); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.ev-cal-cell-out { background: transparent; border-style: dashed; opacity: .28; }
.ev-cal-cell-today { border-color: var(--accent); background: rgba(20, 150, 255, .09); box-shadow: inset 0 0 0 1px var(--accent); }
.ev-cal-daynum { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.ev-cal-cell-today .ev-cal-daynum { background: var(--accent); color: #fff; }
.ev-cal-chip { min-width: 0; padding: 3px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; line-height: 1.35; transition: filter .1s; }
.ev-cal-chip:hover { filter: brightness(1.25); }
.ev-cal-more { padding: 1px 4px; font-size: 11px; font-weight: 600; color: var(--accent); }

@media (max-width: 1100px) { .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ev-stat-wide { grid-column: 1 / -1; } }
@media (max-width: 720px) {
  .ev-stats { grid-template-columns: 1fr 1fr; }
  .ev-cal { padding: 12px 10px 14px; }
  .ev-cal-month { font-size: 19px; }
  .ev-cal-cell { min-height: 74px; padding: 4px; }
  .ev-cal-chip { font-size: 10px; padding: 2px 4px; }
}

/* ─── Account page: the former top-level tabs (summary, opportunities, advisor, tech stack, dashboard, sent log, market intel) ─── */
.acct-dlg-nav-sep { height: 1px; margin: 8px 6px; background: var(--border); }
#tab-account .acct-dlg-nav { position: sticky; top: 0; align-self: start; }
/* These panes need the whole width (the original settings/notes panes are capped at 880px) and no second scroll container. */
#tab-account .acct-dlg-pane.acct-pane-wide > div:not(#accountNotesWrap) { max-width: none; }
.acct-pane-wide .tab-scroll-content { padding: 0; max-height: none; overflow: visible; }

/* ─── Demo sites: the Demo page (cards / list) and My Account → Demo sites ─── */
.ds-wrap { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.ds-header { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ds-header .section-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; }
.ds-header-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ds-search { width: 240px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; outline: none; }
.ds-search:focus { border-color: var(--accent); box-shadow: var(--ring); }

/* the logo: a rounded tile with the image contained, or a coloured letter when there is none */
.ds-logo { flex: 0 0 auto; width: var(--ds-size, 48px); height: var(--ds-size, 48px); display: inline-flex; align-items: center; justify-content: center; border-radius: calc(var(--ds-size, 48px) * .22); background: #fff; overflow: hidden; box-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.ds-logo img { width: 100%; height: 100%; object-fit: contain; padding: calc(var(--ds-size, 48px) * .1); box-sizing: border-box; }
.ds-logo-letter { font-weight: 800; font-size: calc(var(--ds-size, 48px) * .46); box-shadow: none; }
.ds-logo-broken { background: var(--panel-2); }

.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ds-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0;
  padding: 20px 20px 16px; border: 1px solid var(--border); border-radius: 14px; color: var(--text); text-decoration: none;
  background: linear-gradient(155deg, rgba(20, 150, 255, .10), rgba(106, 91, 255, .04) 70%), var(--panel);
  transition: transform .14s, border-color .14s, box-shadow .14s;
}
.ds-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.ds-card .ds-logo { margin-bottom: 8px; }
.ds-card-name { font-size: 17px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-card-host { font-size: 12px; color: var(--accent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-card-desc { font-size: 13px; color: var(--text-dim); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-card-open { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 700; color: var(--accent); opacity: .85; white-space: nowrap; }
.ds-card:hover .ds-card-open { opacity: 1; }

.ds-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); overflow: hidden; }
.ds-row { display: flex; align-items: center; gap: 14px; padding: 12px 18px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); transition: background .1s; }
.ds-row:last-child { border-bottom: none; }
.ds-row:hover { background: rgba(20, 150, 255, .08); }
.ds-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ds-row-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-row-desc { font-size: 12.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-row-host { font-size: 12.5px; color: var(--accent); white-space: nowrap; max-width: 28%; overflow: hidden; text-overflow: ellipsis; }
.ds-row .ds-card-open { margin: 0; padding: 0; }
.ds-empty { padding: 48px 20px; text-align: center; border: 1px dashed var(--border); border-radius: 14px; }
.ds-empty h3 { margin: 0 0 6px; font-size: 18px; }

.ds-manage-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 20px; }
.ds-manage-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.ds-manage-row.is-editing { border-color: var(--accent); }
.ds-manage-main { flex: 1; min-width: 0; }
.ds-manage-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-manage-url { font-size: 12px; color: var(--text-dim); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-manage-actions { display: flex; gap: 6px; flex: 0 0 auto; }
.ds-form { margin-top: 8px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.ds-form-title { margin: 0 0 14px; font-size: 15px; }
.ds-form-grid { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; }
.ds-form-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ds-form-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 720px) { .ds-form-grid { grid-template-columns: 1fr; } .ds-search { width: 100%; } .ds-row-host { display: none; } }

/* a [hidden] text button must stay hidden (e.g. Remove logo / Remove photo with nothing to remove) */
.link-btn[hidden] { display: none !important; }

/* ─── Demo cards, second pass: a tinted hero band holding the logo, then name / domain / description, then a footer ─── */
.ds-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ds-card {
  --h: var(--ds-hue, 210);
  padding: 0; gap: 0; align-items: stretch; overflow: hidden; border-radius: 18px;
  border: 1px solid color-mix(in srgb, hsl(var(--h), 70%, 60%) 22%, var(--border));
  background: var(--panel);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.ds-card:hover { transform: translateY(-5px); border-color: hsl(var(--h), 75%, 58%); box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px hsla(var(--h), 75%, 58%, .45), 0 0 34px hsla(var(--h), 80%, 55%, .22); }
.ds-card-hero {
  position: relative; display: flex; align-items: center; justify-content: center; height: 128px;
  background:
    radial-gradient(circle at 22% 18%, hsla(var(--h), 85%, 62%, .42), transparent 58%),
    radial-gradient(circle at 85% 90%, hsla(calc(var(--h) + 50), 80%, 55%, .30), transparent 55%),
    linear-gradient(135deg, hsl(var(--h), 55%, 17%), hsl(calc(var(--h) + 35), 50%, 11%));
  border-bottom: 1px solid hsla(var(--h), 70%, 60%, .18);
  transition: filter .18s;
}
.ds-card:hover .ds-card-hero { filter: brightness(1.18) saturate(1.1); }
.ds-card-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .22)); pointer-events: none; }
.ds-card-hero .ds-logo { position: relative; z-index: 1; border-radius: 20px; box-shadow: 0 8px 22px rgba(0, 0, 0, .45), 0 0 0 4px rgba(255, 255, 255, .08); transition: transform .18s; }
.ds-card:hover .ds-card-hero .ds-logo { transform: scale(1.06); }
.ds-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 14px; min-width: 0; flex: 1; }
.ds-card-name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ds-card-host { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; color: hsl(var(--h), 85%, 80%); background: hsla(var(--h), 70%, 50%, .14); border: 1px solid hsla(var(--h), 70%, 60%, .28); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-card-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h), 85%, 62%); box-shadow: 0 0 8px hsl(var(--h), 85%, 62%); }
.ds-card-desc { font-size: 13.5px; line-height: 1.5; color: var(--text-dim); }
.ds-card-foot { display: flex; justify-content: flex-end; padding: 10px 20px 16px; }
.ds-card-go { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: hsl(var(--h), 90%, 82%); background: hsla(var(--h), 70%, 50%, .13); border: 1px solid hsla(var(--h), 70%, 60%, .3); transition: background .15s, color .15s, border-color .15s; }
.ds-card:hover .ds-card-go { background: hsl(var(--h), 75%, 50%); color: #fff; border-color: transparent; }
.ds-card-arrow { display: inline-block; transition: transform .15s; }
.ds-card:hover .ds-card-arrow { transform: translate(2px, -2px); }
.ds-card:focus-visible { outline: 2px solid hsl(var(--h), 80%, 62%); outline-offset: 3px; }
.ds-card .ds-card-hero .ds-logo { margin: 0; }

/* The browser window's own scrollbar (far right) is hidden; the page still scrolls with the wheel, trackpad, keyboard and touch.
   Scrollable areas inside the page keep their own bars. */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ─── User modal: settings an org admin manages for the person (email transport, schedule, Apify, messaging) ─── */
.um-settings { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.um-settings-title { margin: 0 0 4px; font-size: 14px; }
.um-settings-group { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.um-settings-group h5 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.um-settings-group .settings-field + .settings-field { margin-top: 12px; }

/* ─── Contact info (phone + home/office address): My Account → Profile and the admin's user modal ─── */
.profile-sub { margin: 26px 0 4px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 16px; }
.contact-info { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.contact-info .form-row { margin: 0; }
.contact-info-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.contact-info-row-3 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .8fr); }
@media (max-width: 640px) { .contact-info-row, .contact-info-row-3 { grid-template-columns: 1fr; } }

/* ─── Import Document: drop / browse for files (import-files.js) ─── */
.import-file-drop {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; padding: 14px 16px;
  border: 2px dashed var(--border); border-radius: 12px; background: rgba(20, 150, 255, .04); cursor: pointer; outline: none;
  transition: border-color .12s, background .12s;
}
.import-file-drop:hover, .import-file-drop:focus-visible { border-color: var(--accent); }
.import-file-drop.is-over { border-color: var(--accent); border-style: solid; background: rgba(20, 150, 255, .14); }
.import-file-drop.is-busy { opacity: .6; cursor: progress; }
.import-file-drop-icon { font-size: 22px; }
.import-file-drop-hint { flex-basis: 100%; margin: 0; }
.import-file-list { display: flex; flex-wrap: wrap; gap: 6px; }
.import-file-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 6px 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel-2); font-size: 12px; }
.import-file-kind { font-size: 10px; font-weight: 800; letter-spacing: .05em; color: var(--accent); text-transform: uppercase; }
.import-file-name { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file-note { color: var(--text-dim); }
.import-file-x { background: none; border: 0; color: var(--text-dim); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 5px; }
.import-file-x:hover { color: var(--bad); }

/* ─── Org chart, second pass: pronounced connectors, a spacing slider, and extra layouts ─── */
.org-chart-scroll, .user-org-chart {
  --oc-line: color-mix(in srgb, var(--accent) 75%, var(--border));
  --oc-line-w: 2px;
  --oc-gap-y: 28px;
  --oc-gap-x: 10px;
}
/* Rounded elbows where a branch turns down to its first and last child. The straight drop line is kept for the middle ones. */
.org-tree li:first-child:not(:only-child) > .org-card::before,
.org-tree li:last-child:not(:only-child) > .org-card::before { display: none; }
.org-tree li:first-child:not(:only-child)::after {
  height: var(--oc-gap-y); border-left: var(--oc-line-w) solid var(--oc-line); border-top-left-radius: 16px;
}
.org-tree li:last-child:not(:only-child)::before {
  height: var(--oc-gap-y); border-right: var(--oc-line-w) solid var(--oc-line); border-top-right-radius: 16px;
}
.org-card { box-shadow: 0 1px 6px rgba(0, 0, 0, .25); }
.org-card:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .38), 0 0 0 2px rgba(20, 150, 255, .22); }

/* Spacing slider (in the chart's control bar) */
.orgchart-density { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; padding-left: 10px; border-left: 1px solid var(--border); font-size: 11px; color: var(--text-dim); }
.orgchart-density input[type="range"] { width: 96px; accent-color: var(--accent); cursor: pointer; }
/* Compact: smaller cards that keep the essentials; spacious: the same card with room around it */
.org-chart-scroll[data-density="compact"] .org-card { min-width: 118px; max-width: 150px; padding: 7px 9px; }
.org-chart-scroll[data-density="compact"] .org-card .oc-role,
.org-chart-scroll[data-density="compact"] .org-card .oc-meta,
.org-chart-scroll[data-density="compact"] .org-card .quality-row,
.org-chart-scroll[data-density="compact"] .org-card .oc-role-badge { display: none; }
.org-chart-scroll[data-density="compact"] .org-card .oc-avatar { width: 28px; height: 28px; font-size: 11px; margin-bottom: 4px; }
.org-chart-scroll[data-density="compact"] .oc-name { font-size: 12px; }
.org-chart-scroll[data-density="compact"] .oc-title { font-size: 10.5px; }

/* Layout switcher above the chart */
.oc-layout-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.oc-layout-bar .oc-layout-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); margin-right: 2px; }
.oc-layout-pill { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text-dim); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.oc-layout-pill:hover { color: var(--text); border-color: var(--accent); }
.oc-layout-pill.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Left-to-right tree: the same markup, turned on its side */
.org-tree.org-tree-h { --oc-lvl: calc(var(--oc-gap-y, 28px) * 1.9); flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.org-tree-h li { flex-direction: row; align-items: center; padding: calc(var(--oc-gap-x, 10px) * .7) 0; }
.org-tree-h ul { flex-direction: column; align-items: flex-start; justify-content: center; padding-top: 0; padding-left: var(--oc-lvl); }
.org-tree-h ul::before { top: 50%; left: 0; transform: none; width: calc(var(--oc-lvl) / 2); height: 0; border-left: 0; border-top: var(--oc-line-w) solid var(--oc-line); }
.org-tree-h li::before, .org-tree-h li::after, .org-tree-h li:first-child:not(:only-child)::after, .org-tree-h li:last-child:not(:only-child)::before {
  right: auto; width: 0; height: auto; border: 0; border-radius: 0; border-left: var(--oc-line-w) solid var(--oc-line); left: calc(var(--oc-lvl) / -2);
}
.org-tree-h li::before { top: 0; bottom: 50%; }
.org-tree-h li::after { top: 50%; bottom: 0; }
.org-tree-h li:first-child::before, .org-tree-h li:last-child::after { display: none; }
.org-tree-h .org-card { margin-top: 0; }
.org-tree-h li:first-child:not(:only-child) > .org-card::before,
.org-tree-h li:last-child:not(:only-child) > .org-card::before,
.org-tree-h .org-card::before {
  display: block; top: 50%; left: calc(var(--oc-lvl) / -2); transform: none; width: calc(var(--oc-lvl) / 2); height: 0;
  border-left: 0; border-top: var(--oc-line-w) solid var(--oc-line);
}
.org-tree-h > li > .org-card::before { display: none; }
.org-tree-h > li { padding-left: 0; }

/* Outline: a collapsible, searchable indented list */
.org-chart-scroll.oc-outline-scroll { cursor: default; padding: 14px 18px 22px; height: auto; max-height: min(74vh, 760px); }
.oc-outline-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; position: sticky; top: 0; z-index: 2; padding: 4px 0 10px; background: var(--panel); }
.oc-outline-search { flex: 1; min-width: 200px; max-width: 360px; padding: 7px 11px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 13px; outline: none; }
.oc-outline-search:focus { border-color: var(--accent); }
.oc-outline, .oc-outline ul { list-style: none; margin: 0; padding: 0; }
.oc-outline ul { margin-left: 15px; padding-left: 18px; border-left: var(--oc-line-w, 2px) solid var(--oc-line); }
.oc-ol-item { position: relative; }
.oc-ol-item.is-collapsed > ul { display: none; }
.oc-ol-item.oc-ol-hide { display: none; }
.oc-ol-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 2px 0; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background .1s, border-color .1s; }
.oc-ol-row:hover, .oc-ol-row:focus-visible { background: rgba(20, 150, 255, .08); border-color: var(--border); outline: none; }
.oc-ol-row.oc-ol-match { background: rgba(245, 166, 35, .12); border-color: rgba(245, 166, 35, .45); }
.oc-ol-caret { width: 22px; height: 22px; flex: 0 0 auto; border: 0; background: none; color: var(--text-dim); cursor: pointer; font-size: 13px; line-height: 1; border-radius: 6px; padding: 0; }
.oc-ol-caret:hover { background: var(--panel-2); color: var(--text); }
.oc-ol-leaf { cursor: default; }
.oc-ol-item.is-collapsed > .oc-ol-row .oc-ol-caret { transform: rotate(-90deg); }
.oc-ol-row .oc-avatar { width: 32px; height: 32px; font-size: 12px; margin: 0; flex: 0 0 auto; }
.oc-ol-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.oc-ol-main .oc-name { text-align: left; font-size: 14px; margin: 0; }
.oc-ol-main .oc-title { text-align: left; margin: 0; font-size: 12px; }
.oc-ol-count { font-size: 11px; color: var(--text-dim); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.oc-ol-tags { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

/* Buying committee: contacts grouped by the role they play in the deal */
.org-chart-scroll.oc-committee-scroll { cursor: default; padding: 16px 18px 22px; height: auto; max-height: none; overflow: visible; }
.oc-cm-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.oc-cm-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--panel-2); }
.oc-cm-chip.is-ok { border-color: rgba(46, 204, 113, .5); color: var(--good); background: rgba(46, 204, 113, .08); }
.oc-cm-chip.is-gap { border-color: rgba(245, 166, 35, .5); color: var(--warn); background: rgba(245, 166, 35, .08); }
.oc-cm-chip.is-risk { border-color: rgba(255, 92, 92, .5); color: var(--bad); background: rgba(255, 92, 92, .08); }
.oc-cm-lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.oc-cm-lane { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); overflow: hidden; }
.oc-cm-lane-head { padding: 11px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, rgba(20, 150, 255, .12), transparent); }
.oc-cm-lane-title { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 800; }
.oc-cm-lane-count { font-size: 11px; font-weight: 700; color: var(--text-dim); background: var(--panel-2); border-radius: 999px; padding: 1px 9px; }
.oc-cm-lane-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.oc-cm-lane.is-economic-buyer .oc-cm-lane-head { background: linear-gradient(135deg, rgba(106, 91, 255, .22), transparent); }
.oc-cm-lane.is-champion .oc-cm-lane-head { background: linear-gradient(135deg, rgba(46, 204, 113, .20), transparent); }
.oc-cm-lane.is-blocker .oc-cm-lane-head { background: linear-gradient(135deg, rgba(255, 92, 92, .20), transparent); }
.oc-cm-body { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 56px; }
.oc-cm-empty { font-size: 12px; color: var(--text-dim); padding: 8px 4px; text-align: center; font-style: italic; }
.oc-cm-card { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--panel); cursor: pointer; transition: transform .12s, border-color .12s, box-shadow .12s; }
.oc-cm-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.oc-cm-card .oc-avatar { width: 36px; height: 36px; font-size: 13px; margin: 0; flex: 0 0 auto; }
.oc-cm-card-main { min-width: 0; flex: 1; }
.oc-cm-card .oc-name { text-align: left; font-size: 13.5px; margin: 0; }
.oc-cm-card .oc-title { text-align: left; margin: 1px 0 0; font-size: 11.5px; }
.oc-cm-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; font-size: 11px; color: var(--text-dim); }

/* ── Inroads ─────────────────────────────────────────────────────────────── */
.inr-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.inr-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted, #667); }
.inr-form .inr-wide, .inr-form .inr-actions { grid-column: 1 / -1; }
.inr-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.inr-meta { margin: 8px 0 12px; font-size: 13px; }
.inr-warn { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.inr-card { border: 1px solid var(--border); border-radius: 10px; background: var(--panel); padding: 14px 16px; margin-bottom: 12px; }
.inr-card-head { display: flex; gap: 12px; align-items: flex-start; }
.inr-card-title { min-width: 0; }
.inr-card-title h4 { margin: 0 0 6px; overflow-wrap: anywhere; }
.inr-score { flex: 0 0 auto; min-width: 44px; padding: 6px 8px; text-align: center; font-weight: 700; border-radius: 8px; border: 1px solid var(--border); }
.inr-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.inr-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border); }
.inr-verified { border-color: #2ecc71; }
.inr-inferred { border-color: #e0a100; }
.inr-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0; }
.inr-node { display: inline-flex; flex-direction: column; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 12px; }
.inr-node small { opacity: .7; }
.inr-arrow { opacity: .6; }
.inr-card details, .inr-internal, .inr-rejected { margin-top: 8px; font-size: 13px; }
.inr-card pre { white-space: pre-wrap; font: inherit; margin: 8px 0; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.inr-quote { opacity: .8; font-style: italic; }
.inr-risk { opacity: .85; font-size: 13px; }
@media (max-width: 760px) { .inr-form { grid-template-columns: 1fr; } }

/* ── Meeting guide: tabs, rail groups, logistics, agenda, knowledge, coaching, outreach ───────────────────────────── */
.mg-meta { font-size: 12px; color: var(--text-dim); white-space: nowrap; padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; }
.mg-rail { max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 2px; gap: 8px; }
.mg-grp { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.mg-grp > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; font-size: 12.5px; font-weight: 700; cursor: pointer; list-style: none; user-select: none; }
.mg-grp > summary::-webkit-details-marker { display: none; }
.mg-grp > summary::after { content: '▸'; color: var(--text-dim); font-size: 11px; margin-left: 4px; }
.mg-grp[open] > summary::after { content: '▾'; }
.mg-grp > summary > span:first-child { flex: 1; }
.mg-grp-badge { font-size: 11px; font-weight: 600; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.mg-grp-body { padding: 2px 12px 12px; }
.mg-grp .mg-rail-card { border: 0; padding: 0; background: none; }
.mg-grp .mg-nav { border: 0; border-radius: 0; margin: 0 -12px -12px; }
.mg-grp .mg-nav a { padding: 7px 12px; }
.mg-grp .mg-rail-h { margin: 8px 0 4px; }
.mg-grp .mg-rail-h:first-child { margin-top: 2px; }
.mg-grp .mg-label { margin-top: 10px; }
.mg-lg-row { display: flex; gap: 8px; }
.mg-lg-fmt { display: flex; flex-wrap: wrap; gap: 6px; }
.mg-att-rail { max-height: 170px; }
.mg-prep { display: flex; flex-direction: column; gap: 3px; }
.mg-prep-i { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; font-size: 12.5px; line-height: 1.4; }
.mg-prep-i label { display: flex; gap: 7px; cursor: pointer; align-items: flex-start; }
.mg-prep-i.done span { text-decoration: line-through; color: var(--text-dim); }
.mg-prep-i .mg-mini { padding: 0 6px; opacity: .55; }

.mg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); position: sticky; top: 56px; z-index: 4; background: var(--bg, #0d1320); padding-top: 2px; flex-wrap: wrap; }
.mg-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--text-dim); font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 14px; cursor: pointer; position: relative; }
.mg-tab:hover { color: var(--text); }
.mg-tab.sel { color: var(--text); border-bottom-color: var(--accent, #1496ff); }
.mg-tab-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; margin-left: 6px; vertical-align: middle; }
#mgTabBody { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.mg-page { display: flex; flex-direction: column; gap: 14px; }
.mg-page-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mg-page-h h3 { margin: 0; font-size: 17px; }
.mg-page-sub { margin: 4px 0 0; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.mg-page-sum { margin: 0; font-size: 13.5px; color: var(--text-dim); }
.mg-card h4 { margin: 0 0 10px; font-size: 15px; }
.mg-empty { padding: 18px; border: 1px dashed var(--border); border-radius: 10px; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.mg-link { background: none; border: 0; color: var(--accent, #1496ff); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
.mg-aibar { border: 1px solid rgba(20,150,255,.35); background: rgba(20,150,255,.06); border-radius: 10px; padding: 12px 14px; }
.mg-aibar-h { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.mg-aibar-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

.mg-ag-row { display: grid; grid-template-columns: 74px 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.mg-ag-time { font-size: 13px; font-weight: 700; padding-top: 8px; font-variant-numeric: tabular-nums; color: var(--text-dim); }
.mg-ag-mins { text-align: center; }
.mg-ag-label { font-weight: 600; }
.mg-ag-sub { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.mg-ag-act { display: flex; gap: 4px; }
.mg-ag-foot { display: flex; gap: 8px; }
.mg-ag-tot { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); }
.mg-ag-tot.ok { color: #22c55e; border-color: rgba(34,197,94,.5); }
.mg-ag-tot.over { color: #f87171; border-color: rgba(248,113,113,.5); }
.mg-ag-tot.under { color: #f5a623; border-color: rgba(245,166,35,.5); }
@media (max-width: 760px) { .mg-ag-row { grid-template-columns: 56px 56px minmax(0, 1fr); } .mg-ag-act { grid-column: 1 / -1; } .mg-ag-sub { grid-template-columns: 1fr; } }

.mg-blocks { display: flex; flex-direction: column; gap: 10px; }
.mg-bsum { font-size: 13.5px; }
.mg-block { border-left: 3px solid var(--accent, #1496ff); padding-left: 10px; }
.mg-block-h { display: flex; gap: 6px; margin-bottom: 4px; align-items: center; }
.mg-btitle { font-weight: 700; background: none; border-color: transparent; padding-left: 4px; }
.mg-btitle:hover, .mg-btitle:focus { border-color: var(--border); }
.mg-bitems { line-height: 1.55; }
.mg-blocks > .mg-mini { align-self: flex-start; }
.mg-person-h { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.mg-person-meta { font-size: 12px; color: var(--text-dim); text-align: right; }
.mg-person-meta a { color: var(--accent, #1496ff); }
.mg-rec { margin-top: 10px; font-size: 12.5px; }
.mg-rec > summary { cursor: pointer; color: var(--text-dim); font-weight: 600; }
.mg-facts { margin: 6px 0 0; padding-left: 18px; line-height: 1.5; }
.mg-facts li { margin-bottom: 3px; }

.mg-out-filter { display: flex; gap: 6px; }
.mg-timeline { display: flex; flex-direction: column; gap: 6px; }
.mg-touch { display: grid; grid-template-columns: 28px minmax(0, 1fr) 92px; gap: 10px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; font-size: 13px; }
.mg-touch-ico { font-size: 16px; text-align: center; }
.mg-touch-out { color: #22c55e; font-size: 12.5px; }
.mg-touch-snip { margin-top: 2px; line-height: 1.4; }
.mg-touch-when { font-size: 12px; text-align: right; }

/* ── Spoken Chat ─────────────────────────────────────────────────────────────── */
.prowler-spoken-row { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-bottom: 1px solid var(--border); font-size: 12px; }
.prowler-spoken-row[hidden] { display: none; }
.prowler-spoken-toggle, .prowler-spoken-voice, .prowler-spoken-stopall { border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; min-height: 28px; }
.prowler-spoken-toggle.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.prowler-spoken-stopall { display: none; }
.prowler-spoken-row.is-speaking .prowler-spoken-stopall { display: inline-block; }
.prowler-spoken-note { color: #b45309; font-size: 11px; }
.prowler-spoken-pop { position: absolute; top: 100%; left: 8px; z-index: 30; width: min(340px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; background: var(--surface, #fff); color: var(--text); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.22); padding: 12px; }
.prowler-spoken-pop[hidden] { display: none; }
.sp-title { font-weight: 700; margin-bottom: 8px; }
.sp-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted, #6b7280); margin: 8px 0 3px; }
.sp-lock-note { text-transform: none; font-weight: 500; letter-spacing: 0; }
.sp-voice { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; padding: 5px 4px; border-radius: 6px; cursor: pointer; }
.sp-voice:hover { background: var(--hover, rgba(0,0,0,.05)); }
.sp-voice.is-locked { opacity: .65; }
.sp-voice-name { font-weight: 600; }
.sp-voice-desc { grid-column: 2; font-size: 11px; color: var(--text-muted, #6b7280); }
.sp-preview { grid-column: 3; grid-row: 1 / span 2; border: 1px solid var(--border); background: transparent; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; color: var(--text); }
.sp-field { display: block; margin-top: 10px; font-size: 12px; }
.sp-field select, .sp-field input[type=range] { display: block; width: 100%; margin-top: 4px; }
.sp-seg { display: flex; gap: 4px; margin-top: 4px; }
.sp-seg button { flex: 1; border: 1px solid var(--border); background: transparent; color: var(--text); border-radius: 6px; padding: 5px 0; cursor: pointer; }
.sp-seg button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sp-seg button:disabled { opacity: .4; cursor: not-allowed; }
.sp-check { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; }
.sp-warn { margin-top: 10px; padding: 6px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; font-size: 11px; }
.sp-foot { margin-top: 12px; text-align: right; }
.prowler-spoken { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 5px 8px; border-radius: 8px; background: var(--hover, rgba(0,0,0,.05)); font-size: 12px; }
.prowler-spoken-play, .prowler-spoken-stop { border: 0; background: transparent; cursor: pointer; color: var(--accent); font-size: 14px; min-width: 28px; min-height: 28px; }
.prowler-spoken-stop { display: none; color: var(--text-muted, #6b7280); }
.prowler-spoken.is-speaking .prowler-spoken-stop { display: inline-block; }
.prowler-spoken.is-speaking .prowler-spoken-play { animation: spPulse 1s infinite; }
.prowler-spoken-text { flex: 1; font-style: italic; }
.prowler-spoken-tag { font-size: 10px; border: 1px solid var(--border); border-radius: 999px; padding: 0 6px; color: var(--text-muted, #6b7280); white-space: nowrap; }
@keyframes spPulse { 50% { opacity: .45; } }
@media (max-width: 640px) { .prowler-spoken-toggle, .prowler-spoken-voice, .prowler-spoken-stopall { min-height: 44px; padding: 6px 14px; font-size: 14px; } .sp-preview { width: 44px; height: 44px; } }

.sp-meter { height: 6px; border-radius: 3px; background: var(--border); margin-top: 4px; overflow: hidden; }
.sp-meter > div { height: 100%; background: var(--accent); }

/* Platform Admin -> Skills library, and the chat skill picker */
.skl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.skl-views { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.skl-view { background: transparent; border: 0; color: var(--text-dim); font: inherit; font-weight: 700; font-size: 13px; padding: 8px 16px; cursor: pointer; }
.skl-view:hover { color: var(--text); }
.skl-view.is-active { background: var(--accent); color: #fff; }
.skl-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.skl-stat { font-size: 12px; color: var(--text-dim); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; }
.skl-stat b { color: var(--text); }
.skl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.skl-toolbar input[type=search] { flex: 1; min-width: 240px; }
.skl-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-bottom: 10px; background: rgba(20,150,255,0.1); border: 1px solid rgba(20,150,255,0.35); border-radius: 9px; font-size: 13px; }
.skl-table-wrap { border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; }
.skl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.skl-table th { text-align: left; padding: 9px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); background: var(--panel-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.skl-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.skl-table tr:last-child td { border-bottom: 0; }
.skl-table tr:hover td { background: rgba(255,255,255,0.025); }
.skl-table tr.is-off td { opacity: 0.55; }
.skl-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.skl-name { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left; }
.skl-name:hover { color: var(--accent); text-decoration: underline; }
.skl-desc { color: var(--text-dim); font-size: 12px; margin-top: 2px; max-width: 620px; }
.skl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.skl-tags span { font-size: 10.5px; color: var(--text-dim); background: var(--panel-2); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.skl-flag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--warn); border: 1px solid var(--warn); border-radius: 5px; padding: 0 5px; vertical-align: middle; }
.skl-kind { font-size: 11px; font-weight: 700; border-radius: 5px; padding: 2px 8px; }
.skl-kind-persona { color: #b9a6ff; background: rgba(106,91,255,0.16); }
.skl-kind-skill { color: #6ec1ff; background: rgba(20,150,255,0.16); }
.skl-row-actions { white-space: nowrap; text-align: right; }
.skl-switch { position: relative; display: inline-block; width: 36px; height: 20px; }
.skl-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.skl-switch span { position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background 0.15s; cursor: pointer; }
.skl-switch span::before { content: ''; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform 0.15s; }
.skl-switch input:checked + span { background: var(--good); }
.skl-switch input:checked + span::before { transform: translateX(16px); }
.skl-switch input:focus-visible + span { box-shadow: var(--ring, 0 0 0 2px rgba(20,150,255,.5)); }
.skl-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.skl-empty { text-align: center; padding: 44px 20px; border: 1px dashed var(--border); border-radius: 12px; }
.skl-empty-ico { font-size: 38px; }
.skl-empty h4 { margin: 8px 0 4px; }
.skl-empty p { color: var(--text-dim); max-width: 460px; margin: 0 auto 14px; }
.skl-toast { position: fixed; right: 22px; bottom: 22px; z-index: 1400; max-width: 380px; padding: 10px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 8px 30px rgba(0,0,0,0.45); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.18s, transform 0.18s; }
.skl-toast.is-on { opacity: 1; transform: none; }
.skl-toast.is-good { border-color: var(--good); }
.skl-toast.is-bad { border-color: var(--bad); color: var(--bad); }
.skl-drop { text-align: center; padding: 40px 20px; border: 2px dashed var(--border); border-radius: 14px; background: var(--panel-2); transition: border-color 0.15s, background 0.15s; }
.skl-drop.is-over, .skl-drop:focus-visible { border-color: var(--accent); background: rgba(20,150,255,0.08); outline: none; }
.skl-drop-ico { font-size: 34px; color: var(--accent); }
.skl-drop h4 { margin: 6px 0 4px; font-size: 16px; }
.skl-drop p { color: var(--text-dim); font-size: 13px; max-width: 560px; margin: 0 auto 16px; }
.skl-stage { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.skl-stage-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.skl-stage-head .btn { margin-left: auto; }
.skl-stage-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.skl-stage-list span { font-size: 11.5px; font-family: ui-monospace, Menlo, monospace; color: var(--text-dim); background: var(--panel-2); border-radius: 5px; padding: 2px 8px; }
.skl-stage-go { margin-top: 14px; display: flex; gap: 8px; }
.skl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 12px; }
.skl-stage label, .skl-modal label, .skl-find label, .skl-agent-form label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; }
.skl-stage label input:not([type=checkbox]), .skl-stage label select, .skl-modal label input:not([type=checkbox]), .skl-modal label select, .skl-modal textarea, .skl-agent-form input, .skl-agent-form select, .skl-agent-form textarea, .skl-find textarea { display: block; width: 100%; margin-top: 4px; }
.skl-check { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; font-weight: 500 !important; }
.skl-bar { height: 8px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin: 14px 0 6px; }
.skl-bar div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.25s; }
.skl-tally { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.skl-tally span { background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px; font-size: 12px; color: var(--text-dim); }
.skl-tally b { display: block; font-size: 20px; color: var(--text); }
.skl-tally-created b { color: var(--good); } .skl-tally-error b { color: var(--bad); }
.skl-errors { font-size: 12px; color: var(--text-dim); max-height: 180px; overflow: auto; padding-left: 18px; }
.skl-modal { width: 760px; max-width: 94vw; }
.skl-modal-head { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px 10px; border-bottom: 1px solid var(--border); }
.skl-modal-head h3 { font-size: 17px; }
.skl-x { margin-left: auto; background: none; border: 0; color: var(--text-dim); font-size: 24px; line-height: 1; cursor: pointer; }
.skl-modal-body { padding: 16px 20px; overflow-y: auto; }
.skl-modal-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
.skl-mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; line-height: 1.5; }
.skl-test { margin-top: 6px; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px; }
.skl-test summary { cursor: pointer; font-weight: 700; font-size: 13px; }
.skl-test-row { display: flex; gap: 8px; margin-top: 8px; }
.skl-test-row input { flex: 1; }
.skl-test-out { white-space: pre-wrap; font-size: 13px; margin-top: 10px; max-height: 280px; overflow: auto; }
.skl-find { max-width: 760px; }
.skl-find textarea { margin-bottom: 10px; }
.skl-picks { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.skl-pick { display: flex; gap: 12px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.skl-pick-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.skl-agents { display: grid; grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr); gap: 28px; }
@media (max-width: 1000px) { .skl-agents { grid-template-columns: 1fr; } }
.skl-agent-form h4, .skl-agent-list h4 { margin-bottom: 4px; }
.skl-draft { margin-top: 18px; padding: 14px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(20,150,255,0.05); }
.skl-agent { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-top: 8px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.skl-agent.is-off { opacity: 0.55; }
.skl-chips, .skl-chat-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 10px; }
.skl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: rgba(106,91,255,0.16); border: 1px solid rgba(106,91,255,0.45); color: #d6ccff; border-radius: 999px; padding: 3px 6px 3px 11px; }
.skl-chip-agent { background: rgba(20,150,255,0.16); border-color: rgba(20,150,255,0.5); color: #bfe3ff; }
.skl-chip button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; opacity: 0.7; }
.skl-chip button:hover { opacity: 1; }
.skl-chat-chips { margin: 0; padding: 6px 12px 0; }
.skl-chips-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.skl-add { position: relative; margin-bottom: 12px; }
.skl-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; background: var(--panel); border: 1px solid var(--border); border-radius: 9px; max-height: 220px; overflow: auto; box-shadow: 0 10px 30px rgba(0,0,0,0.45); }
.skl-suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; font-size: 13px; padding: 8px 12px; cursor: pointer; }
.skl-suggest button:hover { background: var(--panel-2); }
.skl-chat-pop { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 30; max-height: 300px; overflow-y: auto; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 -10px 34px rgba(0,0,0,0.5); padding: 4px; }
.skl-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); font: inherit; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.skl-pop-item.is-on, .skl-pop-item:hover { background: rgba(20,150,255,0.14); }
.skl-pop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.skl-pop-main b { font-size: 13px; }
.skl-pop-main small { font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skl-pop-cat { font-size: 10.5px; color: var(--text-dim); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.skl-pop-empty { padding: 12px; font-size: 13px; color: var(--text-dim); }
@media (prefers-reduced-motion: reduce) { .skl-toast, .skl-switch span, .skl-switch span::before, .skl-bar div { transition: none; } }

.prowler-wake-toggle[hidden] { display: none; }
.prowler-wake-toggle.is-on { background: #15803d; border-color: #15803d; color: #fff; }
.prowler-wake-toggle.is-on::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #bbf7d0; margin-right: 5px; animation: spPulse 1.6s infinite; }
.prowler-wake-toggle.is-capturing { background: #b91c1c; border-color: #b91c1c; }
.prowler-spoken-style { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #d6ccff; background: rgba(106,91,255,0.16); border: 1px solid rgba(106,91,255,0.45); border-radius: 999px; padding: 2px 4px 2px 10px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prowler-spoken-style button { background: none; border: 0; color: inherit; cursor: pointer; font-size: 14px; line-height: 1; padding: 0 5px; opacity: 0.7; }
.prowler-spoken-style button:hover { opacity: 1; }

/* App revision badge (header) + change-history modal — see public/revision.js */
.rev-badge { font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-dim); background: rgba(20,150,255,0.08); border: 1px solid rgba(20,150,255,0.25); border-radius: 999px; padding: 4px 9px; cursor: pointer; white-space: nowrap; }
.rev-badge:hover { color: var(--accent); border-color: var(--accent); }
.rev-badge.rev-dirty { color: #eea53c; border-color: rgba(238,165,60,0.5); }
.rev-panel { width: 720px; max-width: 94vw; max-height: 86vh; }
.rev-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.rev-head h3 { margin: 0; }
.rev-summary { padding: 0 20px 10px; }
.rev-list { list-style: none; margin: 0; padding: 0 8px; overflow-y: auto; flex: 1; }
.rev-row { display: grid; grid-template-columns: 74px 1fr; column-gap: 12px; padding: 9px 12px; border-top: 1px solid rgba(255,255,255,0.06); }
.rev-row.rev-current { background: rgba(20,150,255,0.08); border-radius: 8px; }
.rev-sha { font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--accent); text-decoration: none; }
.rev-sha:hover { text-decoration: underline; }
.rev-subject { color: var(--text); overflow-wrap: anywhere; }
.rev-meta { grid-column: 2; font-size: 11px; color: var(--text-dim); }
.rev-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: rgba(20,150,255,0.18); color: var(--accent); padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.rev-foot { padding: 12px 20px 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.rev-foot a { color: var(--accent); }
