:root {
  --bg: #1c1e22;
  --bg2: #16181c;
  --fg: #dcdcdc;
  --muted: #8c8c8c;
  --line: #2a2c30;
  --btn: #2a2c30;
  --accent: #466ea0;
  --ok: #5aaa6e;
  --warn: #d2963c;
  --bad: #c45c5c;
  --ads: #78aad8;
  --def: #a0c88c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg); font: 13px/1.4 ui-sans-serif, system-ui, sans-serif; }
body { display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: var(--fg); background: var(--btn); border: 1px solid var(--line); padding: 6px 10px; }
button { cursor: pointer; }
button.danger { border-color: var(--bad); }
.bar { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.host { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.err { color: var(--bad); min-height: 1.2em; }
main { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.table-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
tbody tr:hover { background: #22242a; }
.status-OK { color: var(--ok); }
.status-BURNED, .status-SAMPLE_ERROR { color: var(--bad); }
.status-HOP_DOWN, .status-EMPTY, .status-NEED_ROLES { color: var(--warn); }
.status-DEPLOYING { color: var(--accent); }
.stale { color: var(--warn); }
.checking { color: var(--ok); }
.grant-low { color: var(--warn); }
.fleet-ads { color: var(--ads); }
.fleet-def { color: var(--def); }
.log-panel { flex: 0 0 28%; min-height: 120px; border-top: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.log-head { display: flex; justify-content: space-between; padding: 4px 10px; color: var(--muted); }
#log { margin: 0; padding: 8px 10px; overflow: auto; flex: 1; background: var(--bg2); font: 12px/1.35 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
#log .fleet-ads, #log .fleet-def { font-family: inherit; }
.login-body { display: grid; place-items: center; }
.login-card { width: 320px; padding: 24px; border: 1px solid var(--line); background: var(--bg2); display: flex; flex-direction: column; gap: 12px; }
.login-card h1 { margin: 0; font-size: 16px; font-weight: 600; }
.login-card label, .modal label { display: flex; flex-direction: column; gap: 4px; }
.modal label.inline { flex-direction: row; align-items: center; gap: 8px; }
.modal { padding: 16px; min-width: 360px; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); }
.modal-wide { min-width: 520px; }
.modal h2 { margin: 0 0 8px; font-size: 15px; }
.modal .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.modal textarea { font: 12px/1.35 ui-monospace, Consolas, monospace; min-height: 180px; resize: vertical; }
.radios { display: flex; gap: 16px; margin-bottom: 8px; }
.nat-box { border: 1px solid var(--line); padding: 8px 10px; margin: 10px 0 0; }
.nat-box legend { color: var(--muted); }
.progress { min-height: 3em; background: var(--bg); padding: 8px; }
.act { display: flex; gap: 4px; }
.act button { padding: 2px 6px; }
.act button.icon { width: 28px; padding: 2px 0; font-size: 15px; line-height: 1; }
