#device-dialog{width:min(760px,calc(100vw - 32px));max-height:90vh;padding:28px;overflow:auto}
.station-title{font-size:1.25rem;margin:0 45px 24px 0}
.station-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:24px}
.station-tabs button{font:inherit;cursor:pointer;background:transparent;color:var(--muted);border:0;border-bottom:3px solid transparent;padding:12px 14px;font-weight:600}
.station-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:#3975a8}
.station-pane[hidden]{display:none!important}
.station-pane .dialog-actions{flex-wrap:wrap}
.station-pane .dialog-actions .button{flex:1 1 140px}
.station-help{line-height:1.65;color:var(--muted);max-width:60ch;margin:0 0 24px}
.password-settings{border:1px solid var(--line);border-radius:8px;padding:18px;margin-bottom:24px}
.password-settings summary{cursor:pointer;font-weight:650;padding:4px 0}
.password-settings p{line-height:1.6;color:var(--muted);font-size:.9rem}
.password-settings form{display:grid;gap:18px;margin-top:22px}
.password-settings label{display:grid;gap:8px;font-size:.9rem}
.password-settings input{width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:6px;color:var(--text);background:var(--surface-2)}
.password-settings button{justify-self:start}
.station-audit{margin-top:20px;border-top:1px solid var(--line)}
.station-audit p{padding:12px 0;border-bottom:1px solid var(--line);font-size:.85rem;line-height:1.6;overflow-wrap:anywhere}
dialog.live-remote{width:calc(100vw - 24px);max-width:none;height:calc(100vh - 24px);max-height:none;overflow:auto;padding:16px}
.live-remote img{display:block;width:auto;height:auto;max-width:100%;margin:12px auto;background:#141b24}
.live-remote>p{margin:0;font-size:.85rem;line-height:1.4}
.mesh-embedded{width:calc(100vw - 24px);max-width:none;height:calc(100vh - 24px);max-height:none;padding:12px;overflow:hidden}
.mesh-embedded .dialog-actions{margin:0 0 10px;justify-content:flex-end}
.mesh-embedded iframe{width:100%;height:calc(100% - 62px);border:0;background:#151b23}
.live-remote img:not([src]){display:none}
.live-remote>div{display:flex;justify-content:flex-end;gap:12px;padding-top:12px}
@media(max-width:540px){#device-dialog{padding:18px}.station-tabs{gap:0}.station-tabs button{padding:12px 8px;font-size:.85rem}.password-settings{padding:12px}}
