/* Схрон ночью: еловый сумрак, песочное золото, плитки предметов с цветом редкости как в инвентаре. */
:root {
  color-scheme: dark;
  --bg: #0c1a1e;
  --bg-2: #102328;
  --panel: #142a30;
  --panel-2: #1b363d;
  --panel-3: #234650;
  --line: #27464e;
  --line-soft: #1e3a41;
  --ink: #eef3ee;
  --ink-2: #b3c6c3;
  --ink-3: #7f9a98;
  --gold: #f4c874;
  --gold-2: #e5a84b;
  --gold-ink: #2a1c05;
  --up: #6fdcae;
  --down: #ff9a8b;
  --warn: #f0c26b;
  --night: #a9b8ff;
  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", Consolas, "Courier New", monospace;
  --r: 12px;
  --head-h: 68px;
  font-family: var(--body);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); font-size: 15px; line-height: 1.4;
  background: radial-gradient(1100px 520px at 78% -8%, #1d4650 0, transparent 70%), radial-gradient(800px 460px at 0% 0%, #17343a 0, transparent 70%), var(--bg);
  background-attachment: fixed;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* шапка */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 11px max(20px, calc((100% - 1520px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 17px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand svg { fill: var(--gold); }
.search { position: relative; flex: 1 1 200px; min-width: 170px; }
.search::before { content: ""; position: absolute; left: 13px; top: 50%; width: 11px; height: 11px; margin-top: -8px; border: 2px solid var(--ink-3); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 24px; top: 50%; width: 6px; height: 2px; margin-top: 3px; background: var(--ink-3); transform: rotate(45deg); }
.search input { width: 100%; height: 42px; padding: 0 14px 0 36px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, background .15s; }
.search input:focus { border-color: var(--gold-2); background: var(--panel-2); outline: none; }
.search input::placeholder { color: var(--ink-3); }

.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.seg button { height: 34px; min-width: 42px; padding: 0 11px; background: transparent; border: 0; border-radius: 9px; color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); background: var(--panel-2); }
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink); font-weight: 650; }

/* часы */
.clock-wrap { position: relative; }
.clock { display: flex; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s; }
.clock:hover, .clock[aria-expanded="true"] { border-color: var(--gold-2); }
.clock-cell { display: flex; align-items: center; gap: 8px; min-width: 146px; padding: 4px 11px; text-align: left; }
.clock-cell + .clock-cell { border-left: 1px solid var(--line); }
.clock-cell svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.clock-cell .c-moon { stroke: var(--night); }
.clock-cell[data-phase="day"] .c-moon, .clock-cell[data-phase="night"] .c-sun { display: none; }
.c-time { display: block; font-family: var(--mono); font-size: 15px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.c-sub { display: block; color: var(--ink-3); font-size: 11.5px; line-height: 1.25; white-space: nowrap; }
.clock-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 370px; max-width: calc(100vw - 32px); padding: 16px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 40px rgb(0 0 0 / .45); }
.clock-panel h2 { margin: 0 0 4px; font-size: 15px; font-weight: 650; }
.clock-panel p { margin: 0 0 12px; color: var(--ink-2); font-size: 13px; }
.clock-panel table { width: 100%; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.clock-panel th { padding: 4px 0; color: var(--ink-3); font-size: 12px; font-weight: 500; text-align: right; }
.clock-panel th:first-child, .clock-panel td:first-child { text-align: left; }
.clock-panel td { padding: 5px 0; border-top: 1px solid var(--line); text-align: right; font-family: var(--mono); font-size: 13px; }
.clock-panel td:first-child { font-family: var(--body); color: var(--ink-2); }
.changes { display: grid; gap: 6px; margin-bottom: 12px; }
.change { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding: 8px 10px; background: var(--panel); border-radius: 8px; font-size: 13.5px; }
.change b { font-weight: 600; }
.change span { color: var(--ink-2); white-space: nowrap; }

/* лента сезона */
.ticker { border-bottom: 1px solid var(--line-soft); }
.ticker-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; max-width: 1560px; margin: 0 auto; padding: 8px 20px; }
.season { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 28px; color: var(--ink-2); font-size: 13.5px; }
.season b { color: var(--ink); font-weight: 600; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; background: color-mix(in srgb, var(--up) 16%, transparent); color: var(--up); font-size: 12px; font-weight: 600; }
.pill.off { background: var(--panel-2); color: var(--ink-3); }
.linkbtn { padding: 3px 10px; background: none; border: 1px solid var(--line); border-radius: 99px; color: var(--gold); font-size: 12.5px; }
.linkbtn:hover { border-color: var(--gold-2); }
.status { margin: 0; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.status.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 22%, transparent); }

.banner { padding: 10px 20px; background: #4a2823; color: #ffdcd4; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { height: 36px; padding: 0 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; }
.btn:hover { border-color: var(--gold-2); }

/* каркас */
.layout { flex: 1; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 22px; width: 100%; max-width: 1560px; margin: 0 auto; padding: 18px 20px 28px; }
.content { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

/* категории */
.side { position: sticky; top: calc(var(--head-h) + 14px); align-self: start; max-height: calc(100vh - var(--head-h) - 28px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.side-toggle { display: none; width: 100%; height: 42px; padding: 0 14px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.cats, .cats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cats ul { margin: 2px 0 4px 21px; padding-left: 6px; border-left: 1px solid var(--line); }
.cat { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 9px; background: none; border: 0; border-radius: 9px; color: var(--ink-2); text-align: left; transition: background .12s, color .12s; }
.cat img { flex: none; width: 22px; height: 22px; object-fit: contain; opacity: .8; }
.cat > span { flex: 1; min-width: 0; }
.cat:hover { background: var(--panel); color: var(--ink); }
.cat[aria-current="true"] { background: var(--panel-2); color: var(--gold); font-weight: 600; }
.cat[aria-current="true"] img { opacity: 1; }
.cat small { color: var(--ink-3); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }

/* плитка предмета: цвет редкости + сетка ячеек схрона */
.tile { --t: #2b4046; position: relative; display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--t) 70%, #fff 12%); background: linear-gradient(135deg, color-mix(in srgb, var(--t) 72%, transparent), color-mix(in srgb, var(--t) 32%, var(--bg))); overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px); background-size: 14px 14px; }
.tile img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.r-blue { --t: #2c6a8e; } .r-violet { --t: #6b47a0; } .r-yellow { --t: #94802f; } .r-green { --t: #3f7d48; }
.r-orange { --t: #a4602a; } .r-red { --t: #99393a; } .r-black { --t: #2a3236; } .r-grey { --t: #56666b; }

/* движение рынка */
.movers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mover-col { min-width: 0; padding: 14px 16px 10px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--r); }
.mover-col h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.mover { display: flex; align-items: center; gap: 10px; padding: 6px 0; text-decoration: none; border-top: 1px solid var(--line-soft); }
.mover:hover .m-name { color: var(--gold); }
.mover .tile { width: 38px; height: 38px; border-radius: 7px; }
.m-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg { min-width: 62px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* таблица */
.toolbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.toolbar h1, .hero h1 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.toolbar h1 { font-size: 21px; }
.count { color: var(--ink-3); font-size: 13px; margin-right: auto; }
.check { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--gold-2); width: 16px; height: 16px; margin: 0; }

.table-wrap { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; }
.items th { position: sticky; top: var(--head-h); z-index: 5; padding: 0; background: var(--panel-2); border-bottom: 1px solid var(--line); text-align: right; font-weight: 500; }
.items th:first-child, .items td:first-child { text-align: left; }
.items th:first-child { border-top-left-radius: var(--r); }
.items th:last-child { border-top-right-radius: var(--r); }
.items th button { width: 100%; padding: 10px 14px; background: none; border: 0; color: var(--ink-2); font-size: 13px; text-align: inherit; white-space: nowrap; }
.items th button:hover { color: var(--ink); }
.items th[aria-sort] button { color: var(--gold); }
.items td { padding: 8px 14px; border-bottom: 1px solid var(--line-soft); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.items tbody tr:last-child td { border-bottom: 0; }
.items tbody tr { cursor: pointer; transition: background .1s; }
.items tbody tr:hover { background: var(--panel-2); }
.items td.name-cell { white-space: normal; min-width: 240px; }
.item-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.item-link b { display: block; font-weight: 550; }
.item-link small { color: var(--ink-3); font-size: 12px; }
.price { font-weight: 650; font-size: 15.5px; }
.muted { color: var(--ink-3); }
.sub { display: block; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.up { color: var(--up); }
.down { color: var(--down); }
.stale { color: var(--warn); }
.tag { display: inline-block; padding: 2px 8px; background: var(--panel-2); border-radius: 6px; color: var(--ink-3); font-size: 12px; font-weight: 500; }
.who { display: flex; align-items: center; justify-content: flex-end; gap: 7px; color: var(--ink-3); font-size: 12px; }
.who img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.fav { width: 32px; height: 32px; padding: 0; background: none; border: 0; color: var(--ink-3); font-size: 18px; line-height: 1; }
.fav:hover, .fav[aria-pressed="true"] { color: var(--gold); }
.empty { padding: 40px 12px; text-align: center; color: var(--ink-3); }
#sentinel { height: 1px; }

.skeleton td { height: 73px; }
.skeleton td::after { content: ""; display: block; height: 14px; border-radius: 4px; background: var(--panel-2); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* страница предмета */
.back { align-self: flex-start; color: var(--ink-2); text-decoration: none; }
.back:hover { color: var(--gold); }
.hero .fav { position: absolute; top: 8px; right: 8px; }
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 18px; background: linear-gradient(120deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-soft); border-radius: var(--r); }
.hero .tile { width: 148px; height: 148px; border-radius: 12px; }
.hero .tile::before { background-size: 37px 37px; }
.hero .tile img { padding: 10px; }
.hero-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 4px; }
.hero h1 { font-size: 24px; line-height: 1.2; }
.hero p { margin: 0; color: var(--ink-3); }
.links { display: flex; gap: 14px; font-size: 14px; color: var(--ink-2); }
.hero-price { display: grid; gap: 2px; justify-items: end; text-align: right; }
.hero-price span { color: var(--ink-3); font-size: 13px; }
.hero-price b { font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--gold); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.stat { flex: 1 1 160px; padding: 12px 15px; background: var(--panel); }
.stat > span { display: block; color: var(--ink-3); font-size: 13px; }
.stat b { display: block; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.stat small { color: var(--ink-3); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.card { min-width: 0; padding: 15px 17px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); }
.card h2 { margin: 0 0 10px; font-size: 16px; font-weight: 650; }
.deal { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; margin-top: 4px; border-radius: 8px; overflow: hidden; font-variant-numeric: tabular-nums; }
.deal::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: color-mix(in srgb, var(--gold) 13%, transparent); }
.deal > * { position: relative; }
.deal .nm { display: flex; align-items: center; gap: 9px; min-width: 0; }
.deal img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; }
.deal .pr { white-space: nowrap; text-align: right; }
.deal.best .pr { color: var(--gold); font-weight: 650; }

/* график */
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.chart-head h2 { margin: 0; }
.chart { position: relative; height: 280px; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: 100%; }
.chart .grid { stroke: var(--line-soft); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .series { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; }
.chart .dot { fill: var(--gold); stroke: var(--panel); stroke-width: 2; }
.tip { position: absolute; top: 6px; pointer-events: none; padding: 8px 11px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tip b { display: block; }
.chart-note { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 130px; max-width: 60ch; margin: 0 auto; color: var(--ink-3); text-align: center; }

/* выгода: колонка видна только в режиме перепродажи */
body:not(.profit-mode) .col-profit, .profit-mode .col-slot, .profit-mode .col-change { display: none !important; }
.check-profit { color: var(--gold); }

/* шкала времени */
.tl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; height: calc(100vh - 230px); min-height: 380px; overflow-y: auto; overscroll-behavior: contain; cursor: grab; user-select: none; scrollbar-width: thin; scrollbar-color: var(--line) transparent; border-radius: var(--r); -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent); mask-image: linear-gradient(#000 calc(100% - 48px), transparent); }
.tl-grid.dragging { cursor: grabbing; }
.tl-top { justify-self: start; align-self: flex-start; color: var(--gold); }
.tl-col { min-width: 0; padding: 0 18px 16px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); }
.tl-now { position: sticky; top: 0; z-index: 2; display: grid; gap: 2px; padding: 12px 14px; margin: 0 -18px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 16%, var(--panel-2)), var(--panel-2)); border-radius: 10px; }
.tl-now.is-night { background: linear-gradient(135deg, color-mix(in srgb, var(--night) 18%, var(--panel-2)), var(--panel-2)); }
.tl-now b { font-family: var(--mono); font-size: clamp(24px, 5vw, 34px); font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tl-now small { color: var(--ink-2); font-size: 13px; }
.tl-list { position: relative; display: grid; margin: 0; padding: 0 0 0 16px; list-style: none; border-left: 2px solid var(--line); }
.tl-list li { position: relative; padding: 8px 0; font-variant-numeric: tabular-nums; }
.tl-list li::before { content: ""; position: absolute; left: -16px; top: 18px; width: 10px; height: 2px; background: var(--gold); }
.tl-list li.is-night::before { background: var(--night); }
.tl-list b { display: block; font-family: var(--mono); font-size: 16px; font-weight: 500; }
.tl-list span { color: var(--ink-3); font-size: 13px; }
.tl-list li.is-night b { color: var(--night); }
.panel-link { display: block; margin-top: 10px; color: var(--gold); font-size: 13.5px; text-decoration: none; }
.panel-link:hover { text-decoration: underline; }

/* разделы */
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 550; text-decoration: none; transition: background .12s, color .12s; }
.nav a:hover { color: var(--ink); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--gold); background: var(--panel-2); }
body:not([data-section="prices"]) .side, body:not([data-section="prices"]) .search { display: none; }
body:not([data-section="prices"]) .layout { grid-template-columns: minmax(0, 1fr); }
body:not([data-section="prices"]) .nav { margin-right: auto; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; }
.page-head h1 { margin: 0; font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -.015em; }
#world { gap: 14px; }

/* квесты */
.filters { display: grid; gap: 10px; padding: 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); }
.filter-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.filter-line .count { margin: 0 0 0 auto; }
.field { height: 40px; padding: 0 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; }
.field:focus { outline: none; border-color: var(--gold-2); }
.field.grow { flex: 1 1 220px; min-width: 0; }
select.field { max-width: 100%; }
.level { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; }
.level .field { width: 74px; }
.trader-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.trader-chip { flex: none; width: 46px; height: 46px; padding: 0; background: var(--panel-2); border: 2px solid transparent; border-radius: 10px; overflow: hidden; color: var(--ink-2); font-size: 11px; opacity: .72; transition: opacity .12s, border-color .12s; }
.trader-chip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.trader-chip:hover { opacity: 1; }
.trader-chip[aria-pressed="true"] { border-color: var(--gold); opacity: 1; }
.progress { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.progress i { display: block; width: 150px; height: 6px; background: var(--panel-2); border-radius: 9px; overflow: hidden; }
.progress b { display: block; height: 100%; background: var(--up); }
.qlist { display: grid; gap: 6px; }
.qrow { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 10px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; transition: border-color .12s; }
.qrow:hover { border-color: var(--line); }
.qrow.is-done .qlink { opacity: .5; }
.tick { flex: none; width: 24px; height: 24px; padding: 0; background: var(--bg-2); border: 2px solid var(--line); border-radius: 7px; }
.tick:hover { border-color: var(--up); }
.tick[aria-pressed="true"] { background: var(--up); border-color: var(--up); }
.tick[aria-pressed="true"]::after { content: "✓"; display: block; color: var(--bg); font-size: 14px; font-weight: 700; line-height: 20px; }
.qlink { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.qimg { flex: none; width: 74px; height: 44px; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.qimg img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qimg.num { display: grid; place-items: center; background: linear-gradient(135deg, var(--panel-3), var(--panel-2)); color: var(--gold); font-family: var(--display); font-size: 15px; font-weight: 700; }
.ll summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }
.ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.ll-grid label { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); font-size: 14px; }
.ll-grid img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ll-grid span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-grid .field { height: 32px; padding: 0 6px; }
.qtext { flex: 1; min-width: 0; }
.qtext b { display: block; font-weight: 600; }
.qtext small { display: flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 12.5px; }
.qtext small img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.qtags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.tag.gold { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.qhero { flex: none; width: 200px; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--panel-3); }
.qhero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.done-btn[aria-pressed="true"] { border-color: var(--up); color: var(--up); }
.links { flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.cols.wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; }
.stack { display: grid; gap: 14px; min-width: 0; }
.card h3 { margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.objs { display: grid; gap: 10px; margin: 0 0 8px; padding: 0; list-style: none; }
.objs li { padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.objs li:last-child { padding-bottom: 0; border-bottom: 0; }
.objs p { margin: 0; }
.ichips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ichip { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 4px 10px 4px 4px; background: var(--panel-2); border-radius: 9px; text-decoration: none; }
a.ichip:hover { background: var(--panel-3); }
.ichip .tile { width: 38px; height: 38px; border-radius: 7px; }
.ichip b { display: block; font-size: 13.5px; font-weight: 550; }
.ichip small { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
a.deal { text-decoration: none; }
a.deal:hover { background: var(--panel-2); }

/* карты */
.map-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.map-card { display: block; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.map-card:hover { border-color: var(--gold-2); transform: translateY(-2px); }
.map-thumb { display: block; height: 170px; background: var(--bg-2); overflow: hidden; }
.map-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 13px; }
.map-info b { font-weight: 600; }
.map-info small { color: var(--ink-3); white-space: nowrap; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.map-main { display: grid; gap: 10px; min-width: 0; }
.leaf { height: calc(100vh - 210px); min-height: 460px; background: #0a1417; border: 1px solid var(--line-soft); border-radius: var(--r); font-family: var(--body); }
.leaf.leaflet-container { background: #0a1417; }
.map-side { display: grid; gap: 14px; min-width: 0; }
.toggles { display: grid; gap: 7px; }
.toggles .check i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.toggles .check span { flex: 1; }
.toggles .check small { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.fieldset { display: grid; gap: 4px; margin-top: 12px; color: var(--ink-3); font-size: 13px; }
.fieldset .field { width: 100%; color: var(--ink); }
.small { margin: 8px 0 0; font-size: 13px; }
.small:empty { display: none; }
.leaflet-tooltip { background: var(--bg); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); box-shadow: none; font-size: 13px; max-width: 300px; white-space: normal; }
.leaflet-tooltip-top::before { border-top-color: var(--line); }
.leaflet-bar a { background: var(--panel-2) !important; border-color: var(--line) !important; color: var(--ink) !important; }

.foot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 14px 20px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13px; }

@media (max-width: 1400px) { .col-updated { display: none; } }
@media (max-width: 1180px) { .col-slot { display: none; } }
@media (max-width: 1420px) { .search { order: 9; flex-basis: 100%; } .clock-wrap { margin-left: auto; } }
@media (max-width: 1060px) {
  .col-avg { display: none; }
  .map-layout, .cols.wide { grid-template-columns: minmax(0, 1fr); }
  .leaf { height: 62vh; min-height: 340px; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 16px 20px; }
  .side { position: static; max-height: none; overflow: visible; }
  .side-toggle { display: block; }
  #cats { display: none; margin-top: 6px; max-height: 50vh; overflow-y: auto; }
  .side.open #cats { display: block; }
  .topbar { position: static; padding: 10px 16px; }
  .ticker-in { padding: 8px 16px; }
  .items th { position: static; }
  .banner { padding: 10px 16px; }
}
@media (max-width: 680px) {
  .brand { flex: 1 1 100%; }
  .nav { flex: 1 1 100%; }
  .nav a { flex: 1; padding: 8px 4px; text-align: center; }
  .tl-grid { gap: 8px; height: 72vh; }
  .tl-col { padding: 0 10px 10px; }
  .tl-now { padding: 9px 10px; margin: 0 -10px 10px; }
  .tl-list { padding-left: 12px; }
  .tl-list li::before { left: -12px; width: 7px; }
  .tl-list span { font-size: 12px; }
  .qtags { display: none; }
  .qimg { width: 54px; height: 36px; }
  .progress i { width: 90px; }
  .clock-wrap { order: 8; flex: 1 1 100%; margin: 0; }
  .clock { width: 100%; }
  .clock-cell { flex: 1 1 50%; min-width: 0; }
  .clock-panel { left: 0; right: 0; width: auto; max-width: none; }
  .movers { grid-template-columns: minmax(0, 1fr); }
  .mover:nth-of-type(n+3) { display: none; }
  .hero-price { justify-items: start; text-align: left; flex-basis: 100%; }
  .hero .tile { width: 104px; height: 104px; }
  .hero .tile::before { background-size: 26px 26px; }
  .hero h1 { font-size: 20px; }
  .hero-price b { font-size: 25px; }

  /* строки таблицы становятся карточками */
  .table-wrap { background: none; border: 0; }
  .items, .items tbody { display: block; }
  .items thead { display: block; margin-bottom: 8px; }
  .items thead tr { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .items th { flex: none; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 99px !important; }
  .items th.col-fav, .items th.col-updated, .items th.col-slot { display: none; }
  .items th button { padding: 6px 12px; }
  .items tbody tr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 8px; margin-bottom: 8px; padding: 11px 12px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); }
  .items td { display: block; padding: 0; border: 0; text-align: left; white-space: normal; min-width: 0; }
  .items td.name-cell { grid-column: 1 / -1; min-width: 0; }
  .items td.col-fav, .items td.col-slot, .items td.col-updated { display: none; }
  .items td.col-change { display: none; }
  .items td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-3); font-size: 11.5px; }
  .who { justify-content: flex-start; }
  .price { font-size: 14px; }
  .skeleton { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .skeleton td::after { animation: none; }
}
