:root {
  --bg: #0b0c11;
  --card: #14161d;
  --card2: #1b1e27;
  --card3: #232733;
  --line: #242833;
  --text: #eef0f6;
  --muted: #868b9c;
  --acc: #7b5cff;
  --acc2: #a690ff;
  --accbg: rgba(123, 92, 255, .14);
  --ok: #33c47a;
  --bad: #ff5b6b;
  --warn: #f5b942;
  --r: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14.5px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; transition: transform .12s var(--ease), background .15s, border-color .15s, color .15s, opacity .15s; }
button:active:not(:disabled) { transform: scale(.97); }
input { font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; width: 100%; outline: none; transition: border-color .15s; }
input:focus { border-color: var(--acc); }
img { display: block; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; }

#app { min-height: 100vh; padding-bottom: 78px; }
.top { position: sticky; top: 0; z-index: 5; background: rgba(11, 12, 17, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .1em; font-size: 14px; }
.logo { width: 18px; height: 18px; border-radius: 6px; background: conic-gradient(from 210deg, #7b5cff, #c86bff, #4cc3ff, #7b5cff); animation: spin 8s linear infinite; }
.coll { display: flex; align-items: center; gap: 4px; background: var(--card2); border: 1px solid var(--line); padding: 6px 8px 6px 12px; border-radius: 999px; font-weight: 600; font-size: 13.5px; max-width: 62%; }
.coll span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coll svg { width: 16px; height: 16px; color: var(--muted); }

main { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
main > * { animation: rise .28s var(--ease) both; }
main > *:nth-child(2) { animation-delay: .03s; } main > *:nth-child(3) { animation-delay: .06s; } main > *:nth-child(4) { animation-delay: .09s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.card h3 { margin: 0 0 8px; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card h3 small { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; }

.frow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.frow:first-of-type { border-top: 0; }
.card > .frow:first-child, .card > h3 + .frow { border-top: 0; }
.frow .lbl { flex: 1; min-width: 0; }
.frow .lbl b { display: block; font-weight: 600; }
.frow .lbl span { color: var(--muted); font-size: 12.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .go { color: var(--muted); font-size: 18px; }
.frow input { max-width: 120px; text-align: right; }
.thumbs { display: flex; gap: 3px; align-items: center; }
.thumbs img, .thumbs .sw { width: 24px; height: 24px; border-radius: 7px; object-fit: contain; background: var(--card2); }
.thumbs .sw { border-radius: 50%; }
.thumbs .more { font-size: 11.5px; color: var(--muted); margin-left: 2px; }

.btns { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 8px; font-weight: 600; text-align: center; }
.btn.acc { background: linear-gradient(135deg, #7b5cff, #9a6bff); border-color: transparent; color: #fff; box-shadow: 0 6px 20px rgba(123, 92, 255, .25); }
.btn.on { background: var(--accbg); border-color: var(--acc); color: var(--acc2); }
.btn.ghost { background: transparent; }
.btn.bad { color: var(--bad); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; }
.btn.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 17px; height: 17px; }

.sw-toggle { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--card3); flex: none; transition: background .2s; }
.sw-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .22s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.sw-toggle.on { background: var(--acc); }
.sw-toggle.on::after { transform: translateX(18px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--accbg); border-color: var(--acc); color: var(--acc2); }
.chip:disabled { opacity: .4; }
.chip .mk { height: 16px; padding: 0 5px; font-size: 10px; }
.chips.src { align-items: center; }
.chips.src .lbl { color: var(--muted); font-size: 12.5px; margin-right: 2px; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 100px; text-align: center; }
.stepper .btn { padding: 8px 10px; min-width: 50px; }
.sub-buy { padding: 8px 0 2px; display: flex; flex-direction: column; gap: 10px; }

/* фоны и цены по моделям */
.rules { margin-top: 2px; border-top: 1px solid var(--line); padding-top: 8px; }
.rules .hint { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }
.rule { display: flex; align-items: center; gap: 10px; padding: 7px 0; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.rule:last-child { border-bottom: 0; }
.rule > img { width: 36px; height: 36px; border-radius: 9px; background: var(--card2); object-fit: contain; flex: none; }
.rule .nm { flex: 1; min-width: 0; }
.rule .nm b { display: block; font-size: 13.5px; }
.rule .nm .thumbs .sw { width: 16px; height: 16px; }
.rule .nm span.any { font-size: 12px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--card2); color: var(--muted); white-space: nowrap; }
.pill.on { background: rgba(51, 196, 122, .14); color: var(--ok); }

/* результаты */
.seg { display: flex; background: var(--card2); border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { flex: 1; padding: 7px 6px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--card3); color: var(--text); }
.res-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.res-head > b { font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; margin-top: 10px; }
.stat { background: var(--card2); border-radius: 11px; padding: 8px 10px; }
.stat b { display: block; font-size: 15px; }
.stat span { color: var(--muted); font-size: 11.5px; display: flex; align-items: center; gap: 4px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
@media (min-width: 480px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lot { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-align: left; display: flex; flex-direction: column; animation: rise .25s var(--ease) both; }
.lot .ph { position: relative; aspect-ratio: 1; background: var(--card2); }
.lot .ph img { width: 100%; height: 100%; object-fit: cover; }
.lot .ph .mk { position: absolute; top: 5px; left: 5px; }
.lot .meta { padding: 5px 7px 7px; min-width: 0; }
.lot .meta .t { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.lot .meta .t b { font-size: 12px; color: var(--muted); font-weight: 600; }
.lot .meta .t em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--acc2); white-space: nowrap; }
.lot .meta .a { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mk, .stat .mk, .tile4 .mk, .row .mk { display: inline-flex !important; color: #fff !important; font-size: 9.5px !important; align-items: center; justify-content: center; height: 17px; padding: 0 5px; border-radius: 5px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: #fff; }
.mk.Portals { background: #5b6cff; }
.mk.MRKT { background: #1fae78; }
.mk.Telegram { background: #2aa3e0; }
.mk.Tonnel { background: #f0853a; }

.rows .row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.rows .row:first-child { border-top: 0; }
.rows .row > img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--card2); flex: none; }
.rows .row > img.mdl { object-fit: contain; }
.rows .row .nm { flex: 1; min-width: 0; }
.rows .row .nm b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .row .nm span { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .row .pr { text-align: right; white-space: nowrap; }
.rows .row .pr b { display: block; font-size: 14px; }
.rows .row .pr span { font-size: 11.5px; color: var(--muted); }
.by { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.by i { font-style: normal; font-size: 11px; color: var(--muted); background: var(--card2); border-radius: 6px; padding: 1px 6px; display: inline-flex; gap: 4px; align-items: center; }
.by i.best { color: var(--ok); }
.by i u { text-decoration: none; width: 6px; height: 6px; border-radius: 50%; }

.skel { background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; border-radius: 12px; aspect-ratio: .82; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* подписки */
.sub-card .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sub-card .hd b { font-size: 15px; }
.sub-card .line { font-size: 13px; padding: 2px 0; color: var(--muted); }
.sub-card .line em { color: var(--text); font-style: normal; }
.sub-card .acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.sub-card.paused { opacity: .55; }
.sub-card .thumbs img { width: 28px; height: 28px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accbg); color: var(--acc2); font-size: 11.5px; font-weight: 700; }
.badge.ok { background: rgba(51, 196, 122, .15); color: var(--ok); }
.badge.bad { background: rgba(255, 91, 107, .15); color: var(--bad); }
.editing { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(123, 92, 255, .12); }

/* профиль */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(123, 92, 255, .32), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(76, 195, 255, .18), transparent 55%), var(--card); }
.ava { position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; padding: 2px; background: conic-gradient(from 0deg, #7b5cff, #c86bff, #4cc3ff, #7b5cff); animation: spin 6s linear infinite; }
.ava > * { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--card2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; animation: spin 6s linear infinite reverse; }
.hero .nm b { display: block; font-size: 17px; }
.hero .nm span { color: var(--muted); font-size: 13px; }
.hero .chips { margin-top: 6px; }
.hero .chip { padding: 3px 9px; font-size: 11.5px; background: rgba(255, 255, 255, .05); }
.tiles4 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile4 { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; }
.tile4 span { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.tile4 b { display: block; font-size: 18px; margin-top: 3px; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: 0; }
.mrow .lbl { flex: 1; min-width: 0; }
.mrow .lbl b { display: flex; align-items: center; gap: 7px; }
.mrow .lbl span { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.pulse.ok { background: var(--ok); box-shadow: 0 0 0 0 rgba(51, 196, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(51, 196, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(51, 196, 122, 0); } }

/* нижнее меню */
.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 6; background: rgba(16, 18, 24, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs-in { display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px 8px; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabs button.on { color: var(--acc2); }
.tabs button.on svg { filter: drop-shadow(0 0 6px rgba(166, 144, 255, .55)); }

/* лист снизу */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .22s; }
.sheet-box { position: absolute; left: 0; right: 0; bottom: 0; top: 6vh; max-width: 640px; margin: 0 auto; background: var(--bg); border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0;
  display: flex; flex-direction: column; overflow: hidden; transform: translateY(100%); transition: transform .28s var(--ease); }
.sheet-box.short { top: auto; max-height: 90vh; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet.open .sheet-box { transform: none; }
.sh-head { padding: 12px 16px 10px; display: flex; flex-direction: column; gap: 9px; border-bottom: 1px solid var(--line); }
.sh-head::before { content: ""; width: 36px; height: 4px; border-radius: 4px; background: var(--card3); align-self: center; margin-top: -4px; }
.sh-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sh-title b { font-size: 16px; }
.sh-title .x { color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 6px; }
.sh-title .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sh-title .who img { width: 44px; height: 44px; border-radius: 11px; background: var(--card2); object-fit: contain; }
.sh-body { flex: 1; overflow-y: auto; padding: 12px 16px 18px; -webkit-overflow-scrolling: touch; }
.sh-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.sh-foot .cnt { flex: 1; color: var(--muted); font-size: 13px; }
.grp { margin-bottom: 14px; }
.grp-h { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 7px; }
.grp-h b { font-size: 13.5px; }
.grp-h b small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.grp-h button { color: var(--acc2); font-size: 12.5px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 480px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { position: relative; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.tile img, .tile .sw { width: 48px; height: 48px; object-fit: contain; border-radius: 9px; }
.tile .sw { border-radius: 50%; width: 40px; height: 40px; margin: 4px 0; }
.tile img.sym { filter: invert(1) brightness(1.4); opacity: .9; width: 36px; height: 36px; margin: 6px 0; }
.tile span { font-size: 11px; font-weight: 600; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile small { font-size: 10px; color: var(--muted); min-height: 12px; }
.tile.on { border-color: var(--acc); background: var(--accbg); }
.tile.on::after { content: "✓"; position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 10px; line-height: 16px; font-weight: 800; animation: pop .2s var(--ease); }
@keyframes pop { from { transform: scale(.3); } to { transform: none; } }
.tier-legendary b { color: #ffb648; } .tier-epic b { color: #c07bff; } .tier-rare b { color: #5aa8ff; } .tier-uncommon b { color: #4fd18b; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.list-row.on { color: var(--acc2); font-weight: 700; }
.tryon { margin: 4px 0 12px; }
.tryon img { width: 100%; border-radius: 12px; background: var(--card2); min-height: 80px; }

.detail img.big { width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 1; border-radius: 16px; object-fit: cover; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv span { color: var(--muted); }
.detail .btns { grid-template-columns: 1fr 1fr; margin-top: 10px; }

.toast { position: fixed; left: 16px; right: 16px; bottom: 86px; max-width: 560px; margin: 0 auto; z-index: 40; background: #22252f; border: 1px solid var(--line); color: var(--text);
  padding: 11px 14px; border-radius: 12px; text-align: center; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); animation: rise .2s var(--ease); }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--acc2); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }

/* ---------- v3: панель фильтров, лента, иконки площадок, компьютер ---------- */
.topnav { display: none; gap: 4px; }
.topnav button { padding: 7px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.topnav button.on { background: var(--accbg); color: var(--acc2); }

.mi { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; font-size: 9px; font-weight: 900; letter-spacing: -.02em; color: #fff; flex: none; }
.mi.Portals { background: linear-gradient(135deg, #4f7bff, #6a5cff); }
.mi.MRKT { background: #f5c518; color: #111; }
.mi.Telegram { background: linear-gradient(135deg, #36b5f0, #1e88d6); }
.mi.Tonnel { background: linear-gradient(135deg, #ff9a3d, #e5622a); }
.mi.Getgems { background: linear-gradient(135deg, #3a8bff, #2a5bd6); }
.mi.lg { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }

.fbar { position: sticky; top: 52px; z-index: 4; margin: -12px -16px 0; padding: 10px 16px 8px; background: rgba(11, 12, 17, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); }
.frow2 { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.frow2::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 10px; background: var(--card2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; flex: none; }
.fchip svg { width: 15px; height: 15px; color: var(--muted); }
.fchip.on { border-color: var(--acc); background: var(--accbg); color: var(--acc2); }
.fchip.on svg { color: var(--acc2); }
.fchip .n { background: var(--acc); color: #fff; border-radius: 999px; font-size: 10.5px; min-width: 17px; height: 17px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.fchip.x { color: var(--muted); }
.fchip .mis { display: inline-flex; } .fchip .mis .mi { width: 15px; height: 15px; font-size: 7.5px; margin-left: -4px; border: 1.5px solid var(--card2); } .fchip .mis .mi:first-child { margin-left: 0; }
.tabs2 { display: flex; align-items: center; gap: 8px; }
.tabs2 .seg { flex: 1; max-width: 420px; }
.sub-btn { white-space: nowrap; }

.act-types { display: flex; gap: 6px; flex-wrap: wrap; }
.kind { font-size: 11.5px; font-weight: 700; }
.kind.listing { color: #ffcf4a; } .kind.price { color: #8fa0ff; } .kind.sale { color: var(--ok); }
.rows .row .pr s { color: var(--muted); font-size: 11.5px; margin-right: 4px; }
.rows .row .nm span .mi { width: 14px; height: 14px; font-size: 7px; vertical-align: -2px; margin-right: 3px; }
.feed { display: flex; flex-direction: column; }
.feed .row { padding: 8px 10px; border-radius: 10px; border-top: 0 !important; }
.feed .row:nth-child(odd) { background: rgba(255, 255, 255, .02); }
.feed .row:hover { background: var(--card2); }

/* список моделей как на биржах */
.mlist .mrow2 { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; width: 100%; text-align: left; }
.mlist .mrow2:hover { background: var(--card); }
.mlist .mrow2 .ck { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--card3); flex: none; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.mlist .mrow2.on .ck { background: var(--acc); border-color: var(--acc); }
.mlist .mrow2.on .ck::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }
.mlist .mrow2 img { width: 38px; height: 38px; border-radius: 9px; background: var(--card2); object-fit: contain; flex: none; }
.mlist .mrow2 .nm { flex: 1; min-width: 0; }
.mlist .mrow2 .nm b { display: block; font-size: 13.5px; }
.mlist .mrow2 .fl { text-align: right; white-space: nowrap; }
.mlist .mrow2 .fl b { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; }
.mlist .mrow2 .fl span { display: block; font-size: 11px; color: var(--muted); }
.tier { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 5px; margin-top: 2px; }
.tier.legendary { background: rgba(255, 182, 72, .15); color: #ffb648; } .tier.epic { background: rgba(192, 123, 255, .15); color: #c07bff; }
.tier.rare { background: rgba(90, 168, 255, .15); color: #5aa8ff; } .tier.uncommon { background: rgba(79, 209, 139, .15); color: #4fd18b; }
.tier.pct { background: var(--card2); color: var(--muted); }
.radio { display: flex; align-items: center; gap: 10px; padding: 11px 4px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.radio i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--card3); flex: none; }
.radio.on i { border: 5px solid var(--acc); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-range label { font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 5px; }

.editor-head { display: flex; align-items: center; gap: 10px; }
.editor-head .btn { padding: 7px 10px; }
.hint-card { background: rgba(245, 185, 66, .08); border: 1px solid rgba(245, 185, 66, .25); color: #f3d28c; border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }

.grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }

/* компьютер: шире, меню сверху, листы — справа */
@media (min-width: 900px) {
  #app { padding-bottom: 20px; }
  .tabs { display: none; }
  .topnav { display: flex; }
  .top-in { padding: 10px 24px; }
  main { padding: 16px 24px; gap: 12px; }
  .fbar { top: 56px; margin: -16px -24px 0; padding: 12px 24px 10px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .lot .meta .t b { font-size: 12.5px; } .lot .meta .t em { font-size: 14px; } .lot .meta .a { font-size: 12px; }
  .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  .sheet-box { left: auto; right: 0; top: 0; bottom: 0; width: 520px; max-width: 100%; margin: 0; border-radius: 18px 0 0 18px; border: 1px solid var(--line); border-right: 0; transform: translateX(100%); }
  .sheet-box.short { top: 0; max-height: none; }
  .sh-head::before { display: none; }
  .toast { bottom: 24px; }
  .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.rows .row .nm span.mi, .rows .row .pr span.mi, .rows .row .nm span.kind, .rows .row .pr span.kind { display: inline-flex; }
.rows .row .nm > span .mi, .rows .row .pr > span .mi { display: inline-flex; vertical-align: -3px; }

/* ---------- v4 ---------- */
.top { border-bottom: 0; box-shadow: 0 1px 0 rgba(123, 92, 255, .25), 0 8px 30px -12px rgba(123, 92, 255, .35); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #7b5cff 25%, #4cc3ff 50%, #c86bff 75%, transparent); opacity: .7; }
.brand { text-shadow: 0 0 18px rgba(166, 144, 255, .45); }
.logo { box-shadow: 0 0 14px rgba(123, 92, 255, .7); }
.btn.acc { box-shadow: 0 0 0 1px rgba(166, 144, 255, .35) inset, 0 8px 24px -6px rgba(123, 92, 255, .6); }
.btn.acc:hover { filter: brightness(1.08); }
.fchip.on, .chip.on { box-shadow: 0 0 12px -2px rgba(123, 92, 255, .45); }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 40%), var(--card); }

/* иконки площадок: стеклянные плитки с буквами */
.mi { position: relative; overflow: hidden; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 2px 6px rgba(0, 0, 0, .35); }
.mi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .35), transparent 45%); }
.ph-mk { position: absolute; top: 5px; left: 5px; }
.ph-mk .mi { width: 20px; height: 20px; font-size: 9.5px; }
.bdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); flex: none; }

/* активность */
.act-sum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.act-list { display: flex; flex-direction: column; }
.act-day { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 12px 8px 6px; }
.act-row { display: grid; grid-template-columns: 44px minmax(0, 1.3fr) minmax(0, 1fr) 200px 110px 140px 110px; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 11px; text-align: left; width: 100%; }
.act-row:not(.head):hover { background: var(--card2); }
.act-row.head { color: var(--muted); font-size: 11.5px; font-weight: 600; padding-top: 0; }
.act-row.head span:nth-child(6), .act-row.head span:nth-child(7) { text-align: right; }
.act-img img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--card2); }
.act-name { min-width: 0; display: flex; flex-direction: column; }
.act-name b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-name i { font-style: normal; color: var(--muted); font-size: 12px; }
.act-bd { font-size: 12.5px; color: #c9ccd8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; }
.act-kind { display: inline-flex; align-items: center; gap: 5px; justify-self: start; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.act-kind u { text-decoration: none; opacity: .85; font-weight: 600; }
.act-kind.listing { background: rgba(255, 207, 74, .12); color: #ffcf4a; }
.act-kind.price { background: rgba(143, 160, 255, .14); color: #a9b5ff; }
.act-kind.sale { background: rgba(51, 196, 122, .14); color: var(--ok); }
.act-mk { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.act-mk em { font-style: normal; }
.act-price { text-align: right; white-space: nowrap; }
.act-price b { font-size: 14px; }
.act-price s { color: var(--muted); font-size: 11.5px; margin-right: 5px; }
.act-time { text-align: right; color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 899px) {
  .act-row { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "img name price" "img bd time" "img kind mk"; row-gap: 3px; column-gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .act-row.head { display: none; }
  .act-img { grid-area: img; align-self: start; } .act-name { grid-area: name; flex-direction: row; gap: 6px; align-items: baseline; }
  .act-bd { grid-area: bd; } .act-kind { grid-area: kind; padding: 2px 8px; } .act-mk { grid-area: mk; justify-self: end; font-size: 11.5px; }
  .act-price { grid-area: price; } .act-time { grid-area: time; }
}

/* фоны — крупные плитки с настоящим градиентом */
.btiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.btile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 6px 7px; text-align: left; box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.btile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55)); }
.btile .bn, .btile .br { position: relative; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.btile .bn { font-size: 12px; font-weight: 700; line-height: 1.15; }
.btile .br { font-size: 10.5px; opacity: .85; }
.btile.on { box-shadow: 0 0 0 2.5px var(--acc2), 0 0 18px -2px rgba(166, 144, 255, .8); }
.btile.on::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--acc); color: #fff; font-size: 11px; line-height: 20px; text-align: center; font-weight: 800; animation: pop .2s var(--ease); }

/* профиль */
.hero { flex-wrap: wrap; box-shadow: 0 0 40px -18px rgba(123, 92, 255, .8); }
.hero .chip { display: inline-flex; align-items: center; gap: 5px; }
.hero .chip .mi { width: 15px; height: 15px; font-size: 7px; margin-left: 2px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 6px; }
.hero-stats div { background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06); border-radius: 12px; padding: 9px 10px; }
.hero-stats b { display: block; font-size: 16px; background: linear-gradient(90deg, #fff, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 11.5px; color: var(--muted); }
@media (max-width: 520px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .hero-stats { width: auto; flex: 1; margin: 0 0 0 auto; max-width: 640px; } }
.checks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 10px; background: var(--card2); animation: rise .25s var(--ease) both; }
.chk i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex: none; }
.chk.ok i { background: rgba(51, 196, 122, .18); color: var(--ok); } .chk.bad i { background: rgba(255, 91, 107, .18); color: var(--bad); }
.chk b { display: block; font-size: 13px; } .chk span { font-size: 12px; color: var(--muted); }
