:root { color-scheme: light; --bg:#f6f7fb; --card:#fff; --line:#e5e7eb; --text:#111827; --muted:#6b7280; --primary:#2563eb; --danger:#dc2626; --ok:#16a34a; }
* { box-sizing:border-box; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--text); background:var(--bg); }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:22px 32px; background:#0f172a; color:white; }
.topbar h1 { margin:0 0 4px; font-size:24px; }
.topbar p { margin:0; color:#cbd5e1; }
.nav { display:flex; gap:12px; padding:12px 32px; background:white; border-bottom:1px solid var(--line); }
.nav a { color:#1f2937; text-decoration:none; font-weight:600; }
.container { max-width:1280px; margin:24px auto; padding:0 20px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; box-shadow:0 8px 24px rgba(15,23,42,.06); margin-bottom:20px; }
.narrow { max-width:420px; margin:40px auto; }
.grid.cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.muted, small { color:var(--muted); }
.warning { background:#fef3c7; color:#92400e; padding:10px 32px; border-bottom:1px solid #fde68a; }
.flashes { margin-bottom:14px; }
.flash { padding:10px 12px; border-radius:10px; margin-bottom:8px; background:#e0f2fe; }
.flash.error { background:#fee2e2; color:#991b1b; }
.flash.success { background:#dcfce7; color:#166534; }
a, .actions a { color:var(--primary); }
button, .button { display:inline-block; border:0; border-radius:10px; padding:8px 12px; background:var(--primary); color:white; text-decoration:none; cursor:pointer; font-weight:600; }
button.secondary, .button.secondary { background:#64748b; }
button.danger, .button.danger { background:var(--danger); }
button:disabled { opacity:.55; cursor:not-allowed; }
.form { display:grid; gap:14px; }
.two-col { grid-template-columns:repeat(2,minmax(240px,1fr)); }
.form label { display:grid; gap:6px; font-weight:600; }
.form label.inline { display:flex; align-items:center; gap:8px; }
.form .wide { grid-column:1 / -1; }
input, select, textarea { width:100%; border:1px solid var(--line); border-radius:10px; padding:9px 10px; font:inherit; background:white; }
textarea { min-height:90px; }
.form-actions, .deploy-actions { display:flex; align-items:center; gap:10px; grid-column:1 / -1; }
.filters { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.filters input { width:260px; }
.filters select { width:auto; }
table { width:100%; border-collapse:collapse; }
th, td { border-bottom:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; }
th { color:#374151; background:#f9fafb; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.actions form { display:inline; }
.badge { display:inline-block; padding:3px 8px; border-radius:999px; background:#e5e7eb; font-size:12px; font-weight:700; }
.badge.online { background:#dcfce7; color:#166534; }
.badge.offline { background:#fee2e2; color:#991b1b; }
.badge.unknown { background:#e5e7eb; color:#374151; }
.badge.priority { background:#dbeafe; color:#1d4ed8; }
.badge.status { background:#fef3c7; color:#92400e; }
.empty { text-align:center; color:var(--muted); padding:24px; }
pre { background:#0f172a; color:#e2e8f0; padding:14px; border-radius:12px; overflow:auto; }
code { background:#f1f5f9; padding:2px 4px; border-radius:5px; color:#0f172a; }
pre code, pre { white-space:pre-wrap; }
.summary { background:#f9fafb; border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:14px; }
.error-text { color:#991b1b; }
