#limc-opening-journey {top:calc(var(--limc-safe-top) + 103px);right:max(8px,env(safe-area-inset-right));width:auto;max-width:calc(100vw - 16px);z-index:var(--limc-hud)}
#limc-opening-journey.limc-guide-interior{top:calc(var(--limc-safe-top) + 134px)}
#limc-opening-journey .limc-opening-toggle {float:none;display:block;margin-left:auto;min-height:44px;padding:5px 10px;background:#132a24f2;font-size:.74rem}
.limc-opening-toggle{max-width:min(44vw,260px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.limc-guidance-card {margin-top:4px;padding:9px;width:min(215px,73vw);max-height:42dvh;overflow:auto;background:#172823f5;border:1px solid #8caa98;border-radius:10px;pointer-events:auto}
.limc-guidance-card p{margin:.35rem 0}
.limc-guidance-card small{display:block;margin-bottom:4px}
.limc-guidance-card button{min-height:44px}
.limc-journey-plan{margin:.45rem 0;padding:.45rem 0;border-block:1px solid #537064}
.limc-journey-plan small{color:#b8e4cb}
.limc-opportunity small{display:block;color:var(--fg2)}
.limc-opportunity-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.limc-opportunity-actions button{min-height:44px}
.limc-guide-dismiss{display:flex;flex-wrap:wrap;gap:2px}
#limc-voice-event:not([hidden]){pointer-events:auto;z-index:var(--limc-notices)}
#limc-voice-event button{min-height:44px}
:is(#home-toolbar,#venue-toolbar,#hud-nav,#limc-opening-journey,.limc-world-actions,.limc-map-controls) button{touch-action:manipulation}
.limc-world-actions #limc-touch-sprint{touch-action:none}
.panel-close{touch-action:manipulation}
.limc-welcome-context{color:#bce9cf}
body:has(#limc-voice-event:not([hidden]),#toast:not([hidden])) #limc-opening-journey{visibility:hidden}
.limc-milo-chat{display:grid;grid-template-rows:minmax(0,1fr) auto;height:min(55dvh,490px);gap:8px}
.limc-milo-log{overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:0 2px 8px}
.limc-milo-reply,.limc-milo-user{padding:10px 12px;border-radius:12px;background:#20342c;color:#f1f5ef;max-width:94%;font-size:.9rem;margin:0}
.limc-milo-user{align-self:flex-end;background:#335a4b;overflow-wrap:anywhere}
.limc-milo-chat .limc-milo-question{margin:0;padding:5px 0;display:block;background:var(--card-bg)}
.limc-milo-question div{display:flex;gap:6px}
.limc-milo-question div input{flex:1;min-width:0;font-size:16px}
.limc-milo-question div button{min-height:44px;flex:none}
.limc-milo-settings summary{min-height:44px;padding:10px 0;cursor:pointer}
.limc-milo-processing:empty{display:none}
.limc-milo-log > *{flex-shrink:0}
[data-milo-food]{padding-top:8px}
[data-milo-food] h4{margin:0 0 4px;color:#fff4d7}
[data-milo-food] button{min-height:44px}
@media(any-pointer:coarse){
 #panel-overlay{bottom:max(var(--limc-dock),var(--limc-keyboard-inset,0px))}
 #panel-overlay .panel:has(.limc-milo-chat){max-height:min(100%,var(--limc-keyboard-height,100dvh))}
 #panel-overlay .limc-milo-chat{height:min(var(--limc-chat-height,55dvh),max(132px,calc(var(--limc-keyboard-height,100dvh) - 118px)))}
}
.limc-map-schematic {aspect-ratio:1.45;max-height:385px;touch-action:none;cursor:grab}
.limc-map-layer{position:absolute;inset:0;transform-origin:center;pointer-events:none}
.limc-map-layer button{pointer-events:auto;transform:translate(-50%,-50%) scale(var(--limc-map-label-scale,1));padding:0 7px;font-size:.72rem}
.limc-map-layer .limc-map-player{transform:translate(-50%,-120%) scale(var(--limc-map-label-scale,1))}
.limc-map-controls{position:absolute;display:flex;gap:3px;right:5px;bottom:5px}
.limc-map-controls button{min-width:44px;min-height:44px}
.limc-map-district{position:absolute;top:5px;left:6px;background:#173329;color:#fff;border-radius:7px;padding:4px 7px;pointer-events:none}
.limc-map-pin[data-category="Transport"]{background:#e4ba56;color:#181915}
.limc-map-pin[data-category="Residential"]{background:#466fbd;color:#fff}
.limc-map-pin[aria-pressed="true"]{background:#a84021;color:#fff}
@media(any-pointer:coarse){
 .limc-world-actions{position:fixed;right:max(8px,env(safe-area-inset-right));bottom:calc(var(--limc-dock) + 8px);z-index:var(--limc-hud);display:grid;justify-items:end;gap:4px;pointer-events:none;max-width:42vw}
 .limc-world-actions :is(#interact-prompt,#npc-talk-prompt,#limc-touch-use,#limc-touch-sprint,#city-cam-btn){
  position:static!important;inset:auto!important;transform:none!important;pointer-events:auto;min-height:44px;max-width:100%;white-space:normal!important;text-align:center;
 }
 .limc-world-actions :is(#interact-prompt,#npc-talk-prompt){padding:8px 10px;line-height:1.15}
 .limc-world-actions #venue-label{position:static;inset:auto;transform:none;pointer-events:none;max-width:100%;padding:4px 8px}
 .limc-world-actions #venue-label span{display:none}
 body[data-limc-ui]:not([data-limc-ui="world"]) .limc-world-actions,
 body[data-rail-trip="active"] .limc-world-actions{display:none}
}
@media(orientation:landscape) and (max-height:460px){
 #limc-opening-journey{top:calc(var(--limc-safe-top) + 56px)}
 #limc-opening-journey.limc-guide-interior{top:calc(var(--limc-safe-top) + 108px)}
 .limc-world-actions{grid-template-columns:repeat(2,minmax(0,1fr));max-width:38vw}
 .limc-world-actions #venue-label{grid-column:1/-1}
 .limc-milo-chat{--limc-chat-height:47dvh;height:47dvh}
 #limc-voice-event{max-height:40dvh}
}
#limc-objective-guide{max-width:min(54vw,360px)}
#limc-objective-guide button[hidden]{display:none}
#limc-objective-guide #limc-objective-use{width:auto;padding:0 10px;font-size:.85rem}
body:has(#limc-voice-event:not([hidden]),#toast:not([hidden])) #limc-objective-guide{visibility:hidden}
.limc-map-tracked{background:#853f24}
@media(any-pointer:coarse){#limc-objective-guide{z-index:var(--limc-hud);left:max(8px,env(safe-area-inset-left));top:calc(var(--limc-safe-top) + 103px);font-size:.73rem}}
@media(any-pointer:coarse) and (orientation:landscape) and (max-height:460px){#limc-objective-guide{top:calc(var(--limc-safe-top) + 56px)}}
@media(any-pointer:coarse){#limc-objective-guide[data-guide-mode="home"]{top:calc(var(--limc-safe-top) + 142px)}}
/* Keep an active outdoor waypoint and the optional Journey control in separate
   horizontal lanes. Neither can cover the other's hit target on narrow phones. */
@media(any-pointer:coarse){
 body:has(#limc-objective-guide:not([hidden]):not([data-guide-mode="home"])) #limc-objective-guide{
  box-sizing:border-box;max-width:calc(50vw - 12px);min-width:0;
 }
 body:has(#limc-objective-guide:not([hidden]):not([data-guide-mode="home"])) #limc-opening-journey{
  max-width:calc(50vw - 12px);
 }
 body:has(#limc-objective-guide:not([hidden]):not([data-guide-mode="home"])) #limc-opening-journey .limc-opening-toggle{
  box-sizing:border-box;max-width:100%;
 }
 body:has(#limc-objective-guide:not([hidden]):not([data-guide-mode="home"])) #limc-opening-journey .limc-guidance-card{
  box-sizing:border-box;max-width:100%;
 }
 #limc-objective-heading{min-width:0;overflow-wrap:anywhere}
 #limc-objective-guide button{flex-shrink:0}
}
