* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
.bot-page { margin: 0; background: radial-gradient(circle at 90% 0, rgba(128,158,40,.12), transparent 34rem), #f4ecd9; color: var(--theme-text); font-family: "Yu Gothic UI", "Noto Sans JP", sans-serif; line-height: 1.7; }
.bot-main { width: min(1160px, calc(100% - 48px)); margin: 36px auto 60px; }
.bot-hero { padding: 24px 28px; border: 1px solid var(--theme-line); border-top: 3px solid var(--theme-grass); background: linear-gradient(120deg, #fffdf7, #f5ecd8); }
.bot-eyebrow { margin: 0 0 5px; color: var(--theme-grass); font: 800 10px Arial, sans-serif; letter-spacing: .15em; }
.bot-hero h1 { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.4; letter-spacing: -.02em; }
.bot-lead { margin: 0 0 14px; font-size: 14px; }
.bot-page code { font-family: Consolas, "Yu Gothic UI", monospace; font-size: .96em; overflow-wrap: anywhere; }
.bot-channels { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; }
.bot-channels strong { margin-right: 2px; }
.bot-channels code { padding: 2px 8px; background: #e9e4d5; border: 1px solid #d8ccb1; border-radius: 3px; }
.bot-input-note { margin: 10px 0 0; font-size: 12px; color: #666354; }
.bot-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 12px; }
.bot-index a { padding: 6px 12px; border: 1px solid #cbbb98; border-radius: 3px; background: #fffaf0; color: #424d32; font-size: 12px; font-weight: 700; text-decoration: none; }
.bot-index a:hover { background: #e4ebc8; border-color: #617c24; }
.bot-page a:focus-visible { outline: 3px solid var(--theme-water); outline-offset: 3px; }
.bot-quick-start { display: flex; flex-wrap: wrap; gap: 3px 16px; margin: 0 0 24px; padding: 10px 14px; border-left: 3px solid var(--theme-water); background: #e7edf0; color: #334c60; font-size: 12px; }
.bot-quick-start code { font-weight: 700; }
.bot-section { margin-top: 28px; scroll-margin-top: 10px; }
.bot-section-heading { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.bot-section-heading > span { color: var(--theme-grass); font: 800 11px Arial, sans-serif; }
.bot-section h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.bot-section-intro { margin: 0 0 10px; color: #545747; font-size: 13px; }
.bot-command-table, .bot-filter-table, .bot-auto-table { width: 100%; border-collapse: collapse; background: #fffaf0; font-size: 13px; }
.bot-command-col { width: 19%; }
.bot-usage-col { width: 33%; }
.bot-command-table { table-layout: fixed; }
.bot-command-table th, .bot-command-table td,
.bot-filter-table th, .bot-filter-table td,
.bot-auto-table th, .bot-auto-table td { border: 1px solid #d6c8ad; padding: 11px 14px; vertical-align: top; text-align: left; }
.bot-command-table thead th, .bot-filter-table thead th, .bot-auto-table thead th { padding-top: 8px; padding-bottom: 8px; background: #3d4636; border-color: #626c55; color: #fff9e9; font-size: 12px; font-weight: 600; }
.bot-command-table tbody th, .bot-filter-table tbody th, .bot-auto-table tbody th { background: #f0ecd9; color: #3e532b; font-weight: 700; }
.bot-command-table tbody th code { display: block; font-size: 14px; line-height: 1.65; }
.bot-command-table tbody th code + code { margin-top: 3px; }
.bot-examples { display: flex; flex-wrap: wrap; gap: 4px 7px; }
.bot-examples code { display: inline-block; padding: 2px 6px; border-radius: 3px; background: #eee9dc; color: #253e50; }
.bot-usage > span { display: block; margin-top: 5px; color: #6c6759; font-size: 12px; }
.bot-page-link { display: block; width: fit-content; margin-top: 5px; color: var(--theme-water); text-underline-offset: 3px; }
.bot-notes { padding: 9px 14px; border: 1px solid #d6c8ad; border-top: 0; background: #f6f0e1; color: #686252; font-size: 12px; }
.bot-notes p { margin: 0; }
.bot-notes p + p { margin-top: 5px; }
.bot-rank-filters { margin-top: 18px; max-width: 650px; }
.bot-rank-filters h3 { margin: 0 0 4px; font-size: 15px; }
.bot-rank-filters > p { margin: 0 0 8px; font-size: 12px; }
.bot-filter-table th, .bot-filter-table td { padding: 7px 12px; }
.bot-auto-table tbody th { width: 19%; }
.bot-bottom-link { margin: 24px 0 0; text-align: right; font-size: 12px; }
.bot-bottom-link a { color: var(--theme-water); text-underline-offset: 3px; }
.bot-footer { padding: 24px; background: var(--theme-stone); color: #ded7c6; font-size: 11px; text-align: center; }
.bot-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.bot-skip-link { position: absolute; top: -80px; left: 12px; z-index: 100; padding: 8px 14px; background: #fffaf0; color: #255b9b; }
.bot-skip-link:focus { top: 6px; }
@media (max-width: 1050px) { html { scroll-padding-top: 120px; } }
@media (max-width: 900px) { html { scroll-padding-top: 12px; } }
@media (max-width: 650px) {
  .bot-main { width: calc(100% - 24px); margin-top: 20px; }
  .bot-hero { padding: 18px 16px; }
  .bot-lead { font-size: 13px; }
  .bot-channels strong { flex-basis: 100%; }
  .bot-index { gap: 6px; }
  .bot-index a { padding: 7px 10px; }
  .bot-section h2 { font-size: 19px; }
  .bot-command-table colgroup { display: none; }
  .bot-command-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .bot-command-table tbody { display: block; border-top: 1px solid #d6c8ad; }
  .bot-command-table tbody tr { display: grid; grid-template-columns: minmax(88px, 27%) minmax(0, 1fr); border: 1px solid #d6c8ad; border-top: 0; }
  .bot-command-table tbody th { grid-row: span 2; border: 0; border-right: 1px solid #d6c8ad; padding: 10px 8px; }
  .bot-command-table tbody th code { font-size: 13px; }
  .bot-command-table tbody td { display: block; border: 0; padding: 9px 10px; font-size: 13px; }
  .bot-command-table .bot-role { padding-top: 0; }
  .bot-command-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: #706a5c; font-size: 10px; font-weight: 700; }
  .bot-examples code { font-size: 12px; }
  .bot-auto-table tbody th { width: 30%; }
  .bot-auto-table th, .bot-auto-table td { padding: 9px 10px; }
  .bot-filter-table th, .bot-filter-table td { padding: 7px 8px; font-size: 12px; }
  .bot-notes { padding: 10px 12px; }
}
@media print {
  .bot-page .site-header, .bot-index, .bot-bottom-link, .bot-footer { display: none; }
  .bot-page { background: #fff; }
  .bot-main { width: 100%; margin: 0; }
  .bot-hero { padding: 12px; }
  .bot-section { break-inside: auto; }
  .bot-page tr { break-inside: avoid; }
}
