/* Editor único do aparelho: cabeçalho/rodapé visíveis e conteúdo rolável. */
dialog.device-editor{padding:0;width:min(720px,calc(100% - 24px));max-height:94vh;border-radius:10px;overflow:hidden;color-scheme:dark}
dialog.device-editor[open]{display:flex;flex-direction:column}
.device-editor .modalhead{padding:18px 20px;margin:0;border-bottom:1px solid var(--line);flex-shrink:0}
.device-heading{display:flex;align-items:center;gap:12px;min-width:0}
.device-heading>.icon{width:34px;height:34px;padding:7px;color:var(--lime);background:#263316;border:1px solid #536b2c;border-radius:6px}
.device-heading h2{font-size:19px;overflow-wrap:anywhere}
.device-mac{display:block;margin-top:2px;color:var(--muted);font:12px/1.4 ui-monospace,monospace;letter-spacing:.05em}
.device-modal-body{min-height:0;overflow-y:auto;padding:20px;scrollbar-width:thin;scrollbar-color:#35506966 transparent}
.device-modal-body::-webkit-scrollbar{width:5px}
.device-modal-body::-webkit-scrollbar-thumb{background:#35506966;border-radius:8px}
.device-editor .field{margin-bottom:15px}
.device-editor label{font-size:12px;margin-bottom:5px;color:var(--muted)}
.device-editor input,.device-editor select{font-size:13px;min-height:38px;padding:8px 10px;border-radius:6px}
.device-editor input[type=checkbox]{min-height:19px}
.device-editor .formgrid{gap:0 14px}
.device-editor [hidden]{display:none!important}
.device-extra{margin-bottom:18px;color:var(--muted);font-size:12px}
.device-extra>summary{cursor:pointer;margin-bottom:12px}
.device-extra .detailrow{font-size:12px;padding:9px 0}
.device-extra .actions{margin-top:12px}
.device-playlists h3{font-size:12px;color:var(--muted);font-weight:600;margin:4px 0 14px}
.device-playlists>h3:before{content:'';display:inline-block;width:12px;height:2px;background:var(--lime);vertical-align:middle;margin-right:8px}
.device-playlist-card{background:#101c27;border:1px solid var(--line);border-radius:6px;padding:12px 14px;margin-bottom:10px}
.playlist-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}
.playlist-card-heading .badge{font-size:9px;padding:3px 7px}
.playlist-card-address{display:flex;align-items:center;gap:8px;margin-top:9px;font:12px/1.5 ui-monospace,monospace;color:var(--muted)}
.playlist-card-address span{overflow-wrap:anywhere;min-width:0}
.playlist-card-address .button{padding:4px 7px;font:10px/1.5 Sora,system-ui,sans-serif;min-height:27px;flex-shrink:0}
.playlist-menu{position:relative}
.playlist-menu>summary{list-style:none;cursor:pointer;font-size:22px;line-height:25px;width:25px;text-align:center;color:var(--muted)}
.playlist-menu>summary::-webkit-details-marker{display:none}
.playlist-menu-actions{position:absolute;right:0;top:30px;z-index:2;display:grid;gap:6px;padding:8px;background:var(--surface);border:1px solid var(--line);border-radius:6px;box-shadow:0 6px 16px #0006}
#device-list-actions{margin:13px 0}
.device-playlist-form{background:#09131d;border:1px solid var(--line);border-radius:6px;padding:16px;margin-top:14px}
.device-editor .button{border-radius:6px;font-size:12px;min-height:36px;padding:8px 12px}
.device-editor .modalfoot{margin:0;border-top:1px solid var(--line);padding:15px 20px;background:#09131d;flex-shrink:0}
.device-editor .notice{margin-top:14px;margin-bottom:0}
@media(max-width:600px){.device-editor .formgrid{grid-template-columns:1fr}.device-modal-body{padding:16px}.playlist-card-address{align-items:flex-start;flex-wrap:wrap}.device-editor .modalhead,.device-editor .modalfoot{padding:14px 16px}}
