/* Модуль «Выгрузки и API» */
.xp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.xp-form fieldset { border-top: 1px solid var(--line-2); padding-top: 12px; }
.xp-form fieldset:first-of-type { border-top: 0; padding-top: 0; }
.xp-regions { min-height: 180px; }
.xp-fields { columns: 2; column-gap: 18px; }
.xp-fields .check-inline { display: flex; break-inside: avoid; margin-right: 0; }
.xp-side { position: sticky; top: 76px; }
.xp-count { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.15; }
.xp-amount { margin: 10px 0 6px; font-size: 1.05rem; }
.xp-sample td, .xp-sample th { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; font-size: .85rem; }
.xp-progress { height: 10px; background: var(--line-2); border-radius: 999px; overflow: hidden; margin: 10px 0; }
.xp-progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .4s; }
.xp-key { display: flex; gap: 8px; align-items: center; }
.xp-key input { flex: 1; font-family: var(--mono); font-size: .92rem; padding: 9px 12px; border: 1px solid #c9d2de; border-radius: 8px; background: #fff; min-width: 0; }
.xp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.xp-plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.xp-plan.on { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.xp-plan .price { font-size: 1.25rem; font-weight: 700; }
.api-doc pre { background: #0f1a2b; color: #e6edf6; border-radius: 8px; padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.45; margin: 8px 0 14px; }
.api-doc code { font-family: var(--mono); font-size: .9em; background: var(--line-2); padding: 0 4px; border-radius: 4px; }
.api-doc pre code { background: none; padding: 0; color: inherit; }
.api-doc h2 { margin-top: 1.6em; }
.api-doc h3 { font-size: 1rem; margin: 1.2em 0 .3em; }
.api-ep { display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--accent); }
@media (max-width: 960px) {
  .xp { grid-template-columns: 1fr; }
  .xp-side { position: static; order: -1; }
}
@media (max-width: 640px) {
  .xp-fields { columns: 1; }
}
