.docs-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 230px;
  gap: 34px;
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 32px clamp(16px, 3vw, 42px) 0;
}welcome-card

.docs-sidebar,
.toc {
  position: sticky;
  top: 96px;
  height: calc(100vh - 116px);
}

.sidebar-inner,
.toc-inner {
  height: 100%;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(25, 25, 25, 0.92), rgba(13, 13, 13, 0.82));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

.sidebar-inner {
  padding: 18px;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 800;
}

.sidebar-close {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 22px;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 12px 13px;
  outline: none;
}

.nav-group {
  padding: 16px 0;
  border-top: 1px solid var(--border-soft);
}

.nav-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.nav-group h2 {
  margin: 0 0 8px;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.doc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.doc-link small {
  color: var(--accent);
  font-size: 10px;
  white-space: nowrap;
}

.doc-link:hover,
.doc-link.active {
  background: var(--accent-soft);
  border-color: var(--border);
  color: var(--text);
}

.doc-link.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.doc-main {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 18px;
  color: var(--text-faint);
  font-size: 13px;
  font-weight: 700;
}

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

.doc-article {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 150px),
    rgba(13, 13, 13, 0.7);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.source-pill {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 0, 0, 0.1);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.doc-article h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.96;
  letter-spacing: 0;
}

.article-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.article-body h2 {
  margin: 36px 0 14px;
  color: var(--text);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: 0;
}

.article-body p {
  margin: 0 0 18px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-body li {
  margin: 10px 0;
  padding-left: 4px;
}

.article-body a,
.source-line a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 0, 0.45);
}

.article-body a:hover,
.source-line a:hover {
  border-bottom-color: var(--accent);
}

.article-body figure {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: #090909;
}

.article-body figure img {
  width: 100%;
  height: auto;
}

.article-body .image-viewer-trigger {
  cursor: zoom-in;
}

.image-viewer-open {
  overflow: hidden;
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(8px);
}

.image-viewer[hidden] {
  display: none;
}

.image-viewer-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  max-height: 100%;
}

.image-viewer-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - clamp(32px, 8vw, 112px));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58), var(--shadow-red);
}

.image-viewer-exit {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  background: rgba(8, 8, 8, 0.9);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.image-viewer-exit:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.callout {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 0, 0, 0.08);
  color: var(--text-muted);
}

.callout strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.callout p:last-child {
  margin-bottom: 0;
}

.source-line {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.doc-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: min(var(--content-width), 100%);
  margin: 18px auto 0;
}

.pager-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: rgba(25, 25, 25, 0.72);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.pager-card:hover {
  border-color: var(--border);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.pager-card span {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pager-card.next {
  text-align: right;
}

.toc-inner {
  height: auto;
  max-height: 100%;
  padding: 18px;
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--text-faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.toc a {
  display: block;
  padding: 8px 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
}

.toc a:hover,
.toc a.active {
  color: var(--accent);
}

.mobile-backdrop {
  display: none;
}

.hidden-by-search {
  display: none;
}

.doc-branch summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  border-radius: 10px;
}

.doc-branch summary::-webkit-details-marker { display: none; }
.doc-branch summary .doc-link { flex: 1; min-width: 0; }
.doc-branch summary::after {
  content: "";
  flex: 0 0 7px;
  height: 7px;
  margin-right: 10px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}
.doc-branch[open] summary::after { transform: rotate(45deg); }
.doc-children {
  margin: 2px 0 10px 12px;
  padding-left: 10px;
  border-left: 1px solid var(--border);
}
.board-tabs {
  margin: 22px 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.16);
}
.board-tabs [role="tablist"] {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.025);
}
.board-tabs [role="tablist"][hidden],
.board-tabs [role="tabpanel"][hidden] { display: none; }
.board-tabs [role="tab"] {
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}
.board-tabs [role="tab"]:hover,
.board-tabs [role="tab"][aria-selected="true"] {
  color: var(--accent);
  background: var(--accent-soft);
  border-bottom-color: var(--accent);
}
.board-tabs [role="tab"]:focus-visible { outline-offset: -4px; }
.board-tabs [role="tabpanel"] { padding: 18px; overflow-wrap: anywhere; }
.board-tabs h3 { margin: 0 0 12px; color: var(--text); }
.board-tabs p:last-child,
.board-tabs ul:last-child { margin-bottom: 0; }
.article-body .download-logo { width: 32px; height: 32px; display: inline-block; vertical-align: middle; margin-right: 10px; }
.article-body .reference-image img { width: auto; max-width: 100%; margin-inline: auto; }
.article-body .reference-image figcaption { padding: 12px 16px; font-size: 13px; color: var(--text-faint); }

.beta-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.beta-modal.is-hidden {
  display: none;
}

.beta-modal-card {
  width: min(440px, 100%);
  border: 1px solid rgba(255, 26, 26, 0.34);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 26, 26, 0.12), transparent 45%),
    rgba(12, 12, 12, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 36px rgba(255, 0, 0, 0.16);
  padding: 26px;
  text-align: left;
}

.beta-modal-card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.beta-modal-card p {
  margin: 0 0 22px;
  color: var(--text-muted);
  line-height: 1.65;
}

.beta-modal-close {
  width: 100%;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  padding: 12px 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.beta-modal-close:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 0, 0, 0.24);
}

.standalone-main {
  min-height: 100vh;
}

.home-page .standalone-main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.stars-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #060606;
}

.stars-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 26, 26, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 26, 26, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.dash-glow {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(120px);
}

.dash-glow-1 {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: rgba(255, 26, 26, 0.08);
}

.dash-glow-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  background: rgba(255, 26, 26, 0.05);
}

.dash-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(6, 6, 6, 0.85);
  backdrop-filter: blur(16px);
}

.dash-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 14px 24px;
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.dash-brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.welcome-card,
.guides-section {
  width: min(1320px, 100%);
  margin-inline: auto;
}

.welcome-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 28px;
  margin-bottom: 40px;
  padding: 28px 32px;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(12, 12, 12, 0) 50%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0);
}

.welcome-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-avatar {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 26, 26, 0.5);
  border-radius: 50%;
  background: linear-gradient(135deg, #ff1a1a, #991b1b);
  box-shadow: 0 0 30px rgba(255, 26, 26, 0.35);
}

.avatar-symbol {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.welcome-label {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.username {
  margin: 2px 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
}

.welcome-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guide-card {
  display: grid;
  gap: 12px;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(255, 0, 0, 0.18), transparent 44%),
    rgba(18, 18, 18, 0.82);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.guide-card.muted {
  border-color: var(--border-soft);
  color: var(--text-muted);
}

.guide-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
  font-weight: 800;
}

.guide-kicker {
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-card strong {
  font-size: 25px;
}

.guide-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.guide-action {
  align-self: end;
  color: var(--accent);
  font-weight: 800;
}

.guides-section {
  padding: 0 24px 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
}

.section-head p {
  max-width: 520px;
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.guide-count {
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-faint);
  padding: 7px 14px;
  font-size: 13px;
  white-space: nowrap;
}

.guide-category {
  margin-bottom: 36px;
}

.guide-category-title {
  margin: 0 0 16px;
  padding-left: 4px;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.guide-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.guide-card.unlocked {
  position: relative;
  display: block;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(197, 34, 34, 0.3);
  border-radius: 16px;
  background: #0c0c0c;
  box-shadow: none;
}

.guide-card.unlocked:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 34, 34, 0.5);
  box-shadow: 0 16px 40px rgba(197, 34, 34, 0.12);
}

.guide-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-badge-unlocked {
  border: 1px solid rgba(197, 34, 34, 0.45);
  background: rgba(34, 197, 94, 0.15);
  color: #de4a4a;
}

.guide-thumb-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #121212;
}

.guide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.guide-card.unlocked:hover .guide-image {
  transform: scale(1.05);
}

.guide-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0c0c0c 0%, transparent 60%);
}

.guide-body {
  padding: 18px 20px 20px;
}

.guide-subtitle {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-title {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.guide-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  min-height: 42px;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}

.guide-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 800;
}

.guide-btn-open {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1180px) {
  .docs-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-shell {
    display: block;
    padding-top: 18px;
  }

  .docs-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1200;
    width: min(86vw, 330px);
    height: 100vh;
    padding: 14px;
    transform: translateX(-104%);
    transition: transform 0.24s ease;
  }

  body.sidebar-open .docs-sidebar {
    transform: translateX(0);
  }

  .sidebar-inner {
    border-radius: 18px;
  }

  .sidebar-close {
    display: inline-grid;
    place-items: center;
  }

  .mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(4px);
  }

  body.sidebar-open .mobile-backdrop {
    display: block;
  }

  .doc-article {
    padding: 24px 18px;
  }

  .doc-pager {
    grid-template-columns: 1fr;
  }

  .pager-card.next {
    text-align: left;
  }

  .home-hero {
    flex-direction: column;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .doc-article h1 {
    font-size: 34px;
  }

  .article-body {
    font-size: 15px;
  }
}
