:root {
  color-scheme: light dark;
  --bg: #f7f9f8;
  --surface: #fff;
  --ink: #23342b;
  --muted: #52665a;
  --line: #dce5de;
  --accent: #286145;
  --soft: #edf3ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  font-size: 15px;
  line-height: 1.65;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); -webkit-tap-highlight-color: transparent; }
a, summary { touch-action: manipulation; }
a:focus-visible, summary:focus-visible { outline: 3px solid #639773; outline-offset: 4px; }
h1, h2, h3, p, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.45; overflow-wrap: break-word; text-wrap: balance; }
h1 { font-size: 25px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { overflow-wrap: break-word; line-break: strict; text-wrap: pretty; }
.page { max-width: 680px; margin: 0 auto; padding: 24px 20px max(28px, env(safe-area-inset-bottom)); }
.embedded .page { padding-top: 20px; }
.hero { margin-bottom: 22px; }
.intro { max-width: 20em; margin-top: 9px; color: var(--muted); text-wrap: balance; }
.back-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin: -10px 0 12px; font-size: 13px; text-decoration: none; }
.back-link span { font-size: 24px; }
.embedded .back-link { display: none; }
.guide-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.guide-link { display: flex; align-items: center; gap: 12px; padding: 16px 14px; color: var(--ink); text-decoration: none; }
.guide-link + .guide-link { border-top: 1px solid var(--line); }
.guide-link:active { background: var(--soft); }
.client-icon { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 22px; font-weight: 650; line-height: 1; }
.grok { color: #293c30; background: #edf0ed; }
.gemini { color: #686eab; background: #eff0fa; font-size: 27px; }
.usage { color: var(--accent); background: var(--soft); }
.guide-link-text { display: grid; flex: 1; gap: 4px; min-width: 0; }
.guide-link-text strong { font-size: 16px; font-weight: 650; line-height: 1.5; }
.guide-link-text > span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.chevron { flex: 0 0 auto; color: var(--muted); font-size: 22px; }
.document-section { margin-top: 28px; }
.document-section > h2 { margin-bottom: 16px; }
.requirements, .steps { list-style: none; padding: 0; margin: 0; }
.requirements li, .steps li { display: flex; align-items: flex-start; gap: 11px; }
.requirements li + li { margin-top: 16px; }
.requirements p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.requirements li > div, .steps li > div { flex: 1; min-width: 0; }
.list-number, .step-number, .example-number { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 650; line-height: 1; }
.client-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; text-decoration: none; }
.connection-details { margin-top: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.connection-details h2 { margin-bottom: 14px; font-size: 16px; }
.connection-details dl { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px 12px; }
.connection-details .endpoint, .connection-details .connection-name { grid-column: 1 / -1; }
.connection-details dt { margin-bottom: 3px; color: var(--muted); font-size: 12px; }
.connection-details dd { font-size: 14px; overflow-wrap: anywhere; }
.connection-details code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
.connection-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; }
.connection-name dt { margin: 0; }
.steps li + li { margin-top: 22px; }
.steps h3 { font-size: 16px; }
.steps p { margin-top: 6px; color: var(--muted); }
.menu-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.menu-segment { display: inline-flex; align-items: center; gap: 6px; }
.menu-label { padding: 3px 7px; border-radius: 5px; background: var(--soft); font-size: 12px; white-space: nowrap; }
.menu-path i { color: var(--muted); font-size: 12px; font-style: normal; }
.example + .example { margin-top: 25px; }
.example h2 { display: flex; align-items: flex-start; gap: 9px; font-size: 16px; }
.example-number { margin-top: 0; width: 23px; height: 23px; flex-basis: 23px; }
.example blockquote { margin-top: 11px; padding: 12px 14px; border-left: 3px solid #a6bfae; background: var(--soft); }
.example blockquote p { color: var(--ink); }
.phrase { white-space: nowrap; }
.checklist ul { padding-left: 20px; margin: 0; }
.checklist li { padding-left: 2px; margin-bottom: 10px; color: var(--muted); }
.help-detail { margin-top: 24px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.help-detail summary { min-height: 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
.help-detail p { padding-top: 10px; color: var(--muted); font-size: 14px; }
.next-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 52px; padding: 9px 0; font-size: 14px; font-weight: 600; text-decoration: none; }
.references { display: grid; justify-items: start; gap: 2px; margin-top: 15px; }
.references h2 { margin-bottom: 5px; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; font-size: 13px; text-underline-offset: 4px; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
footer > span { color: var(--muted); font-size: 11px; }
.help-detail + footer { padding-top: 0; border-top: 0; }
@media (min-width: 700px) { .page { padding-right: 28px; padding-left: 28px; } }
@media (prefers-color-scheme: dark) {
  :root { --bg: #142019; --surface: #1d2c22; --ink: #e0ebe3; --muted: #b1c2b6; --line: #374b3d; --accent: #a6d5b4; --soft: #263d2d; }
  .grok { color: #e0ebe3; background: #334239; }
  .gemini { color: #c3c6ef; background: #34384f; }
  .example blockquote { border-left-color: #63836b; }
}
