.script-guide-page main { max-width: 1060px; margin: 0 auto; padding: 112px 28px 64px; }
.guide-heading .back-link { display: inline-block; font-size: 14px; color: var(--blue); margin-bottom: 24px; }
.guide-heading .eyebrow { color: #167d8d; font-size: 11px; font-weight: 600; letter-spacing: 2px; }
.guide-heading h1 { margin: 12px 0 16px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -1px; }
.guide-heading > p:last-child { color: var(--muted); line-height: 1.8; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.guide-toc a { font-size: 13px; padding: 10px 14px; background: #fff; border: 1px solid #dce4e9; border-radius: 24px; color: #167d8d; }
.syntax-basics { font-size: 13px; line-height: 1.85; color: var(--muted); }
.syntax-basics p + p { margin-top: 12px; }
.syntax-basics a { color: var(--blue); }
.script-guide-page .category-note { margin-top: 18px; color: var(--muted); font-size: 13px; }
.script-guide-page main > section { margin: 28px 0; padding: 28px; border-radius: 18px; border: 1px solid #e2e5e9; background: #fff; scroll-margin-top: 84px; }
.script-guide-page h2 { font-size: 23px; font-weight: 600; margin: 0 0 18px; }
.script-guide-page h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.script-guide-page section p, .script-guide-page li, .log-fields { font-size: 14px; line-height: 1.9; }
.script-guide-page section p + p { margin-top: 14px; }
.script-guide-page ol, .script-guide-page ul { padding-left: 22px; margin: 18px 0; }
.script-guide-page li + li { margin-top: 8px; }
.script-guide-page code { font: .92em ui-monospace, Consolas, monospace; overflow-wrap: anywhere; color: #166b79; }
.timing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0; }
.timing-grid article { background: #f5f8f9; border-radius: 12px; padding: 20px; }
.timing-grid h3 { margin-top: 0; }
.guide-note { background: #fff8ed; border-left: 3px solid #c18a36; border-radius: 6px; padding: 18px 20px; margin: 20px 0; }
.guide-note strong { display: block; font-size: 14px; margin-bottom: 6px; }
.script-guide-page pre { margin: 16px 0 24px; padding: 20px; background: #f3f6f8; border: 1px solid #e2e8ec; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.8; }
.script-guide-page pre code { overflow-wrap: normal; color: #263b4c; }
.command-table { overflow-x: auto; margin-top: 20px; }
.command-category { scroll-margin-top: 84px; }
.command-category + .command-category { margin-top: 32px; padding-top: 12px; border-top: 1px solid #e5eaed; }
.command-table table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.7; }
.command-table th { background: #f5f8f9; text-align: left; font-weight: 600; }
.command-table th, .command-table td { padding: 14px; border-bottom: 1px solid #e5eaed; vertical-align: top; }
.command-table td:first-child { width: 46%; }
.log-fields { margin: 16px 0; }
.log-fields > div { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid #edf0f2; }
.log-fields dt { font-family: ui-monospace, Consolas, monospace; color: #166b79; }
.log-fields dd { margin: 0; }
.guide-links { display: flex; flex-wrap: wrap; gap: 16px; }
.guide-links a { color: var(--blue); }
@media (max-width: 600px) {
  .script-guide-page main { padding: 90px 18px 36px; }
  .script-guide-page main > section { padding: 20px; }
  .timing-grid { grid-template-columns: 1fr; gap: 12px; }
  .script-guide-page h2 { font-size: 21px; }
  .script-guide-page pre { padding: 16px; }
  .command-table table { min-width: 600px; }
  .log-fields > div { grid-template-columns: 1fr; gap: 4px; }
}
