/* «История» в «Обзоре» (deploy108, 11.10.2026): воронка, итоги, таблицы по типам и оценке */
.hi-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 4px 0 10px; }
.hi-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-muted); }
.hi-f select { font: inherit; font-size: 13px; color: var(--text); min-height: 34px; padding: 3px 8px; border: 1px solid var(--border, #d4d1ca); border-radius: 6px; background: var(--surface, #fff); max-width: 100%; }
.hi-ck { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; font-size: 13px; cursor: pointer; }
.hi-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 10px; }
.hi-grid.is-busy, .hi-grid.is-busy ~ section { opacity: .6; }
.hi-fun, .hi-tot { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 12px; }
.hi-step, .hi-tot > div { display: flex; flex-direction: column; gap: 1px; padding: 4px 0; border-bottom: 1px dashed var(--border, #d4d1ca); min-width: 0; }
.hi-step span, .hi-tot span { font-size: 12px; color: var(--text-muted); }
.hi-step b, .hi-tot b { font-size: 16px; font-variant-numeric: tabular-nums; }
.hi-t b { color: #437a22; }
.hi-s b { color: #a12c7b; }
.hi-few { display: inline-block; font-size: 11px; font-weight: 500; color: #964219; background: rgba(150,66,25,.1); border-radius: 8px; padding: 0 6px; margin-left: 4px; white-space: nowrap; }
.hi-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.hi-tab { border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; width: 100%; }
.hi-tab th { font-size: 12px; font-weight: 600; color: var(--text-muted); text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--border, #d4d1ca); white-space: nowrap; }
.hi-tab td { text-align: right; padding: 5px 8px; border-bottom: 1px solid var(--border, #e6e4df); white-space: nowrap; }
.hi-tab th:nth-child(-n+2), .hi-tab td:nth-child(-n+2) { text-align: left; }
.hi-list th:nth-child(-n+3), .hi-list td:nth-child(-n+3), .hi-list td:nth-child(5), .hi-list th:nth-child(5), .hi-tab td.hi-l { text-align: left; }
.hi-list tbody tr { cursor: pointer; }
.hi-list tbody tr:hover, .hi-list tbody tr:focus { background: var(--surface-2, rgba(0,0,0,.04)); outline: none; }
.hi-st { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--surface-2, rgba(0,0,0,.05)); }
.hi-st-target { background: rgba(67,122,34,.14); color: #437a22; }
.hi-st-stop, .hi-st-failed { background: rgba(161,44,123,.12); color: #a12c7b; }
.ov-tabs { overflow-x: auto; scrollbar-width: none; }
.ov-tabs::-webkit-scrollbar { display: none; }
.ov-tab { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 700px) {
    .hi-grid { grid-template-columns: minmax(0, 1fr); }
    .hi-fun, .hi-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hi-f { flex: 1 1 45%; }
    .hi-f select { width: 100%; }
}
.hi-tot .hi-few, .hi-step .hi-few { align-self: flex-start; margin-left: 0; }
.hi-few-all { margin-left: 0; white-space: normal; }

/* 109 (11.10.2026): воронка полосами и составная полоса итогов */
.hi-fun2 { display: flex; flex-direction: column; gap: 8px; }
.hi-fs { display: flex; flex-direction: column; gap: 3px; }
.hi-fs-h { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; }
.hi-fs-h span:first-child { color: var(--text-muted); }
.hi-fs-h b { font-variant-numeric: tabular-nums; font-size: 15px; }
.hi-fs-t { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hi-fs-t i { display: block; height: 100%; border-radius: 999px; background: #8b5cf6; }
.hi-fs.is-1 .hi-fs-t i { background: #3b82f6; }
.hi-fs.is-2 .hi-fs-t i { background: #14b8a6; }
.hi-mix { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; margin-top: 4px; background: var(--surface-2); }
.hi-mix i { display: block; min-width: 4px; }
.hi-mix-t { margin: 0 0 8px; }
.hi-c-t { background: #26a69a; }
.hi-c-s { background: #ef5350; }
.hi-c-e { background: #94a3b8; }
.hi-c-o { background: #3b82f6; }
.hi-mixk { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--text-muted); }
.hi-k { background: none !important; display: inline-flex; align-items: center; gap: 5px; }
.hi-k::before { content: ''; width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.hi-k.hi-c-t::before { background: #26a69a; } .hi-k.hi-c-s::before { background: #ef5350; } .hi-k.hi-c-e::before { background: #94a3b8; } .hi-k.hi-c-o::before { background: #3b82f6; }
.hi-k b { color: var(--text); font-variant-numeric: tabular-nums; }
.hi-tot { gap: 8px; }
.hi-tot > div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.hi-sh { display: inline-block; width: 44px; height: 6px; border-radius: 999px; background: var(--surface-2); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.hi-sh i { display: block; height: 100%; background: #26a69a; border-radius: 999px; }
.hi-t b { color: #26a69a; }
.hi-s b { color: #ef5350; }
.hi-few { color: #d97706; background: rgba(217, 119, 6, .12); }
.hi-tot b span, .hi-step b span { font-size: inherit; color: inherit; }
.hi-tot b .hi-up { color: #26a69a; } .hi-tot b .hi-dn { color: #ef5350; }

/* 113j (13.10.2026): «Статистика» исходов по классам */
.st-views { display: inline-flex; gap: 6px; margin: 0 0 10px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.st-grid > .ov-card { margin: 0; }
.st-out { font-size: 13.5px; line-height: 1.5; margin: 2px 0 10px; }
.st-out b { font-variant-numeric: tabular-nums; }
.st-tot { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.st-few { font-size: 13px; color: #d97706; background: rgba(217, 119, 6, .1); border-radius: 8px; padding: 6px 10px; margin: 2px 0 8px; }
.st-more { margin-top: 10px; }
.st-more summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-muted); padding: 4px 0; }
.st-more .hi-scroll + .hi-scroll { margin-top: 8px; }
.st-tab td:nth-child(8) { white-space: nowrap; }
section.st-adm { border-style: dashed; }
.st-more-adm summary { color: #d97706; }
.st-views { border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; }
.st-view { font: inherit; font-size: 13px; min-height: 30px; padding: 3px 14px; border: 0; border-radius: 6px; background: none; color: var(--text-muted); cursor: pointer; }
.st-view.is-on { background: var(--surface-2); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border); }
.st-view:focus-visible { outline: 2px solid #3b82f6; outline-offset: 1px; }
.st-line { font-size: 13px; line-height: 1.55; }
.st-line b { font-weight: 600; }
.st-line-n { font-size: 12px; margin-top: 2px; }
@media (max-width: 900px) { .st-grid { grid-template-columns: minmax(0, 1fr); } }
/* Карточка класса — обычный блок: широкие таблицы листаются внутри .hi-scroll, а не растягивают колонку */
.st-cls { display: block; min-width: 0; }
.st-cls > * { min-width: 0; max-width: 100%; }
@media (max-width: 700px) { .st-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 150 (20.10.2026): «мало данных» в светлой теме — контраст не ниже 4,5 */
[data-theme="light"] .hi-few { color: #8a4a00; }
