:root {
  --bg: #f4efe6;
  --panel: #fffdf8;
  --ink: #1f2430;
  --muted: #616b7c;
  --accent: #db5a2a;
  --accent-dark: #a73f19;
  --line: #d9d1c4;
  --ok: #1d8a5a;
  --shadow: 0 12px 32px rgba(31, 36, 48, 0.12);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(150deg, #f5f0e9 0%, #efe6d8 55%, #efeae4 100%);
  min-height: 100vh;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
}

.bg-shape-a {
  width: 340px;
  height: 340px;
  background: #efb08e;
  top: -120px;
  right: -80px;
}

.bg-shape-b {
  width: 300px;
  height: 300px;
  background: #a8d2c1;
  bottom: -140px;
  left: -110px;
}

.hero {
  padding: 28px 24px 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.11em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
}

h1 {
  margin: 6px 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

a {
  color: var(--accent-dark);
}

.build-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.badge {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.badge.active { border-color: var(--ok); color: var(--ok); }

.layout {
  padding: 14px 24px 24px;
  display: grid;
  grid-template-columns: 320px 1fr 440px;
  gap: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.controls {
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.control-row {
  display: grid;
  gap: 6px;
}

label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  font-weight: 700;
}

input, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  font: inherit;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  background: #f6f3ec;
  color: var(--ink);
  border: 1px solid var(--line);
}

.results { padding: 12px; overflow: hidden; }

.results-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

h2 { margin: 4px 0 10px; }

#metaText { margin: 0; font-size: 13px; color: var(--muted); }

.table-wrap {
  overflow: auto;
  max-height: 68vh;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #eee6d8;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  background: #fbf7f0;
  z-index: 1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

tr.item-row { cursor: pointer; }
tr.item-row:hover { background: #f9f3e8; }
tr.item-row.active { background: #ffe8d8; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 10px;
}

#pageInfo { font-size: 13px; color: var(--muted); }

.detail {
  padding: 12px;
  max-height: 82vh;
  overflow: auto;
}

.detail-page {
  padding: 8px;
  background: linear-gradient(180deg, #0f1824 0%, #0b1320 100%);
  border-color: #24364e;
  color: #d7e2ef;
}

.detail-header {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 1px solid #274462;
}

.detail-title-wrap {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.detail-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.item-page .detail-grid {
  grid-template-columns: minmax(0, 500px) minmax(0, 500px);
  justify-content: space-between;
  column-gap: clamp(28px, 6vw, 88px);
  row-gap: 8px;
  align-items: start;
}

.item-page .detail-col {
  display: grid;
  gap: 8px;
  align-content: start;
  width: 100%;
  max-width: 500px;
}

.item-page .detail-col-left {
  justify-self: start;
}

.item-page .detail-col-right {
  justify-self: end;
}

.item-page #bonusGrid.kv-grid.two-col {
  grid-template-columns: 1fr;
  gap: 4px;
}

.item-page #bonusGrid .kv-item {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
}

.item-page #bonusGrid .kv-item strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.item-page #bonusGrid .kv-item span {
  white-space: nowrap;
  text-align: right;
}

.item-page #baseGrid .kv-item {
  grid-template-columns: minmax(110px, 30%) 1fr;
}

.item-page #baseGrid .kv-item strong {
  white-space: normal;
  overflow-wrap: anywhere;
}

.item-page #baseGrid .kv-item span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.detail-card {
  border: 1px solid #24415f;
  border-radius: 6px;
  padding: 4px 7px;
  background: #0d1a2a;
}

.detail-card h3 {
  margin: 0 0 4px;
  color: #f1c46a;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .03em;
}

.kv-grid {
  display: grid;
  gap: 2px;
}

.kv-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px 10px;
}

.kv-item {
  border: 0;
  border-radius: 0;
  padding: 1px 0;
  background: transparent;
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  column-gap: 8px;
  align-items: baseline;
}

.kv-item strong {
  display: block;
  font-size: 11px;
  color: #84a9d1;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}

.kv-item span {
  color: #e6edf5;
  font-size: 11px;
  word-break: break-word;
  line-height: 1.2;
}

.kv-item span.multiline {
  white-space: pre-line;
}

.restriction-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.restriction-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  line-height: 1.2;
  color: #dce8f5;
}

.restriction-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 4px;
  flex: 0 0 8px;
}

.restriction-item.good .restriction-dot {
  background: #56d46a;
}

.restriction-item.bad .restriction-dot {
  background: #ff6a5f;
}

.restriction-item.neutral .restriction-dot {
  background: #f2c86b;
}

#name {
  color: #f6ca77;
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.item-desc-long {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.25;
  color: #d7e2ef;
  white-space: pre-line;
}

#meta {
  display: none;
}

.detail-links a {
  color: #8ab8ff;
  font-size: 12px;
}

.detail-placeholder { color: var(--muted); }

.detail-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.detail h3 { margin: 8px 0; }

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.translation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}

.disassembly-hint {
  margin: 0 0 6px;
  color: #d7e2ef;
  font-size: 12px;
  line-height: 1.25;
}

.disassembly-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: #0f1a2a;
  border: 1px solid #294464;
}

.disassembly-table th,
.disassembly-table td {
  border-bottom: 1px solid #294464;
  padding: 4px 6px;
  vertical-align: middle;
}

.disassembly-table th {
  position: static;
  background: #1a2b42;
  color: #8fa7c6;
  font-size: 11px;
  text-transform: none;
  letter-spacing: .01em;
}

.disassembly-table td {
  color: #e6edf5;
}

.disassembly-table .is-num {
  text-align: right;
  white-space: nowrap;
  width: 100px;
}

.disassembly-table td.is-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.disassembly-item-link {
  color: #58c8ff;
  text-decoration: none;
  line-height: 1.2;
}

.disassembly-item-link:hover {
  text-decoration: underline;
}

.disassembly-section + .disassembly-section {
  margin-top: 8px;
}

.disassembly-section-title {
  margin: 0 0 4px;
  color: #f1c46a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

/* Force same visual style for race/class section titles in bundle content */
#disassemblyGrid .disassembly-section > h4,
#disassemblyGrid .disassembly-section-title {
  margin: 0 0 4px !important;
  color: #f1c46a !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}

.bonus-group + .bonus-group {
  margin-top: 6px;
  padding-top: 4px;
  border-top: 1px solid #24415f;
}

.bonus-subtitle {
  margin: 0 0 3px;
  font-size: 11px;
  color: #f1c46a;
  letter-spacing: .02em;
}

.translation-box {
  border: 1px solid #294464;
  border-radius: 6px;
  padding: 4px 6px;
  background: #111f30;
}

.translation-box strong {
  display: block;
  font-size: 11px;
  color: #84a9d1;
  text-transform: uppercase;
  margin-bottom: 1px;
}

.translation-box span {
  color: #e6edf5;
  font-size: 12px;
}

pre {
  margin: 0;
  padding: 8px;
  border: 1px solid #294464;
  border-radius: 6px;
  background: #111f30;
  color: #dce8f5;
  font-size: 11px;
  line-height: 1.25;
  overflow: auto;
  max-height: 260px;
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .table-wrap { max-height: 50vh; }
  .detail { max-height: none; }

  .item-page .detail-grid {
    grid-template-columns: 1fr;
  }

  .item-page .detail-col {
    gap: 8px;
  }
}

.tiny-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--line);
  vertical-align: middle;
  margin-right: 0;
  object-fit: contain;
  background: #111724;
}

.item-name {
  font-weight: 600;
}

.detail-icon-wrap {
  margin-left: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #3b5b7c;
  border-radius: 6px;
  background: #111724;
  overflow: hidden;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: 0;
  object-fit: contain;
  object-position: center;
  background: #111724;
}

.item-page .hero {
  padding-bottom: 6px;
}

.item-page .hero h1 {
  font-size: 26px;
}

/* Explorer-specific dark DB look */
.explorer-page {
  --exp-bg: #0a1220;
  --exp-panel: #111c2d;
  --exp-panel-2: #0f1a2a;
  --exp-line: #223652;
  --exp-ink: #dfe9f7;
  --exp-muted: #8fa7c6;
  --exp-accent: #e3b44e;
  color: var(--exp-ink);
  background: radial-gradient(circle at 15% -10%, #243c63 0%, transparent 36%),
              radial-gradient(circle at 100% 0%, #1c2f50 0%, transparent 28%),
              linear-gradient(180deg, #070d18 0%, var(--exp-bg) 100%);
}

.explorer-page .hero {
  padding: 20px 24px 10px;
}

.explorer-page .hero,
.explorer-page .top-menu,
.explorer-page .layout {
  max-width: 1072px;
  margin-left: auto;
  margin-right: auto;
}

.double-header-wrap {
  border-bottom: 1px solid #223652;
  background: linear-gradient(90deg, rgba(15,28,46,0.96), rgba(11,20,34,0.96));
}

.db-container {
  max-width: 1072px;
  margin: 0 auto;
  width: 100%;
}

.db-nav-main {
  min-height: 62px;
  border-bottom: 1px solid #223652;
}

.db-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #dfe9f7 !important;
  font-weight: 700;
}

.db-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.db-main-links .nav-link {
  color: #b8cbe4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.db-main-links .nav-link.active,
.db-main-links .nav-link:hover {
  color: #ffffff;
}

.header-dropdown {
  position: relative;
}

.header-dropdown-panel {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 30;
  min-width: 760px;
  border: 1px solid #2a4264;
  border-radius: 10px;
  background: #0e1828;
  box-shadow: 0 12px 28px rgba(2, 8, 16, 0.55);
  padding: 14px 12px 12px;
  gap: 12px;
}

.header-dropdown.menu-open .header-dropdown-panel {
  display: flex;
}

.header-dropdown.menu-closed-on-click .header-dropdown-panel {
  display: none !important;
}

.header-dropdown-col {
  flex: 1 1 0;
  min-width: 220px;
  border-right: 1px solid #223652;
  padding-right: 10px;
}

.header-dropdown-col:last-child {
  border-right: 0;
}

.header-dropdown-col h6 {
  color: #f0c86e;
  font-size: 13px;
  margin: 0 0 8px;
}

.header-filter-link {
  display: block;
  color: #dce9fa;
  text-decoration: none;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 14px;
}

.header-filter-link:hover {
  background: #163052;
  color: #fff;
}

.db-nav-sub {
  min-height: 44px;
}

.db-title {
  color: #dbe6f6;
}

.current-version-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #2a4264;
  border-radius: 10px;
  background: #0f1b2d;
  color: #dce9fa;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.lang-option {
  width: 38px;
  height: 30px;
  border: 1px solid #2a4264;
  border-radius: 6px;
  background: #0f1b2d;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .16s ease;
}

.lang-option img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .45;
}

.lang-option.active {
  border-color: #f0c86e;
  background: #142440;
}

.lang-option.active img {
  filter: grayscale(0);
  opacity: 1;
}

.lang-option:hover img {
  opacity: .85;
}


.explorer-page .eyebrow {
  color: var(--exp-accent);
}

.explorer-page .subtitle,
.explorer-page #metaText,
.explorer-page #pageInfo {
  color: var(--exp-muted);
}

.explorer-page a {
  color: #8ec2ff;
}

.explorer-page .layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.site-footer {
  margin: 22px auto 10px;
  max-width: 1072px;
  border-top: 1px solid #223652;
  color: #8fa7c6;
}

.footer-inner {
  padding: 10px 4px 16px;
  font-size: 13px;
}

.footer-inner p {
  margin: 4px 0;
}

.footer-inner a {
  color: #8ec2ff;
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(96vw, 720px);
  border: 1px solid #2a4264;
  border-radius: 12px;
  background: #0f1b2d;
  color: #dce9fa;
  padding: 10px 12px;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cookie-banner p {
  margin: 0;
  font-size: 13px;
}

.cookie-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: min(96vw, 980px);
  border: 1px solid #2a4264;
  border-radius: 12px;
  background: #0f1b2d;
  color: #dce9fa;
  padding: 12px;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.consent-banner-text strong {
  display: block;
  margin-bottom: 4px;
}

.consent-banner-text p {
  margin: 0;
  font-size: 13px;
}

.consent-banner-text small {
  display: block;
  margin-top: 6px;
  color: #9fb9d9;
}

.consent-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.consent-manage-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 58;
  border: 1px solid #2a4264;
  border-radius: 10px;
  background: #0f1b2d;
  color: #dce9fa;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.consent-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.58);
}

.consent-modal-dialog {
  position: relative;
  width: min(94vw, 780px);
  margin: 8vh auto 0;
  border: 1px solid #2a4264;
  border-radius: 12px;
  background: #0f1b2d;
  color: #dce9fa;
  box-shadow: 0 16px 34px rgba(3, 7, 14, 0.65);
}

.consent-modal-head,
.consent-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #1f3250;
}

.consent-modal-head h3 {
  margin: 0;
  font-size: 18px;
  color: #f0c86e;
}

.consent-modal-foot {
  border-top: 1px solid #1f3250;
  border-bottom: 0;
  flex-wrap: wrap;
}

.consent-modal-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid #294464;
  border-radius: 8px;
  background: #101f31;
  padding: 9px 10px;
}

.consent-row input {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  accent-color: #f0c86e;
}

.consent-row span {
  display: block;
}

.consent-row strong {
  display: block;
  font-size: 13px;
  color: #dce9fa;
}

.consent-row small {
  display: block;
  margin-top: 2px;
  color: #9fb9d9;
  font-size: 12px;
  line-height: 1.3;
}

.consent-row-required {
  opacity: .88;
}

.consent-updated {
  margin: 4px 0 0;
  color: #9fb9d9;
  font-size: 12px;
}

@media (max-width: 820px) {
  .consent-banner {
    grid-template-columns: 1fr;
  }
  .consent-banner-actions {
    justify-content: flex-start;
  }
}

.explorer-page .panel {
  background: linear-gradient(180deg, var(--exp-panel) 0%, var(--exp-panel-2) 100%);
  border-color: var(--exp-line);
  box-shadow: 0 10px 24px rgba(3, 7, 14, 0.45);
}

.explorer-page label {
  color: var(--exp-muted);
}

.explorer-page input,
.explorer-page select {
  background: #0b1525;
  border-color: #2a4264;
  color: var(--exp-ink);
}

.explorer-page .btn-ghost {
  background: #0f1b2d;
  color: var(--exp-ink);
  border-color: #2a4264;
}

.explorer-page .btn-primary {
  background: #b87f2e;
}

.explorer-page .btn-primary:hover {
  background: #946217;
}

.explorer-page .table-wrap {
  border-color: var(--exp-line);
  max-height: none;
  overflow: visible;
}

.explorer-page th {
  background: #0f1b2d;
  color: #a8c3e8;
  border-bottom-color: #28405f;
}

.explorer-page td {
  border-bottom-color: #1e2f47;
}

.explorer-page tr.item-row:hover {
  background: #122339;
}

.explorer-page tr.item-row.active {
  background: #163052;
}

.explorer-page tr.item-row {
  cursor: default;
}

.category-nav {
  display: grid;
  gap: 6px;
}

.cat-btn {
  width: 100%;
  border: 1px solid #2a4264;
  background: #0e1828;
  color: #dce9fa;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font: inherit;
}

.cat-btn:hover {
  background: #14243a;
}

.cat-btn.active {
  border-color: #e3b44e;
  background: #1b2f4a;
}

.cat-count {
  display: inline-block;
  min-width: 32px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #0a1322;
  color: #9fc0e7;
  font-size: 12px;
}

.explorer-page th.sortable {
  cursor: pointer;
  user-select: none;
  position: sticky;
}

.explorer-page th.sortable::after {
  content: '↕';
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.35;
}

.explorer-page th.sortable.sort-asc::after {
  content: '↑';
  opacity: 1;
  color: #f0c86e;
}

.explorer-page th.sortable.sort-desc::after {
  content: '↓';
  opacity: 1;
  color: #f0c86e;
}

.explorer-page .layout.single-column {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1072px;
  margin: 0 auto;
  padding: 14px 24px 24px;
}

.sub-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.search-inline {
  width: 100%;
  max-width: 560px;
  display: flex;
  gap: 8px;
  justify-self: center;
}

.search-suggest-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-inline input {
  flex: 1;
  min-width: 0;
  background: #0b1525;
  border: 1px solid #2a4264;
  color: #dfe9f7;
  border-radius: 10px;
  padding: 10px 12px;
}

.search-inline .btn {
  white-space: nowrap;
}

.search-suggest-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 35;
  border: 1px solid #2a4264;
  border-radius: 8px;
  background: #22262d;
  box-shadow: 0 14px 26px rgba(3, 7, 14, 0.55);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.suggest-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: #dce9fa;
  display: grid;
  grid-template-columns: 22px auto auto 1fr;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
}

.suggest-item:last-child {
  border-bottom: 0;
}

.suggest-item:hover {
  background: #313842;
}

.suggest-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid #3b5b7c;
  background: #111724;
}

.suggest-id {
  color: #dfe9f7;
  font-weight: 700;
  font-size: 12px;
}

.suggest-sep {
  color: #9fb9d9;
  font-size: 12px;
}

.suggest-name {
  color: #dfe9f7;
  font-size: 12px;
  font-weight: 700;
}

.item-hover-tooltip {
  position: fixed;
  z-index: 9999;
  width: min(540px, calc(100vw - 24px));
  max-height: min(78vh, 760px);
  overflow: auto;
  border: 1px solid #2a4264;
  border-radius: 10px;
  background: linear-gradient(180deg, #0f1a2a 0%, #0b1523 100%);
  box-shadow: 0 14px 30px rgba(3, 7, 14, 0.75);
  padding: 8px;
  color: #dfe9f7;
  pointer-events: none;
}

.item-tip-loading {
  color: #9fb9d9;
  font-size: 13px;
  padding: 8px;
}

.item-tip-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-bottom: 6px;
}

.item-tip-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1px solid #3b5b7c;
  background: #111724;
  object-fit: contain;
}

.item-tip-headtext h4 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
}

.item-tip-headtext p {
  margin: 2px 0 0;
  color: #d7e2ef;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.25;
}

.item-tip-sec {
  border: 1px solid #24415f;
  border-radius: 6px;
  background: #0d1a2a;
  padding: 4px 6px;
  margin-top: 6px;
}

.item-tip-sec h5 {
  margin: 0 0 4px;
  color: #f1c46a;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.item-tip-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
}

.item-tip-kv {
  display: grid;
  grid-template-columns: minmax(110px, 44%) 1fr;
  column-gap: 8px;
  align-items: baseline;
}

.item-tip-kv span {
  color: #84a9d1;
  font-size: 11px;
  font-weight: 600;
}

.item-tip-kv b {
  color: #e6edf5;
  font-size: 11px;
  font-weight: 600;
}

.item-tip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.item-tip-list li {
  position: relative;
  padding-left: 11px;
  font-size: 11px;
  line-height: 1.25;
  color: #dce8f5;
}

.item-tip-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f2c86b;
}

.item-tip-empty {
  color: #9fb9d9;
  font-size: 11px;
}

.dt-filters {
  margin: 8px 0 10px;
}

.dt-quality-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 6px 0 2px;
}

.dt-level-row {
  display: flex;
  align-items: center;
  padding: 4px 0 2px;
}

.dt-quality-title {
  color: #9fb9d9;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.quality-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #dce9fa;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.quality-check input {
  width: 15px;
  height: 15px;
  accent-color: #f0c86e;
}

.quality-check span {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.level-range {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  color: #dce9fa;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.level-range span {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.level-range input {
  width: 60px;
  height: 32px;
  background: #0b1525;
  color: #dfe9f7;
  border: 1px solid #2a4264;
  border-radius: 6px;
  padding: 4px 8px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.level-range input::-webkit-outer-spin-button,
.level-range input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#qualityReset {
  border-color: #2a4264;
  font-size: 13px;
}

.dt-filter-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 6px;
  border-top: 1px solid #1f3250;
  margin-top: 6px;
}

.explorer-page .dataTables_wrapper {
  color: #dfe9f7;
  padding: 0 12px 8px;
}

.explorer-page #itemsTable.dataTable thead th {
  padding: 12px 10px;
  border-bottom: 1px solid #28405f;
}

.explorer-page #itemsTable.dataTable tbody td {
  padding: 10px 10px;
  border-bottom: 1px solid #1e2f47;
  vertical-align: middle;
}

.explorer-page .dataTables_wrapper .dataTables_length,
.explorer-page .dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
  padding-top: 8px;
  margin-bottom: 10px;
  color: #dfe9f7;
  padding-left: 2px;
  padding-right: 2px;
}

.explorer-page .dataTables_wrapper .dataTables_length {
  float: left;
}

.explorer-page .dataTables_wrapper .dataTables_filter {
  float: right;
}

.explorer-page .dataTables_wrapper .dataTables_length label,
.explorer-page .dataTables_wrapper .dataTables_filter label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin: 0;
  color: #9fb9d9;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.explorer-page .dataTables_wrapper .dataTables_filter input,
.explorer-page .dataTables_wrapper .dataTables_length select {
  background: #0b1525;
  color: #dfe9f7;
  border: 1px solid #2a4264;
  border-radius: 8px;
}

.explorer-page .dataTables_wrapper .dataTables_length select {
  width: 80px;
  min-width: 80px;
  padding-right: 24px;
}

.explorer-page .dataTables_wrapper .dataTables_filter input {
  margin-left: 8px;
}

.explorer-page .dataTables_wrapper .dataTables_info {
  color: #8fa7c6;
  padding-top: 10px;
}

.explorer-page .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #2a4264 !important;
  background: #0f1b2d !important;
  color: #dfe9f7 !important;
  border-radius: 8px;
}

.explorer-page .dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #163052 !important;
  color: #fff !important;
}

.explorer-page #itemsTable.dataTable {
  width: 100% !important;
  table-layout: fixed;
}

.explorer-page #itemsTable.dataTable th.col-id,
.explorer-page #itemsTable.dataTable td.col-id {
  width: 120px !important;
  min-width: 120px;
  max-width: 120px;
  white-space: nowrap;
}

.explorer-page #itemsTable.dataTable th.col-icon,
.explorer-page #itemsTable.dataTable td.col-icon {
  width: 64px !important;
  min-width: 64px;
  max-width: 64px;
  text-align: center;
}

.explorer-page #itemsTable.dataTable td.col-icon .tiny-icon {
  margin: 0 auto;
}

.explorer-page #itemsTable.dataTable th.col-level,
.explorer-page #itemsTable.dataTable td.col-level {
  width: 64px !important;
  min-width: 64px;
  max-width: 64px;
  text-align: center;
  white-space: nowrap;
}

.explorer-page #itemsTable.dataTable th.col-name,
.explorer-page #itemsTable.dataTable td.col-name {
  width: auto;
}

@media (max-width: 1100px) {
  .sub-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .search-inline {
    max-width: none;
    justify-self: stretch;
  }

  .dt-quality-row {
    gap: 8px 10px;
  }
}

@media (max-width: 760px) {
  .item-page #bonusGrid.kv-grid.two-col {
    grid-template-columns: 1fr;
  }
}

.home-sub-row {
  grid-template-columns: 1fr auto;
}

.items-sub-row {
  grid-template-columns: 1fr auto;
}

.items-sub-row .search-inline {
  justify-self: start;
}

.item-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-layout {
  max-width: 1072px;
}

.item-detail-layout {
  max-width: 1072px;
}

.item-page #status {
  margin: 0 0 8px;
  color: #9fb9d9;
  font-size: 13px;
}

.home-news-panel {
  padding: 18px;
}

.home-news-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
  color: #e6eefb;
}

.home-news-head p {
  margin: 8px 0 0;
  color: #9fb9d9;
}

.home-news-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-news-card {
  border: 1px solid #28405f;
  border-radius: 10px;
  background: #0f1b2d;
  padding: 14px;
}

.home-news-card h3 {
  margin: 0 0 8px;
  color: #f0c86e;
  font-size: 16px;
}

.home-news-card p {
  margin: 0;
  color: #c6d8ef;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .home-news-grid {
    grid-template-columns: 1fr;
  }
}
