:root {
  --bg: #0b0f17;
  --bg-elevated: #111827;
  --bg-card: #141c2b;
  --bg-hover: #1b2538;
  --border: #243044;
  --text: #eef2f7;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --primary: #1d9bf0;
  --primary-soft: rgba(29, 155, 240, 0.14);
  --purple: #8b5cf6;
  --purple-soft: rgba(139, 92, 246, 0.16);
  --green: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --heat-0: #1b2434;
  --heat-1: #164e63;
  --heat-2: #0284c7;
  --heat-3: #38bdf8;
  --heat-4: #7dd3fc;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --primary: #1d9bf0;
  --primary-soft: rgba(29, 155, 240, 0.1);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.1);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --heat-0: #e2e8f0;
  --heat-1: #bae6fd;
  --heat-2: #38bdf8;
  --heat-3: #0284c7;
  --heat-4: #0369a1;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  min-width: 0;
}

.brand-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
}

.icon-btn:hover, .btn:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: #1a8cd8;
}

.btn-purple {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.btn-purple:hover {
  background: #7c3aed;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--danger);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Main Navigation Tabs */
.nav-tabs-wrap {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.nav-tabs {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  position: relative;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: var(--text);
}

.nav-tab.active {
  color: var(--primary);
}

.nav-tab.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--primary);
}

.badge-count {
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-muted);
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 64px;
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 920px) {
  .layout-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    order: -1;
  }
}

/* Account Switcher Pills */
.account-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.account-pill:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
}

.account-pill.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.account-pill img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
}

.pill-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

/* Search & Filter Panel */
.search-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
}

.search-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s;
}

.search-input:focus {
  border-color: var(--primary);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 0.9rem;
}

.select-input {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.85rem;
  outline: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover {
  color: var(--text);
  border-color: var(--text-subtle);
}

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 6px;
  user-select: none;
}

.active-filters-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  margin-bottom: 14px;
  font-size: 0.85rem;
}

/* On This Day Banner */
.on-this-day {
  background: linear-gradient(135deg, rgba(29, 155, 240, 0.12), rgba(139, 92, 246, 0.14));
  border: 1px solid color-mix(in srgb, var(--purple) 35%, var(--border));
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.on-this-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Tweet Card */
.tweet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tweet-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color 0.15s, transform 0.1s;
  position: relative;
}

.tweet-card:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

.tweet-card.is-protected {
  border-left: 3px solid var(--purple);
}

.tweet-context {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tweet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tweet-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tweet-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--bg-hover);
  flex-shrink: 0;
}

.tweet-author-info {
  min-width: 0;
}

.tweet-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tweet-name {
  font-weight: 700;
  font-size: 0.94rem;
}

.account-tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  color: #fff;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple);
}

.tweet-handle-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tweet-body {
  font-size: 0.96rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 10px;
}

.tweet-body mark {
  background: rgba(245, 158, 11, 0.32);
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
}

.hashtag-link {
  color: var(--primary);
  font-weight: 500;
  cursor: pointer;
}

/* Media Grids */
.media-grid {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  border-radius: 12px;
  overflow: hidden;
}

.media-grid.count-1 {
  grid-template-columns: 1fr;
}

.media-grid.count-2 {
  grid-template-columns: 1fr 1fr;
}

.media-grid.count-3 {
  grid-template-columns: 1fr 1fr;
}

.media-grid.count-4 {
  grid-template-columns: 1fr 1fr;
}

.media-item {
  position: relative;
  background: var(--bg);
  overflow: hidden;
  cursor: zoom-in;
  max-height: 460px;
}

.media-grid.count-2 .media-item,
.media-grid.count-3 .media-item,
.media-grid.count-4 .media-item {
  aspect-ratio: 16 / 10;
}

.media-item img,
.media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-grid.count-1 .media-item img {
  max-height: 460px;
  object-fit: contain;
  background: #000;
}

.video-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

/* Quoted Tweet */
.quoted-card {
  margin: 10px 0;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
}

.quoted-author {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

/* Tweet Footer */
.tweet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.tweet-metrics {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tweet-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mini-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.mini-btn:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.mini-btn.bookmarked {
  color: var(--amber);
}

/* Sidebar Cards */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.side-card-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Heatmap */
.heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 4px;
}

.heatmap-grid {
  display: grid;
  grid-template-rows: repeat(7, 11px);
  grid-auto-flow: column;
  gap: 3px;
  width: max-content;
}

.heat-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: var(--heat-0);
  cursor: pointer;
  transition: transform 0.1s;
}

.heat-cell:hover {
  transform: scale(1.3);
  outline: 1px solid var(--text);
}

.heat-cell.l1 { background: var(--heat-1); }
.heat-cell.l2 { background: var(--heat-2); }
.heat-cell.l3 { background: var(--heat-3); }
.heat-cell.l4 { background: var(--heat-4); }
.heat-cell.selected { outline: 2px solid var(--amber); }

.heatmap-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-subtle);
  margin-top: 8px;
}

.legend-squares {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Month List */
.month-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.month-pill {
  font-size: 0.76rem;
  padding: 4px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
}

.month-pill:hover, .month-pill.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

/* Media Gallery Tab */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.gallery-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 10px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 0.76rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Stats Dashboard */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.7rem;
  font-weight: 800;
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 150px;
  padding-top: 16px;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}

.bar-fill {
  width: 100%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--purple));
  transition: height 0.3s;
}

.bar-label {
  font-size: 0.65rem;
  color: var(--text-subtle);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  cursor: pointer;
}

.tag-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Modal & Lightbox */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}

.modal-body {
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.lightbox-caption {
  max-width: 680px;
  color: #e2e8f0;
  font-size: 0.88rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.85);
  padding: 8px 14px;
  border-radius: 10px;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Utilities */
.hidden {
  display: none !important;
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.load-more-wrap {
  text-align: center;
  margin-top: 18px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #0f172a;
  color: #fff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.toast.show {
  opacity: 1;
}

/* Admin Specific */
.admin-grid {
  display: grid;
  gap: 18px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.text-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.9rem;
  outline: none;
}

.text-input:focus {
  border-color: var(--primary);
}

.account-admin-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.account-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.account-admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  margin-bottom: 12px;
}

.alert-info {
  background: var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
}

.alert-warn {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.alert-error {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--text-muted);
  font-weight: 600;
}

code {
  background: var(--bg-hover);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}
