/* Liberty Tracker — internal operations tool.
   Calm, clinical, trustworthy. Deep pine on cool paper. */

:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --ink: #16211e;
  --ink-2: #55635e;
  --muted: #7c8983;
  --line: #e2e8e5;
  --line-strong: #d3dbd8;

  --pine: #10514a;
  --pine-600: #0c433d;
  --pine-050: #e9f1ef;

  --ok-fg: #1d6f42;
  --ok-bg: #e6f4ea;
  --danger-fg: #b42318;
  --danger-bg: #fdeceb;
  --info-fg: #1f5fa8;
  --info-bg: #e9f1fb;
  --blue: #2563eb;
  --purple: #7c3aed;

  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 33, 30, 0.04), 0 6px 18px rgba(16, 33, 30, 0.05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--pine); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--pine-050);
  padding: 0.08em 0.38em;
  border-radius: 5px;
}

/* ---- Brand ---- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  background: var(--pine);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand-mark-lg { width: 46px; height: 46px; border-radius: 12px; font-size: 22px; }
.brand-name { font-weight: 650; letter-spacing: -0.01em; font-size: 1.05rem; }

/* ---- Top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar-user { display: flex; align-items: center; gap: 14px; }
.user-name { color: var(--ink-2); font-size: 0.92rem; }

/* ---- Layout ---- */
.page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  flex: 1;
}
.footer {
  padding: 18px 24px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-title { margin: 0; font-size: 1.6rem; letter-spacing: -0.02em; }
.page-meta { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---- Forms & buttons ---- */
.inline-form { margin: 0; }
.search { display: flex; gap: 8px; margin: 0; }

.input {
  width: 100%;
  padding: 9px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input::placeholder { color: var(--muted); }
.input:focus-visible {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(16, 81, 74, 0.15);
}
.input-search { min-width: 240px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  font: inherit;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.btn-sm { padding: 7px 12px; font-size: 0.9rem; }
.btn-block { width: 100%; margin-top: 6px; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(16, 81, 74, 0.25); }

.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-600); }

.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }

.is-disabled { opacity: 0.45; pointer-events: none; }

.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--ink-2);
}

/* ---- Auth / centered card ---- */
.auth {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 30px;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .brand-mark { margin: 0 auto 12px; }
.auth-title { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.auth-title-sm { font-size: 1.25rem; }
.auth-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ---- Alerts ---- */
.alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
}
.alert-error { background: var(--danger-bg); color: var(--danger-fg); border-color: #f6d4d1; }
.alert-success { background: var(--ok-bg); color: var(--ok-fg); border-color: #cfe8d8; }
.alert-info { background: var(--info-bg); color: var(--info-fg); border-color: #d3e4f8; }

/* ---- Table ---- */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.table thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 650;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #f8fbfa; }

.cell-name { display: block; font-weight: 600; color: var(--ink); }
.cell-line { display: block; }
.cell-sub { display: block; color: var(--muted); font-size: 0.82rem; margin-top: 1px; }

/* ---- Pills & tags ---- */
.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 550;
  background: var(--pine-050);
  color: var(--pine);
  border: 1px solid rgba(16, 81, 74, 0.14);
}
.pill-ok { background: var(--ok-bg); color: var(--ok-fg); border-color: #cfe8d8; }
.pill-danger { background: var(--danger-bg); color: var(--danger-fg); border-color: #f6d4d1; }
.pill-muted { background: #eef1f0; color: var(--ink-2); border-color: var(--line); }

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 550;
  text-transform: capitalize;
  background: #eef1f0;
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.tag-patient { background: var(--pine-050); color: var(--pine); border-color: rgba(16, 81, 74, 0.16); }
.tag-prospect { background: #e9f1fb; color: var(--blue); border-color: #d3e4f8; }
.tag-caregiver { background: #f1eafb; color: var(--purple); border-color: #e2d3f7; }

/* ---- Empty state ---- */
.empty {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
}
.empty-title { margin: 0 0 6px; font-size: 1.1rem; }
.empty-body { margin: 0; color: var(--muted); }

/* ---- Pager ---- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
.pager-info { color: var(--muted); font-size: 0.88rem; }

/* ---- Responsive ---- */
@media (max-width: 620px) {
  .page-head { align-items: stretch; }
  .page-actions { width: 100%; }
  .search { flex: 1; }
  .input-search { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* RingCentral connect banner + status chip */
.rc-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 12px 16px;
  background: var(--info-bg, #eef4fb);
  color: var(--info-fg, #1f4e79);
  border: 1px solid #d3e4f8;
  border-radius: 10px;
}
.rc-banner-text { font-size: 0.95rem; }
.rc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pine);
  background: var(--pine-050);
  border: 1px solid rgba(16, 81, 74, 0.16);
  border-radius: 999px;
}
.rc-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
}

/* Contact detail page */
.back { margin: 0 0 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.panel-title { margin: 0 0 12px; font-size: 1.05rem; }
.panel-subtitle { margin: 18px 0 8px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.stack .input { width: 100%; }
.stack-actions { display: flex; align-items: center; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.hint { font-size: 0.85rem; color: var(--ink-soft); }
.hint-warn { color: var(--danger-fg); background: var(--danger-bg); border: 1px solid #f6d4d1; padding: 8px 12px; border-radius: 8px; }
.cell-link { color: var(--pine); text-decoration: none; font-weight: 600; }
.cell-link:hover { text-decoration: underline; }
.msg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.msg { padding: 10px 14px; border-radius: 10px; max-width: 80%; }
.msg-outbound { align-self: flex-end; background: var(--pine-050); }
.msg-inbound { align-self: flex-start; background: var(--surface-2, #f1f4f3); }
.msg-body { white-space: pre-wrap; }
.msg-meta { margin-top: 4px; font-size: 0.78rem; color: var(--ink-soft); }
.msg-err { color: var(--danger-fg); }

/* Status filter chips */
.filters { display: flex; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.chip {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  text-decoration: none;
}
.chip:hover { border-color: var(--pine); color: var(--pine); }
.chip-active { background: var(--pine); border-color: var(--pine); color: #fff; }
.chip-active:hover { color: #fff; }
.cell-date { white-space: nowrap; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* "or" divider between outreach and free-text */
.or-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--ink-soft); font-size: 0.82rem; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Collapsible conversation thread */
.thread-wrap { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.thread-summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600;
  display: flex; align-items: center; gap: 10px; user-select: none;
}
.thread-summary::-webkit-details-marker { display: none; }
.thread-summary::before { content: "▸"; color: var(--ink-soft); transition: transform 0.15s ease; }
.thread-wrap[open] .thread-summary::before { transform: rotate(90deg); }
.thread-count { background: var(--pine-050); color: var(--pine); border-radius: 999px; padding: 1px 9px; font-size: 0.8rem; }
.thread-hint { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }

/* iMessage-style device conversation */
.imessage {
  max-width: 420px; margin: 0 auto 18px; border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}
.imessage-topbar {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 12px 10px; background: rgba(245,245,247,0.9);
  border-bottom: 1px solid var(--line);
}
.imessage-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.1rem;
}
.imessage-name { font-size: 0.85rem; font-weight: 600; color: #111; }
.imessage-body {
  padding: 16px 12px; display: flex; flex-direction: column; gap: 4px;
  max-height: 460px; overflow-y: auto; background: #fff;
}
.imessage-empty { color: var(--ink-soft); text-align: center; font-size: 0.9rem; padding: 20px 8px; }
.bubble-row { display: flex; flex-direction: column; margin-bottom: 8px; }
.bubble-row-outbound { align-items: flex-end; }
.bubble-row-inbound { align-items: flex-start; }
.bubble {
  max-width: 78%; padding: 8px 13px; border-radius: 18px; font-size: 0.95rem;
  line-height: 1.35; white-space: pre-wrap; word-wrap: break-word;
}
.bubble-outbound { background: #0b93f6; color: #fff; border-bottom-right-radius: 5px; }
.bubble-inbound { background: #e5e5ea; color: #111; border-bottom-left-radius: 5px; }
.bubble-error { background: var(--danger-bg); color: var(--danger-fg); border: 1px solid #f6d4d1; }
.bubble-meta { font-size: 0.68rem; color: var(--ink-soft); margin: 2px 6px 0; }

.hint-test { color: #8a5a00; background: #fff6e5; border: 1px solid #ffe3a3; padding: 8px 12px; border-radius: 8px; }

/* Leads-list outreach cell: button/pending + status + conversation */
.outreach-cell { min-width: 168px; }
.outreach-top { margin-bottom: 6px; }
.pill-pending { background: #fff6e5; color: #8a5a00; border: 1px solid #ffe3a3; }

.status-form { margin-bottom: 4px; }
.status-select {
  font-size: 0.8rem; padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
.status-negotiating { background: #eef4ff; border-color: #b9d0ff; color: #1e3a8a; }
.status-not_eligible { background: #fdecea; border-color: #f0c2bc; color: #8a1c12; }
.status-needs_intervention { background: #fff4e5; border-color: #ffd8a8; color: #8a4b00; }
.status-confirmed { background: #e9f7ef; border-color: #a9dfbf; color: #1e6b3a; }

.row-convo { font-size: 0.8rem; }
.row-convo summary { cursor: pointer; color: var(--pine); user-select: none; list-style: none; }
.row-convo summary::-webkit-details-marker { display: none; }
.row-convo summary::before { content: "▸ "; color: var(--ink-soft); }
.row-convo[open] summary::before { content: "▾ "; }
.row-convo-count { background: var(--pine-050); color: var(--pine); border-radius: 999px; padding: 0 7px; font-size: 0.72rem; }
.row-bubbles { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-width: 300px; }
.rb { padding: 5px 10px; border-radius: 13px; font-size: 0.82rem; line-height: 1.3; max-width: 92%; white-space: pre-wrap; word-wrap: break-word; }
.rb-outbound { align-self: flex-end; background: #0b93f6; color: #fff; border-bottom-right-radius: 4px; }
.rb-inbound { align-self: flex-start; background: #e5e5ea; color: #111; border-bottom-left-radius: 4px; }

/* ===== Leads as cards ===== */
.lead-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 980px) { .lead-cards { grid-template-columns: 1fr; } }
.lead-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 1px 2px rgba(16,81,74,0.04);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.lead-card:hover { box-shadow: 0 6px 20px rgba(16,81,74,0.08); border-color: var(--line-strong); }
.lc-main { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lc-ident { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.lc-avatar {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pine), #1a6f64); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; letter-spacing: 0.5px;
}
.lc-who { min-width: 0; }
.lc-name { font-weight: 650; font-size: 1.05rem; color: var(--ink); }
.lc-contact { display: flex; gap: 10px; flex-wrap: wrap; color: var(--ink-soft); font-size: 0.85rem; margin: 2px 0 6px; }
.lc-contact .lc-phone { font-variant-numeric: tabular-nums; }
.lc-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lc-sub { font-size: 0.78rem; color: var(--ink-soft); }
.lc-dates { color: var(--ink-soft); font-size: 0.76rem; margin-top: 6px; }
.lc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.lc-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.js-outreach.is-pending { background: #fff6e5; color: #8a5a00; border: 1px solid #ffe3a3; cursor: default; }

/* status indicator */
.status-wrap { position: relative; }
.status-chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 5px 11px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-soft);
}
.status-chip .status-caret { font-size: 0.7rem; opacity: 0.7; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); flex: 0 0 9px; }
.status-none .status-dot, .status-dot.status-none { background: #c7cccb; }
.status-negotiating.status-chip, .status-negotiating.status-dot { }
.status-negotiating .status-dot, .status-dot.status-negotiating { background: #2f6bff; }
.status-negotiating.status-chip { background: #eef4ff; border-color: #b9d0ff; color: #1e3a8a; }
.status-not_eligible .status-dot, .status-dot.status-not_eligible { background: #e5484d; }
.status-not_eligible.status-chip { background: #fdecea; border-color: #f0c2bc; color: #8a1c12; }
.status-needs_intervention .status-dot, .status-dot.status-needs_intervention { background: #f5a623; }
.status-needs_intervention.status-chip { background: #fff4e5; border-color: #ffd8a8; color: #8a4b00; }
.status-confirmed .status-dot, .status-dot.status-confirmed { background: #23a55a; }
.status-confirmed.status-chip { background: #e9f7ef; border-color: #a9dfbf; color: #1e6b3a; }
.status-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 190px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); padding: 6px; flex-direction: column; gap: 2px;
  display: none;  /* hidden by default even without JS; .open reveals it */
}
.status-menu.open { display: flex; }
.status-menu[hidden] { display: none; }
.status-opt {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 7px 10px; border: none; background: none; border-radius: 8px; cursor: pointer; font-size: 0.86rem; color: var(--ink);
}
.status-opt:hover { background: var(--pine-050); }

/* conversation panel inside a card */
.lc-convo { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lc-convo .imessage { max-width: 100%; margin: 0; box-shadow: none; border-radius: 14px; }
.lc-compose { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(245,245,247,0.6); }
.lc-compose .input { flex: 1; }
.lc-error { color: var(--danger-fg); font-size: 0.82rem; padding: 6px 12px 10px; margin: 0; }

.status-auto { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.55; margin-left: 1px; font-weight: 700; }

/* optimistic + typing states */
.bubble-sending { opacity: 0.55; }
.bubble-typing { display: inline-flex; gap: 4px; align-items: center; padding: 10px 13px; }
.bubble-typing span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.9); display: inline-block; animation: lc-typing 1.2s infinite ease-in-out; }
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes lc-typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

.lc-admin { padding: 8px 12px 12px; text-align: right; }
.lc-clear { background: none; border: none; color: var(--danger-fg); font-size: 0.78rem; cursor: pointer; text-decoration: underline; opacity: 0.8; }
.lc-clear:hover { opacity: 1; }

.lc-extra { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-soft); font-size: 0.76rem; margin-top: 4px; }
.lc-extra .lc-k { text-transform: uppercase; letter-spacing: 0.4px; font-size: 0.64rem; opacity: 0.7; margin-right: 3px; }

/* Test-mode override bar (top of leads page) */
.testbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 16px;
  background: #f5f7f7; border: 1px solid var(--line-strong);
}
.testbar-on { background: #fff6e5; border-color: #ffe3a3; }
.testbar-title { font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.testbar-input { max-width: 230px; }
.testbar-state { font-size: 0.85rem; color: var(--ink-soft); }
.testbar-ro { color: #8a5a00; }

/* Call recordings panel */
.lc-calls { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.lc-calls-head { font-size: 0.8rem; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.lc-calls-body { font-size: 0.85rem; color: var(--ink-soft); }
.call-row { display: flex; flex-direction: column; gap: 5px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.call-row:last-child { border-bottom: none; }
.call-meta { font-size: 0.8rem; color: var(--ink); }
.call-row audio { width: 100%; height: 34px; }
.call-noaudio { font-size: 0.75rem; color: var(--ink-soft); font-style: italic; }
