/* ============================================================
   Portside Court Watch: Complaint Browser Component
   Vanilla CSS. Scoped under .cb-root. No frameworks.
   ============================================================ */

.cb-root {
  --cb-bg: #0A1024;
  --cb-bg-elevated: #121830;
  --cb-bg-row: #070A18;
  --cb-bg-row-hover: #1A2240;
  --cb-bg-alt: #0D1430;
  --cb-border: #202A4C;
  --cb-border-strong: rgba(140, 160, 255, 0.22);
  --cb-text: #EAEDFD;
  --cb-text-muted: #9AA3C8;
  --cb-text-dim: #7782AE;
  --cb-accent: #8AA1FF;
  --cb-accent-soft: rgba(91, 121, 242, 0.15);
  --cb-paused: #F59E0B;
  --cb-paused-bg: rgba(245, 158, 11, 0.14);
  --cb-paused-border: rgba(245, 158, 11, 0.45);
  --cb-open: #34D399;
  --cb-open-bg: rgba(52, 211, 153, 0.12);
  --cb-open-border: rgba(52, 211, 153, 0.4);
  --cb-font-display: "Outfit", system-ui, sans-serif;
  --cb-font-serif: "Hanken Grotesk", system-ui, sans-serif;
  --cb-font-mono: "JetBrains Mono", ui-monospace, monospace;
  --cb-radius: 14px;
  --cb-shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 40px -14px rgba(4, 6, 20, 0.7), 0 36px 70px -30px rgba(4, 6, 20, 0.7);
  --cb-nav-width: 240px;
  --cb-sticky-top: 1rem;
  --cb-max: 1120px;

  color: var(--cb-text);
  background: var(--cb-bg);
  font-family: var(--cb-font-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

.cb-root *,
.cb-root *::before,
.cb-root *::after {
  box-sizing: border-box;
}

.cb-root a {
  color: var(--cb-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.cb-root a:hover {
  color: #B8C5FF;
}

.cb-root button {
  font: inherit;
  cursor: pointer;
}

/* ---------- Shell ---------- */

.cb-shell {
  max-width: var(--cb-max);
  margin: 0 auto;
  padding: 1.5rem 1rem 5rem;
}

.cb-header {
  margin-bottom: 1.5rem;
}

.cb-eyebrow {
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
  margin: 0 0 0.5rem;
}

.cb-header h2 {
  font-family: var(--cb-font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--cb-text);
}

.cb-lede {
  margin: 0;
  max-width: 48rem;
  color: var(--cb-text-muted);
  font-size: 1.02rem;
}

/* ---------- Summary strip ---------- */

.cb-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.cb-summary-cell {
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1rem 1.1rem;
  text-align: center;
}

.cb-summary-cell strong {
  display: block;
  font-family: var(--cb-font-mono);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.cb-summary-cell span {
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
}

.cb-summary-cell.is-open strong { color: var(--cb-open); }
.cb-summary-cell.is-paused strong { color: var(--cb-paused); }
.cb-summary-cell.is-total strong { color: var(--cb-text); }

/* ---------- Layout: nav + main ---------- */

.cb-layout {
  display: grid;
  grid-template-columns: var(--cb-nav-width) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

/* ---------- Sticky section nav ---------- */

.cb-nav {
  position: sticky;
  top: var(--cb-sticky-top);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 0.85rem 0.65rem;
  scrollbar-width: thin;
  scrollbar-color: var(--cb-border-strong) transparent;
}

.cb-nav-title {
  font-family: var(--cb-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
  padding: 0.25rem 0.55rem 0.65rem;
  margin: 0;
}

.cb-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cb-nav-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--cb-text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.3;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cb-nav-list a:hover {
  background: var(--cb-bg-row-hover);
  color: var(--cb-text);
}

.cb-nav-list a.is-active {
  background: var(--cb-accent-soft);
  color: var(--cb-text);
  border-color: rgba(138, 161, 255, 0.25);
}

.cb-nav-code {
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  flex: 0 0 auto;
  color: var(--cb-accent);
  white-space: nowrap;
}

.cb-nav-list a.is-active .cb-nav-code {
  color: #C5CFFF;
}

.cb-nav-name {
  flex: 1 1 auto;
  min-width: 0;
}

.cb-nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 0.3rem;
  background: var(--cb-open);
  box-shadow: 0 0 0 2px var(--cb-open-bg);
}

.cb-nav-dot.is-paused {
  background: var(--cb-paused);
  box-shadow: 0 0 0 2px var(--cb-paused-bg);
}

/* Mobile nav toggle (hidden on desktop) */

.cb-nav-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  color: var(--cb-text);
  text-align: left;
}

.cb-nav-toggle-label {
  font-family: var(--cb-font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cb-text-muted);
}

.cb-nav-toggle-current {
  font-size: 0.92rem;
  color: var(--cb-text);
  flex: 1 1 auto;
  text-align: left;
}

.cb-nav-toggle-icon {
  font-family: var(--cb-font-mono);
  font-size: 0.85rem;
  color: var(--cb-accent);
  transition: transform 0.2s ease;
}

.cb-nav.is-open .cb-nav-toggle-icon {
  transform: rotate(180deg);
}

/* ---------- Controls ---------- */

.cb-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
}

.cb-control {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 9rem;
}

.cb-control label {
  font-family: var(--cb-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
}

.cb-control select {
  appearance: none;
  background: var(--cb-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aa6b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  color: var(--cb-text);
  border: 1px solid var(--cb-border-strong);
  border-radius: 6px;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  font-family: var(--cb-font-mono);
  font-size: 0.82rem;
  min-height: 2.4rem;
}

.cb-control select:focus {
  outline: 2px solid var(--cb-accent);
  outline-offset: 1px;
}

.cb-result-count {
  margin-left: auto;
  font-family: var(--cb-font-mono);
  font-size: 0.75rem;
  color: var(--cb-text-dim);
  align-self: center;
  padding-bottom: 0.35rem;
}

/* ---------- Status badges ---------- */

.cb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--cb-font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.2;
}

.cb-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cb-badge-paused {
  color: var(--cb-paused);
  background: var(--cb-paused-bg);
  border-color: var(--cb-paused-border);
}

.cb-badge-paused::before {
  background: var(--cb-paused);
  box-shadow: 0 0 6px var(--cb-paused);
}

.cb-badge-open {
  color: var(--cb-open);
  background: var(--cb-open-bg);
  border-color: var(--cb-open-border);
}

.cb-badge-open::before {
  background: var(--cb-open);
  box-shadow: 0 0 6px var(--cb-open);
}

/* ---------- Table ---------- */

.cb-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  background: var(--cb-bg-elevated);
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
}

.cb-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  table-layout: fixed;
}

.cb-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.85rem 1rem;
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
  border-bottom: 1px solid var(--cb-border);
}

.cb-table thead th {
  font-family: var(--cb-font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--cb-border);
  background: var(--cb-bg-alt);
  white-space: nowrap;
}

.cb-table thead th.cb-sortable {
  cursor: pointer;
  user-select: none;
}

.cb-table thead th.cb-sortable:hover,
.cb-table thead th.cb-sortable:focus-visible {
  color: var(--cb-text);
}

.cb-table thead th.cb-sortable:focus-visible {
  outline: 2px solid var(--cb-accent);
  outline-offset: -2px;
}

.cb-sort-indicator {
  display: inline-block;
  margin-left: 0.3rem;
  opacity: 0.35;
  font-size: 0.75em;
}

.cb-table thead th[aria-sort="ascending"] .cb-sort-indicator,
.cb-table thead th[aria-sort="descending"] .cb-sort-indicator {
  opacity: 1;
  color: var(--cb-accent);
}

.cb-table tbody tr.cb-row {
  cursor: pointer;
  background: var(--cb-bg-row);
  transition: background 0.12s ease;
}

.cb-table tbody tr.cb-row:hover,
.cb-table tbody tr.cb-row:focus-within {
  background: var(--cb-bg-row-hover);
}

.cb-table tbody tr.cb-row.is-paused {
  box-shadow: inset 3px 0 0 var(--cb-paused);
}

.cb-table tbody tr.cb-row.is-open {
  box-shadow: inset 3px 0 0 var(--cb-open);
}

.cb-table tbody tr.cb-row.is-expanded {
  background: var(--cb-bg-row-hover);
}

.cb-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--cb-border);
  vertical-align: middle;
  color: var(--cb-text);
}

.cb-table td.cb-col-code {
  font-family: var(--cb-font-mono);
  font-size: 0.88rem;
  color: var(--cb-accent);
  white-space: nowrap;
}

.cb-table td.cb-col-count {
  font-family: var(--cb-font-mono);
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
  width: 5.5rem;
}

.cb-table td.cb-col-status {
  width: 9.5rem;
}

.cb-table td.cb-col-expand {
  width: 2.5rem;
  text-align: center;
  color: var(--cb-text-dim);
  font-size: 0.85rem;
}

.cb-row-chevron {
  display: inline-block;
  transition: transform 0.18s ease;
  font-family: var(--cb-font-mono);
}

.cb-row.is-expanded .cb-row-chevron {
  transform: rotate(90deg);
  color: var(--cb-accent);
}

.cb-detail-row td {
  padding: 0;
  border-bottom: 1px solid var(--cb-border);
  background: var(--cb-bg-alt);
}

.cb-detail-panel {
  padding: 0 1rem 1rem 1.25rem;
  margin: 0 0 0 0.35rem;
  border-left: 2px solid var(--cb-border-strong);
}

.cb-detail-panel p {
  margin: 0.85rem 0 0;
  color: var(--cb-text-muted);
  font-size: 0.98rem;
  max-width: 46rem;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: break-word !important;
  width: 100%;
}

.cb-detail-panel .cb-detail-meta {
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--cb-text-dim);
  margin-top: 0.65rem;
}

.cb-detail-panel a.cb-jump-section {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--cb-font-mono);
  font-size: 0.78rem;
}

.cb-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-top: 0.75rem;
}

.cb-detail-actions .cb-jump-section {
  margin-top: 0;
}

a.cb-view-summonses {
  display: inline-flex;
  align-items: center;
  margin-top: 0.75rem;
  padding: 0.55rem 1rem;
  color: var(--cb-bg);
  background: var(--cb-accent);
  border-radius: 999px;
  font-family: var(--cb-font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  animation: cb-view-pulse 2.2s ease-in-out infinite;
}

.cb-detail-actions a.cb-view-summonses {
  margin-top: 0;
}

a.cb-view-summonses.cb-view-extra {
  color: #16241d;
  background: #e8c56b;
  margin-left: 0.6rem;
}

.cb-detail-actions a.cb-view-summonses.cb-view-extra {
  margin-left: 0;
}

a.cb-view-summonses:hover {
  filter: brightness(1.08);
}

@keyframes cb-view-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .35); }
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .cb-detail-panel a.cb-view-summonses { animation: none; }
}

.cb-table tfoot td,
.cb-table tfoot th {
  padding: 0.85rem 1rem;
  font-family: var(--cb-font-mono);
  font-size: 0.78rem;
  color: var(--cb-text-muted);
  background: var(--cb-bg-alt);
  border-top: 1px solid var(--cb-border-strong);
}

.cb-table tfoot th {
  text-align: left;
  font-weight: 500;
}

.cb-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--cb-text-dim);
  font-family: var(--cb-font-mono);
  font-size: 0.85rem;
}

/* ---------- Section cards (scroll targets) ---------- */

.cb-sections-heading {
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cb-text-dim);
  margin: 0 0 0.85rem;
}

.cb-section-card {
  scroll-margin-top: 1.25rem;
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  padding: 1.15rem 1.25rem 1.25rem;
  margin-bottom: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cb-section-card.is-in-view {
  border-color: rgba(138, 161, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(91, 121, 242, 0.15);
}

.cb-section-card.is-paused {
  border-left: 3px solid var(--cb-paused);
}

.cb-section-card.is-open {
  border-left: 3px solid var(--cb-open);
}

.cb-section-card--clickable {
  cursor: pointer;
}

.cb-section-card--clickable:hover,
.cb-section-card--clickable:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.cb-section-card--clickable:focus-visible {
  outline: 2px solid var(--cb-accent);
  outline-offset: 3px;
}

.cb-section-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}

.cb-section-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.25;
}

.cb-section-title code {
  font-family: var(--cb-font-mono);
  font-size: 0.92em;
  font-weight: 500;
  color: var(--cb-accent);
  background: none;
}

.cb-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  align-items: center;
  font-family: var(--cb-font-mono);
  font-size: 0.78rem;
  color: var(--cb-text-dim);
}

.cb-section-meta .cb-count-strong {
  color: var(--cb-text);
  font-weight: 600;
}

.cb-section-body {
  color: var(--cb-text-muted);
  margin: 0;
  font-size: 0.98rem;
  max-width: 46rem;
}

/* ---------- Safety note ---------- */

.cb-safety {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--cb-border);
  border-radius: var(--cb-radius);
  background: var(--cb-bg-alt);
  color: var(--cb-text-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cb-safety p {
  margin: 0;
}

.cb-safety p + p {
  margin-top: 0.55rem;
}

/* ---------- Floating quick links ---------- */

.cb-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-end;
  /* Hidden until the complaint-browser shell itself is in view (see
     setupFloatVisibility in complaint_browser.js). Without this, the float
     is pinned to the viewport corner from first paint and overlaps the hero
     section's text and Zoom card before the visitor ever scrolls down. */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.cb-float.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cb-float a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  background: var(--cb-bg-elevated);
  border: 1px solid var(--cb-border-strong);
  border-radius: 999px;
  color: var(--cb-text);
  text-decoration: none;
  font-family: var(--cb-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  box-shadow: var(--cb-shadow);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.cb-float a:hover {
  background: var(--cb-bg-row-hover);
  border-color: var(--cb-accent);
  color: var(--cb-text);
  transform: translateY(-1px);
}

.cb-float a.cb-float-hearing {
  background: linear-gradient(135deg, #2f3f7a, #253064);
  border-color: rgba(138, 161, 255, 0.6);
  color: #eef1ff;
}

/* ---------- Visually hidden ---------- */

.cb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Responsive: < 768px ---------- */

@media (max-width: 767.98px) {
  .cb-shell {
    padding: 1rem 0.75rem 5.5rem;
  }

  .cb-summary {
    grid-template-columns: 1fr;
  }

  .cb-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cb-nav {
    position: sticky;
    top: 0.5rem;
    max-height: none;
    overflow: visible;
    padding: 0;
    z-index: 20;
  }

  .cb-nav-toggle {
    display: flex;
  }

  .cb-nav-panel {
    display: none;
    padding: 0.5rem 0.55rem 0.75rem;
    border-top: 1px solid var(--cb-border);
  }

  .cb-nav.is-open .cb-nav-panel {
    display: block;
  }

  .cb-nav-list {
    max-height: min(55vh, 22rem);
    overflow: auto;
  }

  .cb-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .cb-control {
    min-width: 0;
    width: 100%;
  }

  .cb-result-count {
    margin-left: 0;
    padding-bottom: 0;
  }

  /* Stack table as cards on narrow screens */
  .cb-table {
    min-width: 0;
    table-layout: auto;
  }

  /* table-layout:fixed on desktop leaves stale column-width tracking that
     otherwise leaks into the colspan="5" detail row, squeezing its content
     into a narrow, offset column. Force it to actually fill the row. */
  .cb-detail-row td {
    padding: 0 !important;
    width: 100% !important;
  }

  .cb-detail-panel {
    width: 100% !important;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  .cb-table thead {
    display: none;
  }

  .cb-table caption {
    display: block;
  }

  .cb-table tbody tr.cb-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "code expand"
      "name name"
      "count status";
    gap: 0.35rem 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--cb-border);
  }

  .cb-table tbody tr.cb-row td {
    border: none;
    padding: 0;
  }

  .cb-table td.cb-col-code { grid-area: code; }
  .cb-table td.cb-col-name { grid-area: name; font-size: 0.98rem; }
  .cb-table td.cb-col-count {
    grid-area: count;
    text-align: left;
    width: auto;
  }
  .cb-table td.cb-col-count::before {
    content: attr(data-label) ": ";
    font-weight: 400;
    color: var(--cb-text-dim);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .cb-table td.cb-col-status {
    grid-area: status;
    width: auto;
    justify-self: end;
  }
  .cb-table td.cb-col-expand {
    grid-area: expand;
    width: auto;
  }

  .cb-detail-row {
    display: block;
  }

  .cb-detail-row td {
    display: block;
  }

  .cb-table tfoot {
    display: block;
    padding: 0.85rem 1rem;
  }

  .cb-table tfoot tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }

  .cb-table tfoot th,
  .cb-table tfoot td {
    padding: 0;
    border: none;
    background: transparent;
  }

  .cb-float {
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .cb-float a {
    font-size: 0.68rem;
    padding: 0.5rem 0.7rem;
  }
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cb-root *,
  .cb-root *::before,
  .cb-root *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
