:root {
  --ink-950: #07111f;
  --ink-900: #0b1728;
  --ink-800: #14243a;
  --ink-700: #263b54;
  --ink-500: #63758b;
  --paper: #f5f8fc;
  --surface: #ffffff;
  --line: #d9e3ef;
  --blue: #1878d1;
  --blue-strong: #075da8;
  --blue-soft: #e8f3fd;
  --amber: #f3a71a;
  --code: #ecf1f7;
  --table-heading-text: #0b1728;
  --table-heading-background: #eaf1f8;
  --table-cell-background: #ffffff;
  --table-cell-stripe: #f7faff;
  --content-width: 1040px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink-800);
  background: var(--paper);
  font-family: "Microsoft JhengHei", "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: var(--ink-950);
  background: var(--amber);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(18px, 3vw, 42px);
  color: #fff;
  background: var(--ink-900);
  border-bottom: 1px solid #21344c;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 4px;
  color: #aebed1;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.version-chip {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  color: #c7ddf2;
  background: #101d2b;
  border: 1px solid #36516e;
  border-radius: 10px;
  font: 750 0.8rem/1.4 ui-monospace, "Cascadia Mono", monospace;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 10px;
}

.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #aebed1;
  font-size: 0.78rem;
  font-weight: 650;
}

.language-control__icon {
  position: absolute;
  z-index: 1;
  left: 12px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #a9d9fb;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.language-control select {
  min-width: 146px;
  min-height: 42px;
  padding: 8px 32px 8px 39px;
  color: #fff;
  background-color: #101d2b;
  border: 1px solid #36516e;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.language-control select:hover {
  border-color: #66b8f2;
}

.language-control select:focus-visible {
  outline: 3px solid #f4b942;
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #fff;
  background: #152a42;
  border: 1px solid #36516e;
  border-radius: 7px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.nav-toggle-icon::before {
  top: -5px;
}

.nav-toggle-icon::after {
  top: 5px;
}

.guide-shell {
  display: grid;
  min-height: calc(100vh - 74px);
  grid-template-columns: 286px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.guide-sidebar {
  position: sticky;
  top: 74px;
  height: calc(100vh - 74px);
  overflow-y: auto;
  padding: 34px 24px 28px;
  background: #edf3f9;
  border-right: 1px solid var(--line);
}

.sidebar-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  margin-bottom: 22px;
}

.chapter-search {
  position: relative;
  display: block;
}

.chapter-search svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink-500);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.chapter-search input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px 8px 36px;
  color: var(--ink-800);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
}

.chapter-search input:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-color: var(--blue);
}

.sidebar-collapse {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.sidebar-collapse:hover {
  color: var(--blue-strong);
  border-color: var(--blue);
}

.sidebar-collapse span {
  font: 700 1.45rem/1 ui-monospace, monospace;
  transition: transform 180ms ease;
}

.sidebar-collapsed .guide-shell {
  grid-template-columns: 76px minmax(0, 1fr);
}

.sidebar-collapsed .guide-sidebar {
  padding-inline: 10px;
}

.sidebar-collapsed .sidebar-tools {
  display: flex;
  justify-content: center;
}

.sidebar-collapsed .chapter-search,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .chapter-name,
.sidebar-collapsed .chapter-search-empty,
.sidebar-collapsed .sidebar-note {
  display: none;
}

.sidebar-collapsed .sidebar-collapse span {
  transform: rotate(180deg);
}

.sidebar-collapsed .chapter-list a {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-inline: 4px;
}

.nav-label {
  margin: 0 0 10px;
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.chapter-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chapter-list a {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink-700);
  border-radius: 7px;
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}

.chapter-list .chapter-number {
  color: inherit;
  font: 700 0.7rem/1 ui-monospace, "Cascadia Mono", monospace;
}

.chapter-list a:hover {
  color: var(--blue-strong);
  background: #fff;
}

.chapter-list a[aria-current="page"] {
  color: #fff;
  background: var(--blue-strong);
  box-shadow: 0 4px 12px rgba(7, 93, 168, 0.18);
}

.chapter-list a[aria-current="page"] .chapter-number {
  color: inherit;
}

.chapter-list li.is-filtered {
  display: none;
}

.chapter-search-empty {
  margin: 14px 8px 0;
  color: var(--ink-500);
  font-size: 0.8rem;
  line-height: 1.55;
}

.nav-backdrop {
  display: none;
}

.sidebar-note {
  margin-top: 30px;
  padding: 15px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
}

.sidebar-note strong {
  color: var(--ink-900);
  font-size: 0.85rem;
}

.sidebar-note p {
  margin: 5px 0 0;
  color: var(--ink-500);
  font-size: 0.8rem;
  line-height: 1.6;
}

.guide-content {
  width: 100%;
  min-width: 0;
  padding: 28px clamp(24px, 7vw, 96px) 54px;
}

.content-meta {
  display: flex;
  width: min(100%, var(--content-width));
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto 28px;
  padding-bottom: 12px;
  color: var(--ink-500);
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
}

.manual-article,
.page-footer {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

.manual-article h1,
.manual-article h2,
.manual-article h3 {
  color: var(--ink-900);
  line-height: 1.35;
  text-wrap: balance;
}

.manual-article h1 {
  position: relative;
  margin: 0 0 32px;
  padding-bottom: 19px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.035em;
}

.manual-article h1::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 88px;
  height: 4px;
  background: var(--blue);
  border-radius: 99px;
  content: "";
}

.manual-article h2 {
  margin: 2.6em 0 0.75em;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.manual-article h3 {
  margin: 2em 0 0.55em;
  color: var(--blue-strong);
  font-size: 1.08rem;
}

.manual-article p {
  margin: 0.85em 0;
}

.article-outline {
  margin: -8px 0 34px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--surface), var(--blue-soft));
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 10px;
}

.article-outline strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-900);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.article-outline ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-outline li {
  margin: 0;
  padding: 0;
}

.article-outline a {
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.manual-article ul,
.manual-article ol {
  padding-left: 1.45em;
}

.manual-article li {
  margin: 0.45em 0;
  padding-left: 0.18em;
}

.manual-article li::marker {
  color: var(--blue);
  font-weight: 700;
}

.manual-article blockquote {
  margin: 1.5em 0;
  padding: 13px 18px;
  color: var(--ink-700);
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  border-radius: 0 6px 6px 0;
}

.manual-article blockquote p {
  margin: 0;
}

.manual-article code {
  padding: 0.12em 0.35em;
  color: #164e78;
  background: var(--code);
  border: 1px solid #dce5ef;
  border-radius: 4px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
}

.manual-article pre {
  overflow-x: auto;
  padding: 17px 18px;
  color: #e7f3ff;
  background: var(--ink-900);
  border: 1px solid #263d58;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(7, 17, 31, 0.1);
}

.manual-article pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
}

.manual-article hr {
  height: 1px;
  margin: 2.5em 0;
  background: var(--line);
  border: 0;
}

.manual-chapter {
  padding-top: 24px;
  padding-bottom: 70px;
  scroll-margin-top: 84px;
}

.manual-chapter + .manual-chapter {
  border-top: 1px solid var(--line);
}

.manual-chapter > h2:first-child {
  margin-top: 0;
}

.manual-article img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.manual-figure {
  width: min(100%, 980px);
  margin: 1.8em 0 2.2em;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(7, 17, 31, 0.08);
}

.manual-figure a {
  display: block;
  background: #0c1118;
  border-radius: 8px;
}

.manual-figure img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  margin: 0 auto;
  border: 0;
}

.image-preview-trigger {
  cursor: zoom-in;
}

.image-preview-trigger:focus-visible {
  border-radius: 8px;
  outline-offset: 4px;
}

body.has-image-lightbox {
  overflow: hidden;
}

.image-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding:
    max(72px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  color: #edf4fc;
  background: rgba(5, 9, 15, 0.92);
  border: 0;
  overflow: auto;
}

.image-lightbox:not([open]) {
  display: none;
}

.image-lightbox[open] {
  display: grid;
  place-items: center;
}

.image-lightbox::backdrop {
  background: rgba(1, 4, 8, 0.84);
  backdrop-filter: blur(8px);
}

.image-lightbox__stage {
  display: grid;
  max-width: min(100%, 1800px);
  justify-items: center;
  gap: 12px;
  animation: image-lightbox-enter 180ms ease-out both;
}

.image-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 145px);
  max-height: calc(100dvh - 145px);
  object-fit: contain;
  background: #090d14;
  border: 1px solid #3c5068;
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.58);
}

.image-lightbox__caption {
  max-width: min(920px, 100%);
  margin: 0;
  padding: 8px 13px;
  color: #b8c6d7;
  background: rgba(9, 13, 20, 0.86);
  border: 1px solid #273548;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.image-lightbox__close {
  position: fixed;
  z-index: 1;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  color: #edf4fc;
  background: #172231;
  border: 1px solid #526a85;
  border-radius: 9px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  cursor: pointer;
}

.image-lightbox__close:hover {
  color: #fff;
  background: #24364a;
  border-color: #80c8ff;
}

.image-lightbox__close svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

@keyframes image-lightbox-enter {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.launch-target {
  display: flex;
  max-width: 520px;
  align-items: center;
  gap: 18px;
  margin: 24px 0;
  padding: 18px 22px;
  background: #f2f7fc;
  border: 1px solid #b9cce0;
  border-left: 5px solid var(--blue);
  border-radius: 10px;
}

.manual-article .launch-target img {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  border: 0;
  border-radius: 12px;
}

.launch-target div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.launch-target strong {
  overflow-wrap: anywhere;
  color: var(--ink-900);
  font-size: 1rem;
}

.launch-target span {
  color: var(--ink-500);
  font-size: 0.88rem;
}

.manual-figure figcaption {
  padding: 9px 6px 2px;
  color: var(--ink-500);
  font-size: 0.84rem;
  line-height: 1.65;
}

.manual-figure--medium {
  width: min(100%, 680px);
}

.manual-figure--small {
  width: min(100%, 480px);
}

.manual-figure--portrait {
  width: min(100%, 450px);
}

.figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 1.8em 0 2.2em;
}

.figure-grid .manual-figure {
  width: 100%;
  margin: 0;
}

.figure-grid .manual-figure img {
  aspect-ratio: 1540 / 1087;
  object-fit: contain;
  object-position: top center;
}

.manual-article table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-spacing: 0;
  border-collapse: collapse;
}

.manual-article th,
.manual-article td {
  padding: 10px 13px;
  text-align: left;
  border: 1px solid var(--line);
}

.manual-article th {
  color: var(--table-heading-text);
  background: var(--table-heading-background);
}

.manual-article td {
  color: var(--ink-800);
  background: var(--table-cell-background);
}

.open-source-table {
  margin: 18px 0 34px;
}

.open-source-table th[scope="row"] {
  min-width: 190px;
  color: var(--table-heading-text);
  background: var(--table-heading-background);
}

.open-source-table td:nth-child(2) {
  min-width: 260px;
}

.open-source-table td:nth-child(3) {
  min-width: 230px;
}

.open-source-links {
  min-width: 180px;
}

.open-source-disclaimer {
  margin-top: 42px;
  padding: 14px 17px;
  color: var(--ink-700);
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
}

@media (max-width: 700px) {
  .open-source-table {
    display: block;
    overflow: visible;
  }

  .open-source-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .open-source-table tbody {
    display: grid;
    gap: 12px;
  }

  .open-source-table tr {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .open-source-table th[scope="row"] {
    display: block;
    min-width: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .open-source-table td,
  .open-source-table td:nth-child(2),
  .open-source-table td:nth-child(3),
  .open-source-table .open-source-links {
    display: grid;
    grid-template-columns: minmax(92px, 0.34fr) minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .open-source-table th[scope="row"] + td {
    border-top: 0;
  }

  .open-source-table td::before {
    color: var(--ink-500);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.03em;
    content: attr(data-label);
  }

  .manual-article .open-source-table tbody tr:nth-child(even) td {
    background: var(--table-cell-background);
  }
}

.manual-article tbody tr:nth-child(even) td {
  background: var(--table-cell-stripe);
}

.playback-mode-table {
  margin: 1.3em 0 1.7em;
}

.playback-mode-table th:first-child,
.playback-mode-table td:first-child {
  width: 86px;
  text-align: center;
}

.playback-mode-table th:nth-child(2),
.playback-mode-table td:nth-child(2) {
  min-width: 150px;
}

.playback-mode-icon {
  display: inline-grid;
  width: 40px;
  height: 36px;
  place-items: center;
  background: linear-gradient(180deg, #242d38, #1b232d);
  border: 1px solid #3b4754;
  border-radius: 6px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 4px 10px rgba(3, 9, 15, 0.18);
}

.manual-article .playback-mode-icon img {
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0;
  border-radius: 0;
}


.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding-top: 18px;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.intro-layout .content-meta,
.intro-layout .manual-article,
.intro-layout .page-footer {
  width: min(100%, 1120px);
}

.intro-layout .guide-content {
  padding-top: 38px;
  padding-right: clamp(24px, 3.8vw, 64px);
  padding-left: clamp(24px, 3.8vw, 64px);
}

.intro-hero {
  display: grid;
  align-items: center;
  gap: clamp(24px, 3vw, 42px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  min-height: min(720px, calc(100vh - 160px));
  padding: clamp(28px, 4vw, 54px) 0 clamp(48px, 6vw, 76px);
}

.intro-hero__copy {
  position: relative;
  z-index: 1;
}

.intro-kicker,
.section-kicker {
  margin: 0 0 14px !important;
  color: var(--blue-strong);
  font: 750 0.74rem/1.5 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.manual-article .intro-hero h1 {
  max-width: 650px;
  margin: 0;
  padding: 0;
  font-size: clamp(2.55rem, 4vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.manual-article .intro-hero h1::after {
  display: none;
}

.intro-lead {
  max-width: 630px;
  margin: 26px 0 0 !important;
  color: var(--ink-700);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.85;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.intro-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  color: var(--blue-strong);
  background: var(--surface);
  border: 1px solid #a9bfd4;
  border-radius: 8px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.intro-button:hover {
  color: var(--blue-strong);
  border-color: var(--blue);
  box-shadow: 0 8px 22px rgba(7, 93, 168, 0.12);
  transform: translateY(-1px);
}

.intro-button--primary {
  color: #fff;
  background: var(--blue-strong);
  border-color: var(--blue-strong);
}

.intro-button--primary:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.intro-hero__visual {
  position: relative;
  margin: 0;
  padding: 11px;
  background: #0b1523;
  border: 1px solid #28415e;
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(7, 17, 31, 0.24);
  transform: rotate(0.7deg);
}

.manual-article .intro-hero__visual img {
  width: 100%;
  border: 0;
  border-radius: 9px;
}

.intro-hero__visual figcaption {
  padding: 10px 5px 2px;
  color: #aebed1;
  font-size: 0.76rem;
  line-height: 1.5;
}

.intro-promo {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(270px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(26px, 4vw, 58px);
  margin: 0 0 clamp(54px, 7vw, 84px);
  padding: clamp(16px, 2.2vw, 26px);
  border: 1px solid #26394d;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 12%, rgba(70, 169, 236, 0.14), transparent 36%),
    linear-gradient(135deg, #101925 0%, #111722 58%, #171a21 100%);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.25);
}

.intro-promo__visual {
  display: block;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(103, 188, 247, 0.34);
  border-radius: 16px;
  background: #081522;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.36);
}

.manual-article .intro-promo__visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform 220ms ease;
}

.intro-promo__visual:hover img {
  transform: scale(1.012);
}

.intro-promo__copy {
  max-width: 650px;
  padding-right: clamp(4px, 1.5vw, 18px);
}

.manual-article .intro-promo h2 {
  margin: 6px 0 14px;
  padding: 0;
  color: #f5f8fb;
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.manual-article .intro-promo h2::after {
  display: none;
}

.intro-promo__copy > p:not(.section-kicker) {
  margin: 0;
  color: #b8c6d5;
  font-size: 0.98rem;
  line-height: 1.78;
}

.intro-promo__points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.intro-promo__points span {
  padding: 7px 11px;
  border: 1px solid rgba(103, 188, 247, 0.28);
  border-radius: 999px;
  color: #dcecf8;
  background: rgba(43, 110, 158, 0.13);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.demo-video-showcase {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  margin: 0 0 90px;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(110deg, rgba(62, 155, 219, 0.12), transparent 48%),
    #0b131e;
  border: 1px solid #29425b;
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.2);
}

.demo-video-showcase::before {
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #51b7f5 32%, #f0b855 72%, transparent);
  content: "";
}

.manual-article .demo-video-showcase h2 {
  margin: 0;
  color: #f4f8fc;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.28;
}

.demo-video-showcase__copy > p:last-child {
  margin: 18px 0 0;
  color: #b9c9da;
  line-height: 1.8;
}

.demo-video-showcase__player {
  min-width: 0;
  margin: 0;
  padding: 8px;
  background: #05080d;
  border: 1px solid #304b67;
  border-radius: 13px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.demo-video-showcase__player video {
  display: block;
  width: 100%;
  aspect-ratio: 1084 / 430;
  background: #05080d;
  border-radius: 7px;
  object-fit: contain;
}

.demo-video-showcase__player figcaption {
  padding: 10px 5px 3px;
  color: #8fa4ba;
  font-size: 0.75rem;
  line-height: 1.55;
}

.release-log {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 178px minmax(0, 1fr);
  margin: 0 0 90px;
  background:
    linear-gradient(135deg, rgba(77, 169, 242, 0.08), transparent 38%),
    #0d151f;
  border: 1px solid #2b4057;
  border-radius: 16px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.release-log::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #4da9f2, #6fc8ff 62%, #f2b84b);
  content: "";
}

.release-log__rail {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 33px 24px;
  color: #8da4ba;
  background: rgba(6, 11, 18, 0.58);
  border-right: 1px solid #27394c;
  font: 750 0.7rem/1.45 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.11em;
}

.release-log__rail strong {
  color: #eaf6ff;
  font-size: 1.25rem;
  letter-spacing: 0.035em;
}

.release-log__signal {
  width: 10px;
  height: 10px;
  margin-bottom: 6px;
  background: #45d19a;
  border: 2px solid #17352c;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(69, 209, 154, 0.1), 0 0 18px rgba(69, 209, 154, 0.36);
}

.release-log__body {
  min-width: 0;
  padding: clamp(28px, 4vw, 42px);
}

.release-log .section-heading {
  margin-bottom: 24px;
}

.manual-article .release-log h2 {
  color: #f0f6fc;
}

.release-log .section-heading > p:last-child {
  color: #98aabd;
}

.release-log__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #2a3c50;
  border-left: 1px solid #2a3c50;
}

.release-log__grid article {
  display: grid;
  min-width: 0;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 19px 18px;
  border-right: 1px solid #2a3c50;
  border-bottom: 1px solid #2a3c50;
}

.release-log__index {
  padding-top: 4px;
  color: #65bdf8;
  font: 750 0.69rem/1 ui-monospace, "Cascadia Mono", monospace;
}

.release-log__grid strong {
  color: #e7f1fa;
  font-size: 0.94rem;
}

.release-log__grid p {
  margin: 5px 0 0;
  color: #91a3b6;
  font-size: 0.84rem;
  line-height: 1.7;
}

.manual-article .release-log__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: #9ed9ff;
  font-weight: 750;
  text-decoration: none;
}

.manual-article .release-log__link:hover {
  color: #dff4ff;
}

.release-log__link span {
  transition: transform 150ms ease;
}

.release-log__link:hover span {
  transform: translateX(3px);
}

.origin-story {
  display: grid;
  align-items: center;
  gap: clamp(34px, 7vw, 86px);
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.82fr);
  margin: 0 0 90px;
  padding: clamp(34px, 5vw, 58px);
  background: var(--ink-900);
  border: 1px solid #213b58;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(7, 17, 31, 0.16);
}

.manual-article .origin-story h2 {
  margin-top: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.origin-story p:not(.section-kicker) {
  color: #c5d2e1;
}

.origin-story .section-kicker {
  color: #71c1fb;
}

.demo-flow {
  margin: 0 0 90px;
  scroll-margin-top: 100px;
}

.demo-flow__track {
  position: relative;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.demo-flow__track::before {
  position: absolute;
  z-index: 0;
  top: 29px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--amber), transparent);
  content: "";
  opacity: 0.65;
}

.demo-flow__step {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.demo-flow__step header {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 2px 3px 12px;
}

.demo-flow__number {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  color: #07111f;
  background: var(--amber);
  border-radius: 50%;
  font: 800 0.72rem/1 ui-monospace, "Cascadia Mono", monospace;
  box-shadow: 0 0 0 5px rgba(242, 184, 75, 0.09);
}

.demo-flow__step header div {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.demo-flow__step header strong {
  color: var(--ink-900);
  font-size: 0.97rem;
}

.demo-flow__step header div span {
  color: var(--ink-500);
  font: 700 0.67rem/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.06em;
}

.demo-flow__frame {
  display: grid;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(77, 169, 242, 0.08), transparent 45%),
    #080d14;
  border: 1px solid #2b4058;
  border-radius: 9px;
}

.manual-article .demo-flow__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  border: 0;
  border-radius: 0;
  transition: transform 180ms ease;
}

.demo-flow__frame:hover img {
  transform: scale(1.012);
}

.demo-flow__step > p {
  margin: 13px 3px 2px;
  color: var(--ink-500);
  font-size: 0.86rem;
  line-height: 1.7;
}

.stream-sequence {
  position: relative;
  display: grid;
  gap: 0;
}

.stream-sequence::before {
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 17px;
  width: 2px;
  background: linear-gradient(#45d19a, #f3ad45, #45d19a);
  content: "";
}

.stream-step {
  position: relative;
  display: grid;
  min-height: 68px;
  align-content: center;
  gap: 2px;
  padding: 12px 16px 12px 48px;
  color: #fff;
  background: #13273e;
  border: 1px solid #335371;
  border-radius: 10px;
}

.stream-step::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 14px;
  height: 14px;
  background: var(--amber);
  border: 4px solid var(--ink-900);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.stream-step--active {
  background: #0d4e83;
  border-color: #4babe9;
}

.stream-step--active::before {
  background: #f3ad45;
  box-shadow: 0 0 0 5px rgba(243, 173, 69, 0.14);
}

.stream-step--playing::before {
  background: #45d19a;
  box-shadow: 0 0 0 5px rgba(69, 209, 154, 0.13);
}

.stream-step--paused::before {
  background: #f3ad45;
  box-shadow: 0 0 0 5px rgba(243, 173, 69, 0.14);
}

.stream-step span {
  color: #91b6d6;
  font: 700 0.7rem/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.stream-step strong {
  font-size: 0.98rem;
}

.stream-arrow {
  position: relative;
  z-index: 1;
  padding: 8px 0 8px 48px;
  color: #8fa7bf;
  font-size: 0.72rem;
  font-weight: 650;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.manual-article .section-heading h2,
.manual-article .intro-next h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
}

.section-heading > p:last-child {
  color: var(--ink-500);
  font-size: 1.03rem;
}

.feature-section {
  scroll-margin-top: 100px;
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  min-height: 245px;
  padding: 24px 23px 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(7, 17, 31, 0.045);
}

.feature-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 24px;
  height: 3px;
  background: #c3d7e9;
  border-radius: 99px;
  content: "";
}

.feature-card--signal {
  background: #e8f4fd;
  border-color: #9ccaea;
}

.feature-card--signal::after {
  width: 48px;
  background: var(--blue);
}

.feature-card__label {
  color: var(--blue-strong);
  font: 750 0.7rem/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.1em;
}

.manual-article .feature-card h3 {
  margin: 13px 0 10px;
  color: var(--ink-900);
  font-size: 1.16rem;
  line-height: 1.45;
}

.feature-card p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.91rem;
  line-height: 1.75;
}

.feature-card--illustrated {
  display: flex;
  min-height: 382px;
  padding: 0;
  flex-direction: column;
}

.feature-card__visual {
  display: block;
  height: 146px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #0b111a;
  border-bottom: 1px solid var(--line);
}

.manual-article .feature-card__visual img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: transform 180ms ease;
}

.feature-card--illustrated:hover .feature-card__visual img {
  transform: scale(1.025);
}

.feature-card__visual:focus-visible {
  outline: 3px solid #79c7ff;
  outline-offset: -4px;
}

.feature-card__body {
  padding: 20px 22px 28px;
  flex: 1 1 auto;
}

.manual-article .feature-card--illustrated h3 {
  margin-top: 10px;
}

.feature-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  margin: 72px 0;
  padding: 22px 24px;
  background: #fff8e9;
  border: 1px solid #efd390;
  border-left: 5px solid var(--amber);
  border-radius: 10px;
}

.feature-note > span {
  align-self: start;
  padding: 3px 8px;
  color: #684300;
  background: #ffe0a1;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.feature-note strong {
  color: var(--ink-900);
}

.feature-note p {
  margin: 4px 0 0;
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.7;
}

.intro-next {
  margin-top: 76px;
  padding: clamp(30px, 5vw, 48px);
  background: var(--blue-soft);
  border: 1px solid #b9d8f0;
  border-radius: 15px;
}

.intro-next > p:not(.section-kicker) {
  color: var(--ink-700);
}

.intro-next .intro-button {
  margin-top: 10px;
}

@media (max-width: 820px) {
  .sidebar-collapsed .guide-shell {
    display: block;
  }

  .sidebar-collapse {
    display: none;
  }

  .sidebar-tools {
    display: block;
  }

  .sidebar-collapsed .chapter-search {
    display: block;
  }

  .sidebar-collapsed .nav-label,
  .sidebar-collapsed .sidebar-note,
  .sidebar-collapsed .chapter-search-empty:not([hidden]) {
    display: block;
  }

  .sidebar-collapsed .chapter-name {
    display: inline;
  }

  .sidebar-collapsed .chapter-list a {
    grid-template-columns: 30px 1fr;
    justify-items: stretch;
    padding-inline: 10px;
  }

  .site-header {
    min-height: 66px;
  }

  .brand-copy small,
  .version-chip {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    gap: 8px;
  }

  .language-control > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .language-control select {
    min-width: 132px;
    max-width: 146px;
  }

  .guide-shell {
    display: block;
    min-height: calc(100vh - 66px);
  }

  .guide-sidebar {
    position: fixed;
    z-index: 15;
    top: 66px;
    right: 0;
    bottom: 0;
    left: auto;
    display: none;
    width: min(88vw, 360px);
    height: auto;
    padding: 24px;
    background: rgba(237, 243, 249, 0.98);
    border-right: 0;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.32);
  }

  .guide-sidebar[data-open="true"] {
    display: block;
  }

  .nav-backdrop:not([hidden]) {
    position: fixed;
    z-index: 14;
    top: 66px;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: 0;
    background: rgba(3, 8, 14, 0.66);
    border: 0;
    cursor: default;
  }

  .guide-content {
    padding: 22px 20px 44px;
  }

  .content-meta {
    margin-bottom: 24px;
  }

  .manual-article h1 {
    margin-bottom: 26px;
  }

  .manual-figure {
    margin-inline: -8px;
  }

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

  .figure-grid .manual-figure {
    margin-inline: -8px;
    width: calc(100% + 16px);
  }

  .intro-layout .guide-content {
    padding-top: 18px;
  }

  .intro-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 24px;
  }

  .intro-hero__visual {
    max-width: 680px;
    transform: none;
  }

  .intro-promo {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  }

  .origin-story {
    grid-template-columns: 1fr;
    margin-inline: -8px;
    padding: 30px 26px;
  }

  .release-log {
    grid-template-columns: 1fr;
  }

  .release-log__rail {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    border-right: 0;
    border-bottom: 1px solid #27394c;
  }

  .release-log__signal {
    margin: 0;
  }

  .release-log__rail strong {
    font-size: 1rem;
  }

  .demo-flow__track {
    grid-template-columns: 1fr;
  }

  .demo-flow__track::before {
    top: 32px;
    right: auto;
    bottom: 32px;
    left: 33px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--amber), var(--blue));
  }

  .demo-flow__step {
    display: grid;
    grid-template-columns: minmax(170px, 0.9fr) minmax(0, 1.1fr);
    column-gap: 16px;
  }

  .demo-flow__step header {
    grid-column: 1 / -1;
  }

  .demo-flow__step > p {
    align-self: center;
    margin: 0;
  }

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

@media (max-width: 590px) {
  .site-header {
    gap: 8px;
    padding-inline: 14px;
  }

  .brand-copy {
    display: none;
  }

  .header-actions {
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
  }

  .language-control select {
    width: clamp(112px, 34vw, 132px);
    min-width: 0;
    padding-left: 35px;
  }

  .language-control__icon {
    left: 10px;
  }

  .resource-shortcut {
    display: none;
  }

  .nav-toggle {
    flex: 0 0 auto;
    padding-inline: 9px;
  }

  .launch-target {
    gap: 14px;
    padding: 15px 16px;
  }

  .manual-article .launch-target img {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
  }

  .manual-article .intro-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
  }

  .intro-promo {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 14px 14px 24px;
  }

  .intro-promo__visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .intro-promo__copy {
    padding: 0 8px;
  }

  .intro-actions {
    display: grid;
  }

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

  .release-log {
    margin-inline: -8px;
    margin-bottom: 66px;
  }

  .release-log__body {
    padding: 25px 20px 27px;
  }

  .release-log__grid {
    grid-template-columns: 1fr;
  }

  .demo-flow {
    margin-bottom: 66px;
  }

  .demo-flow__step {
    display: block;
  }

  .demo-flow__step > p {
    margin: 13px 3px 2px;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-card--illustrated {
    min-height: 0;
  }

  .feature-card__visual {
    height: clamp(126px, 34vw, 168px);
  }

  .feature-note {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }

  .image-lightbox__stage {
    animation: none;
  }
}

/* Night control-room theme */
:root {
  --ink-950: #f8fbff;
  --ink-900: #edf4fc;
  --ink-800: #d7e2ef;
  --ink-700: #b8c6d7;
  --ink-500: #8d9eb2;
  --paper: #090d14;
  --surface: #111823;
  --line: #273548;
  --blue: #4da9f2;
  --blue-strong: #80c8ff;
  --blue-soft: #10283c;
  --amber: #f2b84b;
  --code: #172331;
  --table-heading-text: #eaf6ff;
  --table-heading-background: #17304a;
  --table-cell-background: #0f1722;
  --table-cell-stripe: #121e2b;
  color-scheme: dark;
}

body {
  background:
    radial-gradient(circle at 78% 4%, rgba(38, 94, 140, 0.12), transparent 30rem),
    var(--paper);
}

.site-header {
  background: rgba(8, 13, 20, 0.97);
  border-bottom-color: #223044;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.resource-shortcut {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 17px;
  color: #f3fbff;
  background: linear-gradient(135deg, #168fe0, #36b6f2);
  border: 1px solid #5fc6ff;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(17, 139, 218, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 140ms ease, filter 140ms ease;
}

.resource-shortcut:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.guide-sidebar {
  position: sticky;
  background:
    linear-gradient(180deg, var(--blue), rgba(77, 169, 242, 0.08) 68%, var(--amber)) right top / 2px 100% no-repeat,
    #0d141f;
  border-right-color: #233247;
}

.guide-sidebar::before {
  content: none;
}

.chapter-list a:hover {
  color: #dff3ff;
  background: #172231;
}

.chapter-list a[aria-current="page"] {
  color: #fff;
  background: #1769a6;
  box-shadow: 0 6px 18px rgba(0, 87, 153, 0.25);
}

.sidebar-note,
.manual-figure,
.feature-card,
.launch-target {
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.manual-article a:not(.intro-button):not(.resource-action):not(.creator-link):not(.manual-cta) {
  color: var(--blue-strong);
}

.manual-article code {
  color: #aadaff;
  background: var(--code);
  border-color: #2d4055;
}

.manual-article pre {
  color: #e7f3ff;
  background: #101923;
  border-color: #2c4057;
}

.manual-article pre code {
  color: inherit;
  background: transparent;
}

.intro-button--primary {
  color: #fff;
  background: #1479b8;
  border-color: #35a8ec;
  box-shadow: 0 8px 24px rgba(20, 121, 184, 0.28);
}

.intro-button--primary:hover {
  color: #fff;
  background: #1b8ed3;
  border-color: #67c5fb;
  box-shadow: 0 10px 28px rgba(20, 121, 184, 0.38);
}

.manual-article blockquote,
.intro-next {
  background: var(--blue-soft);
  border-color: #244865;
}

.feature-note {
  background: #211b10;
  border-color: #5c4922;
  border-left-color: var(--amber);
}

.feature-note > span {
  color: #1b1303;
  background: var(--amber);
}

.intro-hero__visual {
  background: #111923;
  border-color: #2c3d50;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.36);
}

.origin-story {
  background: #0d1825;
  border-color: #223a53;
}

.stream-step,
.stream-arrow {
  border-color: #2b425a;
}

.stream-step--active {
  background: #15314a;
}

.feature-card__label,
.section-kicker,
.intro-kicker,
.resource-eyebrow {
  color: #76c4ff;
}

.page-footer {
  border-color: var(--line);
}

/* Download, videos, and theme library */
.resource-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 64px;
  padding: clamp(28px, 5vw, 46px);
  background: linear-gradient(145deg, #101b29, #0d141f 64%);
  border: 1px solid #2b3e54;
  border-radius: 16px;
}

.resource-hero::after {
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(77, 169, 242, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(77, 169, 242, 0.04), 0 0 0 58px rgba(77, 169, 242, 0.025);
  content: "";
}

.resource-eyebrow {
  margin: 0 0 10px;
  font: 750 0.72rem/1.5 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.16em;
}

.manual-article .resource-hero h1 {
  max-width: 690px;
  margin-bottom: 14px;
  padding: 0;
  font-size: clamp(2.25rem, 6vw, 4.1rem);
}

.manual-article .resource-hero h1::after {
  display: none;
}

.resource-hero > p:last-child {
  position: relative;
  z-index: 1;
  max-width: 650px;
  color: var(--ink-700);
  font-size: 1.03rem;
}

.resource-section {
  margin: 72px 0;
}

.resource-section__heading {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 22px;
}

.resource-index {
  padding-top: 8px;
  color: var(--blue);
  border-top: 2px solid var(--blue);
  font: 750 0.76rem/1 ui-monospace, "Cascadia Mono", monospace;
}

.manual-article .resource-section__heading h2 {
  margin: 0 0 5px;
}

.resource-section__heading p {
  margin: 0;
  color: var(--ink-500);
}

.download-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: #101923;
  border: 1px solid #2b3d51;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.download-panel__actions,
.download-panel__mirror {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.download-panel__actions {
  max-width: 19rem;
}

.download-panel__actions .resource-action {
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.download-panel__mirror small {
  color: var(--muted, var(--ink-500));
  text-align: center;
}

.download-panel__mirror[hidden],
.download-mirror-hint[hidden] {
  display: none;
}

.manual-article .download-mirror-hint {
  margin: 12px 0 0;
  color: var(--muted, var(--ink-500));
  font-size: 0.9rem;
}

.download-panel__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: linear-gradient(145deg, #173f5e, #12334d);
  border: 1px solid #3279a9;
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 16px rgba(0, 0, 0, 0.16);
}

.download-panel__mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: #a9ddff;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-panel__copy {
  display: grid;
}

.download-panel__copy strong {
  color: var(--ink-900);
}

.download-panel__copy span,
.download-panel__copy small {
  color: var(--ink-500);
}

.download-panel__hash {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.download-panel__hash b {
  flex: 0 0 auto;
  color: #a9ddff;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.download-panel__hash code {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #c6d7e7;
  background: transparent;
  font-size: 0.72rem;
}

.download-support {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: 16px 18px;
  background: rgba(242, 181, 93, 0.065);
  border: 1px solid #4d412b;
  border-left: 3px solid #e3ad62;
  border-radius: 0 9px 9px 0;
}

.download-support__copy {
  min-width: 0;
}

.download-support__copy strong {
  color: #f2ca91;
}

.download-support__copy p {
  margin: 3px 0 0;
  color: var(--ink-600);
  line-height: 1.65;
}

.download-support__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.download-support__actions .resource-action {
  gap: 7px;
  white-space: nowrap;
}

.download-trust-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 14px 0 16px;
  padding: 13px 15px;
  color: var(--ink-600);
  background: rgba(242, 181, 93, 0.055);
  border-left: 3px solid #d9a45b;
  border-radius: 0 8px 8px 0;
  line-height: 1.65;
}

.download-trust-note > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #e3ad62;
}

.download-trust-note > span svg {
  width: 24px;
  height: 24px;
  fill: rgba(227, 173, 98, 0.12);
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.download-trust-note strong {
  color: #f2ca91;
}

.download-trust-note p {
  margin: 2px 0 0;
}

.resource-update {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 0;
  padding: 12px 14px;
  color: var(--ink-700);
  background: rgba(121, 201, 255, 0.07);
  border-left: 3px solid #79c9ff;
  border-radius: 0 7px 7px 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.resource-update__copy {
  min-width: 0;
}

.resource-update__copy strong {
  color: var(--ink-900);
}

.resource-update__copy p {
  margin: 2px 0 0;
}

.manual-article .resource-update__link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: #8dd5ff;
  font-weight: 750;
  text-decoration: none;
}

.manual-article .resource-update__link:hover {
  color: #dff4ff;
}

.resource-update__link span {
  transition: transform 150ms ease;
}

.resource-update__link:hover span {
  transform: translateX(3px);
}

.smartscreen-guide {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  background:
    linear-gradient(135deg, rgba(79, 178, 240, 0.08), transparent 42%),
    #0f1823;
  border: 1px solid #2b4057;
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
}

.smartscreen-guide__heading {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.smartscreen-guide__shield {
  display: grid;
  width: 42px;
  height: 46px;
  place-items: center;
  color: #c9edff;
  background: linear-gradient(155deg, #1c5275, #13344e);
  border: 1px solid #3b86b5;
  border-radius: 13px 13px 18px 18px;
  font-size: 1.2rem;
  font-weight: 800;
  clip-path: polygon(50% 0, 94% 15%, 88% 72%, 50% 100%, 12% 72%, 6% 15%);
}

.manual-article .smartscreen-guide h3 {
  margin: 0 0 7px;
  color: var(--ink-900);
  font-size: clamp(1.16rem, 2vw, 1.4rem);
}

.smartscreen-guide__heading p {
  max-width: 790px;
  margin: 0;
  color: var(--ink-600);
  line-height: 1.75;
}

.smartscreen-guide__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
  padding: 0;
  counter-reset: smartscreen-step;
  list-style: none;
}

.smartscreen-guide__steps li {
  min-width: 0;
  counter-increment: smartscreen-step;
}

.smartscreen-guide__steps figure {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #111d2a;
  border: 1px solid #2b4057;
  border-radius: 11px;
}

.smartscreen-guide__steps img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 534 / 500;
  object-fit: cover;
  border-bottom: 1px solid #2b4057;
}

.smartscreen-guide__steps figcaption {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 14px 15px 14px 52px;
}

.smartscreen-guide__steps figcaption::before {
  position: absolute;
  top: 14px;
  left: 15px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #07111b;
  background: #79c9ff;
  border-radius: 50%;
  content: counter(smartscreen-step);
  font: 800 0.78rem/1 ui-monospace, "Cascadia Mono", monospace;
}

.smartscreen-guide__steps figcaption strong {
  color: var(--ink-900);
}

.smartscreen-guide__steps figcaption span {
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.55;
}

.security-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.security-facts article {
  min-width: 0;
  padding: 15px 17px;
  color: var(--ink-600);
  background: rgba(121, 201, 255, 0.055);
  border-left: 3px solid #79c9ff;
  border-radius: 0 8px 8px 0;
  line-height: 1.7;
}

.security-facts article.security-facts__warning {
  background: rgba(242, 181, 93, 0.065);
  border-left-color: #e3ad62;
}

.security-facts strong {
  color: #bde7ff;
}

.security-facts__warning strong {
  color: #f2ca91;
}

.security-facts p {
  margin: 3px 0 0;
}

.security-facts__link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
  color: #f2ca91;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.security-report-grid .manual-figure img {
  max-height: 560px;
}

.resource-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  color: #dff3ff;
  background: #162535;
  border: 1px solid #34516d;
  border-radius: 7px;
  font-weight: 750;
  text-decoration: none;
}

.resource-action--primary {
  color: #07111b;
  background: #79c9ff;
  border-color: #79c9ff;
}

.resource-action:hover {
  color: #fff;
  background: #214462;
}

.resource-action--primary:hover {
  color: #07111b;
  background: #a7ddff;
}

.resource-status {
  padding: 8px 12px;
  color: #d4b878;
  background: #211c12;
  border: 1px solid #594822;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.resource-empty {
  display: flex;
  min-height: 150px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  color: var(--ink-500);
  background: repeating-linear-gradient(-45deg, #0f1721, #0f1721 10px, #101a25 10px, #101a25 20px);
  border: 1px dashed #34475d;
  border-radius: 12px;
  text-align: center;
}

.resource-empty > span {
  color: var(--blue);
  font-size: 1.3rem;
}

.video-card,
.theme-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.video-card:only-child {
  grid-column: 1 / -1;
}

.video-placeholder {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 230px;
  place-content: center;
  gap: 10px;
  color: #dcecff;
  background: #0a1018;
  border: 0;
  cursor: pointer;
}

.video-placeholder img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.video-placeholder strong,
.video-play {
  position: relative;
  z-index: 1;
}

.video-play {
  width: 54px;
  height: 54px;
  margin-inline: auto;
  background: rgba(77, 169, 242, 0.92);
  border-radius: 50%;
}

.video-play::after {
  position: absolute;
  top: 17px;
  left: 22px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #07111b;
  content: "";
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-local {
  position: relative;
  background: #05080d;
}

.video-local video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05080d;
  object-fit: contain;
}

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 7px;
  color: #f4f8fc;
  background: rgba(3, 8, 14, 0.82);
  border: 1px solid rgba(151, 187, 218, 0.42);
  border-radius: 5px;
  font: 750 0.7rem/1 ui-monospace, "Cascadia Mono", monospace;
  pointer-events: none;
}

.video-card h3,
.video-card p {
  margin-inline: 18px;
}

.video-card p {
  color: var(--ink-500);
}

.theme-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.theme-card__body {
  padding: 18px;
}

.manual-article .theme-card__body h3 {
  margin: 10px 0 5px;
}

.theme-card__body p {
  color: var(--ink-500);
}

.theme-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.theme-badge--free {
  color: #99e8bf;
  background: #102a21;
}

.theme-badge--paid {
  color: #ffd486;
  background: #2a2110;
}

/* Creator, support, and community */
.creator-layout .content-meta,
.creator-layout .manual-article,
.creator-layout .page-footer {
  width: min(100%, 1040px);
}

.creator-layout .guide-content {
  padding-right: clamp(24px, 4vw, 70px);
  padding-left: clamp(24px, 4vw, 70px);
}

.creator-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  min-height: 470px;
  padding: clamp(34px, 6vw, 64px);
  background:
    radial-gradient(circle at 17% 40%, rgba(242, 184, 75, 0.15), transparent 15rem),
    linear-gradient(135deg, #101c2a 0%, #0d141f 70%);
  border: 1px solid #2b4058;
  border-radius: 20px;
  box-shadow: 0 30px 74px rgba(0, 0, 0, 0.3);
}

.creator-hero::after {
  position: absolute;
  right: -90px;
  bottom: -128px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(77, 169, 242, 0.22);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(77, 169, 242, 0.035),
    0 0 0 78px rgba(77, 169, 242, 0.018);
  content: "";
}

.creator-portrait {
  position: relative;
  z-index: 1;
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.creator-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 4px solid #f5d98a;
  border-radius: 50%;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
}

.creator-portrait__orbit {
  position: absolute;
  inset: -17px;
  border: 1px solid rgba(242, 184, 75, 0.58);
  border-top-color: transparent;
  border-left-color: rgba(242, 184, 75, 0.16);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.creator-portrait__orbit::before,
.creator-portrait__orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.creator-portrait__orbit::before {
  top: 23px;
  right: 15px;
  width: 11px;
  height: 11px;
  background: var(--amber);
  box-shadow: 0 0 22px rgba(242, 184, 75, 0.72);
}

.creator-portrait__orbit::after {
  right: 56px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  background: #9ed9ff;
}

.creator-hero__copy {
  position: relative;
  z-index: 1;
}

.creator-eyebrow {
  margin: 0 0 10px;
  color: #7fc9ff;
  font: 750 0.72rem/1.5 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.creator-role {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  color: #f8dc93;
  background: rgba(242, 184, 75, 0.09);
  border: 1px solid rgba(242, 184, 75, 0.32);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 750;
}

.manual-article .creator-hero h1 {
  margin: 0;
  padding: 0;
  font-size: clamp(3rem, 7vw, 5.1rem);
  letter-spacing: -0.055em;
}

.manual-article .creator-hero h1::after {
  display: none;
}

.manual-article .creator-hero h2 {
  max-width: 650px;
  margin: 8px 0 15px;
  color: #b9dbf5;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  font-weight: 650;
}

.creator-hero__copy > p:last-of-type {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--ink-700);
}

.manual-article .creator-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 15px;
  color: #eaf7ff;
  background: #17314a;
  border: 1px solid #3d79a5;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.manual-article .creator-link:hover {
  color: #fff;
  background: #214968;
  border-color: #75c7ff;
}

.manual-article .creator-link--profile {
  max-width: 660px;
  justify-content: flex-start;
  line-height: 1.55;
  text-align: left;
}

.creator-link span {
  color: #91d2ff;
  font-size: 0.9em;
}

.creator-section {
  margin: clamp(70px, 9vw, 100px) 0;
}

#social-links {
  scroll-margin-top: 24px;
}

.creator-section__heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.manual-article .creator-section__heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.creator-section__title {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.manual-article .creator-section__title h2 {
  margin-bottom: 8px;
}

.manual-article .creator-section__permalink {
  color: #77c7fa;
  font: 750 1rem/1 ui-monospace, "Cascadia Mono", monospace;
  text-decoration: none;
  opacity: 0.72;
}

.manual-article .creator-section__permalink:hover,
.manual-article .creator-section__permalink:focus-visible {
  color: #bde7ff;
  opacity: 1;
}

.creator-section__heading > p:last-child {
  margin: 0;
  color: var(--ink-500);
}

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

.support-path {
  display: grid;
  min-height: 280px;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
  background: #101923;
  border: 1px solid #2d4055;
  border-radius: 15px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.support-path--bug {
  border-top: 3px solid #ef817d;
}

.support-path--idea {
  border-top: 3px solid #69bdf5;
}

.support-path--email {
  min-height: 0;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-rows: auto;
  align-items: center;
  border-top: 3px solid #69bdf5;
}

.support-path__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #f5f9ff;
  background: #1e3347;
  border: 1px solid #3e607e;
  border-radius: 50%;
  font: 800 1.15rem/1 ui-monospace, monospace;
}

.support-path__mark svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.support-path--bug .support-path__mark {
  color: #ffc1bd;
  background: #351f23;
  border-color: #784047;
}

.manual-article .support-path h3 {
  margin: 0 0 7px;
  font-size: 1.35rem;
}

.support-path p {
  margin: 0;
  color: var(--ink-500);
}

.support-path .support-encouragement {
  margin-top: 10px;
  color: var(--ink-300);
  font-weight: 650;
  line-height: 1.7;
}

.support-path .creator-link {
  justify-self: start;
}

.support-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 2px 0;
  color: var(--ink-500);
  font-size: 0.82rem;
}

.support-privacy > span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  place-items: center;
  color: #a7dfff;
  border: 1px solid #47708f;
  border-radius: 50%;
  font: 700 0.72rem/1 ui-monospace, monospace;
}

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

.manual-article .social-links a {
  display: grid;
  min-height: 88px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 13px 15px;
  color: var(--ink-800);
  background: #101923;
  border: 1px solid #2a3b4f;
  border-radius: 11px;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.manual-article .social-links a:hover {
  color: #fff;
  background: #162535;
  border-color: #4b82aa;
}

.social-links__code {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #a8dcff;
  background: #172b3e;
  border: 1px solid #365a77;
  border-radius: 9px;
  font: 800 0.72rem/1 ui-monospace, "Cascadia Mono", monospace;
}

.social-links__code svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.social-links__code--youtube {
  color: #fff;
  background: #c9262d;
  border-color: #f05a60;
}

.social-links__code--x,
.social-links__code--threads,
.social-links__code--tiktok {
  color: #fff;
  background: #090b0f;
  border-color: #4d5663;
}

.social-links__code--discord {
  color: #fff;
  background: #5865f2;
  border-color: #8791ff;
}

.social-links__code--twitch {
  color: #fff;
  background: #9146ff;
  border-color: #b984ff;
}

.social-links__code--instagram {
  color: #fff;
  background: linear-gradient(135deg, #6548d7, #d62976 50%, #f8a33a);
  border-color: #ef7fae;
}

.social-links a > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.social-links strong {
  color: inherit;
  line-height: 1.3;
}

.social-links small {
  margin-top: 3px;
  color: var(--ink-500);
  font-size: 0.75rem;
  line-height: 1.45;
}

.social-links b {
  color: #77c7fa;
  font-size: 0.82rem;
}

.collaboration-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin: 82px 0 18px;
  padding: clamp(26px, 5vw, 42px);
  background:
    linear-gradient(120deg, rgba(242, 184, 75, 0.09), transparent 55%),
    #111923;
  border: 1px solid #54462c;
  border-left: 4px solid var(--amber);
  border-radius: 14px;
}

.manual-article .collaboration-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.collaboration-panel p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--ink-500);
}

.manual-article .creator-link--collaboration {
  color: #1a1306;
  background: #f2c35d;
  border-color: #f2c35d;
  box-shadow: 0 8px 22px rgba(242, 195, 93, 0.18);
}

.manual-article .creator-link--collaboration:hover {
  color: #110d05;
  background: #ffda82;
  border-color: #ffda82;
  box-shadow: 0 10px 26px rgba(242, 195, 93, 0.26);
}

.manual-article .creator-link--collaboration:visited,
.manual-article .creator-link--collaboration span {
  color: #1a1306;
}

.manual-article .creator-link--collaboration:hover span {
  color: #110d05;
}

.manual-article .creator-link--collaboration:focus-visible {
  outline-color: #8fd3ff;
  outline-offset: 4px;
}

/* Release history */
.changelog-layout {
  --content-width: 1120px;
}

.changelog-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: clamp(42px, 7vw, 74px);
  padding: clamp(34px, 6vw, 62px);
  background:
    radial-gradient(circle at 86% 18%, rgba(86, 185, 255, 0.17), transparent 25%),
    linear-gradient(145deg, #101c29, #0a111a 68%);
  border: 1px solid #2b4863;
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.changelog-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #4da9f2, #7dd7ff 66%, #f2b84b);
  content: "";
}

.changelog-eyebrow {
  margin: 0 0 14px;
  color: #70c8ff;
  font: 750 0.72rem/1.4 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: 0.13em;
}

.manual-article .changelog-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #f4f9ff;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.changelog-hero > p:not(.changelog-eyebrow) {
  max-width: 720px;
  margin: 22px 0 0;
  color: #b7c8d9;
  font-size: clamp(0.98rem, 1.8vw, 1.12rem);
  line-height: 1.85;
}

.changelog-hero__summary {
  display: inline-grid;
  box-sizing: border-box;
  grid-template-columns: auto auto;
  gap: 2px 12px;
  align-items: end;
  margin-top: 34px;
  padding: 14px 18px;
  background: rgba(3, 9, 15, 0.48);
  border: 1px solid #29445d;
  border-radius: 10px;
}

.changelog-hero__summary strong {
  grid-row: 1 / 3;
  color: #e9f6ff;
  font: 760 2.15rem/1 ui-monospace, "Cascadia Mono", monospace;
}

.changelog-hero__summary span {
  color: #aebfd0;
  font-size: 0.78rem;
}

.changelog-hero__summary .changelog-hero__range {
  color: #6fbee9;
  font: 700 0.7rem/1.2 ui-monospace, "Cascadia Mono", monospace;
}

.release-timeline {
  --timeline-rail: 170px;
  position: relative;
  display: grid;
  gap: 30px;
  margin-bottom: 72px;
}

.release-timeline::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(var(--timeline-rail) - 17px);
  width: 1px;
  background: linear-gradient(#58b9f4, #2a455e 38%, #1c2d3e);
  content: "";
}

.release-entry {
  display: grid;
  grid-template-columns: var(--timeline-rail) minmax(0, 1fr);
}

.release-entry__rail {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 19px 40px 0 0;
  text-align: right;
}

.release-entry__rail time {
  color: #99aec1;
  font: 720 0.75rem/1.3 ui-monospace, "Cascadia Mono", monospace;
}

.release-entry__rail > span:last-child {
  color: #6f879d;
  font-size: 0.76rem;
  line-height: 1.45;
}

.release-entry__node {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 11px;
  width: 13px;
  height: 13px;
  background: #0d1722;
  border: 3px solid #42647f;
  border-radius: 50%;
  box-shadow: 0 0 0 5px #090f16;
}

.release-entry--latest .release-entry__node {
  background: #65d8a5;
  border-color: #b8f2d6;
  box-shadow: 0 0 0 5px #10251f, 0 0 22px rgba(101, 216, 165, 0.38);
}

.release-entry__card {
  min-width: 0;
  padding: clamp(24px, 4vw, 36px);
  background: linear-gradient(150deg, rgba(22, 35, 48, 0.96), rgba(11, 18, 27, 0.98));
  border: 1px solid #2a3f54;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.release-entry--latest .release-entry__card {
  border-color: #3f708d;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), inset 3px 0 0 #63c9ff;
}

.release-entry__header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.release-entry__current {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 8px;
  color: #9cf0c5;
  background: rgba(70, 203, 145, 0.1);
  border: 1px solid rgba(102, 220, 165, 0.34);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 750;
}

.manual-article .release-entry__header h2 {
  margin: 0;
  color: #f0f7ff;
  font: 780 clamp(1.55rem, 3vw, 2.1rem)/1.1 ui-monospace, "Cascadia Mono", monospace;
  letter-spacing: -0.035em;
}

.release-entry__count {
  flex: 0 0 auto;
  padding-top: 6px;
  color: #6e879d;
  font: 700 0.7rem/1.3 ui-monospace, "Cascadia Mono", monospace;
}

.release-entry__summary {
  margin: 20px 0 0;
  color: #c5d5e4;
  font-size: 1rem;
  line-height: 1.75;
}

.release-entry__items {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #283b4d;
}

.release-entry__items li {
  position: relative;
  margin: 0;
  padding: 13px 8px 13px 26px;
  color: #9fb1c3;
  border-bottom: 1px solid rgba(40, 59, 77, 0.72);
  font-size: 0.9rem;
  line-height: 1.72;
}

.release-entry__items li::before {
  position: absolute;
  top: 1.36rem;
  left: 7px;
  width: 6px;
  height: 6px;
  background: #56b9f3;
  border-radius: 1px;
  content: "";
  transform: rotate(45deg);
}

.manual-article .release-entry__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: #8fd6ff;
  font-weight: 750;
  text-decoration: none;
}

.manual-article .release-entry__link:hover {
  color: #e0f5ff;
}

.release-entry__link span {
  transition: transform 150ms ease;
}

.release-entry__link:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 820px) {
  .release-timeline {
    --timeline-rail: 124px;
  }

  .release-entry__rail {
    padding-right: 34px;
  }

  .guide-sidebar {
    background: rgba(9, 13, 20, 0.985);
  }

  .guide-sidebar::before {
    display: none;
  }

  .resource-shortcut {
    min-height: 38px;
    padding-inline: 11px;
  }

  .demo-video-showcase {
    grid-template-columns: 1fr;
  }

  .creator-hero {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 28px;
    padding: 34px 30px;
  }
}

@media (max-width: 590px) {
  .changelog-hero {
    padding: 30px 24px;
    border-radius: 14px;
  }

  .changelog-hero__summary {
    width: 100%;
  }

  .release-timeline {
    gap: 26px;
  }

  .release-timeline::before {
    top: 18px;
    bottom: 0;
    left: 7px;
  }

  .release-entry {
    display: block;
    padding-left: 24px;
  }

  .release-entry__rail {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 0 0 10px;
    text-align: left;
  }

  .release-entry__node {
    top: 5px;
    right: auto;
    left: -23px;
  }

  .release-entry__header {
    align-items: end;
  }

  .release-entry__card {
    padding: 23px 20px;
  }

  .resource-shortcut {
    display: none;
  }

  .resource-hero {
    margin-inline: -8px;
    padding: 25px 22px;
  }

  .demo-video-showcase {
    margin-inline: -8px;
    padding: 24px 18px 18px;
    border-radius: 14px;
  }

  .demo-video-showcase__player {
    margin-inline: -7px;
    padding: 5px;
  }

  .resource-section__heading {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 11px;
  }

  .download-panel {
    grid-template-columns: auto 1fr;
  }

  .download-panel__actions {
    grid-column: 1 / -1;
    max-width: none;
  }

  .download-panel .resource-action,
  .download-panel .resource-status {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .resource-update {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .download-support {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-support__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .smartscreen-guide {
    padding: 18px 14px;
  }

  .smartscreen-guide__heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 11px;
  }

  .smartscreen-guide__shield {
    width: 36px;
    height: 40px;
  }

  .smartscreen-guide__steps {
    grid-template-columns: 1fr;
  }

  .download-panel__hash {
    display: grid;
    gap: 3px;
  }

  .security-facts {
    grid-template-columns: 1fr;
  }

  .video-grid,
  .theme-grid {
    grid-template-columns: 1fr;
  }

  .creator-layout .guide-content {
    padding-inline: 16px;
  }

  .creator-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 36px 23px 31px;
    text-align: left;
  }

  .creator-portrait {
    width: 156px;
    margin-left: 0;
  }

  .manual-article .creator-hero h1 {
    font-size: clamp(2.75rem, 16vw, 4rem);
  }

  .support-paths,
  .social-links {
    grid-template-columns: 1fr;
  }

  .support-path {
    min-height: 0;
  }

  .support-path--email {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .support-path--email .creator-link {
    grid-column: 1 / -1;
  }

  .support-path .creator-link {
    width: 100%;
  }

  .collaboration-panel {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .collaboration-panel .creator-link {
    width: 100%;
  }
}

.manual-article a.manual-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 8px 0 24px;
  padding: 11px 18px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #0b5f91, #0f6f9f);
  border: 1px solid #4ab7e8;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(10, 113, 174, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: filter 140ms ease, transform 140ms ease;
}

.manual-article a.manual-cta:hover {
  color: #fff;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.manual-article a.manual-cta:focus-visible {
  color: #fff;
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.chapter-quick-start {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
  margin: 18px 0 42px;
  padding: clamp(20px, 3.2vw, 34px);
  overflow: hidden;
  color: #d8e7f5;
  background:
    radial-gradient(circle at 100% 0, rgba(77, 169, 242, 0.16), transparent 38%),
    linear-gradient(145deg, #0f1b29, #0b141f);
  border: 1px solid #31516d;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.chapter-quick-start::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #79d2ff 62%, var(--amber));
  content: "";
}

.chapter-quick-start--single {
  grid-template-columns: 1fr;
}

.chapter-quick-start__eyebrow {
  margin: 0 0 7px;
  color: #79cfff;
  font: 750 0.74rem/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.12em;
}

.manual-article .chapter-quick-start h2 {
  margin: 0 0 9px;
  color: #f5f9fd;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.chapter-quick-start__intro {
  margin: 0 0 18px;
  color: #b8c9d9;
}

.chapter-quick-start__steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  counter-reset: quick-step;
  list-style: none;
}

.chapter-quick-start__steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  counter-increment: quick-step;
}

.chapter-quick-start__steps li::before {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #07121d;
  background: #72caff;
  border-radius: 50%;
  content: counter(quick-step);
  font: 850 0.78rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.chapter-quick-start__steps strong,
.chapter-quick-start__steps span {
  display: block;
}

.chapter-quick-start__steps strong {
  color: #f2f8fd;
  line-height: 1.5;
}

.chapter-quick-start__steps span {
  margin-top: 2px;
  color: #b3c4d5;
  font-size: 0.91rem;
  line-height: 1.65;
}

.lyrics-editor-quick-start .chapter-quick-start__steps span strong {
  display: inline;
}

.chapter-quick-start__done {
  margin: 18px 0 0;
  padding: 10px 13px;
  color: #d9edfb;
  background: rgba(38, 116, 166, 0.17);
  border-left: 3px solid #59bfff;
  border-radius: 0 7px 7px 0;
}

.chapter-quick-start .manual-figure {
  width: 100%;
  margin: 0;
  background: rgba(7, 13, 21, 0.78);
  border-color: #2d465d;
  box-shadow: none;
}

.chapter-quick-start .manual-figure figcaption {
  color: #9eb1c4;
}

.quick-task-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.manual-article .quick-task-links a {
  display: grid;
  min-height: 68px;
  align-content: center;
  padding: 13px 15px;
  color: #eaf6ff;
  background: #142335;
  border: 1px solid #304a62;
  border-radius: 9px;
  text-decoration: none;
}

.manual-article .quick-task-links a:hover {
  color: #fff;
  background: #19304a;
  border-color: #65bdf3;
}

.quick-task-links strong,
.quick-task-links span {
  display: block;
}

.quick-task-links span {
  margin-top: 2px;
  color: #a9bacb;
  font-size: 0.83rem;
}

@media (max-width: 760px) {
  .chapter-quick-start {
    grid-template-columns: 1fr;
    margin-inline: -8px;
    padding: 19px 15px;
    border-radius: 14px;
  }

  .quick-task-links {
    grid-template-columns: 1fr;
  }
}

.setup-steps {
  display: grid;
  gap: 20px;
  margin: 14px 0 38px;
}

.setup-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.setup-step--important {
  border-color: var(--amber);
  box-shadow: 0 14px 34px rgba(243, 167, 26, 0.13);
}

.setup-step-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 850;
  background: var(--blue);
  border-radius: 50%;
}

.setup-step--important .setup-step-number {
  color: #07121d;
  background: var(--amber);
}

.manual-article .setup-step h3 {
  margin-top: 4px;
}

.setup-step p {
  margin-bottom: 16px;
}

.setup-step .manual-figure {
  margin: 18px 0 0;
}

.manual-figure--compact {
  width: min(100%, 460px);
}

.version-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin: 24px 0 34px;
  padding: 18px 20px;
  color: #dceaf6;
  background: linear-gradient(135deg, rgba(43, 31, 8, 0.96), rgba(19, 25, 33, 0.98));
  border: 1px solid rgba(243, 167, 26, 0.55);
  border-radius: 12px;
  box-shadow: inset 3px 0 0 var(--amber), 0 14px 34px rgba(0, 0, 0, 0.12);
}

.version-preview__badge {
  display: inline-flex;
  padding: 6px 9px;
  color: #171006;
  font: 800 0.7rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: var(--amber);
  border-radius: 6px;
}

.version-preview strong {
  color: #fff4d6;
}

.version-preview p {
  margin: 5px 0 0;
  color: #c2ced9;
}

.feature-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.feature-shot-grid .manual-figure {
  width: 100%;
  margin: 0;
}

.feature-shot-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-shot-grid--compact {
  grid-template-columns: repeat(2, minmax(220px, 360px));
}

@media (max-width: 620px) {
  .version-preview {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .version-preview__badge {
    width: fit-content;
  }

  .feature-shot-grid,
  .feature-shot-grid--wide,
  .feature-shot-grid--compact {
    grid-template-columns: 1fr;
  }

  .setup-step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 17px 14px;
  }

  .setup-step-number {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
}

/* Keep the mobile chapter drawer above the later night-theme sidebar rule. */
@media (max-width: 820px) {
  .guide-sidebar {
    position: fixed;
    top: 66px;
    right: 0;
    bottom: 0;
    left: auto;
  }
}

.chapter-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 7px;
  padding: 2px 6px;
  color: #171006;
  font: 800 0.61rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--amber);
  border-radius: 5px;
  vertical-align: 0.08em;
}

.chapter-list a[aria-current="page"] .chapter-preview-badge {
  color: #201605;
  background: #ffd478;
}

.paired-guides {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 38px;
  padding: 12px;
  background: #0b121c;
  border: 1px solid #2c435a;
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.paired-guides::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--amber), var(--blue));
  content: "";
  opacity: 0.72;
  pointer-events: none;
}

.paired-guide {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  color: #d7e5f2 !important;
  background-color: #111d2a;
  background-image: linear-gradient(145deg, #111d2a, #0e1722);
  border: 1px solid #304960;
  border-radius: 10px;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.paired-guide:hover {
  color: #fff !important;
  /* Keep an opaque paint layer throughout the hover transition. Changing
     from a gradient to a flat background made background-color animate from
     transparent and briefly exposed the amber route connector underneath. */
  background-color: #152334;
  background-image: linear-gradient(145deg, #152334, #122033);
  border-color: #5aaee8;
}

.paired-guide[aria-current="page"] {
  border-color: #5aaee8;
  box-shadow: inset 3px 0 0 var(--blue);
}

.paired-guide__node {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #07121d;
  font: 900 0.75rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  background: #77c9ff;
  border: 4px solid #19344a;
  border-radius: 50%;
}

.paired-guide:last-child .paired-guide__node {
  background: #f2bd5b;
  border-color: #44351b;
}

.paired-guide__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.paired-guide__copy strong {
  color: #f5f9fd;
  line-height: 1.35;
}

.paired-guide__copy small {
  color: #95a9bc;
  line-height: 1.45;
}

.paired-guide__arrow {
  color: #87a0b7;
  font: 700 1.1rem/1 ui-monospace, monospace;
}

.effect-reference {
  display: grid;
  gap: 10px;
  margin: 20px 0 34px;
}

.profile-chain-guide {
  margin: 22px 0 30px;
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(77, 169, 242, 0.1), rgba(77, 169, 242, 0.035));
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--blue-strong);
  border-radius: 10px;
}

.manual-article .profile-chain-guide h3 {
  margin-top: 0;
}

.profile-chain-guide > :last-child {
  margin-bottom: 0;
}

.profile-chain-guide__flow {
  padding: 12px 14px;
  color: var(--ink-900);
  line-height: 1.75;
  background: rgba(7, 18, 29, 0.32);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.effect-editor-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 34px;
}

.effect-editor-gallery .manual-figure {
  width: 100%;
  margin: 0;
}

.effect-editor-gallery img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  background: #080d13;
}

.effect-reference__editor {
  width: min(100%, 760px);
  margin: 16px auto 20px;
}

.effect-reference__editor img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  object-position: top center;
  background: #080d13;
}

.effect-editor-gallery-fallback {
  margin: 20px 0 34px;
}

.effect-reference details {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.effect-reference summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(145px, 0.7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: center;
  min-height: 54px;
  padding: 12px 46px 12px 16px;
  color: var(--ink-900);
  cursor: pointer;
  list-style: none;
}

.effect-reference summary::-webkit-details-marker {
  display: none;
}

.effect-reference summary::after {
  position: absolute;
  right: 16px;
  color: var(--blue-strong);
  content: "+";
  font: 800 1.2rem/1 ui-monospace, monospace;
}

.effect-reference details[open] summary::after {
  content: "−";
}

.effect-reference summary:hover {
  background: var(--blue-soft);
}

.effect-reference summary strong {
  color: var(--blue-strong);
}

.effect-reference summary span {
  color: var(--ink-500);
  font-size: 0.87rem;
  line-height: 1.5;
}

.effect-reference__body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}

.effect-reference__body > p:first-child {
  margin-top: 16px;
}

.effect-reference__guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 4px;
}

.effect-reference__guidance p {
  margin: 0;
  padding: 12px 13px;
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.65;
  background: rgba(77, 169, 242, 0.055);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.effect-reference__guidance p:last-child {
  background: rgba(242, 189, 91, 0.055);
}

.effect-reference__guidance strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.parameter-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  list-style: none;
}

.parameter-list li {
  margin: 0 !important;
  padding: 9px 0 !important;
  border-bottom: 1px solid var(--line);
}

.parameter-list strong {
  color: var(--ink-900);
}

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

.guide-checklist > div {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 9px;
}

.guide-checklist strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-900);
}

.guide-checklist p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.88rem;
}

.release-highlights {
  counter-reset: release-highlight;
  display: grid;
  gap: 12px;
  margin: 22px 0 38px;
}

.release-preview-section {
  margin: 76px 0;
  scroll-margin-top: 90px;
}

.release-preview-section > .section-heading {
  max-width: 820px;
}

.release-preview-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 30px;
}

.release-preview-gallery .manual-figure {
  margin: 0;
}

.release-preview-gallery__wide {
  grid-column: 1 / -1;
}

.release-preview-gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: top left;
}

.release-preview-gallery__wide img {
  height: auto;
  max-height: 460px;
  object-fit: contain;
  background: #080d13;
}

.release-highlight {
  counter-increment: release-highlight;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.release-highlight::before {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #07121d;
  background: var(--amber);
  border-radius: 50%;
  content: counter(release-highlight, decimal-leading-zero);
  font: 850 0.72rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
}

.release-highlight strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.release-highlight p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.91rem;
}

@media (max-width: 620px) {
  .paired-guides,
  .guide-checklist,
  .effect-editor-gallery,
  .effect-reference__guidance,
  .parameter-list,
  .release-preview-gallery {
    grid-template-columns: 1fr;
  }

  .release-preview-gallery__wide {
    grid-column: auto;
  }

  .release-preview-gallery img {
    height: auto;
  }

  .paired-guides::before {
    top: 20%;
    right: auto;
    bottom: 20%;
    left: 31px;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--amber), var(--blue));
  }

  .effect-reference summary {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

@media print {
  .site-header,
  .guide-sidebar,
  .content-meta,
  .page-footer {
    display: none !important;
  }

  .guide-shell {
    display: block;
  }

  .guide-content {
    padding: 0;
  }

  .manual-article {
    width: 100%;
  }

  a {
    color: inherit;
  }

  body {
    color: #111;
    background: #fff;
  }

  .manual-figure {
    break-inside: avoid;
    box-shadow: none;
  }
}
