#room-lobby{margin:22px 0 10px;border:1px solid #c7d6d9;border-radius:16px;background:#eef5f3;color:#183438;padding:16px}#room-lobby summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:750;font-size:18px}#room-lobby summary span{font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:#d5e8e0;padding:6px 9px;border-radius:20px}#room-lobby p{font-size:13px;line-height:1.5;margin:12px 0}.room-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.room-fields label{font-size:12px;font-weight:700;display:grid;gap:5px}.room-fields input,#room-invite{box-sizing:border-box;width:100%;min-width:0;background:#fff;border:1px solid #a5bbbd;border-radius:8px;padding:12px;font:inherit;color:#183438}.room-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}.room-actions button{flex:1;font-size:13px;min-height:44px;padding:10px 14px!important}.room-actions button:disabled{opacity:.45;cursor:wait}#room-status{font-size:12px;min-height:18px;margin:8px 0 0}
#driver-labels{position:fixed;inset:0;pointer-events:none;z-index:4;overflow:hidden}.driver-label{position:absolute;left:0;top:0;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#142c34eb;border:1px solid #8fdbcd;border-radius:7px;color:#fff;padding:5px 10px;font:600 12px/1.3 system-ui;box-shadow:0 3px 12px #0004}.driver-label.own{border-color:#d8aa72;background:#182f35cc}.driver-label::after{content:'';position:absolute;left:50%;bottom:-4px;border:4px solid transparent;border-top-color:#142c34}
#room-hud{position:fixed;right:18px;top:150px;z-index:35;width:260px;max-width:calc(100vw - 32px);color:#edf6f5;font:14px/1.4 system-ui}#room-hud[hidden],.driver-label[hidden]{display:none}#room-panel{background:#13292fee;border:1px solid #628185;border-radius:13px;box-shadow:0 8px 28px #0003;overflow:hidden}#room-panel summary{padding:12px 15px;cursor:pointer;font-weight:700;min-height:20px}#room-panel .room-content{padding:0 14px 14px}#room-panel p{font-size:12px;color:#b9cecc;margin:7px 0}#room-number{font:700 24px ui-monospace,monospace;letter-spacing:.12em}#room-roster{padding:0;list-style:none;font-size:13px;display:grid;gap:6px}#room-roster li{border-top:1px solid #ffffff17;padding-top:5px}#room-panel label{font-size:11px}#room-invite{font-size:11px;padding:9px;margin-top:5px}#room-panel button{border:1px solid #5e7e81;border-radius:8px;background:#29484d;color:white;cursor:pointer;font-weight:600}#room-copy-status{min-height:16px}#room-reconnect,#room-new-room{width:100%;min-height:44px;margin-top:10px}#room-leave{background:transparent!important}body:has(#room-hud:not([hidden])) #faults{display:none}
@media(max-width:600px){.room-fields{grid-template-columns:1fr}#room-lobby{padding:12px}#room-lobby summary{font-size:16px}#room-hud{right:12px;top:calc(130px + env(safe-area-inset-top));width:230px}#room-panel summary{font-size:12px;padding:10px 12px}#room-panel[open]{max-height:calc(100dvh - 280px);overflow:auto}.driver-label{font-size:11px;padding:4px 8px}}
@media(max-height:500px){#room-hud{top:65px;right:12px;width:235px}#room-panel[open]{max-height:calc(100dvh - 85px);overflow:auto}}

#room-lobby [hidden],#room-invite-hint[hidden]{display:none!important}
.room-invite-mode #sheet>.solo-intro,.room-invite-mode #sheet>.briefing,.room-invite-mode #sheet>.keys,.room-invite-mode #sheet>.touch-instructions,.room-invite-mode #sheet>.dialog-actions>button,.room-invite-mode #sheet>.dialog-note{display:none}
.room-invite-mode #room-lobby{margin-top:18px}.room-invite-mode #room-join{flex-basis:100%}
.driver-label[data-offscreen="true"]{border-style:dashed;background:#163740f5;font-size:11px}
#sheet #room-lobby p{color:#3b5458}.room-invite-mode #room-lobby>p:first-of-type{display:none}
