/* Подбор обмена на странице СуперТрейда (supertrade.html, frontend/st-match.js). 14.11 (подбор обмена), макет утверждён владельцем:
   слева «Отдаю», «Ищу» и «Доплата владельцу», справа «Можно получить». Палитра и шкала как у страницы скина (css/st-skin.css):
   чёрный, графит, #00E599, отступы 4/8/12/16/20, радиусы 6/10/14/18. Без размытия подложки (тормозит), анимации только transform и opacity.
   Светлые и зелёные кнопки с тёмным текстом #0A0A0A. Текст не обрезается многоточием: длинное переносится. */

body.stm-on #fltLayout,
body.stm-on #stSub,
body.stm-on #stMatchBtn { display: none !important; }

.stm {
  --k-p1: #111312;
  --k-p2: #161917;
  --k-p3: #1D211F;
  --k-ln: rgba(255, 255, 255, .07);
  --k-ln2: rgba(255, 255, 255, .12);
  --k-ln3: rgba(255, 255, 255, .2);
  --k-tx: #ECF1EE;
  --k-t2: #AEB7B2;
  --k-t3: #858F8A;
  --k-ac: #00E599;
  --k-ac2: #19F0A8;
  --k-acs: rgba(0, 229, 153, .1);
  --k-acl: rgba(0, 229, 153, .4);
  --k-amb: #F5B94F;
  --k-dn: #FF6B7A;
  --stm-top: calc(var(--ms-header-h, 77px) + 12px);
  display: block;
  min-width: 0;
  padding: 0 0 40px;
  color: var(--k-tx);
  font: 400 14px/1.45 Inter, system-ui, sans-serif;
}
.stm[hidden] { display: none; }
.stm *, .stm *::before, .stm *::after { box-sizing: border-box; }
.stm :focus-visible { outline: 2px solid var(--k-ac); outline-offset: 2px; }
.stm .num { font-variant-numeric: tabular-nums; }
.stm .price-value { white-space: nowrap; }
.stm-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- шапка ---------- */
.stm-head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 16px; }
.stm-head__t h2 { margin: 0; font-size: 22px; font-weight: 750; line-height: 1.2; color: #fff; }
.stm-head__t p { margin: 4px 0 0; color: var(--k-t2); font-size: 13.5px; max-width: 70ch; }
.stm-back { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 10px; margin-top: 1px; border-radius: 10px; border: 1px solid var(--k-ln2); background: var(--k-p1); color: var(--k-t2); font: 600 13.5px Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .15s ease, color .15s ease; }
.stm-back:hover { border-color: var(--k-ln3); color: #fff; }

/* ---------- раскладка ---------- */
.stm-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.stm-side { position: sticky; top: var(--stm-top); display: grid; gap: 12px; max-height: calc(100vh - var(--stm-top) - 12px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2A2F2C transparent; padding: 1px; margin: -1px; }
.stm-main { container: stmmain / inline-size; min-width: 0; display: grid; gap: 10px; align-content: start; }
@media (max-width: 1180px) { .stm-grid { grid-template-columns: 320px minmax(0, 1fr); gap: 16px; } }
@media (max-width: 860px) {
  .stm-grid { grid-template-columns: minmax(0, 1fr); }
  .stm-side { position: static; max-height: none; overflow: visible; }
}

/* ---------- блоки слева ---------- */
.stm-box { min-width: 0; padding: 14px 16px 16px; border-radius: 14px; border: 1px solid var(--k-ln); background: var(--k-p1); }
.stm-box__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.stm-box__h h3 { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.stm-give__sum { display: inline-flex; align-items: baseline; gap: 6px; color: var(--k-t3); font-size: 12.5px; }
.stm-give__sum b { color: #fff; font-size: 15px; font-weight: 700; }
.stm-give__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; }
.stm-gi { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 28px; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--k-ln); }
.stm-gi:first-child { padding-top: 0; }
.stm-gi__pic { display: grid; place-items: center; width: 46px; height: 36px; border-radius: 8px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--rc, #6b7280) 34%, transparent), transparent 72%), var(--k-p2); overflow: hidden; }
.stm-gi__pic img { width: 100%; height: 100%; object-fit: contain; }
.stm-gi__name { display: grid; min-width: 0; line-height: 1.25; }
.stm-gi__l1 { color: var(--k-t3); font-size: 11.5px; overflow-wrap: anywhere; }
.stm-gi__l2 { color: var(--k-tx); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.stm-gi__l2 i { font-style: normal; color: var(--k-t3); font-weight: 500; font-size: 11.5px; }
.stm-gi__p { font-size: 13px; font-weight: 650; color: #fff; }
.stm-gi__x { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--k-t3); cursor: pointer; }
.stm-gi__x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.stm-note { margin: 10px 0 0; color: var(--k-t3); font-size: 12.5px; line-height: 1.45; }
.stm-note:first-child { margin-top: 0; }
.stm-note.is-warn { color: var(--k-amb); }
.stm-note.is-bad { color: var(--k-dn); }

.stm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; background: none; font: 650 14px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease; }
.stm-btn:active:not(:disabled) { transform: scale(.98); }
.stm-btn:disabled { cursor: not-allowed; opacity: .55; }
.stm-btn svg { flex: none; }
.stm-btn--ac, .stm-btn--ac:visited, .stm-btn--ac * { color: #0A0A0A; }
.stm-btn--ac { background: var(--k-ac); border-color: var(--k-ac); box-shadow: 0 8px 22px rgba(0, 229, 153, .16); }
.stm-btn--ac:hover:not(:disabled) { background: var(--k-ac2); border-color: var(--k-ac2); }
.stm-btn--line { border-color: var(--k-ln2); color: var(--k-tx); background: var(--k-p2); }
.stm-btn--line:hover:not(:disabled) { border-color: var(--k-acl); color: #fff; }
.stm-btn--text { color: var(--k-t2); padding: 0 10px; }
.stm-btn--text:hover { color: #fff; }
.stm-btn--wide { width: 100%; }
.stm-link { display: inline; padding: 0; margin-left: 6px; border: 0; background: none; color: var(--k-ac); font: inherit; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.stm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--k-ln2); background: var(--k-p2); color: var(--k-t2); font: 550 13px Inter, system-ui, sans-serif; cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.stm-chip:hover { color: #fff; border-color: var(--k-ln3); }
.stm-chip[aria-pressed="true"] { border-color: var(--k-acl); background: var(--k-acs); color: var(--k-ac); }
.stm-chips--sm .stm-chip { min-height: 30px; padding: 0 10px; font-size: 12.5px; }

.stm-more { margin-top: 12px; border-top: 1px solid var(--k-ln); }
.stm-more summary { display: flex; align-items: center; gap: 8px; min-height: 40px; padding-top: 6px; color: var(--k-t2); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.stm-more summary::-webkit-details-marker { display: none; }
.stm-more summary:hover { color: #fff; }
.stm-more summary svg { margin-left: auto; transition: transform .2s ease; }
.stm-more[open] summary svg { transform: rotate(180deg); }
.stm-more__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--k-acs); color: var(--k-ac); font-size: 11.5px; font-weight: 700; }
.stm-more__n:empty { display: none; }
.stm-more__body { display: grid; gap: 12px; padding: 6px 0 2px; }
.stm-field { display: grid; gap: 6px; min-width: 0; }
.stm-field > span { color: var(--k-t3); font-size: 12px; font-weight: 600; }
.stm select, .stm input[type="search"], .stm input[type="text"] { width: 100%; min-width: 0; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--k-ln2); background: #0D0F0E; color: var(--k-tx); font: 500 13.5px Inter, system-ui, sans-serif; }
.stm select:disabled { color: var(--k-t3); }
.stm select:focus, .stm input:focus { outline: none; border-color: var(--k-acl); }

.stm-seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: #0D0F0E; border: 1px solid var(--k-ln2); }
.stm-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--k-t2); font: 600 12.5px Inter, system-ui, sans-serif; cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.stm-seg button:hover { color: #fff; }
.stm .stm-seg button[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #0A0A0A; }
.stm-seg--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- доплата ---------- */
.stm-pct { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.stm-range { position: relative; padding-top: 4px; }
.stm-range input[type="range"] { --fill: 33%; -webkit-appearance: none; appearance: none; width: 100%; height: 26px; margin: 0; background: none; cursor: pointer; }
.stm-range input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--k-ac) var(--fill), #2A2F2C var(--fill)); }
.stm-range input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--k-ac) var(--fill), #2A2F2C var(--fill)); }
.stm-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--k-ac); box-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
.stm-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--k-ac); }
.stm-range.is-out input[type="range"]::-webkit-slider-thumb { border-color: var(--k-amb); }
.stm-range.is-out input[type="range"]::-moz-range-thumb { border-color: var(--k-amb); }
.stm-marks { position: relative; height: 22px; margin: 2px 10px 0; }
.stm-marks button { position: absolute; top: 0; left: calc(var(--at) * 100%); transform: translateX(-50%); min-width: 34px; height: 22px; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: var(--k-t3); font: 600 12px Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; }
.stm-marks button:hover { color: #fff; }
.stm-marks button.is-on { color: var(--k-ac); }
.stm-pctin { display: inline-flex; align-items: center; gap: 0; height: 40px; padding: 0 10px 0 0; border-radius: 10px; border: 1px solid var(--k-ln2); background: #0D0F0E; }
.stm-pctin:focus-within { border-color: var(--k-acl); }
.stm .stm-pctin input { width: 58px; height: 38px; padding: 0 2px 0 10px; border: 0; background: none; text-align: right; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.stm-pctin span { color: var(--k-t2); font-weight: 700; }
.stm-price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.stm-price[hidden] { display: none; }
.stm-money { display: flex; align-items: center; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--k-ln2); background: #0D0F0E; min-width: 0; }
.stm-money:focus-within { border-color: var(--k-acl); }
.stm-money span { color: var(--k-t3); font-size: 12.5px; font-weight: 600; margin-right: 6px; }
.stm-money i { font-style: normal; color: var(--k-t2); font-weight: 700; margin-left: 2px; }
.stm .stm-money input { flex: 1; height: 38px; padding: 0; border: 0; background: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.stm-hint { display: grid; gap: 4px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--k-p2); border: 1px solid var(--k-ln); }
.stm-hint__t { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; color: var(--k-tx); }
.stm-hint__t svg { flex: none; margin-top: 2px; }
.stm-hint small { color: var(--k-t3); font-size: 12px; }
.stm-hint.is-ok { border-color: rgba(0, 229, 153, .28); }
.stm-hint.is-ok svg { color: var(--k-ac); }
.stm-hint.is-warn { border-color: rgba(245, 185, 79, .3); }
.stm-hint.is-warn svg { color: var(--k-amb); }
.stm-hint.is-bad { border-color: rgba(255, 107, 122, .32); }
.stm-hint.is-bad svg { color: var(--k-dn); }

/* ---------- «Можно получить» ---------- */
.stm-main__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.stm-main__h h3 { margin: 0; font-size: 17px; font-weight: 700; color: #fff; }
.stm-count { color: var(--k-t3); font-size: 13px; }
.stm-sort { margin-left: auto; }
.stm .stm-sort select { width: auto; height: 36px; padding-right: 28px; font-size: 13px; }
.stm-list { display: grid; gap: 8px; min-width: 0; }

.stm-row { display: grid; grid-template-columns: 26px 76px minmax(0, 1.15fr) minmax(0, 1fr) 112px auto; grid-template-areas: "ck pic name give sum go" ". . tip tip tip tip"; align-items: center; column-gap: 12px; row-gap: 6px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--k-ln); background: var(--k-p1); transition: border-color .15s ease, background-color .15s ease; }
.stm-row:hover { border-color: var(--k-ln2); }
.stm-row.is-checked { border-color: var(--k-acl); background: #111714; }
.stm-ck { grid-area: ck; position: relative; display: grid; place-items: center; width: 26px; height: 26px; cursor: pointer; }
.stm-ck input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.stm-ck span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--k-ln3); background: #0D0F0E; color: transparent; transition: background-color .12s ease, border-color .12s ease; }
.stm-ck input:checked + span { background: var(--k-ac); border-color: var(--k-ac); color: #0A0A0A; }
.stm-ck input:focus-visible + span { outline: 2px solid var(--k-ac); outline-offset: 2px; }
.stm-row__pic { grid-area: pic; display: grid; place-items: center; width: 76px; height: 57px; border-radius: 10px; background: radial-gradient(circle at 50% 72%, color-mix(in srgb, var(--rc, #6b7280) 38%, transparent), transparent 72%), var(--k-p2); overflow: hidden; }
.stm-row__pic img { width: 100%; height: 100%; object-fit: contain; }
.stm-row__name { grid-area: name; display: grid; gap: 4px; min-width: 0; }
.stm-row__t { display: grid; color: inherit; text-decoration: none; line-height: 1.25; }
.stm-row__t:hover .stm-row__l2 { color: var(--k-ac); }
.stm-row__l1 { color: var(--k-t3); font-size: 12px; overflow-wrap: anywhere; }
.stm-row__l2 { color: #fff; font-size: 14.5px; font-weight: 650; overflow-wrap: anywhere; transition: color .12s ease; }
.stm-row__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.stm-tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--k-t2); font-size: 11.5px; font-weight: 600; }
.stm-tag.is-ph, .stm-tag.is-rare { background: rgba(120, 160, 255, .12); color: #B9CBFF; }
.stm-tag.is-sent { background: var(--k-acs); color: var(--k-ac); }
.stm-own { display: inline-flex; align-items: center; gap: 4px; color: var(--k-t3); font-size: 12px; }
.stm-row__give { grid-area: give; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.stm-nx { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--k-acl); color: var(--k-ac); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.stm-gvs { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.stm-gv { display: grid; place-items: center; width: 32px; height: 24px; border-radius: 6px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--rc, #6b7280) 40%, transparent), transparent 75%), var(--k-p3); overflow: hidden; }
.stm-gv img { width: 100%; height: 100%; object-fit: contain; }
.stm-row__gn { flex-basis: 100%; color: var(--k-t2); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.stm-row__sum { grid-area: sum; display: grid; justify-items: end; gap: 3px; text-align: right; }
.stm-row__sum b { color: #fff; font-size: 15px; font-weight: 700; }
.stm-pv { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.stm-pv.is-ok { background: var(--k-acs); color: var(--k-ac); }
.stm-pv.is-short { background: rgba(245, 185, 79, .12); color: var(--k-amb); }
.stm-pv.is-over { background: rgba(255, 107, 122, .12); color: var(--k-dn); }
.stm-row__go { grid-area: go; min-width: 96px; }
.stm-row__go[aria-busy="true"] { opacity: .75; }
.stm-tip { grid-area: tip; margin: 0; padding: 7px 10px; border-radius: 8px; background: rgba(245, 185, 79, .07); color: #E9D3A6; font-size: 12.5px; line-height: 1.45; }
.stm-tip b { color: #fff; font-weight: 650; }

.stm-showmore { margin-top: 2px; }
.stm-near { display: grid; gap: 8px; margin-top: 6px; }
.stm-near__lead { margin: 4px 0 0; color: var(--k-t2); font-size: 13.5px; }
.stm-near h4 { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--k-t2); font-size: 13px; font-weight: 700; }
.stm-empty { margin: 0; padding: 40px 20px; text-align: center; color: var(--k-t2); }
.stm-start { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; border-radius: 14px; border: 1px dashed var(--k-ln2); text-align: center; color: var(--k-t2); }
.stm-start > svg { width: 28px; height: 28px; color: var(--k-ac); }
.stm-start b { color: #fff; font-size: 16px; }
.stm-start span { max-width: 46ch; font-size: 13.5px; }
.stm-start .stm-btn { margin-top: 6px; }

.stm-skel { height: 52px; margin-bottom: 8px; border-radius: 10px; background: var(--k-p2); animation: stm-pulse 1.3s ease-in-out infinite; }
.stm-skel--row { height: 78px; border-radius: 14px; }
@keyframes stm-pulse { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .stm-skel { animation: none; } }

/* «Нужен любой из отмеченных»: снизу над списком, пока что-то отмечено */
.stm-bar { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 14px; border: 1px solid var(--k-acl); background: #121816; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); }
.stm-bar[hidden] { display: none; }
.stm-bar__t { display: grid; gap: 2px; min-width: 0; flex: 1 1 260px; }
.stm-bar__t b { color: #fff; font-size: 14px; }
.stm-bar__t span { color: var(--k-t2); font-size: 12.5px; }
.stm-bar__a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Узкая колонка списка (планшет, ноутбук с узким окном) и телефон: строка в два этажа */
@container stmmain (max-width: 720px) {
  .stm-row { grid-template-columns: 26px 64px minmax(0, 1fr) auto; grid-template-areas: "ck pic name sum" "give give give give" "tip tip tip tip" "go go go go"; column-gap: 10px; row-gap: 10px; }
  .stm-row__pic { width: 64px; height: 48px; }
  .stm-row__give { padding-top: 10px; border-top: 1px solid var(--k-ln); }
  .stm-row__go { width: 100%; }
}

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  .stm-head { flex-direction: column; gap: 10px; }
  .stm-head__t h2 { font-size: 20px; }
  .stm-box { padding: 12px 14px 14px; }
  .stm-pct { gap: 10px; }
  .stm-main__h h3 { font-size: 16px; }
  .stm-row { padding: 10px; }
  .stm-bar { bottom: 8px; padding: 10px 12px; }
  .stm-bar__t span { font-size: 12px; }
  .stm-bar__a { width: 100%; }
  .stm-bar__a .stm-btn--ac { flex: 1; padding: 0 12px; }
  .stm-bar__a .stm-btn--ac svg { display: none; }
}
@media (max-width: 400px) {
  .stm-row { grid-template-columns: 24px 56px minmax(0, 1fr) auto; }
  .stm-row__pic { width: 56px; height: 42px; }
  .stm-seg button { padding: 0 9px; }
}

/* ---------- лист «Что готовы отдать» ---------- */
html.stm-lock { overflow: hidden; }
.stm-pick { position: fixed; inset: 0; z-index: 960; display: grid; place-items: center; padding: 24px; color: #ECF1EE; font: 400 14px/1.45 Inter, system-ui, sans-serif; }
.stm-pick[hidden] { display: none; }
.stm-pick__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); opacity: 0; transition: opacity .18s ease; }
.stm-pick__box { position: relative; display: flex; flex-direction: column; width: min(1040px, 100%); height: min(88vh, 940px); border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1); background: #111312; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); outline: none; opacity: 0; transform: translateY(10px) scale(.99); transition: opacity .18s ease, transform .18s ease; }
.stm-pick.is-on .stm-pick__scrim { opacity: 1; }
.stm-pick.is-on .stm-pick__box { opacity: 1; transform: none; }
.stm-pick__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 10px; }
.stm-pick__head h2 { margin: 0; font-size: 18px; font-weight: 750; color: #fff; }
.stm-pick__head p { margin: 3px 0 0; color: #AEB7B2; font-size: 13px; }
.stm-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .05); color: #AEB7B2; cursor: pointer; }
.stm-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.stm-pick__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 0 18px 12px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.stm-pick__q { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .12); background: #0D0F0E; color: #858F8A; }
.stm-pick__q:focus-within { border-color: rgba(0, 229, 153, .4); }
.stm-pick__q input { flex: 1; min-width: 0; height: 38px; border: 0; background: none; color: #ECF1EE; font: 500 14px Inter, system-ui, sans-serif; outline: none; }
.stm-pick .stm-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .12); background: #161917; color: #AEB7B2; font: 550 13px Inter, system-ui, sans-serif; cursor: pointer; }
.stm-pick .stm-chip[aria-pressed="true"] { border-color: rgba(0, 229, 153, .4); background: rgba(0, 229, 153, .1); color: #00E599; }
.stm-pick__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; }
.stm-pick__grid .skin-card { cursor: pointer; }
.stm-pick__grid .stm-empty { grid-column: 1 / -1; margin: 0; padding: 40px 20px; text-align: center; color: #AEB7B2; }
.stm-pick__skip { margin: 14px 0 0; color: #858F8A; font-size: 12.5px; }
.stm-pick__skip:empty { display: none; }
.stm-pick__foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .07); }
.stm-pick__sum { margin-right: auto; color: #AEB7B2; font-size: 13.5px; }
.stm-pick__sum b { color: #fff; }
.stm-pick .stm-btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: 650 14px Inter, system-ui, sans-serif; cursor: pointer; }
.stm-pick .stm-btn--ac { background: #00E599; border-color: #00E599; color: #0A0A0A; }
.stm-pick .stm-btn--ac:hover { background: #19F0A8; }
.stm-pick .stm-btn--text { background: none; color: #AEB7B2; }
.stm-pick .stm-btn--text:hover { color: #fff; }
.stm-pick .stm-btn[hidden] { display: none; }
@media (max-width: 760px) {
  .stm-pick { padding: 0; place-items: stretch; }
  /* во весь экран: высота от краёв окна, иначе подвал с «Готово» уезжал за низ экрана */
  .stm-pick__box { position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .stm-pick__head { padding: 14px 16px 8px; }
  .stm-pick__tools { padding: 0 16px 10px; }
  .stm-pick__scroll { padding: 12px 16px; }
  .stm-pick__foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); flex-wrap: wrap; }
  .stm-pick__sum { flex-basis: 100%; }
  .stm-pick__foot .stm-btn--ac { flex: 1; }
}

/* Вход в подбор: строка над каталогом (шапка страницы при боковом меню скрыта, css/nav.css) */
.st-match-entry { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 10px 10px 12px; border-radius: 12px; border: 1px solid rgba(0, 229, 153, .22); background: linear-gradient(90deg, rgba(0, 229, 153, .07), rgba(0, 229, 153, 0) 60%), #101312; }
.st-match-entry__ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(0, 229, 153, .12); color: #00E599; }
.st-match-entry__t { flex: 1; min-width: 0; margin: 0; display: grid; gap: 1px; line-height: 1.35; }
.st-match-entry__t b { color: #fff; font-size: 14px; font-weight: 700; }
.st-match-entry__t span { color: #AEB7B2; font-size: 13px; }
.st-match-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid #00E599; background: #00E599; color: #0A0A0A; font: 650 14px Inter, system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 22px rgba(0, 229, 153, .16); transition: background-color .15s ease, transform .12s ease; }
.st-match-btn * { color: #0A0A0A; }
.st-match-btn:hover { background: #19F0A8; }
.st-match-btn:active { transform: scale(.98); }
/* телефон: одна строка, пояснение остаётся в самом подборе; узкий экран переносит кнопку вниз */
@media (max-width: 600px) {
  .st-match-entry { flex-wrap: wrap; gap: 10px; padding: 8px 8px 8px 10px; }
  .st-match-entry__ic { width: 32px; height: 32px; }
  .st-match-entry__t span { display: none; }
  .st-match-btn { height: 38px; padding: 0 14px; font-size: 13.5px; }
}
