/* ============================================================
   Outreach Command Center
   Shakuro-style light canvas + generous white cards,
   with the Command Center gold as the primary accent.
   ============================================================ */

:root {
  --canvas: #efeeea;
  --card: #ffffff;
  --card-alt: #faf9f6;

  --primary: #c8952b;
  --primary-dark: #a87a1f;
  --primary-soft: #fbf3e2;

  --secondary: #4a90d9;
  --positive: #4a7c4e;
  --positive-soft: #edf5ee;
  --danger: #d9503a;
  --danger-soft: #fdeeeb;

  --text: #1c1c1e;
  --text-2: #55555a;
  --muted: #8e8e93;
  --border: #e6e4df;
  --border-soft: #f0efeb;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(28, 28, 30, 0.04);
  --shadow: 0 1px 2px rgba(28, 28, 30, 0.04), 0 10px 28px rgba(28, 28, 30, 0.05);

  --sidebar-w: 236px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--canvas);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }

/* ============ LOGIN ============ */

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 34px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.login-mark {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
}

.login-card h1 { font-size: 19px; }
.login-sub { color: var(--muted); margin: 0 0 10px; font-size: 13px; }

.login-card input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--card-alt);
  transition: border-color 0.15s, background 0.15s;
}
.login-card input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}

.error-text { color: var(--danger); font-size: 12.5px; margin: 2px 0 0; min-height: 1em; }

/* ============ BUTTONS ============ */

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

.ghost-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ghost-btn:hover { background: var(--border-soft); color: var(--text); }
.ghost-btn svg { width: 17px; height: 17px; fill: currentColor; flex: 0 0 auto; }

/* ============ APP SHELL ============ */

.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 22px;
}
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.brand-name { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }

.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.nav-item svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
  flex: 0 0 auto;
}
.nav-item[data-view="overview"] svg,
.nav-item[data-view="queue"] svg,
.nav-item[data-view="prospects"] svg { fill: currentColor; stroke: none; }
.nav-item:hover { background: var(--border-soft); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }

.nav-badge {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  padding: 1px 7px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}

.sidebar-foot { border-top: 1px solid var(--border-soft); padding-top: 10px; }

.content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 28px 32px 60px;
  max-width: 1240px;
}

.view { display: none; }
.view.active { display: block; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ============ PAGE HEADER ============ */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { font-size: 22px; }
.page-sub { color: var(--muted); margin: 4px 0 0; font-size: 13px; }

.range-pills {
  display: flex;
  gap: 2px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.range-pills button {
  border: none;
  background: transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.range-pills button:hover { color: var(--text); }
.range-pills button.active { background: var(--primary); color: #fff; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters input[type="text"], .filters select, .filters input[type="date"] {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--primary); }
.date-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ============ CARDS & GRIDS ============ */

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.card-head h2 { font-size: 14.5px; }
.card-note { font-size: 12px; color: var(--muted); }

.grid-2, .grid-3 { display: grid; gap: 18px; margin-bottom: 18px; }
.grid-2 { grid-template-columns: 1.35fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-full { margin-bottom: 18px; }

/* ============ STAT TILES ============ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat-tile {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 17px 18px;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 9px;
}
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: 0 0 auto; }
.stat-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat-meta { font-size: 12px; color: var(--muted); margin-top: 5px; }
.stat-tile.is-accent { background: linear-gradient(145deg, #cf9d33, #b9862a); }
.stat-tile.is-accent .stat-label,
.stat-tile.is-accent .stat-meta { color: rgba(255, 255, 255, 0.78); }
.stat-tile.is-accent .stat-value { color: #fff; }
.stat-tile.is-accent .stat-dot { background: rgba(255, 255, 255, 0.85); }

/* ============ BREAKDOWN LIST ============ */

.breakdown-list { display: flex; flex-direction: column; gap: 11px; }
.breakdown-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.breakdown-name { font-size: 13px; color: var(--text-2); }
.breakdown-count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.breakdown-track {
  grid-column: 1 / -1;
  height: 5px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}
.breakdown-fill { height: 100%; border-radius: 999px; background: var(--primary); }

/* ============ STACK LIST (follow-ups / recent) ============ */

.stack-list { display: flex; flex-direction: column; gap: 9px; }

.stack-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--card-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.stack-main { flex: 1; min-width: 0; }
.stack-title {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.pill-warn { background: var(--danger-soft); color: var(--danger); }
.pill-ok { background: var(--positive-soft); color: var(--positive); }
.pill-neutral { background: var(--border-soft); color: var(--text-2); }
.pill-gold { background: var(--primary-soft); color: var(--primary-dark); }

.loom-item { flex-direction: column; align-items: stretch; gap: 9px; }
.stack-title .pill { margin-left: 6px; vertical-align: middle; }
.stack-row { display: flex; align-items: center; gap: 12px; }
.stack-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.loom-toggle-btn {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.loom-toggle-btn:hover { border-color: var(--muted); color: var(--text); }
.loom-retry-btn {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.loom-retry-btn:hover { border-color: var(--muted); color: var(--text); }
.loom-retry-btn:disabled { opacity: 0.55; cursor: default; }
.loom-form { display: flex; gap: 8px; }
.loom-url-input {
  flex: 1;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: var(--card-alt);
  color: var(--text);
}
.loom-url-input:focus { outline: none; border-color: var(--primary); background: #fff; }
.loom-save-btn {
  flex: 0 0 auto;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.loom-save-btn:hover { background: var(--primary-dark); }
.loom-save-btn:disabled { opacity: 0.55; cursor: default; }
.loom-status-note { font-size: 12px; color: var(--muted); }
.loom-cancel-btn {
  flex: 0 0 auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
}

/* ============ QUEUE ============ */

.channel-heading {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 22px 0 11px;
}
.channel-heading:first-child { margin-top: 0; }

.queue-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 13px;
}
.queue-card-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.step-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 9px;
  border-radius: 7px;
}
.queue-company { font-size: 14.5px; font-weight: 600; }
.owner-name { color: var(--muted); font-size: 13px; }
.due-tag { margin-left: auto; font-size: 11.5px; color: var(--muted); }

.message-text {
  width: 100%;
  min-height: 84px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  resize: vertical;
  background: var(--card-alt);
}
.message-text:focus { outline: none; border-color: var(--primary); }
.message-text.is-empty { color: var(--muted); font-style: italic; }

.queue-card-actions { display: flex; gap: 9px; margin-top: 13px; flex-wrap: wrap; align-items: center; }
.queue-card-actions .copy-btn,
.queue-card-actions .open-thread-btn {
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.queue-card-actions .copy-btn:hover,
.queue-card-actions .open-thread-btn:hover { border-color: var(--muted); color: var(--text); }
.open-thread-btn { display: inline-flex; align-items: center; gap: 6px; }

.mark-sent-btn {
  margin-left: auto;
  background: var(--positive);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
}
.mark-sent-btn:hover { opacity: 0.9; }
.mark-sent-btn:disabled { opacity: 0.55; cursor: default; }
.no-thread { color: var(--muted); font-size: 12.5px; }

/* ============ PROSPECTS ============ */

.prospect-row {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.prospect-main { flex: 1 1 240px; min-width: 200px; }
.prospect-company { font-size: 14px; font-weight: 600; }
.prospect-company .pill { margin-left: 6px; vertical-align: middle; }
.flag-row-group { display: flex; gap: 8px; }
.flag-row-group .flag-row { flex: 1 1 auto; padding: 7px 11px; }
.prospect-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.hook-line { color: var(--text-2); font-size: 12.5px; margin: 7px 0 0; font-style: italic; }
.prospect-controls { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.status-select, .notes-field {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  background: var(--card-alt);
  color: var(--text);
}
.status-select:focus, .notes-field:focus { outline: none; border-color: var(--primary); background: #fff; }
.notes-field { min-height: 58px; resize: vertical; line-height: 1.5; }
.save-btn {
  align-self: flex-end;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 17px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.save-btn:hover { background: var(--primary-dark); }

/* ============ LOG ACTIVITY FORM ============ */

.log-form { max-width: 660px; display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.field-hint { font-size: 12px; color: var(--muted); margin: 0; }

.log-form input[type="text"],
.log-form input[type="date"],
.log-form select,
.log-form textarea {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13.5px;
  background: var(--card-alt);
  color: var(--text);
  width: 100%;
}
.log-form input:focus, .log-form select:focus, .log-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
}
.log-form textarea { min-height: 84px; resize: vertical; line-height: 1.55; }

/* lead picker */
.lead-picker { position: relative; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.chip-row:empty { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  max-width: 100%;
}
.chip button {
  border: none;
  background: rgba(168, 122, 31, 0.15);
  color: inherit;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  line-height: 1;
  font-size: 13px;
  cursor: pointer;
  flex: 0 0 auto;
}
.chip button:hover { background: rgba(168, 122, 31, 0.3); }

.lead-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(28, 28, 30, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 30;
}
.lead-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-soft);
}
.lead-result:last-child { border-bottom: none; }
.lead-result:hover { background: var(--primary-soft); }
.lead-result em { font-style: normal; font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.lead-result.muted { color: var(--muted); cursor: default; }
.lead-result.muted:hover { background: transparent; }

/* channel toggles */
.chip-toggle-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip-toggle:hover { border-color: var(--muted); }
.chip-toggle.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 600;
}
.chip-toggle.is-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-toggle.is-primary::after { content: " · primary"; font-weight: 500; opacity: 0.85; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  cursor: pointer;
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.form-actions .btn-primary { min-width: 140px; }

/* ============ ACTIVITY TABLE ============ */

.table-card { padding: 6px 10px 10px; overflow-x: auto; }
.log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.log-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding: 13px 12px;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.log-table td { padding: 12px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.log-table tr:last-child td { border-bottom: none; }
.log-table td.nowrap { white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ============ MISC ============ */

.empty-state, .loading {
  color: var(--muted);
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  max-width: 90vw;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 100;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1080px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar {
    inset: auto 0 0 0;
    width: auto;
    flex-direction: row;
    border-right: none;
    border-top: 1px solid var(--border);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .sidebar-brand, .sidebar-foot { display: none; }
  .sidebar-nav { flex-direction: row; gap: 2px; }
  .nav-item {
    flex: 1;
    flex-direction: column;
    gap: 3px;
    padding: 8px 4px;
    font-size: 10.5px;
    position: relative;
  }
  .nav-item svg { width: 20px; height: 20px; }
  .nav-badge {
    position: absolute;
    top: 3px;
    left: 50%;
    margin-left: 5px;
    font-size: 9.5px;
    padding: 0 5px;
    min-width: 16px;
  }

  .content { margin-left: 0; padding: 20px 16px 92px; }
  .page-head h1 { font-size: 19px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-value { font-size: 22px; }
  .card { padding: 17px 16px; border-radius: var(--radius); }
  .queue-card { padding: 15px 15px; border-radius: var(--radius); }
  .queue-card-actions { flex-direction: column; align-items: stretch; }
  .queue-card-actions .copy-btn,
  .queue-card-actions .open-thread-btn,
  .mark-sent-btn { margin-left: 0; width: 100%; text-align: center; justify-content: center; }
  .mark-sent-btn { padding: 13px 18px; font-size: 14px; }
  .filters { width: 100%; }
  .filters input[type="text"] { flex: 1; }
  .prospect-row { flex-direction: column; gap: 12px; }
  .field-row { grid-template-columns: 1fr; gap: 20px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn-primary,
  .form-actions .btn-ghost { width: 100%; padding: 13px 16px; }
}
