.device-state-panel{margin-top:1rem;border:1px solid var(--line);border-radius:14px;padding:1rem;background:var(--surface)}
.device-state-panel>summary{cursor:pointer;font-weight:700;min-height:36px;line-height:1.5}
.device-state-list{display:grid;gap:.75rem;margin:.75rem 0}
.device-state-property{border:1px solid var(--line);border-radius:10px;padding:.85rem;min-width:0}
.device-state-property-heading{display:flex;align-items:baseline;justify-content:space-between;gap:.5rem;flex-wrap:wrap}
.device-state-property-heading code{font-size:.75rem;overflow-wrap:anywhere}
.device-state-values{display:grid;grid-template-columns:minmax(110px,1fr) minmax(70px,1fr);gap:.3rem .75rem;margin:.75rem 0;font-size:.9rem}
.device-state-values dt{color:var(--muted)}
.device-state-values dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.device-state-controls{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.device-state-option{display:flex;align-items:center;gap:.6rem;min-height:44px;flex:1;cursor:pointer}
.device-state-option input[type=checkbox]{width:20px;height:20px;margin:0;flex:none}
.device-state-controls button{min-height:40px}
.device-state-error{color:var(--danger,#e88787);font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.device-state-panel[aria-busy=true]{cursor:progress}
@media(max-width:600px){.device-state-panel{padding:.75rem}.device-state-controls button{min-height:44px}.device-state-option{font-size:16px;flex-basis:100%}.device-state-values{grid-template-columns:minmax(90px,1fr) minmax(70px,1fr)}}
