/* CRACKED site. Palette from the CRACKED logo canvas: black ground, signal red. */
:root {
  --bg: #0A0A0A;
  --bg-2: #101010;
  --panel: #161616;
  --panel-2: #1D1D1D;
  --line: #272727;
  --line-2: #363636;
  --text: #F4F4F4;
  --muted: #A6A6A6;
  --red: #E10600;
  --red-hi: #FF4D3D;
  --red-lo: #9E0B0F;
  --red-press: #B80500;
  --ok: #46D98A;
  --warn: #FFB224;
  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --wrap: 1180px;
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--red-hi); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- wordmark: the fractured logotype from the design ---------- */
.wordmark {
  position: relative; display: inline-block; vertical-align: middle;
  font-family: var(--display); font-weight: 900; line-height: .82;
  letter-spacing: .027em; color: var(--red); font-size: 1em;
}
.wm { display: block; white-space: nowrap; }
.wm--top { clip-path: polygon(0% 0%, 100% 0%, 100% 54%, 86% 45%, 74% 58%, 61% 41%, 48% 56%, 35% 43%, 22% 59%, 13% 46%, 0% 52%); }
.wm--bot {
  position: absolute; top: 0; left: 0; opacity: .62; transform: translate(.032em, .027em);
  clip-path: polygon(0% 52%, 13% 46%, 22% 59%, 35% 43%, 48% 56%, 61% 41%, 74% 58%, 86% 45%, 100% 54%, 100% 100%, 0% 100%);
}

/* ---------- type ---------- */
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--red-hi); margin-bottom: 14px; }
.h-display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.h-xl { font-size: clamp(2.6rem, 6.5vw, 4.8rem); }
.h-lg { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.h-md { font-size: 1.7rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

.crack { display: flex; align-items: center; gap: 14px; margin: 18px 0 26px; }
.crack::before, .crack::after { content: ""; width: 56px; height: 3px; background: var(--red); }
.crack i { width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }
.crack--left::before { display: none; }
.crack--center { justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  --cut: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border: 0; cursor: pointer;
  font: 700 .95rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: var(--red); text-decoration: none !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  transition: background .15s;
}
.btn:hover { background: var(--red-press); }
.btn:focus-visible { clip-path: none; outline-offset: 2px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text); }
.btn--ghost:hover { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--red-hi); }
.btn--danger { background: transparent; box-shadow: inset 0 0 0 1px var(--red-lo); color: var(--red-hi); }
.btn--danger:hover { background: var(--red-lo); color: #fff; }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .8rem; --cut: 7px; }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; padding: 0 34px; font-size: 1rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--red-hi); cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10, 10, 10, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { font-size: 34px; display: inline-flex; align-items: center; padding: 6px 0; }
.brand:hover { text-decoration: none; }
.nav__links { display: flex; gap: 4px; margin-right: auto; }
.nav__link { padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: .95rem; border-radius: var(--r); }
.nav__link:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.nav__link[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__link--dash { color: var(--text); font-weight: 600; }
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__user { color: var(--muted); font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: var(--r); cursor: pointer; }
.nav__toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ---------- sections ---------- */
.section { padding-block: 88px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lede { margin-inline: auto; }
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.feature h3 { font-family: var(--display); font-weight: 800; font-size: 1.55rem; text-transform: uppercase; margin: 16px 0 8px; letter-spacing: .01em; }
.feature p { color: var(--muted); margin: 0; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; background: #1f0a09; border: 1px solid var(--red-lo); border-radius: var(--r); color: var(--red-hi); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 76px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none;
  background: radial-gradient(55% 60% at 50% 0%, rgba(225, 6, 0, .18), transparent 72%);
}
.hero > .wrap { position: relative; }
.hero__mark { font-size: clamp(76px, 18.5vw, 236px); margin-bottom: 8px; }
.hero__orn { justify-content: center; margin: 22px 0 30px; }
.hero__tag { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: .02em; line-height: 1.05; max-width: 20ch; margin: 0 auto 18px; }
.hero .lede { margin-inline: auto; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: .85rem; color: var(--muted); }

.preview { max-width: 980px; margin: 64px auto 0; text-align: left; position: relative; }
.preview__tag { position: absolute; top: -14px; right: 20px; background: var(--red); color: #fff; font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; }
.preview__frame { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 18px; box-shadow: 0 30px 80px rgba(225, 6, 0, .10); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border-top: 3px solid var(--red); background: var(--panel); }
.step::before { counter-increment: step; content: "0" counter(step); font: 900 2.6rem/1 var(--display); color: var(--red); display: block; margin-bottom: 12px; }
.step h3 { font: 800 1.35rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; }
.plan--hl { border-color: var(--red); background: linear-gradient(180deg, #1d0b0a, var(--panel) 40%); }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--red); color: #fff; font: 700 .7rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; }
.plan__name { font: 900 1.9rem/1 var(--display); text-transform: uppercase; }
.plan__tag { color: var(--muted); font-size: .92rem; margin: 8px 0 20px; min-height: 2.8em; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__amount { font: 900 3.4rem/1 var(--display); }
.plan__per { color: var(--muted); font-size: .9rem; }
.plan__slots { font-weight: 600; margin: 14px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan__list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; font-size: .95rem; color: var(--muted); }
.plan__list li { display: flex; gap: 10px; }
.plan__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .55em; background: var(--red); transform: rotate(45deg); }
.plan .btn { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--panel); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--red-hi); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 70ch; }

/* ---------- cta band ---------- */
.band { background: var(--red); color: #fff; padding: 64px 0; text-align: center; }
.band h2 { font: 900 clamp(2rem, 5vw, 3.4rem)/1 var(--display); text-transform: uppercase; margin-bottom: 18px; }
.band .btn { background: #0A0A0A; }
.band .btn:hover { background: #000; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: var(--bg); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { font-size: 38px; }
.footer__blurb { color: var(--muted); max-width: 34ch; margin: 14px 0 0; }
.footer h4 { font: 600 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { color: var(--text); }
.footer__fine { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); max-width: 90ch; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .9rem; }
.field__hint { font-size: .82rem; color: var(--muted); }
.input {
  width: 100%; min-height: 48px; padding: 0 14px; font: inherit; color: var(--text);
  background: #0d0d0d; border: 1px solid var(--line-2); border-radius: var(--r);
}
.input::placeholder { color: #707070; }
.input:hover { border-color: #4a4a4a; }
.input:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(255, 77, 61, .25); }
.input[aria-invalid="true"] { border-color: var(--red-hi); }
.pw { position: relative; }
.pw .input { padding-right: 70px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; background: none; border: 0; color: var(--muted); font: 600 .78rem var(--body); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.pw button:hover { color: var(--text); }
.form-error { background: #2a0e0c; border: 1px solid var(--red-lo); color: #ffb3ab; padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-size: .92rem; }
.form-ok { background: #0c2418; border: 1px solid #1d6b43; color: #a6f0c9; padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-size: .92rem; }

.auth { min-height: calc(100vh - 68px - 300px); display: grid; place-items: center; padding: 56px 20px; position: relative; }
.auth::before { content: ""; position: absolute; inset: 0 0 auto; height: 380px; background: radial-gradient(50% 70% at 50% 0%, rgba(225, 6, 0, .14), transparent 75%); pointer-events: none; }
.auth__card { position: relative; width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r); padding: 34px 30px 30px; }
.auth__card h1 { font: 900 2.4rem/1 var(--display); text-transform: uppercase; margin-bottom: 6px; }
.auth__alt { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- docs / prose ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding-block: 56px 96px; }
.docs__toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: .92rem; }
.docs__toc a { color: var(--muted); padding: 7px 12px; border-left: 2px solid var(--line); }
.docs__toc a:hover { color: var(--text); text-decoration: none; border-left-color: var(--red); }
.prose { max-width: 78ch; }
.prose h1 { font: 900 clamp(2.4rem, 5vw, 3.6rem)/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.prose h2 { font: 900 2rem/1.05 var(--display); text-transform: uppercase; margin: 56px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font: 800 1.3rem/1.1 var(--display); text-transform: uppercase; margin: 30px 0 10px; letter-spacing: .02em; }
.prose p, .prose li { color: #cfcfcf; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose code { font: .88em var(--mono); background: var(--panel-2); padding: 2px 6px; border-radius: 4px; color: #ffd0cb; }
.prose pre code { background: none; padding: 0; color: inherit; }
.callout { border-left: 3px solid var(--red); background: var(--panel); padding: 14px 18px; margin: 20px 0; border-radius: 0 var(--r) var(--r) 0; }
.callout p { margin: 0; }
.codeblock { position: relative; margin: 16px 0 24px; }
.codeblock pre { margin: 0; background: #0d0d0d; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 18px; overflow-x: auto; font: .85rem/1.65 var(--mono); color: #e8e8e8; tab-size: 2; }
.codeblock .copy { position: absolute; top: 8px; right: 8px; }
.codeblock__label { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }

/* ---------- download ---------- */
.dl { max-width: 720px; margin: 0 auto; text-align: center; }
.dl__card { margin-top: 36px; text-align: left; display: grid; gap: 18px; }
.dl__row { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.hash { font: .78rem var(--mono); color: var(--muted); word-break: break-all; }
.dl__faq { margin-top: 36px; text-align: left; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; padding-block: 36px 90px; align-items: start; }
.dash__main { min-width: 0; }
.dash__side { position: sticky; top: 92px; display: grid; gap: 4px; }
.dash__who { padding: 0 14px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.dash__who strong { display: block; font: 800 1.4rem/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.dash__who span { font-size: .85rem; color: var(--muted); }
.tab { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--muted); font-weight: 600; border-radius: var(--r); border-left: 3px solid transparent; }
.tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.tab[aria-current="page"] { color: var(--text); background: var(--panel); border-left-color: var(--red); }
.dash__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dash__head h1 { font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--display); text-transform: uppercase; }
.dash__live { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.dash__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.dash__live[data-state="error"] i { background: var(--red-hi); }
.dash__live[data-state="loading"] i { background: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--r); padding: 16px 18px 14px; }
.kpi__label { font: 600 .72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi__value { font: 900 clamp(2rem, 3.4vw, 2.7rem)/1.1 var(--display); margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi__sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; margin-bottom: 18px; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel__head h2 { font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.panel h3 { font: 800 1.2rem/1.1 var(--display); text-transform: uppercase; margin-bottom: 6px; }

.chart svg { display: block; width: 100%; height: auto; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 11px var(--body); }
.chart .area { fill: rgba(225, 6, 0, .16); }
.chart .line { fill: none; stroke: var(--red-hi); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__empty { color: var(--muted); font-size: .9rem; padding: 36px 0; text-align: center; }

.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.bot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 14px; }
.bot[data-status="running"] { border-top: 3px solid var(--ok); }
.bot[data-status="break"] { border-top: 3px solid var(--warn); }
.bot[data-status="error"] { border-top: 3px solid var(--red); }
.bot__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bot__name { font: 800 1.45rem/1.1 var(--display); text-transform: uppercase; overflow-wrap: anywhere; letter-spacing: .01em; }
.bot__meta { color: var(--muted); font-size: .88rem; margin-top: 3px; overflow-wrap: anywhere; }
.bot__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat__label { font: 600 .68rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat { min-width: 0; }
.stat__value { font: 800 1.45rem/1.2 var(--display); font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat__value--text { font-size: 1.15rem; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bot__spark { height: 44px; }
.bot__spark-inner { height: 100%; display: flex; align-items: center; font-size: .8rem; }
.row-actions { margin-top: 14px; }
input[type="checkbox"] { accent-color: var(--red); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.bot__spark svg { width: 100%; height: 100%; display: block; }
.spark-line { fill: none; stroke: var(--red-hi); stroke-width: 1.75; stroke-linejoin: round; }
.spark-area { fill: rgba(225, 6, 0, .14); }
.bot__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.bot__actions { display: flex; gap: 6px; }
.bot__msg { font-size: .85rem; color: var(--warn); margin: 0; }

.pill { display: inline-flex; align-items: center; gap: 7px; font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px 6px 9px; border-radius: 99px; background: #1f1f1f; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--running { color: var(--ok); border-color: #1d5a3b; background: #0e1f17; }
.pill--break { color: var(--warn); border-color: #6b4a0f; background: #231a08; }
.pill--error { color: var(--red-hi); border-color: var(--red-lo); background: #2a0e0c; }
.pill--offline::before, .pill--stopped::before { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }

.empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--panel); }
.empty h2 { font: 900 2rem/1 var(--display); text-transform: uppercase; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.banner { background: #2a0e0c; border: 1px solid var(--red-lo); border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; font-size: .92rem; }
.skeleton { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }

.meter { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.meter i { display: block; height: 100%; background: var(--red); width: 0; transition: width .4s; }
.keybox { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.keybox code { flex: 1 1 320px; display: block; padding: 14px 16px; background: #0d0d0d; border: 1px solid var(--red-lo); border-radius: var(--r); font: 1rem var(--mono); color: #fff; overflow-wrap: anywhere; user-select: all; }
.vsteps { counter-reset: v; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.vsteps > li { counter-increment: v; position: relative; padding-left: 52px; }
.vsteps > li::before { content: counter(v); position: absolute; left: 0; top: 0; width: 36px; height: 36px; display: grid; place-items: center; font: 900 1.3rem/1 var(--display); background: var(--red); color: #fff; }
.vsteps h3 { margin-bottom: 4px; }
.vsteps p { color: var(--muted); margin: 0 0 10px; }
.listen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: #0d0d0d; border: 1px solid var(--line-2); }
.listen__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); animation: pulse 1.6s infinite; }
.listen[data-state="connected"] { border-color: #1d6b43; background: #0c2418; }
.listen[data-state="connected"] .listen__dot { background: var(--ok); animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
.danger-zone { border-color: var(--red-lo); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line-2); border-top: 3px solid var(--red); border-radius: var(--r); padding: 26px; width: calc(100% - 32px); max-width: 440px; }
dialog::backdrop { background: rgba(0, 0, 0, .75); }
dialog h2 { font: 900 1.8rem/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
dialog .row { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: grid; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); padding: 12px 16px; border-radius: var(--r); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); font-size: .92rem; }
.toast--error { border-left-color: var(--red); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__toggle { display: grid; place-items: center; order: 2; }
  .brand { order: 1; }
  .nav__links, .nav__cta { display: none; }
  .nav--open .nav__in { flex-wrap: wrap; padding-bottom: 14px; row-gap: 6px; }
  .nav--open .nav__links, .nav--open .nav__cta { display: flex; width: 100%; flex-direction: column; align-items: stretch; margin: 0; }
  .nav--open .nav__links { order: 3; }
  .nav--open .nav__cta { order: 4; }
  .nav--open .nav__link { padding: 14px; }
  .nav--open .nav__cta { gap: 10px; padding-top: 6px; }
  .nav--open .nav__cta .btn { width: 100%; }
  .nav--open .nav__user { max-width: none; padding: 4px 14px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block-start: 24px; }
  .dash__side { position: static; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; overflow-x: auto; }
  .dash__who { display: none; }
  .tab { justify-content: center; border-left: 0; border-bottom: 3px solid transparent; padding: 12px 10px; white-space: nowrap; }
  .tab[aria-current="page"] { border-bottom-color: var(--red); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs__toc { position: static; grid-auto-flow: column; overflow-x: auto; }
  .docs__toc a { border-left: 0; border-bottom: 2px solid var(--line); white-space: nowrap; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding-block: 60px; }
  .grid--3, .grid--2, .plans, .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bots { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero__cta .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  .auth__card { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
