:root {color-scheme:dark;font: 15px system-ui,sans-serif;color:#f7f8ff;background:#20232c}
* {box-sizing:border-box}
body {margin:0}
main {padding:14px}
header,.row,.buttons {display:flex;align-items:center;gap:8px}
header {justify-content:space-between;margin-bottom:12px;padding-bottom:10px;border-bottom:2px solid #9776ed}
h1 {font-size:19px;margin:0;overflow-wrap:anywhere}
small {color:#d9cee9;white-space:nowrap}
.list {display:grid;gap:5px;margin-bottom:12px}
.row {background:#2b303d;border:1px solid #474e60;border-radius:8px;min-height:38px;padding:4px 7px}
button,input {font:inherit}
button {cursor:pointer;color:inherit;background:#383e50;border:1px solid #586179;border-radius:6px;padding:5px 8px}
button:hover:not(:disabled) {background:#494e68}
button:disabled {opacity:.46;cursor:default}
button:focus-visible,input:focus-visible {outline:2px solid #ba9aff;outline-offset:2px}
.toggle {width:100%;text-align:left;border-left:4px solid var(--accent)}
.toggle[aria-pressed="true"] {background:#37324b;border-color:var(--accent)}
.dot {width:12px;height:12px;border-radius:50%;background:var(--accent);flex:none}
.name {flex:1;min-width:0;overflow-wrap:anywhere}
.grip {cursor:grab;padding:3px}
.primary {background:#3d315b;border-color:#9776ed}
#status {color:#ffd587;margin:8px 0 0}
label {display:grid;gap:5px;margin-bottom:9px}
input[type="text"] {width:100%;background:#252933;border:1px solid #586179;border-radius:5px;padding:6px;color:inherit}
dialog {width:min(320px,calc(100% - 28px));border:1px solid #9776ed;border-radius:9px;background:#252932;color:inherit}
dialog::backdrop {background:#101219bb}
