/* ============================================================
   TrustBridge Country Information — Public Page
   Brand palette + Rethink Sans. Scoped under .tbg-cip.
   ============================================================ */

.tbg-cip {
  --tbg-red: #96080B;
  --tbg-red-tint-3: #F5E6E7;
  --tbg-yellow: #FFC609;
  --tbg-yellow-tint-2: #FFF4CE;
  --tbg-yellow-tint-3: #FFF9E6;
  --tbg-blue: #083954;
  --tbg-blue-tint-2: #CED7DD;
  --tbg-cadet: #539CA6;
  /* Darkened cadet for small text on white — #539CA6 is ~3.1:1 against
     white and fails WCAG AA for small text; this shade is ~5.1:1. Keep
     --tbg-cadet for borders, markers, and other non-text accents. */
  --tbg-cadet-text: #3A7680;
  --tbg-cadet-tint-1: #A9CED3;
  --tbg-cadet-tint-2: #DDEBED;
  --tbg-cadet-tint-3: #EEF5F6;
  --tbg-charcoal-1: #313131;
  --tbg-charcoal-2: #464646;
  --tbg-charcoal-3: #6F6F6F;
  --tbg-gray-1: #EBEBEB;
  --tbg-gray-2: #EAEAEA;

  font-family: 'Rethink Sans', system-ui, -apple-system, sans-serif;
  color: var(--tbg-charcoal-1);
  line-height: 1.6;
  font-size: 16px;

  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.tbg-cip *, .tbg-cip *::before, .tbg-cip *::after { box-sizing: border-box; }

/* ---------- Hero ---------- */
.tbg-cip .tbg-hero {
  background: linear-gradient(135deg, var(--tbg-blue) 0%, var(--tbg-blue) 60%, #0a4866 100%);
  color: white;
  padding: 60px 40px;
  text-align: center;
}
.tbg-cip .tbg-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.tbg-cip .tbg-hero p {
  font-size: 1.05rem;
  max-width: 720px;
  margin: 0 auto;
  color: var(--tbg-cadet-tint-2);
}
.tbg-cip .tbg-updated-badge:empty { display: none; }
.tbg-cip .tbg-updated-badge {
  display: inline-block;
  background: var(--tbg-yellow);
  color: var(--tbg-charcoal-1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

/* ---------- Section base ---------- */
.tbg-cip .tbg-section {
  padding: 60px 40px;
  border-bottom: 1px solid var(--tbg-gray-1);
  max-width: 1400px;
  margin: 0 auto;
}
.tbg-cip .tbg-section:last-child { border-bottom: 0; }
.tbg-cip .tbg-section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tbg-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.tbg-cip .tbg-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--tbg-blue);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.tbg-cip .tbg-section-intro {
  font-size: 1.02rem;
  color: var(--tbg-charcoal-2);
  max-width: 760px;
  margin: 0 0 32px;
}

/* ---------- Disclaimer ---------- */
.tbg-cip .tbg-tax-disclaimer {
  background: var(--tbg-red-tint-3);
  border-left: 4px solid var(--tbg-red);
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--tbg-charcoal-2);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ---------- Tax receipt cards ---------- */
.tbg-cip .tbg-tax-region { margin-bottom: 28px; }
.tbg-cip .tbg-region-heading {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tbg-cadet-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tbg-gray-1);
}
.tbg-cip .tbg-tax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.tbg-cip .tbg-tax-card {
  background: white;
  border: 1px solid var(--tbg-gray-1);
  border-left: 4px solid var(--tbg-red);
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tbg-cip .tbg-tax-card:hover {
  box-shadow: 0 4px 16px rgba(8, 57, 84, 0.08);
  transform: translateY(-2px);
}
.tbg-cip .tbg-tax-card-country {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tbg-blue);
  margin: 0;
}
.tbg-cip .tbg-tax-card-member-block { display: flex; flex-direction: column; gap: 6px; }
.tbg-cip .tbg-tax-card-member-block + .tbg-tax-card-member-block {
  padding-top: 12px;
  border-top: 1px dashed var(--tbg-gray-1);
}
.tbg-cip .tbg-tax-card-member-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--tbg-cadet-text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tbg-cip .tbg-tax-card-member-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tbg-charcoal-1);
  line-height: 1.3;
}
.tbg-cip .tbg-tax-card-receipts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tbg-cip .tbg-tax-card-receipts .tbg-pill sup { font-size: 0.75rem; margin-left: 1px; }
.tbg-cip .tbg-tax-card-footnote {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--tbg-charcoal-3);
  line-height: 1.4;
  margin-top: 6px;
}
.tbg-cip .tbg-region-empty {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--tbg-charcoal-3);
  margin: 0 0 24px;
}
.tbg-cip .tbg-pill {
  display: inline-block;
  background: var(--tbg-cadet-tint-3);
  color: var(--tbg-blue);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.tbg-cip .tbg-copy-btn {
  background: var(--tbg-blue);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.tbg-cip .tbg-copy-btn:hover { background: #0a4866; }
.tbg-cip .tbg-copy-btn.tbg-copied { background: #2d7a3a; }
.tbg-cip .tbg-copy-btn svg { width: 16px; height: 16px; }

/* ---------- Section count badge ---------- */
.tbg-cip .tbg-count-badge {
  display: inline-block;
  vertical-align: middle;
  background: var(--tbg-cadet-tint-3);
  color: var(--tbg-blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  padding: 4px 12px;
  border-radius: 999px;
  margin-left: 10px;
  white-space: nowrap;
}
.tbg-cip .tbg-count-badge:empty { display: none; }

/* ---------- Eligibility check ---------- */
.tbg-cip .tbg-check-wrap {
  max-width: 720px;
  background: white;
  border: 1px solid var(--tbg-gray-1);
  border-radius: 12px;
  padding: 32px;
}
.tbg-cip .tbg-check-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--tbg-charcoal-2);
  margin-bottom: 8px;
}
.tbg-cip .tbg-select,
.tbg-cip .tbg-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--tbg-gray-1);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--tbg-charcoal-1);
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tbg-cip .tbg-select:focus,
.tbg-cip .tbg-input:focus {
  outline: none;
  border-color: var(--tbg-blue);
  box-shadow: 0 0 0 3px rgba(8, 57, 84, 0.12);
}
.tbg-cip .tbg-combobox { position: relative; }
.tbg-cip .tbg-combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--tbg-gray-1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(8, 57, 84, 0.12);
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 280px;
  overflow: auto;
  z-index: 6;
}
.tbg-cip .tbg-combo-option {
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}
.tbg-cip .tbg-combo-option:hover,
.tbg-cip .tbg-combo-option.is-active {
  background: var(--tbg-cadet-tint-3);
  color: var(--tbg-blue);
}
.tbg-cip .tbg-combo-empty {
  padding: 9px 12px;
  color: var(--tbg-charcoal-3);
  font-size: 0.9rem;
}
.tbg-cip .tbg-check-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: 8px;
  display: none;
}
.tbg-cip .tbg-check-result.is-visible { display: block; }
.tbg-cip .tbg-check-result.tbg-result-yes { background: #e8f5ec; border-left: 4px solid #2d7a3a; }
.tbg-cip .tbg-check-result.tbg-result-conditional { background: var(--tbg-yellow-tint-3); border-left: 4px solid var(--tbg-yellow); }
.tbg-cip .tbg-check-result.tbg-result-no { background: var(--tbg-red-tint-3); border-left: 4px solid var(--tbg-red); }
.tbg-cip .tbg-check-result-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.tbg-cip .tbg-check-result.tbg-result-yes .tbg-check-result-title { color: #1d5226; }
.tbg-cip .tbg-check-result.tbg-result-conditional .tbg-check-result-title { color: #6b5200; }
.tbg-cip .tbg-check-result.tbg-result-no .tbg-check-result-title { color: var(--tbg-red); }
.tbg-cip .tbg-check-result-msg { margin: 0; font-size: 0.95rem; }

/* ---------- Audience selector ---------- */
.tbg-cip .tbg-audience {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tbg-cip .tbg-audience-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tbg-charcoal-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tbg-cip .tbg-audience-toggle {
  display: inline-flex;
  background: var(--tbg-cadet-tint-3);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.tbg-cip .tbg-audience-btn {
  border: none;
  background: transparent;
  color: var(--tbg-charcoal-2);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.tbg-cip .tbg-audience-btn:hover { color: var(--tbg-blue); }
.tbg-cip .tbg-audience-btn:focus-visible {
  outline: 2px solid var(--tbg-blue);
  outline-offset: 2px;
}
.tbg-cip .tbg-audience-btn.is-active {
  background: var(--tbg-blue);
  color: white;
}
.tbg-cip .tbg-audience-hint {
  width: 100%;
  margin: 0;
  font-size: 0.85rem;
  color: var(--tbg-charcoal-3);
}

/* ---------- Invite-only table lock ---------- */
.tbg-cip .tbg-table-lock {
  max-width: 560px;
  background: white;
  border: 1px solid var(--tbg-gray-1);
  border-left: 4px solid var(--tbg-yellow);
  border-radius: 12px;
  padding: 32px;
}
.tbg-cip .tbg-table-lock h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--tbg-blue);
}
.tbg-cip .tbg-table-lock h3 svg { width: 20px; height: 20px; flex-shrink: 0; }
.tbg-cip .tbg-table-lock > p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--tbg-charcoal-2);
}
.tbg-cip .tbg-lock-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tbg-cip .tbg-lock-row .tbg-input { flex: 1; min-width: 200px; }
.tbg-cip .tbg-lock-error {
  color: var(--tbg-red);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 12px 0 0;
}
.tbg-cip .tbg-table-lock .tbg-lock-help {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--tbg-charcoal-3);
}

/* ---------- Short disclaimer reference (table section) ---------- */
.tbg-cip .tbg-disclaimer-ref {
  font-size: 0.85rem;
  color: var(--tbg-charcoal-2);
  margin: 0 0 20px;
}
.tbg-cip .tbg-disclaimer-ref a {
  color: var(--tbg-blue);
  font-weight: 600;
}

/* ---------- Custom column picker ---------- */
.tbg-cip .tbg-custom-panel {
  background: white;
  border: 1px solid var(--tbg-gray-1);
  border-radius: 12px;
  padding: 16px 20px 18px;
  margin: 0 0 24px;
  min-width: 0;
}
.tbg-cip .tbg-custom-panel.is-hidden { display: none; }
.tbg-cip .tbg-custom-legend {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tbg-charcoal-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0 6px;
}
.tbg-cip .tbg-custom-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 10px;
}
.tbg-cip .tbg-custom-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--tbg-charcoal-1);
  cursor: pointer;
}
.tbg-cip .tbg-custom-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--tbg-blue);
  cursor: pointer;
}
.tbg-cip .tbg-custom-note {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--tbg-charcoal-3);
}

/* ---------- Filters ---------- */
.tbg-cip .tbg-filters {
  background: white;
  border: 1px solid var(--tbg-gray-1);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.tbg-cip .tbg-filter-group { display: flex; flex-direction: column; gap: 6px; }
.tbg-cip .tbg-filter-group.is-hidden { display: none; }
.tbg-cip .tbg-filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tbg-charcoal-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tbg-cip .tbg-reset-btn {
  background: var(--tbg-blue);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  height: 46px;
}
.tbg-cip .tbg-reset-btn:hover { background: #0a4866; }

/* ---------- Table ---------- */
.tbg-cip .tbg-table-meta {
  font-size: 0.85rem;
  color: var(--tbg-charcoal-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 4px 12px;
}
.tbg-cip .tbg-table-wrap {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--tbg-gray-1);
  max-height: 72vh;
  overflow: auto;
}
.tbg-cip .tbg-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.92rem;
}
.tbg-cip .tbg-table thead th {
  position: sticky;
  top: 0;
  background: var(--tbg-blue);
  color: white;
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  z-index: 2;
  vertical-align: top;
}
.tbg-cip .tbg-th-with-tip { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.tbg-cip .tbg-tip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.22);
  color: white;
  font-family: inherit;
  font-size: 0.7rem;
  font-style: italic;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
}
.tbg-cip .tbg-tip-btn:hover { background: rgba(255,255,255,0.38); }
.tbg-cip .tbg-tip-btn:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
.tbg-cip .tbg-tip-bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: 260px;
  background: var(--tbg-charcoal-1);
  color: white;
  font-size: 0.78rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 4;
}
.tbg-cip .tbg-tip-btn:hover + .tbg-tip-bubble,
.tbg-cip .tbg-tip-btn:focus-visible + .tbg-tip-bubble,
.tbg-cip .tbg-tip-bubble.is-open {
  opacity: 1;
  visibility: visible;
}
/* Bubbles in the last few columns open right-aligned so they don't get
   clipped by the scroll container's right edge. */
.tbg-cip .tbg-table th:nth-last-child(-n+3) .tbg-tip-bubble {
  left: auto;
  right: 0;
}
.tbg-cip .tbg-table td {
  padding: 12px;
  border-top: 1px solid var(--tbg-gray-2);
  vertical-align: top;
}
.tbg-cip .tbg-table tbody tr:hover { background: var(--tbg-cadet-tint-3); }
.tbg-cip .tbg-table .tbg-country-name { font-weight: 600; color: var(--tbg-blue); }
.tbg-cip .tbg-status-yes,
.tbg-cip .tbg-status-no,
.tbg-cip .tbg-status-conditional {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
.tbg-cip .tbg-status-yes { background: #e8f5ec; color: #1d5226; }
.tbg-cip .tbg-status-no { background: var(--tbg-red-tint-3); color: var(--tbg-red); }
.tbg-cip .tbg-status-conditional { background: var(--tbg-yellow-tint-2); color: #6b5200; }
.tbg-cip .tbg-notes-list {
  margin: 0;
  padding-left: 16px;
  color: var(--tbg-charcoal-2);
  font-size: 0.85rem;
}
.tbg-cip .tbg-notes-list li { margin-bottom: 4px; }
.tbg-cip .tbg-notes-list li::marker { color: var(--tbg-cadet); }
.tbg-cip .tbg-empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--tbg-charcoal-3);
}
.tbg-cip .tbg-empty-reset {
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--tbg-blue);
  color: var(--tbg-blue);
  padding: 8px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.tbg-cip .tbg-empty-reset:hover {
  background: var(--tbg-blue);
  color: white;
}
.tbg-cip .tbg-table-footnote {
  font-size: 0.82rem;
  color: var(--tbg-charcoal-3);
  max-width: 760px;
  margin: 12px 4px 0;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.tbg-cip .tbg-footer {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 40px 48px;
  color: var(--tbg-charcoal-3);
  font-size: 0.82rem;
}
.tbg-cip .tbg-footer p { max-width: 760px; margin: 0; }

/* ---------- Loading / error states ---------- */
.tbg-cip .tbg-loading,
.tbg-cip .tbg-error {
  padding: 40px 20px;
  text-align: center;
  color: var(--tbg-charcoal-3);
}
.tbg-cip .tbg-error { color: var(--tbg-red); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tbg-cip .tbg-section { padding: 40px 20px; }
  .tbg-cip .tbg-hero { padding: 40px 24px; }
  .tbg-cip .tbg-filters { grid-template-columns: 1fr; }
  .tbg-cip .tbg-reset-btn { width: 100%; }
  .tbg-cip .tbg-table-wrap { max-height: none; }
}

/* ---------- Mobile table: stacked cards ---------- */
/* Below 700px each country row becomes a card: the country name (always
   the first visible column) is the card header, every other cell renders
   as a label/value pair using its data-label. The audience logic is
   untouched — hidden columns are simply never rendered. */
@media (max-width: 700px) {
  .tbg-cip .tbg-table thead { display: none; }
  .tbg-cip .tbg-table,
  .tbg-cip .tbg-table tbody,
  .tbg-cip .tbg-table tr,
  .tbg-cip .tbg-table td { display: block; width: 100%; }

  .tbg-cip .tbg-table-wrap {
    background: transparent;
    border: 0;
    border-radius: 0;
  }
  .tbg-cip .tbg-table tr {
    background: white;
    border: 1px solid var(--tbg-gray-1);
    border-left: 4px solid var(--tbg-cadet-tint-1);
    border-radius: 10px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    overflow: hidden;
  }
  .tbg-cip .tbg-table tbody tr:hover { background: white; }

  .tbg-cip .tbg-table td {
    border-top: 0;
    padding: 7px 16px;
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 10px;
    align-items: start;
  }
  .tbg-cip .tbg-table td::before {
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tbg-charcoal-3);
    padding-top: 3px;
  }

  /* Country name = card header */
  .tbg-cip .tbg-table td:first-child {
    display: block;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--tbg-gray-1);
    margin-bottom: 6px;
  }
  .tbg-cip .tbg-table td:first-child::before { content: none; }
  .tbg-cip .tbg-table td:first-child .tbg-country-name { font-size: 1.08rem; }

  /* Loading / empty-state rows are single full-width cells, not pairs */
  .tbg-cip .tbg-table td.tbg-loading,
  .tbg-cip .tbg-table td.tbg-empty-state,
  .tbg-cip .tbg-table td.tbg-error { display: block; }
  .tbg-cip .tbg-table td.tbg-loading::before,
  .tbg-cip .tbg-table td.tbg-empty-state::before,
  .tbg-cip .tbg-table td.tbg-error::before { content: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tbg-cip * { transition: none !important; }
}
