/* 2026-10-08 (#992/#993): egységes, Tudástár-méretű nagy ablakok asztali gépen (121-ablak-meret.js) */
html.mx-tm-desk .mx-tm-ov{top:var(--mx-hd-bottom,0px)!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;
  align-items:flex-start!important;justify-content:center!important;padding:0!important;background:rgba(0,0,0,.28)!important}
html.mx-tm-desk .mx-tm-box{width:100vw!important;max-width:100vw!important;height:calc(100% - .4rem)!important;max-height:none!important;
  margin:0!important;transform:none!important;border-radius:0;overflow:auto}
/* a belső görgető rész töltse ki a fix magasságot */
html.mx-tm-desk .mx-tm-box.mini-box,html.mx-tm-desk .mx-tm-box.mx-px-box,html.mx-tm-desk .mx-tm-box.mx-cm-box{display:flex!important;flex-direction:column!important;overflow:hidden}
html.mx-tm-desk .mx-tm-box > .mini-body,html.mx-tm-desk .mx-tm-box > .mx-px-scroll,html.mx-tm-desk .mx-tm-box > .mx-cm-body{flex:1 1 auto!important;max-height:none!important;min-height:0;overflow:auto!important}
/* a szoba képe: a magasság szabja meg a szélességet; a kockák helye a kép szélességéhez (nem a szülőéhez) igazodik */
html.mx-tm-desk .mx-tm-box .mx-room{--rw:min(100%,calc((100vh - var(--mx-hd-bottom,0px) - 230px) * 16 / 9));max-width:var(--rw)!important;padding-top:calc(var(--rw) * .30)!important}
html.mx-tm-desk .mx-tm-box .mx-room.mx-room-alkimia,html.mx-tm-desk .mx-tm-box .mx-room.mx-room-mereg{padding-top:calc(var(--rw) * .30)!important}

/* Műhely: a felső menüsáv alatt kezdődik (nincs ünnep-/státuszsáv takarva), a szoba képe nagyobb */
html.mx-tm-desk #muhelyOverlay.mx-tm-ov{top:var(--mx-hd-bottom,0px)!important}
html.mx-tm-desk #muhelyOverlay .mini-sub{display:none!important}
html.mx-tm-desk #muhelyOverlay .modal-head{padding-top:.25rem!important;padding-bottom:.25rem!important}
html.mx-tm-desk #muhelyOverlay .sheet-section > h3{display:none!important}
html.mx-tm-desk #muhelyOverlay .mx-room{--rw:min(100%,calc((100vh - var(--mx-hd-bottom,0px) - 212px) * 16 / 9));margin-top:4px!important}
html.mx-tm-desk #muhelyOverlay .mx-mh-tabs{padding:4px 2px 6px!important;margin-bottom:2px!important}
html.mx-tm-desk #muhelyOverlay .mx-mh-tabs button{flex-direction:row!important;gap:6px!important;min-width:0!important;padding:3px 12px!important}
html.mx-tm-desk #muhelyOverlay .mx-mh-tabs img{width:26px!important;height:26px!important}
html.mx-tm-desk #muhelyOverlay .wb-sec-title{display:none!important}
html.mx-tm-desk #muhelyOverlay .mx-mh-kesz{display:flex!important;flex-wrap:wrap;align-items:center;gap:4px 10px;padding-top:8px!important;padding-bottom:8px!important}
html.mx-tm-desk #muhelyOverlay .mx-mh-kesz > .mx-mo-wrap,html.mx-tm-desk #muhelyOverlay .mx-mh-kesz > .mx-room,html.mx-tm-desk #muhelyOverlay .mx-mh-kesz > .mx-mh-items{flex:0 0 100%}
html.mx-tm-desk #muhelyOverlay .mx-mh-kesz > .mx-mh-chips{flex:0 0 auto;margin:0!important}
/* Műhely: teljes szélesség, a cím a fülsor elején (nincs külön fejlécsor) */
html.mx-tm-desk #muhelyOverlay .mini-box{width:100vw!important;max-width:100vw!important;border-radius:0!important;position:relative}
html.mx-tm-desk #muhelyOverlay .modal-head{position:absolute!important;top:0;left:0;right:0;z-index:6;height:0;padding:0!important;margin:0!important;border:0!important;overflow:visible;pointer-events:none}
html.mx-tm-desk #muhelyOverlay .modal-head > *{pointer-events:auto}
html.mx-tm-desk #muhelyOverlay .modal-head h2,html.mx-tm-desk #muhelyOverlay .modal-head h3{position:absolute;left:12px;top:9px;margin:0!important;font-size:1.15rem;white-space:nowrap}
html.mx-tm-desk #muhelyOverlay .modal-head img.icon-img{width:30px;height:30px}
html.mx-tm-desk #muhelyOverlay .modal-head button{position:absolute;right:12px;top:8px}
html.mx-tm-desk #muhelyOverlay .mx-mh-tabs{padding-left:150px!important}
/* betöltés közben (még nincs fülsor) a felirat középre kerül, nem a cím/ikon fölé */
html.mx-tm-desk #muhelyOverlay .wb-body:not(:has(.mx-mh-tabs)){display:flex;align-items:center;justify-content:center;min-height:50vh;font-size:1.15rem;opacity:.75}
html.mx-tm-desk #muhelyOverlay .mx-mh-kesz[style*="display: none"]{display:none!important}
#muhelyOverlay .mx-mh-banner[data-r=kovacs]{background-image:url(/static/szakma_szobak/kovacs_asztali.jpg?v=1)}
#muhelyOverlay .mx-mh-banner[data-r=alkimia]{background-image:url(/static/szakma_szobak/alkimia_asztali.jpg?v=1)}
#muhelyOverlay .mx-mh-banner[data-r=ekszeresz]{background-image:url(/static/szakma_szobak/ekszeresz_asztali.jpg?v=1)}
#muhelyOverlay .mx-mh-banner{height:clamp(110px,18vh,190px);margin:6px 22px 8px;border:1px solid #6b4a24;border-radius:12px;background-color:#2a1c10;background-size:cover;background-position:center 38%;box-shadow:inset 0 0 50px rgba(0,0,0,.5),0 6px 18px rgba(0,0,0,.3);display:flex;align-items:flex-end;padding:8px 14px}
#muhelyOverlay .mx-mh-banner span{font-family:inherit;font-size:1.15rem;font-weight:700;color:#ffe7b0;text-shadow:0 2px 6px #000,0 0 12px #000}
@media (max-width:600px){#muhelyOverlay .mx-mh-banner{margin:4px 8px;height:90px}}

/* 2026-10-08: Történet, Idővonal és Mesélői gyorspanel is egységes méretű (asztal: fejléc alatti teljes terület, mobil: teljes képernyő) */
html.mx-tm-desk #storyBox.mx-tm-box,html.mx-tm-desk #storyTimelineBox.mx-tm-box{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding:1rem clamp(1rem,4vw,3.5rem) 1.2rem!important}
html.mx-tm-desk #storyBox.mx-tm-box > *,html.mx-tm-desk #storyTimelineBox.mx-tm-box > *{width:min(100%,1000px);margin-left:auto;margin-right:auto;box-sizing:border-box}
html.mx-tm-desk #storyBox.mx-tm-box > #storyChapters,html.mx-tm-desk #storyTimelineBox.mx-tm-box > #storyTimelineBody{flex:1 1 auto!important;min-height:0;max-height:none!important;overflow:auto!important}
html.mx-tm-desk #gmQuickPanel:not(.hidden){position:fixed!important;top:var(--mx-hd-bottom,0px)!important;left:0!important;right:0!important;bottom:0!important;width:100vw!important;max-width:100vw!important;height:auto!important;max-height:none!important;border-radius:0!important;overflow:auto!important;padding:1rem clamp(1rem,4vw,3.5rem) 1.5rem!important;box-sizing:border-box;display:grid!important;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:12px 16px;align-content:start}
html.mx-tm-desk #gmQuickPanel > .gm-qp-title,html.mx-tm-desk #gmQuickPanel > :not(.gm-qp-group){grid-column:1/-1}
@media (max-width:899px){
  #campaignJournalOverlay:not(.hidden) > #campaignJournalBox,#storyOverlay:not(.hidden) > #storyBox,#storyTimelineOverlay:not(.hidden) > #storyTimelineBox{position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important;margin:0!important;transform:none!important;box-sizing:border-box}
  #gmQuickPanel:not(.hidden){position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important;overflow:auto!important;box-sizing:border-box}
}
.gm-qp-title{display:flex;align-items:center;gap:.5rem}
.gm-qp-title > .gm-qp-x{margin-left:auto}
