:root {
  --sidebar-w: 220px;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --border: #e5e5e2;
  --text: #1a1a1a;
  --text-muted: #737373;
  --sidebar-bg: #101014;
  --sidebar-text: #a3a3a3;
  --sidebar-active: #ffffff;
  --sidebar-hover: #1f1f27;
  --high: #dc2626;
  --high-bg: #fef2f2;
  --high-border: #fecaca;
  --medium: #d97706;
  --medium-bg: #fffbeb;
  --medium-border: #fde68a;
  --low: #6b7280;
  --low-bg: #f9fafb;
  --low-border: #e5e7eb;
  --acted-color: #15803d;
  --acted-bg: #f0fdf4;
  --acted-border: #bbf7d0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
}

.sidebar-header {
  padding: 22px 18px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.sidebar-sub {
  display: block;
  font-size: 11px;
  color: #4b4b5a;
  margin-top: 2px;
}

.sidebar-nav { padding: 10px; flex: 1; }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-footer-actions { padding: 10px; }

.sidebar-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 11px;
  color: #4b4b5a;
  letter-spacing: 0.02em;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  margin-bottom: 1px;
  transition: background 0.1s, color 0.1s;
}

.nav-link:hover { background: var(--sidebar-hover); color: #d4d4d8; }
.nav-link.active { background: var(--sidebar-hover); color: var(--sidebar-active); font-weight: 500; }

/* ── Layout ── */

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 36px 44px;
  min-width: 0;
  max-width: calc(var(--sidebar-w) + 960px);
}

/* ── Flash ── */

.flashes { margin-bottom: 20px; }

.flash {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13.5px;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.flash-success { background: var(--acted-bg); color: var(--acted-color); border-color: var(--acted-border); }
.flash-error   { background: var(--high-bg); color: var(--high); border-color: var(--high-border); }

/* ── Page header ── */

.page-header { margin-bottom: 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.page-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
}

.breadcrumb:hover { color: var(--text); }

/* ── Stats ── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
}
.stat-card-link {
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.stat-card-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Section ── */

.section { margin-bottom: 36px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}

.section-action { font-size: 12.5px; color: var(--accent); text-decoration: none; }
.section-action:hover { text-decoration: underline; }

/* ── Opportunity card ── */

.opp-card {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.opp-card:first-child { border-top: 1px solid var(--border); }
.opp-card:hover { background: #fafaf8; }

.opp-card-link {
  display: block;
  padding: 14px 16px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.opp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.opp-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.opp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.opp-summary {
  font-size: 13px;
  color: #525252;
  line-height: 1.5;
  margin-bottom: 12px;
}

.opp-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px 12px;
}

/* ── Badges ── */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge-high     { background: var(--high-bg);   color: var(--high);   border-color: var(--high-border); }
.badge-medium   { background: var(--medium-bg); color: var(--medium); border-color: var(--medium-border); }
.badge-low      { background: var(--low-bg);    color: var(--low);    border-color: var(--low-border); }
.badge-acted    { background: var(--acted-bg);  color: var(--acted-color); border-color: var(--acted-border); }
.badge-ignored  { background: var(--low-bg);    color: var(--low);    border-color: var(--low-border); }
.badge-dismissed{ background: var(--high-bg);   color: var(--high);   border-color: var(--high-border); }

.type-badge {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.type-badge-client {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.type-badge-sector {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.paused-badge {
  display: inline-flex;
  padding: 2px 7px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-size: 11px;
  color: #92400e;
  font-weight: 500;
}

.brief-card-paused {
  opacity: 0.55;
}
.brief-card-paused:hover { opacity: 0.75; }

.brief-tag {
  display: inline-flex;
  padding: 2px 7px;
  background: #f0f0ee;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.1s;
  white-space: nowrap;
  line-height: 1;
  font-family: inherit;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 4px 10px; font-size: 12.5px; }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); border-color: #d1d1cd; }

.btn-acted { background: var(--acted-bg); color: var(--acted-color); border-color: var(--acted-border); }
.btn-acted:hover:not(:disabled) { background: #dcfce7; }

.btn-dismiss { background: var(--high-bg); color: var(--high); border-color: var(--high-border); }
.btn-dismiss:hover:not(:disabled) { background: #fee2e2; }

/* ── Filters ── */

.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

.filter-select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

.result-count { font-size: 13px; color: var(--text-muted); margin-left: auto; }

/* ── Brief card ── */

.brief-card {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}
.brief-card:first-child { border-top: 1px solid var(--border); }
.brief-card:hover { background: #fafaf8; }
.brief-card-main { flex: 1; min-width: 0; }

.brief-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brief-topics {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brief-last-sweep { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

.brief-card-stats {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
  text-align: right;
}

.brief-stat { font-size: 12px; color: var(--text-muted); text-align: left; }

.brief-stat-num {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.brief-stat-num.high { color: var(--high); }

/* ── Sweep row ── */

.sweep-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  transition: background 0.1s;
}
.sweep-row:first-child { border-top: 1px solid var(--border); }
.sweep-row:hover { background: #fafaf8; }

.sweep-brief {
  font-weight: 500;
  width: 160px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sweep-status { width: 90px; flex-shrink: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; }
.sweep-time { color: var(--text-muted); font-size: 12.5px; }
.sweep-counts { color: var(--text-muted); font-size: 12.5px; white-space: nowrap; flex: 1; }

/* ── Status dot ── */

.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-complete { background: #22c55e; }
.dot-running  { background: #f59e0b; }
.dot-failed   { background: var(--high); }

/* ── Empty state ── */

.empty { text-align: center; padding: 56px 24px; color: var(--text-muted); }
.empty-title { font-size: 15px; font-weight: 500; color: #525252; margin-bottom: 6px; }

/* ── Card (detail) ── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* ── Opportunity detail layout ── */

.opp-detail-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 400px;
}

.opp-detail-main {
  padding: 32px 36px;
}

.opp-detail-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 20px;
  color: var(--text);
}

.opp-detail-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.opp-detail-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.opp-detail-meta span:not(:last-child)::after {
  content: '·';
  margin-left: 6px;
}

.opp-detail-section {
  margin-bottom: 24px;
}

.opp-detail-surfaced {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.opp-detail-sidebar {
  padding: 24px 20px;
  border-left: 1px solid var(--border);
}

.opp-sidebar-item {
  margin-bottom: 14px;
}

.opp-sidebar-label {
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.opp-sidebar-value {
  font-size: 13px;
  color: var(--text);
}

.opp-sidebar-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.opp-sidebar-link:hover {
  text-decoration: underline;
}

.opp-sidebar-divider {
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

.action-btn-group-vertical {
  flex-direction: column;
}

.action-btn-group-vertical .btn {
  width: 100%;
  text-align: center;
}

/* ── Detail view ── */

.detail-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.detail-text { font-size: 13.5px; line-height: 1.6; color: #404040; }

.meta-bar {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.meta-item-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 3px;
}

.meta-item-value { font-size: 13.5px; font-weight: 500; color: var(--text); }

hr.divider { border: none; border-top: 1px solid var(--border); margin: 22px 0; }

.actions-ol { list-style: none; counter-reset: acts; margin: 0; padding: 0; }

.actions-ol li {
  counter-increment: acts;
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.actions-ol li:last-child { border-bottom: none; }

.actions-ol li::before {
  content: counter(acts);
  width: 22px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 1px;
}

.sources-list { list-style: none; padding: 0; }
.sources-list li { padding: 5px 0; font-size: 13px; }
.sources-list a { color: var(--accent); text-decoration: none; word-break: break-all; }
.sources-list a:hover { text-decoration: underline; }

/* ── Action panel ── */

.action-panel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 16px 0; }

.action-history { margin-top: 16px; }

.action-history-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.action-history-item:last-child { border-bottom: none; }

/* ── Brief detail ── */

.brief-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.brief-field { margin-bottom: 16px; }

.brief-field-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.brief-field-value { font-size: 13px; color: var(--text); line-height: 1.55; }

/* ── Brief meta row ── */

.brief-meta-row {
  display: flex;
  gap: 24px;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.brief-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brief-meta-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.brief-meta-value {
  font-size: 13px;
  color: var(--text);
}

.brief-meta-value a {
  color: var(--accent);
  text-decoration: none;
}

.brief-meta-value a:hover {
  text-decoration: underline;
}

.email-test-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.email-test-input {
  font-family: inherit;
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  outline: none;
  width: 180px;
}

.email-test-input:focus {
  border-color: var(--accent);
}

/* ── Brief nav cards ── */
.brief-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 8px;
}
.brief-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.brief-nav-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.brief-nav-card-empty { cursor: default; }
.brief-nav-card-empty:hover { border-color: var(--border); box-shadow: none; }
.brief-nav-stat { display: flex; align-items: baseline; gap: 6px; }
.brief-nav-num { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); }
.brief-nav-label { font-size: 13px; color: var(--text-muted); }
.brief-nav-sub { font-size: 12.5px; color: var(--text-muted); }
.brief-nav-arrow { font-size: 12.5px; color: var(--accent); margin-top: 4px; }

/* ── Sweep trigger ── */

.sweep-result {
  display: none;
  font-size: 13.5px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.sweep-result.success {
  display: block;
  background: var(--acted-bg);
  color: var(--acted-color);
  border-color: var(--acted-border);
}

.sweep-result.error {
  display: block;
  background: var(--high-bg);
  color: var(--high);
  border-color: var(--high-border);
}

/* ── Table ── */

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafaf8; }
tbody tr.row-link { cursor: pointer; }

/* ── Section count pill ── */

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  background: var(--border);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 6px;
  letter-spacing: 0;
  vertical-align: middle;
}

/* ── Sweep opportunity index ── */

.sweep-opp-index {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sweep-opp-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
}

.sweep-opp-row:last-child { border-bottom: none; }
.sweep-opp-row:hover { background: #fafaf8; }

.sweep-opp-num {
  font-size: 12px;
  font-weight: 600;
  min-width: 18px;
  padding-top: 2px;
}

.sweep-opp-badge {
  flex-shrink: 0;
  width: 72px;
  justify-content: center;
  margin-top: 1px;
}

.sweep-opp-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sweep-opp-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.sweep-opp-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.sweep-opp-note {
  font-style: italic;
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.sweep-opp-arrow {
  font-size: 14px;
  color: var(--text-muted);
  padding-top: 2px;
  flex-shrink: 0;
  transition: color 0.1s;
}

.sweep-opp-row:hover .sweep-opp-arrow { color: var(--accent); }

/* No-opps state in sweep */
.sweep-no-opps {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text);
}

.sweep-no-opps-icon {
  font-size: 22px;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.sweep-no-opps strong { display: block; margin-bottom: 4px; }
.sweep-no-opps p { color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Action radio group ── */

.action-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.action-radio-label {
  cursor: pointer;
  user-select: none;
}

.action-radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Dim unselected buttons; highlight selected */
.action-radio-label input[type="radio"]:not(:checked) + .btn {
  opacity: 0.55;
}

.action-radio-label input[type="radio"]:checked + .btn {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
}

/* Action history notes */
.action-notes {
  font-size: 12.5px;
  color: var(--text-muted);
  font-style: italic;
  flex: 1;
  line-height: 1.45;
}

/* ── Query disclosure (sweep detail) ── */

.query-disclosure {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 20px;
  overflow: hidden;
}

.query-disclosure-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: background 0.1s;
}

.query-disclosure[open] .query-disclosure-summary {
  border-bottom-color: var(--border);
}

.query-disclosure-summary:hover { background: #efefe d; }
.query-disclosure-summary::-webkit-details-marker { display: none; }
.query-disclosure-summary::before { content: '▶'; font-size: 9px; transition: transform 0.15s; }
.query-disclosure[open] .query-disclosure-summary::before { transform: rotate(90deg); }

.query-disclosure-count {
  background: var(--border);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  color: var(--text-muted);
}

.query-list {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.query-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.query-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.query-topic-tag {
  font-size: 11.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  color: var(--text-muted);
}

.query-text {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 12px 14px;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, 'SF Mono', Consolas, monospace;
  max-height: 220px;
  overflow-y: auto;
}

/* ── Finding card (sweep detail) ── */

.finding-card {
  padding: 18px 22px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}

.finding-card:hover { border-color: #d1d1cd; }

.finding-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  line-height: 1.35;
}

.finding-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.finding-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 12px;
}

.finding-link:hover { text-decoration: underline; }

.finding-summary {
  font-size: 13.5px;
  color: #404040;
  line-height: 1.6;
  margin-bottom: 8px;
}

.finding-relevant {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

/* ── Forms ── */

.form-row {
  margin-bottom: 20px;
}

.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.form-label-opt {
  font-weight: 400;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13.5px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.1s, box-shadow 0.1s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-textarea { resize: vertical; }

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

/* ── Day-of-week picker ── */
.day-picker {
  display: flex;
  gap: 6px;
}
.day-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.day-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}
.day-toggle.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.day-toggle.active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ── Topic tag input ── */
.topic-tag-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  cursor: text;
  min-height: 44px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.topic-tag-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.topic-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-glow);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  color: var(--accent);
  border-radius: 5px;
  padding: 2px 6px 2px 8px;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}
.topic-tag-text { line-height: 1.4; }
.topic-tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  opacity: 0.6;
  padding: 0 1px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.topic-tag-remove:hover { opacity: 1; }
.topic-tag-field {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text);
  flex: 1;
  min-width: 180px;
  padding: 2px 0;
}
.topic-tag-field::placeholder { color: var(--text-muted); }
.topic-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Type description ── */
.type-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
  min-height: 2.5em;
}

/* ── AI brief drafting (hero) ── */
.draft-hero {
  margin-bottom: 24px;
}
.draft-hero .form-textarea {
  min-height: 80px;
  resize: vertical;
}
.draft-hero-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.draft-hero-compact {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.draft-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--high);
}

/* ── More options (collapsible) ── */
.more-options {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.more-options-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  background: var(--bg);
  transition: background 0.1s;
}
.more-options-summary:hover { background: #efefed; }
.more-options-summary::-webkit-details-marker { display: none; }
.more-options-summary::before { content: '▶'; font-size: 9px; transition: transform 0.15s; }
.more-options[open] .more-options-summary::before { transform: rotate(90deg); }
.more-options[open] .more-options-summary { border-bottom: 1px solid var(--border); }
.more-options-body {
  padding: 16px 14px 8px;
}

/* ── Query preview ── */
.preview-section { margin-top: 4px; }
.preview-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-status {
  font-size: 12.5px;
  color: var(--text-muted);
}
.preview-panel {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.preview-panel-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.preview-panel-hint {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  opacity: 0.7;
}
.preview-query-list {
  margin: 0;
  padding: 10px 14px 10px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-query-item {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.form-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ── About footer ── */

.about-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.about-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  font-style: italic;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-wip {
  font-size: 12.5px;
  color: #a3a3a3;
  line-height: 1.55;
  font-style: italic;
}

/* ── View tabs ── */

.view-tabs {
  display: flex;
  gap: 2px;
  background: var(--border);
  border-radius: 6px;
  padding: 2px;
}

.view-tab {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.1s;
  white-space: nowrap;
}

.view-tab:hover { color: var(--text); background: rgba(255,255,255,0.5); }
.view-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

.filter-dropdowns {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ── Triage buttons (star/archive) ── */

.opp-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 16px 12px;
}

.triage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: #b0b0a8;
  cursor: pointer;
  transition: all 0.15s;
}

.triage-btn:hover { background: var(--border); color: var(--text-muted); }
.triage-btn.star-btn.active { color: #eab308; background: #fefce8; }
.triage-btn.star-btn.active:hover { background: #fef9c3; }
.triage-btn.archive-btn.active { color: var(--text-muted); background: var(--bg); }
.triage-btn.archive-btn.active:hover { background: var(--border); }

.opp-sidebar-actions {
  display: flex;
  gap: 6px;
}

/* ── Utils ── */

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 12.5px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Login page ── */

.login-body {
  background: #101014;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 340px;
  padding: 0 20px;
}

.login-brand {
  margin-bottom: 40px;
  text-align: center;
}

.login-title {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}

.login-cursor {
  font-size: 32px;
  font-weight: 300;
  color: #fff;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.login-sub {
  display: block;
  font-size: 12px;
  color: #4b4b5a;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.login-tagline {
  display: block;
  font-size: 13px;
  color: #6b6b7a;
  margin-top: 14px;
  letter-spacing: 0.01em;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
}

.login-input::placeholder {
  color: #4b4b5a;
}

.login-input:focus {
  border-color: rgba(255,255,255,0.25);
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: #101014;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.login-btn:hover {
  opacity: 0.85;
}

.login-error {
  text-align: center;
  font-size: 13px;
  color: var(--high);
  margin-bottom: 16px;
}

/* ── Mobile header ── */

.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--sidebar-bg);
  z-index: 110;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.mobile-brand {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

.sidebar-overlay.visible {
  display: block;
}

/* ── Responsive ── */

@media (max-width: 768px) {
  .mobile-header { display: flex; }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
    padding: 68px 16px 24px;
    max-width: 100%;
  }

  .page-header {
    flex-direction: column;
    gap: 10px;
  }

  .page-title { font-size: 18px; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brief-card {
    flex-direction: column;
    gap: 10px;
  }

  .brief-card-stats {
    gap: 16px;
    text-align: left;
  }

  .brief-topics {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-dropdowns {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar select,
  .filter-dropdowns select {
    width: 100%;
  }

  .result-count {
    margin-left: 0;
  }

  .opp-card-link { padding: 12px 14px 0; }
  .opp-footer { padding: 6px 14px 12px; }

  .brief-nav-grid {
    grid-template-columns: 1fr;
  }

  .opp-detail-layout {
    grid-template-columns: 1fr;
  }

  .opp-detail-sidebar {
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .opp-detail-main {
    padding: 20px 16px;
  }

  .opp-detail-sidebar {
    padding: 20px 16px;
  }

  .brief-header-bar {
    flex-direction: column;
  }

  table { font-size: 13px; }
  th, td { padding: 8px 10px; }

  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ── Onboarding tips ── */

.tip {
  display: none;
  position: relative;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 10px 32px 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #1e3a5f;
  margin-bottom: 14px;
}

.tip.visible { display: block; }

.tip::before {
  content: 'Tip';
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563eb;
  margin-right: 6px;
  vertical-align: 1px;
}

.tip-dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #93c5fd;
  font-size: 16px;
  line-height: 1;
  padding: 2px;
}

.tip-dismiss:hover { color: #2563eb; }

.tip-dismiss-all {
  display: none;
  font-size: 12px;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-bottom: 14px;
}

.tip-dismiss-all.visible { display: inline-block; }
.tip-dismiss-all:hover { color: var(--text); }

.sidebar-footer-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--sidebar-text);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  width: 100%;
  text-align: left;
  transition: background 0.1s, color 0.1s;
}

.sidebar-footer-link:hover { background: var(--sidebar-hover); color: #d4d4d8; }
.sidebar-footer-link svg { opacity: 0.6; flex-shrink: 0; }
.sidebar-footer-link:hover svg { opacity: 1; }

/* ── Share modal ── */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 16, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}
.share-modal-overlay[hidden] { display: none; }
.selection-bar[hidden] { display: none; }
.share-modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.share-modal-title { font-size: 16px; font-weight: 600; margin: 0; }
.share-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
}
.share-modal-close:hover { color: var(--text); }

.share-modal-body { padding: 18px 20px; overflow-y: auto; }

/* ── Share tray: floats at bottom of viewport ── */
.share-tray {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 900;
  max-width: calc(100vw - 32px);
  width: auto;
  animation: shareTraySlide 0.18s ease-out;
}
.share-tray[hidden] { display: none; }
@keyframes shareTraySlide {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.share-tray-inner {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 32px rgba(16, 16, 20, 0.14), 0 2px 6px rgba(16, 16, 20, 0.06);
  width: 380px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
}
.share-tray-header {
  padding: 14px 16px 10px;
}
.share-tray-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.share-tray-list {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.share-tray-list::-webkit-scrollbar { width: 4px; }
.share-tray-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.share-tray-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
  background: var(--bg);
}

.share-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 6px 5px 10px;
  font-size: 12.5px;
  min-width: 0;
}
.share-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.share-chip-dot-high { background: #ef4444; }
.share-chip-dot-medium { background: #f59e0b; }
.share-chip-dot-low { background: #a3a3a3; }
.share-chip-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.share-chip-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
  border-radius: 50%;
}
.share-chip-remove:hover { color: var(--text); background: var(--border); }

/* Modal summary list — what's about to be sent */
.share-modal-summary {
  list-style: none;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}
.share-modal-summary li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.share-summary-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.share-summary-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* Push main content up so the tray doesn't cover the last row */
body.has-share-tray .main { padding-bottom: 96px; }

/* Active state on share button when opp is in tray */
.triage-btn.share-trigger.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow, rgba(37, 99, 235, 0.08));
}

@media (max-width: 640px) {
  .share-tray { left: 16px; right: 16px; transform: none; max-width: calc(100vw - 32px); }
  .share-tray[hidden] { display: none; }
  .share-tray-inner { width: 100%; }
  @keyframes shareTraySlide {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .share-tray-chips { max-width: none; flex: 1; }
}

.share-field { display: block; margin-bottom: 14px; }
.share-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.share-field-hint { font-weight: 400; color: var(--text-muted); }
.share-field input,
.share-field textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  resize: vertical;
}
.share-field input:focus,
.share-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.share-modal-error {
  background: var(--high-bg);
  border: 1px solid var(--high-border);
  color: var(--high);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 4px;
}

.share-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

.triage-btn.share-btn:hover { color: var(--accent); border-color: var(--accent); }

