/* EQ Legends Item Database — same theme tokens as /legends */

:root {
  --color-text-secondary: rgba(220, 225, 235, 0.82);
  --eq-bg-base: #0f172a;
  --eq-bg-elevated: #1e293b;
  --eq-text: #f1f5f9;
  --eq-text-muted: #bbbbbb;
  --eq-text-warm: #f0e6c8;
  --eq-gold: #d4af37;
  --eq-gold-hover: #e5c04a;
  --eq-border-gold: rgba(212, 175, 55, 0.4);
  --eq-border-subtle: rgba(148, 163, 184, 0.25);
  --eq-sidebar-bg: rgba(10, 12, 20, 0.82);
  --eq-card-panel: rgba(10, 12, 20, 0.88);
  --eq-card-border: 1px solid rgba(212, 160, 23, 0.3);
  --eq-overlay-slate: rgba(15, 23, 42, 0.22);
  --eq-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --eq-radius: 8px;
  --eq-sidebar-width: 280px;
  --eq-main-panel-max: 820px;
  --eq-asset-bg: url("/legends/assets/bg_tile.png");
  --gold: var(--eq-gold);
  --text-secondary: var(--color-text-secondary);
  --text-primary: var(--eq-text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--eq-font);
  font-size: 15px;
  line-height: 1.5;
  background: linear-gradient(var(--eq-overlay-slate), var(--eq-overlay-slate)),
    var(--eq-asset-bg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--eq-bg-base);
  color: var(--eq-text);
  min-height: 100vh;
}

body.db-local-assets {
  --eq-asset-bg: url("../assets/bg_tile.png");
}

a {
  color: var(--eq-gold);
}

a:visited {
  color: var(--eq-gold);
}

a:hover {
  color: var(--eq-gold-hover);
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--eq-sidebar-width);
  min-width: 240px;
  flex-shrink: 0;
  background: var(--eq-sidebar-bg);
  border-right: var(--eq-card-border);
  padding: 1rem 1.25rem 1rem 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.link-home {
  display: block;
  text-align: center;
  margin-bottom: 0.75rem;
  padding: 0.4rem 0.5rem;
  color: var(--eq-gold);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.link-home:hover {
  color: var(--eq-gold-hover);
  text-decoration: underline;
}

.sidebar-brand {
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.sidebar-logo {
  width: 100%;
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto 8px auto;
  border-radius: 8px;
}

.sidebar-brand-sub {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.05em;
}

.sidebar-tagline {
  margin: 0.45rem 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #b8c0cc;
  font-weight: 500;
  text-align: center;
}

.sidebar-rule {
  height: 1px;
  margin: 0;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 23, 0.55) 20%,
    rgba(212, 160, 23, 0.55) 80%,
    transparent
  );
}

.sidebar-nav--links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 1rem;
}

.sidebar-nav-link {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: var(--eq-radius);
  background: var(--eq-card-panel);
  border: var(--eq-card-border);
  color: var(--eq-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
}

.sidebar-nav-link:hover {
  border-color: rgba(212, 175, 55, 0.65);
  color: var(--eq-gold-hover);
}

.sidebar-nav-link--active {
  color: var(--eq-gold);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.25);
}

.main {
  flex: 1;
  min-width: 0;
  padding: 1rem 2rem 2rem;
  max-width: 1360px;
  margin: 0 auto;
  position: relative;
}

.main-content-panel {
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 160, 23, 0.3);
  border-radius: 12px;
  padding: 32px 36px;
  max-width: var(--eq-main-panel-max);
  margin: 24px auto;
  box-sizing: border-box;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--eq-text);
}

.db-panel {
  max-width: 900px;
}

.db-header {
  margin-bottom: 1.35rem;
}

.db-title {
  margin: 0;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--eq-gold);
}

.db-sub {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #c8c8c8;
  max-width: 42rem;
}

.db-search-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.db-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eq-gold);
}

.db-search-wrap {
  position: relative;
}

.db-search-input,
.db-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: var(--eq-radius);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(15, 23, 42, 0.92);
  color: var(--eq-text);
  font: inherit;
  font-size: 1rem;
}

.db-search-input::placeholder {
  color: #9aa3b2;
}

.db-search-input:focus,
.db-select:focus {
  outline: 2px solid rgba(212, 175, 55, 0.55);
  outline-offset: 1px;
  border-color: var(--eq-gold);
}

.db-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
}

.db-filter {
  flex: 1 1 140px;
  min-width: 0;
}

.db-filter--era {
  flex: 1 1 100%;
}

.db-era-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.db-chip {
  appearance: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(15, 23, 42, 0.85);
  color: #d0d5de;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.3;
}

.db-chip:hover {
  border-color: rgba(212, 175, 55, 0.7);
  color: var(--eq-text);
}

.db-chip--on {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.85);
  color: var(--eq-gold);
}

.db-status {
  margin: 0;
  font-size: 0.88rem;
  color: var(--eq-text-muted);
  min-height: 1.35em;
}

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

/* ——— Browse: teaser + results table ——— */

.db-browse {
  margin-top: 1.25rem;
}

.db-teaser-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--eq-gold);
}

.db-teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0.55rem;
}

.db-teaser-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  box-sizing: border-box;
  border-radius: var(--eq-radius);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(10, 12, 20, 0.88);
  color: var(--eq-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.db-teaser-card:hover,
.db-teaser-card:focus-visible {
  border-color: rgba(212, 175, 55, 0.7);
  background: rgba(212, 175, 55, 0.1);
  outline: none;
}

.db-teaser-card-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.4);
  image-rendering: pixelated;
  object-fit: contain;
}

.db-teaser-card-icon--blank {
  opacity: 0.35;
}

.db-teaser-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.db-teaser-card-name {
  display: block;
  color: var(--eq-gold);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.db-teaser-card-slot {
  display: block;
  color: #a8b0bc;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

/* ——— Stat filter checkboxes ——— */

.db-stat-filters {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.db-stat-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.45rem 0.65rem;
  margin-bottom: 0.55rem;
}

.db-stat-filter-label {
  flex: 0 0 4.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--eq-gold);
  line-height: 1.8;
}

.db-stat-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.db-stat-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #d0d5de;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.db-stat-check:has(.db-stat-check-input:checked) {
  border-color: rgba(212, 175, 55, 0.75);
  background: rgba(212, 175, 55, 0.15);
  color: var(--eq-gold);
}

.db-stat-check-input {
  margin: 0;
  accent-color: var(--eq-gold);
  cursor: pointer;
}

.db-stat-match {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.db-stat-match-label {
  font-size: 0.78rem;
  color: var(--eq-text-muted);
}

.db-chip--sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
}

/* ——— Results table ——— */

.db-table-wrap {
  border: var(--eq-card-border);
  border-radius: var(--eq-radius);
  background: rgba(10, 12, 20, 0.92);
  padding: 0.75rem 0.85rem 0.85rem;
}

.db-table-count {
  margin: 0 0 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--eq-gold);
}

.db-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.db-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 6px;
  overflow: hidden;
}

.db-table thead th {
  padding: 0.55rem 0.75rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b8c0cc;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
  border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.db-table thead th:last-child {
  border-right: none;
}

.db-table-row {
  cursor: pointer;
  background: rgba(10, 12, 20, 0.75);
}

.db-table-row--alt {
  background: rgba(15, 23, 42, 0.55);
}

.db-table-row:hover,
.db-table-row:focus-visible {
  background: rgba(212, 175, 55, 0.12);
  outline: none;
}

.db-table td {
  padding: 0.55rem 0.75rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  border-right: 1px solid rgba(212, 175, 55, 0.12);
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.db-table td:last-child {
  border-right: none;
}

.db-table tbody tr:last-child td {
  border-bottom: none;
}

.db-col-icon {
  width: 44px;
  text-align: center;
}

.db-table-icon {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.4);
  image-rendering: pixelated;
  object-fit: contain;
}

.db-table-icon--blank {
  display: inline-block;
  width: 28px;
  height: 28px;
  opacity: 0.35;
}

.db-col-name {
  color: var(--eq-gold);
  font-weight: 600;
  min-width: 9rem;
}

.db-col-slot {
  color: #d0d5de;
  white-space: nowrap;
  min-width: 4.5rem;
}

.db-col-classes {
  color: #c8c8c8;
  font-size: 0.82rem;
  min-width: 5rem;
}

.db-col-stats,
.db-col-stat {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  min-width: 3.25rem;
  text-align: right;
  white-space: nowrap;
}

.db-col-stats {
  min-width: 6rem;
  text-align: left;
}

.db-table thead th.db-col-name {
  color: #b8c0cc;
  font-weight: 700;
}

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

.db-table thead th.db-th--sortable:hover .db-th-label {
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.db-th-sort-arrow {
  margin-left: 0.3em;
  font-size: 0.72em;
  opacity: 0.85;
  vertical-align: baseline;
}

.db-table thead .db-col-stat,
.db-table tbody .db-col-stat {
  text-align: right;
}

.db-table-empty {
  padding: 1.25rem 0.75rem;
  text-align: center;
  color: var(--eq-text-muted);
}

.db-table-more {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--eq-text-muted);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .db-col-classes,
  .db-col-stats,
  .db-col-stat,
  .db-table thead .db-col-classes,
  .db-table thead .db-col-stats,
  .db-table thead .db-col-stat {
    display: none;
  }

  .db-stat-filter-label {
    flex: 0 0 100%;
    line-height: 1.3;
  }
}

.db-results {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  max-height: min(420px, 55vh);
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(10, 12, 20, 0.98);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 0 0 var(--eq-radius) var(--eq-radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.db-results[hidden] {
  display: none;
}

.db-result {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.db-result:last-child {
  border-bottom: 0;
}

.db-result:hover,
.db-result:focus-visible,
.db-result.db-result--active {
  background: rgba(212, 175, 55, 0.1);
  outline: none;
}

.db-result-icon,
.db-card-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
  object-fit: contain;
}

.db-result-icon--blank,
.db-card-icon--blank {
  opacity: 0.4;
}

.db-result-body {
  min-width: 0;
  flex: 1;
}

.db-result-name {
  color: var(--eq-gold);
  font-weight: 700;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.db-result-meta {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #b8c0cc;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.db-result-empty {
  padding: 0.85rem;
  color: var(--eq-text-muted);
  font-size: 0.9rem;
}

/* ——— Item modal ——— */

body.db-modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

.db-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.db-modal[hidden] {
  display: none;
}

.db-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.78);
  cursor: pointer;
}

.db-modal-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(540px, calc(100vw - 2rem));
  max-height: min(92vh, 100%);
  border-radius: 12px;
  border: var(--eq-card-border);
  background: rgba(10, 12, 20, 0.98);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.db-modal-toolbar {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  padding: 0.45rem 0.45rem 0;
  background: rgba(10, 12, 20, 0.98);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.db-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #d0d5de;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.db-modal-close:hover {
  color: var(--eq-gold);
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.1);
}

.db-modal-close:focus-visible {
  outline: 2px solid var(--eq-gold);
  outline-offset: 2px;
}

.db-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.65rem 0.85rem 1rem;
}

@media (max-width: 640px) {
  .db-modal {
    padding: 0;
    align-items: stretch;
  }

  .db-modal-dialog {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .db-modal-toolbar {
    padding-top: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* ——— Item panel: upgrade box + in-game inspect box ——— */

.db-item-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.db-item-panel[hidden] {
  display: none;
}

.db-upgrade-box {
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: var(--eq-radius);
  background: rgba(10, 12, 20, 0.88);
  border: var(--eq-card-border);
}

.db-upgrade-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.db-upgrade-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--eq-gold);
  line-height: 1.3;
}

.db-upgrade-value {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--eq-gold);
  font-variant-numeric: tabular-nums;
}

.db-upgrade-slider {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  accent-color: var(--eq-gold);
  cursor: pointer;
  height: 1.45rem;
}

.db-inspect-box {
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 12px;
  background: rgba(8, 10, 18, 0.94);
  border: var(--eq-card-border);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e8e2d6;
}

.db-inspect-title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin-bottom: 0.35rem;
}

.db-inspect-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(0, 0, 0, 0.35);
  image-rendering: pixelated;
  object-fit: contain;
}

.db-inspect-icon--blank {
  display: inline-block;
  opacity: 0.35;
}

.db-inspect-title {
  margin: 0;
  min-width: 0;
  flex: 1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #c9a84c;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.db-inspect-line {
  margin: 0.2rem 0 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.db-inspect-line--flags {
  color: #d4af37;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.db-inspect-line--stat {
  color: #f1f5f9;
}

.db-inspect-line--class,
.db-inspect-line--drops {
  margin-top: 0.45rem;
  color: #d0d5de;
}

.db-inspect-k {
  color: #b8c0cc;
}

.db-inspect-stats {
  margin-top: 0.15rem;
}

.db-inspect-line--live {
  font-weight: 600;
}

.db-inspect-line--flash {
  animation: db-inspect-flash 0.45s ease-out;
}

@keyframes db-inspect-flash {
  0% {
    color: var(--eq-gold-hover);
    background: rgba(212, 175, 55, 0.15);
  }
  100% {
    color: #f1f5f9;
    background: transparent;
  }
}

.db-inspect-caption {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--eq-text-muted);
}

.db-inspect-links {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.db-inspect-link {
  color: var(--eq-gold);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.db-inspect-link:hover {
  color: var(--eq-gold-hover);
  text-decoration: underline;
}

.db-inspect-line--drops a {
  color: var(--eq-gold);
}

.db-inspect-line--drops a:hover {
  color: var(--eq-gold-hover);
}

@media (max-width: 420px) {
  .db-inspect-box {
    padding: 0.85rem 0.8rem 1rem;
  }

  .db-inspect-title {
    font-size: 1.02rem;
  }
}

.site-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  font-size: 0.8rem;
  line-height: 1.45;
  color: #b8c0cc;
}

.site-footer.site-disclaimer {
  background: rgba(10, 12, 20, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 16px 24px;
  margin: 24px auto;
  max-width: 800px;
  text-align: center;
  font-size: 0.8rem;
  color: #8b949e;
  backdrop-filter: blur(4px);
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 0.45rem;
}

.site-footer a {
  color: var(--eq-gold);
}

@media (max-width: 900px) {
  .app--database {
    flex-direction: column;
  }

  .app--database .sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-bottom: var(--eq-card-border);
  }

  .main {
    padding: 1rem 1rem 2rem;
  }

  .main-content-panel {
    padding: 1.25rem 1.1rem;
    margin: 1rem auto;
  }
}
