section svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
section.lookup {
  margin-top: 48px;
}
section.lookup > * {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}
section.lookup h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text-primary);
}
section.lookup h1 em {
  font-style: normal;
  color: var(--brand-red);
}
section.lookup h2 {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 24px;
}
section.lookup .input {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: border-color 200ms, box-shadow 200ms;
}
section.lookup .input:focus-within {
  border-color: var(--brand-dark);
  box-shadow: 0 4px 24px rgba(52, 71, 103, 0.12), 0 0 0 3px rgba(52, 71, 103, 0.08);
}
section.lookup .input svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-secondary);
  opacity: 0.5;
  margin-left: 16px;
}
section.lookup .input input {
  width: 0;
  flex-grow: 1;
  line-height: 1;
  padding: 14px 12px;
  background: transparent;
  border: none;
  box-shadow: none;
}
section.lookup .input button {
  flex-shrink: 0;
  padding: 10px 24px;
  margin: 4px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--brand-dark);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: scale 100ms;
}
section.lookup .input button:active {
  scale: 0.97;
}
section.lookup .buttons {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  font-size: 12px;
}
section.lookup .buttons button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100vmax;
  background-color: var(--bg-secondary);
  border: 1px solid transparent;
  font-family: monospace;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  transition-property: background, border-color, color;
  transition-duration: 150ms;
  white-space: nowrap;
}
section.lookup .buttons button svg {
  width: 11px;
  height: 11px;
}
section.lookup .buttons button:hover,
section.lookup .buttons button:focus-visible {
  background: var(--card-bg);
  border-color: var(--border);
  color: var(--brand-dark);
}
section.result {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: 215px 1fr;
  align-items: start;
  position: relative;
  transition: grid-template-rows 250ms ease-out;
  overflow: hidden;
}
section.result > .throbber {
  position: absolute;
  inset: 0 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease-out;
}
section.result > .throbber > :first-child {
  grid-column: span 2;
  border-bottom: 1px solid var(--border);
}
section.result > .throbber > :first-child > :first-child {
  width: 25%;
}
section.result > .throbber > :first-child > :nth-child(2) {
  width: 50%;
}
section.result > .throbber > :not(:first-child) {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
section.result > .throbber > :not(:first-child) > :first-child {
  grid-column: span 2;
  width: 65%;
}
section.result > .throbber > :last-child {
  border-left: 1px solid var(--border);
}
section.result > .throbber span {
  display: block;
  width: 100%;
  height: 35px;
  position: relative;
}
section.result > .throbber span::before {
  content: "";
  position: absolute;
  inset: 50% 20px auto;
  height: 18px;
  transform: translateY(-50%);
  border-radius: 100vmax;
  background-image: linear-gradient(90deg, var(--border) 25%, rgb(from var(--brand-dark) r g b / 8%) 50%, var(--border) 75%);
  background-size: 400% 75%;
  background-repeat: no-repeat;
  animation: shimmer 1.4s ease infinite;
}
section.result.running {
  grid-template-rows: 215px 0fr;
}
section.result.running > .throbber {
  opacity: 1;
  transition-timing-function: ease-in;
}
section.result.running > .result {
  opacity: 0;
  transition-timing-function: ease-out;
}
section.result > .result {
  grid-row: span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: opacity 150ms ease-in;
  overflow: hidden;
}
section.result > .result > header {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
section.result > .result > header > img {
  width: 28px;
  height: 21px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
section.result > .result > header > img:not([src]) {
  display: none;
}
section.result > .result > header > div {
  flex-grow: 1;
}
section.result > .result > header > div > span {
  font-family: monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
section.result > .result > header > div > div {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
  line-height: 1.4;
  display: flex;
  flex-wrap: wrap;
}
section.result > .result > header > div > div span:empty {
  display: none;
}
section.result > .result > header > div > div span ~ span::before {
  content: "·";
  font-weight: 700;
  margin-inline: 0.5ch;
}
section.result > .result > header > button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background-color: var(--card-bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms, color 150ms;
}
section.result > .result > header > button:hover,
section.result > .result > header > button:focus-visible {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}
section.result > .result > header > button svg {
  width: 12px;
  height: 12px;
}
section.result > .result > .flags {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
section.result > .result > .flags span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100vmax;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid var(--border);
  color: hsl(from var(--text-secondary) h s 72%);
}
section.result > .result > .flags span svg {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}
section.result > .result > .flags span:first-child {
  color: var(--accent-green);
  background-color: rgb(from currentColor r g b / 6%);
  border-color: rgb(from currentColor r g b / 20%);
}
section.result > .result > .flags span:first-child:has(~ .active) {
  display: none;
}
section.result > .result > .flags span.active {
  color: var(--accent-danger);
  background-color: rgb(from currentColor r g b / 6%);
  border-color: rgb(from currentColor r g b / 20%);
}
section.result > .result > .block {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-template-rows: subgrid;
  align-items: start;
  padding: 8px 20px;
  column-gap: 16px;
  border-bottom: 1px solid var(--border);
}
section.result > .result > .block:nth-child(odd of .block) {
  border-right: 1px solid var(--border);
}
section.result > .result > .block > header {
  grid-column: span 2;
  padding-block: 10px 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}
section.result > .result > .block > label {
  padding-block: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
section.result > .result > .block > span {
  padding-block: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  justify-self: right;
  text-align: right;
  text-wrap: balance;
}
section.result > .result > .block > span.many {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 0 0.5ch;
}
section.result > .result > .block > span.many > span:not(:empty):has( + span:not(:empty, .brackets))::after {
  content: ",";
}
section.result > .result > .block > span.many:not(:has(span:not(:empty)))::before {
  content: "—";
}
section.result > .result > .block > span.many:not(:has(span:not(:empty))) span {
  display: none;
}
section.result > .result > .block > span.marked:not(:empty) {
  font-size: 12px;
  padding: 1px 6px;
  align-self: center;
  border-radius: 4px;
  background-color: rgb(from currentColor r g b / 8%);
  color: var(--brand-red);
}
section.result > .result > .block span:empty::before {
  content: "—";
}
section.result > .result > .block span.brackets {
  font-weight: 400;
  font-size: 12px;
}
section.result > .result > .block span.brackets::before {
  content: "(";
}
section.result > .result > .block span.brackets::after {
  content: ")";
}
section.result > .result > .block span.brackets:empty {
  display: none;
}
section.result > .result > .block .uppercase {
  text-transform: uppercase;
}
section.result > .result .r6 {
  grid-row: span 7;
}
section.result > .result .r4 {
  grid-row: span 5;
}
section.result > .result > .json {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: max-content 0fr;
  overflow: hidden;
  background-color: var(--bg-secondary);
  transition: grid-template-rows 250ms;
}
section.result > .result > .json > header {
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 150ms, background-color 150ms;
}
section.result > .result > .json > header::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
  transition: transform 250ms;
}
section.result > .result > .json > header:hover {
  color: var(--brand-dark);
  background-color: rgba(0, 0, 0, 0.06);
}
section.result > .result > .json.open {
  grid-template-rows: max-content 1fr;
}
section.result > .result > .json.open > header::after {
  transform: translateY(25%) rotate(-135deg);
}
section.result > .result > .json > pre {
  padding: 0 20px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #3b4759;
  overflow: hidden;
  --k: #1f6feb;
  --b: #8250df;
  --s: #116329;
  --n: #953800;
}
section.about .numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
section.about .numbers div {
  padding: 16px 20px;
}
section.about .numbers div:nth-child(n + 2) {
  border-left: 1px solid var(--border);
}
section.about .numbers span {
  display: block;
  text-align: center;
}
section.about .numbers span:first-child {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
section.about .numbers span:last-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-top: 4px;
}
section.about header {
  margin-top: var(--section-gap);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
section.about header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
section.about header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
section.about .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(282px, 1fr));
  gap: 12px;
}
section.about .features div {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-template-rows: min-content 1fr;
  align-items: start;
  gap: 2px 12px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
section.about .features div:nth-child(1) > svg {
  color: var(--accent-purple);
}
section.about .features div:nth-child(2) > svg {
  color: var(--accent-purple-light);
}
section.about .features div:nth-child(3) > svg {
  color: var(--brand-red);
}
section.about .features div:nth-child(4) > svg {
  color: var(--accent-warning);
}
section.about .features div:nth-child(5) > svg {
  color: var(--color-telegram);
}
section.about .features div:nth-child(6) > svg {
  color: var(--accent-green);
}
section.about .features svg {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  padding: 10px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgb(from currentColor r g b / 12%), rgb(from currentColor r g b / 2%));
  border: 1px solid rgb(from currentColor r g b / 20%);
}
section.about .features h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.4;
  text-align: left;
}
section.about .features span {
  font-size: 13px;
  color: var(--text-secondary);
}
section.api {
  margin-bottom: 20px;
}
section.api > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
section.api > header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
section.api > header p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
section.api .card > header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 20px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
  flex-wrap: wrap;
}
section.api .card > header > :nth-child(1) {
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent-green);
  background: rgb(from currentColor r g b / 10%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
section.api .card > header > :nth-child(2) {
  font-family: monospace;
  color: var(--text-secondary);
}
section.api .card > header > :nth-child(2) em {
  font-style: normal;
  color: var(--brand-red);
}
section.api .card > header > :nth-child(3) {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  margin-left: auto;
}
section.api .tabs > header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 12px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background-color: rgb(from var(--border) r g b / 10%);
}
section.api button[data-tab] {
  padding: 7px 12px;
  margin-block: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-color: transparent;
  border-radius: 0;
  transition: color 150ms;
  display: flex;
  justify-content: center;
  min-width: 0;
}
section.api button[data-tab]:hover,
section.api button[data-tab]:focus-visible {
  color: var(--brand-dark);
}
section.api button[data-tab].active {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-red);
}
section.api button.copy {
  position: absolute;
  top: calc(100% + 10px);
  right: 12px;
  padding: 5px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 150ms;
  opacity: 0.5;
}
section.api button.copy:hover {
  opacity: 1;
}
section.api button.copy svg {
  width: 11px;
  height: 11px;
}
section.api div[data-tab] {
  background-color: #0f1729;
  margin: 0;
  padding: 16px 20px;
  font-size: 12px;
  color: #dbe1eb;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  overflow: hidden;
}
section.api div[data-tab]:not(.active) {
  display: none;
}
pre {
  line-height: 1.6;
  white-space: pre;
  font-family: monospace;
}
pre .c {
  color: var(--c, #7a849a);
}
pre .s {
  color: var(--s, #9cd9ff);
}
pre .k {
  color: var(--k, #c89aff);
}
pre .b {
  color: var(--b, #ff8c8c);
}
pre .n {
  color: var(--n, #ffb17a);
}
.error {
  min-width: 320px;
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.error span {
  font-size: 18px;
  text-wrap: balance;
}
.error button {
  padding: 4px 16px;
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--card-bg);
}
@keyframes shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@media (max-width: 650px) {
  section.about .numbers {
    grid-template-columns: repeat(2, 1fr);
  }
  section.about .numbers div:nth-child(3) {
    border-left: none;
  }
  section.about .numbers div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  section.result > .result {
    grid-template-columns: 100%;
  }
  section.result > .result > .block:nth-child(odd of .block) {
    border-right: none;
  }
}
@media (max-width: 500px) {
  section.result > .result > header {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
  }
  section.result > .result > header > div {
    order: 1;
    width: 100%;
  }
}
