/* Панель торгового бота — минималистичное оформление.
 *
 * Структуру держат пробел и одна волосяная линия, а не рамки и подложки.
 * Цвет несёт смысл только на прибыли и убытке, остальное нейтральное.
 * Палитра берётся из темы клиента Telegram, поэтому панель одинаково уместна
 * и в светлой, и в тёмной.
 */

:root {
  --bg:      var(--tg-theme-bg-color, #17212b);
  --surface: var(--tg-theme-secondary-bg-color, #1d2733);
  --text:    var(--tg-theme-text-color, #e9eef4);
  --muted:   var(--tg-theme-hint-color, #7a8794);
  --accent:  var(--tg-theme-button-color, #4b8ac9);
  --on-accent: var(--tg-theme-button-text-color, #fff);

  --pos: #3fbf7f;
  --neg: #e0574a;
  --warn: #d9a33a;

  --line: rgba(128, 138, 148, .17);
  --sunk: rgba(128, 138, 148, .09);

  /* Радиусы разные по размеру элемента: одинаковое скругление везде
     читается как шаблон, а не как продуманный интерфейс. */
  --r-xs: 5px;
  --r-sm: 8px;
  --r-md: 11px;
  --r-lg: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", sans-serif;
  padding-bottom: calc(30px + env(safe-area-inset-bottom));
  overscroll-behavior-y: contain;
}

.hidden { display: none !important; }

/* цифры не должны плясать при обновлении раз в 20 секунд */
.hero-value, .strip b, .acc-bal, .acc-stats dd, .pill,
.readout b, .lim-num, .badge { font-variant-numeric: tabular-nums; }

/* ---------- занавес ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  padding: 32px; text-align: center; background: var(--bg);
}
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.curtain-mark { font-size: 30px; font-weight: 300; color: var(--neg); }
.curtain-text { font-size: 15px; }
.curtain-hint { color: var(--muted); font-size: 13px; max-width: 260px; }

/* ---------- шапка ---------- */
.app-bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 18px 11px; background: var(--bg);
}
.app-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.app-sub {
  display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 12px; margin-top: 3px;
}
.icon-btn {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.icon-btn:active { background: var(--sunk); color: var(--text); }
.icon-btn.busy svg { animation: spin .9s linear infinite; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.ok { background: var(--pos); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--neg); }

/* ---------- вкладки: только подчёркивание ---------- */
.tabs {
  position: sticky; top: 60px; z-index: 19;
  display: flex; gap: 0; padding: 0 12px;
  background: var(--bg); box-shadow: inset 0 -1px 0 var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; border: 0; background: transparent; cursor: pointer;
  padding: 10px 14px 13px; font-size: 14px; font-weight: 400;
  color: var(--muted); white-space: nowrap; transition: color .15s;
}
.tab.is-on { color: var(--text); font-weight: 500; }
.tab-ink {
  position: absolute; bottom: 0; height: 1.5px;
  background: var(--text); transition: left .22s cubic-bezier(.4,0,.2,1),
                                       width .22s cubic-bezier(.4,0,.2,1);
}

.page { padding: 4px 18px 8px; }

/* ---------- секции вместо карточек ---------- */
.card {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.card:last-child { border-bottom: 0; }
#accounts .card:first-child { padding-top: 20px; }
.card-title {
  margin: 0; font-size: 12px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card > .row-between:first-child, .card > .card-title:first-child { margin-bottom: 14px; }

.eyebrow {
  color: var(--muted); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
}
.badge { color: var(--muted); font-size: 12px; }
.note { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- сводка ---------- */
.hero { padding-top: 10px; }
.hero-row { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; }
.hero-value { font-size: 34px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.hero-value small { font-size: 16px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.hero-sub { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* без подложки: цвет и так говорит всё, что нужно */
.pill { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.pill em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px; }
.pill.pos { color: var(--pos); }
.pill.neg { color: var(--neg); }

.strip { display: flex; margin-top: 20px; }
.strip > div { flex: 1; }
.strip b { display: block; font-size: 16px; font-weight: 500; }
.strip i { display: block; font-style: normal; color: var(--muted); font-size: 11px; margin-top: 3px; }

/* ---------- переключатели-сегменты: текст, без лотка ---------- */
.seg { display: inline-flex; gap: 16px; }
.seg-block { display: flex; gap: 18px; margin: 14px 0 6px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); padding: 2px 0;
  font-size: 13px; cursor: pointer; white-space: nowrap;
  border-bottom: 1.5px solid transparent;
}
.seg button.is-on { color: var(--text); border-bottom-color: var(--text); }

/* ---------- график ---------- */
#chart { width: 100%; height: 150px; display: block; touch-action: pan-y; }
.readout {
  display: flex; flex-wrap: wrap; gap: 3px 14px; align-items: baseline;
  min-height: 18px; margin-bottom: 4px; font-size: 12px; color: var(--muted);
}
.readout b { color: var(--text); font-weight: 500; }
.readout span { display: inline-flex; align-items: center; gap: 5px; }
.readout i { width: 7px; height: 7px; border-radius: 50%; flex: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.chips-tight { margin-top: 12px; }
.chip {
  border: 0; background: transparent; color: var(--muted);
  padding: 3px 0; font-size: 13px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  border-bottom: 1.5px solid transparent;
}
.chip.is-on { color: var(--text); border-bottom-color: var(--text); }
.chip i { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---------- аккаунт ---------- */
.acc-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.acc-name { font-size: 15px; font-weight: 600; }
.acc-state { color: var(--muted); font-size: 12px; }
/* название скина и под ним сама картинка, прижатые вправо */
.acc-skin { margin-left: auto; text-align: right; }
.acc-skin-name { display: block; color: var(--muted); font-size: 12px; }
.acc-skin img {
  display: block; margin: 6px 0 0 auto;
  width: 118px; height: 46px; object-fit: contain; object-position: right center;
}
.acc-top .dot { margin-top: 5px; }   /* только здесь: строка теперь выровнена по верху */

.acc-money { display: flex; align-items: baseline; gap: 10px; }
.acc-bal { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.acc-bal small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }

.acc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px 8px; margin: 16px 0 0;
}
.acc-stats > div { min-width: 0; }
.acc-stats dt { color: var(--muted); font-size: 11px; margin-bottom: 3px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-stats dd { margin: 0; font-size: 14px; font-weight: 500; }

.lim { margin-top: 16px; }
.lim-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.bar { height: 2px; background: var(--sunk); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; background: var(--muted); transition: width .35s ease; }
.bar > i.warn { background: var(--warn); }
.bar > i.bad { background: var(--neg); }

/* ---------- форма ---------- */
.field { margin-top: 22px; }
.field:first-of-type { margin-top: 16px; }
.field-head {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px;
  font-size: 13px; font-weight: 500;
}
.field-head em { font-style: normal; color: var(--muted); font-weight: 400; font-size: 12px; }
/* номер шага без кружка: цифра сама по себе достаточно заметна */
.step { color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }

.row { display: flex; align-items: center; gap: 10px; }
.tilde { color: var(--muted); }
.input {
  flex: 1; min-width: 0; -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--text); border-radius: 0;
  padding: 9px 2px; font-size: 15px; outline: none; transition: border-color .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus { border-bottom-color: var(--accent); }
.input-block { width: 100%; display: block; }

.opt-btn {
  border: 0; background: transparent; color: var(--muted);
  padding: 9px 2px; font-size: 13px; cursor: pointer; white-space: nowrap;
  border-bottom: 1.5px solid transparent;
}
.opt-btn.is-on { color: var(--text); border-bottom-color: var(--text); }
.opt-wide { width: 100%; margin-top: 12px; text-align: left; }

.skin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; }
.skin-card {
  background: transparent; border: 0; border-radius: var(--r-sm);
  padding: 8px 4px 7px; text-align: center; cursor: pointer;
  opacity: .55; transition: opacity .15s, background .15s;
}
.skin-card.is-on { opacity: 1; background: var(--sunk); }
.skin-card img { width: 100%; height: 40px; object-fit: contain; display: block; }
.skin-card .ph { height: 40px; display: flex; align-items: center; justify-content: center;
                 color: var(--muted); font-size: 10px; }
.skin-card span { display: block; font-size: 10px; line-height: 1.3; margin-top: 6px;
                  word-break: break-word; }
.skin-card em { display: block; font-style: normal; font-size: 9px; color: var(--pos); margin-top: 2px; }

/* выбор наклейки */
.picker {
  width: 100%; display: flex; align-items: center; gap: 11px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent;
  color: var(--text); border-radius: 0; padding: 7px 2px; cursor: pointer;
  text-align: left; min-height: 46px;
}
.picker img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.picker-ph { color: var(--muted); font-size: 15px; }
.picker-name { display: block; font-size: 15px; }
.picker-id { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.picker .clear {
  margin-left: auto; flex: none; color: var(--muted); font-size: 16px;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
}

.recap {
  margin-top: 22px; padding-left: 12px; border-left: 1.5px solid var(--line);
  font-size: 13px; color: var(--muted); line-height: 1.7;
}
.recap b { color: var(--text); font-weight: 500; }
.cta {
  width: 100%; margin-top: 18px; border: 0; border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent);
  padding: 14px; font-size: 15px; font-weight: 500; cursor: pointer;
}
.cta:disabled { opacity: .3; }
.cta:active:not(:disabled) { opacity: .8; }

/* ---------- список слежек ---------- */
.watch { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.watch + .watch { border-top: 1px solid var(--line); }
.watch > img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.watch-body { flex: 1; min-width: 0; }
.watch-t { font-size: 14px; }
.watch-s { color: var(--muted); font-size: 12px; margin-top: 3px; }
.watch-s b { color: var(--text); font-weight: 500; }
.del {
  flex: none; width: 30px; height: 30px; border: 0; background: transparent;
  color: var(--muted); font-size: 15px; cursor: pointer;
}
.del:active { color: var(--neg); }
.empty { color: var(--muted); font-size: 13px; padding: 14px 0; }

/* ---------- сетка наклеек ---------- */
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; margin-top: 16px; }
.st-grid-sheet { margin-top: 14px; overflow-y: auto; -webkit-overflow-scrolling: touch;
                 flex: 1; min-height: 0; align-content: start; padding-bottom: 6px; }
.st {
  background: transparent; border: 0; border-radius: var(--r-sm);
  padding: 7px 3px 6px; text-align: center; cursor: pointer;
  opacity: .8; transition: opacity .15s, background .15s;
}
.st:active, .st.is-on { opacity: 1; background: var(--sunk); }
.st img { width: 100%; height: 42px; object-fit: contain; display: block; }
.st .ph { height: 42px; display: flex; align-items: center; justify-content: center;
          color: var(--muted); font-size: 13px; }
.st span { display: block; font-size: 10px; line-height: 1.3; margin-top: 5px;
           word-break: break-word; }
.st small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 1px; }

/* ---------- шторка ---------- */
.backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45);
            animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  display: flex; flex-direction: column;
  max-height: 86vh; padding: 8px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 18px 18px 0 0;
  animation: rise .24s cubic-bezier(.32,.72,0,1);
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet-grab { width: 32px; height: 3px; border-radius: 2px; background: var(--line);
              margin: 0 auto 12px; }
.sheet-head { margin-bottom: 12px; }
.sheet-foot { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px; }
.ghost {
  width: 100%; border: 0; background: transparent; color: var(--text);
  padding: 12px; font-size: 14px; cursor: pointer;
}
.ghost:active { color: var(--muted); }

/* ---------- тумблеры и лимиты ---------- */
.sw-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 0;
}
.sw-row + .sw-row { border-top: 1px solid var(--line); }
.sw-title { font-size: 14.5px; }
.sw-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.sw { position: relative; width: 44px; height: 26px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; border-radius: 26px;
           background: var(--sunk); transition: background .2s; cursor: pointer; }
.sw span::before {
  content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: var(--muted); border-radius: 50%; transition: transform .2s, background .2s;
}
.sw input:checked + span { background: color-mix(in srgb, var(--pos) 28%, transparent); }
.sw input:checked + span::before { transform: translateX(18px); background: var(--pos); }

.lim-slider { width: 100%; margin: 16px 0 8px; accent-color: var(--accent);
              height: 20px; background: transparent; }
.lim-row { display: flex; align-items: baseline; gap: 8px; }
.lim-num { text-align: left; }
.lim-unit { color: var(--muted); font-size: 13px; }
.lim-acts { display: flex; gap: 20px; margin-top: 16px; }
.lim-acts button {
  border: 0; background: transparent; color: var(--muted);
  padding: 4px 0; font-size: 13px; cursor: pointer;
}
.lim-acts .apply { color: var(--accent); font-weight: 500; }
.lim-acts .danger { color: var(--neg); }
.lim-acts button:active { opacity: .6; }

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 60; max-width: 84vw; text-align: center;
  background: rgba(16, 20, 26, .95); color: #fff;
  padding: 11px 18px; border-radius: var(--r-md); font-size: 13.5px;
  animation: pop .2s ease;
}
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }
.toast.bad { background: rgba(150, 44, 36, .96); }

/* ---------- найденный лот ---------- */
.lot { display: flex; gap: 12px; padding: 16px 0; }
.lot + .lot { border-top: 1px solid var(--line); }
.lot-skin { width: 68px; height: 48px; object-fit: contain; flex: none; }
.lot-body { flex: 1; min-width: 0; }
.lot-head { display: flex; align-items: baseline; gap: 8px; }
.lot-title { font-size: 14.5px; font-weight: 600; }
.lot-price { margin-left: auto; font-size: 15px; font-weight: 600;
             font-variant-numeric: tabular-nums; white-space: nowrap; }
.lot-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.lot-sub b { color: var(--text); font-weight: 600; }
.lot-seller { display: flex; align-items: center; gap: 7px; margin-top: 8px;
              font-size: 12.5px; }
.lot-seller img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: none; }
.none { color: var(--muted); }
.lot-stick { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.5; }
.lot-stick b { color: var(--text); font-weight: 500; }
.lot-when { color: var(--muted); font-size: 11.5px; margin-top: 6px; line-height: 1.5; }
.lot-new { color: var(--pos); }
.buy {
  width: 100%; margin-top: 11px; border: 0; border-radius: var(--r-md);
  background: var(--accent); color: var(--on-accent);
  padding: 11px; font-size: 14px; font-weight: 500; cursor: pointer;
}
.buy:disabled { opacity: .4; }
.buy:active:not(:disabled) { opacity: .8; }
.buy.done { background: transparent; color: var(--pos);
            box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- итог покупки ---------- */
.bought { text-align: center; padding: 6px 0 4px; }
.bought-mark {
  width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--pos);
  background: color-mix(in srgb, var(--pos) 16%, transparent);
}
.bought-mark.bad { color: var(--neg);
                   background: color-mix(in srgb, var(--neg) 16%, transparent); }
.bought-title { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.bought-rows { margin: 0; text-align: left; }
.bought-rows > div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 10px 0;
}
.bought-rows > div + div { border-top: 1px solid var(--line); }
.bought-rows dt { color: var(--muted); font-size: 13px; }
.bought-rows dd { margin: 0; font-size: 14px; font-weight: 500; text-align: right;
                  font-variant-numeric: tabular-nums; word-break: break-word; }
.bought-rows dd { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.buy-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }

/* ---------- история покупок ---------- */
.head-tools { display: flex; align-items: center; gap: 16px; }
.linkbtn {
  border: 0; background: transparent; color: var(--muted);
  font-size: 12.5px; padding: 2px 0; cursor: pointer;
}
.linkbtn:active { color: var(--text); }

.buyrow { display: flex; align-items: center; gap: 11px; padding: 12px 0; }
.buyrow + .buyrow { border-top: 1px solid var(--line); }
.buyrow > img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.buyrow .noface {
  width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--sunk);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px;
}
.buyrow-body { flex: 1; min-width: 0; }
.buyrow-t { font-size: 13.5px; }
.buyrow-t b { font-weight: 600; }
.buyrow-s { color: var(--muted); font-size: 11.5px; margin-top: 3px; }
.buyrow-price { margin-left: auto; font-size: 14px; font-weight: 600;
                font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- выбор плательщика ---------- */
.payrow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 0; border: 0; background: transparent; color: var(--text);
  text-align: left; cursor: pointer;
}
.payrow + .payrow { border-top: 1px solid var(--line); }
.payrow:disabled { opacity: .38; cursor: default; }
.payrow-body { flex: 1; min-width: 0; }
.payrow-t { font-size: 15px; font-weight: 600; }
.payrow-s { color: var(--muted); font-size: 12px; margin-top: 3px; }
.payrow-bal { margin-left: auto; font-size: 15px; font-weight: 600;
              font-variant-numeric: tabular-nums; white-space: nowrap; }
.payrow-bal.no { color: var(--neg); }

/* ---------- наклейки картинками ---------- */
.stick-row { display: flex; gap: 10px; margin-top: 8px; align-items: flex-start; }
.stick-row.wrap { flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.stick-row.right { justify-content: flex-end; margin-top: 0; }
.stick { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stick img { width: 28px; height: 28px; object-fit: contain; display: block; }
.stick i { font-style: normal; color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.stick.big { flex-direction: row; align-items: center; gap: 8px; }
.stick.big img { width: 40px; height: 40px; }
.stick.big i { font-size: 12px; color: var(--text); }

/* картинка скина в карточке кликабельна — открывает разворот */
.lot-skin { cursor: pointer; }

/* ---------- разворот лота ---------- */
#zoom-img {
  width: 100%; max-height: 46vh; object-fit: contain; display: block;
  border-radius: var(--r-md); background: var(--bg);
}
#zoom-sheet .sheet-head { align-items: flex-start; }
#zoom-sub { margin-top: 3px; }
#zoom-sub b { color: var(--text); font-weight: 600; }
.stick-row.tiny { gap: 5px; margin-top: 6px; }
.stick-row.tiny .stick img { width: 20px; height: 20px; }
.buyrow-ok { color: var(--pos); font-size: 12.5px; font-weight: 500; margin-top: 4px;
             font-variant-numeric: tabular-nums; }

/* ---------- профили аккаунтов ---------- */
.prof { padding: 14px 0; }
.prof + .prof { border-top: 1px solid var(--line); }
.prof-top { display: flex; align-items: center; gap: 8px; }
.prof-name { font-size: 15px; font-weight: 600; }
.prof-src { color: var(--muted); font-size: 11px; }
.prof-bal { margin-left: auto; font-size: 14px; font-weight: 600;
            font-variant-numeric: tabular-nums; }
.prof-skin { color: var(--muted); font-size: 12px; margin-top: 3px; }
.tokrow { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tokrow code {
  flex: 1; min-width: 0; font-size: 12px; color: var(--text);
  background: var(--sunk); border-radius: var(--r-sm); padding: 7px 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.prof-acts { display: flex; gap: 18px; margin-top: 10px; }
.prof-acts button {
  border: 0; background: transparent; color: var(--muted);
  padding: 3px 0; font-size: 12.5px; cursor: pointer;
}
.prof-acts button:active { color: var(--text); }
.prof-acts .main { color: var(--accent); font-weight: 500; }

.setgrid { display: grid; gap: 12px; }
.setrow label { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.setrow em { font-style: normal; opacity: .75; }
.sheet-body { overflow-y: auto; flex: 1; min-height: 0; }
/* сетка скинов внутри настроек профиля — компактнее, чем в форме слежки:
   она там одна из девяти строк, а не главный элемент экрана */
.setrow .skin-grid { gap: 6px; margin-top: 4px; }
.setrow .skin-card { padding: 6px 3px 5px; }
.setrow .skin-card img, .setrow .skin-card .ph { height: 32px; }
.setrow .skin-card span { font-size: 9px; margin-top: 3px; }

/* Суммы в валютах: вторичная строка под ценой. Цифры табличные — иначе
   столбик сумм в списке лотов «пляшет» по ширине. */
.fiat {
  color: var(--muted); font-size: 11.5px; margin-top: 3px;
  font-variant-numeric: tabular-nums; letter-spacing: .01em;
}
.fiat.inline { display: inline; margin: 0 0 0 6px; }
.hero-fiat { color: var(--muted); font-size: 12px; margin-top: 3px; }
.acc-money + .fiat { margin-top: 4px; }

/* Итог по своим лотам */
.msum {
  font-size: 13px; color: var(--muted); padding: 2px 0 10px;
  border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.msum b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Названия скинов длинные — чипсы фильтра переносим, а не режем. */
#m-who { flex-wrap: wrap; row-gap: 8px; gap: 14px; }
