/* dashboard.css — overlay on top of styles.css (handoff design system).
   Asset rows, file_id pills, URI copy buttons, plus the per-view row
   variants (speakers, topics, bills) and the sidebar language toggle. */

/* ─── Language toggle (sidebar) ────────────────────────────────────── */
.lang-toggle {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 6px 18px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px;
}
.lang-toggle button {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms;
}
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active {
  background: var(--obsidian);
  color: var(--paper);
}

/* ─── Speaker rows ──────────────────────────────────────────────────── */
.speaker-card .speaker-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.speaker-card .avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
}
.speaker-who .speaker-name { margin: 0; font-size: 18px; }
.speaker-who .speaker-meta {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.speaker-who .speaker-role { font-weight: 500; }
.speaker-who .speaker-role.muted { font-weight: 400; color: var(--ink-4); font-style: italic; }
.session-date { font-weight: 500; color: var(--ink-2); }
.session-stat { font-family: var(--font-sans); font-size: 12px; color: var(--ink-3); }
.session-stat b { color: var(--ink); font-family: var(--font-mono); font-weight: 500; margin-right: 2px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stat-grid > div {
  background: var(--paper-2);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.stat-grid > div b {
  display: block;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}
.stat-grid > div span {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.speaker-who .sep {
  display: inline-block;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--ink-4);
  margin: 0 4px;
}
.speaker-stats {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}
.speaker-stats > div {
  text-align: right;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--ink-3);
}
.speaker-stats b {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* ─── Topic rows ───────────────────────────────────────────────────── */
/* Two-column: name flows, stats hug the right. Was a 3-col grid with
   a fixed-width left "scope" chip that's no longer rendered. The fixed
   70px left column was pinching the name; numbers ended up overlapping. */
.topic-row-card .topic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.topic-row .topic-row-name {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  /* Text-transform: capitalize gives sentence-case look without
     mutating the underlying taxonomy values. */
  text-transform: capitalize;
}

/* ─── Mention cards (bill inspector) ───────────────────────────────── */
.mention-card { cursor: pointer; }
.mention-card:hover { border-left-color: var(--orange-deep); }
.mention-card .time { color: var(--ink-3); }

/* ─── Collapsible "Ver más / Ver menos" pattern ────────────────────── */
.collapsible {
  position: relative;
}
.collapsible[data-collapsed="true"] .collapsible-body {
  display: -webkit-box;
  -webkit-line-clamp: var(--collapsed-lines, 4);
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Soft fade hint on the last line so the eye knows there's more. */
  mask-image: linear-gradient(to bottom, black 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent);
}
.collapsible[data-collapsed="false"] .collapsible-body {
  /* Reset fade when expanded. */
  mask-image: none;
  -webkit-mask-image: none;
}
.collapsible-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  cursor: pointer;
  padding: 6px 0 0;
  margin-top: 4px;
}
.collapsible-toggle:hover { color: var(--ink); }
.collapsible[data-collapsed="true"]  .less-label { display: none; }
.collapsible[data-collapsed="false"] .more-label { display: none; }

/* Sidebar spacer where the NAVEGACIÓN eyebrow used to live — matches
   Vercel layout (no section label above the nav items). */
.sidebar-spacer-small { height: 12px; }

/* ─── Mobile (≤880px) ─────────────────────────────────────────────── */
/* Strategy:
   - Mobile header with hamburger replaces the (now-hidden) sidebar.
   - Sidebar slides in as a left drawer when hamburger is tapped; backdrop
     dims everything behind. Tap outside or nav item to close.
   - Inspector becomes a master-detail overlay: hidden by default, slides
     in full-width when user taps a card; close button returns to list.
   - Card density tightens, stat grids collapse to 2-col then 1-col.
   - Detail page typography shrinks: title 32px → 22px, stats grid wraps. */

.mobile-topbar { display: none; }
.mobile-backdrop { display: none; }
.mobile-inspector-header { display: none; }
.mobile-inspector-close-btn { display: none; }

@media (max-width: 880px) {
  body { padding-top: 52px; }

  .mobile-topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 0; left: 0; right: 0; height: 52px;
    padding: 0 14px;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    z-index: 90;
  }
  .mobile-hamburger {
    appearance: none; background: transparent; border: 0;
    color: var(--ink); padding: 6px; cursor: pointer;
    border-radius: 6px;
  }
  .mobile-hamburger:active { background: var(--paper-3); }
  .mobile-brand {
    display: inline-flex; align-items: center; gap: 8px;
  }
  .mobile-brand .mark { width: 22px !important; height: 22px !important; --mark-size: 22px; }

  .mobile-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(11, 15, 20, 0.45);
    z-index: 85;
    opacity: 0; pointer-events: none;
    transition: opacity 180ms ease;
  }
  body.mobile-drawer-open .mobile-backdrop,
  body.mobile-inspector-open .mobile-backdrop {
    opacity: 1; pointer-events: auto;
  }

  /* Sidebar becomes a left drawer */
  .sidebar {
    display: flex !important;
    position: fixed !important;
    top: 0; bottom: 0; left: 0;
    width: 280px; max-width: 84vw;
    z-index: 95;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    overflow-y: auto;
    padding-top: 20px;
  }
  body.mobile-drawer-open .sidebar { transform: translateX(0); }

  /* Hide sidebar's lang toggle redundancy — put it in drawer footer instead */

  /* Main column gets full width */
  .app { grid-template-columns: 1fr !important; min-height: calc(100vh - 52px); }
  .main { padding: 12px 14px; }
  .page-head { padding: 8px 0 16px; flex-wrap: wrap; gap: 8px; }
  .page-title { font-size: 26px !important; }
  .topbar { padding: 0; gap: 8px; }
  .tabstrip { overflow-x: auto; padding-bottom: 4px; }
  .tabstrip::-webkit-scrollbar { display: none; }
  .tabstrip .tab { white-space: nowrap; }

  .topic-card, .session-card, .speaker-card, .bill-card, .topic-row-card,
  .gazette-card, .fallo-card {
    padding: 14px 16px !important;
  }
  .topic-title { font-size: 17px !important; line-height: 1.3; }
  .topic-desc { font-size: 13px; }

  /* Inspector becomes a full-screen overlay on mobile, opened by tapping a card.
     Starts BELOW both the mobile topbar (52px) AND the inspector header (48px). */
  .inspector {
    display: none !important;
    position: fixed !important;
    inset: 100px 0 0 0;
    width: 100% !important; max-width: 100% !important;
    z-index: 90;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 220ms ease;
  }
  body.mobile-inspector-open .inspector {
    display: flex !important;
    transform: translateX(0);
  }
  .inspector-scroll { padding: 16px 14px; }
  .inspector-title { font-size: 22px !important; }

  /* Mobile inspector header bar — full-width strip between the page topbar
     and the inspector content. Renders as a real header, not a floating
     close chip, so the back affordance reads as proper mobile navigation. */
  body.mobile-inspector-open .mobile-inspector-header {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed; top: 52px; left: 0; right: 0; height: 48px;
    z-index: 95;
    background: var(--paper-2);
    border-bottom: 1px solid var(--rule);
    padding: 0 8px;
  }
  body.mobile-inspector-open .mobile-inspector-close-btn {
    display: inline-flex; align-items: center; gap: 6px;
    appearance: none; background: transparent; border: 0;
    color: var(--ink-2);
    padding: 8px 10px;
    font-family: var(--font-sans); font-size: 14px; font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
  }
  body.mobile-inspector-open .mobile-inspector-close-btn:active {
    background: var(--paper-3);
  }
  .mobile-inspector-title {
    font-family: var(--font-sans); font-size: 13px; font-weight: 500;
    color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    flex: 1; text-align: center;
  }

  /* Detail page goes single-column on mobile */
  .detail-title { font-size: 22px !important; line-height: 1.2; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .detail-stats > div { padding: 10px; }
  .detail-stats > div b { font-size: 20px; }
  .detail-section-title { font-size: 17px; }
  .detail-narrative { font-size: 14px; }
  .actor-mini-list { grid-template-columns: 1fr !important; }
  .actor-mini { padding: 8px 10px; }
  .detail-video { max-height: 220px; }

  /* Stat grid (inspector) wraps to 1 col */
  .stat-grid { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .stat-grid > div { padding: 10px 8px; }
  .stat-grid > div b { font-size: 18px; }

  /* Speaker card stats stack */
  .speaker-card .speaker-row { grid-template-columns: 36px 1fr; }
  .speaker-stats { grid-column: 2; gap: 12px; margin-top: 4px; }

  /* Hide the sidebar nav badge for cleaner mobile look */
  .nav-item .count { font-size: 10px; }

  /* Topic row card: stats below name instead of beside */
  .topic-row-card .topic-row { grid-template-columns: 1fr; gap: 8px; }
}

/* Even tighter for narrow phones */
@media (max-width: 420px) {
  .detail-stats { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .detail-stats > div:nth-child(odd):last-child,
  .stat-grid > div:nth-child(odd):last-child {
    grid-column: span 2;
  }
  .page-title { font-size: 22px !important; }
}

/* ─── LLM-enriched chip + tag ──────────────────────────────────────── */
.topic-chip.ai {
  background: var(--accent-soft);
  color: var(--orange-deep);
  border-color: transparent;
}
.enrich-tag {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--orange);
  color: white;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ─── Detail page media player ─────────────────────────────────────── */
.detail-media {
  background: var(--obsidian);
  padding: 0 !important;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  margin-top: -4px;
}
.detail-video, .detail-audio {
  width: 100%;
  display: block;
}
.detail-video { max-height: 480px; background: black; }
.detail-audio { padding: 16px; background: var(--paper-2); }
.media-placeholder {
  background: var(--paper-2);
  color: var(--ink-3);
  padding: 60px 24px;
  text-align: center;
  font-family: var(--font-sans); font-size: 13.5px;
  border-radius: 14px;
}
.media-placeholder.error { color: var(--bad); background: var(--bad-soft); }
.media-placeholder small { display: block; margin-top: 6px; font-size: 11px; opacity: 0.8; }

/* ─── Actor inspector (handoff actor profile pattern) ─────────────── */
.actor-inspector-head {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
.avatar.lg {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 72px; height: 72px;
  border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2);
  font-family: var(--font-sans); font-size: 22px; font-weight: 600;
  margin-bottom: 14px;
}
.actor-name { margin: 0 0 8px 0 !important; font-size: 24px; }
.actor-role-line {
  font-family: var(--font-sans);
  font-size: 13px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.actor-role-line .sep {
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: var(--ink-4); margin: 0 2px;
}
.actor-span {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-2);
}
.actor-span-label {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  margin-right: 8px;
}

/* ─── Bill cards ───────────────────────────────────────────────────── */
/* Asamblea bill titles are ALL-CAPS regulatory text (often 200+ chars).
   Clamp to 3 lines + sentence-case visual via text-transform: lowercase
   then first-letter cap would over-engineer; just clamp height and use
   font-feature smallcap-ish proportions. Full text in hover title. */
.bill-card .topic-title {
  font-size: 19px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Loading skeletons ────────────────────────────────────────────── */
/* Used in inspector + detail page while async fetches resolve. Pulses
   between the two paper shades; no spinner — matches the handoff's
   restrained aesthetic. */
@keyframes skeleton-pulse {
  0%   { background-color: var(--paper-2); }
  50%  { background-color: var(--paper-3); }
  100% { background-color: var(--paper-2); }
}
.skel {
  display: block;
  border-radius: 6px;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skel.line { height: 12px; margin-bottom: 10px; }
.skel.line.short { width: 40%; }
.skel.line.mid   { width: 70%; }
.skel.line.long  { width: 95%; }
.skel.title { height: 28px; width: 80%; margin-bottom: 14px; border-radius: 4px; }
.skel.chip  { display: inline-block; height: 22px; width: 90px; border-radius: 999px; margin: 0 6px 6px 0; }
.skel.avatar { width: 36px; height: 36px; border-radius: 999px; display: inline-block; vertical-align: middle; margin-right: 10px; }
.skel.stat { height: 64px; border-radius: 12px; }
.skel-section { margin-bottom: 22px; }

/* ─── Session DETAIL PAGE (state.sessions.detailOpen) ─────────────── */
/* Takes over the main column (the list-container holds the whole detail
   markup; the inspector area is emptied). Layout mirrors handoff
   sesion-detail.jsx — back button, header, stats, narrative, sections. */
.detail-bar { margin-bottom: 20px; }
.btn-ghost {
  appearance: none; background: var(--white); color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: 8px 14px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
}
.btn-ghost:hover { background: var(--paper-3); }

.detail-head { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.detail-meta {
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.detail-meta .sep {
  display: inline-block; width: 3px; height: 3px;
  border-radius: 50%; background: var(--ink-4); margin: 0 4px;
}
.detail-title {
  font-family: var(--font-serif); font-size: 32px; font-weight: 500;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 8px 0;
}
.detail-chamber {
  font-family: var(--font-sans); font-size: 13.5px; color: var(--ink-3); margin-top: 4px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.detail-stats > div {
  background: var(--paper-2); border-radius: 12px; padding: 16px;
  text-align: center;
}
.detail-stats > div b {
  display: block; font-family: var(--font-serif); font-size: 28px;
  font-weight: 500; color: var(--ink); line-height: 1.1;
}
.detail-stats > div span {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3);
  margin-top: 4px; display: block;
}

.detail-section { margin-bottom: 28px; }
.detail-section-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  letter-spacing: -0.015em; color: var(--ink); margin: 0 0 14px 0;
  display: flex; align-items: baseline; gap: 10px;
}
.detail-section-title .count {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; color: var(--ink-3);
  background: var(--paper-2); padding: 2px 8px; border-radius: 999px;
}
.detail-narrative {
  font-family: var(--font-sans); font-size: 15px; line-height: 1.65;
  color: var(--ink-2); margin: 0;
  white-space: pre-wrap;
}

/* Actor mini list — matches handoff actor-mini.full pattern. */
.actor-mini-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 8px;
}
/* Compact variant for session inspector (single column, tighter padding) */
.actor-mini-list.compact { grid-template-columns: 1fr; gap: 4px; }
.actor-mini.compact { padding: 6px 8px; background: transparent; border-color: transparent; }
.actor-mini.compact .who .name { font-size: 13px; }
.actor-mini.compact .who .role { font-size: 11px; }
.actor-mini.compact .avatar { width: 30px; height: 30px; font-size: 10.5px; }
.actor-mini-more {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px 8px;
}
.actor-mini {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.actor-mini .avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--paper-3); color: var(--ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 11.5px; font-weight: 600;
}
.actor-mini .who .name {
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.actor-mini .who .role {
  font-family: var(--font-sans); font-size: 11.5px; color: var(--ink-3); margin-top: 2px;
}
.actor-mini .role-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-soft);
  border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}

/* Political-kind chip — stable identity from reference.politicians
   (diputado / ministro / etc). Sits at the start of the role line,
   pre-pended to whatever session-role the LLM derived. Colors are
   loose category groupings; unvetted is the absent-from-roster
   fallback so the user can immediately see who isn't a vetted
   official (sociedad civil, asesor externo, etc.). */
.political-kind {
  display: inline-block;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 1px 6px; border-radius: 4px;
  background: var(--paper-3); color: var(--ink-2);
  margin-right: 4px;
}
.political-kind.k-diputado    { background: #E8F1FF; color: #234E94; }
.political-kind.k-ministerio  { background: #FFF1E0; color: #8A4A1A; }
.political-kind.k-judicial    { background: #F1E8FF; color: #5A2B94; }
.political-kind.k-justicia    { background: #E8F4ED; color: #1F5E3C; }
.political-kind.k-otro        { background: var(--paper-3); color: var(--ink-2); }
.political-kind.unvetted      { background: transparent; color: var(--ink-4); border: 1px dashed var(--rule-2); font-weight: 500; }

/* Inline LLM-loading badge — sits next to a section title while the
   actor-roles request is in flight. */
.badge-loading {
  display: inline-block;
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500;
  color: var(--ink-3); background: var(--paper-3);
  padding: 1px 8px; border-radius: 999px;
  margin-left: 6px;
  animation: badge-pulse 1.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* When detail is open, the .inspector column collapses (we render
   into list-container and clear inspector). Hide the empty inspector
   to give the detail content full width. */
.app:has(.detail-head) { grid-template-columns: var(--sidebar-w) 1fr 0; }
.app:has(.detail-head) .inspector { display: none; }

/* ─── Existing styles below ────────────────────────────────────────── */

.asset-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.asset-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.asset-row.missing {
  background: var(--paper-3);
  opacity: 0.7;
}

.asset-row .asset-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.asset-row .asset-uri {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  word-break: break-all;
  line-height: 1.4;
}

.asset-row .asset-uri.empty {
  color: var(--ink-4);
  font-style: italic;
}

.asset-row .asset-copy {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 3px 10px;
  cursor: pointer;
  transition: background 120ms;
}

.asset-row .asset-copy:hover { background: var(--paper-3); color: var(--ink); }
.asset-row .asset-copy:disabled { opacity: 0.4; cursor: not-allowed; }

/* file_id chip in card foot */
.file-id-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-4);
  background: var(--paper-3);
  border-radius: 4px;
  padding: 2px 6px;
}

/* Asset availability badges (on card) */
.asset-badges {
  display: inline-flex;
  gap: 4px;
}
.asset-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: var(--paper-2);
  color: var(--ink-3);
  border: 1px solid var(--rule);
}
.asset-badge.on { background: var(--accent-soft); color: var(--orange-deep); border-color: transparent; }
.asset-badge.off { opacity: 0.4; }
.asset-badge svg { display: block; }

/* Decisions list (different from keypoints — checkbox-styled) */
.decision-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.decision-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.decision-list li::before {
  content: "→";
  color: var(--orange-deep);
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.4;
}

/* Bill chip — looks like topic-chip but mono */
.bill-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--rule);
  color: var(--ink-2);
}

/* Quote block in inspector */
.quote-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-card {
  border-left: 2px solid var(--orange);
  padding: 4px 0 4px 12px;
}
.quote-card .quote-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.quote-card .quote-meta .speaker { color: var(--ink-2); }
.quote-card .quote-meta .time { color: var(--ink-4); margin-left: 6px; }
.quote-card .quote-text {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}

/* Confidence pill in inspector head */
.confidence-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.confidence-pill.ok   { background: var(--ok-soft);   color: var(--ok);   }
.confidence-pill.warn { background: var(--warn-soft); color: var(--warn); }
.confidence-pill.bad  { background: var(--bad-soft);  color: var(--bad);  }

/* Empty state for inspector */
.inspector-empty {
  padding: 48px 28px;
  text-align: center;
  color: var(--ink-4);
  font-family: var(--font-sans);
  font-size: 13.5px;
}

/* Tabstrip count must show even on zero matches */
.tab .num { font-variant-numeric: tabular-nums; }

/* Toast for copy feedback */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--obsidian);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms;
  z-index: 1000;
}
.copy-toast.show { opacity: 1; }
