@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Google+Sans:wght@500&display=swap");

:root {
  --bg: #050506;
  --panel: #0e0e10;
  --panel-2: #16161a;
  --line: #1f1f23;
  --line-2: #2a2a30;
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #8a8a93;
  --silver: #d4d4d8;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #f87171;
  --ok-tint: rgba(74, 222, 128, 0.12);
  --warn-tint: rgba(251, 191, 36, 0.12);
  --bad-tint: rgba(248, 113, 113, 0.12);
  --radius: 10px;
  --shine: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: radial-gradient(1100px 480px at 60% -220px, rgba(255, 255, 255, 0.07), transparent 70%) fixed, var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
svg { flex: none; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; }
.t2 { color: var(--text-2); }
.t3 { color: var(--text-3); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }

.h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #ffffff 30%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.logo-mark { display: block; flex: none; width: 36px; height: auto; }

.app { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  width: 248px; height: calc(100vh - 24px); position: sticky; top: 12px;
  margin: 12px 0 12px 12px;
  display: flex; flex-direction: column;
  padding: 16px 12px 12px;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, #0f0f12 0%, #0a0a0c 100%);
  box-shadow: var(--shine), 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden; white-space: nowrap;
  transition: width 0.18s ease, padding 0.18s ease;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 20px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-name { font-weight: 500; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; }
.brand-name small { display: block; font-size: 11.5px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.icon-btn {
  width: 30px; height: 30px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 8px; background: transparent; color: var(--text-3); cursor: pointer;
}
.icon-btn:hover { background: var(--panel-2); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-block { padding-top: 28px; }
.nav-label { font-size: 11px; font-weight: 500; color: var(--text-3); padding: 0 10px 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 8px; border-radius: 12px;
  color: var(--text-2); font-weight: 500;
  transition: background 0.12s, color 0.12s;
}
.tile {
  width: 30px; height: 30px; flex: none; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2);
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.tile svg { width: 16px; height: 16px; }
.nav a:hover { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.nav a:hover .tile { color: var(--text); border-color: #3a3a42; }
.nav a.active, .m-more.active summary { background: rgba(255, 255, 255, 0.05); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a.active .tile, .m-more.active .tile { background: linear-gradient(145deg, #fafafa 0%, #a1a1aa 100%); color: var(--bg); border-color: transparent; box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1); }
.nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: 11px; color: var(--text-2); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-card { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.side-card .row { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.side-card .row .t3 { margin-left: auto; font-weight: 400; font-size: 11.5px; }
.credit-card { gap: 6px; }
.credit-num { font-size: 26px; line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.credit-card.empty .credit-num, .credit-pill.empty { color: var(--bad); }
.credit-card .btn { margin-top: 6px; width: 100%; }
.credit-pill { align-items: center; height: 28px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.meter { height: 5px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: linear-gradient(90deg, #a1a1aa, #fafafa); }

.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--silver); }
.account { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.account:hover { background: rgba(255, 255, 255, 0.03); }
.account .who { min-width: 0; line-height: 1.3; }
.account .who div:last-child { font-size: 12px; color: var(--text-3); }
.account .icon-btn { margin-left: auto; }
.collapse-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  height: 38px; padding: 0 12px; margin-top: 2px;
  border: 0; border-top: 1px solid var(--line); border-radius: 0;
  background: transparent; color: var(--text-3);
  font: inherit; font-size: 13px; cursor: pointer;
}
.collapse-row:hover { color: var(--text); }
.collapse-row svg { width: 17px; height: 17px; }

.menu-collapsed .sidebar { width: 78px; padding: 16px 12px 12px; }
.menu-collapsed .sidebar .label, .menu-collapsed .nav-label, .menu-collapsed .nav .count, .menu-collapsed .side-card { display: none; }
.menu-collapsed .sidebar-top { justify-content: center; padding: 4px 0 18px; }
.menu-collapsed .collapse-row { justify-content: center; padding: 0; }
.menu-collapsed .collapse svg { transform: scaleX(-1); }
.menu-collapsed .nav-block { padding-top: 20px; }
.menu-collapsed .nav a { justify-content: center; padding: 0; }
.menu-collapsed .account { flex-direction: column; padding: 4px 0; }
.menu-collapsed .account .icon-btn { margin: 0; }

.topbar {
  position: sticky; top: 0; z-index: 5;
  height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(12px);
}
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 13px; }
.crumbs a:hover { color: var(--text); }
.crumbs .here { color: var(--text); font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.m-brand { display: flex; }

.content { padding: 28px 32px 56px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; color: var(--text-2); }
.page-head p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; padding: 0 14px; border-radius: 9px;
  border: 0; cursor: pointer; font: inherit; font-weight: 500; white-space: nowrap;
  background: linear-gradient(180deg, #fafafa 0%, #d4d4d8 100%); color: var(--bg);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18), 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.btn:hover { filter: brightness(1.06); }
.btn svg { width: 16px; height: 16px; }
.btn-2 { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2), var(--shine); }
.btn-2:hover { background: #1c1c21; filter: none; }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-danger:hover { background: var(--bad-tint); filter: none; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }

.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shine); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-body { padding: 18px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 4px; }
.stat .top { display: flex; justify-content: space-between; align-items: center; color: var(--text-2); font-size: 12.5px; }
.stat .value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .foot { font-size: 12px; color: var(--text-3); }
.delta { font-size: 11.5px; font-weight: 500; padding: 1px 7px; border-radius: 99px; }
.delta.up { color: var(--ok); background: var(--ok-tint); }
.delta.down { color: var(--bad); background: var(--bad-tint); }
.delta.flat { color: var(--text-2); background: var(--panel-2); }
.spark { width: 100%; height: 34px; margin-top: 6px; display: block; }

.legend { display: flex; gap: 14px; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.chart { width: 100%; height: 190px; display: block; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.search input { width: 100%; padding-left: 34px; }

input, select {
  height: 34px; padding: 0 12px; border-radius: 9px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line-2); font: inherit; font-size: 13px;
}
input::placeholder { color: var(--text-3); }
input:focus, select:focus { outline: none; border-color: #52525b; box-shadow: 0 0 0 3px rgba(212, 212, 216, 0.12); }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.field input, .field select { width: 100%; height: 40px; font-size: 14px; }

.filter-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 99px; border: 1px dashed var(--line-2); color: var(--text-2); font-size: 12.5px; background: transparent; cursor: pointer; font-family: inherit; }
.filter-chip.on { border-style: solid; color: var(--text); background: var(--panel-2); }
.filter-chip svg { width: 13px; height: 13px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
tr.row-link { cursor: pointer; }
tr.selected { background: rgba(255, 255, 255, 0.04); }
th.r, td.r { text-align: right; }
.scroll-x { overflow-x: auto; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--text-2); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 3px rgba(138, 138, 147, 0.15); }
.status.ok { color: var(--ok); } .status.ok::before { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.status.warn { color: var(--warn); } .status.warn::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-tint); }
.status.bad { color: var(--bad); } .status.bad::before { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-tint); }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 500; background: var(--panel-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.badge.ok { color: var(--ok); background: var(--ok-tint); box-shadow: none; }
.badge.warn { color: var(--warn); background: var(--warn-tint); box-shadow: none; }
.badge.bad { color: var(--bad); background: var(--bad-tint); box-shadow: none; }

.who-cell { display: flex; align-items: center; gap: 10px; }
.who-cell .avatar { width: 28px; height: 28px; font-size: 11.5px; }
.two-line div:first-child { color: var(--text); font-weight: 500; }
.two-line div:last-child { color: var(--text-3); font-size: 12.5px; }
.engage { display: inline-flex; gap: 12px; color: var(--text-2); font-size: 12.5px; }
.engage span { display: inline-flex; align-items: center; gap: 5px; }
.engage svg { width: 14px; height: 14px; color: var(--text-3); }
.engage .off { color: var(--text-3); }

.foot-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); z-index: 20; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 21;
  width: min(580px, 100%); overflow-y: auto;
  background: var(--panel); border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 60px rgba(0, 0, 0, 0.6);
}
.drawer-head { position: sticky; top: 0; background: rgba(14, 14, 16, 0.92); backdrop-filter: blur(10px); padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; z-index: 1; }
.drawer-section { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }

.journey { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.journey::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; height: 1px; background: var(--line-2); }
.journey .step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); text-align: center; }
.journey .step .c { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line-2); color: var(--text-3); }
.journey .step .c svg { width: 14px; height: 14px; }
.journey .step.done { color: var(--text-2); }
.journey .step.done .c { background: linear-gradient(145deg, #fafafa, #a1a1aa); border-color: transparent; color: var(--bg); }

.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px 16px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.events { list-style: none; margin: 0; padding: 0; }
.events li { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding-bottom: 18px; }
.events li::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 1px; background: var(--line-2); }
.events li:last-child { padding-bottom: 0; }
.events li:last-child::before { display: none; }
.events .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
.events .ic svg { width: 14px; height: 14px; }
.events .ic.ok { color: var(--ok); border-color: rgba(74, 222, 128, 0.3); background: var(--ok-tint); }
.events .what { font-weight: 500; padding-top: 4px; }
.events .detail { color: var(--text-3); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.events .when { color: var(--text-3); font-size: 12px; padding-top: 5px; font-variant-numeric: tabular-nums; }

.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2); font-size: 13px; }
.note svg { width: 16px; height: 16px; margin-top: 2px; color: var(--text-3); }
.note.warn { border-color: rgba(251, 191, 36, 0.25); background: var(--warn-tint); color: var(--warn); }
.note.warn svg { color: var(--warn); }

.code { margin: 0; padding: 16px; border-radius: 12px; background: #08080a; border: 1px solid var(--line); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.75; color: var(--text-2); overflow-x: auto; white-space: pre; }
.code .k { color: var(--text-3); }
.code .s { color: var(--silver); }
.code .c { color: #e4e4e7; font-weight: 500; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.domain-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.15s, transform 0.15s; }
.domain-card:hover { border-color: var(--line-2); }
.domain-card .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.domain-card .name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.domain-card .meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--text-3); }
.domain-card .meta b { display: block; color: var(--text); font-weight: 500; font-size: 14px; }
.domain-card.add { border-style: dashed; border-color: var(--line-2); background: transparent; align-items: center; justify-content: center; color: var(--text-2); min-height: 168px; box-shadow: none; }
.domain-card.add:hover { color: var(--text); background: rgba(255, 255, 255, 0.02); }
.plus { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.steps li::before { content: ""; position: absolute; left: 16px; top: 34px; bottom: 4px; width: 1px; background: var(--line-2); }
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::before { display: none; }
.steps .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--text-2); }
.steps .n svg { width: 15px; height: 15px; }
.steps .done .n { background: linear-gradient(145deg, #fafafa, #a1a1aa); color: var(--bg); border-color: transparent; }
.steps .now .n { border-color: var(--warn); color: var(--warn); box-shadow: 0 0 0 4px var(--warn-tint); }
.steps .t { font-weight: 600; padding-top: 6px; }
.steps .d { color: var(--text-3); font-size: 13px; margin-top: 2px; }

.record { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.record:last-child { border-bottom: 0; }
.record.head { color: var(--text-3); font-size: 12px; font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 11px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.copy .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.copy .icon-btn { width: 26px; height: 26px; }
.copy .icon-btn svg { width: 14px; height: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }

.overlay { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); }
.dialog { width: 100%; max-width: 480px; padding: 24px; display: flex; flex-direction: column; gap: 18px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), var(--shine); }
.dialog p { margin: 0; color: var(--text-2); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.keybox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.keybox .mono { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden; }
.auth::before { content: ""; position: absolute; width: 640px; height: 640px; left: 50%; top: 45%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 62%); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 400px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: rgba(14, 14, 16, 0.85); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), var(--shine); backdrop-filter: blur(8px); }
.auth-card .brand { align-self: flex-start; }
.auth-card .logo-mark { width: 44px; }
.auth-card .brand-name { font-size: 18px; }
.auth-card .brand-name small { font-size: 12px; }
.auth-card .btn { height: 42px; font-size: 14px; }
.auth-foot { position: relative; margin-top: 18px; text-align: center; font-size: 12px; color: var(--text-3); }
.auth > div { width: 100%; max-width: 400px; }
.auth-foot a:hover { color: var(--text-2); }
.auth-foot .sep::before { content: "\00b7"; }

.legal { max-width: 960px; padding: 40px 0 24px; border-bottom: 1px solid var(--line); }
.legal h2 { margin: 44px 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; scroll-margin-top: 80px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li, .legal td { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.legal p { margin: 0; }
.legal p + p, .legal ul + p, .legal p + ul, .legal p + div { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal table { width: 100%; border-collapse: collapse; }
.legal th { text-align: left; font-size: 12.5px; color: var(--text-3); font-weight: 500; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--line-2); }
.legal td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.otp input { width: 100%; min-width: 0; height: 52px; padding: 0; text-align: center; font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 500; border-radius: 10px; }
.or { display: flex; align-items: center; gap: 12px; margin: -6px 0; font-size: 12px; color: var(--text-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.gsi { display: flex; align-items: center; justify-content: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 9px; background: #131314; box-shadow: inset 0 0 0 1px #8e918f; color: #e3e3e3; font: 500 14px/20px "Google Sans", Inter, sans-serif; }
.gsi svg { width: 20px; height: 20px; flex: none; }
.auth-switch { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--text-2); }
.auth-switch a { color: var(--text); font-weight: 500; text-decoration: underline; }
.auth-note { margin: -6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.auth-note a { color: var(--text-2); text-decoration: underline; }
.cf-turnstile { min-height: 65px; }
.links { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); }
.links a:hover { color: var(--text); }

.m-only, .m-more { display: none; }

@media (max-width: 860px) {
  .app { display: block; }
  .sidebar, .menu-collapsed .sidebar {
    position: fixed; z-index: 15; top: auto; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom));
    width: auto; height: 66px; margin: 0; padding: 6px;
    flex-direction: row; border-radius: 20px;
    background: rgba(14, 14, 16, 0.9); backdrop-filter: blur(14px);
    box-shadow: var(--shine), 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: visible;
  }
  .sidebar-top, .nav-label, .side-bottom { display: none; }
  .nav-block, .menu-collapsed .nav-block { padding: 0; width: 100%; }
  .nav { flex-direction: row; gap: 4px; height: 100%; }
  .nav a, .menu-collapsed .nav a { flex: 1; flex-direction: column; justify-content: center; gap: 4px; height: 100%; padding: 0; font-size: 11px; border-radius: 15px; }
  .nav a.active { box-shadow: none; }
  .menu-collapsed .sidebar .label { display: inline; }
  .nav .count, .nav a.wide-only { display: none; }
  .m-more { display: block; flex: 1; position: relative; }
  .m-more summary { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 15px; list-style: none; cursor: pointer; font-size: 11px; font-weight: 500; color: var(--text-2); }
  .m-more summary::-webkit-details-marker { display: none; }
  .m-more[open] summary, .m-more.active summary { background: rgba(255, 255, 255, 0.05); color: var(--text); box-shadow: none; }
  .m-more-menu { position: absolute; right: 0; bottom: calc(100% + 14px); min-width: 190px; padding: 6px; display: grid; gap: 2px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); }
  .sidebar .nav .m-more-menu a { flex: none; flex-direction: row; justify-content: flex-start; gap: 10px; height: 42px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
  .m-more-menu svg { width: 16px; height: 16px; }
  .tile { width: 28px; height: 28px; }

  .m-only { display: grid; }
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar .crumbs { min-width: 0; overflow: hidden; white-space: nowrap; }
  .m-brand .logo-mark { width: 30px; }
  .content { padding: 20px 16px 104px; }
  .h1 { font-size: 22px; }
  .page-head { margin-bottom: 18px; }
  .page-head > .btn, .page-head > .actions { width: 100%; }
  .seg { width: 100%; }
  .seg button { flex: 1; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stats .stat:last-child { grid-column: span 2; }
  .stat { padding: 14px 14px 10px; }
  .stat .value { font-size: 22px; }
  .chart { height: 160px; }

  .toolbar { padding: 12px; }
  .search { max-width: none; flex-basis: 100%; }

  .stack, .stack tbody { display: block; }
  .stack thead { display: none; }
  .stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack td { padding: 0; border: 0; min-width: 0; }

  .logs tbody tr { grid-template-areas: "status time" "subj subj" "to eng"; }
  .logs .c-status { grid-area: status; }
  .logs .c-time { grid-area: time; }
  .logs .c-subj { grid-area: subj; }
  .logs .c-subj div:last-child { display: none; }
  .logs .c-to { grid-area: to; }
  .logs .c-to .avatar { display: none; }
  .logs .c-to .who-cell { min-width: 0; }
  .logs .c-to span { display: block; color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .logs .c-eng { grid-area: eng; align-self: center; }

  .keys tbody tr { grid-template-areas: "name act" "key used"; align-items: center; }
  .keys .c-name { grid-area: name; }
  .keys .c-act { grid-area: act; }
  .keys .c-key { grid-area: key; }
  .keys .c-used { grid-area: used; text-align: right; }

  .supp tbody tr { grid-template-areas: "addr act" "src reason"; align-items: center; }
  .supp .c-addr { grid-area: addr; }
  .supp .c-act { grid-area: act; max-width: 150px; }
  .supp .c-src { grid-area: src; }
  .supp .c-reason { grid-area: reason; text-align: right; }

  .foot-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .record { grid-template-columns: 1fr; gap: 8px; }
  .record.head { display: none; }
  .grid-cards { grid-template-columns: 1fr; }

  .drawer { width: 100%; border-left: 0; }
  .drawer-head, .drawer-section { padding-left: 16px; padding-right: 16px; }
  .kv { grid-template-columns: 104px minmax(0, 1fr); }
  .journey .step { font-size: 11px; }
  .dialog { padding: 20px; }
  .auth-card { padding: 24px; }
}

.note.bad { border-color: rgba(248, 113, 113, 0.25); background: var(--bad-tint); color: var(--bad); }
.note.bad svg { color: var(--bad); }
select.filter-chip { height: 30px; padding: 0 12px; border-radius: 99px; font-size: 12.5px; cursor: pointer; }
select.filter-chip.on { border-style: solid; color: var(--text); background: var(--panel-2); }
.links button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.links button:hover { color: var(--text); }
form.inline { display: inline; margin: 0; }
button.icon-btn { border: 0; background: transparent; font: inherit; cursor: pointer; padding: 0; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
tr.row-link:focus-visible { outline: 2px solid var(--line-2); outline-offset: -2px; }

.docs-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(5, 5, 6, 0.85); backdrop-filter: saturate(140%) blur(14px); }
.docs-top .logo-mark { width: 30px; }
.docs-label { padding-left: 16px; border-left: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 500; }
.docs-top-links { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--text-2); }
.docs-top-links a:not(.btn):hover { color: var(--text); }

.docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.docs-side { position: sticky; top: 60px; align-self: start; height: calc(100vh - 60px); overflow-y: auto; border-right: 1px solid var(--line); background: #070708; }
.docs-nav { padding: 24px 14px 32px; }
.docs-nav-group + .docs-nav-group { margin-top: 24px; }
.docs-nav-title { margin-bottom: 6px; padding: 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.docs-nav a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; color: var(--text-2); }
.docs-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.docs-nav a[aria-current] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav-m { flex: none; width: 32px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; font-weight: 600; }
.nav-m.post { color: var(--ok); }
.nav-m.get { color: #7cb4ff; }
.nav-m.delete { color: var(--bad); }
.docs-main { min-width: 0; max-width: 1240px; padding: 0 48px 40px; }

.docs-hero { padding: 48px 0 44px; border-bottom: 1px solid var(--line); }
.docs-kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.docs-hero h1 { margin: 10px 0 0; font-size: 36px; line-height: 1.15; font-weight: 600; letter-spacing: -0.03em; }
.docs-hero p { max-width: 640px; margin: 12px 0 0; font-size: 16px; line-height: 1.65; color: var(--text-2); }
.docs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.docs-facts div { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 18px; background: var(--panel); }
.docs-facts span { font-size: 12px; color: var(--text-3); }
.docs-facts code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 56px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 60px; }
.doc-wide { grid-template-columns: minmax(0, 1fr); }
.doc-wide .doc-text { max-width: 880px; }
.doc-text > * { margin: 0; }
.doc-text > * + * { margin-top: 14px; }
.doc-text h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.doc-text h2 + * { margin-top: 16px; }
.doc-text h2 a::after { content: "#"; margin-left: 10px; color: var(--text-3); opacity: 0; transition: opacity 0.12s; }
.doc-text h2 a:hover::after { opacity: 1; }
.doc-text h3 { margin-top: 32px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.doc-text h3 + * { margin-top: 0; }
.doc-text h3 + .table-card { margin-top: 14px; }
.doc-text p, .doc-text li { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-2); }
.doc-text :is(p, li, dd) a { color: var(--text); text-decoration: underline; text-decoration-color: #52525b; text-underline-offset: 3px; }
.doc-text code { padding: 1px 5px; border-radius: 5px; background: var(--panel-2); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--silver); overflow-wrap: anywhere; }
.doc-steps { display: grid; gap: 10px; padding: 14px 0 0; list-style: none; counter-reset: step; }
.doc-steps li { display: flex; align-items: flex-start; gap: 12px; counter-increment: step; }
.doc-steps li::before { content: counter(step); flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 11.5px; font-weight: 600; color: var(--text); }

.endpoint { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #08080a; }
.endpoint code { padding: 0; background: none; font-size: 14px; color: var(--text); }
.method { flex: none; padding: 3px 8px; border-radius: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 600; }
.method.post { color: var(--ok); background: var(--ok-tint); }
.method.get { color: #7cb4ff; background: rgba(124, 180, 255, 0.12); }
.method.delete { color: var(--bad); background: var(--bad-tint); }

.params { margin: 0; }
.param { padding: 14px 0; border-bottom: 1px solid var(--line); }
.param dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.param dt code { padding: 0; background: none; font-size: 13.5px; font-weight: 600; color: var(--text); }
.ptype { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--text-3); }
.preq { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; color: var(--warn); }
.param dd { margin: 6px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }

.callout { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); font-size: 14px; line-height: 1.65; color: var(--text-2); }
.callout svg { width: 17px; height: 17px; margin-top: 3px; color: var(--text-3); }
.callout.warn { border-color: rgba(251, 191, 36, 0.25); background: var(--warn-tint); }
.callout.warn svg { color: var(--warn); }
.callout ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.callout li { font-size: 14px; }
.doc-text .callout { margin-top: 20px; }

.table-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.doc-table th { padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0b0b0d; font-size: 12px; color: var(--text-3); }
.doc-table td { padding: 11px 16px; vertical-align: top; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.doc-table tbody tr:hover { background: none; }
.doc-table td:first-child { white-space: nowrap; }
.http { display: inline-block; min-width: 40px; padding: 2px 7px; border-radius: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; font-weight: 600; text-align: center; }
.http.s4 { color: var(--warn); background: var(--warn-tint); }
.http.s5 { color: var(--bad); background: var(--bad-tint); }

.doc-code { display: grid; gap: 16px; align-content: start; min-width: 0; }
.code-block { min-width: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #08080a; box-shadow: var(--shine); }
.code-head { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); background: #0c0c0f; }
.code-title { overflow: hidden; font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; text-overflow: ellipsis; }
.code-status { padding: 1px 7px; border-radius: 6px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 600; }
.code-status.s2 { color: var(--ok); background: var(--ok-tint); }
.code-status.s4 { color: var(--warn); background: var(--warn-tint); }
.code-status.s5 { color: var(--bad); background: var(--bad-tint); }
.code-lang { margin-left: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--text-3); }
.copy-btn { margin-left: auto; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; }
.copy-btn:hover { color: var(--text); background: var(--panel-2); }
.code-lang + .copy-btn { margin-left: 0; }
.code-body { max-height: 560px; margin: 0; padding: 16px 18px; overflow: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.75; color: #a1a1aa; white-space: pre; }

.docs-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 32px 0 8px; font-size: 13px; color: var(--text-3); }
.docs-foot a { color: var(--text-2); }
.docs-foot a:hover { color: var(--text); }
.docs-foot span:last-child { display: flex; flex-wrap: wrap; gap: 18px; }

.lp { overflow-x: hidden; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp-top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255, 255, 255, 0.06); background: rgba(5, 5, 6, 0.72); backdrop-filter: saturate(140%) blur(14px); }
.lp-top .lp-wrap { display: flex; align-items: center; gap: 36px; height: 64px; }
.lp-top .logo-mark, .lp-foot .logo-mark { width: 30px; }
.lp-nav { display: flex; gap: 28px; font-size: 13.5px; color: var(--text-2); }
.lp-nav a:hover { color: var(--text); }
.lp-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13.5px; color: var(--text-2); }
.lp-actions a:not(.btn):hover { color: var(--text); }

.lp-hero { position: relative; isolation: isolate; padding: 60px 0 44px; text-align: center; }
.lp-hero::before {
  content: ""; position: absolute; inset: -64px 0 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 20%, transparent 72%);
}
.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(22, 22, 26, 0.75); font-size: 12.5px; color: var(--text-2); box-shadow: var(--shine); }
.lp-eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.lp-title { max-width: 860px; margin: 20px auto 0; font-size: 56px; line-height: 1.03; font-weight: 600; letter-spacing: -0.045em; text-wrap: balance; background: linear-gradient(180deg, #ffffff 35%, #9a9aa3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { max-width: 600px; margin: 18px auto 0; font-size: 18px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.lp-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-cta .btn { height: 44px; padding: 0 22px; font-size: 14.5px; border-radius: 10px; }
.lp-launch { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; width: fit-content; max-width: 100%; margin: 26px auto 0; padding: 7px 18px 7px 7px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.2); background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.03), 0 12px 48px rgba(255, 255, 255, 0.07), var(--shine); font-size: 15px; color: var(--text-2); }
.lp-launch:hover { border-color: rgba(255, 255, 255, 0.32); }
.lp-launch-tag { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; background: linear-gradient(180deg, #fafafa 0%, #d4d4d8 100%); color: var(--bg); font-size: 11.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.lp-launch strong { color: var(--text); font-weight: 600; }
.lp-launch-left { padding-left: 14px; border-left: 1px solid var(--line-2); color: var(--silver); font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-launch.shine::after { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.22) 50%, transparent 62%); animation-delay: 1.5s; }

.lp-show { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 104px; }
.lp-window, .lp-card, .lp-api { border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, #0e0e11 0%, #09090b 100%); box-shadow: var(--shine), 0 30px 80px rgba(0, 0, 0, 0.5); overflow: hidden; }
.lp-radio { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lp-bar { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.lp-dots { display: flex; gap: 6px; margin-right: 14px; }
.lp-dots i { width: 10px; height: 10px; border-radius: 50%; background: #26262b; }
.lp-tab { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-3); cursor: pointer; user-select: none; }
.lp-tab:hover { color: var(--text-2); }
.lp-path { margin-left: auto; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--text-3); }
#lp-curl:checked ~ .lp-bar [for="lp-curl"], #lp-node:checked ~ .lp-bar [for="lp-node"], #lp-py:checked ~ .lp-bar [for="lp-py"] { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }
#lp-curl:focus-visible ~ .lp-bar [for="lp-curl"], #lp-node:focus-visible ~ .lp-bar [for="lp-node"], #lp-py:focus-visible ~ .lp-bar [for="lp-py"] { outline: 2px solid #52525b; outline-offset: 1px; }
.lp-pane { display: none; margin: 0; padding: 20px 22px 22px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; line-height: 1.8; color: #a1a1aa; white-space: pre; overflow-x: auto; }
#lp-curl:checked ~ .lp-pane-curl, #lp-node:checked ~ .lp-pane-node, #lp-py:checked ~ .lp-pane-py { display: block; }
:is(.lp-pane, .code-body) .tk { color: #f4f4f5; font-weight: 500; }
:is(.lp-pane, .code-body) .ts { color: #a7e3bd; }
:is(.lp-pane, .code-body) .tp { color: #c9d4f2; }
:is(.lp-pane, .code-body) .tn { color: #f0c987; }
.lp-reply { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 13px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; color: var(--text-2); }
.lp-reply-k { padding: 2px 8px; border-radius: 6px; background: var(--ok-tint); color: var(--ok); font-weight: 500; }

.lp-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.lp-card-id { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--text-3); overflow-wrap: anywhere; }
.lp-card-subj { margin-top: 4px; font-size: 15px; font-weight: 600; }
.lp-events { list-style: none; margin: 0; padding: 10px 20px 12px; }
.lp-events li { position: relative; display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; column-gap: 14px; padding: 11px 0; }
.lp-events li::after { content: ""; position: absolute; left: 4px; top: 28px; bottom: -6px; width: 1px; background: var(--line-2); }
.lp-events li:last-child::after { display: none; }
.lp-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 3px rgba(138, 138, 147, 0.15); }
.lp-dot.ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-tint); }
.lp-ev { display: block; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--text); }
.lp-ev-d { display: block; margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.lp-ev-t { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--text-3); padding-top: 2px; }
.lp-card-foot { display: flex; justify-content: space-between; gap: 12px; padding: 13px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.lp-card-foot span:first-child { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; }
.lp-card-foot:hover { color: var(--text); }

.lp-section { padding: 104px 0; border-top: 1px solid var(--line); }
.lp-head { max-width: 640px; margin-bottom: 48px; }
.lp-kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.lp-sub { margin: 14px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.lp-h2 { margin: 12px 0 0; font-size: 38px; line-height: 1.12; font-weight: 600; letter-spacing: -0.035em; color: var(--text); text-wrap: balance; }

.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.lp-feature { padding: 30px 28px; background: linear-gradient(180deg, #0c0c0f 0%, #09090b 100%); }
.lp-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), var(--shine); color: var(--silver); }
.lp-icon svg { width: 18px; height: 18px; }
.lp-feature h3 { margin: 22px 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.lp-feature p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.lp-eu { grid-column: span 2; display: flex; flex-direction: column; background: radial-gradient(560px 240px at 0% 0%, rgba(255, 255, 255, 0.07), transparent 70%), linear-gradient(180deg, #101013 0%, #09090b 100%); }
.lp-eu h3 { font-size: 22px; letter-spacing: -0.025em; }
.lp-eu p { max-width: 600px; }
.lp-route { list-style: none; margin: auto 0 0; padding: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-route li { position: relative; display: grid; gap: 3px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, 0.02); }
.lp-route li + li::before { content: ""; position: absolute; left: -13px; top: 50%; width: 12px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--silver)); }
.lp-route strong { font-size: 13px; font-weight: 600; color: var(--text); }
.lp-route span { font-size: 12px; color: var(--text-3); overflow-wrap: anywhere; }

.shine { position: relative; isolation: isolate; overflow: hidden; }
.shine::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(105deg, transparent 36%, rgba(0, 0, 0, 0.07) 44%, rgba(255, 255, 255, 0.95) 50%, rgba(0, 0, 0, 0.07) 56%, transparent 64%); transform: translateX(-100%); animation: shine 7s ease-in-out infinite; }
.shine-soft::after { background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.06) 50%, transparent 62%); }
.lp-eu::after { animation-delay: 3.5s; }
@keyframes shine { 0%, 82% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .shine::after { animation: none; } }

.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: var(--shine); }
.lp-step-n { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text-3); padding-top: 1px; }
.lp-step h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 600; }
.lp-step p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-2); }
.lp-step code { padding: 1px 5px; border-radius: 5px; background: var(--panel-2); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--silver); }
.lp-api-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.lp-api-head a { font-weight: 400; color: var(--text-2); }
.lp-api-head a:hover { color: var(--text); }
.lp-ep { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background 0.12s; }
.lp-ep:last-child { border-bottom: 0; }
.lp-ep:hover { background: rgba(255, 255, 255, 0.025); }
.lp-ep .method { justify-self: start; }
.lp-ep code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.lp-ep-d { grid-column: 2; font-size: 12.5px; color: var(--text-3); }

.pricer { display: grid; gap: 18px; }
.pricer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pricer-credits { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.pricer-rate { margin-top: 4px; font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pricer-price { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.pricer-range { width: 100%; margin: 0; accent-color: var(--silver); cursor: pointer; }
.pricer-ticks { display: flex; justify-content: space-between; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--text-3); }
.buy { display: grid; gap: 18px; }
.buy .btn { justify-self: start; }
.buy p { margin: 0; font-size: 13px; }
.buy .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--text-2); cursor: pointer; }
.buy .consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: #e4e4e7; }
.balance { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; margin-bottom: 12px; }
.billing { margin: 18px 0; }

.lp-offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding: 26px 28px; border: 1px solid var(--line-2); border-radius: 18px; background: radial-gradient(560px 220px at 0% 0%, rgba(255, 255, 255, 0.08), transparent 70%), linear-gradient(180deg, #111114 0%, #09090b 100%); box-shadow: var(--shine); }
.lp-offer-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--silver); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.lp-offer-title { margin: 12px 0 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.lp-offer-text { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.lp-offer-side { display: flex; align-items: center; gap: 20px; flex: none; }
.lp-offer-left { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.lp-offer-left b { margin-right: 4px; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.lp-offer .btn { height: 42px; padding: 0 20px; border-radius: 10px; }

.lp-price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lp-price-card { display: grid; gap: 24px; padding: 30px 28px; border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #0e0e11 0%, #09090b 100%); box-shadow: var(--shine); }
.lp-price-card .btn { justify-self: start; height: 44px; padding: 0 22px; border-radius: 10px; }
.lp-price-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.lp-price-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.lp-price-list svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ok); }
.lp-price-list strong { color: var(--text); font-weight: 600; }

.lp-final { margin-bottom: 104px; padding: 72px 32px; text-align: center; border: 1px solid var(--line-2); border-radius: 24px; background: radial-gradient(640px 260px at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%), linear-gradient(180deg, #0e0e11 0%, #08080a 100%); box-shadow: var(--shine); }
.lp-final .lp-h2 { margin-top: 0; }
.lp-final .lp-lead { font-size: 16px; margin-top: 14px; }

.lp-foot { border-top: 1px solid var(--line); }
.lp-foot .lp-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 56px; }
.lp-foot-brand p { margin: 16px 0 0; font-size: 12.5px; color: var(--text-3); }
.lp-foot h4 { margin: 0 0 14px; font-size: 12.5px; font-weight: 500; color: var(--text); }
.lp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13px; color: var(--text-3); }
.lp-foot ul a:hover { color: var(--text-2); }

@media (max-width: 1180px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 1080px) {
  .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-grid > :last-child { grid-column: span 2; }
  .lp-show { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .docs-top { padding: 0 16px; gap: 12px; }
  .docs-label, .docs-top-links a[href="/"], .docs-top-links a[href="/docs"] { display: none; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-side { z-index: 15; height: auto; border-right: 0; border-bottom: 1px solid var(--line); background: rgba(7, 7, 8, 0.95); backdrop-filter: blur(14px); }
  .docs-nav { display: flex; gap: 4px; padding: 8px 12px; overflow-x: auto; white-space: nowrap; }
  .docs-nav-group { display: contents; }
  .docs-nav-title { display: none; }
  .docs-nav a { flex: none; }
  .docs-main { padding: 0 16px 32px; }
  .docs-hero { padding: 32px 0 32px; }
  .docs-hero h1 { font-size: 28px; }
  .docs-facts { grid-template-columns: minmax(0, 1fr); }
  .doc { padding: 36px 0; scroll-margin-top: 110px; }
  .doc-text h2 { font-size: 21px; }
  .legal { padding-top: 32px; }
  .legal h2 { margin-top: 36px; font-size: 18px; scroll-margin-top: 116px; }

  .lp-wrap { padding: 0 16px; }
  .lp-top .lp-wrap { gap: 16px; height: 60px; }
  .lp-nav { display: none; }
  .lp-actions { gap: 14px; }
  .lp-hero { padding: 44px 0 32px; }
  .lp-title { font-size: 40px; letter-spacing: -0.04em; }
  .lp-lead { font-size: 16px; }
  .lp-show { padding-bottom: 72px; }
  .lp-path { display: none; }
  .lp-pane { padding: 16px; font-size: 12px; }
  .lp-section { padding: 72px 0; }
  .lp-head { margin-bottom: 32px; }
  .lp-h2 { font-size: 30px; }
  .lp-grid, .lp-split, .lp-price { grid-template-columns: minmax(0, 1fr); }
  .lp-split, .lp-price { gap: 24px; }
  .lp-price-card { padding: 22px 18px; }
  .pricer-price, .balance { font-size: 32px; }
  .lp-feature { padding: 24px 20px; }
  .lp-launch { border-radius: 18px; padding: 10px 14px; }
  .lp-launch-left { padding-left: 0; border-left: 0; }
  .lp-offer { flex-direction: column; align-items: flex-start; padding: 22px 18px; }
  .lp-offer-side { width: 100%; justify-content: space-between; }
  .lp-eu, .lp-grid > :last-child { grid-column: auto; }
  .lp-route { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-route li + li::before { display: none; }
  .lp-final { margin-bottom: 72px; padding: 48px 20px; border-radius: 20px; }
  .lp-foot .lp-wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 36px; padding-bottom: 40px; }
  .lp-foot-brand { grid-column: 1 / -1; }
}
