#beta-navigation [data-view=trade][data-trade-state=market]{color:#b7def3;background:#213e51;border:1px solid #547e98;box-shadow:inset 0 -2px #74a9c8}
#beta-navigation [data-view=trade][data-trade-state=auction]{color:#fff0a0;background:#574b21;border:1px solid #e0bc43;box-shadow:inset 0 -2px #f5d65d,0 0 9px #e3ba332b}
#beta-nav-controls{grid-column:1;grid-row:1/3;min-width:0;width:310px;display:flex;flex-direction:column;gap:5px}
.beta-client #beta-nav-controls #mobile-dir-bar{margin:0;display:flex;gap:4px;width:100%}
.beta-client #beta-nav-controls .dir-btn{flex:1;min-width:0;min-height:40px;padding:5px}
#beta-travel-nav{display:flex;gap:5px;min-width:0}
#beta-travel-nav button{flex:1;min-width:0;min-height:40px;padding:5px 8px;font:inherit;font-size:12px;line-height:1.2;border-radius:7px;border:1px solid #5b7b8c;background:linear-gradient(#294858,#203747);color:#dbebef;cursor:pointer}
#beta-travel-nav button:disabled{opacity:.4;cursor:default}
#beta-travel-nav button:focus-visible{outline:2px solid #efd88a;outline-offset:2px}
#beta-travel-nav #bm-transition,#beta-travel-nav #bs-open{border-color:#b39a60;background:linear-gradient(#786132,#5c4929);color:#fff0c5}
#beta-travel-nav button[hidden],#beta-travel-nav .flight-duplicate{display:none!important}
@media(max-width:1049px){#beta-nav-controls{width:100%}#beta-travel-nav button{min-height:36px;font-size:12px}#beta-travel-nav{gap:4px}}
@media(max-height:560px){#beta-nav-controls{gap:3px}#beta-travel-nav button{min-height:30px}.beta-client #beta-nav-controls .dir-btn{min-height:32px}}

/* Notices may cover the heading and main panel, never either log. */
#beta-chat-bubbles{top:6px;right:6px;width:min(380px,calc(100% - 12px));overflow:hidden;box-sizing:border-box;padding-bottom:2px}
#beta-chat-bubbles .beta-chat-bubble{flex-shrink:0}
body[data-beta-view=chat] #beta-chat-bubbles,body[data-beta-view=output] #beta-chat-bubbles{display:none}

#beta-travel-nav #beta-enter-portal{border-color:#9f8ac0;background:linear-gradient(#51476b,#393450);color:#eee3ff}
#beta-portals{box-sizing:border-box;width:min(440px,calc(100% - 24px));max-height:70%;overflow:auto;padding:18px;border:1px solid #a895be;border-radius:14px;background:#172e3a;color:#f0e7cf}
#beta-portals::backdrop{background:#07121bb3}#beta-portals>button{float:right}#beta-portals h2{font-size:20px;margin:10px 0 22px}#beta-portals>div{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #46606b}#beta-portals button{font:inherit;min-height:44px;padding:8px 16px;border-radius:8px;border:1px solid #718890;background:#294653;color:#fff0cf}

/* Direction input is handled on press; retain native keyboard activation. */
.beta-client .dir-btn[data-dir],.beta-client .exit-btn[data-dir]{touch-action:manipulation;}
