:root { --ink:#111a30; --muted:#71809a; --line:#e3e9f1; --bg:#f4f7fb; --red:#e91d25; --side:#10172b; }
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; }
.app { display: flex; min-height: 100vh; }
.side { width: 248px; background: var(--side); color: #cbd4e6; padding: 18px 14px; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; }
.brand { padding: 0 8px 14px; margin-bottom: 10px; border-bottom: 1px solid #273149; }
.brand img { width: 148px; background: #fff; border-radius: 8px; padding: 6px; }
.brand b, .brand small { display: block; }
.brand b { color: #fff; margin-top: 8px; }
.brand small { color: #8290aa; font-size: 12px; }
.ico { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex: 0 0 auto; }
.side nav { display: grid; gap: 4px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; color: #b7c3d8; text-decoration: none; font-size: 14px; }
.side a.active, .side a:hover { background: #1c2740; color: #fff; }
.side .out { margin-top: auto; display: grid; gap: 8px; padding: 12px 8px 0; }
.side .out span { color: #8290aa; font-size: 12px; word-break: break-word; }
.side .out a { padding: 8px 12px; }
main { margin-left: 248px; padding: 28px; width: calc(100% - 248px); }
.page-head { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head span { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.page-head h1 { margin: 4px 0 0; font-size: 28px; font-weight: 800; }
.page-head .sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
header { margin-bottom: 18px; display: flex; align-items: baseline; gap: 8px; }
header span { color: var(--red); font-size: 15px; font-weight: 700; }
header b { display: inline; font-size: 15px; }
h1 { margin: 0 0 16px; font-size: 32px; }
h2 { margin: 0 0 12px; }
.panel h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.panel h2 small { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; }
.panel, .card, .server { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.panel { padding: 16px 18px; margin-bottom: 16px; }
.list-panel { padding: 8px 10px 10px; }
.list-panel h2 { padding: 8px 8px 4px; margin: 0; }
.list { display: grid; gap: 8px; }
.domain-list { max-width: 820px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; }
.list-panel .row { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 8px; }
.list-panel .row:first-of-type { border-top: 0; }
.row:hover { border-color: #cfd8e6; background: #fafbfd; }
.row.domain > .ico:last-child { color: #9aa8bd; }
.row .meta { min-width: 0; flex: 1; display: grid; gap: 3px; }
.row .meta b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta small { color: var(--muted); font-size: 13px; }
.badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.badge .ico { width: 20px; height: 20px; }
.badge.mail { background: #fde8ea; color: var(--red); }
.badge.user { background: #e8f1ff; color: #1d4ed8; }
.badge.alias { background: #eef6ea; color: #14804a; }
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill .ico { width: 14px; height: 14px; }
.pill.online { background: #e8f7ee; color: #14804a; }
.pill.suspended { background: #fff6e5; color: #a16207; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty .ico { width: 28px; height: 28px; color: #9aa8bd; }
.empty p { margin: 8px 0 0; }
.crumb { margin: 0 0 16px; }
.crumb a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.crumb a:hover { color: var(--ink); }
.btn.ghost { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13px; }
.server-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.card, .server { padding: 16px; text-decoration: none; display: grid; gap: 6px; }
.card span, .server span, .hint { color: var(--muted); }
.card b, .server b { font-size: 18px; }
.server small { color: #a16207; }
.status.online { color: #14804a; }
.status.suspended { color: #a16207; }
.form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; border: 1px solid #d5deea; border-radius: 8px; padding: 10px; font: inherit; }
button, .btn { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; font: inherit; }
button.plain { background: #eef2f7; color: var(--ink); }
.ok { background: #e8f7ee; color: #146c3a; padding: 10px 12px; border-radius: 8px; }
.error { background: #fdecec; color: #9b1c1c; padding: 10px 12px; border-radius: 8px; }
.split { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; align-items: start; }
.login-bg {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 12% 15%, #34436d 0, transparent 30%),
        linear-gradient(135deg, #0b1023, #19264a 60%, #10172d);
}
.login-wrap { width: min(100%, 1000px); }
.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid #ffffff26;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 90px #0005;
}
.login-visual {
    background: linear-gradient(145deg, #e91d2b, #b20e2d);
    color: #fff;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
}
.login-visual .login-logo {
    width: min(100%, 240px);
    max-height: 72px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 10px 14px;
}
.login-visual h2 { font-size: 2.2rem; line-height: 1.15; font-weight: 800; margin: 36px 0 14px; }
.login-visual p { color: #ffe9ec; max-width: 340px; margin: 0; }
.login-visual small { color: #ffd5da; font-weight: 700; letter-spacing: .04em; }
.login-form { padding: 54px 48px; display: flex; flex-direction: column; justify-content: center; }
.login-form h1 { font-size: 2rem; font-weight: 800; color: #121a32; margin: 0 0 8px; }
.login-form .sub { color: #77829a; margin: 0 0 28px; }
.login-form label { display: block; color: #39445d; font-weight: 600; margin: 13px 0; }
.login-form input { display: block; width: 100%; margin-top: 7px; padding: 14px; border: 1px solid #dce2ed; border-radius: 12px; }
.login-form .btn { padding: 14px; border-radius: 12px; margin-top: 12px; width: 100%; }
.login-form .btn.primary { background: #e91d2b; }
.login-foot { font-size: 12px; color: #8490a6; margin-top: 22px; }
.table-wrap { overflow-x: auto; }
.table-wrap h2 { margin: 0 0 12px; font-size: 20px; }
table.servers { width: 100%; border-collapse: collapse; }
table.servers th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
table.servers td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.servers form { margin: 0; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .side { position: static; width: auto; }
    main { margin-left: 0; width: 100%; padding: 18px; }
    .app { display: block; }
    .login-card { grid-template-columns: 1fr; }
    .login-visual { min-height: auto; padding: 28px; }
    .login-visual h2 { font-size: 1.6rem; margin: 22px 0 8px; }
    .login-form { padding: 32px 25px; }
    .row { flex-wrap: wrap; }
    .row .meta { flex: 1 1 160px; }
    .page-head h1 { font-size: 22px; }
}
