.guide-shell {
  min-height: 100vh;
  background: #08080e;
}

.guide-top-nav {
  overflow: hidden;
}

.guide-nav-inner {
  gap: 16px;
}

.guide-back-link {
  min-height: 40px;
  flex: 0 0 auto;
  text-decoration: none;
}

.guide-anchor-nav {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.guide-anchor-nav::-webkit-scrollbar {
  display: none;
}

.guide-anchor-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.guide-anchor-nav a:hover {
  color: var(--accent-primary);
  background: rgba(200, 164, 93, 0.08);
}

.guide-main {
  width: calc(100% - 240px);
  min-height: 100vh;
  margin-left: 240px;
  padding: 24px;
  max-width: 1440px;
}

@media (max-width: 640px) {
  .guide-nav-inner {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .guide-back-link {
    align-self: flex-start;
  }

  .guide-anchor-nav {
    margin-left: -4px;
    margin-right: -4px;
    padding-bottom: 2px;
  }

  .guide-anchor-nav a {
    min-height: 38px;
    padding-left: 12px;
    padding-right: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
}

.guide-heading h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.guide-workspace-link {
  min-height: 40px;
  border-radius: 8px;
}

.guide-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.guide-overview-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(26, 26, 36, 0.76);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.guide-overview-card:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.guide-overview-card i {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(200, 164, 93, 0.12);
  border: 1px solid rgba(200, 164, 93, 0.18);
  color: var(--accent-primary);
}

.guide-overview-card strong {
  color: var(--text-primary);
  font-size: 15px;
}

.guide-overview-card span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}

.guide-content {
  display: grid;
  gap: 16px;
}

.guide-section {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: rgba(26, 26, 36, 0.76);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
  scroll-margin-top: 20px;
}

.guide-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.guide-section-title > span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  border-radius: 10px;
  background: var(--accent-gradient);
  color: #000;
  font-weight: 800;
  font-size: 13px;
}

.guide-section-title h2 {
  color: var(--text-primary);
  font-size: 19px;
  font-weight: 700;
}

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

.guide-step-card,
.guide-info-card {
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.guide-step-card b,
.guide-info-card h3 {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}

.guide-step-card p,
.guide-info-card p,
.guide-info-card li {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.guide-step-card p,
.guide-info-card p {
  margin-top: 8px;
}

.guide-info-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.guide-info-card h3 i {
  color: var(--accent-primary);
}

.guide-info-card ul {
  margin-top: 10px;
  padding-left: 18px;
  list-style: disc;
}

.guide-info-card.compact {
  min-height: 132px;
}

.guide-tip,
.guide-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.65;
}

.guide-tip {
  border: 1px solid rgba(200, 164, 93, 0.2);
  background: rgba(200, 164, 93, 0.08);
  color: #f0dcae;
}

.guide-warning {
  border: 1px solid rgba(255, 193, 7, 0.2);
  background: rgba(255, 193, 7, 0.08);
  color: #ffd98a;
}

.guide-tip i,
.guide-warning i {
  margin-top: 3px;
  color: var(--accent-primary);
}

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

.guide-feature-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
}

.guide-feature-list i {
  grid-row: span 2;
  color: var(--accent-primary);
}

.guide-feature-list b {
  color: var(--text-primary);
  font-size: 14px;
}

.guide-feature-list span {
  color: var(--text-muted);
  font-size: 12px;
}

.guide-faq-list {
  display: grid;
  gap: 10px;
}

.guide-faq-list details {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-secondary);
  padding: 13px 14px;
}

.guide-faq-list summary {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.guide-faq-list p {
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.guide-footer {
  padding: 22px 0 6px;
  color: var(--text-muted);
  text-align: center;
  font-size: 13px;
}

.guide-footer > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 8px;
}

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

.guide-footer a:hover {
  color: var(--accent-primary);
}

#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

@media (max-width: 900px) {
  .guide-shell {
    display: block !important;
  }

  .guide-main {
    width: 100%;
    min-height: auto;
    margin-left: 0;
    padding: 16px;
  }

  .guide-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-overview,
  .guide-step-grid,
  .guide-two-col,
  .guide-feature-list {
    grid-template-columns: 1fr;
  }

  .guide-workspace-link {
    width: 100%;
  }
}
