:root { color-scheme: light dark; --fg:#1d232b; --bg:#f6f7f9; --card:#fff; --line:#d5dae1; --accent:#2457c5; --warn:#b3261e; --muted:#5f6b7a; }
@media (prefers-color-scheme: dark) { :root { --fg:#e4e7eb; --bg:#14171c; --card:#1d2128; --line:#333a45; --accent:#7aa2f7; --warn:#f2b8b5; --muted:#9aa4b2; } }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.45 system-ui, sans-serif; color:var(--fg); background:var(--bg); }
header { display:flex; gap:16px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--line); background:var(--card); }
header .brand { display:flex; align-items:center; flex:1; min-width:0; }
/* the consoles' logo box: the mark 25px high, the name after a 1px rule (mdm/app/scss/layout/_navbar.scss) */
header .logo { height:25px; width:auto; display:block; }
header h1 { font-size:18px; margin:0 0 0 14px; padding-left:14px; border-left:1px solid var(--line); }
/* the wordmark is dark navy: on the dark scheme it sits on a light tile, its colours unchanged */
@media (prefers-color-scheme: dark) { header .logo { background:#fff; border-radius:4px; padding:3px 6px; height:31px; } }
main { max-width:1100px; margin:0 auto; padding:16px; }
table { width:100%; border-collapse:collapse; background:var(--card); }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); }
tbody tr { cursor:pointer; } tbody tr:hover { background:color-mix(in srgb, var(--accent) 8%, transparent); }
.bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:12px 0; }
fieldset { border:1px solid var(--line); background:var(--card); display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px 16px; padding:12px; margin:0 0 12px; }
label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--muted); }
input, select { font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:4px; background:var(--bg); color:var(--fg); }
button { font:inherit; padding:6px 14px; border:1px solid var(--accent); border-radius:4px; background:var(--accent); color:#fff; cursor:pointer; }
button.back, button.secondary { background:transparent; color:var(--accent); }
button.danger { background:var(--warn); border-color:var(--warn); color:#fff; }
.note { color:var(--muted); font-size:13px; }
dl { display:grid; grid-template-columns:max-content 1fr; gap:4px 16px; } dt { color:var(--muted); }
#message { min-height:1.5em; } #message.error { color:var(--warn); }
.status { padding:2px 8px; border-radius:10px; border:1px solid var(--line); font-size:12px; }
/* the create form's meter endpoint: the dedicated-ip fields, shown by the mode, as wide as the fieldset */
[hidden] { display:none !important; }
.group { grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px 16px; }
/* a note inside a form's fieldset is a sentence about the whole box, not one of its fields: across the row */
fieldset > .note { grid-column:1 / -1; margin:0; }
/* the held meters' table: rows are not links, and a row's actions sit together */
tbody.plain tr { cursor:default; }
/* changes waiting for a sync */
.banner { padding:8px 12px; border:1px solid var(--accent); border-radius:4px; background:color-mix(in srgb, var(--accent) 8%, transparent); }
.pending { color:var(--accent); font-size:13px; }
.bar.tight { margin:0; gap:6px; flex-wrap:nowrap; }
/* the sign-in form */
form.card { background:var(--card); border:1px solid var(--line); border-radius:4px; padding:16px; max-width:360px; display:grid; gap:12px; }
form.card h2 { margin:0; font-size:16px; }
