:root {
  --subpage-text: #1d1d1f;
  --subpage-text-soft: #6e6e73;
  --subpage-text-muted: #86868b;
  --subpage-primary: #0071e3;
  --subpage-primary-dark: #0077ed;
  --subpage-accent: #ff9500;
  --subpage-border: rgba(0, 0, 0, .08);
  --subpage-shadow: var(--shadow-subtle);
  --text-contrast-shadow: none;
}
html[data-theme="dark"] {
  --subpage-text: #f5f5f7;
  --subpage-text-soft: #a1a1a6;
  --subpage-text-muted: #6e6e73;
  --subpage-border: rgba(255, 255, 255, .14);
  --text-contrast-shadow: none;
}

.tutorial-body,
.guide-doc-body {
  min-height: 100vh;
  color: var(--subpage-text);
  background: #dce7f1 url('../assets/server-background.avif') center top / cover fixed !important;
}
.tutorial-body::before,
.guide-doc-body::before,
.tutorial-body::after,
.guide-doc-body::after {
  display: none !important;
}
html[data-theme="dark"] .tutorial-body,
html[data-theme="dark"] .guide-doc-body {
  background: #14161b linear-gradient(rgba(18, 18, 20, .78), rgba(18, 18, 20, .86)), url('../assets/server-background.avif') center top / cover fixed !important;
}
.tutorial-body .guide-hero, .tutorial-body .guide-start { position: relative; }
.tutorial-body .guide-layout { position: relative; z-index: auto; }
.tutorial-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 144px 0 86px; }

/* The guide index stays available while reading the entire guide landing page. */
@media (min-width: 901px) {
  .tutorial-index-body .tutorial-main {
    width: min(1420px, calc(100% - 48px));
    margin: 0 auto;
    padding: 104px 0 86px;
    box-sizing: border-box;
  }

  .tutorial-index-body .guide-index-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 188px;
    gap: 36px;
    align-items: start;
  }

  .tutorial-index-body .guide-sidebar {
    position: sticky;
    top: 104px;
    width: 100%;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
    box-sizing: border-box;
    z-index: 10;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg, 16px);
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .04);
    scrollbar-width: thin;
  }
  html[data-theme="dark"] .tutorial-index-body .guide-sidebar {
    background: rgba(28, 30, 36, .65);
    border-color: rgba(255, 255, 255, .12);
  }

  .tutorial-index-body .guide-index-primary {
    min-width: 0;
    display: grid;
    gap: 0;
  }

  .tutorial-index-body .guide-hero { grid-template-columns: 1fr; padding: 0 0 36px; }
  .tutorial-index-body .guide-hero-copy {
    padding: 38px 44px;
    border-radius: 24px;
    background: var(--glass-gradient, var(--glass));
    border: 1px solid var(--line);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
  .tutorial-index-body .guide-hero h1 { max-width: 760px; font-size: clamp(36px, 4.2vw, 54px); }
  .tutorial-index-body .guide-summary { display: none; }
  .tutorial-index-body .guide-hero-copy > p:last-of-type { max-width: 700px; padding-left: 17px; border-left: 3px solid var(--subpage-primary); font-size: 15px; }
  .tutorial-index-body .guide-start { padding: 0 0 36px; }
  .tutorial-index-body .guide-section { grid-template-columns: 1fr; gap: 0; }
  .tutorial-index-body .section-number { display: none; }
  .tutorial-index-body .guide-section-copy { padding-bottom: 45px; }
  .tutorial-index-body .guide-section-copy h2 { font-size: 27px; }

  .tutorial-index-body .guide-index-outline {
    position: sticky;
    top: 104px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: var(--radius-lg, 16px);
    background: rgba(255, 255, 255, .48);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .03);
    box-sizing: border-box;
    display: block;
  }
  html[data-theme="dark"] .tutorial-index-body .guide-index-outline {
    background: rgba(28, 30, 36, .55);
    border-color: rgba(255, 255, 255, .1);
  }
}
.guide-hero { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 28px; align-items: stretch; padding: 24px 0 36px; }
.guide-hero-copy {
  align-self: center;
  padding: 38px 44px;
  border-radius: 24px;
  background: var(--glass-gradient, var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.guide-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--subpage-primary-dark); font-family: 'Quicksand', 'Noto Sans SC', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.guide-kicker svg { width: 16px; height: 16px; }
.guide-hero h1, .contact-hero h1 { max-width: 760px; margin: 0; color: var(--subpage-text); font-size: clamp(40px, 5vw, 64px); line-height: 1.18; }
.guide-hero h1 em, .contact-hero h1 em { color: var(--subpage-primary); font-style: normal; }
.guide-hero-copy > p:last-of-type { max-width: 660px; margin: 23px 0 0; color: var(--subpage-text-soft); font-size: 16px; line-height: 1.9; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-summary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 335px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--glass-gradient, var(--glass));
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
html[data-theme="dark"] .guide-hero-copy,
html[data-theme="dark"] .guide-summary {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--subpage-border);
  box-shadow: var(--subpage-shadow);
}
.guide-summary-title { display: flex; align-items: center; gap: 14px; }
.summary-icon { display: grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; color: #fff; background: var(--subpage-primary); }
.summary-icon svg { width: 22px; }
.guide-summary-title small, .guide-summary-title strong { display: block; }
.guide-summary-title small { margin-bottom: 3px; color: var(--subpage-text-soft); font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.guide-summary-title strong { color: var(--subpage-text); font-size: 15px; }
.guide-summary dl { display: grid; gap: 0; margin: 25px 0; }
.guide-summary dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid rgba(136, 122, 170, .16); }
.guide-summary dt, .guide-summary dd { margin: 0; font-size: 12px; line-height: 1.45; }
.guide-summary dt { color: var(--subpage-text-soft); }
.guide-summary dd { color: var(--subpage-text); font-weight: 800; text-align: right; }
.summary-link { display: flex; align-items: center; justify-content: space-between; color: var(--subpage-primary-dark); font-size: 13px; font-weight: 800; }
.summary-link svg { width: 17px; }
.guide-start { padding: 30px 0 54px; }
.guide-section-heading {
  display: inline-block;
  margin-bottom: 20px;
  padding: 12px 24px;
  border-radius: 20px;
  background: var(--glass-gradient, var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.guide-section-heading p, .form-head > p { margin: 0 0 4px; color: var(--subpage-primary-dark); font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.guide-section-heading h2 { margin: 0; color: var(--subpage-text); font-size: 24px; font-weight: 800; }
.start-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 24px); }
.start-step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--subpage-text);
  background: var(--glass-gradient, var(--glass));
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.start-step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 113, 227, .38);
  box-shadow: 0 16px 36px rgba(0, 113, 227, .16);
}
html[data-theme="dark"] .guide-section-heading,
html[data-theme="dark"] .start-step {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--subpage-border);
  box-shadow: var(--subpage-shadow);
}
html[data-theme="dark"] .start-step:hover {
  border-color: rgba(0, 113, 227, .45);
  box-shadow: 0 16px 36px rgba(0, 113, 227, .25);
}
.start-step > span { color: var(--subpage-primary-dark); font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 800; }
.start-step > i { align-self: start; color: var(--subpage-primary); }
.start-step h3 { grid-column: 1 / -1; margin: 17px 0 4px; font-size: 17px; }
.start-step p { grid-column: 1 / -1; margin: 0; color: var(--subpage-text-soft); font-size: 12px; font-weight: 600; line-height: 1.65; }
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 46px; align-items: start; }
.guide-index-content {
  padding: 38px 44px;
  border-radius: 24px;
  background: var(--glass-gradient, var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
html[data-theme="dark"] .guide-index-content {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--subpage-border);
  box-shadow: var(--subpage-shadow);
}
.tutorial-body .guide-toc { position: sticky; top: 112px; z-index: 5; max-height: calc(100vh - 136px); padding: 20px; overflow-y: auto; border: 1px solid var(--subpage-border); border-radius: var(--radius-lg, 16px); box-shadow: var(--subpage-shadow); scrollbar-width: thin; scrollbar-color: var(--subpage-primary) transparent; }
.guide-toc > p { margin: 0 0 11px; color: var(--subpage-text-soft); font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.guide-toc nav { display: grid; gap: 2px; }
.guide-toc-group { border-bottom: 1px solid rgba(136, 122, 170, .12); }
.guide-toc-group:last-of-type { border-bottom: 0; }
.guide-toc-group summary, .guide-toc-link { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 10px 12px; color: var(--subpage-text-soft); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; transition: color .2s ease, background .2s ease; }
.guide-toc-group summary::-webkit-details-marker { display: none; }
.guide-toc-group summary > span, .guide-toc-link > span { display: flex; align-items: center; gap: 9px; }
.guide-toc-group summary svg:first-child, .guide-toc-link svg { flex: 0 0 auto; width: 16px; height: 16px; }
.guide-toc-group summary:hover, .guide-toc-link:hover { color: var(--subpage-primary-dark); background: rgba(255, 255, 255, .46); }
.guide-toc-group[open] > summary { color: var(--subpage-primary-dark); background: rgba(255, 228, 237, .48); }
.guide-toc-group[open] > summary::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; background: var(--subpage-primary); content: ''; }
.guide-toc-chevron { width: 15px !important; height: 15px !important; transition: transform .2s ease; }
.guide-toc-group[open] .guide-toc-chevron { transform: rotate(180deg); }
.guide-toc-children { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 2px 0 7px 37px; }
.guide-toc-children a { position: relative; display: block; width: 100%; box-sizing: border-box; padding: 7px 10px; border: 0; color: var(--subpage-text-soft); font-size: 12px; font-weight: 600; line-height: 1.45; transition: color .2s ease, background .2s ease, transform .2s ease; }
.guide-toc-children a:hover { color: var(--subpage-primary-dark); background: rgba(255, 255, 255, .42); transform: translateX(2px); }
.guide-toc-link { justify-content: flex-start; border: 0; }
.guide-content { display: grid; gap: 45px; }
.guide-section { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 25px; scroll-margin-top: 120px; }
.section-number { display: grid; place-items: center; align-self: start; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .76); border-radius: 12px; color: var(--subpage-primary-dark); background: rgba(255,255,255,.6); font-family: 'Quicksand', sans-serif; font-size: 14px; font-weight: 800; box-shadow: 0 9px 22px rgba(0, 113, 227, .08); }
.guide-section-copy { min-width: 0; padding-bottom: 45px; border-bottom: 1px solid rgba(136, 122, 170, .2); }
.guide-section:last-child .guide-section-copy { padding-bottom: 0; border: 0; }
.guide-section-copy h2 { margin: 0; color: var(--subpage-text); font-size: clamp(25px, 3vw, 34px); line-height: 1.35; }
.guide-lead { max-width: 720px; margin: 14px 0 24px; color: var(--subpage-text-soft); font-size: 14px; line-height: 1.85; }
.guide-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: guide-list; }
.guide-list li { display: grid; grid-template-columns: 30px 1fr; gap: 13px; padding: 16px; border-radius: var(--radius-md, 14px); border-left: 3px solid var(--subpage-primary); background: #f8fafc; border: 1px solid rgba(0, 0, 0, .05); border-left-width: 4px; border-left-color: var(--subpage-primary); }
html[data-theme="dark"] .guide-list li { background: #202228; border-color: rgba(255, 255, 255, .08); border-left-color: var(--subpage-primary); }
.guide-list li::before { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--subpage-primary); content: counter(guide-list); counter-increment: guide-list; font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 800; }
.guide-list strong, .guide-list span { display: block; }
.guide-list strong { grid-column: 2; grid-row: 1; margin: 2px 0 5px; font-size: 14px; }
.guide-list span { grid-column: 2; grid-row: 2; color: var(--subpage-text-soft); font-size: 12px; line-height: 1.7; }
.guide-callout { display: flex; gap: 12px; margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--subpage-accent); background: rgba(255, 229, 157, .24); border-radius: var(--radius-md, 14px); border: 1px solid rgba(220, 160, 40, .2); border-left-width: 4px; border-left-color: var(--subpage-accent); }
html[data-theme="dark"] .guide-callout { background: rgba(255, 149, 0, .12); border-color: rgba(255, 149, 0, .25); border-left-width: 4px; border-left-color: var(--subpage-accent); }
.guide-callout svg { flex: 0 0 auto; width: 18px; color: #d19e28; }
.guide-callout p, .guide-note { margin: 0; color: var(--subpage-text-soft); font-size: 13px; line-height: 1.75; }
.guide-callout strong { color: var(--subpage-text); }
.guide-callout code { color: #8e5500; background: rgba(245, 175, 50, .22); border: 1px solid rgba(220, 160, 40, .28); font-size: 0.92em; padding: 1px 5px; border-radius: 4px; font-family: Consolas, Monaco, "Cascadia Code", monospace; font-weight: 700; }

.guide-doc-body code,
.tutorial-body code {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 6px;
  color: var(--subpage-primary-dark);
  background: rgba(0, 113, 227, .08);
  border: 1px solid rgba(0, 113, 227, .16);
  font-family: Consolas, Monaco, "Cascadia Code", monospace;
  font-size: 0.92em;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  vertical-align: baseline;
}
html[data-theme="dark"] .guide-doc-body code,
html[data-theme="dark"] .tutorial-body code {
  color: #5ac8fa;
  background: rgba(0, 113, 227, .18);
  border-color: rgba(0, 113, 227, .32);
}
.guide-resource { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 13px; align-items: center; margin-top: 18px; padding: 18px 20px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; box-shadow: 0 2px 10px rgba(0, 0, 0, .02); }
html[data-theme="dark"] .guide-resource { background: #202228; border-color: rgba(255, 255, 255, .08); }
.guide-resource > svg { width: 20px; height: 20px; color: var(--subpage-primary); }
.guide-resource > div { display: grid; gap: 3px; min-width: 0; }
.guide-resource strong { color: var(--subpage-text); font-size: 14px; line-height: 1.45; }
.guide-resource span { color: var(--subpage-text-soft); font-size: 12px; line-height: 1.6; }
.guide-resource .button { white-space: nowrap; }
.route-list { display: grid; gap: 10px; }
.route-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 17px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; cursor: pointer; transition: border-color .22s ease, background .22s ease, box-shadow .28s ease, transform .28s var(--ease-spring); }
.route-card:hover { border-color: rgba(0, 113, 227, .3); background: #ffffff; box-shadow: 0 10px 24px rgba(0, 113, 227, .08); transform: translateX(4px); }
.route-card.is-recommended, .route-card.is-active { border-color: rgba(0, 113, 227, .4); background: rgba(0, 113, 227, .06); box-shadow: 0 8px 20px rgba(0, 113, 227, .08); }
html[data-theme="dark"] .route-card { background: #202228; border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .route-card:hover { background: #262932; border-color: rgba(0, 113, 227, .45); }
.route-card div { display: grid; gap: 3px; min-width: 0; }
.route-index { color: var(--subpage-primary-dark); font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.route-card strong { font-size: 14px; }
.route-card code, .command-grid code, .command-row code, .claim-actions code, .mod-grid code { color: var(--subpage-primary-dark); font-family: Consolas, monospace; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; width: fit-content; max-width: 100%; }
.route-card .copy-button { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 50%; line-height: 1; transition: transform .25s var(--ease-spring), box-shadow .2s ease, background .2s ease; }
.route-card .copy-button:hover { background: var(--subpage-primary-dark); box-shadow: 0 12px 24px rgba(0, 113, 227, .3); transform: scale(1.08) rotate(-4deg); }
.route-card .copy-button.is-copied { background: #56a784; transform: scale(.94); }
.route-card .copy-button svg { display: block; width: 17px; height: 17px; margin: 0; }
.guide-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.guide-note svg { width: 17px; color: #55a68e; }
.command-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.command-grid article { padding: 18px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .command-grid article { background: #202228; border-color: rgba(255, 255, 255, .08); }
.command-grid span { display: block; margin-bottom: 11px; color: var(--subpage-text-soft); font-size: 11px; font-weight: 800; }
.command-grid p { margin: 12px 0 0; color: var(--subpage-text-soft); font-size: 11px; line-height: 1.65; }
.command-table { display: grid; overflow: hidden; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .command-table { background: #202228; border-color: rgba(255, 255, 255, .08); }
.command-row { display: grid; grid-template-columns: minmax(190px, .9fr) 1.1fr; align-items: start; gap: 20px; padding: 14px 17px; border-bottom: 1px solid rgba(136, 122, 170, .14); }
.command-row:last-child { border: 0; }
.command-row code { align-self: start; justify-self: start; width: fit-content; max-width: 100%; }
.command-row span { color: var(--subpage-text-soft); font-size: 12px; line-height: 1.6; }
.claim-actions, .mod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.claim-actions article, .mod-grid article { padding: 20px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .claim-actions article, html[data-theme="dark"] .mod-grid article { background: #202228; border-color: rgba(255, 255, 255, .08); }
.claim-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 15px; border-radius: 10px; color: var(--subpage-primary); background: rgba(0, 113, 227, .1); }
.claim-icon svg, .mod-grid > article > svg { width: 18px; }
.claim-actions h3, .mod-grid h3 { margin: 0 0 9px; font-size: 15px; }
.claim-actions p, .mod-grid p { margin: 11px 0 0; color: var(--subpage-text-soft); font-size: 12px; line-height: 1.7; }
kbd { padding: 2px 6px; border: 1px solid rgba(136, 122, 170, .3); border-bottom-width: 2px; border-radius: 6px; color: var(--subpage-text); background: rgba(255,255,255,.8); font-family: Consolas, monospace; font-size: .9em; }
.guide-details { margin-top: 13px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; overflow: hidden; }
html[data-theme="dark"] .guide-details { background: #202228; border-color: rgba(255, 255, 255, .08); }
.guide-details summary { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; color: var(--subpage-text); cursor: pointer; font-size: 13px; font-weight: 800; list-style: none; }
.guide-details summary::-webkit-details-marker { display: none; }
.guide-details[open] summary svg { transform: rotate(180deg); }
.guide-details summary svg { width: 18px; transition: transform .2s ease; }
.guide-details > div { display: grid; grid-template-columns: minmax(220px, .9fr) 1.1fr; gap: 0 18px; padding: 0 18px 17px; }
.guide-details code, .guide-details span { padding-top: 10px; border-top: 1px solid rgba(136, 122, 170, .14); font-size: 12px; line-height: 1.6; }
.guide-details code { color: var(--subpage-primary-dark); overflow-wrap: anywhere; }
.guide-details span { color: var(--subpage-text-soft); }
.mod-grid { grid-template-columns: repeat(2, 1fr); }
.mod-grid > article > svg { color: var(--subpage-primary); }
.faq-list { display: grid; gap: 9px; }
.faq-item { padding: 16px 18px 17px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .faq-item { background: #202228; border-color: rgba(255, 255, 255, .08); }
.faq-item h3 { margin: 0 0 10px; color: var(--subpage-text); font-size: 14px; line-height: 1.5; }
.faq-item p { margin: 0; padding: 0; color: var(--subpage-text-soft); font-size: 12px; line-height: 1.75; }
.faq-item p + p { margin-top: 6px; }
.faq-list details { border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .faq-list details { background: #202228; border-color: rgba(255, 255, 255, .08); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--subpage-text); cursor: pointer; font-size: 14px; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 17px; color: var(--subpage-primary); transition: transform .2s ease; }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list p { margin: 0; padding: 0 18px 17px; color: var(--subpage-text-soft); font-size: 12px; line-height: 1.75; }
.support-banner { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 22px; padding: 22px 24px; border: 1px solid rgba(255, 142, 183, .35); border-radius: 12px; background: rgba(255, 228, 237, .36); box-shadow: 0 6px 20px rgba(245, 86, 155, .06); }
.support-banner-info { display: flex; align-items: center; gap: 16px; min-width: 0; }
.support-banner-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 10px; color: #fff; background: linear-gradient(135deg, #f5569b, #d93d80); box-shadow: 0 6px 14px rgba(245, 86, 155, .28); }
.support-banner-icon svg { width: 22px; height: 22px; color: #fff !important; }
.support-banner-text { display: grid; gap: 4px; min-width: 0; }
.support-banner-text h3 { margin: 0; color: var(--subpage-text); font-size: 15px; font-weight: 750; line-height: 1.4; }
.support-banner-text p { margin: 0; padding: 0; color: var(--subpage-text-soft); font-size: 13px; line-height: 1.6; }
body.guide-doc-body .support-banner {
  border: 1px solid rgba(0, 113, 227, .16);
  background: rgba(0, 113, 227, .04);
  box-shadow: 0 6px 20px rgba(0, 113, 227, .06);
}
body.guide-doc-body .support-banner-icon {
  background: linear-gradient(135deg, #0071e3, #0077ed);
  box-shadow: 0 6px 14px rgba(0, 113, 227, .25);
}

.support-banner .button,
.guide-doc-content a.button,
.guide-doc-content .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none !important;
  flex-shrink: 0;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.support-banner .button-primary,
.guide-doc-content a.button-primary,
.guide-doc-content .button-primary {
  color: #ffffff !important;
  background: var(--subpage-primary, #0071e3) !important;
  border: 1px solid rgba(255, 255, 255, .25) !important;
  box-shadow: 0 6px 18px rgba(0, 113, 227, .32) !important;
  text-decoration: none !important;
}

.support-banner .button-primary:visited,
.guide-doc-content a.button-primary:visited,
.guide-doc-content .button-primary:visited {
  color: #ffffff !important;
  text-decoration: none !important;
}

.support-banner .button-primary:hover,
.guide-doc-content a.button-primary:hover,
.guide-doc-content .button-primary:hover {
  color: #ffffff !important;
  background: #0077ed !important;
  box-shadow: 0 8px 24px rgba(0, 113, 227, .42) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.support-banner .button-primary:active,
.guide-doc-content a.button-primary:active,
.guide-doc-content .button-primary:active {
  transform: translateY(0);
}

.support-banner .button-primary svg,
.support-banner .button-primary span,
.support-banner .button-primary i,
.guide-doc-content .button-primary svg,
.guide-doc-content .button-primary span,
.guide-doc-content .button-primary i {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.support-banner .button-secondary,
.guide-doc-content a.button-secondary,
.guide-doc-content .button-secondary {
  color: var(--subpage-text, #1d1d1f) !important;
  background: rgba(255, 255, 255, .65) !important;
  border: 1px solid rgba(0, 0, 0, .1) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .05) !important;
  text-decoration: none !important;
}

.support-banner .button-secondary:hover,
.guide-doc-content a.button-secondary:hover,
.guide-doc-content .button-secondary:hover {
  color: var(--subpage-primary, #0071e3) !important;
  background: #ffffff !important;
  border-color: rgba(0, 113, 227, .3) !important;
  box-shadow: 0 6px 18px rgba(0, 113, 227, .12) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.support-banner .button-secondary svg,
.guide-doc-content .button-secondary svg {
  color: currentColor !important;
}

html[data-theme="dark"] .support-banner .button-secondary,
html[data-theme="dark"] .guide-doc-content .button-secondary {
  color: #f5f5f7 !important;
  background: rgba(255, 255, 255, .08) !important;
  border-color: rgba(255, 255, 255, .15) !important;
}
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; max-width: calc(100% - 30px); padding: 10px 15px; border-radius: 6px; color: #fff; background: rgba(90, 75, 129, .92); box-shadow: 0 15px 35px rgba(72, 61, 110, .26); font-size: 12px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.start-step-link { display: flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 16px; color: var(--subpage-primary-dark); font-size: 11px; font-weight: 800; }
.start-step-link svg { width: 14px; height: 14px; }
.guide-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guide-topic-grid a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0 12px;
  min-height: 184px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--subpage-text);
  background: rgba(255, 255, 255, .52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.guide-topic-grid a:hover {
  border-color: rgba(0, 113, 227, .38);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 12px 28px rgba(0, 113, 227, .12);
  transform: translateY(-3px);
}
html[data-theme="dark"] .guide-topic-grid a {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .1);
}
html[data-theme="dark"] .guide-topic-grid a:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(0, 113, 227, .45);
}
.guide-topic-grid > a > svg { width: 22px; color: var(--subpage-primary); }
.guide-topic-grid strong { align-self: center; font-size: 15px; }
.guide-topic-grid span, .guide-topic-grid em { grid-column: 1 / -1; }
.guide-topic-grid span { margin-top: 17px; color: var(--subpage-text-soft); font-size: 12px; font-style: normal; line-height: 1.75; }
.guide-topic-grid em { display: flex; align-items: center; gap: 5px; align-self: end; margin-top: 12px; color: var(--subpage-primary-dark); font-size: 11px; font-style: normal; font-weight: 800; }
.guide-topic-grid em svg { width: 14px; height: 14px; }
.notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.notice-grid article { padding: 22px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .notice-grid article { background: #202228; border-color: rgba(255, 255, 255, .08); }
.notice-grid article > svg { width: 23px; color: var(--subpage-primary); }
.notice-grid h3 { margin: 16px 0 8px; color: var(--subpage-text); font-size: 16px; }
.notice-grid p { margin: 0; color: var(--subpage-text-soft); font-size: 12px; font-weight: 600; line-height: 1.75; }
.notice-grid small { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(136, 122, 170, .14); color: var(--subpage-primary-dark); font-size: 11px; font-weight: 800; line-height: 1.6; }
.changelog-entry { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; padding: 22px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .changelog-entry { background: #202228; border-color: rgba(255, 255, 255, .08); }
.changelog-entry-date { display: grid; align-content: start; gap: 8px; padding-right: 22px; border-right: 1px solid rgba(136, 122, 170, .16); }
.changelog-entry-date time { color: var(--subpage-primary-dark); font-family: 'Quicksand', sans-serif; font-size: 16px; font-weight: 800; }
.changelog-entry-date span { color: var(--subpage-text-soft); font-size: 11px; font-weight: 700; }
.changelog-entry-body h3 { margin: 0 0 9px; color: var(--subpage-text); font-size: 16px; }
.changelog-entry-body p { margin: 0; color: var(--subpage-text-soft); font-size: 13px; line-height: 1.8; }

/* Document pages */
.guide-doc-main { padding: 120px 0 72px; }
.guide-doc-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr) 200px; gap: 32px; width: min(1440px, calc(100% - 48px)); margin: 0 auto; align-items: start; }
.guide-sidebar { position: sticky; top: 112px; z-index: 50; max-height: calc(100vh - 136px); padding: 16px 14px; overflow-y: auto; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-lg, 16px); background: rgba(255, 255, 255, .58); box-shadow: 0 8px 24px rgba(0, 0, 0, .04); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); pointer-events: auto; }
html[data-theme="dark"] .guide-sidebar { background: rgba(28, 30, 36, .65); border-color: rgba(255, 255, 255, .12); box-shadow: 0 8px 24px rgba(0, 0, 0, .28); }
.guide-sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 8px 9px 20px; border-bottom: 1px solid rgba(136, 122, 170, .16); color: var(--subpage-text); }
.guide-sidebar-brand.is-active { color: var(--subpage-primary-dark); }
.guide-sidebar-brand.is-active > svg { color: var(--subpage-primary); }
.guide-sidebar-brand > svg { width: 21px; color: var(--subpage-primary); }
.guide-sidebar-brand small, .guide-sidebar-brand strong { display: block; }
.guide-sidebar-brand small { margin-bottom: 3px; color: var(--subpage-text-soft); font-family: 'Quicksand', sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.guide-sidebar-brand strong { font-size: 14px; }
.guide-sidebar-nav { display: grid; gap: 2px; padding-top: 16px; }
.guide-doc-body:not(.is-guide-ready) .guide-sidebar-nav { visibility: hidden; }
.guide-sidebar-nav p { margin: 12px 9px 5px; color: var(--subpage-text-soft); font-family: 'Quicksand', sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.guide-sidebar-nav p:first-child { margin-top: 0; }
.guide-sidebar-nav a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 8px 10px; border-radius: 8px; color: var(--subpage-text-soft); font-size: 13px; font-weight: 700; transition: color .2s ease, background .2s ease; }
.guide-sidebar-nav a:hover { color: var(--subpage-primary); background: rgba(0, 113, 227, .08); }
.guide-sidebar-nav a.is-active { color: var(--subpage-primary-dark); background: rgba(0, 113, 227, .14); }
.guide-sidebar-nav a svg { flex: 0 0 auto; width: 16px; height: 16px; }
.guide-sidebar-nav .guide-topic-link { min-height: 42px; padding: 9px; font-size: 13px; }
.guide-sidebar-nav .guide-topic-link.is-active { color: var(--subpage-primary-dark); background: rgba(0, 113, 227, .14); }
.guide-sidebar-nav .guide-topic-link + .guide-topic-link { margin-top: 2px; }
.guide-sidebar-nav .guide-topic-link svg { width: 17px; height: 17px; }
.guide-sidebar-nav .guide-topic-sub-link { display: block; min-height: 32px; margin: 0 0 4px 34px; padding: 7px 9px; border-radius: 6px; color: var(--subpage-text-soft); font-size: 12px; font-weight: 600; line-height: 1.45; }
.guide-sidebar-nav .guide-topic-sub-link:hover, .guide-sidebar-nav .guide-topic-sub-link.is-active { color: var(--subpage-primary-dark); background: rgba(0, 113, 227, .1); }
.guide-sidebar-home-links { display: grid; gap: 1px; margin: -7px 0 8px; padding: 0 0 9px 34px; border-bottom: 1px solid rgba(136, 122, 170, .14); }
.guide-sidebar-nav .guide-sidebar-home-link { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 6px 8px; border-radius: 6px; color: var(--subpage-text-soft); font-size: 12px; font-weight: 600; }
.guide-sidebar-nav .guide-sidebar-home-link svg { width: 15px; height: 15px; }
.guide-sidebar-nav .guide-sidebar-home-link:hover, .guide-sidebar-nav .guide-sidebar-home-link.is-active { color: var(--subpage-primary-dark); background: rgba(0, 113, 227, .1); }
.guide-sidebar-group { border-bottom: 1px solid rgba(136, 122, 170, .14); }
.guide-sidebar-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 8px 10px; border-radius: 8px; color: var(--subpage-text-soft); cursor: pointer; font-size: 13px; font-weight: 700; list-style: none; }
.guide-sidebar-group summary::-webkit-details-marker { display: none; }
.guide-sidebar-group summary > span { display: flex; align-items: center; gap: 9px; }
.guide-sidebar-group summary svg { flex: 0 0 auto; width: 16px; height: 16px; }
.guide-sidebar-group summary > svg:last-child { width: 15px; height: 15px; transition: transform .2s ease; }
.guide-sidebar-group[open] > summary { color: var(--subpage-primary-dark); background: rgba(0, 113, 227, .08); }
.guide-sidebar-group[open] > summary > svg:last-child { transform: rotate(180deg); }
.guide-sidebar-group > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 2px 0 8px 34px; }
.guide-sidebar-group > div a { display: block; min-height: 0; padding: 6px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1.45; }
.guide-doc-content {
  min-width: 0;
  padding: 40px 48px 48px;
  border-radius: 24px;
  background: var(--glass-gradient, var(--glass));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-subtle);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
html[data-theme="dark"] .guide-doc-content {
  background: var(--glass-gradient, var(--glass));
  border-color: var(--subpage-border);
  box-shadow: var(--subpage-shadow);
}
.guide-breadcrumb { display: flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--subpage-text-soft); font-size: 12px; }
.guide-breadcrumb a { display: inline-flex; align-items: center; gap: 4px; color: var(--subpage-primary-dark); font-weight: 800; text-decoration: none; transition: color .2s ease, transform .2s ease; }
.guide-breadcrumb a:hover { color: var(--subpage-primary); transform: translateX(-2px); }
.guide-breadcrumb svg { width: 14px; height: 14px; }
.guide-doc-header { padding-bottom: 45px; border-bottom: 1px solid rgba(136, 122, 170, .2); }
.guide-doc-header > p { margin: 0 0 13px; color: var(--subpage-primary-dark); font-family: 'Quicksand', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.guide-doc-header h1 { margin: 0; color: var(--subpage-text); font-size: clamp(38px, 4.4vw, 56px); line-height: 1.18; }
.guide-doc-intro { max-width: none; margin-top: 19px; padding-left: 17px; border-left: 3px solid var(--subpage-primary); }
.guide-doc-intro p { margin: 0; color: var(--subpage-text-soft); font-size: 15px; line-height: 1.9; }
.guide-doc-content > section { padding: 46px 0; border-bottom: 1px solid rgba(136, 122, 170, .18); scroll-margin-top: 105px; }
.guide-doc-content > section h2 { margin: 0 0 15px; color: var(--subpage-text); font-size: 27px; line-height: 1.35; }
.guide-doc-content > section > p { margin: 0 0 20px; color: var(--subpage-text-soft); font-size: 14px; line-height: 1.9; }
.guide-doc-content > section a:not(.button) { color: var(--subpage-primary-dark); font-weight: 800; text-decoration: underline; text-decoration-color: rgba(245,86,155,.35); text-underline-offset: 3px; }
.guide-doc-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: guide-doc-step; }
.guide-doc-steps li { position: relative; padding: 2px 0 2px 52px; counter-increment: guide-doc-step; }
.guide-doc-steps li::before { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--subpage-primary); content: counter(guide-doc-step); font-family: 'Quicksand', sans-serif; font-size: 12px; font-weight: 800; }
.guide-doc-steps strong { display: block; color: var(--subpage-text); font-size: 14px; }
.guide-doc-steps p { margin: 6px 0 0; color: var(--subpage-text-soft); font-size: 13px; line-height: 1.78; }
.guide-doc-steps p code { color: var(--subpage-text); font-family: inherit; font-size: 1em; font-weight: 700; letter-spacing: 0; }
.guide-doc-content > section h3 { margin: 24px 0 12px; color: var(--subpage-text); font-size: 18px; line-height: 1.45; }
.guide-link-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.guide-link-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--subpage-text-soft); font-size: 13px; line-height: 1.7; }
.guide-link-list a, .guide-doc-content a:not(.button) { color: var(--subpage-primary-dark); font-weight: 700; }
.guide-table { width: 100%; margin: 14px 0 18px; border-collapse: separate; border-spacing: 0; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); overflow: hidden; background: #f8fafc; font-size: 12px; }
html[data-theme="dark"] .guide-table { background: #202228; border-color: rgba(255, 255, 255, .08); }
.guide-table th, .guide-table td { padding: 11px 14px; border-bottom: 1px solid rgba(0, 0, 0, .05); text-align: left; }
html[data-theme="dark"] .guide-table th, html[data-theme="dark"] .guide-table td { border-bottom-color: rgba(255, 255, 255, .06); }
.guide-table th { color: var(--subpage-text); background: rgba(0, 113, 227, .06); font-weight: 800; }
html[data-theme="dark"] .guide-table th { background: rgba(0, 113, 227, .15); }
.guide-table tr:last-child td { border-bottom: 0; }
.guide-step-image,
.guide-doc-content img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 560px;
  height: auto;
  margin: 14px 0 6px;
  border: 1px solid rgba(0, 0, 0, .06);
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
}
html[data-theme="dark"] .guide-step-image,
html[data-theme="dark"] .guide-doc-content img {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}
.guide-step-image-small { max-width: min(100%, 420px); }
.guide-image-caption { width: fit-content; max-width: min(100%, 720px); margin: 8px 0 0 !important; padding: 10px 14px; border-left: 3px solid var(--subpage-primary); background: rgba(0, 113, 227, .06); border-radius: 0 8px 8px 0; }
html[data-theme="dark"] .guide-image-caption { background: rgba(0, 113, 227, .12); }
.guide-checklist { display: grid; gap: 10px; }
.guide-checklist > div { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-left: 4px solid var(--subpage-primary); border-radius: var(--radius-md, 14px); background: #f8fafc; border: 1px solid rgba(0, 0, 0, .05); border-left-width: 4px; border-left-color: var(--subpage-primary); }
html[data-theme="dark"] .guide-checklist > div { background: #202228; border-color: rgba(255, 255, 255, .08); border-left-color: var(--subpage-primary); }
.guide-checklist .checklist-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.guide-checklist > div > svg,
.guide-checklist .checklist-icon svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--subpage-primary); }
.guide-checklist span { flex: 1; min-width: 0; color: var(--subpage-text-soft); font-size: 13px; line-height: 1.6; }
.guide-checklist strong { color: var(--subpage-text); }
.guide-checklist code { color: var(--subpage-primary-dark); font-family: Consolas, monospace; font-size: .95em; font-weight: 800; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.shortcut-grid > div { display: grid; grid-template-columns: minmax(86px, .45fr) 1fr; gap: 12px; align-items: start; padding: 14px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); background: #f8fafc; }
html[data-theme="dark"] .shortcut-grid > div { background: #202228; border-color: rgba(255, 255, 255, .08); }
.shortcut-grid kbd { display: inline-flex; justify-content: center; width: max-content; min-width: 56px; }
.shortcut-grid span { color: var(--subpage-text-soft); font-size: 12px; line-height: 1.68; }
.shortcut-grid strong { color: var(--subpage-text); }
.guide-pager { display: flex; justify-content: space-between; gap: 18px; margin-top: 34px; }
.guide-pager > span { flex: 1; }
.guide-pager a { display: grid; gap: 4px; min-width: 180px; padding: 16px 18px; border: 1px solid rgba(0, 0, 0, .06); border-radius: var(--radius-md, 14px); color: var(--subpage-text); background: #f8fafc; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease; }
.guide-pager a:last-child { text-align: right; }
.guide-pager a:hover { border-color: rgba(0, 113, 227, .3); background: #ffffff; box-shadow: 0 8px 24px rgba(0, 113, 227, .08); transform: translateY(-2px); }
html[data-theme="dark"] .guide-pager a { background: #202228; border-color: rgba(255, 255, 255, .08); }
html[data-theme="dark"] .guide-pager a:hover { background: #262932; border-color: rgba(0, 113, 227, .45); }
.guide-pager small { color: var(--subpage-text-soft); font-size: 11px; }
.guide-pager strong { display: flex; align-items: center; justify-content: flex-start; gap: 6px; color: var(--subpage-primary-dark); font-size: 13px; }
.guide-pager a:last-child strong { justify-content: flex-end; }
.guide-pager svg { width: 15px; height: 15px; }
.guide-outline { position: sticky; top: 118px; padding: 16px 14px; border-radius: var(--radius-lg, 16px); border: 1px solid rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .48); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); box-shadow: 0 8px 24px rgba(0, 0, 0, .03); }
html[data-theme="dark"] .guide-outline { background: rgba(28, 30, 36, .55); border-color: rgba(255, 255, 255, .1); }
.guide-outline > p { margin: 0 0 11px; color: var(--subpage-text); font-size: 12px; font-weight: 800; }
.guide-outline nav { display: grid; gap: 3px; }
.guide-outline a { position: relative; margin-left: -4px; padding: 6px 10px; border-radius: 6px; color: var(--subpage-text-soft); font-size: 12px; line-height: 1.5; transition: color .18s ease, background .18s ease; }
.guide-outline a:hover { color: var(--subpage-primary-dark); background: rgba(0, 113, 227, .06); }
.guide-outline a.is-active { background: rgba(0, 113, 227, .12); color: var(--subpage-primary-dark); font-weight: 800; }
.guide-outline a.is-active::before { position: absolute; top: 7px; bottom: 7px; left: -4px; width: 3px; border-radius: 999px; background: var(--subpage-primary); content: ''; }
/* Base mobile bar hidden on desktop */
.guide-mobile-bar,
.guide-mobile-backdrop {
  display: none !important;
}

@media (max-width: 900px) {
  .tutorial-index-body .tutorial-main { padding-top: 108px; }
  .guide-hero { grid-template-columns: 1fr; }
  .guide-summary { min-height: auto; }
  .guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .guide-doc-layout { display: block; width: min(100% - 28px, 650px); margin: 0 auto; }
  .guide-doc-main { padding-top: 108px; }

  /* 手机端隐藏“本页内容”大纲目录，保持页面清爽不拥挤 */
  .guide-outline,
  .guide-index-outline,
  .guide-toc {
    display: none !important;
  }

  /* 手机端攻略/服务器指南标签栏：顶部置顶吸顶条 */
  .guide-sidebar {
    position: sticky;
    top: 84px;
    z-index: 900;
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    background: transparent;
    max-height: none;
    overflow: visible;
  }

  .guide-mobile-backdrop.is-active {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 850;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .guide-sidebar-brand {
    display: none !important;
  }

  /* 手机端左侧三条杠汉堡按钮吸顶栏 */
  .guide-mobile-bar {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.1));
    background: var(--glass-gradient, rgba(255, 255, 255, 0.88));
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  }

  .guide-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 8px 0 4px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--subpage-text, #1d1d1f);
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }

  .guide-mobile-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--subpage-primary, #0071e3);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.28);
    transition: transform 0.2s var(--ease-spring), background 0.2s ease, box-shadow 0.2s ease;
  }

  .guide-mobile-hamburger svg {
    width: 16px;
    height: 16px;
  }

  .guide-sidebar.is-menu-open .guide-mobile-hamburger {
    background: var(--pink, #f65b9d);
    box-shadow: 0 2px 8px rgba(246, 91, 157, 0.35);
  }

  .guide-mobile-title-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.25;
  }

  .guide-mobile-title-wrap small {
    font-family: 'Quicksand', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    color: var(--subpage-text-soft, #6e6e73);
    letter-spacing: 0.06em;
  }

  .guide-mobile-title-wrap strong {
    font-size: 13.5px;
    font-weight: 750;
    color: var(--subpage-text, #1d1d1f);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .guide-mobile-chevron {
    width: 16px;
    height: 16px;
    min-width: 16px;
    color: var(--subpage-text-soft, #86868b);
    transition: transform 0.25s var(--ease-spring);
  }

  .guide-sidebar.is-menu-open .guide-mobile-chevron {
    transform: rotate(180deg);
  }

  .guide-mobile-wiki-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.6);
    color: var(--subpage-text-soft, #6e6e73);
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
  }

  .guide-mobile-wiki-btn svg {
    width: 16px;
    height: 16px;
  }

  .guide-mobile-wiki-btn:hover {
    color: var(--subpage-primary, #0071e3);
    background: rgba(255, 255, 255, 0.95);
  }

  /* 点击展开显示的浮层抽屉菜单 */
  .guide-sidebar-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 910;
    display: none !important;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
    max-height: min(72vh, 480px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform-origin: top center;
    animation: guideMenuSlideDown 0.24s var(--ease-spring);
  }

  .guide-sidebar.is-menu-open .guide-sidebar-nav {
    display: flex !important;
  }

  @keyframes guideMenuSlideDown {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .guide-sidebar-nav .guide-sidebar-home-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(136, 122, 170, 0.16);
  }

  .guide-sidebar-nav .guide-sidebar-home-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 6px 4px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    color: var(--subpage-text-soft, #6e6e73);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }

  .guide-sidebar-nav .guide-sidebar-home-link svg {
    width: 15px;
    height: 15px;
  }

  .guide-sidebar-nav .guide-sidebar-home-link.is-active {
    color: #fff;
    background: var(--subpage-primary, #0071e3);
    border-color: var(--subpage-primary, #0071e3);
  }

  .guide-sidebar-nav > a.guide-topic-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--subpage-text, #1d1d1f);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }

  .guide-sidebar-nav > a.guide-topic-link svg {
    width: 16px;
    height: 16px;
    color: var(--subpage-primary, #0071e3);
  }

  .guide-sidebar-nav > a.guide-topic-link:hover {
    background: rgba(0, 113, 227, 0.08);
    color: var(--subpage-primary-dark, #0077ed);
  }

  .guide-sidebar-nav > a.guide-topic-link.is-active {
    background: rgba(0, 113, 227, 0.12);
    color: var(--subpage-primary-dark, #0077ed);
    font-weight: 800;
  }

  .guide-sidebar-nav > a.guide-topic-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    margin: -2px 0 2px 28px;
    padding: 0 10px;
    border-radius: 8px;
    color: var(--subpage-text-soft, #6e6e73);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }

  .guide-sidebar-nav > a.guide-topic-sub-link.is-active {
    color: var(--subpage-primary-dark, #0077ed);
    background: rgba(0, 113, 227, 0.1);
    font-weight: 750;
  }

  .guide-sidebar-nav p {
    margin: 8px 0 4px 6px;
    color: var(--subpage-text-muted, #86868b);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  /* 遮罩背景 */
  .guide-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 850;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
  }

  .guide-mobile-backdrop.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* 移动端暗黑模式适配 (Mobile Dark Mode) */
  html[data-theme="dark"] .guide-mobile-bar {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(26, 29, 36, 0.88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  html[data-theme="dark"] .guide-mobile-toggle {
    color: var(--subpage-text, #f2f4f7);
  }

  html[data-theme="dark"] .guide-mobile-title-wrap small {
    color: var(--subpage-text-soft, #aeb7c4);
  }

  html[data-theme="dark"] .guide-mobile-title-wrap strong {
    color: var(--subpage-text, #f2f4f7);
  }

  html[data-theme="dark"] .guide-mobile-chevron {
    color: var(--subpage-text-soft, #aeb7c4);
  }

  html[data-theme="dark"] .guide-mobile-wiki-btn {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: var(--subpage-text, #f2f4f7);
  }

  html[data-theme="dark"] .guide-mobile-wiki-btn:hover {
    color: var(--subpage-primary, #0071e3);
    background: rgba(255, 255, 255, 0.16);
  }

  html[data-theme="dark"] .guide-sidebar-nav {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(24, 27, 34, 0.94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  html[data-theme="dark"] .guide-sidebar-nav .guide-sidebar-home-links {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  html[data-theme="dark"] .guide-sidebar-nav .guide-sidebar-home-link {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.06);
    color: var(--subpage-text-soft, #aeb7c4);
  }

  html[data-theme="dark"] .guide-sidebar-nav .guide-sidebar-home-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }

  html[data-theme="dark"] .guide-sidebar-nav .guide-sidebar-home-link.is-active {
    color: #fff;
    background: var(--subpage-primary, #0071e3);
    border-color: var(--subpage-primary, #0071e3);
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-link {
    color: var(--subpage-text, #f2f4f7);
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-link svg {
    color: var(--subpage-primary, #0071e3);
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-link:hover {
    background: rgba(0, 113, 227, 0.18);
    color: #fff;
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-link.is-active {
    background: rgba(0, 113, 227, 0.28);
    color: #fff;
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-sub-link {
    color: var(--subpage-text-soft, #aeb7c4);
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-sub-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
  }

  html[data-theme="dark"] .guide-sidebar-nav > a.guide-topic-sub-link.is-active {
    color: #fff;
    background: rgba(0, 113, 227, 0.22);
  }

  html[data-theme="dark"] .guide-sidebar-nav p {
    color: var(--subpage-text-soft, #aeb7c4);
  }

  html[data-theme="dark"] .guide-mobile-backdrop.is-active {
    background: rgba(0, 0, 0, 0.6);
  }

  .guide-doc-content { padding: 26px 20px 36px; border-radius: var(--radius-md, 14px); }
  .guide-doc-header { padding-bottom: 24px; }
  .guide-doc-content > section { padding: 28px 0; }
  .shortcut-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1160px) {
  .guide-doc-layout { grid-template-columns: 218px minmax(0, 1fr); width: min(1050px, calc(100% - 42px)); }
  .guide-outline { display: none; }
  .guide-topic-grid { grid-template-columns: 1fr; }
}

/* Keep the guide surfaces in sync with the global dark theme. The light
   defaults above intentionally remain for the normal reading mode. */
html[data-theme="dark"] body.tutorial-body,
html[data-theme="dark"] body.guide-doc-body {
  --subpage-text: #f2f4f7;
  --subpage-text-soft: #aeb7c4;
  --subpage-border: rgba(255, 255, 255, .14);
  --subpage-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  color: var(--subpage-text);
  background: #14161b url('../assets/server-background.avif') center top / cover fixed !important;
}

html[data-theme="dark"] body.tutorial-body::before,
html[data-theme="dark"] body.guide-doc-body::before {
  background: rgba(18, 20, 26, .85);
}

html[data-theme="dark"] body.tutorial-body .guide-summary,
html[data-theme="dark"] body.tutorial-body .start-step,
html[data-theme="dark"] body.tutorial-body .guide-toc,
html[data-theme="dark"] body.tutorial-body .guide-topic-grid a,
html[data-theme="dark"] body.tutorial-body .notice-grid article,
html[data-theme="dark"] body.guide-doc-body .guide-sidebar,
html[data-theme="dark"] body.guide-doc-body .guide-pager a,
html[data-theme="dark"] body.guide-doc-body .guide-table,
html[data-theme="dark"] body.guide-doc-body .shortcut-grid > div {
  background: rgba(34, 39, 46, .68);
  border-color: var(--subpage-border);
  box-shadow: var(--subpage-shadow);
}

html[data-theme="dark"] body.tutorial-body .guide-toc-group summary:hover,
html[data-theme="dark"] body.tutorial-body .guide-toc-link:hover,
html[data-theme="dark"] body.tutorial-body .guide-toc-children a:hover,
html[data-theme="dark"] body.guide-doc-body .guide-sidebar-nav a:hover,
html[data-theme="dark"] body.guide-doc-body .guide-sidebar-nav a.is-active,
html[data-theme="dark"] body.guide-doc-body .guide-sidebar-group[open] > summary {
  background: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] body.guide-doc-body .guide-sidebar {
  background: transparent;
}

html[data-theme="dark"] .guide-outline a.is-active {
  color: var(--subpage-text);
  background: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] body.guide-doc-body .guide-step-image {
  background: transparent;
}

/* All guide reading surfaces use dark materials in dark mode. */
html[data-theme="dark"] body.tutorial-body .guide-list li,
html[data-theme="dark"] body.tutorial-body .guide-resource,
html[data-theme="dark"] body.tutorial-body .route-card,
html[data-theme="dark"] body.tutorial-body .command-grid article,
html[data-theme="dark"] body.tutorial-body .command-table,
html[data-theme="dark"] body.tutorial-body .claim-actions article,
html[data-theme="dark"] body.tutorial-body .mod-grid article,
html[data-theme="dark"] body.tutorial-body .guide-details,
html[data-theme="dark"] body.tutorial-body .faq-list details,
html[data-theme="dark"] body.tutorial-body .guide-topic-grid a,
html[data-theme="dark"] body.guide-doc-body .guide-list li,
html[data-theme="dark"] body.guide-doc-body .guide-resource,
html[data-theme="dark"] body.guide-doc-body .route-card,
html[data-theme="dark"] body.guide-doc-body .command-grid article,
html[data-theme="dark"] body.guide-doc-body .command-table,
html[data-theme="dark"] body.guide-doc-body .claim-actions article,
html[data-theme="dark"] body.guide-doc-body .mod-grid article,
html[data-theme="dark"] body.guide-doc-body .guide-details,
html[data-theme="dark"] body.guide-doc-body .faq-list details {
  background: rgba(34, 39, 46, .78);
  border-color: var(--subpage-border);
}

html[data-theme="dark"] body.guide-doc-body .faq-item,
html[data-theme="dark"] body.guide-doc-body .changelog-entry {
  background: transparent;
  border-color: var(--subpage-border);
}

html[data-theme="dark"] body.tutorial-body .support-banner,
html[data-theme="dark"] body.guide-doc-body .support-banner {
  border-color: rgba(100, 181, 255, .42);
  background: rgba(40, 57, 73, .82);
}

html[data-theme="dark"] body.tutorial-body .guide-callout,
html[data-theme="dark"] body.guide-doc-body .guide-callout,
html[data-theme="dark"] body.tutorial-body .guide-checklist > div,
html[data-theme="dark"] body.guide-doc-body .guide-checklist > div {
  background: rgba(59, 52, 35, .72);
}

html[data-theme="dark"] .guide-doc-body code,
html[data-theme="dark"] .tutorial-body code {
  color: #ff9ec6;
  background: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] .guide-callout code {
  color: #f7c96a;
  background: rgba(255, 220, 100, .14);
  border-color: rgba(255, 220, 100, .25);
}

html[data-theme="dark"] body.tutorial-body .route-card:hover,
html[data-theme="dark"] body.guide-doc-body .route-card:hover,
html[data-theme="dark"] body.tutorial-body .guide-topic-grid a:hover {
  background: rgba(255, 255, 255, .12);
}

html[data-theme="dark"] body.tutorial-body .guide-sidebar-nav .guide-topic-link.is-active,
html[data-theme="dark"] body.tutorial-body .guide-sidebar-nav .guide-topic-sub-link.is-active {
  color: var(--subpage-text);
  background: rgba(255, 255, 255, .1);
}

html[data-theme="dark"] body.tutorial-body .guide-sidebar-brand.is-active {
  color: var(--subpage-text);
}

html[data-theme="dark"] body.tutorial-body kbd,
html[data-theme="dark"] body.guide-doc-body kbd,
html[data-theme="dark"] body.tutorial-body .guide-table th,
html[data-theme="dark"] body.guide-doc-body .guide-table th {
  color: var(--subpage-text);
  background: rgba(255, 255, 255, .1);
}

/* Document-page guide topics use the same compact tags as the quick-start
   guide index. This also keeps the fallback markup consistent before JS runs. */
.guide-sidebar-group {
  border-bottom: 0;
}

.guide-sidebar-group summary {
  min-height: 42px;
  margin-bottom: 2px;
  padding: 9px;
  border-radius: 5px;
}

.guide-sidebar-group[open] > summary {
  color: var(--subpage-primary-dark);
  background: rgba(255, 228, 237, .55);
}

.guide-sidebar-group > div {
  padding-bottom: 8px;
}

html[data-theme="dark"] .guide-sidebar-group[open] > summary {
  background: rgba(255, 255, 255, .1);
}

@media (min-width: 901px) {
  .guide-doc-body .guide-sidebar {
    position: sticky;
    top: 112px;
  }
  .guide-doc-content { grid-column: 2; }
  .guide-doc-layout > .guide-outline { grid-column: 3; }
}

/* Wide screens (2K, 1080p 100%, 1440p) */
@media (min-width: 1600px) {
  .guide-doc-layout {
    width: min(1660px, calc(100% - 64px));
    grid-template-columns: 260px minmax(0, 1fr) 220px;
    gap: 36px;
  }
  .guide-doc-content {
    padding: 44px 52px 52px;
  }
  .guide-step-image,
  .guide-doc-content img {
    max-width: min(100%, 960px);
    max-height: 620px;
  }
  .guide-image-caption {
    max-width: min(100%, 960px);
  }
  .tutorial-index-body .tutorial-main {
    width: min(1660px, calc(100% - 64px));
    padding: 104px 0 86px;
  }
  .tutorial-index-body .guide-index-layout {
    grid-template-columns: 260px minmax(0, 1fr) 220px;
    gap: 40px;
  }
}

/* 4K 150% scaling (2560px), 1440p 100%, 4K 125% (3072px), 4K 100% (3840px) */
@media (min-width: 2100px) {
  .guide-doc-layout {
    width: min(1960px, calc(100% - 96px));
    grid-template-columns: 272px minmax(0, 1fr) 240px;
    gap: 42px;
  }
  .guide-doc-content {
    padding: 48px 60px 60px;
  }
  .guide-doc-header h1 {
    font-size: 56px;
  }
  .guide-doc-intro p {
    font-size: 16px;
    line-height: 1.95;
  }
  .guide-doc-content > section h2 {
    font-size: 29px;
  }
  .guide-doc-content > section > p,
  .guide-doc-steps li {
    font-size: 15px;
    line-height: 1.95;
  }
  .guide-doc-steps li::before {
    top: 5px;
  }
  .guide-table {
    font-size: 14px;
  }
  .guide-table th,
  .guide-table td {
    padding: 14px 18px;
  }
  .guide-step-image,
  .guide-doc-content img {
    max-width: min(100%, 1160px);
    max-height: 700px;
  }
  .guide-image-caption {
    max-width: min(100%, 1160px);
    font-size: 13px;
  }
  .command-row {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 20px;
    padding: 16px 20px;
    font-size: 14px;
  }
  .command-row code {
    font-size: 13px;
  }
  .guide-sidebar {
    padding: 20px 16px;
  }
  .guide-sidebar-nav a {
    font-size: 13.5px;
    min-height: 38px;
  }
  .guide-outline {
    padding: 20px 16px;
  }
  .guide-outline a {
    font-size: 13px;
    line-height: 1.6;
  }
  .guide-checklist > div {
    padding: 16px 22px;
  }
  .guide-checklist span {
    font-size: 14px;
  }
  .guide-callout {
    padding: 18px 22px;
    font-size: 14.5px;
  }
  .tutorial-index-body .tutorial-main {
    width: min(1960px, calc(100% - 96px));
    padding: 104px 0 86px;
  }
  .tutorial-index-body .guide-index-layout {
    grid-template-columns: 272px minmax(0, 1fr) 240px;
    gap: 46px;
  }
  .tutorial-index-body .guide-index-outline {
    padding: 20px 16px;
  }
  .tutorial-index-body .guide-index-outline > p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .tutorial-index-body .guide-index-outline a {
    font-size: 13px;
    line-height: 1.6;
  }
  .tutorial-index-body .guide-hero h1 {
    max-width: 1100px;
    font-size: 58px;
  }
  .tutorial-index-body .guide-hero-copy > p:last-of-type {
    max-width: 980px;
    font-size: 16px;
    line-height: 1.95;
  }
}
@media (max-width: 680px) { .tutorial-main { width: min(100% - 28px, 560px); padding-top: 108px; } .guide-hero { gap: 16px; padding: 8px 0 35px; } .guide-hero-copy { padding: 26px 20px; border-radius: 20px; } .guide-hero h1 { font-size: 36px; } .guide-hero-copy > p:last-of-type { font-size: 14px; } .guide-summary { padding: 20px; } .start-grid, .command-grid, .claim-actions, .mod-grid, .notice-grid, .changelog-entry { grid-template-columns: 1fr; } .guide-section { grid-template-columns: 1fr; gap: 13px; } .section-number { width: 42px; height: 42px; } .guide-content { gap: 34px; } .guide-section-copy { padding-bottom: 34px; } .guide-section-copy h2 { font-size: 27px; } .changelog-entry { gap: 15px; padding: 18px; } .changelog-entry-date { gap: 5px; padding: 0 0 13px; border-right: 0; border-bottom: 1px solid rgba(136, 122, 170, .16); } .command-row, .guide-details > div { grid-template-columns: 1fr; gap: 6px; } .guide-details > div { padding-top: 0; } .guide-details span { padding-top: 0; border-top: 0; padding-bottom: 10px; } .support-banner { align-items: flex-start; flex-direction: column; } .support-banner .button { width: 100%; } .guide-doc-header h1 { font-size: 39px; } .guide-doc-intro p { font-size: 14px; } .guide-doc-content > section h2 { font-size: 24px; } .guide-doc-steps li { padding-left: 45px; } .guide-doc-steps li::before { width: 28px; height: 28px; } .guide-pager { align-items: stretch; flex-direction: column; } .guide-pager > span { display: none; } .guide-pager a, .guide-pager a:last-child { text-align: left; } .guide-pager strong, .guide-pager a:last-child strong { justify-content: flex-start; } }
@media (max-width: 680px) {
  /* Avoid mobile Safari blending neighboring glass buttons into ghosted color bands. */
  .tutorial-index-body .guide-hero-actions {
    row-gap: 16px;
  }
  .tutorial-index-body .guide-hero-actions .button-primary {
    box-shadow: 0 6px 14px rgba(0, 113, 227, .16);
  }
  .tutorial-index-body .guide-hero-actions .button-secondary,
  .tutorial-index-body .guide-hero-actions .button-secondary {
    background: rgba(255, 255, 255, .9) !important;
    box-shadow: 0 4px 14px rgba(31, 44, 61, .08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
@media (max-width: 680px) { .guide-resource { grid-template-columns: 22px minmax(0, 1fr); gap: 10px; } .guide-resource .button { grid-column: 2; justify-self: start; } }

/* Guide Images Clickable / Zoomable */
.guide-doc-content img,
.guide-step-image {
  cursor: zoom-in;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1), box-shadow .22s ease, border-color .22s ease;
}

.guide-doc-content img:hover,
.guide-step-image:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 86, 155, .18);
  border-color: rgba(245, 86, 155, .45);
}

.guide-doc-content img:focus-visible,
.guide-step-image:focus-visible {
  outline: 2px solid var(--subpage-primary);
  outline-offset: 2px;
}

/* Guide Lightbox Modal */
.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 16, 28, .75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
}

.guide-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.guide-lightbox[hidden] {
  display: none !important;
}

.guide-lightbox-backdrop {
  position: absolute;
  inset: 0;
  cursor: zoom-out;
}

.guide-lightbox-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 94vh;
}

.guide-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.guide-lightbox-figure {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  max-width: 100%;
  max-height: calc(90vh - 80px);
  overflow: visible;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.guide-lightbox-image {
  display: block;
  max-width: min(92vw, 1200px);
  max-height: min(78vh, 860px);
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  object-fit: contain;
  background: #181d26;
  opacity: 0;
  transform-origin: center center;
  will-change: transform;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
}

.guide-lightbox-image.is-loaded {
  opacity: 1;
}

.guide-lightbox-image.is-zoomed {
  cursor: grab;
}

.guide-lightbox-image.is-dragging {
  cursor: grabbing;
}

.guide-lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 36, 50, .75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: background .2s ease, transform .25s cubic-bezier(.22, .61, .36, 1), color .2s ease;
}

.guide-lightbox-close:hover {
  background: var(--subpage-primary);
  color: #fff;
  transform: scale(1.08) rotate(4deg);
}

.guide-lightbox-close svg {
  width: 20px;
  height: 20px;
}

.guide-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  color: #fff;
  background: rgba(30, 36, 50, .75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transition: background .2s ease, transform .25s cubic-bezier(.22, .61, .36, 1), color .2s ease;
}

.guide-lightbox-nav svg {
  width: 22px;
  height: 22px;
}

.guide-lightbox-prev {
  left: -58px;
}

.guide-lightbox-next {
  right: -58px;
}

.guide-lightbox-nav:hover {
  background: var(--subpage-primary);
  color: #fff;
}

.guide-lightbox-prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.guide-lightbox-next:hover {
  transform: translateY(-50%) translateX(3px);
}

.guide-lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(880px, 92vw);
  margin-top: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  color: #fff;
  background: rgba(22, 28, 42, .8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

.guide-lightbox-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-lightbox-counter {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  color: #ff9ec6;
  background: rgba(255, 142, 183, .2);
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.guide-lightbox-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.guide-lightbox-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 6px;
  color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.guide-lightbox-btn:hover {
  background: var(--subpage-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.guide-lightbox-btn svg {
  width: 14px;
  height: 14px;
}

.guide-lightbox-zoom-val {
  min-width: 44px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #ff9ec6;
  background: rgba(255, 142, 183, .15);
  font-family: 'Quicksand', monospace;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: background .18s ease;
}

.guide-lightbox-zoom-val:hover {
  background: rgba(255, 142, 183, .28);
}

.guide-lightbox-shortcuts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, .55);
}

.guide-lightbox-shortcuts kbd {
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 4px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-family: Consolas, monospace;
  font-size: 10px;
}

.guide-lightbox-shortcuts i {
  display: inline-block;
  width: 1px;
  height: 11px;
  margin: 0 4px;
  background: rgba(255, 255, 255, .22);
}

@media (max-width: 768px) {
  .guide-lightbox {
    padding: 14px;
  }
  .guide-lightbox-nav {
    display: none;
  }
  .guide-lightbox-shortcuts {
    display: none;
  }
  .guide-lightbox-image {
    max-height: 72vh;
    border-radius: 10px;
  }
  .guide-lightbox-info {
    border-radius: 12px;
    padding: 8px 14px;
  }
}
