:root { --fg:#1c2230; --muted:#7a8294; --line:#e2e6ee; --accent:#2d5bd7; --danger:#c0392b; --warn:#b7791f; }
* { box-sizing: border-box; }
body { margin:0; font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif; color:var(--fg); background:#f5f6f9; }
body.centered { display:flex; min-height:100vh; align-items:center; justify-content:center; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }
.topbar { display:flex; align-items:center; gap:24px; padding:10px 20px; background:#fff; border-bottom:1px solid var(--line); }
.brand { font-weight:700; }
.topbar nav { display:flex; gap:16px; flex:1; }
.topbar nav a.on { font-weight:700; color:var(--fg); }
.who { color:var(--muted); display:flex; align-items:center; gap:8px; }
main { max-width:1100px; margin:24px auto; padding:0 20px; }
h1 { font-size:20px; } h2 { font-size:16px; }
.card { background:#fff; border:1px solid var(--line); border-radius:8px; padding:16px 20px; margin-bottom:20px; }
.card.login { width:340px; }
form label { display:block; margin:10px 0; font-size:13px; color:var(--muted); }
form input, form select { display:block; width:100%; margin-top:4px; padding:8px 10px; border:1px solid var(--line); border-radius:6px; font-size:14px; color:var(--fg); }
form.inline { display:inline; margin:0; }
form.inline input { width:auto; }
.filters { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:16px; }
.filters label { margin:0; }
button { padding:8px 14px; border:0; border-radius:6px; background:var(--accent); color:#fff; cursor:pointer; font-size:14px; }
button:hover { filter:brightness(1.05); }
button:disabled { background:#c2c8d4; cursor:not-allowed; }
button.danger { background:var(--danger); }
button.link { background:none; color:var(--accent); padding:0; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
th, td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); font-size:13px; vertical-align:top; }
th { background:#fafbfd; color:var(--muted); font-weight:600; }
.muted { color:var(--muted); }
.meta { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12px; max-width:280px; word-break:break-all; }
.flash { background:#eef5ee; border:1px solid #cfe3cf; color:#2f6f37; padding:10px 20px; margin:0; }
.error { background:#fbeeec; border:1px solid #f0c8c2; color:var(--danger); padding:8px 10px; border-radius:6px; margin:10px 0; }
.warn { background:#fdf6e7; border:1px solid #f0e0b8; color:var(--warn); padding:10px 14px; border-radius:6px; margin-bottom:16px; }
.hint { color:var(--muted); font-size:12px; }
.ops { display:flex; gap:6px; flex-wrap:wrap; }
.pager { margin-top:12px; display:flex; gap:16px; align-items:center; }
.cards { list-style:none; padding:0; display:flex; gap:16px; flex-wrap:wrap; }
.cards a { display:block; background:#fff; border:1px solid var(--line); border-radius:8px; padding:16px 20px; min-width:180px; }
.cards strong { display:block; } .cards span { color:var(--muted); font-size:12px; }
.status { padding:2px 8px; border-radius:10px; font-size:12px; background:#eef0f5; }
.status-up { background:#e6f4ea; color:#1e7a3a; }
.status-draining { background:#fdf6e7; color:var(--warn); }
.status-down, .status-destroyed { background:#fbeeec; color:var(--danger); }
.ev { font-size:12px; }
