/* 一键接入脚本页（/setup）：系统切换、命令复制、截图占位。其余样式来自 site.css + guides.css。 */
.setup pre { position: relative; padding-right: 84px; overflow-x: auto; }
.setup pre code { background: none; padding: 0; color: var(--code-ink); white-space: pre; }
.setup li pre { margin-top: 10px; }
.setup kbd { font-family: var(--mono); font-size: 0.85em; padding: 1px 6px; border: 1px solid var(--hairline); border-radius: 3px; background: var(--paper-2); }

.os-tabs { margin-top: 40px; display: flex; gap: 0; border-bottom: 1px solid var(--ink); }
.os-tabs button { padding: 12px 28px; font-size: 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.os-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.os-tabs button:hover { color: var(--ink); }
/* Without JavaScript both panels stay visible; setup.js hides the other one. */
.os-panel[hidden] { display: none; }
.os-panel > h2:first-child { margin-top: 32px; }
.js-tabs .os-panel > h2:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.shot { margin-top: 20px; }
.shot-box { display: flex; align-items: center; justify-content: center; min-height: 180px; padding: 24px; text-align: center; border: 1px dashed var(--hairline); background: var(--paper-2); color: var(--muted); font-size: 14px; }
.shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
/* Long inline commands and paths must wrap on phones instead of widening the page. */
.setup :not(pre) > code { overflow-wrap: anywhere; }
/* Windows script is still a beta */
.beta { display: inline-block; margin-left: 6px; padding: 1px 7px; font-size: 12px; font-weight: 500; line-height: 1.6; vertical-align: 2px; color: var(--gold-deep); border: 1px solid var(--gold); border-radius: 2px; }
/* Phones: the command scrolls sideways, so the copy button sits above it instead of on top of it */
@media (max-width: 520px) {
  .setup pre { padding: 52px 20px 20px; }
}

/* Screenshots and step diagrams. Diagrams come in a light and a dark version that follow the site theme
   (theme.js sets data-theme on <html>; light is the default). */
/* Images are exported at 2x: terminals fill the column, step diagrams stay at their 562px design width. */
.shot img { display: block; width: 100%; max-width: 100%; height: auto; }
.shot img.diagram { width: 562px; }
.shot img.theme-dark { display: none; }
:root[data-theme="dark"] .shot img.theme-light { display: none; }
:root[data-theme="dark"] .shot img.theme-dark { display: block; }
.shot-zoom { display: block; border: 0; }
