/* Same palette as VPS Kit */
:root {
  --bg: #0F1216; --surface: #161A21; --row: #131720; --input: #0D1015;
  --line: #252B36; --ink: #E8EBF1; --muted: #8B94A5; --dim: #5D6676;
  --accent: #3D74F2; --good: #3FB950; --warn: #D6A23A; --bad: #E5534B;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: #8fb0ff; text-decoration: none; }
a:hover { text-decoration: underline; }
main { max-width: 1280px; margin: 0 auto; padding: 18px 22px; }
footer { color: var(--dim); font-size: 12px; text-align: center; padding: 10px 0 24px; }
h1 { font-size: 20px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
code, pre { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; background: var(--input); border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; }
pre { padding: 10px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px; background: #0B0E12; border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 18px; align-items: center; }
.top nav a { color: var(--ink); }
.brand { color: var(--ink); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display: inline-block; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; overflow-x: auto; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--dim); border-radius: 8px; padding: 12px 16px; }
.tile b { font-size: 26px; display: block; }
.tile small { font-size: 15px; color: var(--muted); font-weight: 400; }
.tile span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.tile.good { border-left-color: var(--good); } .tile.warn { border-left-color: var(--warn); } .tile.bad { border-left-color: var(--bad); }

table.list { width: 100%; border-collapse: collapse; }
table.list th { text-align: left; font-weight: 500; color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px; border-bottom: 1px solid var(--line); }
table.list td { padding: 7px 8px; border-bottom: 1px solid var(--row); vertical-align: top; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.muted td { opacity: .55; }
table.kv th { text-align: left; color: var(--muted); font-weight: 500; padding: 4px 18px 4px 0; vertical-align: top; white-space: nowrap; }
table.kv td { padding: 4px 0; }
.num { text-align: right; white-space: nowrap; }
.ic { width: 24px; }
.act { white-space: nowrap; text-align: right; }
.events td { font-size: 13px; padding: 4px 8px; }

.pill { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 8px 2px; border-radius: 10px; text-transform: uppercase; letter-spacing: .04em; }
.pill.up { background: #173a22; color: var(--good); }
.pill.down { background: #4a1f1c; color: #ff8b84; }
.pill.warn { background: #43361a; color: var(--warn); }
.pill.unk { background: #232934; color: var(--muted); }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.svc { display: inline-block; font-size: 11.5px; margin: 0 4px 2px 0; padding: 0 6px; border-radius: 3px; }
.svc.ok { background: #18241c; color: #7fd18e; }
.svc.bad { background: #4a1f1c; color: #ff8b84; }
.dim { color: var(--dim); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.err { color: #ff8b84; font-size: 12px; }
.spark { display: inline-flex; gap: 1px; align-items: flex-end; height: 14px; }
.spark i { width: 3px; height: 14px; border-radius: 1px; background: var(--good); opacity: .8; }
.spark i.r { background: var(--bad); }

.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid; }
.flash.ok { background: #13261a; border-color: #23502f; color: #9ee0aa; }
.flash.bad { background: #2b1614; border-color: #5a2723; color: #ffb3ad; }

input { background: var(--input); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; font: inherit; width: 100%; }
input:focus { outline: none; border-color: var(--accent); }
input.short { width: 80px; display: inline-block; }
label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 10px; }
label input { margin-top: 4px; }
button { background: var(--accent); color: #fff; border: 0; border-radius: 5px; padding: 7px 14px; font: inherit; cursor: pointer; white-space: nowrap; }
button:hover { filter: brightness(1.1); }
button.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
button.danger { background: #6B2B27; }
button.small { padding: 2px 8px; font-size: 12px; }
button.link { background: none; padding: 0; color: var(--ink); }
form.inline { display: inline; }
.row { display: flex; align-items: center; justify-content: space-between; }
.row.gap { justify-content: flex-start; gap: 10px; margin-bottom: 10px; }
.row.gap input { max-width: 320px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; max-width: 760px; margin-bottom: 10px; }
.addsite { display: flex; gap: 10px; margin-top: 12px; }
.login { max-width: 380px; margin: 80px auto; }
.copy { user-select: all; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } main { padding: 12px; } }

select { background: var(--input); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 7px 10px; font: inherit; width: 100%; margin-top: 4px; }
button[disabled] { opacity: .4; cursor: not-allowed; }
.small { font-size: 12px; }
.card.running { border-color: var(--accent); }
progress { width: 100%; height: 8px; margin: 4px 0 12px; accent-color: var(--accent); }
