/* Experiments — A/B tests of catalog image templates (js/experiments/experiments-page.js).
   Reuses the bx-* system (boost.css); only the page's own pieces live here. 1320px column (.bx). */
.xp { padding: 28px 28px 60px; box-sizing: border-box; }
.xp-body { margin-top: 18px; }
.xp-loading { display: flex; align-items: center; gap: 12px; padding: 40px 0; color: #6B7280; font-size: 14px; }
.xp-loading .spinner { width: 22px; height: 22px; border-width: 2px; }
.xp-muted { color: #6B7280; font-size: 12.5px; }
.xp-error { margin: 12px 0; padding: 12px 14px; border-radius: 10px; background: #FEE2E2; color: #991B1B; font-size: 13.5px; line-height: 1.45; white-space: pre-line; }
.xp-note { margin: 12px 0; padding: 11px 14px; border-radius: 10px; background: #F4F4FE; color: #3F3A9E; font-size: 13.5px; line-height: 1.45; }
.xp-note--ok { background: #DCFCE7; color: #166534; }

.xp-guide { margin-top: 16px; background: #fff; border: 1px solid #E9EAEE; border-radius: 13px; padding: 12px 16px; font-size: 13.5px; color: #374151; }
.xp-guide summary { cursor: pointer; font-weight: 600; color: #3F3A9E; }
.xp-guide ul { margin: 10px 0 2px; padding-left: 20px; line-height: 1.6; }

.xp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.xp-card { text-align: left; font: inherit; color: inherit; gap: 6px; }
.xp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.xp-card-meta { font-size: 12px; color: #6B7280; }
.xp-card-name { font-size: 15px; font-weight: 600; color: #14171F; }
.xp-card-sub, .xp-card-dates { font-size: 12.5px; color: #6B7280; }
.xp-card-verdict { font-size: 13px; color: #374151; }

.xp-status { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
.xp-status--on   { color: #15803D; background: #DCFCE7; }
.xp-status--off  { color: #6B7280; background: #F0F1F4; }
.xp-status--done { color: #3F3A9E; background: #EEEDFC; }
.xp-status--bad  { color: #B91C1C; background: #FEE2E2; }
.xp-pill { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; color: #5B6473; background: #F1F2F4; vertical-align: middle; }
.xp-pill--win { color: #15803D; background: #DCFCE7; }

.xp-back { border: none; background: none; color: #5B53E8; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0; }
.xp-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.xp-detail-title { display: flex; align-items: center; gap: 10px; }
.xp-detail-title h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.xp-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.xp-danger { color: #B91C1C; border-color: #FECACA; }
.xp-danger:hover { background: #FEF2F2; }

.xp-verdict { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: #F7F8FA; font-size: 13.5px; color: #374151; }
.xp-verdict--winner, .xp-verdict--control_wins { background: #DCFCE7; color: #166534; }
.xp-verdict--not_enough_data, .xp-verdict--no_clear_winner { background: #FBF1DC; color: #7A520A; }

.xp-tablewrap { margin-top: 14px; overflow-x: auto; background: #fff; border: 1px solid #E9EAEE; border-radius: 13px; }
.xp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.xp-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; padding: 10px 12px; border-bottom: 1px solid #ECEDF1; white-space: nowrap; }
.xp-table td { padding: 11px 12px; border-bottom: 1px solid #F1F2F4; vertical-align: top; white-space: nowrap; }
.xp-table td:nth-child(2) { white-space: normal; min-width: 180px; }
.xp-table tr:last-child td { border-bottom: none; }
.xp-table tr.xp-win td { background: #F3FBF5; }
.xp-good { color: #15803D; font-weight: 600; }
.xp-bad { color: #B91C1C; }
.xp-foot { margin-top: 10px; }

.xp-modal-bg { z-index: 1000; align-items: flex-start; overflow-y: auto; }
.xp-modal { width: 760px; max-width: 100%; background: #fff; border-radius: 16px; box-shadow: 0 30px 80px rgba(16,24,40,0.4); margin: auto; display: flex; flex-direction: column; }
.xp-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #ECEDF1; }
.xp-modal-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.xp-modal-body { padding: 18px 22px 4px; }
.xp-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 0 18px; border-top: 1px solid #ECEDF1; margin-top: 8px; }
.xp-field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.xp-label { font-size: 12.5px; font-weight: 600; color: #374151; }
.xp-hint { font-size: 12px; color: #6B7280; line-height: 1.45; }
.xp-hint--warn { color: #9A6B0E; }
.xp-hint--warn:empty { display: none; }
.xp-in { border: 1px solid #E2E4EA; border-radius: 9px; padding: 9px 12px; font: inherit; font-size: 13px; color: #2A3343; background: #fff; outline: none; }
.xp-in:focus { border-color: #5B53E8; box-shadow: 0 0 0 3px rgba(91,83,232,0.12); }
.xp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.xp-slots { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; border: 1px solid #ECEDF1; border-radius: 10px; padding: 8px; }
.xp-slot { display: flex; align-items: flex-start; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.xp-slot:hover { background: #F7F8FA; }
.xp-slot input { margin-top: 3px; accent-color: #5B53E8; }
.xp-slot-name { font-size: 13.5px; font-weight: 600; color: #14171F; }

@media (max-width: 720px) {
    .xp { padding: 18px 16px 40px; }
    .xp-grid { grid-template-columns: 1fr; }
}

/* New test: which kind */
.xp-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-bottom: 20px; }
.xp-kind { text-align: left; font: inherit; gap: 8px; }
.xp-kind-t { font-size: 15px; font-weight: 600; color: #14171F; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
@media (max-width: 720px) { .xp-kinds { grid-template-columns: 1fr; } }

/* Wizard option pictures + the card's View test button */
.xp-slot { align-items: center; }
.xp-thumb { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #F1F2F4; border: 1px solid #E9EAEE; display: flex; align-items: center; justify-content: center; color: #646B78; font-weight: 700; font-size: 18px; }
.xp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xp-card { cursor: pointer; }
.xp-card:focus-visible { outline: 2px solid #5B53E8; outline-offset: 2px; }
.xp-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.xp-view { padding: 6px 11px; font-size: 12.5px; }

/* ── Template changes as tests (js/experiments/position-tests.js, 2026-11-18) ── */
.xp-pt { margin-top: 28px; }
.ptx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ptx-h { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #14171F; }
.ptx-sub { margin: 0; max-width: 820px; font-size: 13px; line-height: 1.5; color: #5B6473; }
.ptx-metricwrap { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #5B6473; white-space: nowrap; }
.ptx-metric { height: 34px; }
.ptx-empty { padding: 18px; border: 1px dashed #D6D9E0; border-radius: 12px; background: #FAFBFC; color: #5B6473; font-size: 13px; line-height: 1.5; }
.ptx-card { margin-top: 12px; cursor: default; display: block; }
.ptx-card__title { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #14171F; margin-bottom: 4px; }
.ptx-test { padding: 12px 0; }
.ptx-test + .ptx-test { border-top: 1px solid #EEF0F4; }
.ptx-test__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptx-design { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 320px; }
.ptx-thumb { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; overflow: hidden; border: 1px solid #E2E4EA; background: #F4F5F8; display: inline-flex; }
.ptx-thumb.is-own { background: #F4F5F8 repeating-linear-gradient(45deg, #EDF0F6 0 6px, #E2E6EF 6px 12px); }
.ptx-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ptx-thumb:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.ptx-dname { font-size: 13px; font-weight: 600; color: #14171F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptx-arrow { color: #646B78; font-size: 16px; }
.ptx-spacer { flex: 1 1 auto; }
.ptx-when { font-size: 12px; color: #6B7280; white-space: nowrap; }
.ptx-verdict { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ptx-verdict--good { color: #15803D; background: #DCFCE7; }
.ptx-verdict--bad  { color: #B91C1C; background: #FEE2E2; }
.ptx-verdict--on   { color: #3F3A9E; background: #EEEDFC; }
.ptx-verdict--off  { color: #6B7280; background: #F0F1F4; }
.ptx-line { margin: 8px 0 0; font-size: 13px; color: #3B414C; line-height: 1.5; }
.ptx-note { margin: 6px 0 0; font-size: 12px; color: #6B7280; }
.ptx-tablewrap { margin-top: 10px; }
.ptx-win { font-size: 11.5px; font-weight: 400; color: #6B7280; margin-top: 2px; }
.ptx-table td:nth-child(2) { white-space: nowrap; min-width: 0; }
.ptx-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; flex-wrap: wrap; }
.ptx-row + .ptx-row { border-top: 1px solid #EEF0F4; }
.ptx-row__pos { flex: 0 0 220px; font-size: 13px; color: #3B414C; }
.ptx-row__nums { font-size: 12px; color: #5B6473; white-space: nowrap; }
.ptx-foot { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #6B7280; max-width: 980px; }
@media (max-width: 640px) { .ptx-row__pos { flex-basis: 100%; } .ptx-spacer { display: none; } }
