/* One compact tracker below the minimap; full explanations live in Journey. */
body #game #questVisibilityControls{position:fixed!important;top:var(--guide-top,190px)!important;right:var(--guide-right,8px)!important;left:auto!important;display:flex!important;justify-content:flex-end;width:210px;gap:4px;z-index:10}
body #game #questVisibilityControls button{font-size:10px;line-height:1.2;min-height:24px;height:24px;padding:2px 7px;min-width:28px;border-radius:4px}
body #game #mobileQuestToggle{display:none!important}
body #game #questTracker{position:fixed!important;top:calc(var(--guide-top,190px) + 28px)!important;left:auto!important;right:var(--guide-right,8px)!important;bottom:auto!important;display:block!important;width:210px!important;max-width:210px!important;max-height:160px!important;overflow:auto!important;padding:5px!important;border:1px solid #45616c;background:#081b27df!important;border-radius:6px;z-index:9;pointer-events:auto}
body #game #questTracker .guide-compact{padding:0}
body #game #questTracker .guide-compact header{display:flex;align-items:center;justify-content:space-between;gap:4px;color:#a8cdd5;font-size:10px;line-height:1.35}
body #game #questTracker .guide-compact header>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #game #questTracker .guide-fold{display:none}
body #game #questTracker .guide-compact button{width:auto;flex:none;min-width:34px;min-height:28px;height:auto;padding:3px 5px;margin:0;font-size:10px;line-height:1.3;white-space:nowrap;border-radius:4px;background:#153442;color:#a4eee4;border:1px solid #3f6977}
body #game #questTracker .guide-compact button:focus-visible{outline:2px solid #f2d18e;outline-offset:1px}
body #game #questTracker .guide-row{display:flex;align-items:center;gap:5px;padding-top:5px;margin-top:4px;border-top:1px solid #55758450}
body #game #questTracker .guide-row>div{flex:1;min-width:0}
body #game #questTracker .guide-row strong{display:block;font-size:11px;line-height:1.4;font-weight:600;color:#e5f1f4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body #game #questTracker .guide-row small{display:block;font-size:10px;line-height:1.4;color:#b4cbd2}
body #game #questTracker .quest-tracker-categories{display:none}
body[data-quest-visibility=hidden] #game #questTracker,body[data-quest-visibility=folded] #game #questTracker{display:none!important}
body:is(.menu-open,.chat-open,.portrait-locked) #game #questTracker,body:is(.menu-open,.chat-open,.portrait-locked) #game #questVisibilityControls{visibility:hidden!important}
.guidance-plan{margin:0 0 14px;padding:12px;border:1px solid #416574;border-radius:8px;background:#0c2431}
.guidance-plan>header p,.guidance-plan>p{color:#b5cdd5;font-size:12px}
.guidance-plan ol{list-style:none;padding:0;margin:8px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.guidance-plan li{display:flex;align-items:flex-start;gap:8px;padding:10px;background:#122e3a;border:1px solid #355567;border-radius:6px}
.guidance-plan li>div{flex:1;min-width:0}.guidance-plan li p{font-size:12px;line-height:1.6}.guidance-plan li small{color:#e7cb91;font-size:11px}.guidance-plan li button{align-self:center;flex:none}.guide-number{font-size:11px;color:#83dfcf;padding-top:3px}
@media(max-width:1200px),(max-height:600px) and (max-width:1200px){body #game #questTracker,body #game #questVisibilityControls{width:180px!important;max-width:180px!important}body #game #questTracker{max-height:145px!important}.guidance-plan ol{grid-template-columns:1fr}}
@media(orientation:landscape) and (max-height:600px) and (max-width:1200px){body #game #questTracker{max-height:112px!important;width:200px!important;max-width:200px!important}body #game #questVisibilityControls{width:200px!important}body #game #questTracker .guide-row{padding-top:3px;margin-top:2px}}

/* Keep short labels without shrinking the area a thumb can actually touch. */
@media(max-width:900px),(pointer:coarse) and (max-width:1200px),(max-height:600px) and (max-width:1200px){
 body #game #questVisibilityControls{height:44px;gap:4px}
 body #game #questVisibilityControls button{min-height:44px;height:44px;min-width:44px}
 body #game #questTracker{top:calc(var(--guide-top) + 48px)!important;max-height:180px!important}
 body #game #questTracker .guide-compact button{min-width:44px;min-height:44px;height:44px}
 .guidance-plan li{flex-wrap:wrap}.guidance-plan li button{min-height:44px;min-width:44px}
}
@media(orientation:landscape) and (max-height:350px){
 body #game #questTracker,body #game #questVisibilityControls{right:calc(var(--guide-right) + 170px)!important}
 body.left-handed #game #questTracker,body.left-handed #game #questVisibilityControls{right:var(--guide-right)!important}
}

@media(max-width:1200px),(max-height:600px) and (max-width:1200px){body.mini-expanded #game #questTracker,body.mini-expanded #game #questVisibilityControls{visibility:hidden!important}}
@media(min-width:1201px){body #game #questTracker{max-height:var(--guide-max-height,160px)!important}}

/* Restore the original quest list in every HUD size; never hide the objective. */
body #game #questTracker .guide-compact{display:block}
body #game #questTracker .guide-compact header{display:flex}
body #game #questTracker .guide-compact header>span{flex:1}
body #game #questTracker .guide-row{display:flex}
body #game #questTracker .guide-row>div{display:block}
body #game #questTracker .guide-row strong{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
body #game #questTracker .guide-compact .side-head{display:none!important}
body #game #questTracker .guide-compact .side-track{display:block!important}
body #game #questTracker .side-track>button{white-space:nowrap!important;font-size:10px!important;text-align:left}
@media(max-width:1200px),(max-height:600px) and (max-width:1200px){
 body #game #questTracker,body #game #questVisibilityControls{width:220px!important;max-width:calc(100vw - 16px)!important}
 body #game #questTracker{max-height:190px!important;overflow:auto!important}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1200px){
 body #game #questTracker{max-height:130px!important}
}

/* Original compact proportions for the quest card and its local controls. */
@media(max-width:1200px),(max-height:600px) and (max-width:1200px){
 body #game #questVisibilityControls{height:28px!important}
 body #game #questVisibilityControls button{height:28px!important;min-height:28px!important;min-width:30px!important}
 body #game #questTracker{top:calc(var(--guide-top) + 58px)!important;max-height:180px!important}
 body #game #questTracker .guide-compact button{height:32px!important;min-height:32px!important;padding:3px 5px!important;white-space:nowrap!important}
 body #game #questTracker .guide-compact header button{height:28px!important;min-height:28px!important}
}
@media(orientation:landscape) and (max-height:600px) and (max-width:1200px){
 body #game aside#questTracker{top:calc(var(--guide-top) - 50px)!important;right:calc(var(--guide-right) + 150px)!important;max-height:166px!important}
 body #game div#questVisibilityControls{top:calc(var(--guide-top) - 82px)!important;right:calc(var(--guide-right) + 150px)!important}
}

