/* Новый вид: страницы «Статистика». Классы с префиксом nus-; цвета — токены ios.css (светлая и тёмная тема). */
.nus { max-width: 1280px; }
.nus-sticky { position: sticky; top: var(--nu-top, 56px); z-index: 20; background: var(--nu-blur, var(--bg)); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  margin: 0 -24px 12px; padding: 8px 24px; border-bottom: .5px solid var(--nu-sep); display: flex; flex-direction: column; gap: 8px; }
.nus-row1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.nus-scroll { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.nus-scroll::-webkit-scrollbar { display: none; }
.nus-custom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nus-custom[hidden] { display: none; }
.nus-custom input { background: var(--soft-2); border: 0; border-radius: 10px; min-height: 36px; padding: 6px 10px; font-size: 15px; color: var(--text); }
.nus-per { font-size: 13px; color: var(--muted); margin: 0 0 12px; min-height: 18px; }
.nus-per span { color: var(--muted); }

/* тумблер «Сравнить» */
.nus-sw { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; white-space: nowrap; }
.nus-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
.nus-sw i { width: 46px; height: 28px; border-radius: 999px; background: var(--soft-2); position: relative; flex: none; transition: background .15s; }
.nus-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.nus-sw input:checked + i { background: var(--good-fill); }
.nus-sw input:checked + i::after { transform: translateX(18px); }
.nus-sw input:focus-visible + i { box-shadow: 0 0 0 2px var(--accent); }

/* карточки */
.nus-cards { margin-bottom: 14px; }
/* 9 цифр обзора: сетка 3 × 3, без одинокой карточки в ряду; при нечётном числе последняя занимает весь ряд */
.nus-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .nus-kpis > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.nus-k { position: relative; }
.nus-spark { position: absolute; right: 12px; top: 14px; color: var(--accent); opacity: .85; }
.nus-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.nus-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.nus-grid > *, .nus-grid2 > * { min-width: 0; }
.nus-h { margin-top: 0 !important; }
.nus-sh { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.nus-sh h3 { margin: 0; font-size: 17px; font-weight: 700; }
.nus-ins .t { display: flex; flex-direction: column; gap: 4px; }
.nus-it { font-size: 15px !important; color: var(--text) !important; }
.nus-ins .nu-go { font-size: 14px; font-weight: 600; color: var(--accent); }
.nus-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nus-plan .r, .nus-st .r { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 15px; }
.nus-plan small, .nus-st small { color: var(--muted); font-weight: 400; }
.nus-st { margin-bottom: 14px; }
.nus-st:last-child { margin-bottom: 0; }
.nus-sr { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: .5px solid var(--nu-sep); font-size: 15px; }
.nus-sr:last-child { border-bottom: 0; }
.nus-sr span { min-width: 0; overflow-wrap: anywhere; }
.nus-sr small { color: var(--muted); }
.nus-new { background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.nus-none { color: var(--muted); font-size: 14px; padding: 18px 4px; text-align: center; }
.nus-best { margin: 0 0 12px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.nus-best b { display: block; font-size: 20px; }
.nus-bl { font-size: 13px; color: var(--muted); }
.nus-tipt { font-size: 14px; color: var(--muted); max-width: 520px; }

/* графики */
.nus-ch { width: 100%; min-height: 40px; }
.nus-svg { display: block; max-width: 100%; overflow: visible; }
.nus-grid-l, .nus-svg .nus-grid { stroke: var(--nu-sep); stroke-width: 1; }
.nus-ax { fill: var(--muted); font-size: 11px; }
.nus-limit { stroke: var(--bad-fill); stroke-width: 1.5; stroke-dasharray: 6 5; }
.nus-limit-t { fill: var(--bad); font-size: 11px; font-weight: 600; }
.nus-hit { fill: transparent; cursor: pointer; }
.nus-hit:hover { fill: rgba(128,128,128,.14); }
.nus-mk-l { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: .6; }
.nus-mk { fill: var(--warn-fill); cursor: pointer; }
.nus-leg { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.nus-leg span { display: inline-flex; align-items: center; gap: 6px; }
.nus-leg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.nus-leg i.dash { height: 0; width: 16px; border-top: 2px dashed; border-radius: 0; }
.nus-tip { position: fixed; z-index: 400; display: none; pointer-events: none; max-width: 280px; background: rgba(40,40,42,.96); color: #fff; font-size: 13px; line-height: 1.4;
  padding: 8px 10px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.3); }

/* тепловая карта */
.nus-hm { display: grid; gap: 3px; align-items: center; font-size: 11px; color: var(--muted); }
.nus-hm b { font-weight: 500; text-align: center; }
.nus-hm b.dn { text-align: left; font-size: 12px; }
.nus-hm-pc { grid-template-columns: 28px repeat(24, minmax(0, 1fr)); }
.nus-hm-ph { display: none; grid-template-columns: 30px repeat(7, minmax(0, 1fr)); }
.nus-c { position: relative; display: block; height: 24px; border-radius: 4px; background: var(--soft-2); overflow: hidden; cursor: pointer; }
.nus-c::after { content: ""; position: absolute; inset: 0; background: var(--accent); opacity: var(--a, 0); }
.nus-hm.r .nus-c::after { background: var(--bad-fill); }
.nus-hm.o .nus-c::after { background: var(--warn-fill); }
.nus-heatsw button { padding: 5px 10px; font-size: 13px; }

/* таблица и боковая панель объявлений */
.nus-table { min-width: 900px; }
.nus-table td .dl { display: block; font-size: 12px; }
.nus-ir { cursor: pointer; }
.nus-ir.on td { background: var(--accent-soft) !important; }
.nus-table td.cl a { color: var(--text); }
.nus-blk { background: var(--bad-fill); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 6px; margin-left: 6px; font-weight: 700; }
.nus-panel { position: fixed; right: 0; top: var(--nu-top, 56px); bottom: 0; width: 420px; max-width: 100%; z-index: 40; background: var(--bg); border-left: .5px solid var(--nu-sep);
  box-shadow: -8px 0 30px rgba(0,0,0,.18); overflow-y: auto; padding: 16px; }
.nus-ph { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.nus-ph .t { flex: 1; min-width: 0; }
.nus-ph .t b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.nus-ph .t span { font-size: 13px; color: var(--muted); }
.nus-x { background: var(--soft-2) !important; color: var(--text); border: 0; border-radius: 50%; width: 36px; height: 36px; min-height: 36px; padding: 0; font-size: 16px; display: grid; place-items: center; flex: none; }
.nus-pn { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.nus-pn div { background: var(--card); border-radius: 12px; padding: 10px; font-size: 12px; color: var(--muted); }
.nus-pn b { display: block; font-size: 18px; color: var(--text); }
.nus-panel .nus-sh { margin-top: 16px; }
.nus-panel .nus-sh h3 { font-size: 15px; }
.nus-panel .nu-card, .nus-panel .nus-ch { background: none; }

@media (max-width: 900px) {
  .nus-grid, .nus-grid2, .nus-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .nus-sticky { margin: 0 -16px 12px; padding: 8px 16px; }
  .nus-hm-pc { display: none; }
  .nus-hm-ph { display: grid; }
  .nus-c { height: 22px; }
  .nus-spark { top: 12px; right: 10px; width: 48px; }
  .nus-panel { width: 100%; top: 0; z-index: 90; border-left: 0; padding-top: 20px; }
  .nus-best b { font-size: 17px; }
}
