/* NodeRadar — визуальный стиль (см. макет «NodeRadar — редизайн») */
@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0A0A0C;
  --bg-2: #0D0D10;
  --surface: #121216;
  --surface-2: #0E0E12;
  --line: #1F1F26;
  --line-2: #2A2A33;
  --text: #EDEDF0;
  --text-2: #D4D4D8;
  --muted: #A1A1AA;
  --dim: #8B8B95;
  --accent: #9D8CFF;
  --accent-2: #B9ADFF;
  --accent-ink: #0B0820;
  --ok: #4ADE80;
  --partial: #FBBF24;
  --bad: #FB7185;
  --none: #1A1A20;
  --r: 14px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); }
a:hover { color: #D6CEFF; }
code, .mono { font-family: var(--mono); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.red { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #B3A6FF; color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: #141419; border-color: #3A3A46; color: #fff; }
.btn-danger { background: transparent; color: var(--bad); border-color: rgba(251,113,133,.35); }
.btn-danger:hover { background: rgba(251,113,133,.08); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.icon { width: 16px; height: 16px; flex: none; }

/* ---------- шапка ---------- */
.top { border-bottom: 1px solid #1A1A20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; min-height: 44px; }
.logo:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--text); }
.chip-mono { font: 500 12.5px var(--mono); color: var(--dim); padding: 5px 10px; border: 1px solid #24242B; border-radius: 7px; }

/* ---------- статусы ---------- */
.st { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 7px; flex: none; }
.st svg { width: 14px; height: 14px; }
.st-sm { width: 20px; height: 20px; border-radius: 6px; }
.st-sm svg { width: 11px; height: 11px; }
.st-ok { background: rgba(74,222,128,.14); color: var(--ok); }
.st-partial { background: rgba(251,191,36,.14); color: var(--partial); }
.st-blocked { background: rgba(251,113,133,.16); color: var(--bad); }
.st-none, .st-unknown, .st-nodata { background: var(--none); color: #5E5E68; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: rgba(74,222,128,.12); color: var(--ok); }
.pill-partial { background: rgba(251,191,36,.12); color: var(--partial); }
.pill-blocked { background: rgba(251,113,133,.14); color: var(--bad); }
.pill-none, .pill-unknown, .pill-nodata { background: var(--none); color: var(--dim); }
.pill-accent { background: rgba(157,140,255,.14); color: #C9C0FF; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.tag-accent { color: #C9C0FF; border-color: #3A3363; }
.spark { display: inline-flex; gap: 2px; align-items: center; }
.spark i { width: 4px; height: 16px; border-radius: 2px; background: #24242B; }
.spark i.st-ok { background: #2F9E5C; } .spark i.st-partial { background: #C9961C; } .spark i.st-blocked { background: #E25A72; }

/* ---------- лендинг ---------- */
.eyebrow { margin: 0 0 12px; font: 500 13px var(--mono); color: var(--accent); letter-spacing: .06em; text-transform: uppercase; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; color: var(--muted); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; font-weight: 650; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
.lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 520px; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.facts { margin: 0; font-size: 13px; color: var(--dim); display: flex; gap: 18px; flex-wrap: wrap; }
.preview { flex: 1 1 480px; min-width: 0; position: relative; padding-bottom: 64px; }
.preview-card { background: var(--surface); border: 1px solid #24242B; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.preview-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.preview-body { padding: 6px 18px 12px; overflow-x: auto; }
.prow { display: grid; grid-template-columns: minmax(130px, 1.6fr) repeat(5, 40px); gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid #1C1C22; }
.prow.head { border-top: 0; font: 500 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .04em; }
.prow > span:not(:first-child) { display: flex; justify-content: center; }
.srv { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.srv b { font-size: 14.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv code { font-size: 12px; color: var(--dim); }
.tg-bubble { position: absolute; right: -8px; bottom: 0; width: min(360px, 92%); background: #17212B; border: 1px solid #243444; border-radius: 14px; padding: 14px 16px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); display: flex; gap: 12px; }
.tg-ava { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #2B2550; display: inline-flex; align-items: center; justify-content: center; }
.tg-bubble small { font-size: 13px; font-weight: 600; color: #8EC5F4; }
.tg-bubble p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #E6EDF3; }
.strip { border-top: 1px solid #1A1A20; border-bottom: 1px solid #1A1A20; background: var(--bg-2); }
.strip .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.isps { display: flex; gap: 10px; flex-wrap: wrap; }
.isps span { padding: 7px 12px; border: 1px solid #24242B; border-radius: 8px; font-size: 13px; color: var(--text-2); }
.section { padding-top: 96px; padding-bottom: 40px; }
.section h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; max-width: 680px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step .n { font: 500 13px var(--mono); color: var(--dim); }
.step h3, .feature h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 600; }
.step p, .feature p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 40px 0 56px; }
.feature { background: var(--bg-2); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.feature .ic { width: 36px; height: 36px; border-radius: 9px; background: #17171C; border: 1px solid #24242B; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2); margin-bottom: 6px; }
.band { border-top: 1px solid #1A1A20; background: var(--bg-2); }
.band .wrap { padding-top: 96px; padding-bottom: 96px; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.band-head p { margin: 0; color: var(--muted); max-width: 380px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid #24242B; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.plan.rec { border-color: #5B4FB0; }
.plan-head { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 44px; font-weight: 650; letter-spacing: -0.03em; }
.price span { color: var(--dim); }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.connect { padding-top: 96px; padding-bottom: 96px; }
.connect-card { background: var(--surface); border: 1px solid #24242B; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 48px; }
.connect-card > div { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.connect-card > form { flex: 1 1 420px; min-width: 0; }
.connect-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.ticks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); margin-top: 8px; }
.ticks span { display: flex; gap: 10px; align-items: center; }
.faq { max-width: 820px; padding-bottom: 96px; }
.faq h2 { margin-bottom: 24px; font-size: 34px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; font-weight: 550; cursor: pointer; list-style: none; min-height: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 1.6px solid var(--dim); border-bottom: 1.6px solid var(--dim); transform: rotate(45deg) translateY(-3px); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin: 12px 0 0; color: var(--muted); line-height: 1.65; }

/* ---------- формы ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 550; font-size: 14px; }
.field small { font-weight: 400; color: var(--dim); }
input[type=text], input[type=url], input[type=password], input[type=number], input:not([type]), select {
  height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: 400 15px var(--sans); width: 100%;
}
select { padding-right: 32px; }
input::placeholder { color: #6E6E78; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(157,140,255,.18); }
.form details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.form details .field { margin-top: 12px; }
.hp { position: absolute; left: -9999px; }
.err, .flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-size: 14.5px; }
.err { background: rgba(251,113,133,.08); border: 1px solid rgba(251,113,133,.35); color: #FECDD6; }
.flash { background: rgba(157,140,255,.06); border: 1px solid rgba(157,140,255,.3); color: #DCD6FF; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

/* ---------- дашборд ---------- */
.dash { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.savebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border: 1px dashed #2E2A4A; border-radius: 12px; background: rgba(157,140,255,.05); font-size: 14px; color: #C9C0FF; }
.savebar span { display: flex; gap: 10px; align-items: center; }
.incident { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: rgba(251,113,133,.07); border: 1px solid rgba(251,113,133,.28); }
.incident.warn { background: rgba(251,191,36,.06); border-color: rgba(251,191,36,.28); }
.incident > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.incident b { font-size: 16px; font-weight: 600; }
.incident span { font-size: 14px; color: #D4A9B2; line-height: 1.5; }
.incident.warn span { color: #E3CF9C; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.tile small { font-size: 13px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.tile b { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; }
.layout { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.main-col { flex: 999 1 720px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.panel-body { padding: 16px 20px; }
.panel-foot { padding: 12px 20px; font-size: 12.5px; color: var(--dim); border-top: 1px solid #1A1A20; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--dim); }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.table-scroll { overflow-x: auto; }
table.servers { width: 100%; border-collapse: collapse; font-size: 14px; }
.servers th { padding: 10px 8px; font: 500 11px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .04em; text-align: left; border-bottom: 1px solid #1C1C22; white-space: nowrap; }
.servers td { padding: 12px 8px; border-bottom: 1px solid #1A1A20; vertical-align: middle; white-space: nowrap; }
.servers th:first-child, .servers td:first-child { padding-left: 20px; }
.servers th:last-child, .servers td:last-child { padding-right: 20px; }
.servers .c { text-align: center; }
.servers tr:hover td { background: #15151A; }
.servers tr.off td { opacity: .5; }
.servers .srv .tags { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.cards { display: none; flex-direction: column; gap: 12px; padding: 12px; }
.scard { background: var(--surface-2); border: 1px solid #1C1C22; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.scard.off { opacity: .6; }
.scard-head { display: flex; align-items: flex-start; gap: 8px; }
.scard-head .srv { flex: 1; }
.scard-head .srv b { white-space: normal; font-size: 16px; }
.ops { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ops div { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 9px; background: var(--bg-2); min-width: 0; font-size: 12px; color: #C4C4CC; }
.ops div span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scard-foot { display: flex; align-items: center; gap: 10px; }
.scard-foot .spark { flex: 1; }
.scard-foot .spark i { flex: 1; width: auto; height: 14px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #1C1C22; }
.list li:first-child { border-top: 0; padding-top: 4px; }
.list .dot { margin-top: 7px; }
.list div { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 14px; line-height: 1.45; }
.list time, .list small { font: 400 12px var(--mono); color: var(--dim); }
.box { padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid #1C1C22; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.box code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }
.kv { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.group { border: 1px solid #24242B; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.group-head h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.members { display: flex; flex-direction: column; gap: 8px; }
.member { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.member .srv b { font-size: 14px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { height: 36px; width: auto; font-size: 13.5px; }
.hint { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.host-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid #1A1A20; }
.foot .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }

/* ---------- узкие экраны ---------- */
@media (max-width: 860px) {
  .wrap, .wrap-wide { padding: 0 16px; }
  .hero { padding-top: 40px; gap: 40px; }
  .section { padding-top: 64px; }
  .band .wrap, .connect { padding-top: 64px; padding-bottom: 64px; }
  .connect-card { padding: 22px; gap: 28px; }
  .nav a:not(.btn) { display: none; }
  .table-scroll { display: none; }
  .cards { display: flex; }
  .dash { padding-top: 16px; gap: 14px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile b { font-size: 26px; }
  .panel-head, .panel-body { padding-left: 16px; padding-right: 16px; }
  .tg-bubble { right: 0; }
}

/* цвета точек и мелочи (без inline-стилей — их запрещает CSP) */
.c-accent { color: var(--accent); } .c-ok { color: var(--ok); } .c-partial { color: var(--partial); } .c-bad { color: var(--bad); } .c-muted { color: var(--muted); }
.h2-like { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { padding: 0; margin-bottom: 8px; font-weight: 550; font-size: 14px; }
.subhead { font-size: 13px; font-weight: 500; color: var(--dim); margin-bottom: 6px; letter-spacing: 0; }
progress.meter { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--line); overflow: hidden; }
progress.meter::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
progress.meter::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
progress.meter::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.tile b .dim { font-size: 18px; font-weight: 500; }
.num-sm { width: 6.5em !important; height: 36px !important; } form.inline { display: flex; gap: 6px; align-items: center; } form.inline select { height: 36px; width: auto; }

/* выбор типа панели */
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.seg-item { position: relative; display: flex; min-height: 56px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface-2); cursor: pointer; font-weight: 400; }
.seg-item input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-item span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.seg-item b { font-size: 14.5px; font-weight: 600; }
.seg-item small { font-size: 12px; color: var(--dim); line-height: 1.35; }
.seg-item:has(input:checked) { border-color: var(--accent); background: rgba(157,140,255,.08); }
.seg-item:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
[hidden] { display: none !important; }
/* Админка: пул IP */
.form.form-row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.form-row .field { flex: 1 1 110px; min-width: 0; }
.form-row .field-wide { flex-basis: 190px; }
.form-row .btn { flex: none; }
/* Замена IP у клиента */
.pool-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #1C1C22; }
.pool-row:first-child { border-top: 0; }
.pool-row .inline-form select { min-width: 0; }
.stock { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 640px) { .pool-row { grid-template-columns: 1fr; } }
.list .grow { flex: 1; min-width: 0; }
.list .row-btns { flex: none; align-self: center; display: flex; gap: 6px; }
.list .row-btns { flex-direction: row; flex-wrap: nowrap; align-items: center; }
.servers td.c small.dpi, .ops small.dpi { display: block; font: 600 9.5px var(--mono); color: var(--bad); letter-spacing: .02em; margin-top: 2px; }
.row-btns.tight { gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }
.btn-icon { padding: 0 9px; } .btn-icon svg { display: block; } .btn-icon.is-off { color: var(--partial); }
/* Вкладки кабинета */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 550; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-badge { font: 600 11px var(--mono); background: rgba(251,113,133,.15); color: var(--bad); border-radius: 999px; padding: 1px 7px; }
.tab-body { display: flex; flex-direction: column; gap: 20px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 640px) { .settings-grid { grid-template-columns: 1fr; } }
/* Чек-лист настройки */
.onboard { margin-bottom: 20px; }
.steps { list-style: none; margin: 0; padding: 6px 18px 14px; display: flex; flex-direction: column; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #1C1C22; font-size: 14.5px; }
.steps li:first-child { border-top: 0; }
.steps li .txt { flex: 1; min-width: 0; }
.steps li.done .txt { color: var(--muted); text-decoration: line-through; text-decoration-color: #3a3a44; }
.help { font-size: 13.5px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--accent); }
.help ol { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.help p { margin: 6px 0 0; }
/* Оплата */
.plans-mini { display: flex; flex-direction: column; gap: 8px; }
.plan-mini { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #24242B; border-radius: 10px; background: var(--surface-2); }
.plan-mini.cur { border-color: #3A3363; }
.plan-mini .dim { font-size: 13px; }
.topup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (max-width: 640px) { .plan-mini { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .tabs a { padding: 10px 10px; font-size: 14px; } }
.usage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } @media (max-width: 900px) { .usage-grid { grid-template-columns: 1fr; } }
.servers td.c, .servers th.c { padding-left: 4px; padding-right: 4px; }
.servers .row-btns.tight .btn-icon { padding: 0 7px; }
