.guide-page { display: block; height: auto; min-height: 100dvh; }
.guide-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px max(20px, calc((100% - 1032px) / 2)); background: #fff; border-bottom: 1px solid var(--line); }
.guide-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.guide-brand span { padding-left: 10px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.guide-link { color: var(--accent); text-decoration: none; white-space: nowrap; }
.guide-link:hover { text-decoration: underline; }
.guide { width: min(1032px, calc(100% - 40px)); margin: 30px auto 50px; }
.guide-intro { padding: 4px 0 22px; }
.guide-tag { color: var(--accent); font-weight: 650; font-size: 12px; }
.guide-intro h1 { font-size: clamp(30px, 4vw, 42px); margin: 6px 0 8px; }
.guide-intro p, .guide-muted { color: var(--muted); }
.guide-card { margin-bottom: 16px; padding: 21px 24px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.guide-card h2 { font-size: 21px; margin-bottom: 6px; }
.guide-card code, .guide-field input { font-family: ui-monospace, Consolas, monospace; }
.guide-credentials { grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; margin: 16px 0 8px; }
.guide-credentials dd { padding: 0; background: none; border: 0; }
.guide-field { display: flex; align-items: center; min-width: 0; gap: 7px; }
.guide-field code, .guide-field input { flex: 1; min-width: 0; padding: 8px 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.guide-field code { overflow-wrap: anywhere; }
.guide-key-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.guide-key-note p { font-size: 12px; }
.guide-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: 17px 0 9px; }
.guide-tabs button { padding: 6px 11px; background: var(--bg); border-color: var(--line); }
.guide-tabs button[aria-selected="true"] { background: var(--highlight); border-color: #bdd8ca; color: var(--accent); }
.guide-example { margin-top: 8px; background: #172621; color: #eaf6ef; border-radius: 9px; overflow: hidden; }
.guide-example > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 12px; border-bottom: 1px solid #385048; color: #b8d1c5; font-size: 12px; }
.guide-example button { padding: 4px 8px; background: #263a31; border-color: #3c564a; color: #eaf6ef; }
.guide-example button:hover { background: #354d41; }
.guide-example pre { overflow: auto; margin: 0; padding: 12px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.guide-test { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.guide-test h3 { font-size: 15px; margin: 0 0 3px; }
.guide-status:not(:empty) { margin-top: 8px; color: var(--accent); font-size: 13px; }
.guide-status.failure:not(:empty) { color: var(--danger); }
.guide-tool-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); gap: 8px; margin: 13px 0; }
.guide-tool-list > div { padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow-wrap: anywhere; }
.guide-tool-list span { display: inline-block; padding: 0 5px; margin-left: 6px; border-radius: 5px; color: var(--accent); background: var(--soft); font-size: 11px; }
.guide-tool-list p { margin-top: 4px; color: var(--muted); font-size: 12px; }
.guide-flow { overflow-wrap: anywhere; }
.guide-flow code { margin-left: 7px; color: var(--accent); }
@media (max-width: 560px) {
  .guide { width: calc(100% - 22px); margin-top: 17px; }
  .guide-card { padding: 14px; }
  .guide-credentials { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .guide-credentials dd { margin-bottom: 5px; }
  .guide-field { gap: 4px; }
  .guide-field button { padding-inline: 7px; }
  .guide-test { align-items: flex-start; }
}
