[data-catalog-item] { cursor: pointer; }
[data-catalog-item]:hover { outline: 1px solid #6de0d2; }
.catalog-families { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.catalog-families button { padding: 10px 16px; font: inherit; color: #e8e6e1; background: #17232d; border: 1px solid #526975; cursor: pointer; }
.catalog-families button[aria-pressed="true"] { color: #6de0d2; border-color: #6de0d2; background: #1b3037; }
.catalog-families button:focus-visible { outline: 3px solid #f2a33c; }
.item-wizard { color-scheme: dark; box-sizing: border-box; width: min(1120px, 95vw); max-height: 92vh; padding: 0; color: #e8e6e1; background: #101820; border: 1px solid #58717a; border-radius: 12px; font: 15px/1.5 system-ui, sans-serif; }
.item-wizard::backdrop { background: #000b; }
.item-wizard * { box-sizing: border-box; }
.item-wizard-header { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 20px; border-bottom: 1px solid #33444f; }
.item-wizard h2 { margin: 4px 0; font-size: 28px; line-height: 1.2; }
.item-wizard h3 { color: #6de0d2; font-size: 18px; margin: 24px 0 12px; }
.item-wizard h4 { font-size: 17px; margin: 0; }
.item-wizard button, .item-wizard input { font: inherit; border: 1px solid #526975; border-radius: 5px; padding: 9px 12px; background: #1b2a35; color: #e8e6e1; }
.item-wizard button { cursor: pointer; }
.item-wizard button:hover { border-color: #6de0d2; }
.item-wizard button:disabled { opacity: .4; cursor: default; }
.item-wizard button:focus-visible, .item-wizard input:focus-visible { outline: 3px solid #f2a33c; outline-offset: 2px; }
.item-wizard [data-wizard-trail] { margin: 12px 20px 0; }
.item-wizard nav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 6px; padding: 16px 20px; border-bottom: 1px solid #33444f; }
.item-wizard nav button { font-size: 12px; padding: 10px 5px; }
.item-wizard nav button[aria-pressed="true"] { background: #254641; color: #8ff3df; border-color: #6de0d2; }
.item-wizard-body { padding: 4px 22px 24px; overflow-wrap: anywhere; }
.item-wizard footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 20px; border-top: 1px solid #33444f; background: #101820; }
.item-wizard footer span { font-size: 12px; color: #a8bcc5; }
.item-hero { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; margin-top: 16px; }
.item-hero > img { width: 100%; height: 210px; object-fit: contain; }
.item-art-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.item-art-fields figure { margin: 0; padding: 12px; border: 1px solid #33444f; min-width: 0; }
.item-art-fields figcaption { color: #6de0d2; font-size: 14px; font-weight: 650; margin-bottom: 12px; }
.item-art-fields a { display: block; color: #a1eadf; margin-top: 8px; }
.item-art-fields a img { width: 100%; height: 230px; object-fit: contain; background: #0a1015; }
.item-art-fields a span { display: block; font-size: 12px; margin-top: 6px; }
.item-modeling-brief { border-top: 1px solid #33444f; margin-top: 18px; }
.item-art-pending { height: 190px; border: 1px dashed #526975; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #a8bcc5; gap: 10px; }
.item-art-pending strong { font: 36px monospace; color: #f2a33c; }
.item-kicker { font: 11px monospace; letter-spacing: 2px; color: #6de0d2; margin: 0; }
.item-muted { color: #a8bcc5; }
.item-warning { padding: 12px; background: #29251e; border-left: 3px solid #f2a33c; color: #f7d7a2; }
.item-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.item-stats > div { padding: 10px; background: #1b2932; border: 1px solid #33444f; }
.item-stats dt { font-size: 12px; color: #a8bcc5; }
.item-stats dd { margin: 4px 0 0; font-weight: 650; }
.item-relations { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.item-relation { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; min-width: 0; }
.item-relation > span:nth-child(2) { flex: 1; }
.item-relation small { display: block; color: #b1c5cd; font-size: 12px; }
.item-relation img { width: 42px; height: 42px; object-fit: contain; }
.item-code { font: 13px monospace; color: #f2a33c; min-width: 42px; }
.item-stock-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.item-stock-grid label, .item-quantity { display: flex; flex-direction: column; gap: 5px; color: #bdced5; }
.item-stock-grid input { min-width: 0; width: 100%; }
.item-quantity input { width: 120px; }
.item-check { display: flex; gap: 10px; align-items: center; margin: 16px 0; }
.item-flow { display: flex; justify-content: space-around; gap: 8px; align-items: center; flex-wrap: wrap; padding: 16px; border: 1px solid #526975; margin-top: 16px; }
.item-flow strong { color: #6de0d2; }
.item-goal, .item-upgrade { padding: 14px; border: 1px solid #33444f; margin: 12px 0; }
.item-goal > span { display: block; color: #a8bcc5; font-size: 12px; margin: 6px 0; }
.item-wizard summary { cursor: pointer; padding: 10px 0; color: #6de0d2; }
.item-wizard [hidden] { display: none; }
@media (max-width: 760px) {
  .item-wizard { width: 97vw; max-height: 96dvh; border-radius: 7px; }
  .item-wizard-header, .item-wizard-body { padding: 14px; }
  .item-wizard nav { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 12px; }
  .item-hero { grid-template-columns: 1fr; gap: 8px; }
  .item-art-fields { grid-template-columns: 1fr; }
  .item-art-fields a img { height: 210px; }
  .item-hero > img { height: 180px; }
  .item-relations { grid-template-columns: 1fr; }
  .item-stats, .item-stock-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .item-wizard input { font-size: 16px; }
  .item-wizard footer { flex-wrap: wrap; padding: 12px; }
  .item-wizard footer span { order: 3; width: 100%; }
  body div:has(> aside):has(> #ar-main) {
    flex-direction: column !important;
  }
  body aside {
    width: 100% !important;
    height: auto !important;
    position: static !important;
  }
  body aside > div {
    padding: 12px 16px !important;
  }
  body aside nav {
    display: flex;
    overflow-x: auto;
    padding: 8px !important;
  }
  body aside nav > div {
    display: none;
  }
  body aside nav > a {
    flex: none;
    white-space: nowrap;
    min-height: 44px;
    margin: 0 3px !important;
  }
  body #ar-main {
    width: 100%;
    height: auto !important;
    padding: 20px 16px !important;
    overflow: visible !important;
    box-sizing: border-box;
  }
  body #ar-main h2 {
    font-size: 28px !important;
    overflow-wrap: anywhere;
  }
  [data-catalog-group] > div[style*="display:grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  [data-catalog-item] {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  [data-catalog-root] table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
  [data-catalog-root] input,
  [data-catalog-root] select {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    font-size: 16px;
  }
  [data-catalog-root] label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
  }
}
/* Modelos 3D · Unreal panel (assets/models-viewer.js) */
.models-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.models-toolbar input, .models-toolbar select { font: inherit; padding: 8px 10px; color: #e8e6e1; background: #11161d; border: 1px solid #3a4452; border-radius: 4px; }
.models-toolbar button { padding: 8px 14px; font: inherit; color: #e8e6e1; background: #17232d; border: 1px solid #526975; cursor: pointer; }
.models-toolbar button[aria-pressed="true"] { color: #6de0d2; border-color: #6de0d2; background: #1b3037; }
.models-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.models-stage { height: 460px; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 30% 15%, #1b2530, #0f1319 72%); border: 1px solid #2b303b; border-radius: 6px; overflow: hidden; }
.models-stage img { max-width: 100%; max-height: 458px; display: block; object-fit: contain; }
.models-stage > a { display: block; }
.models-empty { text-align: center; color: #9aa0ab; }
.models-empty img { max-height: 280px; margin: 0 auto 8px; opacity: .55; }
.models-loading { color: #9aa0ab; padding: 20px; text-align: center; }
.models-info { padding: 14px 16px; background: #11161d; border: 1px solid #2b303b; border-radius: 6px; font-size: 14px; }
.models-info h3 { margin: 0 0 6px; font-size: 20px; color: #e8e6e1; }
.models-info h3 code { font-size: 12px; color: #9aa0ab; }
.models-info dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 12px 0; }
.models-info dt { color: #9aa0ab; }
.models-info dd { margin: 0; color: #e8e6e1; overflow-wrap: anywhere; }
.models-note { color: #9aa0ab; font-size: 12px; line-height: 1.5; }
.models-links { display: flex; flex-wrap: wrap; gap: 12px; }
.models-links a { color: #6de0d2; }
.models-badge { display: inline-block; padding: 2px 8px; font-size: 11px; border: 1px solid var(--badge); color: var(--badge); border-radius: 10px; }
.models-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin-top: 18px; }
.models-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; text-align: left; font: inherit; font-size: 12px; color: #e8e6e1; background: #11161d; border: 1px solid #2b303b; border-radius: 5px; cursor: pointer; }
.models-card img { width: 100%; height: 92px; object-fit: contain; }
.models-card:hover, .models-card[aria-pressed="true"] { border-color: #6de0d2; }
.models-card:focus-visible, .models-toolbar :focus-visible { outline: 3px solid #f2a33c; }
.models-card-name { font-weight: 600; }
@media (max-width: 860px) { .models-layout { grid-template-columns: 1fr; } .models-stage { height: 340px; } .models-info dl { grid-template-columns: 1fr; } }
.item-model-viewer { display: block; width: 100%; height: 230px; background: #0a1015; }
@media (max-width: 760px) { .item-model-viewer { height: 210px; } }
.model-large-btn { margin-top: 8px; padding: 8px 12px; font: inherit; font-size: 13px; color: #6de0d2; background: #17232d; border: 1px solid #6de0d2; border-radius: 4px; cursor: pointer; }
.models-stage { position: relative; }
.models-stage .model-large-btn { position: absolute; right: 12px; bottom: 12px; margin: 0; }
.model-lightbox { width: 96vw; height: 92vh; max-width: none; max-height: none; padding: 0; color: #e8e6e1; background: #0b0f14; border: 1px solid #58717a; border-radius: 10px; }
.model-lightbox::backdrop { background: #000c; }
.model-lightbox[open] { display: flex; flex-direction: column; }
.model-lightbox header { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #33444f; }
.model-lightbox header span { flex: 1; font-size: 12px; color: #9aa0ab; }
.model-lightbox header button { font: inherit; padding: 8px 12px; color: #e8e6e1; background: #1b2a35; border: 1px solid #526975; border-radius: 5px; cursor: pointer; }
.model-lightbox model-viewer { flex: 1; width: 100%; min-height: 0; background: radial-gradient(120% 120% at 30% 15%, #1b2530, #0b0f14 72%); }

/* versions: other designs of the same object (item-wizard.js versionsField) */
.item-versions { margin-top: 18px; }
.item-versions h3 { color: #6de0d2; }
.item-versions-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }
.item-versions figure { margin: 0; padding: 12px; border: 1px solid #33444f; border-top: 3px solid #a06cd5; background: #12151b; min-width: 0; }
.item-versions img { width: 100%; height: 180px; object-fit: contain; background: radial-gradient(120% 120% at 30% 15%, rgba(160,108,213,.18), #0f1319 72%); }
.item-versions figcaption { display: flex; flex-direction: column; gap: 3px; margin: 8px 0 4px; }
.item-versions figcaption strong { color: #e8e6e1; }
.item-versions figcaption span { color: #a06cd5; font-size: 12px; }
.item-animations { margin-top: 18px; }
.item-animations h3, .item-animations h4 { color: #6de0d2; }
.item-animation-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.item-animation-list > div { display: grid; gap: 8px; justify-items: start; padding: 12px; background: #12151b; border: 1px solid #33444f; border-top: 3px solid #6de0d2; }
.item-animation-list .model-large-btn { position: static; }
.item-renders figure { border-top-color: #e8a13a; }
.item-renders img { height: 240px; background: #15181c; }
.item-renders figure > a[download] { color: #e8a13a; font-size: 12px; }
.item-views figure { border-top-color: #6de0d2; }
.item-views img { height: 240px; background: #808082; }
.item-views figure > a[download] { color: #6de0d2; font-size: 12px; }

/* Modelos 3D · versions of the selected item (models-viewer.js) */
.models-versions { margin-top: 14px; display: grid; gap: 6px; }
.models-versions h4 { margin: 0 0 4px; color: #a06cd5; font-size: 13px; letter-spacing: 1px; }
.models-versions button { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left;
  padding: 6px; background: #12151b; border: 1px solid #2b303b; color: #e8e6e1; cursor: pointer; }
.models-versions button[aria-pressed="true"] { border-color: #a06cd5; background: #1b1626; }
.models-versions button img { grid-row: span 2; width: 56px; height: 36px; object-fit: contain; }
.models-versions button small { color: #9aa0ab; }
.models-versions button:first-of-type { display: block; }

/* Modelos 3D · views given to Meshy multi-image-to-3d (modeling_brief.view_images) */
.models-views { margin-top: 14px; }
.models-views h4 { margin: 0 0 6px; color: #a06cd5; font-size: 13px; letter-spacing: 1px; }
.models-views > div { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.models-views a { display: grid; gap: 3px; padding: 4px; background: #12151b; border: 1px solid #2b303b; color: #e8e6e1; text-decoration: none; font-size: 11px; text-align: center; }
.models-views a:hover { border-color: #a06cd5; }
.models-views img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #808082; }
.models-renders > div { grid-template-columns: repeat(2, 1fr); }
.models-renders img { aspect-ratio: 8 / 5; background: #15181c; }
.models-views small { display: block; margin-top: 6px; color: #9aa0ab; font-size: 11px; }
