/* WEMO-Farben (brand/farben.md), dunkel. */
:root {
  --bg: #0a1020; --card: #111a2c; --line: #1e2a42; --text: #e8edf7; --muted: #8d99b0;
  --primary: #3e6bd0; --primary-hover: #4a78de; --link: #4299e9; --ok: #35d28e;
  --warn: #f0b429; --danger: #ef5350;
  --gradient: linear-gradient(90deg, #3e6bd0, #3dbfc5 60%, #35d28e);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
main { max-width: 34rem; margin: 0 auto; padding: 24px 16px 48px; }
header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 16px; position: relative; }
header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gradient); opacity: .8; }
.logo { height: 28px; width: auto; }
.sub { color: var(--muted); font-size: 14px; letter-spacing: .04em; }
h1 { font-size: 20px; font-weight: 600; margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.big { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 600; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; }
.dot[data-state="running"] { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.dot[data-state="pending"], .dot[data-state="stopping"] { background: var(--warn); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
button { font: inherit; border-radius: 10px; padding: 12px 18px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; min-height: 46px; }
button.primary { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
button.primary:not(:disabled):hover { background: var(--primary-hover); }
button.danger { border-color: var(--danger); color: var(--danger); }
button:disabled { opacity: .35; cursor: default; }
.actions button { flex: 1 1 10rem; }
button.link { padding: 0; min-height: 0; border: 0; color: var(--muted); text-decoration: underline; }
form { display: grid; gap: 10px; margin-top: 12px; }
label { font-size: 14px; color: var(--muted); }
input { font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); width: 100%; }
input:focus, button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.msg:empty { display: none; }
.msg { margin: 12px 0 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .muted { text-align: right; overflow-wrap: anywhere; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
footer { text-align: center; margin-top: 20px; }
