:root {
  --bg: #f5f6f8; --card: #fff; --text: #1d2330; --muted: #6b7385; --line: #e2e5eb;
  --accent: #2557d6; --accent-text: #fff; --ok: #1f8a4c; --warn: #b7791f; --bad: #c53030;
  --ok-bg: #e6f4ec; --warn-bg: #fdf3e1; --bad-bg: #fde8e8; --code: #10141c; --code-text: #d7dce5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151b; --card: #1b1f27; --text: #e3e6ec; --muted: #8f97a8; --line: #2c323d;
    --accent: #5b8cff; --accent-text: #0b1020; --ok: #4cc782; --warn: #e0a84a; --bad: #f07171;
    --ok-bg: #16302262; --warn-bg: #3a2d1462; --bad-bg: #3d1a1a62; --code: #0b0d12; --code-text: #d7dce5;
  }
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
main { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
.top { display: flex; align-items: center; gap: 1.5rem; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); }
.brand span { font-weight: 400; color: var(--muted); margin-left: .3rem; }
.top nav { display: flex; gap: 1rem; flex: 1; flex-wrap: wrap; }
.top nav a { color: var(--text); }
.banner { background: var(--warn-bg); color: var(--warn); padding: .4rem 1rem; font-size: .9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.head h1, .head h2 { margin: 0; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.list th, .list td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
.list tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; }
.right { text-align: right; white-space: nowrap; }
.small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono, code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { white-space: pre-wrap; word-break: break-word; }
.state { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.state.ok { background: var(--ok-bg); color: var(--ok); }
.state.starting { background: var(--warn-bg); color: var(--warn); }
.state.problem { background: var(--bad-bg); color: var(--bad); }
.state.stopped { background: var(--line); color: var(--muted); }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; margin-right: .4rem; background: var(--muted); }
.dot.ok { background: var(--ok); } .dot.problem { background: var(--bad); }
.tag { font-size: .7rem; border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; color: var(--muted); }
ul.compact { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.compact li { padding: .15rem 0; }
.alert { padding: .6rem .9rem; border-radius: 6px; margin-bottom: 1rem; }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.err { background: var(--bad-bg); color: var(--bad); }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
button, .btn { font: inherit; display: inline-block; padding: .4rem .9rem; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.danger { color: var(--bad); }
button.link { border: 0; background: none; color: var(--muted); padding: 0; }
button:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .75rem 0; }
form.inline { display: inline-flex; gap: .4rem; }
label { display: block; margin-bottom: .75rem; font-size: .9rem; }
label input:not([type=checkbox]), label select { display: block; width: 100%; margin-top: .25rem; padding: .45rem .6rem; font: inherit; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
label.check { display: flex; gap: .5rem; align-items: center; }
.login { max-width: 360px; margin: 4rem auto; }
textarea.editor { width: 100%; min-height: 60vh; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .75rem; border: 1px solid var(--line); border-radius: 6px; background: var(--code); color: var(--code-text); tab-size: 2; }
pre.console { background: var(--code); color: var(--code-text); padding: .75rem; border-radius: 6px; min-height: 50vh; max-height: 75vh; overflow: auto; font-size: 12.5px; }
pre.readme { background: var(--bg); padding: .75rem; border-radius: 6px; font-size: .85rem; max-height: 50vh; overflow: auto; }
pre.diff { background: var(--code); color: var(--code-text); padding: .75rem; border-radius: 6px; font-size: 12.5px; overflow: auto; }
pre.diff .add { color: #6fdc8c; } pre.diff .del { color: #ff8a8a; } pre.diff .hunk { color: #7fb4ff; }
.warnrow td { color: var(--bad); }
@media (max-width: 700px) { .list th:nth-child(n+4), .list td:nth-child(n+4) { display: none; } }
