:root { --bg:#f5f6f8; --panel:#fff; --fg:#1d2330; --muted:#6b7280; --line:#e3e6eb; --acc:#2563eb; --sel:#e8efff; --ok:#16a34a; --bad:#dc2626; --code:#0f172a; --codefg:#e2e8f0; }
@media (prefers-color-scheme: dark) { :root { --bg:#0f1115; --panel:#181b22; --fg:#e5e7eb; --muted:#9ca3af; --line:#2a2f3a; --acc:#60a5fa; --sel:#1e2a44; } }
* { box-sizing: border-box; }
[v-cloak] { display: none; }
body { margin: 0; font: 14px/1.45 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
button { background: var(--acc); color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
button.danger { background: var(--bad); float: right; font-size: 13px; }
button.mini { padding: 0 6px; float: right; background: transparent; color: var(--acc); }
input, select, textarea { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit; }
textarea { width: 100%; font-family: ui-monospace, monospace; }
pre { background: var(--code); color: var(--codefg); padding: 10px; border-radius: 6px; overflow: auto; max-height: 400px; white-space: pre-wrap; }
pre.bad { border-left: 4px solid var(--bad); }
.err { color: var(--bad); cursor: pointer; }
.muted { color: var(--muted); text-align: center; }
.login { max-width: 320px; margin: 12vh auto; display: flex; flex-direction: column; gap: 10px; background: var(--panel); padding: 24px; border-radius: 10px; border: 1px solid var(--line); }
.login h1 { margin: 0 0 8px; font-size: 22px; }
.layout { display: flex; min-height: 100vh; }
aside { width: 250px; background: var(--panel); border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.brand { font-weight: 700; font-size: 18px; }
.tree { flex: 1; overflow: auto; }
.tree div > div, .tree > div { padding: 4px 6px; border-radius: 5px; cursor: pointer; }
.tree .site { padding-left: 20px; }
.tree .sel { background: var(--sel); }
.me { color: var(--muted); font-size: 13px; }
main { flex: 1; padding: 16px; min-width: 0; }
.search { width: 100%; margin-bottom: 10px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 14px; }
table.agents { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.agents th, .agents td { text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agents tbody tr { cursor: pointer; }
.agents tbody tr:hover, .agents tr.sel { background: var(--sel); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.on { background: var(--ok); } .dot.off { background: var(--muted); }
.detail { margin-top: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 16px; }
.disks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.disk { min-width: 200px; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar div { height: 100%; background: var(--acc); } .bar div.warn { background: var(--bad); }
.run { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary { cursor: pointer; }
@media (max-width: 800px) { .layout { flex-direction: column; } aside { width: auto; } }
button.alt { background: transparent; color: var(--acc); border: 1px solid var(--line); }
button.mini2 { padding: 2px 8px; font-size: 12px; }
button.mini2.danger { float: none; }
.ok { color: var(--ok); cursor: pointer; }
.good { color: var(--ok); } .bad { color: var(--bad); }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a, .tabs a { padding: 6px 8px; border-radius: 6px; cursor: pointer; color: var(--fg); text-decoration: none; }
nav a.on { background: var(--sel); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 12px; }
.tabs a.on { border-bottom: 2px solid var(--acc); border-radius: 0; font-weight: 600; }
.toolbar, .row, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.toolbar .search { flex: 1; margin: 0; }
.actions button.danger { float: none; margin-left: auto; }
.badge { font-size: 12px; padding: 0 5px; border-radius: 4px; background: var(--sel); }
.badge.warn { background: #f59e0b33; color: #b45309; }
table.list { width: 100%; border-collapse: collapse; margin-bottom: 12px; background: var(--panel); }
.list th, .list td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list tr.sel, .list tr.click:hover { background: var(--sel); }
.click { cursor: pointer; }
.nowrap { white-space: nowrap; }
.msg { max-height: 4.5em; overflow: auto; white-space: pre-wrap; font-size: 12px; }
.wide { width: 100%; margin-bottom: 6px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 14px; align-items: start; }
.editor { display: flex; flex-direction: column; gap: 8px; }
label.row { margin-top: 12px; }
h2 small { font-size: 13px; font-weight: 400; margin-left: 8px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
