/* On small screens, keep the site navigation in normal document flow. */
@media (max-width: 760px) {
  html:root body.appearance-page > #site-header,
  html body.appearance-page #site-header header[data-shared-header="true"] {
    position: static !important;
  }
}

:root {
  --bg: #07111d;
  --panel: rgba(13, 26, 42, 0.92);
  --panel-soft: rgba(19, 36, 56, 0.78);
  --line: rgba(222, 179, 88, 0.24);
  --gold: #d9aa4f;
  --gold-strong: #f2c76b;
  --text: #f4f0e7;
  --muted: #b7c1d0;
  --blue: #7db7ff;
  --ok: #8be28b;
  --warn: #ffd166;
  --bad: #ff7b7b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 170, 79, 0.14), transparent 28rem),
    linear-gradient(180deg, #081522 0%, #050a12 100%);
}

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

.fas {
  display: inline-block;
  width: 1em;
  min-width: 1em;
  line-height: 1;
  text-align: center;
  font-family: inherit;
  font-style: normal;
  font-weight: 900;
}

.fas::before { content: "•"; }
.fa-spinner::before { content: "⟳"; }
.fa-exclamation-triangle::before,
.fa-triangle-exclamation::before { content: "!"; }
.fa-link::before { content: "↗"; }
.fa-copy::before { content: "⧉"; }
.fa-code::before { content: "</>"; font-size: .72em; }
.fa-download::before { content: "↓"; }
.fa-keyboard::before { content: "⌨"; }
.fa-hat-wizard::before { content: "⌂"; }
.fa-venus-mars::before { content: "⚥"; }
.fa-mars::before { content: "♂"; }
.fa-venus::before { content: "♀"; }
.fa-smile::before { content: "☻"; }
.fa-palette::before { content: "◐"; }
.fa-times::before,
.fa-xmark::before { content: "×"; }
.fa-rotate-left::before { content: "↺"; }
.fa-trash-alt::before { content: "⌫"; }
.fa-user-shield::before { content: "◆"; }
.fa-shield-alt::before { content: "◇"; }
.fa-paw::before { content: "✦"; }
.fa-briefcase::before { content: "▣"; }
.fa-horse::before { content: "♞"; }
.fa-wand-magic-sparkles::before { content: "✧"; }
.fa-shirt::before { content: "▥"; }
.fa-magnifying-glass::before { content: "⌕"; }
.fa-ban::before { content: "⊘"; }
.fa-arrow-up::before { content: "↑"; }
.fa-arrow-left::before { content: "←"; }
.fa-arrow-right::before { content: "→"; }
.fa-user-rotate::before { content: "↷"; }
.fa-user::before { content: "●"; }
.fa-check-circle::before,
.fa-check::before { content: "✓"; }
.fa-circle-minus::before { content: "−"; }
.fa-box-open::before { content: "□"; }

.fa-spin {
  animation: localIconSpin .9s linear infinite;
}

@keyframes localIconSpin {
  to { transform: rotate(360deg); }
}

.lab-shell {
  width: min(1520px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 42px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
}

.lab-hero {
  padding: 26px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13, 26, 42, 0.96), rgba(8, 17, 30, 0.92));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lab-hero h1 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.95;
}

.lab-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-strip span,
.selected-pill,
.audit-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 10, 18, 0.42);
}

.hero-strip span {
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.hero-strip i {
  color: var(--gold-strong);
  margin-right: 6px;
}

.lab-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.control-panel,
.preview-panel,
.audit-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.control-panel,
.audit-panel {
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

h2,
h3 {
  margin: 0;
  font-family: "Cinzel", serif;
  letter-spacing: 0;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 15px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

label span {
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

select,
input[type="search"],
input[type="text"] {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(217, 170, 79, 0.34);
  border-radius: var(--radius);
  padding: 0 11px;
  color: var(--text);
  background: rgba(2, 8, 15, 0.82);
  font: inherit;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(217, 170, 79, 0.24);
  border-radius: var(--radius);
  background: rgba(2, 8, 15, 0.42);
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold-strong);
}

.check-row span {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0;
}

button {
  min-height: 38px;
  border: 1px solid rgba(217, 170, 79, 0.34);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--text);
  background: rgba(20, 38, 58, 0.92);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  border-color: var(--gold-strong);
  color: var(--gold-strong);
}

.icon-btn {
  width: 38px;
  padding: 0;
}

.segmented,
.slot-tabs {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.segmented {
  grid-template-columns: 1fr 1fr;
}

.slot-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slot-tabs button {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  min-height: 48px;
  padding: 6px 8px;
  text-align: left;
  line-height: 1.15;
}

.slot-tabs button i {
  text-align: center;
}

.slot-tabs button span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.slot-tabs button strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-tabs button small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.slot-tabs button.active small {
  color: rgba(17, 17, 17, 0.72);
}

.slot-tabs button.pending-local:not(.active) {
  border-style: dashed;
}

.slot-tabs button.has-pieces:not(.active) {
  border-color: rgba(125, 183, 255, 0.28);
}

.slot-tabs button.has-pieces:not(.active) small {
  color: #9fcaff;
}

.slot-tabs button.pending-local:not(.active) small {
  color: #ffd6d6;
}

.segmented button.active,
.slot-tabs button.active {
  border-color: var(--gold-strong);
  color: #111;
  background: linear-gradient(180deg, #f3d483, #d7a341);
}

.color-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.color-row {
  display: grid;
  grid-template-columns: 76px 44px 1fr;
  gap: 8px;
  align-items: center;
}

.color-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.color-row input[type="color"] {
  width: 44px;
  height: 38px;
  border: 1px solid rgba(217, 170, 79, 0.34);
  border-radius: var(--radius);
  padding: 2px;
  background: rgba(2, 8, 15, 0.82);
}

.selected-slots {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.item-grid-summary {
  margin: -2px 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.item-card {
  display: grid;
  gap: 5px;
  justify-items: center;
  min-width: 0;
  min-height: 116px;
  padding: 8px 6px;
  border: 1px solid rgba(217, 170, 79, 0.16);
  background: rgba(2, 8, 15, 0.34);
}

.item-card.active {
  border-color: var(--gold-strong);
  color: #111;
  background: linear-gradient(180deg, #f3d483, #d7a341);
}

.item-card.active .asset-status {
  color: #111;
  background: rgba(255, 255, 255, 0.36);
}

.item-card.rank-0 {
  border-color: rgba(139, 226, 139, 0.34);
}

.item-card.rank-3 {
  opacity: 0.82;
}

.item-thumb {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
}

.item-thumb img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.item-thumb i {
  color: var(--muted);
  font-size: 18px;
}

.item-card strong {
  display: -webkit-box;
  max-width: 100%;
  min-height: 28px;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-card em {
  margin: 0;
  font-size: 9px;
  text-align: center;
}

.item-empty-card {
  display: grid;
  grid-column: 1 / -1;
  justify-items: center;
  gap: 8px;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 10, 18, 0.36);
  color: var(--muted);
  text-align: center;
}

.item-empty-card i {
  color: var(--gold-strong);
  font-size: 20px;
}

.item-empty-card strong {
  color: var(--text);
  font-size: 13px;
}

.item-empty-card span {
  font-size: 12px;
  line-height: 1.4;
}

.item-empty-card button {
  min-height: 34px;
  padding: 6px 12px;
}

.selected-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 10, 18, 0.32);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.selected-empty i {
  color: var(--gold-strong);
}

.selected-pill {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 6px;
}

.selected-pill img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.selected-pill strong {
  display: block;
  font-size: 12px;
}

.selected-pill small {
  color: var(--muted);
}

.selected-pill em {
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.asset-status.ready {
  color: #dfffe0;
  background: rgba(87, 194, 102, 0.18);
}

.asset-status.partial {
  color: #fff0bd;
  background: rgba(255, 209, 102, 0.18);
}

.asset-status.pending {
  color: #ffd6d6;
  background: rgba(255, 123, 123, 0.14);
}

.selected-pill button {
  width: 32px;
  min-height: 32px;
  padding: 0;
}

.preview-panel {
  overflow: hidden;
}

.canvas-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 540px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(9, 18, 31, 0.7), rgba(2, 7, 13, 0.88)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 12px);
}

canvas {
  width: min(100%, 460px);
  height: auto;
  image-rendering: auto;
}

#mesh-canvas {
  width: 100%;
  max-width: 620px;
}

.canvas-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(217, 170, 79, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(2, 8, 15, 0.82);
  font-size: 13px;
}

.canvas-note strong {
  color: var(--gold-strong);
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.fixture-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 16px;
}

.fixture-actions button {
  min-width: 0;
  font-size: 12px;
  line-height: 1.15;
}

.fixture-actions button.active {
  border-color: var(--gold-strong);
  color: #111;
  background: linear-gradient(180deg, #f3d483, #d7a341);
}

.diagnostics-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 0 18px 18px;
}

.diagnostics-grid article,
.asset-lab-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(217, 170, 79, 0.2);
  border-radius: var(--radius);
  background: var(--panel-soft);
}

#face-preview {
  display: block;
  margin-top: 12px;
  object-fit: contain;
}

.state-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.state-summary span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(217, 170, 79, 0.16);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(2, 8, 15, 0.34);
  font-size: 12px;
  line-height: 1.35;
}

.state-summary strong {
  color: var(--gold-strong);
}

pre {
  max-height: 210px;
  overflow: auto;
  margin: 12px 0 0;
  color: #d9e7ff;
  font-size: 12px;
  white-space: pre-wrap;
}

.asset-lab-panel {
  margin: 0 18px 18px;
}

.asset-lab-heading,
.symbol-lab-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.symbol-lab-heading {
  margin-top: 16px;
}

.asset-lab-heading span,
.symbol-lab-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.extracted-assets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.symbol-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.asset-card,
.empty-assets,
.coverage-card,
.symbol-card {
  border: 1px solid rgba(217, 170, 79, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 8, 15, 0.44);
}

.coverage-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
}

.coverage-card strong {
  color: var(--gold-strong);
  font-size: 12px;
}

.coverage-card span {
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.coverage-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.mesh-proof {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(217, 170, 79, 0.18);
  border-radius: var(--radius);
  background: rgba(2, 8, 15, 0.44);
}

.mesh-proof h3 {
  margin-bottom: 6px;
}

.mesh-proof p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.coverage-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.coverage-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #89e48f, #f2c76b);
}

.asset-card {
  min-width: 0;
  overflow: hidden;
}

.symbol-card {
  min-width: 0;
  overflow: hidden;
}

.asset-card img,
.symbol-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.08) 75%);
  background-color: rgba(6, 14, 24, 0.86);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.asset-card div,
.symbol-card div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.asset-card strong,
.symbol-card strong {
  color: var(--gold-strong);
  font-size: 13px;
}

.asset-card span,
.asset-card small,
.symbol-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.empty-assets {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.empty-assets i {
  color: var(--gold-strong);
}

.technical-details {
  margin-top: 14px;
  border: 1px solid rgba(217, 170, 79, 0.2);
  border-radius: var(--radius);
  background: rgba(2, 8, 15, 0.32);
}

.technical-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--gold-strong);
  cursor: pointer;
  font-weight: 900;
}

.technical-details summary::-webkit-details-marker {
  display: none;
}

.technical-details summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(217, 170, 79, 0.28);
  border-radius: var(--radius);
  color: var(--text);
  background: rgba(20, 38, 58, 0.92);
}

.technical-details[open] summary::after {
  content: "-";
}

.technical-details summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.technical-details > :not(summary) {
  margin-left: 12px;
  margin-right: 12px;
}

.technical-details:not([open]) > :not(summary) {
  display: none;
}

.technical-details pre {
  margin-bottom: 12px;
}

.audit-panel {
  display: grid;
  gap: 16px;
}

.audit-list {
  display: grid;
  gap: 10px;
}

.audit-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 10px;
}

.audit-row i {
  margin-top: 2px;
}

.audit-row.ready i {
  color: var(--ok);
}

.audit-row.partial i {
  color: var(--warn);
}

.audit-row.pending i {
  color: var(--bad);
}

.audit-row strong {
  display: block;
  font-size: 13px;
}

.audit-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.roadmap {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .lab-grid {
    grid-template-columns: 330px 1fr;
  }

  .audit-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .lab-shell {
    width: min(100% - 20px, 1520px);
    padding-top: 82px;
  }

  .lab-hero,
  .control-panel,
  .audit-panel {
    padding: 16px;
  }

  .lab-grid,
  .diagnostics-grid,
  .extracted-assets,
  .coverage-grid,
  .symbol-grid,
  .mesh-proof {
    grid-template-columns: 1fr;
  }

  .slot-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Vista de jugador: misma piel visual del probador de apariencia principal. */
:root {
  --bg: #050d1f;
  --panel: #0b1c36;
  --panel-soft: #08152b;
  --line: #2f4d78;
  --text: #edf3ff;
  --muted: #a9bddb;
  --gold: #f0d28f;
  --gold-strong: #f0d28f;
  --gold-dim: rgba(240,210,143,.18);
  --gold-border: rgba(230,195,106,.28);
}

body {
  background: #050d1f url('../textura.png') center/cover fixed;
  color: var(--text);
}

.page-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 16px auto 40px;
}

.breadcrumbs {
  margin-bottom: 14px;
  font-size: 15px;
}

.hero {
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  background: linear-gradient(130deg, rgba(9,24,50,.95), rgba(8,18,35,.88));
  padding: 22px 28px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 5px 0 7px;
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.1;
}

.copy {
  margin: 0;
  color: #c8d8f0;
  font-size: clamp(13px, 1.3vw, 16px);
  line-height: 1.5;
}

.builder-layout {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  gap: 12px;
  align-items: start;
}

.panel-classes,
.panel-preview,
.panel-custom {
  background: linear-gradient(180deg, var(--panel), var(--panel-soft));
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 14px;
}

.panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.panel-head h2 {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: var(--gold);
  font-size: 17px;
}

#class-search,
#modal-item-search {
  width: 100%;
  border: 1px solid rgba(230,195,106,.35);
  background: #0f2648;
  color: var(--text);
  border-radius: 8px;
  padding: 0 11px;
  height: 38px;
  font-size: 14px;
  outline: none;
}

#modal-item-search {
  height: 32px;
  font-size: 12px;
}

#class-search:focus,
#modal-item-search:focus {
  border-color: var(--gold);
}

.class-list {
  display: grid;
  gap: 5px;
  max-height: calc(100vh - 320px);
  min-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
}

.class-item {
  border: 1px solid #35527b;
  background: #0c203d;
  color: #dce8f8;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  transition: background .15s, border-color .15s;
  width: 100%;
  text-align: left;
}

.class-item:hover {
  background: #112540;
  border-color: rgba(230,195,106,.4);
}

.class-item.active {
  border-color: var(--gold);
  color: #ffe5b4;
  background: #142c4f;
}

.class-thumb {
  width: 35px;
  height: 35px;
  border-radius: 6px;
  border: 1px solid #4a678d;
  background: #091321;
  flex: 0 0 35px;
  object-fit: cover;
}

.class-thumb.breed-icon {
  background-image: url("../clases/assets/breeds.jpg");
  background-repeat: no-repeat;
  background-size: auto;
}

.class-item.active .breed-icon {
  border-color: #d2ad5f;
  box-shadow: inset 0 0 0 2px rgba(230,195,106,.45);
}

.panel-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow: visible;
}

.preview-shell {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 78px 1fr 78px;
  gap: 6px;
  align-items: center;
}

.preview-slot-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 68px;
}

.slot-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--muted);
  line-height: 1;
  text-align: center;
}

.slot-btn {
  width: 68px;
  height: 68px;
  border: 1px solid #2f4d78;
  border-radius: 10px;
  background: linear-gradient(180deg, #0c203d, #0a1930);
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}

.slot-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  pointer-events: none;
  opacity: .55;
}

.slot-thumb-placeholder {
  opacity: .15;
  filter: grayscale(40%);
}

.slot-btn:hover {
  border-color: rgba(230,195,106,.55);
  transform: translateY(-1px);
}

.slot-btn.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(240,210,143,.28);
}

.slot-btn.has-item {
  border-color: rgba(101,200,255,.6);
}

.slot-btn.unavailable {
  cursor: not-allowed;
  opacity: .42;
  border-color: rgba(80, 111, 150, .45);
}

.slot-btn.unavailable:hover {
  transform: none;
  border-color: rgba(80, 111, 150, .45);
  box-shadow: none;
}

.preview-img-wrap,
.local-preview-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  background: radial-gradient(ellipse at center, rgba(20,50,100,.65) 0%, rgba(5,12,28,.96) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  padding: 0;
}

#render-canvas {
  display: block;
  width: 360px;
  height: 440px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

#preview-img,
.preview-error {
  display: none !important;
}

#preview-img {
  position: relative;
  z-index: 1;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: pixelated;
  transition: opacity .18s ease;
}

#preview-img.loading {
  opacity: .28;
}

.preview-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.preview-loading.visible {
  opacity: 1;
}

.preview-error {
  position: absolute;
  inset: 18px;
  z-index: 3;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  color: #ffe5c4;
  background: rgba(7, 15, 28, .88);
  border: 1px solid rgba(255, 190, 96, .38);
  border-radius: 10px;
}

.preview-error i {
  color: var(--gold);
}

.local-preview-wrap {
  background:
    radial-gradient(ellipse at 50% 72%, rgba(0,0,0,.36) 0 18%, transparent 19%),
    radial-gradient(ellipse at center, rgba(20,50,100,.65) 0%, rgba(5,12,28,.96) 80%);
}

#compass-wrap {
  display: flex;
  justify-content: center;
}

.compass-row {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
}

.compass-btn-h {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 5px 6px;
  min-width: 36px;
  max-width: 44px;
  border: 1px solid #2f4d78;
  border-radius: 8px;
  background: #0c203d;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
}

.compass-btn-h:hover {
  border-color: rgba(230,195,106,.5);
  color: #e0d0b0;
  background: #132640;
}

.compass-btn-h.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,210,143,.12);
  box-shadow: 0 0 8px rgba(230,195,106,.25);
}

.c-arrow {
  font-size: 14px;
  line-height: 1;
}

.c-label {
  font-size: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  line-height: 1;
}

.preview-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
}

#copy-state-btn,
#local-equipment-btn,
.player-hidden-action,
.internal-review {
  display: none;
}

.btn-action,
.preview-actions button {
  padding: 7px 12px;
  border: 1px solid #2f4d78;
  border-radius: 8px;
  background: #0c203d;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
  min-height: auto;
  box-shadow: none;
}

.btn-action:hover,
.preview-actions button:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: none;
}

.panel-custom {
  display: grid;
  gap: 10px;
}

.custom-block {
  background: rgba(7,18,40,.6);
  border: 1px solid rgba(47,77,120,.6);
  border-radius: 10px;
  padding: 11px;
}

.block-title {
  margin: 0 0 9px;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gender-toggle {
  display: flex;
  gap: 7px;
}

.gender-btn {
  flex: 1;
  padding: 7px;
  border: 1px solid #2f4d78;
  border-radius: 8px;
  background: #0c203d;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all .15s;
}

.gender-btn:hover {
  border-color: rgba(230,195,106,.4);
  color: #e0d0b0;
}

.gender-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(240,210,143,.1);
}

.face-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.face-item {
  aspect-ratio: 1;
  border: 2px solid #2f4d78;
  border-radius: 7px;
  background: #091321;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color .12s;
  padding: 0;
}

.face-item:hover {
  border-color: rgba(230,195,106,.5);
}

.face-item.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(240,210,143,.28);
}

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

.face-item-num {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.45);
  line-height: 1;
}

.colors-list {
  display: grid;
  gap: 6px;
}

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

.color-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 52px;
  line-height: 1.2;
}

.color-row .color-swatch,
.color-row input[type="color"].color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 2px solid #4a678d;
  cursor: pointer;
  flex: 0 0 26px;
  padding: 0;
  background: #070e1c;
  transition: border-color .12s, transform .1s;
  box-sizing: border-box;
}

.color-row .color-swatch:hover,
.color-row input[type="color"].color-swatch:hover {
  border-color: var(--gold);
  transform: scale(1.08);
}

.color-row .color-hex {
  font-family: monospace;
  font-size: 11px;
  color: #8aa8cc;
  background: #070e1c;
  border: 1px solid #1d3250;
  border-radius: 5px;
  padding: 3px 6px;
  width: 60px;
  height: 26px;
  min-height: 0;
  outline: none;
  text-transform: uppercase;
  flex: 0 0 60px;
  box-sizing: border-box;
}

.color-row .color-hex:focus {
  border-color: rgba(230,195,106,.4);
  color: #dde8f8;
}

.btn-reset-colors {
  width: 100%;
  margin-top: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(47,77,120,.6);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.btn-reset-colors:hover {
  border-color: rgba(230,195,106,.5);
  color: var(--gold);
}

.equip-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.selected-slots {
  display: none;
}

.selected-slots.has-items {
  display: grid;
}

.selected-empty {
  color: var(--muted);
  font-size: 12px;
}

.selected-pill {
  background: rgba(8, 22, 42, .86);
  border-color: rgba(47,77,120,.7);
}

.selected-pill em {
  display: none;
}

.fixture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  max-width: 100%;
  display: none;
}

.fixture-actions button {
  border: 1px solid #2f4d78;
  border-radius: 8px;
  background: #0c203d;
  color: var(--muted);
  padding: 6px 8px;
  font-size: 11px;
  cursor: pointer;
}

.fixture-actions button.active,
.fixture-actions button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hidden-controls {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.item-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: none;
  pointer-events: none;
}

.item-modal.open {
  display: block;
}

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

.item-modal-panel {
  position: fixed;
  top: 90px;
  right: 20px;
  width: 420px;
  max-height: calc(100vh - 110px);
  background: linear-gradient(180deg, #0b1c36, #08152b);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: all;
  box-shadow: 0 8px 40px rgba(0,0,0,.7);
  user-select: none;
}

.item-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47,77,120,.5);
  cursor: grab;
}

.item-modal-head:active {
  cursor: grabbing;
}

.item-modal-head h3 {
  margin: 0;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.item-modal-head h3::before {
  content: '↕';
  font-weight: 900;
  font-size: 11px;
  color: var(--muted);
  opacity: .6;
}

.item-modal-close {
  border: 1px solid #2f4d78;
  border-radius: 8px;
  background: #0c203d;
  color: var(--muted);
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  grid-auto-rows: 132px;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  max-height: none;
}

.item-card {
  height: 100%;
  border: 1px solid rgba(187, 139, 76, .58);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, rgba(110, 128, 177, .24), transparent 56%),
    linear-gradient(145deg, rgba(36, 39, 74, .96), rgba(9, 27, 52, .98) 58%, rgba(6, 18, 36, .98));
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color .12s, box-shadow .12s, background .12s, transform .12s;
  padding: 0;
  color: #dce8f8;
  display: block;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 22px rgba(0,0,0,.18);
  isolation: isolate;
}

.item-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 207, 118, .12), transparent 34%),
    radial-gradient(circle at 78% 18%, rgba(206, 103, 151, .16), transparent 38%);
  opacity: .72;
  pointer-events: none;
}

.item-card:hover {
  border-color: rgba(239, 195, 107, .78);
  background:
    radial-gradient(circle at 50% 35%, rgba(128, 150, 206, .30), transparent 58%),
    linear-gradient(145deg, rgba(45, 43, 83, .98), rgba(12, 35, 66, .98) 58%, rgba(7, 22, 43, .98));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(239,195,107,.18), 0 14px 26px rgba(0,0,0,.22);
  transform: translateY(-1px);
}

.item-card.active {
  border-color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(240,210,143,.34), 0 0 18px rgba(240,210,143,.16);
  background:
    radial-gradient(circle at 50% 35%, rgba(245, 186, 89, .24), transparent 57%),
    linear-gradient(145deg, rgba(54, 43, 72, .98), rgba(16, 39, 68, .98) 60%, rgba(8, 22, 42, .98));
}

.item-card.disabled {
  cursor: not-allowed;
  opacity: .56;
  filter: grayscale(.55);
  border-color: rgba(79, 106, 143, .48);
}

.item-card.disabled:hover {
  border-color: rgba(121, 145, 179, .58);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 22px rgba(0,0,0,.18);
}

.item-card .item-thumb {
  display: block;
  height: 88px;
  margin: 5px 5px 2px;
  position: relative;
  z-index: 1;
}

.item-card .item-thumb::before {
  content: '';
  position: absolute;
  inset: 8px 10px 4px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.15), rgba(94,121,168,.10) 42%, transparent 70%);
}

.item-card .item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0;
  filter: drop-shadow(0 7px 9px rgba(0,0,0,.34));
}

.item-card strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 0 5px;
  font-size: 10.5px;
  line-height: 1.18;
  color: #dde9fb;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
  position: relative;
  z-index: 1;
  font-weight: 800;
}

.item-card em {
  display: none;
}

.item-card.disabled em {
  display: inline-flex;
  position: relative;
  z-index: 1;
  margin-top: 3px;
  padding: 2px 6px;
  border: 1px solid rgba(239, 126, 126, .38);
  border-radius: 999px;
  color: #ffd0d0;
  background: rgba(65, 20, 28, .62);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.item-card.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background:
    radial-gradient(circle at 50% 35%, rgba(124, 145, 190, .14), transparent 56%),
    linear-gradient(145deg, rgba(22, 30, 55, .78), rgba(6, 18, 36, .78));
  color: rgba(207,222,245,.72);
  border-style: dashed;
}

.item-empty-card {
  grid-column: 1/-1;
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

.atlas-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 9000;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  padding: 9px 14px;
  border: 1px solid rgba(240, 210, 143, .45);
  border-radius: 10px;
  background: linear-gradient(180deg, #1b2b42, #0f1a2a);
  color: #f6dfb0;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(0,0,0,.42);
  transition: opacity .16s ease, transform .16s ease;
}

.atlas-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Keyboard shortcuts help overlay — toggled by #shortcuts-btn, dismissed on click or after 7s */
.shortcuts-help {
  position: fixed;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8000;
  min-width: 230px;
  padding: 14px 18px 12px;
  border: 1px solid rgba(240,210,143,.45);
  border-radius: 12px;
  background: linear-gradient(180deg, #1b2b42, #0f1a2a);
  box-shadow: 0 8px 30px rgba(0,0,0,.55);
  cursor: pointer;
  user-select: none;
  animation: fadeInUp .18s ease;
}

.shortcuts-help h4 {
  margin: 0 0 10px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.shortcuts-help ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.shortcuts-help li {
  font-size: 12px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 4px;
}

.shortcuts-help li span {
  margin-left: 4px;
  color: var(--muted);
}

.shortcuts-help kbd {
  display: inline-block;
  background: rgba(47,77,120,.7);
  border: 1px solid rgba(242,199,107,.4);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: 'Inter', monospace;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.6;
}

.shortcuts-help small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.internal-review {
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(47,77,120,.5);
  border-radius: 10px;
  background: rgba(7,18,40,.45);
  padding: 10px;
}

.internal-review > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
}

.internal-review > summary small {
  color: var(--muted);
  font-weight: 600;
}

.asset-lab-panel,
.diagnostics-grid,
.audit-list {
  margin-top: 12px;
}

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

@media (max-width: 960px) {
  .builder-layout {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "preview preview"
      "classes custom";
  }
  .panel-classes { grid-area: classes; }
  .panel-preview { grid-area: preview; }
  .panel-custom { grid-area: custom; }
  .class-list { max-height: 38vh; }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1400px);
    margin-top: 8px;
  }
  .breadcrumbs {
    margin-bottom: 8px;
    font-size: 12px;
  }
  .hero {
    padding: 10px 12px;
    margin-bottom: 10px;
  }
  .hero .eyebrow,
  .hero .copy {
    display: none;
  }
  .hero h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.05;
  }
  .builder-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "classes"
      "custom";
  }
  .panel-preview { grid-area: preview; }
  .panel-classes { grid-area: classes; }
  .panel-custom { grid-area: custom; }
  .panel-preview {
    gap: 8px;
    padding: 10px;
  }
  .panel-classes {
    padding: 12px;
  }
  .panel-classes .panel-head {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 10px;
  }
  .panel-classes .panel-head h2 {
    font-size: 15px;
  }
  #class-search {
    height: 34px;
    font-size: 13px;
  }
  .class-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 236px;
    min-height: 0;
    gap: 7px;
    padding-right: 0;
  }
  .class-item {
    min-height: 44px;
    padding: 6px 7px;
    gap: 7px;
    font-size: 12px;
  }
  .class-item span:not(.class-thumb) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .preview-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "slots-left"
      "canvas"
      "slots-right";
    gap: 8px;
    justify-items: center;
    max-width: 340px;
  }
  .preview-slot-rail.left {
    grid-area: slots-left;
  }
  .preview-slot-rail.right {
    grid-area: slots-right;
  }
  .preview-img-wrap,
  .local-preview-wrap {
    grid-area: canvas;
  }
  .preview-slot-rail {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
  }
  .slot-wrap {
    width: 44px;
    gap: 0;
  }
  .slot-btn {
    width: 44px;
    height: 44px;
  }
  .slot-label {
    display: none;
  }
  .compass-row {
    gap: 3px;
  }
  .compass-btn-h {
    min-width: 31px;
    max-width: 36px;
    padding: 4px 5px;
    border-radius: 7px;
  }
  .c-arrow {
    font-size: 13px;
  }
  .c-label {
    display: none;
  }
  .preview-actions {
    gap: 6px;
  }
  .preview-actions button {
    min-height: 30px;
    padding: 6px 10px;
  }
  .item-modal-panel {
    inset: auto 10px 10px 10px;
    top: auto;
    width: auto;
    max-height: 78vh;
    border-radius: 14px 14px 10px 10px;
    padding: 10px;
  }
  .item-modal.open .item-modal-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 22, .68);
    pointer-events: all;
  }
  .item-modal-head {
    cursor: default;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .item-modal-head:active {
    cursor: default;
  }
  .item-modal-head h3 {
    font-size: 14px;
    min-width: 0;
  }
  .item-modal-head h3::before {
    display: none;
  }
  #modal-item-search {
    height: 38px;
    font-size: 13px;
  }
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 118px;
    gap: 8px;
    padding-right: 0;
  }
  .item-card .item-thumb {
    height: 72px;
    margin: 3px 5px 1px;
  }
  .item-card strong {
    font-size: 10.75px;
    line-height: 1.16;
    padding: 0 6px;
  }
}
