.chat-bg-overlay::before {
  content: '';
  position: absolute; inset: 0;
  background: url('JUSHI.webp') center center / cover no-repeat;
  opacity: 1;
  filter: grayscale(0%) contrast(1.0) brightness(1.0);
}
/* Dark ink wash — heavier center for text readability, lighter at edges */
.chat-bg-overlay::after {
  content: '';
  position: absolute; inset: 0;
  opacity: var(--bg-wash-opacity, 1.0);
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(5,8,16,0.35) 0%, rgba(5,8,16,0.05) 100%),
    linear-gradient(180deg, rgba(5,8,16,0.05) 0%, rgba(5,8,16,0.15) 100%);
}
.chat-bg-overlay svg {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0;
  z-index: 1;
}


/* ── Art Deco gold header ornament ─────────────────────── */
.chat-deco-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.chat-deco-header svg {
  width: 100%;
  height: 48px;
  display: block;
}
@keyframes decoShimmer {
  0%   { stop-color: var(--gold-lt); }
  25%  { stop-color: var(--gold-lt); }
  50%  { stop-color: var(--gold-lt); }
  75%  { stop-color: var(--gold); }
  100% { stop-color: var(--gold-lt); }
}
@keyframes decoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.chat-deco-header { animation: decoFadeIn 1.2s ease 0.5s both; }
.scope-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 0 18px;
  height: 38px;
  border-bottom: 1px solid rgba(160,120,32,0.18);
  background: rgba(13,21,37,0.95);
  flex-shrink: 0;
  overflow-x: auto; scrollbar-width: none;
  position: relative; z-index: 1;
}
.scope-bar::-webkit-scrollbar { display: none; }
/* ── Collection quick-picker dropdown ───────────────────── */
.col-picker-wrap { position: relative; flex-shrink: 0; }
.col-picker-btn {
  padding: 3px 10px 3px 12px;
  border-radius: 3px;
  border: 1px solid rgba(160,120,32,0.40);
  background: rgba(160,120,32,0.12);
  color: var(--gold-lt);
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
  -webkit-appearance: none;
}
.col-picker-btn:hover { background: rgba(160,120,32,0.20); border-color: rgba(160,120,32,0.60); }
.col-picker-btn svg { width: 8px; height: 8px; opacity: 0.7; flex-shrink: 0; }
.col-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-width: 320px;
  max-height: 280px;
  overflow-y: auto;
  background: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  scrollbar-width: thin;
  scrollbar-color: var(--ink5) transparent;
}
.col-picker-dropdown.open { display: block; }
.col-picker-item {
  padding: 8px 14px;
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(160,120,32,0.45);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background 0.1s;
}
.col-picker-item:last-child { border-bottom: none; }
.col-picker-item:hover { background: var(--gold-dim); color: rgba(160,120,32,0.75); }
.col-picker-item.active { color: var(--gold-lt); background: rgba(160,120,32,0.08); }
.col-picker-item.active::before { content: '◈'; margin-right: 6px; color: var(--gold); font-size: 8px; }
.col-picker-count { font-size: 8px; color: var(--smoke4); flex-shrink: 0; }
.col-picker-all {
  padding: 8px 14px;
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(160,120,32,0.35);
  cursor: pointer;
  border-bottom: 1px solid var(--line2);
  transition: background 0.1s;
}
.col-picker-all:hover { background: var(--ink3); color: rgba(160,120,32,0.60); }
.scope-label {
  font-family: var(--f-ui);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: rgba(160,120,32,0.65);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 4px;
}
.scope-btn {
  padding: 3px 12px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(160,120,32,0.70);
  font-family: var(--f-ui);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
  -webkit-appearance: none;
}
.scope-btn:hover { color: rgba(160,120,32,0.90); border-color: var(--line2); }
.scope-btn.active {
  background: rgba(160,120,32,0.15);
  border-color: rgba(160,120,32,0.38);
  color: var(--gold-lt);
  text-shadow: 0 0 12px rgba(160,120,32,0.30);
}
.scope-chevron { color: var(--smoke4); font-size: 9px; flex-shrink: 0; }

/* ── Chat ──────────────────────────────────────────────── */
/* .chat-messages moved to discovery section below */

.chat-empty {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  padding: 40px 24px;
}
.ce-glyph {
  font-family: var(--f-display);
  font-size: 44px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.1em;
  background: linear-gradient(150deg, var(--gold-metal-1) 0%, var(--gold-metal-3) 50%, var(--gold-metal-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.55;
  filter: drop-shadow(0 0 8px rgba(160,120,32,0.24));
}
.ce-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--smoke);
  line-height: 1.2;
}
.ce-sub {
  font-size: 11px;
  font-weight: 300;
  color: var(--smoke4);
  max-width: 320px;
  line-height: 1.8;
  letter-spacing: 0.03em;
  font-family: var(--f-mono);
}
.ce-hints {
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: center;
  margin-top: 12px;
}
.hint {
  padding: 6px 14px;
  border: 1px solid rgba(160,120,32,0.18);
  border-radius: 3px;
  background: transparent;
  color: var(--smoke3);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  -webkit-appearance: none;
}
.hint:hover {
  border-color: rgba(160,120,32,0.40);
  color: var(--gold-metal-2);
  background: rgba(160,120,32,0.06);
  text-shadow: 0 0 8px rgba(160,120,32,0.2);
}

/* Messages */
.msg { display: flex; gap: 12px; }
.msg.user { flex-direction: row; align-self: flex-start; max-width: 88%; }
.msg.ai { max-width: 90%; }
.msg-av {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-top: 2px;
  text-transform: uppercase;
}
.msg.user .msg-av {
  background: linear-gradient(135deg, var(--gold-metal-2) 0%, var(--gold-metal-3) 50%, var(--gold-metal-4) 100%);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(160,120,32,0.35);
  font-size: 11px;
}
.msg.ai .msg-av {
  background: var(--ink3);
  color: var(--gold-lt);
  border: 1px solid var(--line2);
  font-size: 9px;
  letter-spacing: 0.06em;
}
.msg-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.msg-scope {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--smoke4);
  text-transform: uppercase;
  padding-left: 2px;
}
.msg-bubble {
  padding: 12px 16px;
  border-radius: 2px 8px 8px 8px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  word-wrap: break-word;
  letter-spacing: 0.02em;
}
.msg.user .msg-bubble {
  background: linear-gradient(160deg,
    var(--gold-metal-1) 0%,
    var(--gold-metal-2) 18%,
    var(--gold-metal-3) 45%,
    var(--gold-metal-4) 68%,
    var(--gold-metal-3) 85%,
    var(--gold-metal-2) 100%
  );
  color: var(--ink-deep);
  border-radius: 2px 8px 8px 8px;
  font-weight: 500;
  border: 1px solid var(--gold-metal-1);
  box-shadow:
    0 1px 0 rgba(255,248,208,0.55) inset,
    0 -1px 0 rgba(90,60,0,0.35) inset,
    0 3px 12px rgba(140,100,10,0.35),
    0 1px 3px rgba(0,0,0,0.4);
  text-shadow: 0 1px 0 rgba(220,180,100,0.25);
}
.msg.ai .msg-bubble {
  background: var(--ink2);
  border: 1px solid var(--line);
  color: var(--smoke);
  position: relative;
}
.msg.ai .msg-bubble::before {
  content: '';
  position: absolute; left: 0; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
  opacity: 0.3;
}
/* ── Markdown rendering in AI bubbles ───────────────────── */
.msg.ai .msg-bubble h2 {
  font-family: var(--f-display);
  font-size: 13px; font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--gold-metal-2);
  text-transform: uppercase;
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(160,120,32,0.15);
}
.msg.ai .msg-bubble h3 {
  font-family: var(--f-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--smoke2);
  text-transform: uppercase;
  margin: 10px 0 4px;
}
.msg.ai .msg-bubble p { margin: 0 0 8px; }
.msg.ai .msg-bubble p:last-child { margin-bottom: 0; }
.msg.ai .msg-bubble ul, .msg.ai .msg-bubble ol {
  margin: 4px 0 8px;
  padding-left: 18px;
}
.msg.ai .msg-bubble li { margin-bottom: 3px; line-height: 1.6; }
.msg.ai .msg-bubble strong { color: var(--smoke); font-weight: 500; }
.msg.ai .msg-bubble em { color: var(--smoke2); font-style: italic; }
.msg.ai .msg-bubble code {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--ink4);
  border: 1px solid rgba(160,120,32,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--gold-lt);
}
.msg.ai .msg-bubble pre {
  background: var(--ink4);
  border: 1px solid rgba(160,120,32,0.12);
  border-radius: 4px;
  padding: 10px 12px;
  overflow-x: auto;
  margin: 8px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--smoke2);
}
.msg.ai .msg-bubble pre code {
  background: none; border: none; padding: 0; color: inherit;
}
.msg.ai .msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 12px;
}
.msg.ai .msg-bubble th {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-metal-2);
  background: rgba(160,120,32,0.06);
  padding: 6px 10px;
  border: 1px solid rgba(160,120,32,0.14);
  text-align: left;
  font-weight: 500;
}
.msg.ai .msg-bubble td {
  padding: 5px 10px;
  border: 1px solid rgba(160,120,32,0.08);
  color: var(--smoke2);
  vertical-align: top;
}
.msg.ai .msg-bubble tr:nth-child(even) td {
  background: rgba(160,120,32,0.03);
}
.msg.ai .msg-bubble hr {
  border: none;
  border-top: 1px solid rgba(160,120,32,0.15);
  margin: 10px 0;
}
.msg.ai .msg-bubble blockquote {
  border-left: 2px solid rgba(160,120,32,0.3);
  margin: 6px 0;
  padding: 4px 12px;
  color: var(--smoke3);
  font-style: italic;
}
.msg-actions {
  display: flex; gap: 6px; align-items: center;
  margin-top: 8px; padding-left: 2px;
  opacity: 0.85; transition: opacity 0.15s;
}
.msg.ai:hover .msg-actions { opacity: 1; }
.msg-action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 3px;
  border: 1px solid var(--line3);
  background: rgba(160,120,32,0.04); color: var(--smoke2);
  font-family: var(--f-mono); font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.msg-action-btn:hover { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-dim); }
.msg-action-btn svg { width: 11px; height: 11px; flex-shrink: 0; }
.msg-action-btn.saved { border-color: var(--green-lt); color: var(--green-lt); }
.msg-action-btn.copied { border-color: var(--gold); color: var(--gold-lt); }

/* ── Feedback signal buttons ─────────────────────────────── */
.fb-divider { width: 1px; height: 12px; background: var(--line2); margin: 0 2px; flex-shrink: 0; }
/* Default colors — match the universal meaning of each symbol */
.msg-action-btn.fb-sharp      { color: rgba(220,80,120,0.85); border-color: rgba(220,80,120,0.35); }
.msg-action-btn.fb-missed     { color: rgba(220,90,90,0.85); border-color: rgba(220,90,90,0.35); }
.msg-action-btn.fb-incomplete { color: rgba(180,125,30,0.90); border-color: rgba(180,125,30,0.35); }
.msg-action-btn.fb-sharp:hover  { border-color: rgba(220,80,120,0.8); color: rgba(240,100,140,1); background: rgba(220,80,120,0.08); }
.msg-action-btn.fb-missed:hover { border-color: rgba(220,90,90,0.8);  color: rgba(240,110,110,1);  background: rgba(220,90,90,0.08); }
.msg-action-btn.fb-incomplete:hover { border-color: rgba(180,125,30,0.8); color: rgba(190,140,40,1); background: rgba(180,125,30,0.08); }
.msg-action-btn.fb-sharp.fb-selected      { border-color: rgba(220,80,120,0.9); color: rgba(240,100,140,1); background: rgba(220,80,120,0.14); }
.msg-action-btn.fb-missed.fb-selected     { border-color: rgba(220,90,90,0.9);  color: rgba(240,110,110,1);  background: rgba(220,90,90,0.14); }
.msg-action-btn.fb-incomplete.fb-selected { border-color: rgba(180,125,30,0.9); color: rgba(190,140,40,1); background: rgba(180,125,30,0.14); }
.fb-comment-wrap {
  display: none; margin-top: 6px;
  animation: fbSlideIn 0.18s ease;
}
.fb-comment-wrap.open { display: flex; gap: 6px; align-items: center; }
@keyframes fbSlideIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.fb-comment-input {
  flex: 1; background: rgba(255,255,255,0.03); border: 1px solid var(--line2);
  border-radius: 3px; padding: 4px 8px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.06em;
  color: var(--smoke3); outline: none; min-width: 0;
  transition: border-color 0.15s;
}
.fb-comment-input:focus { border-color: var(--gold); color: var(--smoke); }
.fb-comment-input::placeholder { color: rgba(255,255,255,0.18); }
.fb-send-btn {
  padding: 3px 9px; border-radius: 3px; border: 1px solid var(--line2);
  background: none; color: var(--smoke4); cursor: pointer;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.15s; flex-shrink: 0;
}
.fb-send-btn:hover { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-dim); }

/* ── Retrieval Intelligence admin section ────────────────── */
.weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.weight-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line2); border-radius: 3px;
  transition: border-color 0.15s;
}
.weight-row:hover { border-color: var(--line); }
.weight-row.modified { border-color: rgba(160,120,32,0.35); }
.weight-label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--smoke3);
}
.weight-desc {
  font-family: var(--f-ui); font-size: 9px; color: var(--smoke4);
  line-height: 1.4; margin-bottom: 2px;
}
.weight-input-row { display: flex; align-items: center; gap: 8px; }
.weight-input {
  width: 64px; flex-shrink: 0;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line2);
  border-radius: 2px; padding: 3px 7px;
  font-family: var(--f-mono); font-size: 11px; color: var(--gold-lt);
  text-align: right; outline: none;
  transition: border-color 0.15s;
}
.weight-input:focus { border-color: var(--gold); }
.weight-default { font-family: var(--f-mono); font-size: 9px; color: var(--smoke4); }
.weight-default span { color: var(--smoke3); }
.weight-group-label {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(160,120,32,0.5);
  margin: 12px 0 6px; grid-column: 1 / -1;
}
.weight-actions { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.weight-status { font-family: var(--f-mono); font-size: 9px; color: var(--smoke4); letter-spacing: 0.06em; }
.weight-status.ok { color: rgba(100,220,130,0.8); }
.weight-status.modified { color: rgba(180,130,35,0.8); }
.tune-card {
  background: rgba(255,255,255,0.02); border: 1px solid var(--line2);
  border-radius: 4px; padding: 14px 16px; margin-bottom: 10px;
}
.tune-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tune-dept-badge {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(160,120,32,0.3);
  padding: 2px 7px; border-radius: 2px;
}
.tune-snapshot { font-family: var(--f-mono); font-size: 9px; color: var(--smoke4); letter-spacing: 0.06em; }
.tune-snapshot b { color: var(--smoke3); }
.tune-suggestion {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; margin-bottom: 6px;
  background: rgba(255,255,255,0.015); border: 1px solid var(--line2); border-radius: 3px;
}
.tune-suggestion input[type=checkbox] { accent-color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.tune-sug-body { flex: 1; min-width: 0; }
.tune-sug-weight { font-family: var(--f-mono); font-size: 10px; color: var(--gold-lt); letter-spacing: 0.08em; }
.tune-sug-delta { font-family: var(--f-mono); font-size: 9px; color: var(--smoke4); margin: 2px 0; }
.tune-sug-delta span.arrow { color: var(--gold); margin: 0 4px; }
.tune-sug-reason { font-family: var(--f-ui); font-size: 10px; color: var(--smoke3); line-height: 1.5; }
.tune-actions { display: flex; gap: 8px; margin-top: 12px; }
.tune-empty { font-family: var(--f-mono); font-size: 10px; color: var(--smoke4); letter-spacing: 0.06em; padding: 10px 0; }
.tune-analyze-btn { margin-bottom: 14px; }
.fb-log-row {
  display: flex; gap: 10px; align-items: baseline;
  padding: 5px 0; border-bottom: 1px solid var(--line2);
  font-family: var(--f-mono); font-size: 9px; color: var(--smoke4); letter-spacing: 0.05em;
}
.fb-log-row:last-child { border-bottom: none; }
.fb-sig-sharp    { color: rgba(100,220,130,0.9); }
.fb-sig-missed   { color: rgba(220,90,90,0.9); }
.fb-sig-incomplete { color: rgba(180,130,35,0.9); }
.fb-log-query { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--smoke3); }
.fb-summary-bar { display: flex; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.fb-sum-item { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.08em; }

/* ── Responses panel ────────────────────────────────────── */
.resp-wrap { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.resp-top {
  padding: 20px 24px 16px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(20,28,48,1) 0%, rgba(11,15,28,1) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.80);
  box-shadow:
    inset 0 3px 12px rgba(0,0,0,0.65),
    inset 0 1px 4px rgba(0,0,0,0.50),
    0 2px 0 rgba(0,0,0,0.60),
    0 1px 0 rgba(160,120,32,0.15);
}
/* Gold hairline trim at top of header */
.resp-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(160,120,32,0.55) 25%, rgba(210,175,90,0.90) 50%, rgba(160,120,32,0.55) 75%, transparent 95%);
}
/* Scanline texture over header */
.resp-top::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.007) 3px, rgba(255,255,255,0.007) 4px);
}
.resp-title {
  font-family: var(--f-display); font-size: 20px;
  color: var(--smoke); letter-spacing: 0.06em; margin-bottom: 4px;
  position: relative; z-index: 1;
}
.resp-sub {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--smoke4); letter-spacing: 0.06em; line-height: 1.6;
  position: relative; z-index: 1;
}
.resp-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.resp-search-bar {
  padding: 12px 24px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.50);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(14,19,34,0.98) 0%, rgba(8,12,22,1) 100%);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.40), 0 1px 0 rgba(160,120,32,0.06);
}
.resp-search-input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  background: rgba(2,4,10,1);
  border: 1px solid rgba(160,120,32,0.22);
  border-top-color: rgba(0,0,0,0.80);
  border-radius: 3px;
  color: var(--smoke);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  outline: none;
  box-sizing: border-box;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.70), inset 0 1px 3px rgba(0,0,0,0.50);
  transition: border-color 0.2s;
}
.resp-search-input::placeholder { color: var(--smoke4); }
.resp-search-input:focus { border-color: rgba(160,120,32,0.45); }
.resp-search-bar { position: relative; }
.resp-search-clear {
  position: absolute; right: 30px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--smoke4);
  font-size: 16px; cursor: pointer; line-height: 1;
  display: none; padding: 0 4px;
}
.resp-search-clear.visible { display: block; }
.resp-topic-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 24px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.40);
  flex-shrink: 0;
  background: rgba(6,9,18,0.95);
  min-height: 0;
}
.resp-topic-chips:empty { display: none; }
.resp-chip {
  padding: 3px 10px;
  border: 1px solid rgba(160,120,32,0.22);
  border-radius: 20px;
  background: rgba(10,14,24,0.90);
  color: rgba(160,120,32,0.55);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: inset 0 1px 0 rgba(210,175,90,0.06), 0 1px 3px rgba(0,0,0,0.50);
}
.resp-chip:hover { border-color: rgba(160,120,32,0.50); color: rgba(160,120,32,0.90); background: rgba(16,20,36,1); }
.resp-chip.active { border-color: rgba(160,120,32,0.70); color: rgba(210,175,90,0.95); background: rgba(160,120,32,0.10); }
.resp-count {
  font-family: var(--f-mono); font-size: 9px;
  color: var(--smoke4); letter-spacing: 0.08em;
  padding: 0 24px 8px;
  flex-shrink: 0;
}
.resp-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 200px;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--smoke4); letter-spacing: 0.06em; gap: 10px; text-align: center;
}
.resp-empty-icon { font-size: 28px; opacity: 0.3; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   TOOLS WORKSPACE
   Compliance Tools section. Inspection Pre-Flight + future tools.
   Follows the same aesthetic as Responses panel (recessed vault).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.tools-wrap { height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.tools-top {
  padding: 20px 24px 16px;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg, rgba(20,28,48,1) 0%, rgba(11,15,28,1) 100%);
  border-bottom: 1px solid rgba(0,0,0,0.80);
  box-shadow:
    inset 0 3px 12px rgba(0,0,0,0.65),
    inset 0 1px 4px rgba(0,0,0,0.50),
    0 2px 0 rgba(0,0,0,0.60),
    0 1px 0 rgba(160,120,32,0.15);
}
.tools-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(160,120,32,0.55) 25%, rgba(210,175,90,0.90) 50%, rgba(160,120,32,0.55) 75%, transparent 95%);
}
.tools-top::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.007) 3px, rgba(255,255,255,0.007) 4px);
}
.tools-title {
  font-family: var(--f-display); font-size: 20px;
  color: var(--smoke); letter-spacing: 0.06em; margin-bottom: 4px;
  position: relative; z-index: 1;
}
.tools-sub {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--smoke4); letter-spacing: 0.06em; line-height: 1.6;
  position: relative; z-index: 1;
  max-width: 720px;
}

.tools-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.kc-group-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.kc-group-header {
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(160,120,32,0.15);
}

.kc-group-title {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160,120,32,0.8);
  margin-bottom: 4px;
}

.kc-group-desc {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--smoke3);
  line-height: 1.5;
  max-width: 680px;
}

.kc-group-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

