.docs-shell {
  --docs-line: rgba(255, 255, 255, 0.075);
}

.docs-nav-current {
  color: #fff;
}

.docs-nav-current::after {
  transform: scaleX(1);
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #159875, #65d7b7);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.docs-hero-card {
  border: 1px solid var(--docs-line);
  border-radius: 1.2rem;
  background: rgba(9, 20, 17, 0.82);
  padding: 1.5rem;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.27), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
}

.docs-summary-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.docs-summary-row span {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(101, 215, 183, 0.15);
  border-radius: 0.6rem;
  background: rgba(21, 152, 117, 0.09);
  color: #65d7b7;
  font-size: 0.62rem;
  font-weight: 700;
}

.docs-summary-row p {
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
}

.docs-mobile-index > div {
  scrollbar-width: none;
}

.docs-mobile-index > div::-webkit-scrollbar {
  display: none;
}

.docs-mobile-index a {
  flex: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  padding: 0.55rem 0.85rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.docs-mobile-index a.is-active {
  border-color: rgba(101, 215, 183, 0.28);
  background: rgba(21, 152, 117, 0.12);
  color: #65d7b7;
}

.docs-index {
  border: 1px solid var(--docs-line);
  border-radius: 1rem;
  background: rgba(9, 20, 17, 0.62);
  padding: 1rem;
  backdrop-filter: blur(14px);
}

.docs-index nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 0.65rem;
  padding: 0.68rem 0.75rem;
  color: #7c8da2;
  font-size: 0.76rem;
  font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease;
}

.docs-index nav a span {
  color: #475569;
  font-size: 0.62rem;
  font-weight: 700;
}

.docs-index nav a:hover,
.docs-index nav a.is-active {
  background: rgba(21, 152, 117, 0.1);
  color: #e2e8f0;
}

.docs-index nav a.is-active span {
  color: #65d7b7;
}

.docs-index-help {
  margin-top: 1rem;
  border-top: 1px solid var(--docs-line);
  padding: 1rem 0.75rem 0.25rem;
}

.docs-index-help p {
  color: #64748b;
  font-size: 0.68rem;
}

.docs-index-help a {
  display: inline-block;
  margin-top: 0.4rem;
  color: #65d7b7;
  font-size: 0.72rem;
  font-weight: 600;
}

.docs-card {
  border: 1px solid var(--docs-line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.018);
  padding: clamp(1.35rem, 4vw, 2.5rem);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 220ms ease, background-color 220ms ease;
}

.docs-card:hover {
  border-color: rgba(101, 215, 183, 0.16);
  background: rgba(21, 152, 117, 0.022);
}

.docs-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.docs-number {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  flex: none;
  place-items: center;
  border: 1px solid rgba(101, 215, 183, 0.16);
  border-radius: 0.75rem;
  background: rgba(21, 152, 117, 0.1);
  color: #65d7b7;
  font-size: 0.7rem;
  font-weight: 700;
}

.docs-kicker {
  color: #65d7b7;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.docs-card h2 {
  margin-top: 0.35rem;
  color: #f8fafc;
  font-size: clamp(1.28rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.docs-copy {
  margin-top: 1.5rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.75rem;
}

.docs-copy p + p {
  margin-top: 0.9rem;
}

.docs-callout {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(101, 215, 183, 0.13);
  border-radius: 0.9rem;
  background: rgba(21, 152, 117, 0.07);
  padding: 1rem;
  color: #a8bbb5;
  font-size: 0.8rem;
  line-height: 1.5rem;
}

.docs-callout svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: #65d7b7;
}

.docs-callout strong {
  color: #e2e8f0;
}

.docs-mini-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.docs-mini-card {
  border: 1px solid var(--docs-line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.1rem;
}

.docs-mini-card h3 {
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
}

.docs-mini-card p {
  margin-top: 0.55rem;
  color: #718297;
  font-size: 0.75rem;
  line-height: 1.4rem;
}

.docs-list {
  margin-top: 1.5rem;
}

.docs-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.7rem;
  color: #8b9caf;
  font-size: 0.8rem;
  line-height: 1.45rem;
}

.docs-list-icon {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  flex: none;
  place-items: center;
  border-radius: 0.45rem;
  background: rgba(21, 152, 117, 0.1);
  color: #65d7b7;
  font-size: 0.55rem;
  font-weight: 700;
}

.docs-flow {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.7rem;
  align-items: center;
}

.docs-flow > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--docs-line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem;
}

.docs-flow > div span {
  color: #65d7b7;
  font-size: 0.6rem;
}

.docs-flow > div strong {
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 600;
}

.docs-flow > svg {
  width: 1rem;
  height: 1rem;
  margin: auto;
  color: #315e52;
  transform: rotate(90deg);
}

.docs-message-preview {
  border: 1px solid rgba(101, 215, 183, 0.15);
  border-radius: 1rem;
  background: #145d4b;
  padding: 1rem;
  color: rgba(236, 253, 245, 0.82);
  font-size: 0.72rem;
  line-height: 1.35rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.docs-status {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.55rem;
  color: #d1fae5;
  font-size: 0.58rem;
}

.docs-connection {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.7rem;
  align-items: center;
  text-align: center;
}

.docs-connection > span,
.docs-connection > strong {
  border: 1px solid var(--docs-line);
  border-radius: 0.8rem;
  padding: 0.9rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

.docs-connection > strong {
  border-color: rgba(101, 215, 183, 0.2);
  background: rgba(21, 152, 117, 0.1);
  color: #65d7b7;
}

.docs-connection > div {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.docs-connection i {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: #315e52;
}

.docs-start-steps {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.7rem;
}

.docs-start-steps > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--docs-line);
  padding-top: 0.8rem;
}

.docs-start-steps span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  place-items: center;
  border-radius: 999px;
  background: rgba(21, 152, 117, 0.1);
  color: #65d7b7;
  font-size: 0.65rem;
  font-weight: 700;
}

.docs-start-steps p {
  color: #7c8da2;
  font-size: 0.77rem;
  line-height: 1.4rem;
}

.docs-start-steps strong {
  color: #cbd5e1;
  font-weight: 600;
}

@media (min-width: 640px) {
  .docs-mini-grid,
  .docs-list-columns,
  .docs-start-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-list-columns {
    display: grid;
    column-gap: 1rem;
  }

  .docs-flow,
  .docs-connection {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }

  .docs-flow > svg {
    transform: none;
  }
}

@media (min-width: 768px) {
  .docs-mini-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .docs-card-heading {
    gap: 0.8rem;
  }

  .docs-number {
    width: 2.3rem;
    height: 2.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress {
    transition: none;
  }
}
