/* Slotester 0.12.10 — hero-инфографики посадочных (.ai-hv), обложка рядом с текстом, рубрика Research, шапка. Дополняет main.css. */

/* ---------- приборы hero ---------- */
.ai-hv { padding: 30px 12px 10px; background: var(--ai-bg); }
.ai-hv-dot { width: 7px; height: 7px; border-radius: 4px; background: var(--ai-accent); box-shadow: 0 0 8px rgba(94,234,212,.9); animation: ai-pulse 1.6s ease-in-out infinite; flex: 0 0 auto; }
.ai-hv .ai-visual-head { align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-hv-tick { margin-left: auto; color: var(--ai-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-hv-svg { display: block; width: 100%; height: auto; border: 1px solid var(--ai-line); border-radius: 4px; background: linear-gradient(180deg, rgba(94,234,212,.03), transparent 40%), repeating-linear-gradient(90deg, transparent 0 63px, var(--ai-line) 63px 64px), repeating-linear-gradient(180deg, transparent 0 49px, var(--ai-line) 49px 50px); overflow: visible; }
.ai-hv-label { fill: var(--ai-muted); font: 11px var(--ai-mono); }
.ai-hv-val { fill: var(--ai-text); font: 11px var(--ai-mono); font-variant-numeric: tabular-nums; }
.ai-hv-readout { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; padding: 0 10px; border: 1px solid var(--ai-line); border-radius: 4px; background: rgba(17,22,29,.7); font-size: 11px; height: 34px; overflow: hidden; }
.ai-hv-ro-name { flex: 0 1 auto; min-width: 0; max-width: 34%; color: var(--ai-accent); font-weight: 600; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-hv-ro-val { flex: 1 1 auto; min-width: 0; color: var(--ai-text-2); text-align: right; font-size: 10.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-hv-legend { display: flex; justify-content: space-between; gap: 10px; margin: 6px 2px 0; font-size: 10.5px; color: var(--ai-muted); line-height: 1.4; }
.ai-hv-name { color: var(--ai-accent); text-align: right; white-space: nowrap; }
.ai-hv-pt, .ai-hv-row, .ai-hv-lane { cursor: pointer; }
.ai-hv-pt:focus, .ai-hv-row:focus, .ai-hv-lane:focus { outline: none; }
.ai-hv-scan { stroke: var(--ai-accent); stroke-width: 1; opacity: 0; filter: drop-shadow(0 0 5px rgba(94,234,212,.9)); }

/* 1. лестница отклонений RTP */
.ai-hv-declared { stroke: var(--ai-warn); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: .8; }
.ai-hv-hit { fill: transparent; }
.ai-hv-lad { transform-box: fill-box; transform: scaleY(0); transition: fill .2s; }
.ai-hv-pt.is-up .ai-hv-lad { fill: var(--ai-accent); transform-origin: center bottom; }
.ai-hv-pt.is-down .ai-hv-lad { fill: var(--ai-warn); transform-origin: center top; }
.ai-hv.is-anim .ai-hv-lad, .ai-hv.is-static .ai-hv-lad { animation: ai-hv-grow .55s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
.ai-hv.is-static .ai-hv-lad { animation-duration: 0s; animation-delay: 0s; }
.ai-hv-ci { stroke: var(--ai-text); stroke-width: 1.3; opacity: 0; transition: opacity .2s; }
.ai-hv-pt.is-hot .ai-hv-ci { opacity: .95; }
.ai-hv-pt.is-hot .ai-hv-lad { fill: var(--ai-text); filter: drop-shadow(0 0 6px rgba(94,234,212,.9)); }
.ai-hv-pt:hover .ai-hv-lad { fill: var(--ai-text); }
@keyframes ai-hv-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* 2. принтер билетов */
.ai-hv-bar { opacity: .12; transition: opacity .25s; }
.ai-hv-bar.is-on { opacity: .85; }
.ai-hv-bar.is-up { fill: var(--ai-accent); }
.ai-hv-bar.is-down { fill: var(--ai-warn); }
.ai-hv-bar.is-on.is-up { filter: drop-shadow(0 0 4px rgba(94,234,212,.5)); }
.ai-hv.is-static .ai-hv-bar { opacity: .85; }
.ai-hv-mean { fill: none; stroke: var(--ai-text); stroke-width: 1.5; stroke-linejoin: round; opacity: .9; }
.ai-hv-head { stroke: var(--ai-accent); stroke-width: 1.5; opacity: 0; filter: drop-shadow(0 0 6px rgba(94,234,212,.9)); }
.ai-hv.is-anim .ai-hv-head.is-live { opacity: .9; }
.ai-hv-buy.is-swap .ai-hv-svg { animation: ai-hv-swap .5s ease; }
@keyframes ai-hv-swap { 0% { opacity: 1; } 40% { opacity: .25; } 100% { opacity: 1; } }

/* 3. альтиметр */
.ai-hv-max .ai-hv-readout { height: 52px; }
.ai-hv-alt { stroke: var(--ai-accent); stroke-width: 7; stroke-linecap: round; opacity: .8; filter: drop-shadow(0 0 5px rgba(94,234,212,.35)); transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1), opacity .3s; transition-delay: var(--d, 0s), 0s; }
.ai-hv-row.is-hot .ai-hv-alt { opacity: 1; stroke: var(--ai-accent-2); }
.ai-hv-row .ai-hv-val { opacity: 0; transition: opacity .4s; transition-delay: calc(var(--d, 0s) + .9s); }
.ai-hv.is-anim .ai-hv-row .ai-hv-val, .ai-hv.is-static .ai-hv-row .ai-hv-val { opacity: 1; }
.ai-hv.is-static .ai-hv-row .ai-hv-val { transition: none; }
.ai-hv-captrack { stroke: rgba(94,234,212,.11); stroke-width: 9; stroke-linecap: round; transition: stroke .3s; }
.ai-hv-row.is-hot .ai-hv-captrack { stroke: rgba(251,191,36,.2); }
.ai-hv-capval { fill: var(--ai-muted); font: 9.5px var(--ai-mono); opacity: 0; transition: opacity .4s; transition-delay: calc(var(--d, 0s) + .9s); }
.ai-hv.is-anim .ai-hv-row .ai-hv-capval, .ai-hv.is-static .ai-hv-row .ai-hv-capval { opacity: .9; }
.ai-hv-row.is-hot .ai-hv-capval { fill: var(--ai-warn); }
.ai-hv-dial { width: 80px; height: 46px; flex: 0 0 auto; }
.ai-hv-dial-arc { fill: none; stroke: var(--ai-line-2); stroke-width: 6; }
.ai-hv-dial-fill { fill: none; stroke: var(--ai-accent); stroke-width: 6; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 4px rgba(94,234,212,.6)); }
.ai-hv-dial-needle { stroke: var(--ai-text); stroke-width: 2; stroke-linecap: round; transform-origin: 40px 40px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.ai-hv-dial-pin { fill: var(--ai-accent); }

/* 4. ожидание фриспинов: точка = средний интервал, кольцо = самая долгая пауза */
.ai-hv-track { stroke: var(--ai-line-2); stroke-width: 1; }
.ai-hv-link { stroke: var(--ai-warn); stroke-width: 2; stroke-linecap: round; opacity: .12; transition: opacity .4s; }
.ai-hv-link.is-on { opacity: .7; }
.ai-hv-avg { fill: var(--ai-accent); stroke: var(--ai-bg); stroke-width: 2; opacity: .18; transition: opacity .3s; transform-box: fill-box; transform-origin: center; }
.ai-hv-gapdot { fill: var(--ai-bg); stroke: var(--ai-warn); stroke-width: 2; opacity: .18; transition: opacity .3s; transform-box: fill-box; transform-origin: center; }
.ai-hv-avg.is-on { opacity: 1; filter: drop-shadow(0 0 6px rgba(94,234,212,.85)); animation: ai-hv-pop .5s ease-out; }
.ai-hv-gapdot.is-on { opacity: 1; filter: drop-shadow(0 0 5px rgba(251,191,36,.6)); animation: ai-hv-pop .5s ease-out; }
.ai-hv-lane.is-lit .ai-hv-label { fill: var(--ai-text-2); }
.ai-hv-lane.is-hot .ai-hv-track { stroke: var(--ai-accent); opacity: .5; }
.ai-hv-lane.is-hot .ai-hv-label, .ai-hv-lane.is-hot .ai-hv-val { fill: var(--ai-accent); }
.ai-hv-lane.is-hot .ai-hv-avg { stroke: var(--ai-text); }
.ai-hv-playhead { stroke: var(--ai-accent); stroke-width: 1; opacity: 0; filter: drop-shadow(0 0 6px rgba(94,234,212,.9)); }
.ai-hv.is-anim .ai-hv-playhead.is-live { opacity: .9; }
@keyframes ai-hv-pop { 0% { transform: scale(2.1); } 100% { transform: none; } }

/* ---------- обложка посадочной рядом с текстом раздела ---------- */
.ai-land-cols-figure { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ai-land-cols-single { grid-template-columns: minmax(0, 1fr); }
.ai-land-cols-single > div { max-width: 820px; }
.ai-land-cover { margin: 0; padding: 8px; }
.ai-land-cover .ai-tp-hero-img { border-radius: 3px; }
.ai-land-cover figcaption { margin-top: 6px; }
.ai-land-steps-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding: 0; border-left: 0; }
.ai-land-steps-row li, .ai-principles.ai-land-steps-row li:last-child { padding: 12px 14px; border: 1px dashed var(--ai-line-2); border-radius: 4px; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; align-content: start; }

/* ---------- Research: индекс (полка отчётов) ---------- */
.ai-rs-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; padding: 40px 40px 34px; margin-bottom: 32px; border: 1px solid var(--ai-line); border-radius: var(--ai-r); background: linear-gradient(180deg, var(--ai-card), #0e1319); overflow: hidden; }
.ai-rs-hero-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(94,234,212,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(94,234,212,.06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(70% 90% at 80% 40%, #000 20%, transparent 100%); mask-image: radial-gradient(70% 90% at 80% 40%, #000 20%, transparent 100%); }
.ai-rs-hero-text, .ai-rs-hero-panel { position: relative; }
.ai-rs-hero .ai-h1 { margin: 0 0 14px; }
.ai-rs-lead { color: var(--ai-text-2); font-size: 17px; line-height: 1.6; max-width: 560px; margin: 0 0 18px; }
.ai-rs-panel { padding: 30px 14px 12px; background: var(--ai-bg); }
.ai-rs-panel-head { display: flex; align-items: center; gap: 8px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ai-muted); margin-bottom: 10px; }
.ai-rs-panel-head .ai-rs-panel-n { margin-left: auto; color: var(--ai-accent); font-variant-numeric: tabular-nums; }
.ai-rs-cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(15px, 1fr)); gap: 4px; margin: 0 0 10px; padding: 8px; border: 1px solid var(--ai-line); border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 63px, var(--ai-line) 63px 64px), repeating-linear-gradient(180deg, transparent 0 49px, var(--ai-line) 49px 50px); }
.ai-rs-cell { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--ai-accent); opacity: .1; transform: scale(.55); cursor: pointer; }
.ai-rs-cell.is-down { background: var(--ai-warn); }
.ai-rs-cells.is-live .ai-rs-cell { animation: ai-rs-cell-in .45s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
.ai-rs-cells.is-static .ai-rs-cell, .ai-rs-cells.is-set .ai-rs-cell { animation: none; opacity: .8; transform: none; }
.ai-rs-cells.is-set.is-sweep .ai-rs-cell { animation: ai-rs-sweep .9s ease-out; animation-delay: calc(var(--d, 0s) * .5); }
.ai-rs-cell.is-hot, .ai-rs-cell:hover { opacity: 1 !important; transform: scale(1.1) !important; box-shadow: 0 0 0 1.5px var(--ai-text), 0 0 10px rgba(94,234,212,.75); }
@keyframes ai-rs-cell-in { to { opacity: .8; transform: none; } }
@keyframes ai-rs-sweep { 0% { opacity: .8; transform: none; } 35% { opacity: 1; transform: scale(1.2); filter: brightness(1.5) drop-shadow(0 0 5px rgba(94,234,212,.9)); } 100% { opacity: .8; transform: none; filter: none; } }
.ai-rs-panel-live { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 12px; padding: 6px 10px; border: 1px solid var(--ai-line); border-radius: 4px; background: rgba(17,22,29,.7); font-size: 10.5px; letter-spacing: .04em; color: var(--ai-muted); min-height: 30px; }
.ai-rs-live-k { text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.ai-rs-live-v { color: var(--ai-accent); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ai-rs-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ai-rs-stats li { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--ai-line); border-radius: 4px; min-width: 0; }
.ai-rs-stats b { font-size: 19px; font-weight: 600; color: var(--ai-text); font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.ai-rs-stats span { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-muted); white-space: nowrap; }
.ai-rs-panel-foot { margin-top: 10px; font-size: 10.5px; color: var(--ai-muted); display: flex; justify-content: space-between; gap: 10px; }
.ai-rs-shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ai-rs-item { position: relative; display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: center; padding: 16px 20px 16px 16px; background: var(--ai-card); border: 1px solid var(--ai-line); border-radius: var(--ai-r); overflow: hidden; opacity: 0; transform: translateY(8px); animation: ai-boot-in .55s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); transition: border-color .2s, box-shadow .2s; }
.ai-rs-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ai-accent); opacity: 0; transition: opacity .2s; }
.ai-rs-item:hover { border-color: var(--ai-line-2); box-shadow: 0 0 0 1px rgba(94,234,212,.08), 0 0 34px rgba(94,234,212,.07); }
.ai-rs-item:hover::before { opacity: 1; }
.ai-rs-no { display: flex; flex-direction: column; gap: 4px; font-family: var(--ai-mono); }
.ai-rs-no b { font-size: 26px; font-weight: 600; color: var(--ai-accent); line-height: 1; letter-spacing: -.02em; }
.ai-rs-no span { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ai-muted); }
.ai-rs-title { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 0 0 6px; }
.ai-rs-title a { color: var(--ai-text); }
.ai-rs-title a:hover { color: var(--ai-accent); }
.ai-rs-abs { margin: 0 0 8px; color: var(--ai-text-2); font-size: 14.5px; line-height: 1.55; }
.ai-rs-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ai-muted); }
.ai-rs-meta b { color: var(--ai-text); font-weight: 600; }
.ai-rs-meta .is-live { color: var(--ai-accent); }
.ai-rs-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border: 1px solid var(--ai-line); border-radius: 4px; overflow: hidden; background: var(--ai-bg); transition: border-color .2s; }
.ai-rs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ai-rs-thumb.is-fig { display: flex; flex-direction: column; justify-content: center; padding: 10px 12px 8px; background: linear-gradient(180deg, rgba(94,234,212,.04), transparent 50%), repeating-linear-gradient(90deg, transparent 0 31px, var(--ai-line) 31px 32px), var(--ai-bg); }
.ai-rs-item:hover .ai-rs-thumb { border-color: rgba(94,234,212,.4); }
.ai-rs-fig { position: relative; }
.ai-rs-fig svg { display: block; width: 100%; height: auto; }
.ai-rs-fig-cap { display: block; margin-top: 4px; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ai-muted); text-align: right; }
.ai-rs-spark { fill: var(--ai-accent); opacity: .75; }
.ai-rs-spark.is-warn { fill: var(--ai-warn); }
.ai-rs-line { fill: none; stroke: var(--ai-accent); stroke-width: 1.5; }
.ai-rs-grid { stroke: var(--ai-line); stroke-width: 1; }
.ai-rs-queue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-rs-queue li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; align-items: start; padding: 12px 14px; border: 1px dashed var(--ai-line-2); border-radius: 4px; color: var(--ai-text-2); font-size: 14px; line-height: 1.45; }
.ai-rs-queue b { font-family: var(--ai-mono); font-size: 11px; color: var(--ai-muted); letter-spacing: .08em; padding-top: 3px; }
.ai-rs-queue small { display: block; margin-top: 3px; font: 10.5px var(--ai-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ai-muted); }
.ai-rs-empty { color: var(--ai-muted); }

/* ---------- Research: навигация по статье ---------- */
.ai-rs-toc { margin: 18px 0 0; border: 1px solid var(--ai-line); border-radius: var(--ai-r); background: var(--ai-bg); overflow: hidden; }
.ai-rs-toc-head { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 9px 14px; background: linear-gradient(90deg, rgba(94,234,212,.07), transparent 60%); border: 0; color: var(--ai-muted); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; text-align: left; cursor: default; }
.ai-rs-toc-pos { margin-left: auto; color: var(--ai-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ai-rs-toc-chev { display: none; color: var(--ai-muted); transition: transform .2s; }
.ai-rs-toc-bar { height: 2px; background: var(--ai-line); }
.ai-rs-toc-bar i { display: block; height: 100%; width: 0; background: var(--ai-accent); box-shadow: 0 0 8px rgba(94,234,212,.8); transition: width .35s ease; }
.ai-rs-toc-list { list-style: none; margin: 0; padding: 6px 14px 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.ai-rs-toc-list a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 6px 4px; margin: 0 -4px; border-bottom: 1px dashed var(--ai-line); border-radius: 3px; color: var(--ai-text-2); font-size: 13px; line-height: 1.35; transition: color .15s, background .15s; }
.ai-rs-toc-list li:nth-last-child(-n+2) a { border-bottom: 0; }
.ai-rs-toc-list b { font: 10.5px var(--ai-mono); color: var(--ai-accent); letter-spacing: .08em; }
.ai-rs-toc-list a:hover { color: var(--ai-text); background: rgba(94,234,212,.05); }
.ai-rs-toc-list li.is-current a { color: var(--ai-text); background: linear-gradient(90deg, rgba(94,234,212,.09), transparent 70%); }
.ai-rs-toc-list li.is-current b { text-shadow: 0 0 8px rgba(94,234,212,.9); }
.ai-rs-toc-list li.is-done b { color: var(--ai-muted); }

/* ---------- Research: статья ---------- */
.ai-rs-article .ai-tp-meta { flex-wrap: wrap; row-gap: 6px; }
.ai-rs-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid rgba(94,234,212,.35); border-radius: 3px; color: var(--ai-accent); font: 10.5px var(--ai-mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.ai-rs-badge::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: var(--ai-accent); box-shadow: 0 0 6px rgba(94,234,212,.9); animation: ai-pulse 1.6s ease-in-out infinite; }
.ai-rs-body { font-size: 16.5px; line-height: 1.7; color: var(--ai-text-2); }
.ai-rs-body h2 { font-size: 24px; margin: 34px 0 12px; color: var(--ai-text); padding-top: 12px; border-top: 1px solid var(--ai-line); }
.ai-rs-body h3 { font-size: 18px; margin: 24px 0 8px; color: var(--ai-text); }
.ai-rs-body p { margin: 0 0 1em; }
.ai-rs-body ul, .ai-rs-body ol { margin: 0 0 1em 1.2em; padding: 0; }
.ai-rs-body li { margin: 0 0 .4em; }
.ai-rs-body strong { color: var(--ai-text); }
.ai-lab-stat { color: var(--ai-text); font-weight: 600; font-variant-numeric: tabular-nums; border-bottom: 1px dotted rgba(94,234,212,.45); }
.ai-lab-block { margin: 22px 0 26px; padding: 14px 14px 12px; background: var(--ai-bg); border: 1px solid var(--ai-line); border-radius: var(--ai-r); }
.ai-lab-block-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 10.5px var(--ai-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ai-muted); }
.ai-lab-block-head .ai-rs-badge { margin-left: auto; }
.ai-lab-block .ai-visual { padding: 0; background: none; }
.ai-lab-block .ai-hv { padding: 0; }
.ai-lab-block .ai-lab-frame::before, .ai-lab-block .ai-lab-frame::after, .ai-lab-block .ai-lab-frame > i.ai-corner { display: none; }
.ai-lab-block figcaption, .ai-lab-block-foot { margin-top: 8px; font: 10.5px var(--ai-mono); color: var(--ai-muted); }
.ai-lab-block-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-lab-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ai-lab-table th { text-align: left; font: 10.5px var(--ai-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ai-muted); padding: 6px 8px; border-bottom: 1px solid var(--ai-line-2); }
.ai-lab-table td { padding: 7px 8px; border-bottom: 1px solid var(--ai-line); color: var(--ai-text-2); font-variant-numeric: tabular-nums; }
.ai-lab-table td.is-num, .ai-lab-table th.is-num { text-align: right; font-family: var(--ai-mono); }
.ai-lab-table td a { color: var(--ai-text); }
.ai-lab-table td a:hover { color: var(--ai-accent); }
.ai-lab-table tr.is-up td.is-key { color: var(--ai-accent); }
.ai-lab-table tr.is-down td.is-key { color: var(--ai-warn); }
.ai-lab-bar { display: inline-block; height: 6px; background: var(--ai-accent); border-radius: 3px; vertical-align: middle; margin-right: 6px; box-shadow: 0 0 6px rgba(94,234,212,.4); }
.ai-lab-bar.is-warn { background: var(--ai-warn); box-shadow: 0 0 6px rgba(251,191,36,.4); }
.ai-rs-data { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.ai-rs-data .ai-callout { margin: 0; }
.ai-rs-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ai-rs-related a { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--ai-card); border: 1px solid var(--ai-line); border-radius: var(--ai-r); color: var(--ai-text); }
.ai-rs-related a:hover { border-color: var(--ai-line-2); color: var(--ai-accent); }
.ai-rs-related small { font: 10.5px var(--ai-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ai-muted); }
.ai-rs-related b { font-size: 15px; font-weight: 600; line-height: 1.3; }

/* ---------- главная: Lab reports ---------- */
.ai-home-reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ai-home-report { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; background: var(--ai-bg); border: 1px solid var(--ai-line); border-radius: var(--ai-r); transition: border-color .2s, box-shadow .2s; }
.ai-home-report:hover { border-color: var(--ai-line-2); box-shadow: 0 0 28px rgba(94,234,212,.06); }
.ai-home-report .ai-rs-no b { font-size: 20px; }
.ai-home-report h3 { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.ai-home-report h3 a { color: var(--ai-text); }
.ai-home-report h3 a:hover { color: var(--ai-accent); }
.ai-home-report p { margin: 0; font-size: 13.5px; color: var(--ai-text-2); line-height: 1.5; }

/* ---------- шапка: пять пунктов рейтингов в одну строку ---------- */
.ai-header-in { gap: 20px; }
.ai-nav-ranks { gap: 4px; }
.ai-nav-rank { white-space: nowrap; padding: 7px 9px; }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .ai-header-tags .ai-hdr-status .ai-hdr-seg.is-hide-sm:first-child { display: none; }
}
@media (max-width: 1140px) {
  .ai-nav-rank { gap: 6px; padding: 7px 7px; font-size: 12.5px; }
  .ai-hdr-seg { padding: 8px 9px; }
  .ai-header-in { gap: 14px; }
}
@media (max-width: 980px) {
  .ai-rs-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 22px 22px; gap: 22px; }
  .ai-rs-item { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
  .ai-rs-related, .ai-home-reports { grid-template-columns: minmax(0, 1fr); }
  .ai-rs-data { grid-template-columns: minmax(0, 1fr); }
  .ai-rs-queue { grid-template-columns: minmax(0, 1fr); }
  .ai-land-cols-figure { grid-template-columns: minmax(0, 1fr); }
  .ai-land-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ai-hv { padding: 30px 8px 8px; }
  .ai-hv-readout { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 46px; padding: 0 10px; }
  .ai-hv-ro-name, .ai-hv-ro-val { width: 100%; max-width: none; flex: 0 0 auto; text-align: left; }
  .ai-hv-max .ai-hv-readout { height: 46px; }
  .ai-hv-dial { display: none; }
  .ai-hv-legend { flex-direction: column; gap: 2px; }
  .ai-hv-name { text-align: left; }
  .ai-rs-hero { padding: 6px 0 16px; border: 0; background: none; border-radius: 0; margin-bottom: 20px; }
  .ai-rs-hero-bg { display: none; }
  .ai-rs-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px 12px 14px; }
  .ai-rs-no { flex-direction: row; align-items: baseline; gap: 8px; }
  .ai-rs-title { font-size: 17px; }
  .ai-rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-rs-cells { grid-template-columns: repeat(auto-fill, minmax(13px, 1fr)); gap: 3px; }
  .ai-rs-panel-n { display: none; }
  .ai-rs-toc-head { cursor: pointer; }
  .ai-rs-toc-chev { display: inline-flex; }
  .ai-rs-toc.is-open .ai-rs-toc-chev { transform: rotate(180deg); }
  .ai-rs-toc-list { display: none; grid-template-columns: minmax(0, 1fr); }
  .ai-rs-toc.is-open .ai-rs-toc-list { display: grid; }
  .ai-rs-toc-list li:nth-last-child(-n+2) a { border-bottom: 1px dashed var(--ai-line); }
  .ai-rs-toc-list li:last-child a { border-bottom: 0; }
  /* отчёты: мета-строка без висячих точек, badge переносится, тело не шире экрана */
  .ai-rs-article .ai-tp-meta { gap: 6px 10px; }
  .ai-rs-article .ai-tp-dot { display: none; }
  .ai-rs-article .ai-rs-badge { white-space: normal; max-width: 100%; }
  .ai-rs-article .ai-tp-meta > * { max-width: 100%; }
  .ai-rs-body { min-width: 0; overflow-wrap: anywhere; }
  .ai-lab-block, .ai-lab-block .ai-visual, .ai-lab-block .ai-hv-svg { max-width: 100%; }
  .ai-rs-panel-live { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ai-land-steps-row { grid-template-columns: minmax(0, 1fr); }
  .ai-lab-table { font-size: 12.5px; }
  .ai-lab-table th, .ai-lab-table td { padding: 6px 5px; }
  .ai-lab-block { overflow-x: auto; }
}
