.docs-tabs { display: flex; gap: 8px; margin: 0 0 28px; font-family: ui-sans-serif, system-ui, sans-serif; }
.docs-tabs a { padding: 8px 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 700; }
.docs-tabs a:hover, .docs-tabs a.active { border-color: var(--brand); background: var(--brand-soft); color: #ff8797; }
.reference-shell { max-width: 1040px; padding-top: 42px; padding-bottom: 64px; }
.reference-heading { max-width: 720px; margin-bottom: 30px; }
.reference-heading h1 { margin: 8px 0 12px; font-size: clamp(36px, 6vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.reference-heading p { color: var(--muted); font-size: 17px; }
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.explorer-main, .playground { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 14px 35px rgb(0 0 0 / 18%); }
.explorer-tools { padding: 18px; border-bottom: 1px solid var(--line); }
.variable-search { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--bg); color: var(--text); font: 14px ui-sans-serif, system-ui, sans-serif; }
.variable-search:focus, .template-editor:focus { outline: 2px solid rgb(255 93 115 / 45%); outline-offset: 1px; }
.category-filters { display: flex; gap: 7px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; }
.category-filter { flex: 0 0 auto; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.category-filter.active { border-color: var(--brand); background: var(--brand-soft); color: #ff8797; }
.variable-list { max-height: 620px; overflow-y: auto; padding: 8px; }
.variable-row { width: 100%; display: grid; grid-template-columns: minmax(170px, .8fr) 1.5fr auto; gap: 14px; align-items: center; padding: 13px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.variable-row:last-child { border-bottom: 0; }
.variable-row:hover { border-radius: 8px; background: #303031; }
.variable-token { color: #ff8797; font: 650 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.variable-copy { color: var(--muted); font-size: 12px; }
.variable-description { color: var(--muted); font-size: 13px; }
.variable-description small { display: block; margin-top: 3px; color: #7f7f7f; }
.empty-results { padding: 36px; color: var(--muted); text-align: center; }
.playground { position: sticky; top: 84px; overflow: hidden; }
.playground-head { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; }
.playground-body { padding: 18px; }
.playground label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.template-editor { width: 100%; min-height: 150px; resize: vertical; padding: 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--text); font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.preview-label { margin-top: 18px; }
.template-preview { min-height: 92px; padding: 13px; border-left: 3px solid var(--brand); border-radius: 5px; background: #303031; white-space: pre-wrap; font-size: 14px; }
.playground-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.guide-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 42px; }
.guide-link { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--text); text-decoration: none; }
.guide-link:hover { border-color: var(--brand); background: #2b2728; }
.guide-link strong { display: block; margin-bottom: 5px; }
.guide-link span { color: var(--muted); font-size: 14px; }
.choice-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.choice { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.choice strong { display: block; color: #ff8797; }
.choice span { color: var(--muted); font-size: 13px; }
@media (max-width: 800px) {
  .explorer { grid-template-columns: 1fr; }
  .playground { position: static; }
  .variable-list { max-height: none; }
}
@media (max-width: 580px) {
  .reference-shell { padding-top: 24px; }
  .docs-tabs { overflow-x: auto; }
  .variable-row { grid-template-columns: 1fr auto; }
  .variable-description { grid-column: 1 / -1; grid-row: 2; }
  .guide-index, .choice-table { grid-template-columns: 1fr; }
}
