:root{font-family:system-ui,sans-serif;color:#182430;background:#edf2f7;color-scheme:light}*{box-sizing:border-box}body{margin:0}main{max-width:780px;margin:auto;padding:24px}header{display:flex;justify-content:space-between;align-items:center}.brand{font-size:28px;font-weight:800;letter-spacing:5px}.badge{background:#fff0cb;color:#654a04;border-radius:18px;padding:6px 14px}h1{font-size:28px}h2{font-size:20px;margin-top:0}section{background:white;border:1px solid #d0d9e2;border-radius:16px;padding:20px;margin:16px 0}label{display:block;margin:12px 0}input,select{display:block;width:100%;padding:12px;border:1px solid #8395a6;border-radius:8px;font:inherit;margin-top:6px}button{font:inherit;font-weight:650;border:0;border-radius:24px;padding:12px 20px;background:#145bd1;color:white;cursor:pointer;margin:6px 8px 6px 0;min-height:46px}button.secondary{background:#dce6f0;color:#182430}button:disabled{opacity:.55;cursor:wait}:focus-visible{outline:3px solid #1b71e8;outline-offset:3px}.hint{font-size:14px;color:#526272}#message{min-height:30px;font-weight:600}p{line-height:1.5}[hidden]{display:none!important}

.lab-photo{display:block;max-width:100%;height:auto;margin:1rem 0}header a{margin-left:auto}#photo-list button{display:block;margin:.5rem 0}

#native-status{padding:12px 16px;border-radius:12px;background:#edf2f7;font-weight:650}#native-status[data-state="connected"]{background:#e4f5e9;color:#176134}#native-status[data-state="network_offline"],#native-status[data-state="connection_lost"],#native-status[data-state="connection_delayed"],#native-status[data-state="retry_required"]{background:#fff0cb;color:#654a04}#native-status[data-state="failed"]{background:#fde9e7;color:#912c20}

/* Operational Pilot only; the lab administrator and portal keep their layout. */
.pilot-compact main{max-width:1000px;padding:12px 18px}
.pilot-compact header{gap:12px;min-height:48px;border-bottom:1px solid #cbd5df;padding-bottom:8px}
.pilot-compact .brand{font-size:22px;letter-spacing:3px}
.pilot-compact #organization{font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.pilot-compact #header-status{font-size:14px;white-space:nowrap}
.pilot-compact section{padding:12px 16px;margin:10px 0;border-radius:12px}
.pilot-compact h1{font-size:22px}.pilot-compact h2{font-size:17px;margin:0}
.pilot-compact p{margin:6px 0;line-height:1.3;font-size:14px}
.pilot-compact p:empty{display:none}
.pilot-compact button{min-height:46px;min-width:46px;margin:0;border-radius:8px;padding:10px 16px}
.pilot-compact input,.pilot-compact select{min-height:46px;margin:0;padding:10px;font-size:16px}
.pilot-compact label{margin:8px 0}
.pilot-compact .section-heading{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.pilot-compact .section-heading h2{flex:1}
.pilot-compact .device-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0}
.pilot-compact .device-row span{padding:7px 10px;background:#edf2f7;border-radius:6px;font-size:14px}
.pilot-compact #native-status{margin:0}
.pilot-compact #connect{width:100%;font-size:18px}
.pilot-compact #connect[data-connected="true"]{background:#176134}
.pilot-compact summary{cursor:pointer;min-height:44px;display:flex;align-items:center;color:#526272}
.pilot-compact details p{overflow-wrap:anywhere}
.pilot-compact #message{min-height:0;margin:6px 0}
.pilot-compact #message:empty{display:none}
.pilot-compact dialog{width:min(460px,calc(100% - 32px));max-height:90vh;overflow:auto;border:1px solid #8395a6;border-radius:12px;padding:20px}
.pilot-compact dialog::backdrop{background:#10223888}
.pilot-compact .dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.pilot-compact #create-error{color:#912c20}
.pilot-compact .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:560px){.pilot-compact main{padding:8px}.pilot-compact header{gap:8px;flex-wrap:wrap}.pilot-compact .badge{display:none}.pilot-compact section{padding:10px}.pilot-compact #header-status{font-size:12px}}
