/* wgf-mv-browser.css - /model-viewer/ inside the Collections Journal window.
   The frame, insets, list plates, scene and tabs are wgf-mount-journal.css (real client
   textures, drawn once there). This sheet only widens the window to three insets
   (list | scene | panels) and places the controls. It draws no chrome of its own. */

/* Wider than the 1220px reading column, but never under the side ad rails. */
@media (min-width: 1500px) { .wgf-mv-page .wgf-shell-main { max-width: min(1640px, calc(100vw - 290px)); } }
.mj.mvb { max-width: none; margin-bottom: 14px; }
.mvb-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 300px minmax(0, 1fr) 270px; gap: 6px; }
.mvb-grid > * { grid-area: auto; min-width: 0; }
.mvb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mvb-note, .mvb-empty { margin: 0; color: var(--wgf-text, #f4ecd8); opacity: .7; font-size: 12px; line-height: 1.4; }
.mvb-dim { margin-left: auto; color: var(--wgf-text, #f4ecd8); opacity: .6; font-size: 11px; white-space: nowrap; }
.mvb-h { margin: 0 0 8px; color: var(--wgf-gold-primary, #ffd100); font-family: var(--font-game, inherit); font-size: 13px; font-weight: 400; text-shadow: var(--text-ink-outline, none); }

/* ---- left inset: search + type on one line, then the plates */
.mvb-browser { height: 660px; }
.mvb-models { height: 100%; }
.mvb-models[hidden] { display: none; }
.mvb-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; padding: 0 2px 8px; }
.mvb-filters input, .mvb-filters select { width: 100%; box-sizing: border-box; height: 26px; font-size: 12px; }
.mvb-models .mj-list__head { align-items: center; padding-bottom: 6px; }
.mvb-check { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; color: var(--wgf-text, #f4ecd8); font-family: var(--font-game, inherit); font-size: 12px; cursor: pointer; }
.mj-list__head .mvb-check { margin: 0; }
.mvb-check input { accent-color: #b7912f; }
.mvb-check--rule { margin-top: 8px; }
.mvb-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px; transition: opacity .12s; }
.mvb-list.is-busy { opacity: .5; }
.mvb-list .mvb-empty { padding: 14px 6px; }
/* MountListButtonTemplate plate without the icon cell: models have no icon. */
.mvb-row.mj-btn {
  flex: none; width: 100%; height: 40px; padding: 0 10px; border: 0; cursor: pointer; text-align: left;
  justify-content: space-between; gap: 8px;
  background: url("/assets/ui/petlist-buttonbackground.png") 0 0 / 100% 100% no-repeat;
}
.mvb-row.mj-btn:hover {
  background: url("/assets/ui/petlist-buttonhighlight.png") 0 0 / 100% 100% no-repeat,
              url("/assets/ui/petlist-buttonbackground.png") 0 0 / 100% 100% no-repeat;
}
.mvb-row.mj-btn.is-active {
  background: url("/assets/ui/petlist-buttonselect.png") 0 0 / 100% 100% no-repeat,
              url("/assets/ui/petlist-buttonbackground.png") 0 0 / 100% 100% no-repeat;
  color: var(--wgf-text, #f4ecd8);
}
.mvb-row__name { -webkit-line-clamp: 1; }
.mvb-row__flag { flex: none; color: var(--wgf-text, #f4ecd8); opacity: .55; font-family: var(--font-game, inherit); font-size: 10px; }
.mvb-row__flag--hd { opacity: 1; color: var(--wgf-gold-primary, #ffd100); }
.mvb-filters select[hidden], .mvb-check[hidden] { display: none; }
/* Classic | HD over the scene: the client red buttons, top left, clear of the icon bar. */
.mvb-variant { position: absolute; top: 10px; left: 12px; z-index: 3; display: flex; gap: 2px; }
.mvb-variant[hidden] { display: none; }
.mvb-variant__b { min-width: 78px; filter: grayscale(.85) brightness(.75); }
.mvb-variant__b:hover { filter: grayscale(.4) brightness(1); }
.mvb-variant__b.is-active { filter: none; cursor: default; }
.mvb-legend a { color: var(--wgf-gold-primary, #ffd100); }
.mvb-pager { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; color: var(--wgf-text, #f4ecd8); font-family: var(--font-game, inherit); font-size: 12px; }

/* ---- middle inset: the journal scene, taller than the mount page's 460px */
.mvb-stagebox .mj-scene, .mvb-stagebox .wgf-model3d-box { height: 100%; min-height: 654px; box-sizing: border-box; }
.mvb-stagebox #wgf-model3d-status { bottom: 10px; }

/* ---- right: one inset per panel */
.mvb-controls { display: flex; flex-direction: column; gap: 6px; height: 660px; overflow-y: auto; }
.mvb-panel { padding: 10px 12px; }
.mvb-panel:last-child { flex: 1 1 auto; }
.mvb-field { display: block; margin: 0 0 10px; color: var(--wgf-text, #f4ecd8); font-family: var(--font-game, inherit); font-size: 12px; }
.mvb-field > span { display: flex; justify-content: space-between; margin-bottom: 4px; }
.mvb-field select, .mvb-field input[type=range] { width: 100%; box-sizing: border-box; }
.mvb-field input[type=range] { accent-color: #b7912f; }
#mvb-parts { max-height: 220px; overflow-y: auto; }
.mvb-info { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 10px; margin: 0; font-family: var(--font-game, inherit); font-size: 12px; }
.mvb-info dt { color: var(--wgf-gold-primary, #ffd100); }
.mvb-info dd { margin: 0; color: var(--wgf-text, #f4ecd8); overflow-wrap: anywhere; text-align: right; }

/* ---- the journal tabs under the frame are buttons here */
.mvb-modes .mj-tab { border: 0; cursor: pointer; color: var(--wgf-gold-primary, #ffd100); }
.mvb-modes .mj-tab.is-active { color: var(--wgf-text, #f4ecd8); }

.mvb-legend { margin: 10px 2px 0; color: var(--wgf-text, #f4ecd8); font-size: 13px; }
.mvb-legend--dim { margin-top: 4px; opacity: .6; font-size: 12px; }
.mvb * { scrollbar-width: thin; scrollbar-color: #6e5a2a #0a0b0a; }

@media (max-width: 1280px) {
  .mvb-grid { grid-template-columns: 280px minmax(0, 1fr); }
  .mvb-controls { grid-column: 1 / -1; height: auto; flex-direction: row; flex-wrap: wrap; }
  .mvb-panel { flex: 1 1 240px; }
}
@media (max-width: 860px) {
  .mvb-grid { grid-template-columns: minmax(0, 1fr); }
  .mvb-stagebox { order: -1; }
  .mvb-stagebox .mj-scene, .mvb-stagebox .wgf-model3d-box { min-height: 340px; }
  .mvb-browser { height: 480px; }
}
