/* Модуль trade: доли на кнопках, комиссия в листе, продажа, фильтры и поиск, закладки, портфель */

/* «Да 62%» и под ним «10 → 16» — сколько очков вернётся */
.side small.sw { flex-basis: 100%; font: 700 12px/1.1 var(--body); opacity: .85; white-space: nowrap; }
.side:disabled small.sw { display: none; }
.sheet-fee { display: flex; justify-content: space-between; gap: 10px; margin: -6px 0 14px; font-size: 13px; color: var(--ink-2); }
.sheet-fee:empty { display: none; }
.sheet-fee b { color: var(--ink); font-weight: 800; }

/* Продажа до итога в «Моих прогнозах» */
#bets li, .pf-list li { flex-wrap: wrap; }
.sell-b { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 800 13px var(--body); cursor: pointer; white-space: nowrap; }
.sell-b:hover { border-color: var(--ink); }
.sell-b.armed { background: var(--dark); border-color: var(--dark); color: var(--lime); }
.sell-wait, .sell-done { font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.st small { font-weight: 700; color: var(--ink-2); }

/* Фильтры «Для вас / Новые / Скоро / Все» и поиск под вкладками */
.mk-bar { display: flex; align-items: center; gap: 10px; margin: 4px 0 8px; flex-wrap: wrap; }
.mk-f { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.mk-f .pill small { font-weight: 700; color: var(--ink-2); margin-left: 4px; }
.mk-f .pill[aria-pressed="true"] small { color: var(--lime); }
.mk-s { position: relative; display: flex; align-items: center; flex: 0 1 280px; min-width: 200px; }
.mk-s svg { position: absolute; left: 12px; width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.mk-s input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 40px 0 38px; font: 600 15px var(--body);
  color: var(--ink); background: var(--surface); }
.mk-s input:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 1px; }
.mk-s input::-webkit-search-cancel-button { display: none; }
.mk-x { position: absolute; right: 2px; width: 40px; height: 40px; border: 0; background: none; font-size: 22px; color: var(--ink-2); cursor: pointer; border-radius: 10px; }
.mk-flat { margin-top: 8px; }
@media (max-width: 640px) { .mk-s { flex: 1 1 100%; } }

/* Звёздочка закладки */
.bm { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink-2); cursor: pointer; vertical-align: middle; }
.bm svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bm:hover { background: var(--line-2); color: var(--ink); }
.bm.on { color: #B45309; } .bm.on svg { fill: #F0B90B; stroke: #B45309; }
.hero.dark .bm { color: #C7CEC9; } .hero.dark .bm:hover { background: rgba(255,255,255,.08); color: #fff; }
.row-p .bm { margin-top: 2px; }
.hd-top .bm { margin-left: 2px; }
.bm-slot { display: inline-flex; align-self: start; }


/* Меню профиля: портфель */
.pm-list > .trade-mi { order: 4; gap: 10px; }
.trade-mi svg { width: 20px; height: 20px; flex: none; }

/* Портфель */
.pf-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 12px 0 18px; }
.pf-sum div { background: var(--surface); border: 1px solid var(--card-line); border-radius: 16px; padding: 14px; }
.pf-sum dt { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.pf-sum dd { margin: 4px 0 0; font: 800 22px/1.1 var(--body); font-variant-numeric: tabular-nums; }
.pf-tabs { display: flex; gap: 6px; margin: 8px 0 12px; }
.pf-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: 20px; border: 1px solid var(--card-line); overflow: hidden; }
.pf-list li { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.pf-list li + li { border-top: 1px solid var(--line-2); }
.pf-list .bq { flex: 1 1 220px; min-width: 0; }
.pf-list .bq a { color: var(--ink); text-decoration: none; font-weight: 700; }
.pf-list .bq a:hover { text-decoration: underline; }
.pf-list .bq small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.pf-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.pf-num small { display: block; font-weight: 700; color: var(--ink-2); font-size: 12px; }
.pf-list .empty { color: var(--ink-2); }
.pf-note { font-size: 13px; color: var(--ink-2); margin-top: 12px; }
/* Закладка на странице рынка — в правом верхнем углу героя, ценник шанса чуть ниже */
.hero.market { position: relative; }
.hero.market .bm-slot { position: absolute; top: 10px; right: 10px; }
.hero.market #tagbox { margin-top: 26px; }
