:root {
  --bg: #f6f7f9; --surface: #fff; --text: #16191d; --muted: #66707c; --border: #dde1e6;
  --accent: #2557d6; --accent-text: #fff; --danger: #c2321f; --ok: #1d7a46; --warn: #a15c00;
  --notice-bg: #e8f0ff; --alert-bg: #fdecea; --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418; --surface: #1a1e24; --text: #e6e9ed; --muted: #9aa3ad; --border: #2c323a;
    --accent: #6f95ff; --accent-text: #0b0e12; --danger: #ff7a66; --ok: #4cc286; --warn: #f0a640;
    --notice-bg: #1b2a48; --alert-bg: #3a1f1c;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 17px; margin: 32px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.notice, .alert { padding: 10px 14px; border-radius: var(--radius); margin: 16px 0; }
.notice { background: var(--notice-bg); }
.alert { background: var(--alert-bg); color: var(--danger); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.card .muted { margin: -8px 0 4px; }

label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0; }
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
button { font: inherit; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text);
  border-radius: 8px; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
button.ghost { background: transparent; color: var(--text); border-color: var(--border); }
button.danger { background: transparent; color: var(--danger); border-color: var(--border); }
button:hover { filter: brightness(1.08); }

.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.top h1 span { color: var(--muted); font-weight: 400; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 8px 16px 48px; }

.table { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.state { font-weight: 600; }
.state.running { color: var(--ok); }
.state.exited, .state.dead { color: var(--danger); }
.state.restarting, .state.paused, .state.created { color: var(--warn); }

form.inline { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.suffix { display: flex; align-items: center; gap: 6px; }
.suffix em { font-style: normal; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  form.inline { grid-template-columns: 1fr; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}
