/* ═══════════════════════════════════════════════════════════
   View details drawer · Phase 1
   One drawer per card type on the snapshot. Each drawer hosts
   its own Sources on/off toggle, providers-in-use row, and
   per-data-point provider sub-cards. The snapshot canvas no
   longer shows source provenance inline — the drawer is the
   single home for it.
   ═══════════════════════════════════════════════════════════ */

/* Backdrop scrim */
.drawer-scrim {
  position: fixed; inset: 0;
  background: rgba(17,30,69,0.36);
  opacity: 0; pointer-events: none;
  transition: opacity 220ms var(--ease);
  z-index: 90;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }
body.drawer-open { overflow: hidden; }

/* Drawer shell · slides in from the right */
.drawer-detail {
  position: fixed; top: 0; right: 0;
  width: min(620px, 92vw);
  height: 100vh;
  background: white;
  box-shadow: -8px 0 28px rgba(17,30,69,0.14);
  transform: translateX(100%);
  transition: transform 260ms var(--ease), visibility 0s 260ms;
  z-index: 100;
  display: flex; flex-direction: column;
  overflow: hidden;
  visibility: hidden;
}
.drawer-detail.open { transform: translateX(0); visibility: visible; transition: transform 260ms var(--ease), visibility 0s; }
.drawer-detail[hidden] { display: flex; }
/* Override default `hidden` while still keeping it accessible */

/* Header */
.drawer-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 10px; align-items: center;
  flex-shrink: 0;
  background: white;
}
.drawer-head-text { min-width: 0; }
.drawer-kicker {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.drawer-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 22px;
  letter-spacing: -0.014em;
  color: var(--ink-1);
  margin: 0;
  line-height: 1.15;
}
.drawer-title em { color: var(--signal); font-weight: 300; }
.drawer-close {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.drawer-close:hover { background: rgba(17,30,69,0.06); color: var(--ink); }

.drawer-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 6px 0;
  margin: 0 0 12px;
  font-family: 'Onest', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--signal);
  cursor: pointer;
  transition: color .15s;
}
.drawer-breadcrumb:hover {
  color: var(--ink-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Drawer Sources on/off toggle · same shape as the old snap-src-toggle */
.drawer-src-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(28,122,254,0.30);
  background: rgba(28,122,254,0.06);
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 12.5px;
  color: var(--signal);
  cursor: pointer;
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
  flex-shrink: 0;
}
.drawer-src-toggle::before {
  content: '';
  width: 26px; height: 14px;
  border-radius: 100px;
  background: rgba(28,122,254,0.32);
  flex-shrink: 0;
  transition: background 140ms var(--ease);
}
.drawer-src-toggle::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(17,30,69,0.20);
  transform: translateY(-50%);
  transition: transform 140ms var(--ease), background 140ms var(--ease);
}
.drawer-src-toggle.on {
  border-color: var(--signal);
  color: white;
  background: var(--signal);
}
.drawer-src-toggle.on::before { background: rgba(255,255,255,0.45); }
.drawer-src-toggle.on::after  { transform: translateY(-50%) translateX(12px); }

/* Body */
.drawer-body {
  padding: 22px 24px 28px;
  overflow-y: auto;
  flex: 1;
}

/* Sources-off hint · drops out when sources are on */
.drawer-src-hint {
  margin-bottom: 18px;
  padding: 12px 14px 12px 16px;
  background: rgba(28,122,254,0.04);
  border: 1px dashed rgba(28,122,254,0.22);
  border-radius: 10px;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.55;
}
.drawer-src-hint-glyph {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(28,122,254,0.12);
  color: var(--signal);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; flex-shrink: 0;
  margin-top: 1px;
}
.drawer-src-hint b { color: var(--signal); font-weight: 600; }
.drawer-detail.show-sources .drawer-src-hint { display: none; }

/* Providers-in-use row · only visible when sources on inside the drawer.
   The snapshot.css definition of .snap-vendor-key already exists; we
   just re-scope the visibility to the drawer container. */
.drawer-detail .snap-vendor-key {
  display: none;
}
.drawer-detail.show-sources .snap-vendor-key {
  display: flex;
}

/* Per-field provider sub-card visibility scoped to the drawer.
   .dd-source styles come from snapshot.css; we just override the
   visibility rule so they show when *this drawer* has sources on,
   regardless of where the dd-source sits. */
.drawer-detail .dd-source { display: none; }
.drawer-detail.show-sources .dd-source { display: block; }

/* Drawer content blocks */
.drawer-section { margin-bottom: 26px; }
.drawer-section:last-child { margin-bottom: 0; }
.drawer-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.drawer-section-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.008em;
  color: var(--ink-1);
  margin: 0;
}
.drawer-section-meta {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--ink-3);
}

.drawer-prose {
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  margin: 0 0 14px;
}
.drawer-prose strong { color: var(--ink-1); font-weight: 600; }
.drawer-prose em { color: var(--signal); font-weight: 300; }

/* Industry code detail · NAICS / SIC / MCC / GL / WC blocks */
.cf-code-block {
  background: rgba(17,30,69,0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.cf-code-block:last-of-type { margin-bottom: 14px; }
.cf-code-block-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 8px;
}
.cf-code-row {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px dashed rgba(17,30,69,0.06);
}
.cf-code-row:first-of-type { border-top: none; padding-top: 0; }
.cf-code-row:last-of-type { padding-bottom: 0; }
.cf-code-tag {
  font-family: 'SUSE Mono', monospace;
  font-size: 9px; letter-spacing: 0.10em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 3px 8px;
  background: rgba(28,122,254,0.08);
  color: var(--signal);
  border-radius: 100px;
  text-align: center;
  white-space: nowrap;
}
.cf-code-row:nth-of-type(2) .cf-code-tag {
  background: rgba(17,30,69,0.06);
  color: var(--ink-3);
}
.cf-code-value {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.cf-code-confidence {
  font-family: 'Onest', sans-serif;
  font-size: 11px; font-weight: 500;
  color: #128152;
  white-space: nowrap;
  background: rgba(31,184,121,0.12);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-flex; align-items: center; gap: 3px;
}
.cf-code-confidence.conf-amber {
  background: rgba(229,163,58,0.14);
  color: #a46b0d;
}
.cf-code-confidence.conf-low {
  background: rgba(17,30,69,0.04);
  color: var(--ink-3);
}
.cf-summary {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: rgba(28,122,254,0.04);
  border-left: 3px solid var(--signal);
  border-radius: 6px;
  font-size: 12.5px; line-height: 1.6;
  color: var(--ink-2);
}
.cf-summary strong { color: var(--ink-1); font-weight: 600; }

/* ───────────────────────────────────────────────────────────
   Risk drawer · structured detail panel
   ─────────────────────────────────────────────────────────── */
.rd-intro {
  margin: 0 0 14px;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-3);
}
.rd-summary-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.rd-header {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}
.rd-header-cell {
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.rd-header-cell:last-child { border-right: none; }
.rd-header-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 9px; letter-spacing: 0.10em;
  text-transform: uppercase; font-weight: 600;
  margin-bottom: 4px;
}
.rd-header-label.risk-med { color: #946011; }
.rd-header-label.risk-high { color: #c53030; }
.rd-header-label.risk-low { color: #128152; }
.rd-header-label.conf { color: var(--signal); }
.rd-header-label.verified { color: #128152; }
.rd-header-value {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em; color: var(--ink-1);
  line-height: 1.2;
}
.rd-header-sub {
  font-size: 11px; color: var(--ink-3);
  line-height: 1.45; margin-top: 4px;
}
.rd-summary-prose-wrap { padding: 16px; }
.rd-pillbar {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 12px;
}
.rd-pill {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.rd-pill--neutral { background: rgba(17,30,69,0.06); color: var(--ink-2); }
.rd-pill--low { background: rgba(31,184,121,0.16); color: #138a58; }
.rd-pill--med { background: rgba(229,163,58,0.18); color: #946011; }
.rd-pill--high { background: rgba(220,62,62,0.14); color: #c53030; }
.rd-pill--green { background: rgba(31,184,121,0.16); color: #138a58; }
.rd-pill--risk-low  { background: rgba(31,184,121,0.16); color: #138a58; }
.rd-pill--risk-med  { background: rgba(229,163,58,0.18); color: #946011; }
.rd-pill--risk-high { background: rgba(220,62,62,0.14); color: #c53030; }
.rd-summary-prose {
  font-size: 13px; line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.rd-section-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.rd-section-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.rd-section-card-title {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.rd-section-card-meta {
  font-family: 'Onest', sans-serif;
  font-size: 11.5px; font-weight: 500;
  color: var(--ink-3);
  margin-top: 2px;
}
.rd-section-link {
  font-family: 'Onest', sans-serif;
  font-size: 11.5px; font-weight: 600;
  color: var(--signal);
  text-decoration: none;
  white-space: nowrap;
}
.rd-section-link:hover { color: #0f4fb8; }

.rd-cat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 11px 14px;
  background: rgba(17,30,69,0.025);
  border-radius: 9px;
  margin-bottom: 6px;
}
.rd-cat-card:last-child { margin-bottom: 0; }
.rd-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.rd-cat-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.rd-cat-conf-badge {
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(17,30,69,0.035);
  padding: 1px 6px;
  border-radius: 4px;
  cursor: help;
}
.rd-cat-conf-badge--green {
  background: rgba(31,184,121,0.12);
  color: #128152;
}
.rd-cat-conf-badge--amber {
  background: rgba(229,163,58,0.14);
  color: #a46b0d;
}
.rd-cat-name {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 13px;
  color: var(--ink-1);
}
.rd-cat-status {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.rd-cat-pillwrap { display: flex; align-items: center; gap: 8px; }
.rd-cat-weight {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  background: rgba(17,30,69,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.rd-cat-glyph {
  font-size: 14px;
  line-height: 1;
}
.rd-cat-glyph--ok  { color: var(--ink-3); }
.rd-cat-glyph--med { color: #946011; }
.rd-cat-glyph--high { color: #c53030; }
.rd-cat-pill {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 10.5px;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.rd-cat-pill--low { background: rgba(31,184,121,0.14); color: #138a58; border-color: rgba(31,184,121,0.30); }
.rd-cat-pill--med { background: rgba(229,163,58,0.16); color: #946011; border-color: rgba(229,163,58,0.36); }
.rd-cat-pill--high { background: rgba(220,62,62,0.12); color: #c53030; border-color: rgba(220,62,62,0.32); }

.rd-cat-conf {
  font-family: 'SUSE Mono', monospace;
  font-weight: 600; font-size: 13px;
  color: var(--ink-1);
  white-space: nowrap;
}
.rd-cat-sources {
  font-family: 'SUSE Mono', monospace;
  font-weight: 500; font-size: 11px;
  color: var(--ink-3);
  white-space: nowrap;
}

.rd-findings {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.rd-findings li {
  position: relative;
  padding: 6px 0 6px 22px;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-2);
}
.rd-findings li::before {
  content: '';
  position: absolute;
  left: 4px; top: 13px;
  width: 6px; height: 6px;
  background: var(--signal);
  border-radius: 50%;
}

/* ───────────────────────────────────────────────────────────
   Compliance drawer · registration & compliance panel
   ─────────────────────────────────────────────────────────── */
.cd-posture-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  margin-bottom: 12px;
}
.cd-posture-kicker {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 6px;
}
.cd-posture-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 16px;
  color: var(--ink-1);
  margin: 0 0 10px;
}
.cd-posture-prose {
  font-size: 13px; line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 12px;
}

.cd-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.cd-stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
}
.cd-stat-card--inline { display: inline-block; margin: 6px 0 12px; }
.cd-stat-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 4px;
}
.cd-stat-value {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--ink-1);
}
.cd-stat-value--ok { color: #138a58; }
.cd-stat-value--warn { color: #946011; }
.cd-stat-value--alert { color: #c53030; }
.cd-stat-sub {
  font-size: 11px; color: var(--ink-3);
  margin-top: 2px;
}

.cd-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}
.cd-card-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 14.5px;
  color: var(--ink-1);
  margin: 0 0 12px;
}
.cd-card-prose {
  font-size: 12.5px; line-height: 1.55;
  color: var(--ink-2);
  margin: 8px 0 0;
}

.cd-filing-row {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17,30,69,0.08);
}
.cd-filing-row:last-of-type { border-bottom: none; padding-bottom: 6px; }
.cd-filing-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  margin-bottom: 4px;
}
.cd-filing-value {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 14px;
  color: var(--ink-1);
}
.cd-filing-sub {
  font-size: 11.5px; color: var(--ink-3);
  margin-top: 2px;
}
.cd-filing-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.cd-chip {
  font-family: 'Onest', sans-serif;
  font-weight: 500; font-size: 11px;
  padding: 3px 9px;
  background: rgba(28,122,254,0.06);
  color: var(--ink-2);
  border: 1px solid rgba(28,122,254,0.14);
  border-radius: 100px;
}
.cd-filing-list {
  font-size: 12.5px; line-height: 1.7;
  color: var(--ink-2);
}
.cd-filing-list-more { color: var(--ink-3); font-size: 11.5px; }

.cd-filing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 12px;
}
.cd-filing-table th {
  text-align: left;
  font-family: 'SUSE Mono', monospace;
  font-size: 9.5px; letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.cd-filing-table td {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(17,30,69,0.06);
  color: var(--ink-1);
}
.cd-filing-table td:last-child {
  font-family: 'SUSE Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-2);
}
.cd-filing-table tr:last-child td { border-bottom: none; }

.cd-license-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(17,30,69,0.08);
}
.cd-license-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.cd-license-name {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 13px;
  color: var(--ink-1);
}
.cd-license-state {
  font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap;
}

.cd-source-list {
  list-style: none;
  margin: 0; padding: 0;
}
.cd-source-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 12.5px; color: var(--ink-2);
  border-bottom: 1px dashed rgba(17,30,69,0.06);
}
.cd-source-list li:last-child { border-bottom: none; }

/* Fact row · used in Company facts drawer */
.drawer-fact-row {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(17,30,69,0.06);
  scroll-margin-top: 16px;
  border-radius: 8px;
  transition: background 200ms var(--ease), padding 200ms var(--ease);
}
.drawer-fact-row:first-child { padding-top: 0; }
.drawer-fact-row:last-child { border-bottom: none; padding-bottom: 0; }
.drawer-fact-row.is-flashed {
  background: rgba(28,122,254,0.10);
  padding: 14px 12px;
  animation: drawer-fact-flash 1600ms var(--ease) both;
}
@keyframes drawer-fact-flash {
  0%   { background: rgba(28,122,254,0.20); }
  60%  { background: rgba(28,122,254,0.10); }
  100% { background: transparent; padding-left: 0; padding-right: 0; }
}
.drawer-unlock-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 9px 14px;
  background: linear-gradient(135deg, rgba(10,140,130,0.16), rgba(10,140,130,0.06));
  border: 1px solid rgba(10,140,130,0.45);
  border-radius: 9px;
  font-family: 'Onest', sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: var(--forest-deep, #07685F);
  cursor: pointer;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), transform 140ms var(--ease);
}
.drawer-unlock-cta:hover {
  background: linear-gradient(135deg, rgba(10,140,130,0.26), rgba(10,140,130,0.12));
  border-color: rgba(10,140,130,0.70);
  transform: translateY(-1px);
}
.drawer-unlock-cta:focus-visible { outline: 2px solid var(--forest-deep, #07685F); outline-offset: 2px; }
.drawer-unlock-cta-glyph { font-size: 13px; line-height: 1; }
.drawer-unlock-cta-label { flex: 1; }
.drawer-unlock-cta-price {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(10,140,130,0.20);
  border-radius: 100px;
  color: var(--forest-deep, #07685F);
}
.drawer-fact-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.drawer-fact-value {
  font-family: 'Onest', sans-serif;
  font-size: 15px; color: var(--ink-1); font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.drawer-fact-value .sub {
  display: block;
  font-size: 12px; font-weight: 400;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0;
}
.verify-detail-steps {
  margin: 10px 0 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verify-detail-step {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  padding: 8px 12px;
  background: rgba(17,30,69,0.025);
  border-radius: 6px;
  border-left: 2px solid rgba(17,30,69,0.08);
}

/* Verdict block · used in Risk verdict drawer */
.drawer-verdict {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: rgba(17,30,69,0.025);
  border-radius: 12px;
  margin-bottom: 18px;
}
.drawer-verdict-stat-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.drawer-verdict-stat-value {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 24px;
  letter-spacing: -0.018em;
  color: var(--ink-1); line-height: 1;
}
.drawer-verdict-stat-value.med { color: #946011; }
.drawer-verdict-stat-value.matrix { color: var(--matrix); }

/* Two-column "what supports / what would strengthen" */
.drawer-twocol {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.drawer-twocol-head {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: 8px;
}
.drawer-twocol-head.matrix { color: var(--matrix); }
.drawer-twocol-head.med { color: #946011; }
.drawer-twocol ul {
  font-size: 12.5px; line-height: 1.55; color: var(--ink);
  padding-left: 18px; margin: 0;
}
.drawer-twocol li { margin-bottom: 4px; }

/* Signal row · used in Why/why not drawer (denser version of snapshot's signal-row) */
.drawer-signal {
  padding: 14px 0;
  border-bottom: 1px dashed rgba(17,30,69,0.06);
}
.drawer-signal:last-child { border-bottom: none; padding-bottom: 0; }
.drawer-signal-head {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 6px;
}
.drawer-signal-glyph {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  margin-top: 1px;
}
.drawer-signal.pos .drawer-signal-glyph { background: rgba(31,184,121,0.14); color: var(--matrix); }
.drawer-signal.neg .drawer-signal-glyph { background: rgba(220,62,62,0.10); color: var(--adverse); }
.drawer-signal-claim {
  font-size: 13.5px; font-weight: 600; color: var(--ink-1);
  line-height: 1.45;
}
.drawer-signal-read {
  font-size: 12.5px; line-height: 1.55; color: var(--ink-2);
  margin: 6px 0 0 30px;
}
.drawer-signal-read strong { color: var(--ink-1); }
.drawer-signal-sources { display: flex; gap: 5px; flex-wrap: wrap; margin: 8px 0 0 30px; }

/* Source list · used in Sources drawer (full bibliography) */
.drawer-source-list { display: flex; flex-direction: column; gap: 0; }
.drawer-source-item {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(17,30,69,0.06);
  align-items: start;
}
.drawer-source-item:last-child { border-bottom: none; }
.drawer-source-num {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 11px;
  color: var(--ink-3);
  padding-top: 2px;
}
.drawer-source-body { font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.drawer-source-body strong { color: var(--ink-1); font-weight: 600; }
.drawer-source-body a {
  display: block; margin-top: 3px;
  color: var(--signal); text-decoration: none;
  font-family: 'SUSE Mono', monospace; font-size: 11px;
  word-break: break-all;
}
.drawer-source-body a:hover { text-decoration: underline; }
.drawer-source-meta {
  display: block; font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--ink-3); margin-top: 4px;
}

/* Mobile */
@media (max-width: 760px) {
  .drawer-detail { width: 100vw; }
}

/* ═══════════════════════════════════════════════════════════
   Marvin CoPilot drawer · chat-style, lighter blue header
   ═══════════════════════════════════════════════════════════ */
.drawer-marvin .drawer-head {
  background: linear-gradient(135deg, rgba(28,122,254,0.08), rgba(138,181,246,0.04));
  grid-template-columns: auto 1fr auto;
  align-items: center;
}
.drawer-marvin-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cloud);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}
.drawer-marvin-avatar img { width: 38px; height: 38px; }
.drawer-marvin-status {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-top: 4px;
  display: flex; align-items: center; gap: 8px;
}
.drawer-marvin-status::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--matrix);
  border-radius: 50%;
}
.drawer-marvin .drawer-body {
  display: flex; flex-direction: column;
  gap: 0;
  padding-bottom: 14px;
}

/* Chat message bubbles */
.marvin-msg {
  background: rgba(28,122,254,0.06);
  border: 1px solid rgba(28,122,254,0.10);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-1);
}
.marvin-msg-kicker {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 9.5px;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.marvin-msg strong { font-weight: 700; }
.marvin-msg em { color: var(--signal); font-weight: 300; }

/* Suggestion chips */
.marvin-suggest {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: auto 0 14px;
  padding-top: 18px;
}
.marvin-suggest-chip {
  padding: 9px 16px;
  background: white;
  border: 1px solid rgba(28,122,254,0.32);
  border-radius: 100px;
  color: var(--signal);
  font-family: 'Onest', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 140ms var(--ease);
}
.marvin-suggest-chip:hover { background: rgba(28,122,254,0.08); }

/* Input bar at the bottom of the Marvin drawer */
.marvin-input-row {
  display: flex; gap: 8px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  align-items: center;
  flex-shrink: 0;
}
.marvin-input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--ink-1);
  outline: none;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.marvin-input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(28,122,254,0.16);
}
.marvin-input::placeholder { color: var(--ink-3); }
.marvin-send {
  width: 46px; height: 46px;
  background: var(--mainframe);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms var(--ease);
}
.marvin-send:hover { background: #1a2f6a; }

/* ═══════════════════════════════════════════════════════════
   Feedback drawers · two flavors share the same primitives
   (sections, accuracy buttons, multi-select chips, radio rows,
   textarea, send footer)
   ═══════════════════════════════════════════════════════════ */
.fb-section { margin-bottom: 24px; }
.fb-section-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.fb-section-title {
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.012em;
  color: var(--ink-1);
  margin: 0 0 14px;
}

/* Big Holds up / Needs review buttons */
.fb-accuracy {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fb-accuracy-btn {
  padding: 20px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
  transition: border-color 140ms var(--ease), background 140ms var(--ease), box-shadow 140ms var(--ease);
}
.fb-accuracy-btn:hover { border-color: rgba(28,122,254,0.32); }
.fb-accuracy-btn.selected {
  border-color: var(--signal);
  background: rgba(28,122,254,0.04);
  box-shadow: 0 0 0 3px rgba(28,122,254,0.10);
}
.fb-accuracy-btn-glyph { font-size: 26px; display: block; margin-bottom: 8px; }

/* Multi-select chips · "what broke" */
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-chip {
  padding: 10px 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  transition: background 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}
.fb-chip:hover { border-color: rgba(28,122,254,0.32); color: var(--signal); }
.fb-chip.selected {
  background: rgba(28,122,254,0.10);
  border-color: rgba(28,122,254,0.32);
  color: var(--signal);
  font-weight: 600;
}

/* Radio-style rows · "what's wrong" on per-card feedback */
.fb-radio { display: flex; flex-direction: column; gap: 6px; }
.fb-radio-row {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; gap: 14px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.fb-radio-row:hover { border-color: rgba(28,122,254,0.32); }
.fb-radio-row.selected {
  border-color: var(--signal);
  background: rgba(28,122,254,0.04);
}
.fb-radio-circle {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink-3);
  margin-top: 2px;
  position: relative;
}
.fb-radio-row.selected .fb-radio-circle { border-color: var(--signal); }
.fb-radio-row.selected .fb-radio-circle::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--signal);
}
.fb-radio-text { flex: 1; }
.fb-radio-title {
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 14px;
  color: var(--ink-1);
}
.fb-radio-sub {
  font-size: 12px; color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.45;
}

/* Textarea */
.fb-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: 'Onest', sans-serif;
  font-size: 13.5px;
  color: var(--ink-1);
  resize: vertical;
  min-height: 100px;
  background: white;
  outline: none;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.fb-textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(28,122,254,0.16); }
.fb-textarea::placeholder { color: var(--ink-3); }

/* Footer · meta + send button */
.fb-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
}
.fb-foot-meta {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  color: var(--ink-3);
}
.fb-send {
  padding: 12px 22px;
  background: var(--signal); color: white;
  border: none; border-radius: 11px;
  font-family: 'Onest', sans-serif; font-weight: 600; font-size: 14px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 1px 2px rgba(28,122,254,0.30), inset 0 1px 0 rgba(255,255,255,0.16);
}
.fb-send:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(28,122,254,0.32); }
.fb-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.fb-send {
  transition: background 200ms var(--ease), transform 120ms var(--ease), box-shadow 120ms var(--ease), opacity 120ms var(--ease);
}

/* Per-card feedback · "Attached data points" placeholder */
.fb-attach-empty {
  padding: 16px;
  border: 1px dashed rgba(17,30,69,0.18);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.fb-attach-empty b { color: var(--signal); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   Card kebab menu · sits next to View details on every card
   ═══════════════════════════════════════════════════════════ */
.card-kabob-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.card-kabob-btn {
  width: 32px; height: 32px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: var(--ink-3);
  transition: background 140ms var(--ease), color 140ms var(--ease), border-color 140ms var(--ease);
  font-family: inherit;
  line-height: 1;
}
.card-kabob-btn:hover { background: rgba(17,30,69,0.06); color: var(--ink); }
.card-kabob-wrap.open .card-kabob-btn {
  background: rgba(28,122,254,0.10);
  border-color: rgba(28,122,254,0.32);
  color: var(--signal);
}
.card-kabob-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 280px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(17,30,69,0.14);
  padding: 6px;
  z-index: 50;
  animation: kabob-menu-in 140ms var(--ease);
}
@keyframes kabob-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.card-kabob-wrap.open .card-kabob-menu { display: block; }
.card-kabob-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: 'Onest', sans-serif;
  transition: background 140ms var(--ease);
}
.card-kabob-item:hover { background: rgba(28,122,254,0.06); }
.card-kabob-item-icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink-3);
  flex-shrink: 0;
  margin-top: 1px;
  transition: color 140ms var(--ease);
}
.card-kabob-item:hover .card-kabob-item-icon { color: var(--signal); }
.card-kabob-item-text { flex: 1; min-width: 0; }
.card-kabob-item-title {
  font-size: 13px; font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 2px;
  line-height: 1.3;
}
.card-kabob-item-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.45;
  transition: color 140ms var(--ease);
}
.card-kabob-item:hover .card-kabob-item-sub { color: rgba(28,122,254,0.7); }

/* ═══════════════════════════════════════════════════════════
   Help drawer · ASK MARVIN search · POPULAR ANSWERS · CONTACT
   ═══════════════════════════════════════════════════════════ */
.help-body { padding-top: 24px; }
.help-section { margin-bottom: 28px; }
.help-section:last-child { margin-bottom: 0; }
.help-section-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* Ask Marvin row · big rounded input with M mark on left, Ask CTA on right */
.help-ask {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.help-ask:focus-within {
  border-color: rgba(28,122,254,0.42);
  box-shadow: 0 0 0 4px rgba(28,122,254,0.10);
}
.help-ask-mark {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(17,30,69,0.06);
  color: var(--ink-3);
  border-radius: 50%;
  font-family: 'Onest', sans-serif;
  font-weight: 700; font-size: 13px;
  flex-shrink: 0;
}
.help-ask-input {
  flex: 1;
  border: none; outline: none;
  background: transparent;
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  color: var(--ink-1);
  padding: 6px 0;
}
.help-ask-input::placeholder { color: var(--ink-3); }
.help-ask-submit {
  border: none;
  background: var(--signal);
  color: white;
  font-family: 'Onest', sans-serif;
  font-weight: 600; font-size: 14px;
  padding: 9px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 140ms var(--ease);
}
.help-ask-submit:hover { background: #1568d8; }

/* Popular answers · stacked rounded cards, click to expand */
.help-faqs { display: flex; flex-direction: column; gap: 8px; }
.help-faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: border-color 140ms var(--ease);
}
.help-faq:hover { border-color: rgba(28,122,254,0.30); }
.help-faq.open { border-color: rgba(28,122,254,0.42); background: rgba(28,122,254,0.02); }
.help-faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  font-family: 'Onest', sans-serif;
  font-weight: 500; font-size: 14px;
  color: var(--ink-1);
  text-align: left;
  cursor: pointer;
}
.help-faq-q-text { flex: 1; }
.help-faq-q-arrow {
  color: var(--ink-3);
  font-size: 14px;
  transition: transform 160ms var(--ease), color 140ms var(--ease);
  flex-shrink: 0;
}
.help-faq:hover .help-faq-q-arrow { color: var(--signal); }
.help-faq.open .help-faq-q-arrow { transform: rotate(90deg); color: var(--signal); }
.help-faq-a {
  display: none;
  padding: 0 16px 14px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-2);
}
.help-faq-a strong { font-weight: 600; color: var(--ink-1); }
.help-faq-a em { color: var(--signal); font-style: normal; font-weight: 500; }
.help-faq.open .help-faq-a { display: block; }

/* Contact box · light-tinted, email surfaced */
.help-contact {
  padding: 14px 16px;
  background: rgba(28,122,254,0.04);
  border: 1px solid rgba(28,122,254,0.18);
  border-radius: 12px;
  font-size: 13px; line-height: 1.55;
  color: var(--ink-2);
}
.help-contact strong { color: var(--signal); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   NOTEBOOK DRAWER · per-company working notes layered onto the
   workbench. Filter tabs · note cards · sticky composer.
   Five categories: pricing, broker, question, reminder, general.
   ═══════════════════════════════════════════════════════════ */

.drawer-notebook .drawer-head {
  background: linear-gradient(135deg, rgba(28,122,254,0.06), rgba(138,181,246,0.03));
  grid-template-columns: auto 1fr auto;
  align-items: flex-start;
  padding-bottom: 16px;
}
.drawer-notebook .drawer-marvin-avatar {
  margin-top: 2px;
}
.drawer-notebook .drawer-title {
  font-size: 22px;
  margin-bottom: 6px;
}
.nb-tagline {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
  max-width: 440px;
}

/* Filter tabs · row beneath header, scrolls horizontally if needed */
.nb-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--line);
  background: white;
  flex-shrink: 0;
}
.nb-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: 'Onest', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.nb-filter:hover { color: var(--ink-1); }
.nb-filter.active {
  color: var(--signal);
  font-weight: 600;
  border-bottom-color: var(--signal);
}
.nb-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: rgba(17,30,69,0.06);
  color: var(--ink-3);
  border-radius: 100px;
  font-family: 'SUSE Mono', monospace;
  font-size: 11px;
  font-weight: 500;
}
.nb-filter.active .nb-filter-count {
  background: rgba(28,122,254,0.12);
  color: var(--signal);
}

/* Body · scrollable note list, leaves room for sticky composer */
.nb-body {
  padding: 18px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  overflow-y: auto;
}
.nb-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 8px;
}

/* Empty state */
.nb-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--ink-3);
}
.nb-empty-mark {
  font-size: 34px;
  color: var(--ink-3);
  opacity: 0.5;
  margin-bottom: 12px;
}
.nb-empty-title {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  margin-bottom: 6px;
}
.nb-empty-sub {
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* Note card */
.nb-note {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  background: white;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.nb-note:hover { border-color: rgba(17,30,69,0.16); }
.nb-note.is-editing { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(28,122,254,0.10); }

.nb-note-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.nb-note-cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nb-note-cat[data-cat="pricing"]  { background: rgba(28,122,254,0.10); color: var(--signal); }
.nb-note-cat[data-cat="broker"]   { background: rgba(46,164,79,0.12); color: #2e8a4f; }
.nb-note-cat[data-cat="question"] { background: rgba(229,163,58,0.14); color: #946011; }
.nb-note-cat[data-cat="reminder"] { background: rgba(120,98,220,0.14); color: #7862dc; }
.nb-note-cat[data-cat="general"]  { background: rgba(17,30,69,0.06);   color: var(--ink-2); }

.nb-note-attached {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(28,122,254,0.06);
  color: var(--signal);
  font-family: 'Onest', sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid rgba(28,122,254,0.15);
}
.nb-note-attached::before {
  content: '◈';
  font-size: 10px;
  opacity: 0.85;
}
.nb-note-time {
  margin-left: auto;
  font-family: 'SUSE Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nb-note-body {
  font-family: 'Onest', sans-serif;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-1);
  white-space: pre-wrap;
}
.nb-note-body strong { font-weight: 700; }

.nb-note-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
}

/* PDF flag in note footer + composer · checkbox */
.nb-note-pdf,
.nb-composer-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ink-3);
  font-size: 12.5px;
  user-select: none;
}
.nb-note-pdf input,
.nb-composer-pdf input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nb-note-pdf-check,
.nb-composer-pdf-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-strong, #d3d8e5);
  border-radius: 4px;
  background: white;
  position: relative;
  flex-shrink: 0;
  transition: background 140ms var(--ease), border-color 140ms var(--ease);
}
.nb-note-pdf-check::after,
.nb-composer-pdf-check::after {
  content: "";
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 8px;
  border-right: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(45deg) scale(0);
  transition: transform 140ms var(--ease);
}
.nb-note-pdf input:checked + .nb-note-pdf-check,
.nb-composer-pdf input:checked + .nb-composer-pdf-check {
  background: var(--signal);
  border-color: var(--signal);
}
.nb-note-pdf input:checked + .nb-note-pdf-check::after,
.nb-composer-pdf input:checked + .nb-composer-pdf-check::after {
  transform: rotate(45deg) scale(1);
}
.nb-note-pdf input:checked ~ .nb-note-pdf-label { color: var(--ink-2); }

.nb-note-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.nb-note-action {
  background: transparent;
  border: none;
  padding: 0;
  font-family: 'Onest', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
  transition: color 140ms var(--ease);
}
.nb-note-action:hover { color: var(--signal); }
.nb-note-action[data-nb-action="delete"]:hover { color: var(--adverse); }

/* ─────────────────────────────────────────────────────────
   Composer · sticky bottom of drawer, gradient lift
   ───────────────────────────────────────────────────────── */
.nb-composer {
  position: relative;
  flex-shrink: 0;
  padding: 14px 24px 18px;
  background: white;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(17,30,69,0.04);
}
.nb-composer::before {
  content: "";
  position: absolute;
  top: -32px; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), white);
  pointer-events: none;
}

.nb-composer-attached {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(28,122,254,0.06);
  border: 1px solid rgba(28,122,254,0.18);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.nb-composer-attached[hidden] { display: none; }
.nb-composer-attached-label {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--signal);
  flex-shrink: 0;
}
.nb-composer-attached-name {
  font-family: 'Onest', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--signal);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nb-composer-attached-clear {
  width: 22px; height: 22px;
  border: none;
  background: rgba(28,122,254,0.10);
  color: var(--signal);
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  flex-shrink: 0;
  transition: background 120ms var(--ease);
}
.nb-composer-attached-clear:hover { background: rgba(28,122,254,0.20); }

/* Category pills */
.nb-composer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.nb-composer-cat {
  padding: 6px 14px;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 140ms var(--ease), color 140ms var(--ease), background 140ms var(--ease);
}
.nb-composer-cat:hover { color: var(--ink-1); border-color: rgba(17,30,69,0.20); }

.nb-composer-cat.active[data-nb-cat="pricing"]  { color: var(--signal); border-color: var(--signal); background: rgba(28,122,254,0.06); }
.nb-composer-cat.active[data-nb-cat="broker"]   { color: #2e8a4f;       border-color: #2e8a4f;       background: rgba(46,164,79,0.06); }
.nb-composer-cat.active[data-nb-cat="question"] { color: #946011;       border-color: #946011;       background: rgba(229,163,58,0.08); }
.nb-composer-cat.active[data-nb-cat="reminder"] { color: #7862dc;       border-color: #7862dc;       background: rgba(120,98,220,0.08); }
.nb-composer-cat.active[data-nb-cat="general"]  { color: var(--ink-1);  border-color: var(--ink-2);  background: rgba(17,30,69,0.04); }

/* Textarea */
.nb-composer-text {
  width: 100%;
  min-height: 84px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-1);
  resize: vertical;
  background: white;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.nb-composer-text:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(28,122,254,0.10);
}
.nb-composer-text::placeholder { color: var(--ink-3); }

.nb-composer-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.nb-composer-pdf-label { font-size: 12.5px; }
.nb-composer-cancel {
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 0 8px;
  font-family: 'Onest', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-3);
  cursor: pointer;
}
.nb-composer-cancel[hidden] { display: none; }
.nb-composer-cancel:hover { color: var(--ink-1); }
.nb-composer-save {
  margin-left: auto;
  padding: 9px 18px;
  background: var(--signal);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms var(--ease), opacity 140ms var(--ease);
}
.nb-composer-save:hover:not(:disabled) { background: #1668e3; }
.nb-composer-save:disabled,
.nb-composer-save.is-disabled {
  background: rgba(28,122,254,0.35);
  cursor: not-allowed;
}
.nb-composer-cancel:not([hidden]) ~ .nb-composer-save { margin-left: 0; }

/* ═══════════════════════════════════════════════════════════
   BIND DECISION DRAWER · "Are you binding this company?"
   ═══════════════════════════════════════════════════════════ */
.drawer-bind .drawer-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 18px;
}
.bind-prose { margin-bottom: 8px; }

/* Yes / No segmented pill choice */
.bind-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.bind-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: 'Onest', sans-serif;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.bind-pill:hover { border-color: rgba(17,30,69,0.20); }
.bind-pill.active[data-bind-choice="bound"] {
  background: rgba(46,164,79,0.06);
  border-color: #2e8a4f;
}
.bind-pill.active[data-bind-choice="no"] {
  background: rgba(17,30,69,0.04);
  border-color: var(--ink-2);
}
.bind-pill-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17,30,69,0.06);
  color: var(--ink-3);
  font-weight: 700;
  font-size: 14px;
  margin-top: 1px;
}
.bind-pill.active[data-bind-choice="bound"] .bind-pill-icon {
  background: #2e8a4f;
  color: white;
}
.bind-pill.active[data-bind-choice="no"] .bind-pill-icon {
  background: var(--ink-2);
  color: white;
}
.bind-pill-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bind-pill-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
}
.bind-pill-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.4;
}

/* Policy number input */
.bind-policy { display: flex; flex-direction: column; gap: 6px; }
.bind-policy[hidden] { display: none; }
.bind-policy-label {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-1);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bind-policy-optional {
  font-weight: 400;
  text-transform: none;
  color: var(--ink-3);
  letter-spacing: 0;
}
.bind-policy input {
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--ink-1);
  background: white;
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.bind-policy input:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(28,122,254,0.10);
}
.bind-policy input::placeholder { color: var(--ink-3); }

/* Bound state · confirmation card with renewal info */
.bind-bound-state[hidden] { display: none; }
.bind-bound-card {
  background: rgba(46,164,79,0.06);
  border: 1.5px solid #2e8a4f;
  border-radius: 12px;
  padding: 18px;
}
.bind-bound-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.bind-bound-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #2e8a4f;
  color: white;
  border-radius: 100px;
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.bind-bound-policy {
  font-family: 'SUSE Mono', monospace;
  font-size: 13px;
  color: #2e8a4f;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.bind-bound-body {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.55;
}

/* No state · soft pass + undo */
.bind-no-state[hidden] { display: none; }
.bind-no-card {
  background: rgba(17,30,69,0.04);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}
.bind-no-title {
  font-family: 'Onest', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.bind-no-body {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.bind-no-undo {
  background: transparent;
  border: none;
  padding: 0;
  margin-left: 4px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--signal);
  cursor: pointer;
}
.bind-no-undo:hover { text-decoration: underline; }

/* Footer */
.bind-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--line);
  background: white;
  flex-shrink: 0;
}
.bind-clear {
  margin-right: auto;
  background: transparent;
  border: none;
  padding: 0;
  font-family: 'Onest', sans-serif;
  font-size: 12.5px;
  color: var(--ink-3);
  cursor: pointer;
}
.bind-clear:hover { color: var(--adverse); }
.bind-clear[hidden] { display: none; }
.bind-save {
  margin-left: auto;
  padding: 10px 20px;
  background: var(--signal);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms var(--ease);
}
.bind-save:hover:not(:disabled) { background: #1668e3; }
.bind-save:disabled {
  background: rgba(28,122,254,0.30);
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════
   HISTORY DIFF DRAWER · "Changes since last snapshot"
   ═══════════════════════════════════════════════════════════ */
.drawer-history-diff .drawer-body { padding-bottom: 18px; }
.hd-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.hd-metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.hd-metric-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hd-metric-value {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-1);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.hd-metric-delta {
  font-family: 'SUSE Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.hd-metric-delta.up { color: #2e8a4f; }
.hd-metric-delta.down { color: var(--adverse); }
.hd-metric-delta.flat { color: var(--ink-3); }

.hd-narrative {
  background: rgba(28,122,254,0.06);
  border: 1px solid rgba(28,122,254,0.14);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-1);
  margin-bottom: 18px;
}
.hd-narrative-kicker {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.hd-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}
.hd-view-snap {
  width: 100%;
  padding: 12px 16px;
  background: var(--mainframe);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 140ms var(--ease);
}
.hd-view-snap:hover { background: #1a2f6a; }

/* ═══════════════════════════════════════════════════════════
   HISTORIC MODE BANNER · sticky banner above the snapshot when
   the user is viewing an old snapshot via the diff drawer.
   ═══════════════════════════════════════════════════════════ */
.historic-banner {
  position: fixed;
  top: 0; left: 232px; /* offset for sidebar */
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: linear-gradient(135deg, #FFF6E6, #FFEACD);
  border-bottom: 1px solid #E5A33A;
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  color: #7C5A0F;
  z-index: 80;
}
.historic-banner[hidden] { display: none; }
.historic-banner-icon {
  font-size: 14px;
  color: #946011;
}
.historic-banner-text { flex: 1 1 auto; }
.historic-banner-text strong { font-weight: 700; color: #5C4308; }
.historic-banner-back {
  background: white;
  border: 1px solid #E5A33A;
  color: #946011;
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.historic-banner-back:hover { background: #FFF1DA; }

body.is-historic main.canvas { padding-top: 44px; }

/* ═══════════════════════════════════════════════════════════
   Feedback v2 — quote panel + structured dropdown
   ═══════════════════════════════════════════════════════════ */

.fb-quote {
  background: var(--signal-soft, rgba(28,122,254,0.08));
  border: 1px solid rgba(28,122,254,0.2);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  position: relative;
}
.fb-quote-label {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.fb-quote-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  font-style: normal;
  border-left: 3px solid var(--signal);
  padding-left: 10px;
  margin: 0;
}
.fb-quote-clear {
  position: absolute;
  top: 8px; right: 10px;
  background: transparent;
  border: 0;
  font-size: 11px;
  color: var(--ink-3);
  cursor: pointer;
  font-family: inherit;
}
.fb-quote-clear:hover { color: var(--ink); }

.fb-target {
  margin-bottom: 14px;
}
.fb-target-label {
  display: block;
  font-family: 'SUSE Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.fb-target-select {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(17,30,69,0.10);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 180ms ease;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23111E45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.fb-target-select:hover { border-color: rgba(28,122,254,0.32); }
.fb-target-select:focus { outline: 0; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(28,122,254,0.12); }

/* ═══════════════════════════════════════════════════════════
   Help drawer — bug report item + section divider
   ═══════════════════════════════════════════════════════════ */

.help-section-divider {
  height: 1px;
  background: var(--line);
  margin: 4px 0 18px;
}

.help-bug-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(28,122,254,0.06), rgba(138,181,246,0.03));
  border: 1px solid rgba(28,122,254,0.18);
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Onest', sans-serif;
  transition: border-color 180ms ease, background 180ms ease, transform 140ms ease;
}
.help-bug-item:hover {
  border-color: rgba(28,122,254,0.38);
  background: linear-gradient(135deg, rgba(28,122,254,0.10), rgba(138,181,246,0.05));
  transform: translateY(-1px);
}
.help-bug-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--signal);
}
.help-bug-item-text { flex: 1; text-align: left; }
.help-bug-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-1);
  margin-bottom: 2px;
}
.help-bug-item-sub {
  font-size: 12px;
  color: var(--ink-3);
}
.help-bug-item-arrow {
  font-size: 16px;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 140ms ease, color 140ms ease;
}
.help-bug-item:hover .help-bug-item-arrow {
  transform: translateX(3px);
  color: var(--signal);
}

/* ═══════════════════════════════════════════════════════════
   Marvin Bug Ticket Chat Panel
   ═══════════════════════════════════════════════════════════ */

.drawer-marvin-bug .drawer-head {
  background: linear-gradient(135deg, rgba(28,122,254,0.08), rgba(138,181,246,0.04));
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.bug-chat-body {
  display: flex;
  flex-direction: column;
  padding-bottom: 14px;
}

.bug-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 18px;
}

.bug-msg {
  max-width: 92%;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  animation: bugMsgIn 260ms ease both;
}
@keyframes bugMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bug-msg--marvin {
  background: rgba(28,122,254,0.06);
  border: 1px solid rgba(28,122,254,0.10);
  color: var(--ink-1);
  align-self: flex-start;
}
.bug-msg--marvin .bug-msg-kicker {
  font-family: 'SUSE Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 6px;
}
.bug-msg--user {
  background: var(--ink-1);
  color: white;
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
}
.bug-msg--page {
  font-family: 'SUSE Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
  padding: 6px 10px;
  background: rgba(17,30,69,0.04);
  border-radius: 8px;
  align-self: flex-start;
}

/* Typing indicator */
.bug-typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}
.bug-typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.5;
  animation: bugTyping 1.2s infinite ease-in-out;
}
.bug-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.bug-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes bugTyping {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.3); }
}

.bug-chat-input-row {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.bug-chat-input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: white;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.bug-chat-input:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(28,122,254,0.12);
}
.bug-chat-input::placeholder { color: var(--ink-3); }
.bug-chat-send {
  width: 44px; height: 44px;
  background: var(--ink-1);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 140ms ease;
  flex-shrink: 0;
}
.bug-chat-send:hover { background: #1a2f6a; }

.bug-chat-submit {
  margin-top: 12px;
  width: 100%;
  padding: 14px 22px;
  background: var(--signal);
  color: white;
  border: none;
  border-radius: 11px;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(28,122,254,0.30), inset 0 1px 0 rgba(255,255,255,0.16);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.bug-chat-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(28,122,254,0.32);
}
.bug-chat-submit[hidden] { display: none; }
