/* Простой тёмный стиль панели dyxvp */
* { box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 0; background: #0f1115; color: #e6e8eb; line-height: 1.5;
}
body.centered { display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; padding: 40px 16px; }
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

.card {
    background: #1a1d24; border: 1px solid #2a2e37; border-radius: 12px;
    padding: 32px; width: 100%; max-width: 460px;
}
h1 { margin: 0 0 8px; font-size: 24px; }
h2 { font-size: 16px; margin: 20px 0 10px; }
.muted { color: #9aa0aa; }
.small { font-size: 13px; }

/* формы */
label { display: block; margin: 14px 0 6px; font-size: 14px; color: #c3c8d0; }
input, select {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    border: 1px solid #2a2e37; background: #0f1115; color: #e6e8eb; font-size: 15px;
}
input:focus, select:focus { outline: none; border-color: #3b82f6; }
button {
    margin-top: 16px; padding: 10px 18px; border: none; border-radius: 8px;
    background: #3b82f6; color: #fff; font-size: 15px; cursor: pointer; font-weight: 500;
}
button:hover { background: #2f6fd6; }
button:disabled { opacity: .5; cursor: not-allowed; }
button.ghost { background: transparent; border: 1px solid #2a2e37; color: #c3c8d0; }
button.ghost:hover { background: #23262e; }
button.danger { background: #dc2626; }
button.danger:hover { background: #b91c1c; }
.btn-sm { margin: 0; padding: 6px 12px; font-size: 13px; }

/* топбар */
.topbar { display: flex; justify-content: space-between; align-items: center; }

/* флеш-сообщения */
.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.flash.ok { background: #14532d33; border: 1px solid #14532d; color: #86efac; }
.flash.err { background: #7f1d1d33; border: 1px solid #7f1d1d; color: #fca5a5; }
.msg, #msg { margin-top: 14px; white-space: pre-line; font-size: 14px; }
.error, .msg.error, #msg.error { color: #f87171; }
.success, .msg.success, #msg.success { color: #4ade80; }

/* блоки/os-карточки */
.os { border: 1px solid #2a2e37; border-radius: 10px; padding: 16px; margin: 12px 0; }

/* креды (сервер/логин/пароль) */
.cred {
    background: #0f1115; border: 1px solid #2a2e37; border-radius: 8px; padding: 10px 12px;
    margin: 8px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    font-family: monospace; font-size: 14px;
}
.cred .lbl { color: #9aa0aa; font-family: sans-serif; font-size: 12px; min-width: 90px; }
.cred .val { color: #e6e8eb; word-break: break-all; flex: 1; }
.cred .copy { cursor: pointer; color: #60a5fa; font-family: sans-serif; font-size: 12px; white-space: nowrap; }

/* админка */
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
table { width: 100%; border-collapse: collapse; background: #1a1d24; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #23272f; font-size: 14px; }
th { background: #161922; color: #9aa0aa; font-weight: 500; }
tr:last-child td { border-bottom: none; }

/* health-чипы */
.health { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; border: 1px solid #2a2e37; background: #1a1d24; }
.chip.ok { border-color: #14532d; color: #4ade80; }
.chip.bad { border-color: #7f1d1d; color: #f87171; }

/* бейджи статуса */
.badge { padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.badge.on { background: #14532d; color: #86efac; }
.badge.off { background: #3f1d1d; color: #fca5a5; }
.badge.online { background: #1e3a8a; color: #93c5fd; }

.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* сетка 2 колонки */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

/* health-карточки на статусе */
.hcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 24px; }
.hcard { background: #1a1d24; border: 1px solid #2a2e37; border-radius: 10px; padding: 16px; }
.hcard .k { color: #9aa0aa; font-size: 12px; margin-bottom: 6px; }
.hcard .v { font-size: 16px; font-weight: 600; }
.hcard .v.ok { color: #4ade80; } .hcard .v.bad { color: #f87171; }

/* таблица серверов */
.srv-tbl { width: 100%; }
.srv-online { color: #4ade80; font-weight: 600; }
.srv-off { color: #f87171; font-weight: 600; }
