/* board-v2.css — Board V2 (bt2-* namespace)
 * DS Scout: Inter + IBM Plex Mono, accent #8E2D50
 * Parallel com board-temp.css (bt-*). Não polui legacy.
 */

/* ── SUMMARY ──────────────────────────────────────────────── */
.bt2-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, #E5E7EB);
  flex-wrap: wrap;
}
.bt2-spill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: default;
}
.bt2-spill__count { font-family: var(--mono); font-size: 11px; font-weight: 500; }
.bt2-spill--total   { background: var(--surface-2, #F3F4F6); color: var(--text, #1F2937); }
.bt2-spill--target  { background: #ECFDF5; color: #059669; }
.bt2-spill--alta    { background: #D1FAE5; color: #065f46; }
.bt2-spill--mod     { background: #FFFBEB; color: #92400e; }
.bt2-spill--baixa   { background: #F3F4F6; color: #6B7280; }
.bt2-spill--desc    { background: #FEF2F2; color: #991b1b; }
.bt2-summary__sep   { width: 1px; height: 16px; background: var(--border, #E5E7EB); margin: 0 4px; }
.bt2-summary__meta  { margin-left: auto; font-size: 11px; color: var(--text-faint, #9CA3AF); font-family: var(--mono); }
.bt2-summary__meta strong { color: var(--text-muted, #6B7280); font-weight: 500; }

/* ── CONTROLS ─────────────────────────────────────────────── */
.bt2-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border, #E5E7EB);
  flex-wrap: wrap;
}
.bt2-controls__search {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface, #F9FAFB);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 20px;
  padding: 0 12px;
  height: 28px;
  width: 220px;
  transition: border-color .15s, box-shadow .15s, width .2s;
}
.bt2-controls__search:focus-within {
  border-color: var(--gold, #8E2D50);
  box-shadow: 0 0 0 3px rgba(142, 45, 80, .1);
  width: 280px;
}
.bt2-controls__search svg { color: var(--text-faint, #9CA3AF); flex-shrink: 0; }
.bt2-controls__search input {
  flex: 1; border: none; background: none; outline: none;
  font-family: var(--sans); font-size: 12.5px; color: var(--text, #1F2937);
  min-width: 0;
}
.bt2-controls__search input::placeholder { color: var(--text-faint, #9CA3AF); }
.bt2-controls__pills { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.bt2-controls__right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }
.bt2-controls__meta { font-family: var(--mono); font-size: 10px; color: var(--text-faint, #9CA3AF); white-space: nowrap; }

/* Pills (DS bt-pill fiel) */
.bt2-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--border, #E5E7EB); border-radius: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--text-muted, #6B7280); background: white;
  cursor: pointer; white-space: nowrap;
  text-transform: uppercase; letter-spacing: .04em; line-height: 1.4;
  transition: border-color .15s, background .15s, color .15s;
  position: relative;
}
.bt2-pill:hover { border-color: var(--border-strong, #D1D5DB); color: var(--text, #1F2937); }
.bt2-pill.is-active { background: var(--text, #1F2937); color: white; border-color: var(--text, #1F2937); }
.bt2-pill.is-active:hover { background: #000; }
.bt2-pill__caret { width: 8px; height: 8px; opacity: .55; }
.bt2-pill__x { opacity: .7; cursor: pointer; display: flex; align-items: center; }
.bt2-pill__x:hover { opacity: 1; }
.bt2-pill__count {
  font-family: var(--mono); font-size: 9.5px; padding: 1px 5px;
  background: var(--gold, #8E2D50); color: white;
  border-radius: 8px; font-weight: 700;
}
.bt2-pill-wrap { position: relative; display: inline-block; }

/* Sort pill */
.bt2-sort { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border: 1px solid var(--border, #E5E7EB); border-radius: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  color: var(--text-muted, #6B7280); background: white; cursor: pointer;
  text-transform: uppercase; letter-spacing: .04em;
  transition: border-color .15s, color .15s; }
.bt2-sort:hover { border-color: var(--border-strong, #D1D5DB); color: var(--text, #1F2937); }
.bt2-sort svg { opacity: .55; }

/* View toggle */
.bt2-vt { display: inline-flex; border: 1px solid var(--border, #E5E7EB); border-radius: 4px; overflow: hidden; }
.bt2-vt__btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; font-family: var(--mono); font-size: 10px; font-weight: 600;
  color: var(--text-muted, #6B7280); background: white; cursor: pointer; border: none;
  text-transform: uppercase; letter-spacing: .06em;
  border-right: 1px solid var(--border, #E5E7EB);
  transition: background .15s, color .15s;
}
.bt2-vt__btn:last-child { border-right: none; }
.bt2-vt__btn.is-active { background: var(--text, #1F2937); color: white; }

/* Popover */
.bt2-popover {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 100;
  background: white; border: 1px solid var(--border, #E5E7EB);
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 180px; padding: 4px 0;
}
.bt2-popover__search {
  display: block; width: calc(100% - 16px); margin: 6px 8px;
  padding: 5px 10px; border: 1px solid var(--border, #E5E7EB);
  border-radius: 4px; font-size: 12px; outline: none;
  font-family: var(--sans);
}
.bt2-popover__search:focus { border-color: var(--gold, #8E2D50); }
.bt2-popover__item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; font-size: 12.5px; color: var(--text, #1F2937);
  cursor: pointer; transition: background .1s;
}
.bt2-popover__item:hover { background: var(--surface, #F9FAFB); }
.bt2-popover__item input[type=checkbox] { accent-color: var(--gold, #8E2D50); }
.bt2-popover__count { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--text-faint, #9CA3AF); }
.bt2-popover__footer {
  border-top: 1px solid var(--border, #E5E7EB); margin-top: 4px; padding: 6px 12px;
  font-size: 11px; color: var(--gold, #8E2D50); cursor: pointer; font-weight: 500;
}
.bt2-popover__footer:hover { text-decoration: underline; }
/* Segmented inside popover */
.bt2-popover__segs { display: flex; padding: 6px 8px; gap: 4px; }
.bt2-popover__seg {
  flex: 1; text-align: center; padding: 4px 8px;
  border: 1px solid var(--border, #E5E7EB); border-radius: 4px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
  cursor: pointer; color: var(--text-muted, #6B7280); background: white;
  transition: background .12s, color .12s;
}
.bt2-popover__seg.is-active { background: var(--text, #1F2937); color: white; border-color: var(--text, #1F2937); }
/* Sort dropdown */
.bt2-sort__drop {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 100;
  background: white; border: 1px solid var(--border, #E5E7EB);
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.1);
  min-width: 140px; padding: 4px 0;
}
.bt2-sort__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px; font-size: 12.5px; cursor: pointer;
  color: var(--text, #1F2937); transition: background .1s;
}
.bt2-sort__item:hover { background: var(--surface, #F9FAFB); }
.bt2-sort__item.is-active { color: var(--gold, #8E2D50); font-weight: 600; }
.bt2-sort__dir { font-family: var(--mono); font-size: 11px; color: var(--text-muted, #6B7280); }

/* ── ROOT CONTAINER ───────────────────────────────────────── */
#boardTempView .bt2-summary,
#boardTempView .bt2-controls,
#boardTempView .bt2-grid,
#boardTempView .bt2-table-wrap,
#boardTempView .bt2-empty {
  max-width: 1280px;
}

/* ── GRID ─────────────────────────────────────────────────── */
.bt2-grid {
  display: grid;
  /* minmax(0,1fr): força colunas iguais, evita overflow de texto longo */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  background: var(--surface, #F9FAFB);
}
@media (max-width: 1100px) { .bt2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .bt2-grid { grid-template-columns: 1fr; padding: 10px; gap: 10px; } }

/* ── CARD ─────────────────────────────────────────────────── */
.bt2-card {
  position: relative;
  background: white;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 6px;
  /* idêntico ao bt-card v25.1.8: ~90-100px altura */
  padding: 8px 12px 6px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0; /* previne overflow de flex child */
  transition: border-color 80ms, box-shadow 80ms;
}
.bt2-card:hover { border-color: var(--text, #1F2937); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.bt2-card:hover .bt2-card__action { opacity: 1; }
.bt2-card:hover .bt2-card__check { opacity: 1; }
.bt2-card.is-selected { border-color: var(--gold, #8E2D50); background: rgba(142, 45, 80, .04); }
.bt2-card.is-open { border-color: var(--text, #1F2937); box-shadow: 0 0 0 2px rgba(31,41,55,.12); }
.bt2-card.is-mira-top::before {
  content: ''; position: absolute;
  top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--gold, #8E2D50); opacity: .7;
  border-radius: 6px 6px 0 0;
}

.bt2-card__check {
  position: absolute; top: 10px; right: 10px;
  opacity: 0; transition: opacity 80ms; z-index: 2;
}
.bt2-card__check input[type=checkbox] {
  width: 14px; height: 14px; margin: 0; cursor: pointer;
  accent-color: var(--text, #1F2937);
}
.bt2-card:hover .bt2-card__check,
.bt2-card.is-selected .bt2-card__check { opacity: 1; }

.bt2-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bt2-card__name { font-size: 14px; font-weight: 700; letter-spacing: -.02em; color: var(--text, #1F2937); line-height: 1.15; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt2-card__loc { font-size: 10.5px; color: var(--text-muted, #6B7280); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt2-card__tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.bt2-card__brief { font-size: 11.5px; color: var(--text-muted, #6B7280); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.bt2-card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; border-top: 1px solid var(--border, #E5E7EB); }
.bt2-card__mira { font-family: var(--mono); font-weight: 700; font-size: 11.5px; color: var(--text, #1F2937); display: flex; align-items: baseline; gap: 3px; }
.bt2-card__mira span { font-size: 9.5px; color: var(--text-faint, #9CA3AF); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.bt2-card__mira--good { color: #059669; }
.bt2-card__mira--bad  { color: #dc2626; }
.bt2-card__updated { font-size: 11px; color: var(--text-faint, #9CA3AF); }
.bt2-card__action {
  opacity: 0; font-size: 11px; font-weight: 500; color: var(--gold, #8E2D50);
  padding: 2px 8px; border-radius: 4px; background: rgba(142, 45, 80, 0.06);
  transition: opacity .15s; white-space: nowrap; flex-shrink: 0;
}

/* Verdict badge (reusa cb-band do scout.css; aqui versão autônoma) */
.bt2-verdict {
  flex-shrink: 0; font-size: 10px; font-family: var(--mono); font-weight: 500;
  letter-spacing: .04em; padding: 2px 7px; border-radius: 3px; line-height: 1.6; white-space: nowrap;
}
.bt2-verdict--target  { background: #ECFDF5; color: #059669; }
.bt2-verdict--alta    { background: #D1FAE5; color: #065f46; }
.bt2-verdict--mod     { background: #FFFBEB; color: #92400e; }
.bt2-verdict--baixa   { background: #F3F4F6; color: #6B7280; }
.bt2-verdict--desc    { background: #FEF2F2; color: #991b1b; }

/* Sector badge */
.bt2-sector { font-size: 9.5px; font-family: var(--mono); font-weight: 500; padding: 1px 5px; border-radius: 3px; letter-spacing: .02em; }
.bt2-sector--tech        { background: #EFF6FF; color: #1d4ed8; }
.bt2-sector--capital     { background: #F5F3FF; color: #6d28d9; }
.bt2-sector--operacional { background: #FFF7ED; color: #c2410c; }
.bt2-sector--cross       { background: #F3F4F6; color: #6B7280; }

/* MIRA chips */
.bt2-mira-chip {
  font-size: 9px; font-family: var(--mono); font-weight: 500;
  color: var(--gold, #8E2D50); background: rgba(142, 45, 80, 0.06);
  border: 1px solid #c3e8d6; padding: 1px 5px; border-radius: 3px;
  letter-spacing: .04em; display: inline-flex; align-items: center; gap: 3px;
}
.bt2-mira-chip::before {
  content: ''; display: block; width: 5px; height: 5px;
  background: var(--gold, #8E2D50); border-radius: 50%;
  animation: bt2-pulse 2s ease-in-out infinite;
}
.bt2-mira-chip--setor { background: #D1FAE5; color: #065f46; border-color: #a7f3d0; }
.bt2-mira-chip--setor::before { background: #065f46; }
@keyframes bt2-pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

/* Subset chips */
.bt2-sub { font-size: 9.5px; font-weight: 500; padding: 1px 5px; border-radius: 3px; border: 1px solid; }
.bt2-sub--ma   { color: #8B5CF6; border-color: #ddd6fe; background: #F5F3FF; }
.bt2-sub--pe   { color: var(--gold, #8E2D50); border-color: #c3e8d6; background: rgba(142, 45, 80, 0.06); }
.bt2-sub--parc { color: #3B82F6; border-color: #bfdbfe; background: #EFF6FF; }
.bt2-sub--more { color: var(--text-faint, #9CA3AF); border-color: var(--border, #E5E7EB); background: var(--surface, #F9FAFB); }

/* ── TABLE ────────────────────────────────────────────────── */
.bt2-table-wrap { padding: 12px 0; }
.bt2-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bt2-table th {
  text-align: left; padding: 8px 12px;
  font-size: 10px; font-family: var(--mono); color: var(--text-faint, #9CA3AF);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border, #E5E7EB);
  background: var(--surface, #F9FAFB); font-weight: 500; white-space: nowrap;
  cursor: pointer; user-select: none;
}
.bt2-table th:hover { color: var(--text, #1F2937); }
.bt2-table th.is-sort { color: var(--gold, #8E2D50); }
.bt2-table td { padding: 9px 12px; border-bottom: 1px solid var(--border, #E5E7EB); color: var(--text, #1F2937); }
.bt2-table tr:hover td { background: var(--surface, #F9FAFB); cursor: pointer; }
.bt2-table .col-name { font-weight: 600; }
.bt2-table .col-mira { font-family: var(--mono); font-weight: 500; }
.bt2-table .col-upd  { color: var(--text-faint, #9CA3AF); font-family: var(--mono); font-size: 11px; }

/* ── BULK BAR ─────────────────────────────────────────────── */
.bt2-bulk {
  position: fixed; bottom: 0; left: 0; right: 0; height: 52px;
  background: #1F2937;
  display: flex; align-items: center; gap: 10px; padding: 0 20px;
  z-index: 300;
  transform: translateY(100%); transition: transform .2s ease;
}
.bt2-bulk:not([hidden]) { transform: translateY(0); }
.bt2-bulk__info { font-size: 13px; color: white; font-weight: 500; }
.bt2-bulk__info strong { color: var(--gold, #8E2D50); font-family: var(--mono); }
.bt2-bulk__btn {
  padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: none; font-family: var(--sans);
  background: rgba(255,255,255,.12); color: white;
  transition: background .15s;
}
.bt2-bulk__btn:hover { background: rgba(255,255,255,.22); }
.bt2-bulk__btn--primary { background: var(--gold, #8E2D50); }
.bt2-bulk__btn--primary:hover { background: #0c8650; }
.bt2-bulk__sep { flex: 1; }
.bt2-bulk__clear {
  font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.5);
  background: none; border: none; cursor: pointer; text-transform: uppercase;
  letter-spacing: .06em; transition: color .15s;
}
.bt2-bulk__clear:hover { color: white; }

/* ── DRAWER ───────────────────────────────────────────────── */
.bt2-backdrop {
  position: fixed; inset: 0;
  background: rgba(17,24,39,.3);
  z-index: 400; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.bt2-backdrop.is-open { opacity: 1; pointer-events: auto; }
.bt2-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 480px;
  background: white; border-left: 1px solid var(--border, #E5E7EB);
  z-index: 401; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s cubic-bezier(.4,0,.2,1);
  box-shadow: -4px 0 24px rgba(0,0,0,.08);
}
.bt2-drawer.is-open { transform: translateX(0); }
@media (max-width: 600px) { .bt2-drawer { width: 92vw; } }

.bt2-drawer__header { padding: 14px 18px 12px; border-bottom: 1px solid var(--border, #E5E7EB); flex-shrink: 0; }
.bt2-drawer__topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.bt2-drawer__rank { font-family: var(--mono); font-size: 10px; color: var(--text-faint, #9CA3AF); text-transform: uppercase; letter-spacing: .06em; }
.bt2-drawer__close {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text-faint, #9CA3AF); cursor: pointer;
  transition: background .15s, color .15s;
}
.bt2-drawer__close:hover { background: var(--surface-2, #F3F4F6); color: var(--text, #1F2937); }
.bt2-drawer__title { font-size: 16px; font-weight: 700; color: var(--text, #1F2937); line-height: 1.3; }
.bt2-drawer__title-link { color: inherit; text-decoration: none; }
.bt2-drawer__title-link:hover { color: var(--gold, #8E2D50); text-decoration: underline; }
.bt2-drawer__sub { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.bt2-drawer__upd { font-family: var(--mono); font-size: 10px; color: var(--text-faint, #9CA3AF); text-transform: uppercase; letter-spacing: .04em; }

.bt2-drawer__tabs { display: flex; border-bottom: 1px solid var(--border, #E5E7EB); padding: 0 18px; flex-shrink: 0; }
.bt2-drawer__tab {
  padding: 10px 12px; font-size: 12px; font-weight: 500;
  color: var(--text-muted, #6B7280); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
  font-family: var(--sans);
}
.bt2-drawer__tab:hover { color: var(--text, #1F2937); }
.bt2-drawer__tab.is-active { color: var(--gold, #8E2D50); border-bottom-color: var(--gold, #8E2D50); }

.bt2-drawer__body { flex: 1; overflow-y: auto; padding: 18px; }
.bt2-drawer__body::-webkit-scrollbar { width: 4px; }
.bt2-drawer__body::-webkit-scrollbar-thumb { background: var(--border-strong, #D1D5DB); border-radius: 2px; }

.bt2-drawer__footer {
  padding: 12px 18px; border-top: 1px solid var(--border, #E5E7EB);
  display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.bt2-drawer__nav { display: flex; gap: 6px; }
.bt2-drawer__nav-btn {
  padding: 5px 12px; border: 1px solid var(--border, #E5E7EB); border-radius: 4px;
  font-size: 12px; font-weight: 500; color: var(--text-muted, #6B7280); background: white;
  cursor: pointer; transition: border-color .15s, color .15s; font-family: var(--sans);
}
.bt2-drawer__nav-btn:hover:not(:disabled) { border-color: var(--border-strong, #D1D5DB); color: var(--text, #1F2937); }
.bt2-drawer__nav-btn:disabled { opacity: .4; cursor: default; }
.bt2-drawer__pos { font-family: var(--mono); font-size: 10px; color: var(--text-faint, #9CA3AF); text-transform: uppercase; letter-spacing: .06em; }

/* Drawer body inner elements */
.bt2-drawer__metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 16px; }
.bt2-drawer__metric { background: var(--surface, #F9FAFB); border: 1px solid var(--border, #E5E7EB); border-radius: 6px; padding: 10px 12px; text-align: center; }
.bt2-drawer__metric-label { font-size: 9px; font-family: var(--mono); color: var(--text-faint, #9CA3AF); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.bt2-drawer__metric-value { font-size: 18px; font-weight: 700; color: var(--text, #1F2937); font-family: var(--mono); line-height: 1.2; }
.bt2-drawer__metric-value--good { color: #059669; }
.bt2-drawer__metric-value--bad  { color: #dc2626; }

.bt2-drawer__section { margin-bottom: 16px; }
.bt2-drawer__section-title {
  font-size: 10px; font-family: var(--mono); color: var(--text-faint, #9CA3AF);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.bt2-drawer__section-title::after { content: ''; flex: 1; height: 1px; background: var(--border, #E5E7EB); }
.bt2-drawer__brief { font-size: 13px; color: var(--text-muted, #6B7280); line-height: 1.6; }
.bt2-drawer__dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 12px; }
.bt2-drawer__dl dt { color: var(--text-faint, #9CA3AF); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; }
.bt2-drawer__dl dd { color: var(--text, #1F2937); margin: 0; }
.bt2-drawer__dl dd.is-empty { color: var(--text-faint, #9CA3AF); }

.bt2-drawer__bar { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border, #E5E7EB); }
.bt2-drawer__bar:last-child { border-bottom: none; }
.bt2-drawer__bar-label { font-size: 12.5px; color: var(--text-muted, #6B7280); flex: 1; }
.bt2-drawer__bar-track { width: 80px; height: 4px; background: var(--surface-2, #F3F4F6); border-radius: 2px; overflow: hidden; }
.bt2-drawer__bar-fill { height: 100%; border-radius: 2px; background: var(--gold, #8E2D50); }
.bt2-drawer__bar-fill--risk { background: #EF4444; }
.bt2-drawer__bar-value { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--text, #1F2937); min-width: 28px; text-align: right; }

/* RAG tab */
.bt2-rag-upload {
  border: 1.5px dashed var(--border-strong, #D1D5DB); border-radius: 8px;
  padding: 20px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer; background: var(--surface, #F9FAFB);
  transition: border-color .15s, background .15s;
}
.bt2-rag-upload:hover { border-color: var(--gold, #8E2D50); background: rgba(142, 45, 80, 0.06); }
.bt2-rag-upload__text { font-size: 12.5px; color: var(--text-muted, #6B7280); }
.bt2-rag-upload__link { color: var(--gold, #8E2D50); font-weight: 500; cursor: pointer; }
.bt2-rag-upload__hint { font-size: 11px; color: var(--text-faint, #9CA3AF); font-family: var(--mono); }
.bt2-rag-list { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--border, #E5E7EB); border-radius: 6px; overflow: hidden; margin: 12px 0; }
.bt2-rag-file { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: white; transition: background .12s; }
.bt2-rag-file:hover { background: var(--surface, #F9FAFB); }
.bt2-rag-file + .bt2-rag-file { border-top: 1px solid var(--border, #E5E7EB); }
.bt2-rag-file__icon { width: 28px; height: 28px; border-radius: 3px; font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bt2-rag-file__icon--pdf  { background: #FEF2F2; color: #dc2626; }
.bt2-rag-file__icon--docx { background: #EFF6FF; color: #2563eb; }
.bt2-rag-file__icon--txt  { background: #F3F4F6; color: #6B7280; }
.bt2-rag-file__info { flex: 1; min-width: 0; }
.bt2-rag-file__name { font-size: 12px; font-weight: 500; color: var(--text, #1F2937); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt2-rag-file__meta { font-size: 10px; color: var(--text-faint, #9CA3AF); font-family: var(--mono); margin-top: 1px; }
.bt2-rag-status { font-size: 9.5px; font-family: var(--mono); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: 2px 7px; border-radius: 3px; flex-shrink: 0; }
.bt2-rag-status--ok         { background: #ECFDF5; color: #059669; }
.bt2-rag-status--processing { background: #FFFBEB; color: #92400e; animation: bt2-pulse-opacity 1.8s ease-in-out infinite; }
.bt2-rag-status--error      { background: #FEF2F2; color: #991b1b; }
@keyframes bt2-pulse-opacity { 0%,100%{opacity:1} 50%{opacity:.5} }
.bt2-rag-del { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text-faint, #9CA3AF); opacity: 0; cursor: pointer; transition: opacity .12s, background .12s, color .12s; flex-shrink: 0; border: none; background: none; }
.bt2-rag-file:hover .bt2-rag-del { opacity: 1; }
.bt2-rag-del:hover { background: #FEF2F2; color: #EF4444; }
.bt2-rag-hint { font-size: 11px; color: var(--text-faint, #9CA3AF); line-height: 1.5; padding: 8px 10px; background: var(--surface, #F9FAFB); border-radius: 6px; border: 1px solid var(--border, #E5E7EB); }

/* ── EMPTY ────────────────────────────────────────────────── */
.bt2-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 20px; text-align: center; gap: 12px; }
.bt2-empty__icon { color: var(--text-faint, #9CA3AF); opacity: .4; }
.bt2-empty__title { font-size: 14px; font-weight: 500; color: var(--text-muted, #6B7280); }
.bt2-empty__body  { font-size: 13px; color: var(--text-faint, #9CA3AF); }
.bt2-empty__btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid var(--border, #E5E7EB); border-radius: 4px; font-size: 13px; font-weight: 500; color: var(--text-muted, #6B7280); background: white; cursor: pointer; transition: border-color .15s, color .15s; font-family: var(--sans); }
.bt2-empty__btn:hover { border-color: var(--gold, #8E2D50); color: var(--gold, #8E2D50); }

/* ── SKELETON ─────────────────────────────────────────────── */
.bt2-skeleton { background: linear-gradient(90deg, var(--surface, #F9FAFB) 25%, var(--surface-2, #F3F4F6) 50%, var(--surface, #F9FAFB) 75%); background-size: 200% 100%; animation: bt2-shimmer 1.2s infinite; border-radius: 3px; }
@keyframes bt2-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.bt2-skeleton-card { border: 1px solid var(--border, #E5E7EB); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bt2-skeleton-line { height: 10px; border-radius: 3px; }
.bt2-skeleton-line--lg { height: 14px; width: 60%; }
.bt2-skeleton-line--md { width: 80%; }
.bt2-skeleton-line--sm { width: 40%; }

/* ── TOAST ────────────────────────────────────────────────── */
.bt2-toast {
  position: fixed; bottom: 72px; left: 50%; transform: translateX(-50%);
  background: #1F2937; color: white; padding: 10px 18px;
  border-radius: 6px; font-size: 13px; z-index: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,.18); white-space: nowrap;
  transition: opacity .2s;
}
