/* Общие стили форматтеров: /format-code/, /html-formatter/, /sql-formatter/ */
.fmt-options { border-top: 0; border-bottom: 1px solid var(--border); }
.fmt-options .more { flex-basis: 100%; }
.fmt-options .more > summary { cursor: pointer; font-size: 14px; color: var(--muted); width: max-content; }
.fmt-options .more-body { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 10px; }
.fmt-options .opt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fmt-options [hidden] { display: none !important; }
.io.outdated { opacity: .5; }
.pane { position: relative; }
.outdated-tag { position: absolute; right: 28px; top: 58px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-badge); background: var(--warn-tint); color: var(--warn); }
.fmt-extra { margin: -4px 16px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.fmt-links { margin: 0 16px 12px; }
@media (max-width: 768px) {
  .fmt-options .opt-actions { margin-left: 0; width: 100%; }
  .fmt-options .opt-actions .primary { flex: 1; }
  .fmt-options select { max-width: 100%; }
}
.fmt-warnings { margin: 0 16px 12px; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--warn-tint); color: var(--warn); font-size: 14px; }
.fmt-warnings ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 180px; overflow: auto; }
.fmt-warnings li button { background: none; border: 0; padding: 2px 0; color: inherit; font: inherit; text-align: left; cursor: pointer; text-decoration: underline dotted; }
.fmt-warnings li button:hover { text-decoration: underline; }
.lang-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-badge); background: var(--blue-tint); color: var(--blue); font-size: 13px; font-weight: 600; }
.lang-cards { padding: 0 16px 16px; }
.lang-cards h2 { font-size: 17px; margin: 4px 0 10px; }
.lang-cards .lc { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px; }
.lang-cards a { display: block; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-ctl); color: var(--ink); font-size: 14px; }
.lang-cards a:hover { border-color: var(--blue); text-decoration: none; }
.lang-cards a b { display: block; }
.lang-cards a span { color: var(--muted); }
.h2t-options { border-top: 1px solid var(--border); border-bottom: 0; }
.fmt-options [disabled] + * , .fmt-options label:has(> input:disabled), .fmt-options .field:has(select:disabled) { opacity: .5; }
/* длинные строки в примерах не должны растягивать страницу (site.css: .ex-cols 1fr без minmax) */
.example .ex-cols > div { min-width: 0; }
