:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --text:#18241f; --muted:#68766f; --line:#dbe3df; --surface:#f3f6f5; --accent:#1f5b4b; --accent-soft:#e7f2ee; --danger:#a43f37; --danger-soft:#fff0ee; --ok:#24845f; --warn:#aa7417; }
* { box-sizing:border-box; margin:0; }
body { min-height:100vh; background:var(--surface); color:var(--text); }
button, a { font:inherit; }
button { min-height:36px; padding:7px 11px; border:1px solid var(--line); border-radius:9px; background:white; color:var(--text); font-size:12px; font-weight:700; cursor:pointer; }
button:hover { border-color:#91aaa0; background:#f8fbfa; }
button.primary { border-color:var(--accent); background:var(--accent); color:white; }
button.danger { border-color:#e0b3ae; background:var(--danger-soft); color:var(--danger); }
button:disabled { cursor:wait; opacity:.55; }
.topbar { height:62px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; border-bottom:1px solid var(--line); background:#ffffffed; }
.brand { display:flex; align-items:center; gap:10px; color:var(--text); text-decoration:none; }
.brand span { width:32px; height:32px; display:grid; place-items:center; border-radius:9px; background:var(--accent); color:white; font-weight:850; }
.system-state { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; }
.system-state i, .service-state i { width:8px; height:8px; border-radius:50%; background:#8d9994; }
.system-state.online i, .service-state.online i { background:var(--ok); box-shadow:0 0 0 4px #e5f4ee; }
.system-state.degraded i, .service-state.degraded i { background:var(--warn); box-shadow:0 0 0 4px #fff4dc; }
.system-state.offline i, .service-state.offline i { background:var(--danger); box-shadow:0 0 0 4px var(--danger-soft); }
main { width:min(1120px, 100%); margin:auto; padding:34px 28px 70px; }
.hero { display:flex; align-items:end; justify-content:space-between; gap:24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
small { color:var(--accent); font-size:10px; font-weight:850; letter-spacing:.08em; }
h1 { margin:6px 0 7px; font-size:clamp(28px,4vw,42px); letter-spacing:-.045em; }
.hero p { color:var(--muted); }
.stack-actions { display:flex; gap:8px; }
.message { margin-top:18px; padding:11px 13px; border:1px solid #abd1c0; border-radius:9px; background:#edf8f3; color:var(--ok); font-size:12px; }
.message.error { border-color:#e0b3ae; background:var(--danger-soft); color:var(--danger); }
.units { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:22px; }
.unit, .history-card { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:0 6px 22px #1631290a; }
.unit > header, .history-card > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:15px 17px; border-bottom:1px solid var(--line); background:#fafcfb; }
.unit h2, .history-card h2 { margin-top:3px; font-size:17px; }
.unit-state { color:var(--muted); font-size:11px; }
.service { min-height:72px; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); }
.service:last-child { border-bottom:0; }
.service > a { min-width:0; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:11px; color:var(--text); text-decoration:none; }
.service-state { display:grid; place-items:center; }
.service-copy { min-width:0; display:grid; gap:3px; }
.service-copy strong, .service-copy small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.service-copy small { color:var(--muted); font-size:10px; }
.service-actions { display:flex; gap:6px; }
.service-actions button { min-width:62px; }
.history-card { margin-top:18px; }
.history { display:grid; }
.history article { display:grid; grid-template-columns:120px minmax(0,1fr) auto; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); font-size:12px; }
.history article:last-child { border-bottom:0; }
.history p { color:var(--muted); }
.history .completed { color:var(--ok); }.history .failed { color:var(--danger); }
.empty { padding:28px; color:var(--muted); text-align:center; }
dialog { width:min(500px,calc(100% - 24px)); padding:0; border:0; border-radius:15px; box-shadow:0 28px 80px #08120e66; }
dialog::backdrop { background:#10221c88; backdrop-filter:blur(4px); }
dialog form { padding:20px; } dialog h2 { margin:5px 0 10px; } dialog p { color:var(--muted); line-height:1.55; } dialog footer { display:flex; justify-content:flex-end; gap:8px; margin:20px -20px -20px; padding:14px 20px; border-top:1px solid var(--line); background:#f7f9f8; }
@media (max-width:720px) { .topbar { padding:0 15px; }.topbar strong { display:none; } main { padding:22px 14px 45px; }.hero { align-items:stretch; flex-direction:column; }.stack-actions { display:grid; grid-template-columns:1fr 1fr; }.stack-actions .danger { grid-column:1/-1; }.units { grid-template-columns:1fr; }.service { grid-template-columns:1fr; }.service-actions button { flex:1; }.history article { grid-template-columns:1fr auto; }.history article p { grid-column:1/-1; } }
