:root { color-scheme: dark; font: 16px/1.5 system-ui, sans-serif; background: #141613; color: #eef0e6; }
* { box-sizing: border-box; }
body { margin: 0; }
.top { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.5rem, 2.5vw, 1rem); padding: .8rem max(1rem, calc((100% - 72rem) / 2)); border-bottom: 1px solid #333931; }
.top strong { letter-spacing: .14em; color: #d7f986; }
.top span { flex: 1; }
main { margin: 0 auto; max-width: 74rem; padding: 2rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
h1, h2 { margin: 0 0 .8rem; letter-spacing: -.035em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); }
h2 { font-size: 1.4rem; }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; }
.card { border: 1px solid #333931; background: #1c201a; border-radius: .7rem; padding: 1rem; }
.card span { color: #bdc2b5; display: block; }
.card strong { display: block; margin-top: .4rem; overflow-wrap: anywhere; }
.dialog-actions { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }
.filters, .section-links, .page-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.filters label { display: grid; gap: .25rem; }
.section-links a { color: #d7f986; }
.page-actions { margin-top: .75rem; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: .75rem; border-bottom: 1px solid #333931; vertical-align: middle; }
th { font-size: .82rem; color: #bdc2b5; white-space: nowrap; }
td { overflow-wrap: anywhere; }
td small { display: block; color: #bdc2b5; }
button, input, select, textarea { color: inherit; font: inherit; background: #22261f; border: 1px solid #51594d; border-radius: .45rem; padding: .35rem .65rem; }
textarea { resize: vertical; }
button { cursor: pointer; white-space: nowrap; }
button:disabled { opacity: .55; cursor: default; }
:is(button, input, select, textarea):focus-visible { outline: 2px solid #d7f986; outline-offset: 2px; }
button.primary { background: #d7f986; color: #171b10; border-color: #d7f986; font-weight: 650; }
dialog { width: min(28rem, calc(100% - 2rem)); border: 1px solid #51594d; border-radius: .7rem; padding: 1.25rem; background: #1c201a; color: inherit; }
dialog::backdrop { background: #090b09bd; }
#devices-dialog { width: min(44rem, calc(100% - 2rem)); }
#devices-dialog code { overflow-wrap: anywhere; }
form { display: grid; gap: .8rem; }
form h2, form p { margin: 0; }
form label { display: grid; gap: .25rem; }
#confirm-field:not([hidden]) { display: flex; align-items: start; }
[hidden] { display: none; }
#action-error { color: #ffb798; }
.login { max-width: 28rem; }
.login input { width: 100%; }
#login-error { color: #ffb798; }
#login-error:empty { display: none; }
