#streamdeck-panel .streamdeck-copy-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0 18px}
#streamdeck-panel .streamdeck-copy-row input{flex:1;min-width:180px;margin:0}
#streamdeck-panel .streamdeck-copy-row .button{flex:none}
#streamdeck-panel .streamdeck-connection{margin-top:24px}
#streamdeck-panel .streamdeck-state{display:grid;gap:5px}
#streamdeck-panel .streamdeck-key{padding:16px;margin:18px 0;border:1px solid var(--line,#cad3df);border-radius:8px}
#streamdeck-panel .streamdeck-key .note{margin-bottom:0}
#streamdeck-panel .streamdeck-steps{padding-left:24px;line-height:1.7}
#streamdeck-panel .streamdeck-steps li{padding:5px 0}
#streamdeck-panel .streamdeck-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:14px}
#streamdeck-panel .streamdeck-list-heading h3{margin:0}
#streamdeck-panel .streamdeck-devices{display:grid;gap:12px;margin-bottom:20px}
#streamdeck-panel .streamdeck-device{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;min-width:0;border:1px solid var(--line,#cad3df);border-radius:9px;padding:15px}
#streamdeck-panel .streamdeck-device-info{display:grid;gap:3px;min-width:0;flex:1 1 180px;overflow-wrap:anywhere}
#streamdeck-panel .streamdeck-device-actions{margin:0}
#streamdeck-panel .streamdeck-rename-form{flex:1 0 100%;min-width:0;padding-top:14px;border-top:1px solid var(--line,#cad3df)}
#streamdeck-panel .streamdeck-rename-form label{margin:0}
#streamdeck-panel .streamdeck-rename-form input{margin-top:7px}
#streamdeck-panel .streamdeck-add-row{display:flex;align-items:stretch;gap:10px;margin-bottom:10px}
#streamdeck-panel .streamdeck-add-row input{flex:1;min-width:0}
#streamdeck-panel .streamdeck-add-row button{flex:none}
#streamdeck-panel .streamdeck-empty{margin:0;padding:14px 0}
#streamdeck-panel .streamdeck-key{background:var(--theme-subtle,#f5f8fc)}
#streamdeck-panel .streamdeck-key>button{margin-top:12px}
#streamdeck-panel .streamdeck-device button{max-width:100%;white-space:normal}
@media(max-width:520px){#streamdeck-panel .streamdeck-copy-row input{flex-basis:100%;width:100%}}
@media(max-width:650px){#streamdeck-panel .streamdeck-device{padding:14px;align-items:flex-start}#streamdeck-panel .streamdeck-device-info{flex-basis:100%}#streamdeck-panel .streamdeck-add-row{flex-direction:column}#streamdeck-panel .streamdeck-device-actions{gap:8px}#streamdeck-panel .streamdeck-key{padding:14px}}
