:root {
  --bg: #07111f;
  --surface: #0f1d33;
  --text: #eaf7ff;
  --muted: #9ab4c9;
  --line: rgba(0, 183, 255, 0.18);
  --brand: #00b7ff;
  --brand2: #19d900;
  --brand-deep: #1b5a83;
  --danger: #cd1114;
  --warning: #ffa72a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 18px;
  --max: 1200px;
  --text-max: 68rem;
  --font-sans: "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, monospace;
  --shot-canvas: #0a0f18;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 16% 8%, rgba(0, 183, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 82% 12%, rgba(25, 217, 0, 0.1), transparent 24rem),
    linear-gradient(180deg, var(--bg), #050a13 75%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
}

main {
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  color: #000;
  padding: 10px;
  border-radius: 8px;
}

.skip:focus {
  left: 10px;
  z-index: 9999;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 17, 31, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 850;
  letter-spacing: 0.4px;
  text-decoration: none !important;
}

.logo:hover {
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 72px;
  width: auto;
  max-width: 148px;
  flex-shrink: 0;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  filter: none;
}

.logo b {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo b span {
  color: var(--brand2);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

.nav-cta-outline {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 183, 255, 0.35);
}

.nav-cta-outline:hover {
  background: rgba(0, 183, 255, 0.1);
  text-decoration: none !important;
}

.nav-cta:not(.nav-cta-outline) {
  color: #06111f !important;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
}

.hero {
  padding: 72px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 46px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--brand2);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-free {
  background: linear-gradient(135deg, rgba(25, 217, 0, 0.22), rgba(0, 183, 255, 0.14));
  border-color: rgba(25, 217, 0, 0.55);
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-latest {
  border-color: rgba(0, 183, 255, 0.45);
  color: var(--brand);
  background: rgba(0, 183, 255, 0.1);
}

.badge-beta {
  border-color: rgba(255, 167, 42, 0.45);
  color: var(--warning);
  background: rgba(255, 167, 42, 0.1);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.free-callout {
  border: 1px solid rgba(25, 217, 0, 0.45);
  background: linear-gradient(135deg, rgba(25, 217, 0, 0.14), rgba(0, 183, 255, 0.08));
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 28px;
}

.free-callout h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 10px;
}

.free-callout p {
  margin: 0;
  color: var(--muted);
  max-width: var(--text-max);
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 0 8px rgba(25, 217, 0, 0.12);
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.125rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  max-width: none;
}

h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-top: 0;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: var(--text-max);
  margin: 0;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none !important;
}

.button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #06111f;
  border: 0;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.ghost {
  background: transparent;
  color: var(--brand);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.window-bar {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.terminal {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.91rem;
  color: #d9f7ff;
}

.terminal-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-line:last-child {
  border-bottom: 0;
}

.k {
  color: var(--muted);
}

.v {
  color: var(--brand2);
  text-align: right;
}

.section {
  padding: 48px 0;
}

.section-title {
  margin-bottom: 8px;
}

.section-title {
  max-width: var(--text-max);
}

.section-title h2 {
  max-width: none;
}

.section-title .muted,
.section-title .shots-hint,
.hero-mini .lead {
  max-width: var(--text-max);
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.grid.cards-legal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1100px) {
  .grid.features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card,
.notice {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  max-width: none;
  text-wrap: pretty;
}

.card h3 {
  text-wrap: balance;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.icon {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 183, 255, 0.12);
  border: 1px solid rgba(0, 183, 255, 0.28);
  color: var(--brand);
  font-weight: 800;
}

.notice {
  margin: 24px 0;
  background: rgba(0, 183, 255, 0.07);
}

.notice.warning {
  background: rgba(255, 167, 42, 0.08);
  border-color: rgba(255, 167, 42, 0.24);
}

.notice.emergency {
  background: rgba(255, 82, 82, 0.1);
  border-color: rgba(255, 82, 82, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 82, 82, 0.12), 0 16px 40px rgba(255, 82, 82, 0.08);
}

.notice.emergency h2,
.notice.emergency h3 {
  color: #ffb4b4;
}

.docs-emergency-callout {
  margin-bottom: 32px;
}

.docs-emergency-callout .actions {
  margin-top: 16px;
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}

.download-box {
  border: 1px solid rgba(0, 183, 255, 0.32);
  background: linear-gradient(180deg, rgba(0, 183, 255, 0.12), rgba(255, 255, 255, 0.035));
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.version {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.9rem;
}

.list {
  padding-left: 1.1rem;
  color: var(--muted);
}

.list li {
  margin: 8px 0;
}

.codebox {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.27);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 15px;
  overflow: auto;
  color: #d9f7ff;
  margin-top: 16px;
}

.small {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #7f91a8;
}

.hidden {
  display: none !important;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 32px;
  color: var(--muted);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8125rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
  text-decoration: none;
}

.hero-mini {
  padding: 48px 0 20px;
}

.hero-mini h1 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table th {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.table td {
  color: var(--muted);
}

.table tr:last-child td {
  border-bottom: 0;
}

.hero-shot {
  padding: 0;
  overflow: hidden;
}

.hero-shot .window-bar {
  padding: 12px 16px 0;
  margin-bottom: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-shot .shot-open {
  padding: 12px 12px 14px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.shot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: rgba(12, 22, 38, 0.65);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shot-card:hover {
  border-color: rgba(0, 183, 255, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.shot-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 14px 10px;
  border: 0;
  background: var(--shot-canvas);
  cursor: zoom-in;
  position: relative;
  font: inherit;
  color: inherit;
  text-align: left;
}

.shot-open:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.shot-frame {
  display: block;
  background: linear-gradient(180deg, #121a26 0%, #0a0f18 100%);
  border-radius: 10px;
  padding: 8px;
  overflow: hidden;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.shot-open:hover .shot-frame img {
  opacity: 0.97;
  transform: scale(1.008);
}

.shot-zoom-hint {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 17, 31, 0.9);
  border: 1px solid rgba(0, 183, 255, 0.25);
  color: var(--brand);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.shots-hint {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

.lightbox {
  border: none;
  padding: 0;
  margin: auto;
  max-width: min(96vw, 1480px);
  width: 100%;
  background: transparent;
  color: var(--text);
}

.lightbox::backdrop {
  background: rgba(5, 10, 19, 0.94);
  backdrop-filter: blur(10px);
}

.lightbox-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
  padding: 0;
}

.lightbox-close {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox-body {
  background: linear-gradient(180deg, var(--surface), #0a1628);
  border: 1px solid rgba(0, 183, 255, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lightbox-body .shot-frame {
  padding: 12px;
  background: var(--shot-canvas);
}

.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(82vh, 920px);
  object-fit: contain;
  background: transparent;
  border-radius: 8px;
}

.lightbox-caption {
  margin: 0;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 0.98rem;
  border-top: 1px solid var(--line);
}

.lightbox-caption strong {
  color: var(--text);
  margin-right: 8px;
}

.credits-list {
  margin: 16px 0 32px;
  padding-left: 1.2rem;
  color: var(--muted);
}

.credits-list li {
  margin: 10px 0;
  line-height: 1.5;
}

.credits-list strong {
  color: var(--text);
}

.shot-card figcaption {
  padding: 14px 18px 16px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.5;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.shot-card strong {
  display: block;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 700;
  word-break: break-all;
}

.card .actions {
  margin-top: 18px;
}

main.legal-doc {
  width: 100%;
}

main.legal-doc .container {
  max-width: min(var(--max), 920px);
  margin-inline: auto;
}

main.legal-doc .lead,
main.legal-doc p,
main.legal-doc li {
  max-width: var(--text-max);
}

.legal-doc h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-top: 2.2rem;
}

.legal-doc h3 {
  font-size: 1.05rem;
  margin-top: 1.4rem;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.25rem;
}

.legal-doc li {
  margin: 8px 0;
}

.legal-doc .notice {
  margin: 1.5rem 0;
}

.legal-doc a {
  font-weight: 600;
}

.legal-toc {
  margin: 1rem 0 2rem;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.legal-toc ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  max-width: 100%;
}

.footer-links a {
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 0;
}

.footer-links a + a::before {
  content: "|";
  margin: 0 10px;
  color: rgba(154, 180, 201, 0.45);
  font-weight: 400;
  pointer-events: none;
}

.footer-links a:hover {
  color: var(--brand);
}

.meta-table {
  margin-top: 16px;
  table-layout: fixed;
}

.meta-table th {
  width: 38%;
}

.sha-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  vertical-align: middle;
}

.sha-value {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.sha-copy,
.copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.sha-copy:hover,
.copy-btn:hover {
  color: var(--brand);
  border-color: rgba(0, 183, 255, 0.4);
  background: rgba(0, 183, 255, 0.1);
}

.sha-copy.is-copied,
.copy-btn.is-copied {
  color: #19d900;
  border-color: rgba(25, 217, 0, 0.4);
}

.sha-copy svg,
.copy-btn svg {
  display: block;
}

.copy-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.codebox-wrap {
  position: relative;
  margin-top: 16px;
}

.codebox-wrap .codebox {
  margin-top: 0;
  padding-right: 48px;
}

.codebox-wrap .copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
}

@media (max-width: 900px) {
  .hero-grid,
  .download-panel {
    grid-template-columns: 1fr;
  }

  .grid,
  .grid.two,
  .grid.cards-legal,
  .grid.features {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 0;
    min-height: auto;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    width: 100%;
    text-align: center;
  }

  .footer-copy {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    padding-top: 52px;
  }

  .button {
    width: 100%;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-links a + a::before {
    margin: 0 8px;
  }
}

.docs-intro {
  margin-bottom: 28px;
}

.docs-topics {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-topic {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.doc-topic[open] {
  border-color: rgba(0, 183, 255, 0.38);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.doc-topic-summary {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.doc-topic-summary::-webkit-details-marker {
  display: none;
}

.doc-topic-summary::after {
  content: "+";
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
}

.doc-topic[open] .doc-topic-summary::after {
  content: "\2212";
  color: var(--brand);
  border-color: rgba(0, 183, 255, 0.4);
}

.doc-topic-summary .icon {
  flex-shrink: 0;
  margin: 0;
}

.doc-topic-heading {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.doc-topic-teaser {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.doc-topic-body {
  padding: 0 20px 20px 76px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  border-top: 1px solid var(--line);
}

.doc-topic-body > :first-child {
  margin-top: 16px;
}

.doc-topic-body .actions {
  margin-top: 18px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.docs-sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 8px 8px;
}

.docs-sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
}

.docs-sidebar a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.docs-sidebar a[aria-current="page"] {
  color: var(--brand);
  background: rgba(0, 183, 255, 0.1);
}

.docs-breadcrumb {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 20px;
}

.docs-breadcrumb a {
  color: var(--brand);
}

.docs-article h2 {
  margin-top: 2rem;
}

.docs-article h2:first-of-type {
  margin-top: 0;
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }

  .doc-topic-body {
    padding-left: 20px;
  }
}
