#lt-lab #lt-room-entry,#lt-lab #lt-room-lobby { display:grid; justify-items:center; gap:9px; }
#lt-lab .lt-join-row { display:flex; align-items:center; justify-content:center; gap:6px; }
#lt-lab #lt-room-code { color:white; background:#112425; border:1px solid #839c94; border-radius:10px; text-align:center; width:8.3em; font:600 16px system-ui; padding:10px 5px; text-transform:uppercase; }
#lt-lab #lt-room-state { padding:2px 7px; min-height:27px; font-size:12px; }
#lt-lab .lt-room-strip { position:absolute; left:max(12px,env(safe-area-inset-left)); top:calc(max(12px,env(safe-area-inset-top)) + 45px); display:flex; align-items:center; gap:5px; }
#lt-lab #lt-share-state { font:12px system-ui; background:#0a1618cf; }
@media (max-height:480px) {
 #lt-lab .lt-intro {gap:4px;padding:5px;}
 #lt-lab .lt-intro .lt-mark {display:none;}
 #lt-lab #lt-room-entry,#lt-lab #lt-room-lobby {gap:4px;}
}

@media (orientation:portrait) and (max-height:670px) { #lt-lab .lt-diag {top:calc(max(12px,env(safe-area-inset-top)) + 78px);} }

/* Keep the notification and camera diagnostics in normal flow above the trigger. */
#lt-lab .lt-feedback {
  position:absolute; left:max(10px,env(safe-area-inset-left));
  bottom:calc(max(16px,env(safe-area-inset-bottom)) + 92px);
  width:min(285px,calc(100% - 20px)); display:grid; gap:5px;
  justify-items:start; pointer-events:none;
}
#lt-lab .lt-feedback > .lt-result, #lt-lab .lt-feedback > .lt-diag {
  position:static; transform:none; max-width:100%;
}
#lt-lab .lt-feedback > .lt-result { white-space:normal; text-align:left; line-height:1.2; }
#lt-lab .lt-feedback > .lt-diag { width:100%; pointer-events:auto; }
@media (orientation:landscape) {
  #lt-lab .lt-feedback { display:contents; }
  #lt-lab .lt-feedback > .lt-result { position:absolute; left:38%; right:auto; top:calc(max(12px,env(safe-area-inset-top)) + 45px); bottom:auto; max-width:59%; }
  #lt-lab .lt-feedback > .lt-diag { position:absolute; left:max(10px,env(safe-area-inset-left)); top:auto; bottom:max(8px,env(safe-area-inset-bottom)); width:min(34vw,255px); }
}
