.site-guide { box-sizing: border-box; width: min(1160px, 100%); padding: 8px 32px 64px; color: #c5ced8; font: 15px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.site-guide * { box-sizing: border-box; }
.sg-heading { border-top: 1px solid #262e38; padding: 32px 0 20px; }
.sg-eyebrow { color: #7fd1ff; font-size: 12px; letter-spacing: .08em; margin: 0 0 8px; }
.sg-heading h2 { color: #f2f6fa; font-size: clamp(25px, 4vw, 32px); line-height: 1.4; margin: 0 0 10px; }
.sg-heading > p:last-child { color: #98a7b7; max-width: 48em; margin: 0; }
.site-guide button, .site-guide input { font: inherit; }
.site-guide button { cursor: pointer; }
.site-guide button:focus-visible, .site-guide input:focus-visible, .site-guide summary:focus-visible, .site-guide a:focus-visible { outline: 2px solid #7fd1ff; outline-offset: 4px; }
.sg-search-label { display: block; font-size: 12px; color: #9facba; margin-bottom: 7px; }
.sg-search-row { display: flex; gap: 8px; margin-bottom: 16px; }
.sg-search-row input { flex: 1; width: 100%; min-width: 0; border: 1px solid #344150; border-radius: 9px; background: #11171e; color: #e8eef5; padding: 11px 14px; }
.sg-search-row input::placeholder { color: #8291a3; }
.sg-search-row button, .sg-pager button, .sg-reset { border: 1px solid #344150; background: #151e28; color: #bed4e6; border-radius: 8px; padding: 8px 14px; }
.sg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.sg-tabs button { border: 1px solid #2c3744; background: #11171e; color: #9cacbd; border-radius: 8px; padding: 8px 13px; }
.sg-tabs button:hover { border-color: #526a83; }
.sg-tabs button[aria-pressed="true"] { color: #b9e7ff; border-color: #3b718d; background: #152b37; }
.sg-status { font-size: 13px; color: #9facba; margin: 0 0 14px; }
.sg-layout { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.65fr); align-items: start; gap: 22px; }
.sg-index { min-width: 0; display: grid; gap: 7px; }
.sg-index-label { padding: 0 10px 5px; color: #8298ac; font-size: 12px; }
.sg-index button { display: flex; align-items: baseline; gap: 10px; width: 100%; border: 1px solid transparent; border-radius: 8px; padding: 11px 12px; background: transparent; color: #a5b5c5; text-align: left; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.sg-index button:hover { background: #151f2a; }
.sg-number { color: #7694ab; font-size: 11px; font-variant-numeric: tabular-nums; }
.sg-index button[aria-current="page"], .sg-index .sg-toggle { background: #142a36; color: #c0eaff; border-color: #315367; }
.sg-layout.sg-collapsed { grid-template-columns: 1fr; gap: 12px; }
.sg-toggle { justify-content: space-between; align-items: center !important; }
.sg-toggle-hint { white-space: nowrap; font-size: 12px; color: #94cae5; }
.sg-content { min-width: 0; border: 1px solid #2b3643; border-radius: 13px; background: #10161d; padding: clamp(20px, 4vw, 32px); }
.sg-meta { color: #879eb3; font-size: 12px; margin: 0 0 8px; }
.sg-content h3 { font-size: clamp(20px, 3vw, 24px); color: #e9f1f9; margin: 0 0 22px; line-height: 1.55; }
.sg-content > p { margin: 0 0 18px; overflow-wrap: anywhere; }
.sg-content strong { color: #d4eafb; font-weight: 650; }
.sg-content .sg-callout { background: #142b35; border-left: 3px solid #72c4e8; padding: 14px 16px; color: #c4e2ee; border-radius: 0 8px 8px 0; }
.sg-content code { font: .92em ui-monospace, SFMono-Regular, Menlo, monospace; color: #c7d9e9; background: #1d2a38; border-radius: 4px; padding: 1px 4px; }
.sg-steps { margin: 24px 0; padding-left: 27px; }
.sg-steps li { padding: 0 0 22px 8px; overflow-wrap: anywhere; }
.sg-steps li::marker { color: #81d0f5; font-weight: 700; }
.sg-steps li > strong { display: block; margin-bottom: 6px; font-size: 16px; }
.sg-steps li p { margin: 0; }
.sg-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.sg-links a { color: #a4deff; text-decoration: none; background: #182a37; border: 1px solid #37576d; border-radius: 7px; padding: 8px 12px; }
.sg-example { border: 1px solid #2c3b4b; border-radius: 8px; padding: 11px 14px; margin-top: 12px; }
.sg-example summary { color: #a7cee8; cursor: pointer; }
.sg-example pre { color: #c5d8e8; font: 12px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; margin: 15px 0 0; }
.sg-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #263240; }
.sg-pager button:disabled { cursor: default; opacity: .35; }
.sg-welcome-cards { display: grid; gap: 12px; }
.sg-welcome-cards button { text-align: left; color: #b5c9dc; border: 1px solid #2c3b4b; border-radius: 9px; background: #141e28; padding: 14px 16px; line-height: 1.7; }
.sg-welcome-cards strong { display: block; margin-bottom: 4px; font-size: 16px; }
.sg-note, .sg-loading { color: #91a7bb; font-size: 13px; }
.sg-loading { padding: 20px; border: 1px solid #2c3b4b; border-radius: 9px; }
@media (max-width: 760px) {
 .site-guide { padding: 8px 24px 40px; }
 .sg-layout { grid-template-columns: 1fr; gap: 16px; }
 .sg-index:not(.sg-index-collapsed) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .sg-index-label { grid-column: 1 / -1; }
 .sg-index .sg-toggle { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
 .site-guide { padding-left: 18px; padding-right: 18px; }
 .sg-tabs button { flex: 1 1 28%; padding: 8px; }
 .sg-index:not(.sg-index-collapsed) { grid-template-columns: 1fr; }
 .sg-toggle { gap: 8px; }
}
.sg-number { flex-shrink: 0; white-space: nowrap; }

.sg-content .sg-chapter-link {
  background: none;
  border: 0;
  padding: 0;
  color: #a4deff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
