/* product-ai.css — «ИИ-примерка» в карточке товара (includes/product-ai-block.php). Палитра карточки: тёмно-коричневый, золото, бежевый, Georgia. */

/* Ссылка под кнопками заказа */
.pai-promo { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 13px 18px; border-radius: 18px; color: #f4ede2;
  background: linear-gradient(135deg, #2b1e10 0%, #3d2a14 100%); box-shadow: 0 10px 24px rgba(43, 30, 16, .18); transition: transform .25s ease, box-shadow .25s ease; }
.pai-promo:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(43, 30, 16, .26); }
.pai-promo__icon { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #e6d0a1, #caa469); color: #201913; font-size: 19px; }
.pai-promo__text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pai-promo__text b { font-size: 15px; font-weight: 700; }
.pai-promo__text small { font-size: 12.5px; color: rgba(244, 237, 226, .7); line-height: 1.35; }
.pai-promo__arrow { color: #e6d0a1; font-size: 20px; transition: transform .25s ease; }
.pai-promo:hover .pai-promo__arrow { transform: translateX(4px); }

/* Блок */
.pai { padding: 6px 0 34px; scroll-margin-top: calc(var(--header-h, 84px) + 12px); }
.pai-box { background: #fff; border-radius: 24px; border: 1px solid var(--line, rgba(173, 142, 98, .18)); box-shadow: 0 2px 16px rgba(0, 0, 0, .05); overflow: hidden; }

.pai-top { position: relative; overflow: hidden; isolation: isolate; padding: 30px 32px 24px; color: #f4ede2; background: linear-gradient(135deg, #2b1e10 0%, #3d2a14 100%); }
.pai-top::before { content: ""; position: absolute; z-index: -1; top: -70px; right: -60px; width: 260px; height: 260px; border-radius: 50%; background: rgba(199, 163, 108, .12); }
.pai-top::after { content: ""; position: absolute; z-index: -1; bottom: -110px; right: 180px; width: 240px; height: 240px; border-radius: 50%; background: rgba(199, 163, 108, .07); }
.pai-top__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.pai-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #e6d0a1; }
.pai-eyebrow i { font-style: normal; margin-right: 4px; }
.pai-title { margin: 0 0 8px; font-family: Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; color: #f4ede2; letter-spacing: -.01em; }
.pai-lead { margin: 0; max-width: 760px; font-size: 15px; line-height: 1.6; color: rgba(244, 237, 226, .74); }
.pai-quota { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; border: 1px solid rgba(230, 208, 161, .3); background: rgba(255, 255, 255, .05); }
.pai-quota b { font-family: Georgia, serif; font-weight: 400; font-size: 38px; line-height: 1; color: #e6d0a1; }
.pai-quota span { font-size: 12.5px; line-height: 1.35; color: rgba(244, 237, 226, .72); }

.pai-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pai-mode { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; text-align: left; cursor: pointer; color: #f4ede2;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(230, 208, 161, .24); transition: background .2s, border-color .2s, color .2s, transform .2s; }
.pai-mode:hover { border-color: rgba(230, 208, 161, .6); background: rgba(255, 255, 255, .1); }
.pai-mode.is-active { background: linear-gradient(180deg, #e6d0a1, #caa469); color: #201913; border-color: transparent; box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.pai-mode__icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(230, 208, 161, .14); color: #e6d0a1; }
.pai-mode.is-active .pai-mode__icon { background: rgba(32, 25, 19, .1); color: #201913; }
.pai-mode__text { display: flex; flex-direction: column; gap: 2px; }
.pai-mode__text b { font-size: 16px; }
.pai-mode__text small { font-size: 13px; opacity: .78; }

/* Инструмент */
.pai-tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; padding: 28px 32px 30px; }
.pai-step { display: flex; align-items: center; gap: 10px; margin: 20px 0 10px; }
.pai-form > .pai-step:first-child { margin-top: 0; }
.pai-step__num { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #e6d0a1, #caa469); color: #201913; font-size: 13px; font-weight: 800; }
.pai-step__title { margin: 0; font-family: Georgia, serif; font-weight: 600; font-size: 18px; color: #2b241e; }
.pai-step__title small { margin-left: 6px; font-family: Inter, "Segoe UI", Arial, sans-serif; font-weight: 400; font-size: 12.5px; color: var(--muted, #7c6d5d); }
.pai-step__title small.is-picked { color: #a07a3f; font-weight: 700; }

.pai-drop { position: relative; display: flex; align-items: center; justify-content: center; min-height: 190px; border-radius: 18px; cursor: pointer; overflow: hidden;
  border: 2px dashed rgba(199, 163, 108, .55); background: #fbf7f0; transition: border-color .2s, background .2s; }
.pai-drop:hover, .pai-drop.is-drag { border-color: #c7a36c; background: #f7efe2; }
.pai-drop.is-bad { border-color: #d64545; }
.pai-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pai-drop__empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; text-align: center; color: #b98e54; }
.pai-drop__empty b { font-size: 15.5px; color: #2b241e; }
.pai-drop__empty small { max-width: 340px; font-size: 13px; line-height: 1.45; color: var(--muted, #7c6d5d); }
.pai-drop__preview { display: none; width: 100%; max-height: 340px; object-fit: contain; background: #f2ede6; }
.pai-drop__change { display: none; position: absolute; right: 12px; bottom: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; }
.pai-drop.has-photo .pai-drop__empty { display: none; }
.pai-drop.has-photo .pai-drop__preview, .pai-drop.has-photo .pai-drop__change { display: block; }
.pai-drop.is-loading::after { content: "Готовим фото…"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .82); font-weight: 700; color: #8a6d42; }

.pai-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pai-thumb { position: relative; display: block; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; cursor: pointer; border: 2px solid transparent; background: #f2ede6; box-shadow: 0 1px 6px rgba(0, 0, 0, .1); transition: border-color .15s, transform .15s; }
.pai-thumb:hover { transform: translateY(-2px); }
.pai-thumb input { position: absolute; opacity: 0; pointer-events: none; }
.pai-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pai-thumb:has(input:checked) { border-color: #c7a36c; box-shadow: 0 0 0 2px rgba(199, 163, 108, .35); }
.pai-thumb:has(input:checked)::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: #c7a36c; color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700; }
.pai-thumb em { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 0; font-style: normal; font-size: 10px; font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: rgba(43, 30, 16, .72); }

.pai-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 10px; }
.pai-chip { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(199, 163, 108, .45); background: #fff; color: #8a6d42; font-size: 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pai-chip:hover, .pai-chip.is-on { background: #c7a36c; border-color: #c7a36c; color: #fff; }

.pai-input { display: block; width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid #e0d8cc; border-radius: 12px; background: #faf8f4; color: #2b241e; font-size: 14.5px; line-height: 1.45; outline: none; resize: vertical; transition: border-color .15s, box-shadow .15s, background .15s; }
.pai-input::placeholder { color: #a89a8a; opacity: 1; }
.pai-input:focus { border-color: #c7a36c; box-shadow: 0 0 0 3px rgba(199, 163, 108, .16); background: #fff; }
.pai-input.is-bad { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }

.pai-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted, #7c6d5d); cursor: pointer; }
.pai-consent input { margin-top: 2px; accent-color: #b98e54; flex: 0 0 auto; }
.pai-consent--plain { cursor: default; }
.pai-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.pai-go { min-height: 54px; padding: 0 28px; }
.pai-go[disabled] { opacity: .6; cursor: wait; transform: none; }
.pai-error { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff1f0; color: #b42318; font-size: 14px; }
.pai-muted { margin: 0; font-size: 13.5px; color: var(--muted, #7c6d5d); }

/* Образцы цвета и фрезеровки */
.pai-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.pai-tab { padding: 5px 12px; border-radius: 999px; border: 1px solid #e0d8cc; background: #f9f6f1; color: #7c6d5d; font-size: 12.5px; cursor: pointer; transition: background .15s, color .15s; }
.pai-tab:hover { border-color: #c7a36c; color: #4b4034; }
.pai-tab.is-on { background: linear-gradient(180deg, #e6d0a1, #caa469); border-color: transparent; color: #201913; font-weight: 700; }
.pai-swatches { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.pai-swatches::-webkit-scrollbar { height: 4px; }
.pai-swatches::-webkit-scrollbar-thumb { background: #d8cec0; border-radius: 2px; }
.pai-sw { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0; border: 0; background: none; cursor: pointer; scroll-snap-align: start; }
.pai-sw__img { display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; background: #f2ede6; box-shadow: 0 1px 5px rgba(0, 0, 0, .14); transition: box-shadow .15s, transform .15s; }
.pai-sw__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pai-sw--mill .pai-sw__img { width: 56px; height: 84px; }
.pai-sw__name { max-width: 70px; font-size: 10.5px; line-height: 1.25; color: #7c6d5d; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pai-sw:hover .pai-sw__img { transform: translateY(-2px); }
.pai-sw.is-on .pai-sw__img { outline: 3px solid #c7a36c; outline-offset: 2px; }
.pai-sw.is-on .pai-sw__name { color: #a07a3f; font-weight: 700; }
.pai-sw--none .pai-sw__img { border: 1.5px dashed #c9b898; box-shadow: none; background: #fbf7f0; font-size: 11px; font-weight: 600; color: #8a6d42; text-align: center; line-height: 1.2; padding: 4px; box-sizing: border-box; }

/* Результат */
.pai-result { position: sticky; top: calc(var(--header-h, 84px) + 16px); min-height: 380px; padding: 20px; border-radius: 20px; background: #fbf7f0; border: 1px solid var(--line, rgba(173, 142, 98, .18)); }
.pai-idle-art { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #efe7db; }
.pai-idle-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.pai-idle-art span { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  background: rgba(43, 30, 16, .82); color: #f4ede2; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(4px); }
.pai-tips { list-style: none; margin: 16px 0 0; padding: 0; }
.pai-tips li { position: relative; padding: 6px 0 6px 24px; font-size: 13.5px; line-height: 1.45; color: var(--muted, #7c6d5d); }
.pai-tips li::before { content: "✦"; position: absolute; left: 0; color: #c7a36c; }

.pai-progress-art { position: relative; overflow: hidden; border-radius: 16px; background: #efe7db; aspect-ratio: 4 / 3; }
.pai-progress-art img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) blur(1px); opacity: .8; }
.pai-scan { position: absolute; left: 0; right: 0; height: 36%; top: -36%; background: linear-gradient(180deg, rgba(199, 163, 108, 0), rgba(199, 163, 108, .38) 70%, rgba(255, 236, 196, .95) 100%); animation: paiScan 2.4s ease-in-out infinite; }
@keyframes paiScan { 0% { top: -36%; } 100% { top: 100%; } }
.pai-stages { list-style: none; padding: 0; margin: 16px 0 8px; display: grid; gap: 8px; }
.pai-stages li { position: relative; padding-left: 30px; font-size: 15px; color: #b5a796; }
.pai-stages li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e0d4c0; box-sizing: border-box; }
.pai-stages li.is-active { color: #2b241e; font-weight: 700; }
.pai-stages li.is-active::before { border-color: #c7a36c; border-right-color: transparent; animation: paiSpin .8s linear infinite; }
.pai-stages li.is-done { color: #8a6d42; }
.pai-stages li.is-done::before { content: "✓"; background: #c7a36c; border-color: #c7a36c; color: #fff; font-size: 11px; line-height: 14px; text-align: center; }
@keyframes paiSpin { to { transform: rotate(360deg); } }
.pai-timer { margin: 4px 0 0; font-size: 13px; color: var(--muted, #7c6d5d); }

.pai-result__title { margin: 14px 0 12px; font-family: Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1.3; color: #2b241e; }
.pai-result__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pai-result__actions .btn { min-height: 46px; padding: 0 18px; }
.pai-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted, #7c6d5d); }
.pai-result__fail { padding: 40px 10px; text-align: center; }
.pai-fail__icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff1f0; color: #b42318; font-size: 28px; font-weight: 700; }
.pai-result__fail p { margin: 0 0 16px; color: #2b241e; }

/* Сравнение «было / стало» */
.pai-compare { --pos: 50%; position: relative; overflow: hidden; border-radius: 16px; background: #efe7db; user-select: none; touch-action: pan-y; aspect-ratio: var(--ratio, 1.3333); }
.pai-compare__after { display: block; width: 100%; height: 100%; object-fit: cover; }
.pai-compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.pai-compare__before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pai-compare__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); pointer-events: none; }
.pai-compare__knob { position: absolute; top: 50%; left: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; color: #a07a3f; font-size: 19px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.pai-compare__tag { position: absolute; top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, .58); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.pai-compare__tag--before { left: 12px; }
.pai-compare__tag--after { right: 12px; background: rgba(160, 122, 63, .9); }
.pai-compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }

/* История */
.pai-history { padding: 24px 32px 30px; border-top: 1px solid #f0ebe2; }
.pai-history__title { margin: 0 0 4px; font-family: Georgia, serif; font-weight: 600; font-size: 20px; color: #2b241e; }
.pai-history__title span { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #faf3e8; border: 1px solid #e8d8b8; font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 12px; font-weight: 700; color: #a08060; vertical-align: middle; }
.pai-history__sub { margin: 0 0 16px; font-size: 13.5px; color: var(--muted, #7c6d5d); }
.pai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.pai-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: #fff; color: inherit; text-decoration: none; border: 1px solid rgba(173, 142, 98, .16); box-shadow: 0 1px 8px rgba(0, 0, 0, .05); transition: transform .25s, box-shadow .25s; }
.pai-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(46, 35, 24, .12); }
.pai-card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #efe7db; }
.pai-card__img > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pai-card__before { position: absolute; left: 10px; bottom: 10px; width: 34%; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.pai-card__before img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pai-card__before em { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: 9.5px; text-align: center; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: rgba(0, 0, 0, .55); }
.pai-card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.pai-card__mode { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #b98e54; }
.pai-card__title { font-size: 14px; line-height: 1.4; color: #2b241e; }
.pai-card__date { font-size: 12px; color: var(--muted, #7c6d5d); }
.pai-center { margin: 20px 0 0; text-align: center; }

/* Лайтбокс истории и окно заявки */
.pai-lb, .pai-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 14, 8, .74); backdrop-filter: blur(4px); }
.pai-lb.is-open, .pai-modal.is-open { display: flex; }
.pai-lb__dialog { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); animation: paiPop .25s ease; }
.pai-lb .pai-compare { max-width: min(100%, calc((100vh - 230px) * var(--ratio, 1))); margin: 0 auto; }
.pai-lb__info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 14px 0 12px; }
.pai-lb__title { flex: 1 1 100%; order: 2; margin: 0; font-family: Georgia, serif; font-weight: 600; font-size: 19px; color: #2b241e; }
.pai-lb__date { font-size: 12.5px; color: var(--muted, #7c6d5d); }
.pai-lb__close, .pai-modal__close { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #7c6d5d; font-size: 17px; cursor: pointer; }
.pai-modal__dialog { position: relative; width: min(460px, 100%); padding: 34px 30px 26px; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: paiPop .25s ease; }
@keyframes paiPop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.pai-modal__icon { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #2b1e10, #3d2a14); color: #e6d0a1; font-size: 25px; }
.pai-modal__title { margin: 0 0 10px; font-family: Georgia, serif; font-weight: 600; font-size: 22px; color: #2b241e; }
.pai-modal__text { margin: 0 0 18px; font-size: 14.5px; line-height: 1.5; color: var(--muted, #7c6d5d); }
.pai-modal__form { display: grid; gap: 10px; }
.pai-modal__note { margin: 2px 0 0; font-size: 11.5px; color: var(--muted, #7c6d5d); }
.pai-modal__ok { padding: 16px; border-radius: 14px; background: #effaf3; color: #1d7a45; font-weight: 700; }
.pai-modal__phone { display: inline-block; margin-top: 14px; font-size: 14px; color: #a07a3f; }
.pai-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 980px) {
  .pai-tool { grid-template-columns: 1fr; }
  .pai-result { position: static; min-height: 0; }
}
@media (max-width: 680px) {
  .pai { padding-bottom: 24px; }
  .pai-top { padding: 22px 18px 18px; }
  .pai-top__row { flex-direction: column; gap: 14px; }
  .pai-quota { padding: 8px 14px; }
  .pai-quota b { font-size: 28px; }
  .pai-lead { font-size: 14px; }
  .pai-modes { grid-template-columns: 1fr; gap: 8px; margin-top: 16px; }
  .pai-mode { padding: 11px 13px; }
  .pai-mode__icon { width: 38px; height: 38px; }
  .pai-tool { padding: 20px 16px 22px; gap: 20px; }
  .pai-result { padding: 14px; }
  .pai-history { padding: 20px 16px 24px; }
  .pai-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pai-card__body { padding: 9px 10px 11px; }
  .pai-card__title { font-size: 13px; }
  .pai-thumb { width: 64px; height: 64px; }
  .pai-result__actions .btn { flex: 1 1 auto; }
  .pai-lb { padding: 10px; }
  .pai-lb__dialog { padding: 12px; border-radius: 18px; }
  .pai-promo { padding: 11px 14px; }
}
@media (prefers-reduced-motion: reduce) { .pai-scan, .pai-stages li.is-active::before { animation: none; } }
