:root { --bg: #f1f5f9; --card: #fff; --line: #e2e8f0; --text: #1e293b; --muted: #64748b; --accent: #2563eb; --ok: #16a34a; --warn: #d97706; --bad: #dc2626; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Segoe UI", Arial, sans-serif; }
.root { max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.head h1 { margin: 0; font-size: 22px; }
.tabs { display: flex; gap: 4px; background: #e2e8f0; padding: 4px; border-radius: 12px; width: fit-content; margin-bottom: 18px; flex-wrap: wrap; }
button { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
button:hover { filter: brightness(.93); }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: #e8edf4; color: #334155; }
button.danger { background: var(--bad); }
.tab { background: transparent; color: #475569; height: 34px; }
.tab.is-active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.card h2 { margin: 0 0 12px; font-size: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #f8fafc; display: grid; gap: 4px; position: relative; padding-left: 18px; }
.tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 12px 0 0 12px; background: var(--muted); }
.tile.ok::before { background: var(--ok); } .tile.degraded::before { background: var(--warn); } .tile.down::before { background: var(--bad); }
.tile strong { font-size: 15px; } .tile span, .muted { color: var(--muted); font-size: 12px; }
.badge { font-weight: 700; font-size: 12px; } .ok .badge { color: var(--ok); } .degraded .badge { color: var(--warn); } .down .badge { color: var(--bad); }
.bar { height: 8px; border-radius: 99px; background: #e2e8f0; overflow: hidden; } .bar > i { display: block; height: 100%; background: var(--accent); }
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.wrap { overflow-x: auto; }
input, textarea { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; }
textarea { font: 13px/1.4 Consolas, monospace; min-height: 420px; resize: vertical; white-space: pre; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.error { color: var(--bad); min-height: 1.2em; }
pre { margin: 0; background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 12px; max-height: 360px; overflow: auto; font: 12px/1.4 Consolas, monospace; }
.form { display: grid; gap: 12px; max-width: 380px; } .form label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; }
button.small { height: 30px; padding: 0 10px; font-size: 13px; }
.row-actions { display: flex; gap: 6px; }
.project-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.project-head h2 { margin: 0 0 2px; }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.pill { padding: 3px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.pill.ok { background: #dcfce7; color: #15803d; } .pill.degraded { background: #fef3c7; color: #b45309; } .pill.down { background: #fee2e2; color: #b91c1c; }
.lvl { font-weight: 700; } .lvl.critical { color: var(--bad); } .lvl.warning { color: var(--warn); } .lvl.info { color: var(--muted); }
.login { max-width: 360px; margin: 14vh auto 0; display: grid; gap: 12px; }
.tile.pending::before { background: var(--warn); } .pending .badge { color: var(--warn); }
.pill.pending { background: #fef3c7; color: #b45309; }
.modal-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal { background: #fff; border-radius: 16px; padding: 20px; width: min(420px, 100%); display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(15, 23, 42, .3); }
.modal h3 { margin: 0; font-size: 17px; } .modal h3:empty { display: none; }
.modal p { margin: 0; white-space: pre-line; color: #334155; }
.modal .actions { justify-content: flex-end; margin-top: 4px; }
@media (max-width: 640px) { .root { padding: 14px 10px 40px; } }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 44px; }
button.eye { position: absolute; right: 4px; top: 4px; height: 30px; width: 36px; padding: 0; background: transparent; color: #64748b; font-size: 17px; }
button.eye:hover { filter: none; color: var(--text); }
button.eye.is-on { color: var(--accent); text-decoration: line-through; }
