/* ============================================================
   WB без коня / reports.css
   Стили страницы расчёта отчётов OZON и WB.
   Опирается на токены и базовые правила styles.css.
   ============================================================ */

.page--reports .topbar__logo b { color: var(--acid); }

/* ─────── HERO ─────── */
.rp-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 32px;
}
.rp-hero__inner { max-width: 920px; }

.rp-hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  margin-bottom: 28px;
}

.rp-hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -.025em;
  margin-bottom: 24px;
}
.rp-hero__title span { display: inline; margin-right: 12px; }
.rp-hero__title-em {
  font-family: var(--mono);
  font-weight: 700;
  background: rgba(0,240,255,.12);
  color: var(--cyan);
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,240,255,.35);
  font-size: .82em;
}
.rp-hero__title-neon {
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-hero__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 720px;
  margin-bottom: 32px;
}

.rp-hero__notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 880px;
}
@media (max-width: 720px){ .rp-hero__notes { grid-template-columns: 1fr; } }

.rp-note {
  display: flex; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(8px);
}
.rp-note__num {
  font-family: var(--display); font-weight: 800;
  font-size: 22px; color: var(--acid);
  line-height: 1; flex-shrink: 0;
}
.rp-note__text { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.rp-note__text b { color: var(--ink); }

/* ─────── СЕКЦИИ ─────── */
.rp-section { max-width: var(--max); margin: 0 auto; padding: 24px 24px 48px; }
.rp-section__inner { max-width: 1100px; }
.rp-result { padding-top: 8px; }

/* ─────── ТАБЫ ─────── */
.rp-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 22px;
}
@media (max-width: 600px){ .rp-tabs { grid-template-columns: 1fr; } }

.rp-tab {
  position: relative;
  text-align: left;
  padding: 18px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .25s, color .25s, transform .25s, background .25s;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
}
.rp-tab:hover { transform: translateY(-2px); border-color: var(--line-2); }
.rp-tab.is-active {
  color: var(--ink);
  border-color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(0,123,255,.15), rgba(123,47,247,.10)),
    rgba(255,255,255,.03);
  box-shadow: 0 20px 50px -25px rgba(0,240,255,.6);
}
.rp-tab__name {
  font-family: var(--display); font-weight: 800;
  font-size: 22px; letter-spacing: -.015em;
}
.rp-tab__hint { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: .02em; }
.rp-tab__glyph {
  position: absolute; right: 18px; top: 18px;
  font-family: var(--mono); color: var(--ink-3);
  transition: transform .25s, color .25s;
}
.rp-tab.is-active .rp-tab__glyph { color: var(--cyan); transform: rotate(180deg); }

/* ─────── PANES ─────── */
.rp-pane { display: none; }
.rp-pane.is-active { display: block; }

/* ─────── ДРОП-ЗОНА ─────── */
.rp-dropzone {
  display: flex; align-items: center; gap: 22px;
  padding: 28px;
  border: 2px dashed var(--line-2);
  border-radius: var(--radius-l);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(10px);
  transition: border-color .25s, background .25s;
  cursor: pointer;
}
.rp-dropzone:hover,
.rp-dropzone.is-drag {
  border-color: var(--cyan);
  background: rgba(0,240,255,.05);
}
.rp-dropzone__icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(123,47,247,.25), rgba(0,123,255,.2));
  border: 1px solid var(--line-2);
  color: var(--cyan);
}
.rp-dropzone__icon svg { width: 36px; }
.rp-dropzone__main { flex: 1; min-width: 0; }
.rp-dropzone__title {
  font-family: var(--display); font-weight: 700;
  font-size: 19px; color: var(--ink);
  margin-bottom: 6px;
}
.rp-dropzone__title span { color: var(--cyan); }
.rp-dropzone__hint { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.rp-dropzone__hint code {
  font-family: var(--mono); font-size: 12px;
  background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 4px;
  color: var(--acid);
}
.rp-dropzone__btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--grad-1);
  color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  border-radius: 8px;
  letter-spacing: .04em;
  transition: transform .2s;
}
.rp-dropzone__btn:hover { transform: translateY(-1px); }

@media (max-width: 720px){
  .rp-dropzone { flex-direction: column; align-items: stretch; text-align: left; padding: 22px; }
  .rp-dropzone__icon { width: 52px; height: 52px; }
}

/* ─────── СТАТУС ПАРСИНГА ─────── */
.rp-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--mono); font-size: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--ink-2);
  display: flex; align-items: center; gap: 10px;
}
.rp-status--ok    { border-color: rgba(198,255,61,.35); background: rgba(198,255,61,.06); color: var(--acid); }
.rp-status--err   { border-color: rgba(255,61,90,.4);   background: rgba(255,61,90,.06);  color: var(--red); }
.rp-status--load  { border-color: rgba(0,240,255,.35);  background: rgba(0,240,255,.05);  color: var(--cyan); }
.rp-status .spinner {
  width: 14px; height: 14px;
  border: 2px solid currentColor;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rp-spin .8s linear infinite;
}
@keyframes rp-spin { to { transform: rotate(360deg); } }

/* ─────── СВОДКА ─────── */
.rp-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 18px;
}
@media (max-width: 760px){ .rp-summary { grid-template-columns: 1fr; } }

.rp-stat {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  overflow: hidden;
  isolation: isolate;
}
.rp-stat__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-3); text-transform: uppercase;
  margin-bottom: 6px;
}
.rp-stat__value {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rp-stat__hint { font-size: 12px; color: var(--ink-2); margin-top: 6px; line-height: 1.35; }
.rp-stat__glow {
  position: absolute; inset: auto -30% -50% auto;
  width: 60%; height: 80%; border-radius: 50%;
  filter: blur(40px); opacity: .45; z-index: -1;
}
.rp-stat--turnover .rp-stat__glow { background: radial-gradient(circle, var(--oz), transparent 70%); }
.rp-stat--profit   .rp-stat__glow { background: radial-gradient(circle, var(--acid), transparent 70%); }
.rp-stat--margin   .rp-stat__glow { background: radial-gradient(circle, var(--wb), transparent 70%); }

.rp-stat--profit .rp-stat__value { color: var(--acid); text-shadow: 0 0 22px rgba(198,255,61,.4); }
.rp-stat--profit.is-loss .rp-stat__value { color: var(--red); text-shadow: 0 0 22px rgba(255,61,90,.4); }

/* ─────── ИНФОГРАФИКА (стэк-бар + donut + топ-5) ─────── */
.rp-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
  margin: 0 0 22px;
}
@media (max-width: 980px){ .rp-charts { grid-template-columns: 1fr 1fr; } .rp-chart--flow { grid-column: span 2; } }
@media (max-width: 620px){ .rp-charts { grid-template-columns: 1fr; } .rp-chart--flow { grid-column: span 1; } }

.rp-chart {
  position: relative;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.rp-chart__head { margin-bottom: 14px; }
.rp-chart__title {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--cyan); text-transform: uppercase;
}
.rp-chart__sub {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: .04em;
  margin-top: 2px;
}

/* — Стэк-бар «куда ушёл рубль» — */
.rp-stack {
  display: flex;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.rp-stack__seg {
  height: 100%;
  transition: filter .2s;
  position: relative;
}
.rp-stack__seg:hover { filter: brightness(1.2); }
.rp-stack__seg + .rp-stack__seg { box-shadow: inset 1px 0 0 rgba(11,16,32,.4); }

.rp-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px 14px;
  font-family: var(--mono); font-size: 11.5px;
}
.rp-legend__item {
  display: flex; align-items: center; gap: 7px;
  color: var(--ink-2);
  min-width: 0;
}
.rp-legend__dot {
  width: 8px; height: 8px; border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.rp-legend__name {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rp-legend__pct {
  font-family: var(--display); font-weight: 700; font-size: 12px;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

/* — Donut chart — */
.rp-donut {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 220px;
  margin: auto;
}
.rp-donut__svg { width: 100%; height: 100%; display: block; }
.rp-donut__svg circle { transition: stroke-width .25s; }
.rp-donut__center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  pointer-events: none;
}
.rp-donut__total {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(14px, 1.6vw, 18px);
  color: var(--ink);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.rp-donut__label {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* — Топ-5 категорий — */
.rp-top { display: flex; flex-direction: column; gap: 10px; }
.rp-top__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
}
.rp-top__name {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--ink-2);
  grid-column: 1 / -1;
}
.rp-top__track {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
  grid-column: 1;
}
.rp-top__fill {
  height: 100%;
  border-radius: 999px;
  transition: width .4s ease;
  box-shadow: 0 0 8px currentColor;
}
.rp-top__val {
  font-family: var(--display); font-weight: 700;
  font-size: 12px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  grid-column: 2;
  grid-row: 2;
}

/* ─────── ГРУППЫ И СТРОКИ МЕТРИК ─────── */
.rp-groups { display: flex; flex-direction: column; gap: 14px; }

.rp-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.rp-group__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.rp-group__title {
  font-family: var(--display); font-weight: 700;
  font-size: 20px; letter-spacing: -.02em;
}
.rp-group__sub {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  letter-spacing: .08em; text-transform: lowercase;
}

.rp-rows { display: flex; flex-direction: column; }
.rp-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 9px 18px;
  border-top: 1px solid rgba(255,255,255,.04);
  transition: background .2s;
  align-items: center;
}
.rp-row:hover { background: rgba(255,255,255,.03); }
.rp-row:first-child { border-top: 0; }

.rp-row__main { min-width: 0; }
.rp-row__name {
  font-size: 13.5px; color: var(--ink);
  font-weight: 500;
  margin-bottom: 1px;
}
.rp-row__comment {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .01em;
  line-height: 1.35;
}
.rp-row__value {
  font-family: var(--display); font-weight: 700;
  font-size: 15.5px; letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rp-row--hl .rp-row__value { color: var(--acid); }
.rp-row--neg .rp-row__value { color: var(--red); }
.rp-row--total {
  background: linear-gradient(180deg, rgba(0,240,255,.06), rgba(0,240,255,.02));
  border-top: 1px solid rgba(0,240,255,.2);
  padding-top: 11px; padding-bottom: 11px;
}
.rp-row--total .rp-row__name { font-weight: 700; font-size: 14px; }
.rp-row--total .rp-row__value { font-size: 17px; color: var(--cyan); }

.rp-group__head {
  padding: 12px 18px;
}
.rp-group__title { font-size: 17px; }

@media (max-width: 560px){
  .rp-row { padding: 10px 14px; gap: 6px; grid-template-columns: 1fr; align-items: start; }
  .rp-row__value { font-size: 16px; }
  .rp-group__head { padding: 12px 14px; }
}

/* ─────── ARTICLES — по номенклатуре ─────── */
.rp-articles {
  margin-top: 28px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-l);
  background: rgba(255,255,255,.025);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.rp-articles__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.rp-articles__title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -.02em;
  margin: 8px 0 6px;
}
.rp-articles__title em {
  font-style: normal;
  background: var(--grad-1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rp-articles__sub {
  font-size: 13px; color: var(--ink-2); max-width: 640px; line-height: 1.45;
}
.eyebrow--inline {
  margin-bottom: 0;
  padding: 4px 10px;
  font-size: 10.5px;
  background: rgba(0,240,255,.05);
}
.rp-articles__tools {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  flex-shrink: 0;
}
.rp-articles__sort {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: .08em;
}
.rp-articles__sort select {
  font-family: var(--mono); font-size: 12px;
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 24px 6px 10px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' fill='none' stroke='%2300F0FF' stroke-width='1.4'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.rp-articles__sort select:focus { border-color: var(--cyan); }
.rp-articles__btn {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--red);
  background: rgba(255,61,90,.06);
  border: 1px solid rgba(255,61,90,.25);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.rp-articles__btn:hover { background: rgba(255,61,90,.12); border-color: rgba(255,61,90,.45); }

@media (max-width: 720px){
  .rp-articles__head { flex-direction: column; }
  .rp-articles__tools { width: 100%; }
}

/* — Тоталы — */
.rp-art-totals {
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(123,47,247,.06), transparent);
}
.rp-art-totals__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 720px){
  .rp-art-totals__row { grid-template-columns: repeat(2, 1fr); }
}
.rp-art-totals__cell {
  display: flex; flex-direction: column; gap: 4px;
}
.rp-art-totals__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rp-art-totals__val {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(16px, 2vw, 22px);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.rp-art-totals__val.is-pos { color: var(--acid); }
.rp-art-totals__val.is-neg { color: var(--red); }
.rp-art-totals__sub {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  font-weight: 400;
  margin-left: 2px;
}

/* — Таблица (desktop = grid) — */
.rp-art-table { display: flex; flex-direction: column; }

.rp-art-head, .rp-art {
  display: grid;
  /* артикул | шт | оборот | расходы | зак.цена | чп | маржа */
  grid-template-columns: minmax(180px, 1.6fr) 70px 1fr 1fr 140px 1.4fr 1.1fr;
  gap: 14px;
  align-items: center;
}

.rp-art-head {
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255,255,255,.02);
  position: sticky; top: 60px;
  z-index: 2;
}
.rp-art-list { display: flex; flex-direction: column; }

.rp-art {
  padding: 11px 22px;
  border-top: 1px solid rgba(255,255,255,.04);
  border-left: 3px solid transparent;
  transition: background .2s, border-left-color .2s;
  position: relative;
}
.rp-art:hover { background: rgba(255,255,255,.025); }
.rp-art--profit  { border-left-color: var(--acid); }
.rp-art--loss    { border-left-color: var(--red); }
.rp-art--unknown { border-left-color: var(--ink-3); border-left-style: dashed; }

.rp-art__cell { min-width: 0; }
.rp-art__cell b {
  font-family: var(--display); font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rp-art__art span {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink);
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}
.rp-art__neg-cell b { color: var(--red); }

.rp-art__cost {
  position: relative;
}
.rp-art__input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 6px 36px 6px 10px;
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink);
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, background .2s;
  -moz-appearance: textfield;
}
.rp-art__input::-webkit-outer-spin-button,
.rp-art__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rp-art__input:focus { border-color: var(--cyan); background: rgba(0,240,255,.06); }
.rp-art__input::placeholder { color: var(--ink-3); }
.rp-art__input-unit {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3);
  pointer-events: none;
}

.rp-art__net { display: flex; flex-direction: column; gap: 2px; }
.rp-art--profit .rp-art__net-val { color: var(--acid); }
.rp-art--loss   .rp-art__net-val { color: var(--red); }
.rp-art--unknown .rp-art__net-val { color: var(--ink-3); }
.rp-art__net-cs {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: .02em;
}

.rp-art__margin { display: flex; flex-direction: column; gap: 4px; }
.rp-art__bar {
  display: block;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}
.rp-art__bar-fill {
  display: block;
  height: 100%;
  background: var(--grad-3);
  border-radius: 999px;
  transition: width .25s ease;
}
.rp-art--loss .rp-art__bar-fill {
  background: linear-gradient(90deg, var(--red), #FF8FBE);
}

/* ─────── Мобильная версия таблицы — карточки ─────── */
@media (max-width: 880px) {
  .rp-art-head { display: none; }
  .rp-art {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    padding: 14px 18px;
    border-left-width: 4px;
  }
  .rp-art__cell {
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
  }
  .rp-art__cell::before {
    content: attr(data-l);
    font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
    color: var(--ink-3); text-transform: uppercase;
  }
  .rp-art__art { grid-column: 1 / -1; }
  .rp-art__art span {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }
  .rp-art__cost { grid-column: 1 / -1; }
  .rp-art__net  { grid-column: 1; }
  .rp-art__margin { grid-column: 2; }
  .rp-art__net-val { font-size: 17px; }
  .rp-art__bar { height: 5px; }
}

/* ─────── UNACCOUNTED ─────── */
.rp-unaccounted {
  margin-top: 28px;
  border: 1px solid rgba(255,61,90,.3);
  border-radius: var(--radius-l);
  background: rgba(255,61,90,.05);
  padding: 22px;
}
.rp-unaccounted__head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.rp-unaccounted__stamp {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  color: var(--red);
  padding: 3px 8px;
  border: 1px dashed var(--red); border-radius: 6px;
  transform: rotate(-3deg);
}
.rp-unaccounted h3 {
  font-family: var(--display); font-weight: 700;
  font-size: 18px; letter-spacing: -.02em;
}
.rp-unaccounted h3 em {
  font-style: normal; color: var(--red);
}
.rp-unaccounted p { font-size: 13.5px; color: var(--ink-2); max-width: 640px; width: 100%; margin-top: 6px; }
.rp-unaccounted__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rp-unaccounted__list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--mono); font-size: 12.5px;
}
.rp-unaccounted__list li b {
  font-family: var(--display);
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

/* ─────── ACTIONS ─────── */
.rp-result__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
@media (max-width: 560px){
  .rp-result__actions .btn { width: 100%; }
}

/* плавное появление результата */
.rp-result[hidden] { display: none; }
.rp-result {
  animation: rp-fade-in .5s ease;
}
@keyframes rp-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
