:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #f8faf9;
  --text: #16201d;
  --muted: #64706c;
  --faint: #8a9591;
  --line: #dfe5e2;
  --line-strong: #cbd4d0;
  --primary: #087a5b;
  --primary-dark: #056046;
  --primary-soft: #e6f5ef;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --amber: #9a6700;
  --amber-soft: #fff7dc;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 5%);
  --sidebar-width: 256px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--text);
  color: white;
  transform: translateY(-150%);
}

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

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: 28px 20px 22px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 7px;
  background: var(--text);
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.doc-nav {
  margin-top: 12px;
}

.nav-label {
  margin: 22px 10px 8px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 700;
}

.nav-link {
  display: block;
  margin: 2px 0;
  padding: 7px 10px;
  border-radius: 6px;
  color: #4f5d58;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav-link.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.sidebar-help {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 15px 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.sidebar-help svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
}

.sidebar-help strong {
  display: block;
  color: var(--text);
  font-size: 13px;
}

.sidebar-help a {
  color: var(--primary);
  text-decoration: none;
}

.mobile-header,
.mobile-scrim {
  display: none;
}

.content-shell {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.content {
  width: min(100% - 48px, 1060px);
  margin: 0 auto;
  padding: 58px 0 42px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0 0 7px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.lede {
  max-width: 670px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.heading-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19a974;
  box-shadow: 0 0 0 4px #ddf6ec;
}

.quick-start,
.doc-section {
  scroll-margin-top: 22px;
}

.quick-start {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
}

.doc-section {
  padding: 54px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}

.section-heading.compact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

.section-heading p:not(.section-kicker) {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.section-number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #b8dfd1;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
}

.section-number svg {
  width: 18px;
  height: 18px;
}

.muted-number {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.security-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 650;
}

.security-chip svg {
  width: 17px;
  height: 17px;
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  list-style: none;
  box-shadow: var(--shadow-sm);
}

.flow-strip li {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #4f5d58;
  font-size: 13px;
  font-weight: 650;
}

.flow-strip li + li {
  border-left: 1px solid var(--line);
}

.flow-strip span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
}

.setup-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 32px;
  border: 1px solid #b8dfd1;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.setup-methods {
  min-width: 0;
}

.step-badge {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

.setup-copy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.38;
}

.setup-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.launch-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-soft);
}

.launch-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
}

.launch-icon svg {
  width: 18px;
  height: 18px;
}

.launch-card strong,
.launch-card p {
  display: block;
}

.launch-card strong {
  font-size: 13px;
}

.launch-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.launch-card .primary-button {
  grid-column: 1 / -1;
  min-height: 38px;
  font-size: 13px;
}

.method-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 17px 0 13px;
  color: var(--faint);
  font-size: 11px;
}

.method-divider::before,
.method-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.method-title {
  margin-bottom: 11px;
  color: #34413d;
  font-size: 13px;
  font-weight: 700;
}

.manual-import-button {
  width: 100%;
}

.setup-form {
  min-width: 0;
}

.setup-form label {
  display: block;
  margin: 0 0 6px;
  color: #34413d;
  font-size: 13px;
  font-weight: 700;
}

.setup-form label:not(:first-child) {
  margin-top: 16px;
}

.setup-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.setup-form input::placeholder {
  color: #9aa4a0;
}

.setup-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgb(8 122 91 / 12%);
}

.setup-form input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgb(180 35 24 / 10%);
}

.secret-field {
  position: relative;
}

.secret-field input {
  padding-right: 46px;
}

.field-icon-button,
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.field-icon-button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 36px;
  height: 36px;
  border-radius: 5px;
}

.field-icon-button:hover,
.icon-button:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.field-icon-button svg {
  width: 18px;
  height: 18px;
}

.form-message {
  min-height: 25px;
  padding-top: 6px;
  color: var(--danger);
  font-size: 12px;
}

.form-message.is-success {
  color: var(--primary-dark);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.primary-button {
  width: 100%;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
}

.primary-button:hover {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(1px);
}

.primary-button svg,
.secondary-button svg {
  width: 17px;
  height: 17px;
}

.secondary-button {
  min-width: 98px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

.secondary-button:hover {
  border-color: #aab5b0;
  background: var(--surface-soft);
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(2, 120px);
  gap: 3px;
  margin: 0 0 16px 62px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #edf1ef;
}

.segmented-control button {
  height: 34px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.segmented-control button[aria-selected="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.os-panel {
  margin-left: 62px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.download-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 15px 18px;
}

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

.app-identity {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.codex-identity {
  background: #161b19;
  color: white;
}

.switch-identity {
  background: var(--blue-soft);
  color: var(--blue);
}

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

.download-copy strong,
.download-copy span {
  display: block;
}

.download-copy strong {
  font-size: 14px;
}

.download-copy span {
  color: var(--muted);
  font-size: 13px;
}

.notice {
  display: flex;
  gap: 11px;
  margin: 18px 0 0 62px;
  padding: 13px 15px;
  border-radius: 7px;
  font-size: 13px;
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
}

.notice p {
  margin: 0;
}

.notice-neutral {
  border: 1px solid #cfe0ef;
  background: var(--blue-soft);
  color: #34506c;
}

.notice-warning {
  border: 1px solid #efd6ad;
  background: #fff8eb;
  color: #7a5528;
}

.instruction-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 34px;
  align-items: center;
  margin-left: 62px;
}

.manual-copy-steps {
  align-items: start;
}

.manual-copy-shot img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.copy-config-grid {
  margin-top: 24px;
}

.config-copy-shot {
  margin-top: 18px;
}

.config-copy-shot img {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  object-position: top;
}

.config-copy-shot a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #edf1ef;
}

.config-copy-shot a:focus-visible,
.manual-copy-shot a:focus-visible {
  outline: 3px solid rgb(8 122 91 / 24%);
  outline-offset: 3px;
}

.manual-copy-shot a {
  display: block;
}

.manual-copy-shot a img {
  display: block;
}

.claude-grid {
  margin-top: 24px;
}

.claude-notice {
  margin-bottom: 24px;
}

.client-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 28px 0 0 62px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0;
}

.client-divider::before,
.client-divider::after {
  height: 1px;
  flex: 1;
  background: var(--line);
  content: "";
}

.client-divider span {
  white-space: nowrap;
}

.claude-section {
  padding-top: 34px;
}

.reverse-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 0.72fr);
}

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

.instruction-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.instruction-list li > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.instruction-list p {
  margin: 1px 0 0;
  color: var(--muted);
}

.instruction-list strong {
  color: var(--text);
}

.instruction-copy .secondary-button {
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

.screenshot-frame {
  min-width: 0;
  margin: 0;
}

.screenshot-frame img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #edf1ef;
  box-shadow: 0 8px 24px rgb(16 24 40 / 8%);
}

.screenshot-frame.wide-screenshot img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.screenshot-frame figcaption {
  margin-top: 9px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.success-copy {
  padding-right: 12px;
}

.success-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.success-mark svg {
  width: 21px;
  height: 21px;
}

.success-copy h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.45;
}

.success-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.config-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-left: 62px;
}

.config-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.config-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.config-card-head strong,
.config-card-head span {
  display: block;
}

.config-card-head strong {
  font-size: 15px;
}

.config-card-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.os-badge {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 800;
}

.windows-badge {
  background: #eaf2ff;
  color: #2563eb;
}

.macos-badge {
  background: #f0f1f1;
  color: #27312e;
  font-size: 16px;
}

.config-path-label {
  margin-top: 17px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
}

.path-copy-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-soft);
}

.path-copy-row code {
  min-width: 0;
  overflow: hidden;
  flex: 1;
  background: transparent;
  color: #34413d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.light-copy-button {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
}

.light-copy-button:hover {
  background: #e4ebe8;
  color: var(--text);
}

.light-copy-button svg {
  width: 15px;
  height: 15px;
}

.shortcut-list {
  display: grid;
  gap: 12px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.shortcut-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.shortcut-list li > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.shortcut-list p {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.shortcut-list code {
  padding: 2px 4px;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  min-width: 19px;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

.text-copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.text-copy-button:hover {
  color: var(--primary-dark);
}

.text-copy-button svg {
  width: 15px;
  height: 15px;
}

.config-file-notice {
  margin-top: 18px;
}

.manual-details,
.faq-list {
  margin-left: 62px;
}

.manual-details,
.faq-list details {
  border: 1px solid var(--line);
  background: var(--surface);
}

.manual-details {
  overflow: hidden;
  border-radius: 7px;
}

.manual-details summary,
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.manual-details summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.manual-details summary svg,
.faq-list summary svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: var(--muted);
  transition: transform 150ms ease;
}

.manual-details[open] summary svg,
.faq-list details[open] summary svg {
  transform: rotate(180deg);
}

.manual-content {
  padding: 0 18px 20px;
  border-top: 1px solid var(--line);
}

.manual-content > p {
  color: var(--muted);
}

code {
  border-radius: 3px;
  background: #edf1ef;
  color: #34413d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

p code {
  padding: 2px 5px;
}

.code-block {
  overflow: hidden;
  border: 1px solid #2c3834;
  border-radius: 7px;
  background: #17201d;
  color: #d8e2de;
}

.compact-code {
  margin-top: 10px;
}

.compact-code pre {
  padding: 13px 14px;
  font-size: 12px;
  line-height: 1.6;
}

.code-toolbar {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 15px;
  border-bottom: 1px solid #34413d;
  color: #9eaca7;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.copy-button {
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #cbd5d1;
  font-size: 12px;
  cursor: pointer;
}

.copy-button:hover {
  background: #26322e;
}

.copy-button svg {
  width: 14px;
  height: 14px;
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  line-height: 1.7;
}

pre code {
  background: transparent;
  color: inherit;
}

.manual-note {
  margin-bottom: 0;
  font-size: 13px;
}

.faq-list {
  overflow: hidden;
  border-radius: 7px;
}

.faq-list details {
  border-width: 0 0 1px;
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list details[open] {
  background: #fbfcfb;
}

.faq-list details p {
  margin: 0;
  padding: 0 54px 18px 18px;
  color: var(--muted);
  font-size: 14px;
}

.page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 4px;
  color: var(--faint);
  font-size: 12px;
}

.page-footer strong,
.page-footer span {
  display: block;
}

.page-footer strong {
  color: var(--muted);
  font-size: 13px;
}

.page-footer p {
  margin: 0;
  text-align: right;
}

.toast {
  position: fixed;
  z-index: 60;
  right: 24px;
  top: 24px;
  max-width: min(380px, calc(100% - 32px));
  padding: 11px 14px;
  border: 1px solid #24312d;
  border-radius: 6px;
  background: #17201d;
  color: white;
  box-shadow: 0 12px 30px rgb(16 24 40 / 22%);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgb(37 99 235 / 35%);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 78px;
  }

  body.menu-open {
    overflow: hidden;
  }

  .mobile-header {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(10px);
  }

  .mobile-header .icon-button {
    width: 40px;
    height: 40px;
    border-radius: 6px;
  }

  .sidebar {
    z-index: 40;
    width: min(320px, calc(100vw - 48px));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

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

  .mobile-scrim {
    position: fixed;
    z-index: 35;
    inset: 0;
    display: block;
    background: rgb(15 23 20 / 42%);
  }

  .desktop-brand {
    display: none;
  }

  .doc-nav {
    margin-top: 8px;
  }

  .content-shell {
    margin-left: 0;
  }

  .content {
    width: min(100% - 40px, 760px);
    padding-top: 36px;
  }

  .setup-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .instruction-grid,
  .reverse-grid {
    grid-template-columns: 1fr;
  }

  .reverse-grid .screenshot-frame {
    order: 2;
  }

  .reverse-grid .instruction-copy {
    order: 1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .content {
    width: calc(100% - 32px);
    padding-top: 28px;
  }

  .page-heading {
    display: block;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 29px;
  }

  .lede {
    font-size: 15px;
  }

  .heading-status {
    margin-top: 16px;
  }

  .quick-start {
    padding-top: 34px;
  }

  .doc-section {
    padding: 42px 0;
  }

  .section-heading,
  .section-heading.compact-heading {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .section-heading.compact-heading > div:first-child {
    grid-column: 1 / -1;
  }

  .section-heading.compact-heading .security-chip {
    grid-column: 1 / -1;
  }

  .section-heading h2 {
    font-size: 22px;
  }

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

  .flow-strip li:nth-child(3),
  .flow-strip li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .flow-strip li:nth-child(3) {
    border-left: 0;
  }

  .setup-panel {
    padding: 22px 18px;
  }

  .setup-copy h3 {
    font-size: 19px;
  }

  .launch-card {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 13px;
  }

  .launch-icon {
    width: 34px;
    height: 34px;
  }

  .segmented-control,
  .os-panel,
  .notice,
  .instruction-grid,
  .config-file-grid,
  .manual-details,
  .faq-list {
    margin-left: 0;
  }

  .client-divider {
    padding-left: 0;
    gap: 10px;
  }

  .client-divider span {
    font-size: 10px;
  }

  .config-file-grid {
    grid-template-columns: 1fr;
  }

  .config-copy-shot img {
    height: 240px;
  }

  .segmented-control {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .download-row .secondary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .instruction-grid {
    gap: 26px;
  }

  .screenshot-frame figcaption {
    text-align: left;
  }

  .page-footer {
    display: block;
  }

  .page-footer p {
    margin-top: 12px;
    text-align: left;
  }

  .toast {
    right: 16px;
    top: 16px;
    left: 16px;
  }
}

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

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