:root { --bg: #f3f5f7; --panel: #fff; --fg: #111827; --muted: #6b7280; --line: #e5e7eb; --accent: #0f766e; --accent-2: #115e59; --ok: #059669; --warn: #d97706; --bad: #dc2626; --soft: #e6f2ef; --shadow: 0 10px 30px rgba(17,24,39,.12); }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1115; --panel: #171a21; --fg: #e5e7eb; --muted: #9ca3af; --line: #2a2f3a; --soft: #15302c; --shadow: 0 10px 30px rgba(0,0,0,.5); } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h2 { font-size: 20px; } h3 { font-size: 17px; } h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 4px; }
p { margin: 4px 0; }
.muted { color: var(--muted); } .small { font-size: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; margin: 8px 0; }
.btn { font: inherit; font-weight: 600; border: 1px solid var(--line); background: var(--panel); color: var(--fg); border-radius: 9px; padding: 8px 14px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { filter: brightness(.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.bad { color: var(--bad); }
.btn.bad-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.err { color: var(--bad); white-space: pre-line; }
.logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.logo.sm { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }

.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.login-card .btn { justify-content: center; margin-top: 6px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; } .brand small { display: block; }
.top-acts { display: flex; gap: 8px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 22px 24px 60px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12.5px; }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.filters { display: flex; gap: 8px; margin-bottom: 12px; }
.filters select { max-width: 220px; }
.list { display: grid; gap: 12px; }
.site { padding: 16px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr) auto; gap: 14px; align-items: center; }
.site.off { opacity: .75; }
.site .nm { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site .sub { color: var(--muted); font-size: 12.5px; word-break: break-all; }
.site .nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.site .nums div { background: var(--bg); border-radius: 9px; padding: 6px 8px; }
.site .nums b { display: block; font-variant-numeric: tabular-nums; }
.site .nums span { color: var(--muted); font-size: 11.5px; }
.site .acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 260px; }
.pill { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--accent); }
.pill.ok { background: #d1fae5; color: #065f46; } .pill.off { background: #fee2e2; color: #991b1b; } .pill.warn { background: #fef3c7; color: #92400e; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.code { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; margin: 6px 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 10px; margin: 8px 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; word-break: break-all; }

.modal { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: grid; place-items: center; padding: 16px; z-index: 20; overflow-y: auto; }
.dialog { width: 100%; max-width: 560px; padding: 20px; box-shadow: var(--shadow); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.x { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); }
.dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.inrow { display: flex; gap: 6px; } .inrow input { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 30; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

@media (max-width: 900px) { .site { grid-template-columns: 1fr; } .site .acts { justify-content: flex-start; max-width: none; } .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .top { padding: 10px 16px; } .wrap { padding: 16px; } .grid2 { grid-template-columns: 1fr; } .head-row { flex-direction: column; align-items: stretch; } .filters { flex-direction: column; } .filters select { max-width: none; } .site .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kv { grid-template-columns: 1fr; } }

.logo.mark { background: none; color: #0f766e; padding: 0; }
.logo.mark svg { width: 100%; height: 100%; display: block; }
.landing-card { margin-top: 20px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.landing-card h3 { margin: 0 0 4px; font-size: 15px; }
.landing-card p { margin: 0; max-width: 560px; }
.landing-row { display: flex; gap: 8px; align-items: center; }
.landing-row select { width: 240px; }
@media (max-width: 560px) { .landing-row { flex-direction: column; align-items: stretch; width: 100%; } .landing-row select { width: 100%; } }
