: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; }
.side nav { display: grid; gap: 4px; }
.side a { display: block; 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; }
main { margin-left: 248px; padding: 28px; width: calc(100% - 248px); }
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, .card, .server { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.panel { padding: 16px 18px; margin-bottom: 16px; }
.status-full { padding: 0; }
.status-full [id^="vpsnerds-status"], .status-full #mynerds-status { width: 100%; max-width: none; border: 0; }
.dash-notices { display: grid; gap: 8px; margin: 0 0 16px; }
.dash-notice { margin: 0; padding: 16px 20px; background: #000; color: #fff; text-align: center; border-radius: 12px; }
.dash-notice strong, .dash-notice p { display: block; margin: 0; color: #fff; font-size: 14px; font-weight: 400; line-height: 1.55; }
.cards, .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, .row span { color: var(--muted); }
.card b, .server b { font-size: 18px; }
.server small { color: #a16207; }
.status.online { color: #14804a; }
.status.suspended { color: #a16207; }
.status.offline { color: #b42318; }
.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 { background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
button.plain { background: #eef2f7; color: var(--ink); }
button.danger { background: #b42318; }
.ok { background: #e8f7ee; color: #146c3a; padding: 10px 12px; border-radius: 8px; }
.error { background: #fdecec; color: #9b1c1c; padding: 10px 12px; border-radius: 8px; }
.wait { color: #a16207; font-weight: 700; }
.specs { list-style: none; padding: 0; margin: 0; }
.specs li, .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); align-items: center; }
.row.request-line { align-items: flex-start; }
.confirm-fields { min-width: 240px; }
.split { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 16px; align-items: start; }
.inline { grid-template-columns: 1fr auto; align-items: end; }
.check { grid-template-columns: auto 1fr; align-items: center; font-weight: 600; }
dialog { border: 0; border-radius: 14px; padding: 20px; max-width: 420px; }
dialog::backdrop { background: rgba(16, 23, 43, .45); }
.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;
    padding: 0;
    max-width: none;
    width: auto;
}
.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; }
@media (max-width: 720px) {
    .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; }
}
.table-wrap { overflow-x: auto; }
.table-wrap h2 { margin: 0 0 12px; font-size: 20px; }
#server-search { width: min(420px, 100%); margin: 0 0 12px; }
.table-wrap input { margin-bottom: 12px; }
table.servers { width: 100%; border-collapse: collapse; min-width: 0; }
table.servers:not(.size-table) { min-width: 980px; }
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 small { display: block; color: var(--muted); font-size: 12px; }
table.servers a { color: #1d4ed8; text-decoration: none; }
.flag { width: 28px; height: 20px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.os-icon, .flag-preview { width: 36px; height: 24px; object-fit: contain; vertical-align: middle; background: #fff; }
.os-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 800; vertical-align: middle; margin-right: 4px; }
.status-dot { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-weight: 700; }
.status-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; }
.status-dot.running::before, .status-dot.online::before { background: #16a34a; }
.status-dot.stopped::before, .status-dot.offline::before { background: #dc2626; }
.status-dot.pending::before, .status-dot.suspended::before { background: #d97706; }
.table-foot { display: flex; justify-content: flex-end; color: var(--muted); font-size: 12px; padding-top: 10px; }
.fw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fw-presets { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
dialog.sheet.wide { max-width: 820px; width: min(820px, calc(100vw - 32px)); }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 12px; overflow: visible; }
.os-pick { background: #f8fafc; color: var(--ink); border: 1px solid var(--line); text-align: left; }
.os-pick.on { background: #e8f1ff; border-color: #93c5fd; }
.os-pick.off { opacity: .45; cursor: not-allowed; }
.os-grid .need-support { display: block; }
.os-grid .need-support button { width: 100%; }
.os-grid .need-support { overflow: visible; }
.os-grid .need-support:hover::after {
    left: 0;
    right: auto;
    bottom: auto;
    top: calc(100% + 6px);
    transform: none;
    width: min(380px, calc(100vw - 64px));
    max-width: min(380px, calc(100vw - 64px));
    white-space: normal;
    z-index: 300;
}
.preview { display: flex; align-items: center; gap: 10px; }
.missing { color: #b42318; font-size: 12px; font-weight: 700; }
.pill { font-style: normal; font-weight: 700; font-size: 13px; }
table.servers .pill { display: table; margin-top: 6px; }
.server-head { display: grid; gap: 10px; margin-bottom: 14px; }
.server-head h1 { margin: 0; }
.server-head .meta { margin: 6px 0 0; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.head-actions form, .head-actions > button, .head-actions .need-support { flex: 1 1 118px; margin: 0; }
.head-actions button { width: 100%; height: 40px; padding: 0 10px; border-radius: 999px; white-space: nowrap; }
.head-actions button:disabled { opacity: .45; cursor: not-allowed; }
.need-support { position: relative; display: block; }
.head-actions .need-support form { flex: none; width: 100%; }
.need-support button { pointer-events: none; }
.need-support:hover::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 8px); transform: none; width: min(360px, calc(100vw - 48px)); max-width: min(360px, calc(100vw - 48px)); white-space: normal; background: #111a30; color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 8px 10px; border-radius: 8px; z-index: 90; pointer-events: none; }
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 16px; }
.usage-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.usage-card h2 { margin: 0 0 12px; font-size: 18px; }
.usage-card img, .usage-admin img { width: 100%; height: auto; display: block; }
.usage-admin { margin-bottom: 16px; }
.rename { display: flex; gap: 8px; align-items: center; }
.rename input { width: auto; min-width: 0; flex: 1; }
.label-edit span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
dialog.sheet { max-width: 640px; width: min(640px, calc(100vw - 32px)); overflow: visible; }
dialog.sheet form { overflow: visible; }
dialog form { display: grid; gap: 12px; }
dialog.sheet .net { grid-template-columns: 1fr 1fr; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { color: #1d4ed8; text-decoration: none; font-size: 13px; font-weight: 700; }
.icon-btn { background: #eef2f7; color: var(--ink); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
.spec-grid span, .net span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.spec-grid b { font-size: 15px; }
.create-step { display: grid; gap: 8px; margin: 0 0 16px; }
.create-step h4 { margin: 0; font-size: 14px; }
.create-link { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; background: #1d4ed8; color: #fff; text-decoration: none; font-weight: 700; }
.create-link[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.deploy { display: grid; gap: 22px; }
.deploy-head { display: flex; align-items: flex-start; gap: 16px; }
.deploy-head h1 { margin: 0; }
.deploy-block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.deploy-block h2 { margin: 0 0 14px; font-size: 18px; }
.deploy-block h3 { margin: 0 0 8px; padding: 0 16px; font-size: 13px; color: var(--muted); font-weight: 700; }
.type-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 16px; min-height: 148px; background: #fff; border-right: 1px solid var(--line); cursor: pointer; }
.type-card:last-child { border-right: 0; }
.type-card.on { background: #eef4ff; }
.type-card.off { opacity: .45; cursor: not-allowed; background: #f8fafc; }
.type-card input, .loc-item input { position: absolute; opacity: 0; pointer-events: none; }
.type-icon { width: 22px; height: 22px; color: #334155; }
.type-icon svg { display: block; width: 22px; height: 22px; }
.type-card b { display: block; font-size: 15px; }
.type-card small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.loc-block { padding: 18px 0 8px; }
.loc-block h2 { padding: 0 18px; }
.loc-search { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0 0 8px; padding: 12px 18px; }
.loc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.loc-col { border-right: 1px solid var(--line); padding: 8px 0 12px; min-width: 0; }
.loc-col:last-child { border-right: 0; }
.loc-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; cursor: pointer; font-weight: 600; }
.loc-item span { min-width: 0; }
.loc-item .ok { margin-left: auto; color: #16a34a; font-style: normal; display: none; font-weight: 800; }
.loc-item:has(input:checked) { background: #eef4ff; }
.loc-item:has(input:checked) .ok { display: inline; }
.loc-item.nomatch, .loc-item[hidden], .loc-col[hidden] { display: none; }
.size-table { min-width: 640px; }
.size-table tr.off { opacity: .4; }
.size-row[hidden] { display: none; }
body:has(.app) > *:not(.app) { display: none !important; }
.deploy-hold { position: fixed; inset: 0; max-width: none; max-height: none; width: 100%; height: 100%; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; z-index: 80; padding: 24px; }
.deploy-hold:not([open]) { display: none; }
.deploy-hold::backdrop { background: rgba(16, 23, 43, .48); }
.deploy-hold-card { width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 28px 24px; text-align: center; box-shadow: 0 24px 70px #0004; }
.deploy-hold-card b { display: block; font-size: 20px; margin: 14px 0 8px; }
.deploy-hold-card p { margin: 0; color: var(--muted); }
.deploy-hold-spin { width: 36px; height: 36px; border: 3px solid #dbe4f0; border-top-color: #1d4ed8; border-radius: 50%; display: inline-block; animation: deploy-spin .8s linear infinite; }
@keyframes deploy-spin { to { transform: rotate(360deg); } }
.deploy-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 8px; position: static; }
.deploy-sum { color: var(--muted); font-size: 13px; }
.deploy-foot button { background: #1d4ed8; color: #fff; border: 0; border-radius: 999px; height: 40px; padding: 0 18px; }
.cloud-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.cloud-tools h1 { margin: 0; }
.cap-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.create-action { margin: 0; min-width: 180px; }
.plan-list { display: grid; gap: 8px; }
.plan-list label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.plan-list label.on { background: #e8f1ff; border-color: #93c5fd; }
.plan-list label.off { opacity: .45; }
.plan-list small { display: block; color: var(--muted); }
.warn { border-left: 4px solid #d97706; background: #fff7ed; padding: 12px; border-radius: 8px; }
.warn b { color: #c2410c; }
.net { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.net em { background: #e8f7ee; color: #146c3a; font-style: normal; font-size: 11px; border-radius: 6px; padding: 2px 6px; }
.secret { letter-spacing: 1px; margin-right: 8px; }
@media (max-width: 1100px) {
    .type-row, .loc-grid { grid-template-columns: 1fr 1fr; }
    .type-card { border-bottom: 1px solid var(--line); }
    .loc-col { border-bottom: 1px solid var(--line); }
}
.host-hero { background: #2563eb; color: #fff; border-radius: 8px; padding: 28px 32px; margin: 12px 0 28px; display: flex; justify-content: space-between; gap: 32px; align-items: center; flex-wrap: wrap; }
.host-hero h1 { margin: 0 0 6px; color: #fff; font-size: 34px; }
.host-hero p { margin: 0; color: #dbeafe; }
.host-hero dl { display: grid; gap: 14px 36px; grid-template-columns: repeat(2, minmax(110px, 1fr)); margin: 0; }
.host-hero span { display: block; color: #bfdbfe; font-size: 12px; font-weight: 600; }
.host-hero b { font-size: 15px; font-weight: 700; }
.host-grid-title { margin: 8px 0 16px; font-size: 22px; text-align: center; font-weight: 600; }
.host-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.host-tile { background: #fff; border: 1px solid #e8edf3; border-radius: 10px; padding: 22px 12px 16px; text-decoration: none; min-height: 128px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; box-shadow: 0 1px 2px #0f172a08; }
.host-tile b { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.3; }
.host-tile:hover { border-color: #c7d2fe; box-shadow: 0 6px 16px #1d4ed814; }
.host-ico { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.host-ico svg { width: 22px; height: 22px; }
.host-accounts { display: grid; gap: 10px; }
.host-account { display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; }
.host-account b { display: block; font-size: 16px; }
.host-account small { color: var(--muted); }
.host-account em { color: var(--muted); font-style: normal; font-size: 13px; }
.host-account strong { color: #1d4ed8; font-size: 14px; }
.host-tile { position: relative; z-index: 2; cursor: pointer; }
.host-info { background: #fff; border: 1px solid #e8edf3; border-radius: 10px; margin: 0 0 28px; overflow: hidden; }
.host-info-tab { display: inline-block; padding: 10px 16px; color: #2563eb; font-weight: 700; font-size: 14px; border-bottom: 2px solid #2563eb; }
.host-info dl { margin: 0; }
.host-info dl > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 18px; border-top: 1px solid #eef2f6; align-items: start; }
.host-info dt { color: #111827; font-weight: 600; }
.host-info dd { margin: 0; color: #334155; white-space: pre-line; }
.host-info a { color: #2563eb; font-weight: 700; text-decoration: none; }
.host-ssl-ok { color: #16a34a; font-weight: 700; }
.host-usage { background: #fff; border: 1px solid #e8edf3; border-radius: 10px; margin: 0 0 28px; padding: 28px 16px 18px; }
.host-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 720px; margin: 0 auto; }
.host-gauge { text-align: center; }
.host-gauge svg { width: 180px; height: 118px; display: block; margin: 0 auto; }
.host-gauge b { display: block; margin-top: -42px; font-size: 28px; color: #334155; }
.host-gauge span { display: block; margin-top: 28px; color: #64748b; font-size: 14px; }
.host-gauge small { display: block; margin-top: 4px; color: #94a3b8; font-size: 12px; }
.host-gauge-updated { text-align: center; color: #94a3b8; font-size: 12px; margin: 8px 0 0; }
.host-clicks { background: #fff; border: 1px solid #e8edf3; border-radius: 10px; margin: 0 0 28px; padding: 18px 18px 22px; }
.host-clicks h2 { margin: 0 0 16px; text-align: center; font-size: 18px; font-weight: 600; }
.host-click-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px; }
.host-click-grid form { margin: 0; }
.host-click { background: none; border: 0; padding: 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; cursor: pointer; min-width: 110px; }
.host-click b { font-size: 13px; font-weight: 600; color: #334155; }
.host-click:hover { color: #1d4ed8; }
.host-tabs { display: flex; gap: 18px; border-bottom: 1px solid #e8edf3; margin: 0 0 16px; }
.host-tabs a { padding: 8px 0; color: #64748b; text-decoration: none; font-weight: 600; font-size: 14px; }
.host-tabs a.on { color: #2563eb; border-bottom: 2px solid #2563eb; }
table.servers.host-table { min-width: 0; }
.host-crumb { margin: 0 0 12px; color: var(--muted); }
.host-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 700px) {
    .host-split, .host-gauges { grid-template-columns: 1fr; }
}
.host-ssl-ok::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #16a34a; margin-right: 8px; }
@media (max-width: 1100px) {
    .host-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .host-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .host-account { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .side { position: static; width: auto; }
    .app { display: block; }
    main { margin-left: 0; width: auto; }
    .split, .spec-grid, .net, .usage-grid, .fw-grid, .type-row, .loc-grid { grid-template-columns: 1fr; }
}
