/* mmsRoblox — общая дизайн-система (стиль G2BULK: чёрно-серый фон, жёлтые акценты, Poppins) */
:root {
  --bg: #030712; --bg-2: #0b1020; --bg-3: #111827;
  --panel: rgba(255,255,255,.02); --panel-2: rgba(255,255,255,.045); --panel-solid: #0b1120;
  --border: rgba(255,255,255,.06); --border-2: rgba(255,255,255,.12);
  --text: #ffffff; --text-2: #d1d5db; --muted: #9ca3af; --muted-2: #6b7280;
  --accent: #facc15; --accent-2: #fde047; --accent-3: #eab308; --accent-soft: rgba(250,204,21,.1); --accent-glow: rgba(234,179,8,.25);
  --line: rgba(250,204,21,.8); --line-soft: rgba(250,204,21,.2);
  --chart-1: #fde047; --chart-2: #eab308;
  --ok: #22c55e; --ok-soft: rgba(34,197,94,.12); --warn: #f59e0b; --warn-soft: rgba(245,158,11,.12); --bad: #ef4444; --bad-soft: rgba(239,68,68,.12);
  --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 12px; --r-sm: 8px; --r-lg: 16px;
  --shadow: 0 10px 40px rgba(0,0,0,.5);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: #fef08a; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(250,204,21,.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.14); }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 10px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.mt { margin-top: 16px; } .mt-lg { margin-top: 28px; } .mb { margin-bottom: 16px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--panel-2); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; text-decoration: none; }
.btn:hover { background: rgba(255,255,255,.08); border-color: rgba(250,204,21,.4); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, var(--accent-3)); border-color: transparent; color: #fff; box-shadow: 0 6px 24px var(--accent-glow); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 8px 30px var(--accent-glow); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-danger { background: var(--bad-soft); border-color: rgba(255,92,106,.3); color: #ff8a94; }
.btn-danger:hover { background: rgba(255,92,106,.22); }
.btn-ok { background: var(--ok-soft); border-color: rgba(47,211,122,.3); color: #6fe8a5; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-icon { padding: 8px; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Поля */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; color: var(--muted); font-weight: 500; }
.input, .select, .textarea { width: 100%; padding: 11px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: rgba(0,0,0,.25); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--muted-2); }
.input.mono { font-family: var(--mono); }
.input-wrap { position: relative; }
.input-wrap .suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-family: var(--mono); font-size: 13px; pointer-events: none; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.textarea { min-height: 90px; resize: vertical; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-2); font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.hint { font-size: 12.5px; color: var(--muted); }
.error-text { color: #ff8a94; font-size: 13px; }

/* Карточки */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; position: relative; }
.card-solid { background: var(--panel-solid); }
.card-title { font-size: 15px; font-weight: 700; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.kpi { display: flex; flex-direction: column; gap: 6px; }
.kpi .v { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.kpi .v small { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.kpi .d { font-size: 12.5px; color: var(--muted); }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* Бейджи статусов */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: #6fe8a5; background: var(--ok-soft); border-color: rgba(47,211,122,.25); }
.badge.warn { color: #ffd27a; background: var(--warn-soft); border-color: rgba(245,185,66,.25); }
.badge.bad { color: #ff8a94; background: var(--bad-soft); border-color: rgba(255,92,106,.25); }
.badge.info { color: #fef08a; background: var(--accent-soft); border-color: rgba(250,204,21,.25); }
.badge.neutral { color: var(--muted); background: var(--panel-2); border-color: var(--border); }
.badge.live::before { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .4; transform: scale(.7);} }

/* Таблицы */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.02); }
.table .r { text-align: right; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r); }
.table-wrap .table th { position: sticky; top: 0; background: var(--bg-3); z-index: 1; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }

/* Табы-пилюли */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: 12px; }
.tabs button { background: transparent; border: 0; color: var(--muted); padding: 7px 13px; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: 13px; transition: .15s; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.tabs .cnt { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.tabs .cnt.bad { color: #ff8a94; }

/* Тосты */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { background: var(--panel-solid); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; animation: toastIn .25s ease; max-width: 360px; }
.toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--bad); } .toast.warn { border-left-color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: none;} }

/* Модалка */
.modal-bg { position: fixed; inset: 0; background: rgba(3,5,10,.7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 900; padding: 16px; animation: fade .2s ease; }
.modal { width: 100%; max-width: 520px; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); animation: toastIn .25s ease; max-height: 92vh; overflow: auto; }
/* пока открыт баннер cookie (consent.js задаёт --mms-cc-h), окно заканчивается над ним — кнопки окна не перекрыты */
.modal-bg { padding-bottom: max(16px, var(--mms-cc-h, 0px)); }
.modal { max-height: calc(92vh - var(--mms-cc-h, 0px)); }
.modal h3 { margin-bottom: 14px; font-size: 18px; }
@keyframes fade { from { opacity: 0;} to { opacity: 1;} }

/* Код / копирование */
.code-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: var(--r-sm); font-family: var(--mono); font-size: 13.5px; overflow: hidden; }
.code-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

/* Аватар Roblox */
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); object-fit: cover; flex: none; }
.avatar.lg { width: 56px; height: 56px; }
.avatar-ph { display: grid; place-items: center; color: var(--muted); font-weight: 700; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.logo svg { width: 30px; height: 30px; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.logo b { color: var(--accent-2); }

/* Статус-страница */
.st-hero { border-radius: var(--r-lg); padding: 32px; border: 1px solid var(--border); position: relative; overflow: hidden; background: radial-gradient(900px 300px at 10% -20%, rgba(47,211,122,.12), transparent 60%), var(--panel); }
.st-hero.degraded { background: radial-gradient(900px 300px at 10% -20%, rgba(245,185,66,.14), transparent 60%), var(--panel); }
.st-hero.down { background: radial-gradient(900px 300px at 10% -20%, rgba(255,92,106,.16), transparent 60%), var(--panel); }
.st-hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 14px 0 8px; }
.st-hero h1 em { font-style: normal; color: var(--ok); }
.st-hero.degraded h1 em { color: var(--warn); } .st-hero.down h1 em { color: var(--bad); }
.st-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 22px; }
.st-metric { background: rgba(0,0,0,.25); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; }
.st-metric .v { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }
.st-metric .v small { font-size: 13px; color: var(--muted); margin-left: 3px; font-weight: 600; }
.st-comp { display: grid; grid-template-columns: 230px 80px 1fr; gap: 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--border); }
.st-comp:first-of-type { border-top: 0; }
.st-comp .n { font-weight: 700; } .st-comp .d { font-size: 13px; color: var(--muted); margin-top: 3px; }
.st-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; }
.st-bars i { display: block; height: 28px; border-radius: 4px; background: rgba(255,255,255,.07); transition: transform .12s; }
.st-bars i:hover { transform: scaleY(1.15); }
.st-bars i.ok { background: var(--ok); } .st-bars i.warn { background: var(--warn); } .st-bars i.bad { background: var(--bad); }
.st-bars-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-top: 6px; }
.st-inc { padding: 14px 0; border-top: 1px solid var(--border); }
.st-inc:first-child { border-top: 0; }
.st-inc .t { font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.st-inc .u { font-size: 13.5px; color: var(--text-2); margin-top: 6px; padding-left: 12px; border-left: 2px solid var(--border-2); }
.st-inc .u .label { display: block; margin-bottom: 2px; }
@media (max-width: 720px) { .st-comp { grid-template-columns: 1fr 1fr; } .st-comp .bars { grid-column: 1 / -1; } .st-hero { padding: 22px; } }

/* График-столбцы */
.chart { width: 100%; position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--accent); opacity: .85; transition: opacity .15s; rx: 3; }
.chart .bar:hover { opacity: 1; }
.chart .bar.today { fill: var(--accent-2); }
.chart .grid { stroke: rgba(255,255,255,.06); }
.chart text { fill: var(--muted-2); font-family: var(--mono); font-size: 10px; }
.chart-tip { position: absolute; pointer-events: none; background: var(--bg-3); border: 1px solid var(--border-2); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-family: var(--mono); transform: translate(-50%, calc(-100% - 10px)); white-space: nowrap; opacity: 0; transition: opacity .1s; z-index: 5; }

/* График: реальные пиксели, без растяжения подписей */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { opacity: .9; transition: opacity .15s; }
.chart .bar.hover { opacity: 1; filter: brightness(1.15); }
.chart .bar.today { filter: drop-shadow(0 0 8px rgba(253,224,71,.6)); }
.chart .grid { stroke: rgba(255,255,255,.07); }
.chart text { fill: var(--muted-2); font-family: var(--mono); font-size: 11px; }

/* ---- G2BULK: общие элементы ---- */
body { background: linear-gradient(to bottom right, #030712, #111827 50%, #000) fixed; }
.btn-primary { background: linear-gradient(to right, #facc15, #eab308); color: #000; font-weight: 700; border-color: transparent; box-shadow: 0 20px 25px -5px rgba(234,179,8,.2), 0 8px 10px -6px rgba(234,179,8,.2); }
.btn-primary:hover { background: linear-gradient(to right, #fde047, #facc15); color: #000; filter: none; box-shadow: 0 20px 25px -5px rgba(234,179,8,.3), 0 8px 10px -6px rgba(234,179,8,.3); }
.btn-outline { background: transparent; border: 2px solid rgba(250,204,21,.4); color: #fef08a; font-weight: 700; }
.btn-outline:hover { background: rgba(250,204,21,.1); border-color: #facc15; color: #fef08a; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(250,204,21,.1); color: #fde047; font-size: 12px; font-weight: 600; }
.ytext { background: linear-gradient(to right, #fde047, #facc15 50%, #eab308); -webkit-background-clip: text; background-clip: text; color: transparent; }
::selection { background: rgba(250,204,21,.35); color: #fff; }

/* ===== Статус «Пульс сервиса» (публичная страница и кабинет) ===== */
.pulse { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: center; padding: 30px; border-radius: 24px; background: radial-gradient(500px 260px at 0% 50%, rgba(250,204,21,.09), transparent 70%), #030712; border: 1px solid rgba(250,204,21,.35); box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); }
.pulse.degraded { border-color: rgba(245,158,11,.5); } .pulse.down { border-color: rgba(239,68,68,.5); }
.pulse-ring { position: relative; width: 220px; height: 220px; margin: 0 auto; --st: #22c55e; }
.pulse-ring.degraded { --st: #f59e0b; } .pulse-ring.down { --st: #ef4444; }
.pulse-ring svg { width: 100%; height: 100%; }
.pulse-ring .orbit { fill: none; stroke: rgba(250,204,21,.35); stroke-width: 1.5; stroke-dasharray: 2 10; transform-origin: 100px 100px; animation: orbit 18s linear infinite; }
.pulse-ring .track { fill: none; stroke: rgba(255,255,255,.06); stroke-width: 12; }
.pulse-ring .arc { fill: none; stroke: url(#pgr); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 8px rgba(250,204,21,.55)); animation: arcIn 1.4s cubic-bezier(.2,.8,.2,1) both; }
.pulse-ring .core { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pulse-ring .core i { width: 118px; height: 118px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--st) 28%, transparent), transparent 70%); animation: corePulse 2.2s ease-in-out infinite; }
.ring-v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-v b { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: #fff; } .ring-v b small { font-size: 15px; color: #9ca3af; margin-left: 2px; }
.ring-v span { font-family: var(--mono); font-size: 11px; color: #9ca3af; letter-spacing: .12em; text-transform: uppercase; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes arcIn { from { stroke-dasharray: 0 999; } }
@keyframes corePulse { 0%, 100% { transform: scale(.82); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.pulse-main h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin: 14px 0 8px; }
.pulse-main h1 em { font-style: normal; background: linear-gradient(to right, #fde047, #eab308); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pulse.down .pulse-main h1 em { background: linear-gradient(to right, #fca5a5, #ef4444); -webkit-background-clip: text; background-clip: text; }
.pulse-main > p { font-size: 15.5px; color: #9ca3af; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: liveDot 1.8s infinite; display: inline-block; }
.live-dot.warn { background: #f59e0b; } .live-dot.bad { background: #ef4444; }
@keyframes liveDot { 0% { box-shadow: 0 0 0 0 rgba(250,204,21,.5); } 70% { box-shadow: 0 0 0 8px rgba(250,204,21,0); } 100% { box-shadow: 0 0 0 0 rgba(250,204,21,0); } }
.pulse-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.pm { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); display: flex; flex-direction: column; gap: 6px; }
.pm span { font-size: 12px; color: #9ca3af; } .pm b { font-size: 24px; font-weight: 800; color: #fde047; letter-spacing: -.02em; } .pm b small { font-size: 12px; color: #9ca3af; margin-left: 3px; font-weight: 600; }
.mbar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.06); overflow: hidden; } .mbar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(to right, #eab308, #fde047); animation: barIn 1.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes barIn { from { width: 0 !important; } }
.ecg { height: 64px; margin: 18px 0 40px; border-radius: 16px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.015); overflow: hidden; padding: 2px 0; }
.ecg svg { width: 100%; height: 100%; display: block; }
.ecg path { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ecg .base { stroke: rgba(250,204,21,.12); }
.ecg .beam { stroke: #facc15; stroke-dasharray: 180 1600; filter: drop-shadow(0 0 6px rgba(250,204,21,.9)); animation: beam 3.2s linear infinite; }
.ecg.degraded .beam { stroke: #f59e0b; } .ecg.down .beam { stroke: #ef4444; animation-duration: 6s; }
@keyframes beam { from { stroke-dashoffset: 1780; } to { stroke-dashoffset: 0; } }
.hive-head, .inc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.hive-head h2, .inc-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: #9ca3af; } .legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 11px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: #22c55e; } .legend i.warn { background: #f59e0b; } .legend i.bad { background: #ef4444; } .legend i.none { background: rgba(255,255,255,.12); }
.hive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 44px; }
.hive-card { padding: 18px; border-radius: 18px; background: #030712; border: 1px solid rgba(255,255,255,.07); transition: border-color .25s, transform .25s, box-shadow .25s; }
.hive-card:hover { border-color: rgba(250,204,21,.5); transform: translateY(-3px); box-shadow: 0 0 30px rgba(250,204,21,.07); }
.hc-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.hc-top .n { font-weight: 700; font-size: 15px; } .hc-top .d { font-size: 12.5px; color: #9ca3af; margin-top: 2px; line-height: 1.45; }
.hc-v { font-weight: 800; font-size: 18px; color: #4ade80; white-space: nowrap; } .hive-card.warn .hc-v { color: #fbbf24; } .hive-card.bad .hc-v { color: #f87171; } .hive-card.none .hc-v { color: #6b7280; }
.hive { width: 100%; height: auto; display: block; overflow: visible; }
.hx { fill: rgba(255,255,255,.06); transition: transform .2s, fill .2s; transform-box: fill-box; transform-origin: center; animation: hxIn .5s cubic-bezier(.2,.8,.2,1) both; cursor: default; }
.hx.ok { fill: #22c55e; fill-opacity: .85; } .hx.warn { fill: #f59e0b; } .hx.bad { fill: #ef4444; }
.hx:hover { transform: scale(1.25); fill-opacity: 1; }
.hx.today { stroke: #fde047; stroke-width: 1.6; animation: hxIn .5s both, hxPulse 1.8s ease-in-out .6s infinite; }
@keyframes hxIn { from { transform: scale(0); opacity: 0; } }
@keyframes hxPulse { 50% { filter: drop-shadow(0 0 5px rgba(250,204,21,.9)); } }
.hc-x { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: #6b7280; margin-top: 8px; }
.inc-empty { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 18px; border: 1px dashed rgba(34,197,94,.3); background: rgba(34,197,94,.05); color: #d1d5db; }
.inc-empty i { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #22c55e; color: #000; font-style: normal; font-weight: 800; box-shadow: 0 0 20px rgba(34,197,94,.4); }
.inc-line { position: relative; padding-left: 26px; } .inc-line::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(to bottom, rgba(250,204,21,.5), rgba(255,255,255,.05)); }
.inc { position: relative; margin-bottom: 14px; } .inc-dot { position: absolute; left: -25px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 3px solid #030712; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.inc.warn .inc-dot { background: #f59e0b; } .inc.bad .inc-dot { background: #ef4444; }
.inc-body { padding: 16px 18px; border-radius: 16px; background: #030712; border: 1px solid rgba(255,255,255,.07); }
.inc-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .inc-time { font-family: var(--mono); font-size: 11.5px; color: #6b7280; margin-top: 4px; }
.inc-u { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.05); font-size: 13.5px; color: #d1d5db; } .inc-u span { display: block; font-size: 11.5px; color: #9ca3af; margin-bottom: 3px; }
.st-foot { margin-top: 28px; font-size: 12.5px; color: #6b7280; line-height: 1.7; }
@media (max-width: 900px) { .pulse { grid-template-columns: 1fr; text-align: center; padding: 22px; } .pulse-main .chip { margin: 0 auto; } .pulse-metrics { grid-template-columns: 1fr; text-align: left; } .hive-grid { grid-template-columns: 1fr; } }
/* Текст жёлтых кнопок-ссылок всегда чёрный, какие бы правила для ссылок ни были у контейнера */
a.btn.btn-primary, a.btn.btn-primary:hover, a.btn.btn-primary:visited, button.btn.btn-primary { color: #000; }
/* Статус-страница: яркая рамка только у главного блока «пульса», карточки компонентов приглушены */
.hive-card { border-color: rgba(255,255,255,.07); }

/* Подвал: контакты — компактные кнопки, пояснение (адрес и для чего) — во всплывающей подсказке при наведении и фокусе.
   Лендинг, документация, правовая информация, статус. Подсказку можно навести мышкой и закрыть Esc (assets/footer.js).
   На сенсорных экранах подсказок нет — ник и адрес видны прямо в кнопке */
.ft-chips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-chips[hidden], .ft-chip[hidden] { display: none; }
.ft-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px 0 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); color: var(--text-2); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.ft-chip:hover, .ft-chip:focus-visible { border-color: rgba(250,204,21,.45); background: rgba(250,204,21,.05); color: #fff; }
.ft-chip:focus-visible { outline: 2px solid rgba(250,204,21,.6); outline-offset: 3px; }
.ft-chip-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(250,204,21,.12); color: var(--accent); }
.ft-chip-ic svg { width: 14px; height: 14px; }
.ft-tip { position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 30; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 10px 13px; border-radius: 12px; background: #111827; border: 1px solid rgba(250,204,21,.22); box-shadow: 0 14px 34px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 3px; text-align: left; white-space: normal; cursor: text; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity .15s ease, transform .15s ease; }
.ft-tip::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* мостик над зазором: курсор переходит на подсказку, и она не гаснет */
.ft-tip::after { content: ''; position: absolute; left: 17px; top: 100%; border: 6px solid transparent; border-top-color: rgba(250,204,21,.22); }
.ft-tip b { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.ft-tip span { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; }
.ft-chip:hover .ft-tip, .ft-chip:focus-visible .ft-tip { opacity: 1; transform: none; pointer-events: auto; }
.ft-chip.tip-off .ft-tip { opacity: 0; transform: translateY(4px); pointer-events: none; }
/* узкое окно с мышью (в том числе сильное увеличение): подсказка от левого края ряда кнопок и не шире него — без горизонтальной прокрутки */
@media (max-width: 480px) { .ft-chip { position: static; } .ft-tip { max-width: 100%; } .ft-tip::after { display: none; } }
@media (hover: none) {
  .ft-chip { position: relative; height: auto; min-height: 36px; padding-top: 4px; padding-bottom: 4px; white-space: normal; }
  .ft-tip { position: static; width: auto; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; opacity: 1; transform: none; pointer-events: auto; cursor: inherit; transition: none; }
  .ft-tip::before, .ft-tip::after, .ft-tip > span { display: none; }
  .ft-tip b { color: var(--muted); font-size: 12.5px; font-weight: 500; }
}
@media (prefers-reduced-motion: reduce) { .ft-tip { transition: none; } }
