/* экран «Покупатели»: список запросов, карточка запроса, подбор */
.by-kpi-red .v { color: var(--red); }
.by-flt { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.by-flt .tabs { max-width: 100%; }

/* список */
.by-list { overflow: hidden; }
.by-hd, .by-row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(200px, 1.6fr) minmax(170px, 1.1fr) 110px 100px 130px; gap: 16px; align-items: center; padding: 14px 20px; }
.by-hd { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--th); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; }
.by-row { border-bottom: 1px solid var(--line2); transition: background .14s var(--ease); color: inherit; text-decoration: none; position: relative; }
.by-row:last-child { border-bottom: 0; }
.by-row:hover { background: var(--th); }
.by-row:hover .by-cl b { color: var(--blue); }
.by-row::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue); opacity: 0; transition: .14s; }
.by-row:hover::before { opacity: 1; }
.by-row small { display: block; font-size: 12px; color: var(--mute); margin-top: 2px; line-height: 1.35; }
.by-row small em { font-style: normal; color: var(--gold); font-weight: 700; }
.by-cl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.by-cl b, .by-want b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .14s; }
.by-want { min-width: 0; }
.by-pay { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-size: 12px; min-width: 0; }
.by-pay > span:not(.tag) { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.by-pay svg.i { width: 13px; height: 13px; }
.by-red { color: var(--red); } .by-amber { color: var(--amber); }
.by-cnt b { font: 500 20px/1 var(--head); letter-spacing: -.03em; }
.by-st { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font: 600 12.5px var(--mono); color: var(--ink2); }
.by-st > span:not(.tag) { display: inline-flex; align-items: center; gap: 4px; }
.by-st svg.i { width: 14px; height: 14px; color: var(--mute); }

/* карточка запроса */
.by-auto { background: linear-gradient(135deg, #fbf4e7, #fff8ec); color: #5e4210; border: 1px solid #efdcb6; }
.by-auto svg.i { color: var(--gold); }
.by-in { font-weight: 700; color: var(--green); }
.by-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.by-sum > div { background: var(--paper); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.by-sum b { font: 500 20px/1 var(--head); letter-spacing: -.03em; }
.by-sum b.by-g { color: var(--green); }
.by-crit .card-h { flex-wrap: wrap; }
.by-crit .card-b { display: flex; flex-direction: column; gap: 16px; }
.by-fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.by-fr { display: flex; flex-direction: column; gap: 8px; }
.by-fl { font-size: 12px; font-weight: 700; color: var(--ink2); }
.by-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.by-chips .chip { height: 32px; font-size: 12.5px; }
.by-flag { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 8px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 13px; background: var(--paper); transition: border-color .14s; }
.by-flag:hover { border-color: var(--blue); }
.by-bank { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--ink2); padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.by-bank svg.i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--mute); }
.by-bank.red { background: var(--red-bg); color: #8f1f24; } .by-bank.red svg.i { color: var(--red); }
.by-bank.amber { background: var(--amber-bg); color: #6f4400; } .by-bank.amber svg.i { color: var(--amber); }

/* подходящие объекты */
.by-ms { display: flex; flex-direction: column; }
.by-mo { display: grid; grid-template-columns: 28px 128px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 20px; border-bottom: 1px solid var(--line2); transition: background .14s; }
.by-mo:last-child { border-bottom: 0; }
.by-mo.on { background: color-mix(in srgb, var(--blue-bg) 55%, transparent); }
.by-ck { position: relative; margin-top: 4px; cursor: pointer; }
.by-ck input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.by-ck span { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #c6cbdc; display: grid; place-items: center; background: var(--paper); transition: .14s; }
.by-ck span svg.i { width: 14px; height: 14px; color: #fff; opacity: 0; stroke-width: 3; }
.by-ck input:checked + span { background: var(--blue); border-color: var(--blue); }
.by-ck input:checked + span svg.i { opacity: 1; }
.by-ck input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-bg); }
.by-th { display: block; } .by-th .thumb { border-radius: 12px; } .by-th .thumb-t { font-size: 8.5px; padding: 3px 6px; left: 6px; top: 6px; } .by-th .thumb-x, .by-th .thumb-p { display: none; }
.by-mb { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.by-mt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.by-mt a:hover b { color: var(--blue); }
.by-mt .price { margin-left: auto; white-space: nowrap; }
.by-sc { display: flex; align-items: center; gap: 10px; }
.by-sc .bar { flex: 1; max-width: 220px; height: 6px; }
.by-sc b { font: 600 12px var(--mono); }
.by-why { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 600; }
.by-ok { display: inline-flex; align-items: center; gap: 3px; color: var(--green); }
.by-ok svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.by-no { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(125,132,160,.45); }
.by-tags { display: flex; flex-wrap: wrap; gap: 6px; } .by-tags:empty { display: none; }
.by-ma { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.by-ma .btn { justify-content: flex-start; }
.by-dis { display: flex; align-items: center; gap: 12px; }
.by-dis > svg.i { color: var(--mute); }
.by-ft { max-width: 240px; text-align: right; line-height: 1.3; }
.by-nf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.by-url { font: 500 12px var(--mono); color: var(--ink2); }

@media (max-width: 1240px) {
  .by-hd { display: none; }
  .by-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px 16px; }
  .by-cl { grid-column: 1; } .by-want { grid-column: 2; } .by-cnt { grid-column: 3; text-align: right; }
  .by-pay { grid-column: 1; flex-direction: row; flex-wrap: wrap; align-items: center; } .by-urg { grid-column: 2; } .by-st { grid-column: 3; justify-content: flex-end; }
}
@media (max-width: 760px) {
  .by-row { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 16px; }
  .by-cl { grid-column: 1; } .by-cnt { grid-column: 2; grid-row: 1; }
  .by-want { grid-column: 1 / -1; } .by-pay { grid-column: 1 / -1; }
  .by-urg { grid-column: 1; } .by-st { grid-column: 2; }
  .by-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .by-sum > div:nth-child(n+4) { display: none; }
  .by-fg, .by-nf { grid-template-columns: minmax(0, 1fr); }
  .by-mo { grid-template-columns: 26px 92px minmax(0, 1fr); padding: 14px 16px; gap: 12px; }
  .by-ma { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .by-ma .btn { flex: 1; justify-content: center; }
  .by-mt .price { margin-left: 0; }
  .by-ft { display: none; }
}
