:root { color-scheme: light dark; --line: #8884; --accent: #0a6cff; --bad: #c62828; --ok: #2e9e4f; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; }
main { max-width: 1000px; margin: 0 auto; padding: 1.5rem 1rem; }
h1 { margin: 0; font-size: 1.5rem; }
h2 { margin-top: 2.5rem; font-size: 1.1rem; }
header { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; }
.narrow { max-width: 380px; margin: 10vh auto 0; }
form { display: grid; gap: .9rem; margin-top: 1rem; }
label { display: grid; gap: .25rem; }
label.check { display: flex; gap: .5rem; align-items: center; }
input:not([type="checkbox"]) { width: 100%; padding: .5rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; }
button, a.connect { padding: .45rem .9rem; font: inherit; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; white-space: nowrap; }
button.plain { background: transparent; color: inherit; border: 1px solid var(--line); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
td.actions { display: flex; gap: .5rem; justify-content: flex-end; }
td.id { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dot { display: inline-block; width: .7rem; height: .7rem; margin-right: .4rem; border-radius: 50%; background: #888; }
.dot.on { background: var(--ok); }
.muted { min-height: 1.5em; opacity: .75; font-size: .9rem; }
.error { min-height: 1.5em; margin: .75rem 0 0; color: var(--bad); }
#status.warn { color: var(--bad); opacity: 1; }
tr.is-hidden { opacity: .55; }
#devices { padding: 0; list-style: none; }
#devices li { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
