/* «Тестирование»: наборы, запуски, результаты и сравнение (welcome-testlab.js), вкладки «API» (welcome-testlab-api.js) и «Нагрузка» (welcome-testlab-load.js).
   Цвета только из --ov-* (welcome-next.css), поэтому тёмная тема body.theme-dark работает сама. */
#section-support-testlab{--wtl-soft:color-mix(in srgb,var(--ov-text) 4%,var(--ov-surface));--wtl-tint:color-mix(in srgb,var(--ov-accent) 7%,var(--ov-surface))}
/* Полоса вкладок над «Проверкой ответа», наборами, запусками и «Сравнением настроек» */
.support-shell>.wtl-tabs{display:flex;gap:2px;margin:0 0 14px;padding:3px;border:1px solid var(--ov-line);border-radius:12px;background:var(--ov-surface);width:max-content;max-width:100%;overflow-x:auto;scrollbar-width:thin}
html body.product-support .support-shell>.wtl-tabs button{flex:none;border:0!important;background:none!important;box-shadow:none!important;min-height:0!important;padding:7px 14px!important;border-radius:9px!important;font:inherit;font-size:13px!important;font-weight:600;color:var(--ov-muted)!important;white-space:nowrap;cursor:pointer}
html body.product-support .support-shell>.wtl-tabs button:hover{color:var(--ov-text)!important}
html body.product-support .support-shell>.wtl-tabs button:is([aria-pressed=true],[aria-selected=true]){background:#141e28!important;color:#fff!important}
html body.product-support.theme-dark .support-shell>.wtl-tabs button:is([aria-pressed=true],[aria-selected=true]){background:var(--ov-accent)!important;color:#10231f!important}
html body.product-support #section-support-testlab :is(h3,h4,.wtl-dialog-head h2){color:var(--color-text-strong,var(--ov-text))!important;-webkit-text-fill-color:currentColor!important}
/* Шапка раздела */
#section-support-testlab .wt-title{display:flex;align-items:center;gap:12px;min-width:0}
#section-support-testlab .wt-title .c-ico{width:40px;height:40px;border-radius:12px}
#section-support-testlab .wt-title .c-ico svg{width:20px;height:20px}
html body.product-support #section-support-testlab .support-btn{padding:6px 12px!important;min-height:0!important;font-size:12px!important}
html body.product-support #section-support-testlab button.wt-link{display:inline;padding:0!important;margin:0!important;min-height:0!important;border:0!important;background:none!important;box-shadow:none!important;color:var(--ov-accent)!important;font:inherit!important;font-size:12px!important;font-weight:600!important;cursor:pointer}
html body.product-support #section-support-testlab .support-btn.wtl-danger{color:var(--ov-bad)!important}
#section-support-testlab :is(.wt-muted,.wtl-muted){margin:0;font-size:12px;line-height:1.5;color:var(--ov-muted)}
#section-support-testlab .wtl-empty{margin:0;padding:14px 4px;font-size:13px;color:var(--ov-muted)}
#section-support-testlab .wtl-grow{flex:1}
#section-support-testlab .wtl-ok{color:var(--ov-accent)}
#section-support-testlab .wtl-fail{display:block;color:var(--ov-bad)}
#section-support-testlab span.wtl-num.wtl-fail{display:inline}
#section-support-testlab .wtl-warn-text{display:block;color:var(--ov-warn)}
#section-support-testlab .wtl-note-line{margin:0 0 12px;padding:9px 14px;border:1px solid color-mix(in srgb,var(--tone,var(--ov-accent)) 35%,var(--ov-line));border-radius:10px;background:color-mix(in srgb,var(--tone,var(--ov-accent)) 7%,var(--ov-surface));font-size:13px}
#section-support-testlab .wtl-note-line[data-tone=bad]{--tone:var(--ov-bad)}
#section-support-testlab .wtl-note-line[hidden]{display:none}
/* Полоса состояния: идущий прогон и квота за сутки */
#section-support-testlab .wtl-strip{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:12px 24px;padding:14px 18px;margin-bottom:16px;border-top:3px solid color-mix(in srgb,var(--tone,var(--ov-line)) 60%,var(--ov-line))}
#section-support-testlab .wtl-strip-part{display:grid;gap:4px;align-content:start;min-width:0}
#section-support-testlab .wtl-strip-part b{font-size:14px}
#section-support-testlab .wtl-strip-part>span:not(.wtl-bar){font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-strip-part .support-btn{justify-self:start;margin-top:4px}
#section-support-testlab .wtl-bar{display:block;height:6px;margin:4px 0;border-radius:4px;background:var(--wtl-soft);overflow:hidden}
#section-support-testlab .wtl-bar i{display:block;height:100%;border-radius:4px;background:var(--ov-accent);transition:width .3s}
#section-support-testlab .wtl-bar.bad i{background:var(--ov-bad)}
#section-support-testlab details.wtl-limits>summary{cursor:pointer;font-size:14px;font-weight:650}
#section-support-testlab .wtl-inline{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:10px 0 8px}
#section-support-testlab .wtl-inline label{display:grid;gap:4px;font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-inline input{width:auto;min-width:120px}
/* Низкие строки списков, как в базе знаний */
#section-support-testlab .wtl-list{padding:4px 12px}
#section-support-testlab .wtl-row,#section-support-testlab .wtl-row-main{display:grid;align-items:center;gap:12px;min-width:0}
html body.product-support #section-support-testlab button.wtl-row,html body.product-support #section-support-testlab button.wtl-row-main,html body.product-support #section-support-testlab button.wtl-res-head{width:100%;margin:0!important;padding:9px 6px!important;min-height:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:inherit!important;font:inherit!important;text-align:left;cursor:pointer}
html body.product-support #section-support-testlab :is(button.wtl-row,button.wtl-row-main,button.wtl-res-head):hover{background:var(--wtl-tint)!important;box-shadow:inset 3px 0 0 var(--ov-accent)!important}
#section-support-testlab .wtl-row{border-bottom:1px solid var(--ov-line)}
#section-support-testlab .wtl-list>.wtl-row:last-child{border-bottom:0}
#section-support-testlab .wtl-case-row{grid-template-columns:minmax(0,2fr) minmax(0,.8fr) minmax(0,1fr) 90px 14px}
#section-support-testlab .wtl-version-row{grid-template-columns:minmax(0,1.4fr) 70px minmax(0,1fr) auto;padding:8px 6px}
#section-support-testlab .wtl-form>.support-btn{justify-self:start}
#section-support-testlab .wtl-run-row{grid-template-columns:28px minmax(0,1fr);gap:0}
#section-support-testlab .wtl-run-grid,#section-support-testlab .wtl-run-row>.wtl-row-main{grid-template-columns:minmax(0,1.6fr) 100px 80px 150px 80px 14px}
#section-support-testlab .wtl-thead.wtl-run-grid{grid-template-columns:28px minmax(0,1.6fr) 100px 80px 150px 80px 14px;gap:12px}
#section-support-testlab .wtl-run-row.is-picked{background:var(--wtl-tint)}
#section-support-testlab .wtl-pick{display:grid;place-items:center}
#section-support-testlab .wtl-cell-main{display:grid;gap:2px;min-width:0}
#section-support-testlab .wtl-cell-main b{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#section-support-testlab .wtl-cell-main b small{font-weight:500;color:var(--ov-muted)}
#section-support-testlab .wtl-cell-main>small{font-size:12px;color:var(--ov-muted);overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
#section-support-testlab .wtl-cell-main>small.wtl-excluded{display:block;font-size:11.5px}
#section-support-testlab .wtl-excluded-line{margin:-6px 0 12px!important}
#section-support-testlab .wtl-cell-sub{font-size:12px;color:var(--ov-muted);min-width:0;overflow-wrap:anywhere}
#section-support-testlab .wtl-num{font-size:12.5px;font-variant-numeric:tabular-nums;white-space:nowrap}
#section-support-testlab .wtl-tags{display:flex;flex-wrap:wrap;gap:4px}
#section-support-testlab .wtl-row i,#section-support-testlab .wtl-row-main i{font-style:normal;color:var(--ov-muted)}
#section-support-testlab .wtl-thead{display:grid;gap:12px;padding:6px;font-size:11px;font-weight:650;letter-spacing:.6px;text-transform:uppercase;color:var(--ov-muted);border-bottom:1px solid var(--ov-line)}
/* Страница набора и запуска */
#section-support-testlab .wtl-page-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-bottom:12px}
html body.product-support #section-support-testlab .wtl-page-head>.wt-link{flex-basis:100%;text-align:left!important;justify-content:flex-start!important}
#section-support-testlab .wtl-page-title{flex:1;min-width:220px}
#section-support-testlab .wtl-page-title h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;font-size:18px;font-weight:700;letter-spacing:-.3px}
#section-support-testlab .wtl-page-title small{font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-view>.wn-seg{margin-bottom:12px}
#section-support-testlab .wtl-progress{display:grid;gap:4px;margin:0 0 14px;font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-kpis .c-value{font-size:28px}
#section-support-testlab .wtl-res-grid{display:grid;grid-template-columns:minmax(0,1.5fr) 150px minmax(0,1.4fr) 120px;gap:12px;align-items:center}
#section-support-testlab .wtl-res{border-bottom:1px solid var(--ov-line)}
#section-support-testlab .wtl-res-filters{margin:0}
#section-support-testlab .wtl-more{padding:4px 6px 16px}
#section-support-testlab .wtl-more[hidden]{display:none}
#section-support-testlab .wtl-more-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px}
#section-support-testlab .wtl-more h4{margin:4px 0 8px;font-size:13px}
#section-support-testlab .wtl-turn{display:grid;gap:6px;margin-bottom:10px}
#section-support-testlab .wtl-q,#section-support-testlab .wtl-a{margin:0;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
#section-support-testlab .wtl-q{justify-self:end;max-width:88%;background:color-mix(in srgb,var(--ov-accent) 14%,var(--ov-surface))}
#section-support-testlab .wtl-a{border:1px solid var(--ov-line);background:var(--ov-surface)}
#section-support-testlab :is(.wtl-q,.wtl-a) b{display:block;margin-bottom:2px;font-size:11.5px;font-weight:650;color:var(--ov-muted)}
#section-support-testlab .wtl-a p{margin:0;white-space:pre-wrap}
#section-support-testlab .wtl-src{margin:6px 0 0;padding-left:18px;font-size:12px}
#section-support-testlab .wtl-src a{color:var(--ov-accent);font-weight:600}
#section-support-testlab .wtl-checks{display:grid;gap:6px;margin:0 0 10px;padding:0;list-style:none;font-size:12.5px}
#section-support-testlab .wtl-checks li{display:flex;gap:8px;align-items:baseline}
#section-support-testlab .wtl-checks li.ok{--tone:var(--ov-accent)}
#section-support-testlab .wtl-checks li.bad{--tone:var(--ov-bad);font-weight:600}
#section-support-testlab .wtl-checks small{display:block;font-weight:400;color:var(--ov-muted);overflow-wrap:anywhere}
#section-support-testlab .wtl-gold{margin:8px 0;font-size:12.5px}
#section-support-testlab .wtl-gold summary{cursor:pointer;font-weight:600;color:var(--ov-accent)}
#section-support-testlab .wtl-grade{display:grid;gap:8px;margin-top:12px}
#section-support-testlab .wtl-grade textarea{width:100%;box-sizing:border-box;font:inherit;font-size:13px}
#section-support-testlab .wtl-grade .support-btn{justify-self:start}
#section-support-testlab .wtl-more-btn{margin:10px 0 0}
/* Сравнение: два ответа рядом */
#section-support-testlab .wtl-pair-card{padding:14px 16px;margin-bottom:12px}
#section-support-testlab .wtl-cmp-total{padding:16px 18px;margin-bottom:14px}
#section-support-testlab .wtl-holdout{margin:6px 0;padding:6px 10px;border-radius:8px;font-size:13px;background:color-mix(in srgb,var(--ov-text) 5%,var(--ov-surface));color:var(--ov-text)}
#section-support-testlab .wtl-cmp-head{font-size:20px;font-weight:600;margin:0 0 8px}
#section-support-testlab .wtl-cmp-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
#section-support-testlab .wtl-cmp-list h4{margin:6px 0;font-size:14px}
#section-support-testlab .wtl-cmp-list ul{margin:0;padding-left:18px;max-height:240px;overflow:auto;font-size:13px}
@media (max-width:640px){#section-support-testlab .wtl-cmp-lists{grid-template-columns:1fr}}
#section-support-testlab .wtl-pair-card header{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 10px;margin-bottom:10px}
#section-support-testlab .wtl-pair-card header small{flex:1;min-width:200px;font-size:12.5px;color:var(--ov-muted)}
#section-support-testlab .wtl-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#section-support-testlab .wtl-side{display:grid;align-content:start;gap:6px;min-width:0;padding:10px 12px;border:1px solid var(--ov-line);border-radius:12px}
#section-support-testlab .wtl-side-tags{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
#section-support-testlab .wtl-side p{margin:0;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
#section-support-testlab #wtl-view-compare>.wn-seg{margin:4px 0 8px}
/* Диалоги и панель случая */
#section-support-testlab .wtl-dialog{width:min(760px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--ov-line);border-radius:16px;background:var(--ov-surface);color:var(--ov-text);box-shadow:var(--sh-2);overflow:hidden}
#section-support-testlab .wtl-dialog[open]{display:flex;flex-direction:column}
#section-support-testlab .wtl-dialog::backdrop{background:rgba(10,18,26,.45)}
#section-support-testlab .wtl-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--ov-line)}
#section-support-testlab .wtl-dialog-head h2{margin:0;font-size:17px!important;font-weight:700;overflow-wrap:anywhere}
#section-support-testlab .wtl-dialog-body{flex:1;min-height:0;padding:16px 18px;overflow:auto}
#section-support-testlab .wtl-drawer{margin:0 0 0 auto;width:min(560px,100vw);height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px}
#section-support-testlab .wtl-form{display:grid;gap:12px}
#section-support-testlab .wtl-form h4{margin:6px 0 0;font-size:13px;font-weight:700}
#section-support-testlab .wtl-field{display:grid;gap:4px;min-width:0;margin:0;padding:0;border:0;font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-field>span,#section-support-testlab .wtl-field>legend{font-weight:600;color:var(--ov-text)}
#section-support-testlab .wtl-field :is(input:not([type=checkbox]):not([type=radio]),select,textarea){width:100%;box-sizing:border-box;font:inherit;font-size:13px}
#section-support-testlab .wtl-field[hidden]{display:none}
#section-support-testlab .wtl-short{max-width:220px}
#section-support-testlab .wtl-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#section-support-testlab .wtl-checks-row{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--ov-text)}
#section-support-testlab .wtl-checks-row label{display:flex;align-items:center;gap:6px}
#section-support-testlab .wtl-turn-edit{display:grid;gap:2px;margin-bottom:6px}
#section-support-testlab .wtl-turn-edit .wt-link{justify-self:end}
#section-support-testlab .wtl-form-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:4px}
/* Оценка до старта */
#section-support-testlab .wtl-est{margin:0;padding:10px 14px;border:1px solid var(--ov-line);border-radius:12px;background:var(--wtl-soft);font-size:12.5px}
#section-support-testlab .wtl-est-body{display:grid;gap:3px}
#section-support-testlab .wtl-est-body b{font-size:13.5px}
#section-support-testlab .wtl-est-body span{color:var(--ov-muted)}
#section-support-testlab .wtl-est:has([data-tone=bad]){border-color:color-mix(in srgb,var(--ov-bad) 45%,var(--ov-line));background:color-mix(in srgb,var(--ov-bad) 7%,var(--ov-surface))}
#section-support-testlab .wtl-est:has([data-tone=warn]),#section-support-testlab .wtl-est.warn{border-color:color-mix(in srgb,var(--ov-warn) 45%,var(--ov-line));background:color-mix(in srgb,var(--ov-warn) 7%,var(--ov-surface))}
#section-support-testlab .wtl-est-block{margin:4px 0 0;font-weight:600;color:var(--ov-bad)}
#section-support-testlab .wtl-est-block[hidden]{display:none}
#section-support-testlab .wtl-table-wrap{max-height:320px;overflow:auto;margin-top:8px}
#section-support-testlab .wtl-table{width:100%;border-collapse:collapse;font-size:12.5px}
#section-support-testlab .wtl-table :is(th,td){padding:6px 8px!important;border:0!important;border-bottom:1px solid var(--ov-line)!important;background:none!important;color:var(--ov-text)!important;text-align:left!important;vertical-align:top!important}
#section-support-testlab .wtl-table th{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--ov-muted)!important}
/* Вторая строка вкладок внутри «Расширенных» */
.support-shell>.wtl-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin:-6px 0 14px}
html body.product-support .support-shell>.wtl-subtabs button{min-height:0!important;padding:5px 12px!important;border:1px solid var(--ov-line)!important;border-radius:999px!important;background:var(--ov-surface)!important;box-shadow:none!important;font:inherit;font-size:12px!important;font-weight:600;color:var(--ov-muted)!important;cursor:pointer}
html body.product-support .support-shell>.wtl-subtabs button:hover{color:var(--ov-text)!important}
html body.product-support .support-shell>.wtl-subtabs button:is([aria-pressed=true],[aria-selected=true]){border-color:var(--ov-accent)!important;background:color-mix(in srgb,var(--ov-accent) 10%,var(--ov-surface))!important;color:var(--ov-text)!important}
/* Итог одной меткой: зелёный «всё в порядке», красный «N проблем», серый «ещё не запускали» */
#section-support-testlab [data-tone=ok]{--tone:var(--ov-accent)}
#section-support-testlab [data-tone=run]{--tone:var(--ov-accent)}
#section-support-testlab [data-tone=warn]{--tone:var(--ov-warn)}
#section-support-testlab [data-tone=bad]{--tone:var(--ov-bad)}
#section-support-testlab [data-tone=off]{--tone:var(--ov-muted)}
#section-support-testlab .wtl-verdict{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:650;line-height:1.4;white-space:nowrap;background:color-mix(in srgb,var(--tone,var(--ov-muted)) 13%,var(--ov-surface));color:color-mix(in srgb,var(--tone,var(--ov-muted)) 75%,var(--ov-text))}
#section-support-testlab .wtl-verdict::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--tone,var(--ov-muted))}
html body.product-support #section-support-testlab button.wtl-verdict{min-height:0!important;margin:0!important;border:0!important;box-shadow:none!important;cursor:pointer}
html body.product-support #section-support-testlab button.wtl-verdict:hover{text-decoration:underline;text-underline-offset:2px}
#section-support-testlab .wtl-bar.warn i{background:var(--ov-warn)}
/* Проверки: карточки наборов вопросов */
#section-support-testlab .wtl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;margin-bottom:16px}
#section-support-testlab .wtl-card{display:flex;flex-direction:column;gap:8px;min-width:0;padding:16px 18px;border-top:3px solid color-mix(in srgb,var(--tone,var(--ov-line)) 70%,var(--ov-line))}
#section-support-testlab .wtl-card[data-tone=off]{border-top-color:var(--ov-line)}
#section-support-testlab .wtl-card-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px}
#section-support-testlab .wtl-card-head h3{margin:0;font-size:15px;font-weight:700;letter-spacing:-.2px}
#section-support-testlab .wtl-card-what{margin:0;font-size:13px;line-height:1.5;color:var(--ov-text)}
#section-support-testlab .wtl-card-when{margin:0;font-size:12.5px;line-height:1.5;color:var(--ov-muted)}
#section-support-testlab .wtl-card-when b{color:var(--ov-text);font-weight:650}
#section-support-testlab .wtl-card-result{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:2px}
#section-support-testlab .wtl-card-result small{font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-card-sec{margin:0;font-size:12.5px;font-weight:600;color:var(--ov-bad)}
#section-support-testlab .wtl-card-progress{display:grid;gap:2px;font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:auto;padding-top:10px;border-top:1px solid var(--ov-line)}
html body.product-support #section-support-testlab .support-btn.wtl-go{padding:9px 22px!important;font-size:13.5px!important;font-weight:700!important}
#section-support-testlab .wtl-cards-tools{margin-bottom:12px}
#section-support-testlab .wtl-empty-state{display:grid;justify-items:start;gap:10px;padding:22px}
#section-support-testlab .wtl-empty-state h3{margin:0;font-size:16px;font-weight:700}
#section-support-testlab .wtl-empty-state p{margin:0;max-width:640px;font-size:13px;line-height:1.5;color:var(--ov-muted)}
#section-support-testlab .wtl-strip-part .wt-link{margin-left:4px!important}
/* Результаты: выбор запуска, итог, сначала проблемы */
#section-support-testlab .wtl-res-bar{gap:10px 14px;margin-bottom:14px}
#section-support-testlab .wtl-run-pick{font-weight:600}
#section-support-testlab .wtl-run-pick select{min-width:min(420px,60vw);max-width:100%;font:inherit;font-size:13px;color:var(--ov-text)}
#section-support-testlab .wtl-verdict-line{margin:0 0 14px;padding:12px 16px;border:1px solid color-mix(in srgb,var(--tone,var(--ov-line)) 40%,var(--ov-line));border-radius:12px;background:color-mix(in srgb,var(--tone,var(--ov-muted)) 8%,var(--ov-surface));font-size:14px;font-weight:650;color:var(--ov-text)}
#section-support-testlab .wtl-res-box{margin-bottom:16px}
#section-support-testlab .wtl-res-box .wn-title h3{display:flex;align-items:center;gap:8px}
#section-support-testlab .wtl-why{display:block;font-size:12.5px;line-height:1.45;color:var(--ov-bad)}
#section-support-testlab .wtl-why small{color:var(--ov-muted);font-weight:500}
#section-support-testlab .wtl-why-list{display:grid;gap:4px;margin:0 0 10px;padding-left:18px;font-size:13px;line-height:1.5;color:var(--ov-text)}
#section-support-testlab .wtl-ok-line{margin:0 0 10px;font-size:13px;font-weight:600;color:var(--ov-accent)}
#section-support-testlab .wtl-fold{margin:6px 0}
#section-support-testlab .wtl-fold>summary,#section-support-testlab .wtl-more-opts>summary{cursor:pointer;font-size:12.5px;font-weight:600;color:var(--ov-accent)}
#section-support-testlab .wtl-fold[open]>summary{margin-bottom:6px}
#section-support-testlab .wtl-more-opts[open]{display:grid;gap:12px}
#section-support-testlab .wtl-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 12px;margin:0 0 8px;font-size:12.5px}
#section-support-testlab .wtl-facts dt{color:var(--ov-muted)}
#section-support-testlab .wtl-facts dd{margin:0}
#section-support-testlab .wtl-grade h4{margin:0}
/* Расширенные: меню из четырёх карточек и лимиты */
#section-support-testlab .wtl-adv-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-bottom:16px}
#section-support-testlab .wtl-adv-card{display:flex;flex-direction:column;gap:8px;padding:16px 18px}
#section-support-testlab .wtl-adv-card h3{margin:0;font-size:15px;font-weight:700}
#section-support-testlab .wtl-adv-card p{flex:1;margin:0;font-size:13px;line-height:1.5;color:var(--ov-muted)}
#section-support-testlab .wtl-adv-card .support-btn{align-self:start}
/* Вкладка «API» (welcome-testlab-api.js): ключи, консоль, журнал, проверки, CI */
#section-support-testlab .wta-panes{margin:0 0 12px;flex-wrap:wrap}
html body.product-support #section-support-testlab .wta-panes button{white-space:nowrap}
#section-support-testlab .wta-pick{max-width:520px;margin:0 0 10px}
#section-support-testlab #wta-pane>.wn-seg{margin:4px 0 10px}
#section-support-testlab .wta-conn-row{grid-template-columns:minmax(0,1.6fr) 96px minmax(150px,1fr) 130px minmax(0,1fr);gap:4px 12px;padding:8px 6px}
#section-support-testlab .wta-conn-row select{max-width:100%;font:inherit;font-size:12px}
/* Действия строкой ниже: строки остаются низкими и не сжимают название */
#section-support-testlab :is(.wta-conn-row,.wta-ci-row) .wn-actions{grid-column:1 / -1;display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
#section-support-testlab :is(.wta-conn-row,.wta-ci-row) .wn-actions .support-btn{padding:3px 10px!important}
#section-support-testlab .wta-log-row{grid-template-columns:130px minmax(0,1.6fr) 64px 90px 80px;padding:6px}
#section-support-testlab .wta-ci-row{grid-template-columns:minmax(0,1.4fr) 96px minmax(0,.7fr) minmax(0,1fr) minmax(0,.8fr);gap:4px 12px;padding:8px 6px}
#section-support-testlab .wta-hook-row{grid-template-columns:130px minmax(0,1.6fr) 110px 80px;padding:6px}
#section-support-testlab .wta-action-row{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;padding:6px}
#section-support-testlab .wta-actions{margin:10px 0;border:1px solid var(--ov-line);border-radius:10px;padding:2px 10px}
#section-support-testlab .wta-pre,#section-support-testlab .wta-code,#section-support-testlab .wta-secret{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;font-size:12px!important;line-height:1.5}
#section-support-testlab .wta-pre{margin:0;padding:10px 12px;border:1px solid var(--ov-line);border-radius:10px;background:var(--wtl-soft);color:var(--ov-text);white-space:pre-wrap;overflow-wrap:anywhere;max-height:360px;overflow:auto}
#section-support-testlab .wta-secret{resize:none;background:var(--wtl-soft)}
#section-support-testlab .wta-exchange{display:grid;gap:10px;margin-top:12px}
#section-support-testlab .wta-ex-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
#section-support-testlab .wta-ex-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#section-support-testlab .wta-ex-grid h4{margin:0 0 6px;font-size:13px}
#section-support-testlab .wta-snip{display:grid;gap:8px}
#section-support-testlab .wta-snip>.wn-seg{justify-self:start}
#section-support-testlab .wta-token{display:grid;gap:10px}
#section-support-testlab .wta-ci-form{margin-bottom:12px}
#section-support-testlab .wta-check-list li.off{--tone:var(--ov-muted)}
#section-support-testlab .wta-check-list .c-badge{margin-left:6px}
#section-support-testlab .wta-steps{margin-top:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px}
#section-support-testlab #wta-pane .wtl-est{margin:0 0 10px}
#section-support-testlab #wta-pane code{font-size:12px;overflow-wrap:anywhere}
/* Ширина */
@media (max-width:1100px){
 #section-support-testlab .wtl-res-grid{grid-template-columns:minmax(0,1.3fr) 130px minmax(0,1.2fr) 100px}
 #section-support-testlab .wtl-more-grid{grid-template-columns:minmax(0,1fr)}
}
/* Телефон 390 px: вкладки прокручиваются, строки карточками, диалоги на весь экран, сравнение в столбик */
@media (max-width:760px){
 .support-shell>.wtl-tabs{width:auto;margin-left:-2px;margin-right:-2px}
 #section-support-testlab .wt-title .c-ico{display:none}
 #section-support-testlab .wtl-strip,#section-support-testlab .wtl-pair,#section-support-testlab .wtl-grid2{grid-template-columns:minmax(0,1fr)}
 #section-support-testlab .wtl-thead{display:none}
 #section-support-testlab .wtl-list{padding:2px 8px}
 #section-support-testlab :is(.wtl-case-row,.wtl-version-row,.wtl-run-row>.wtl-row-main,.wtl-res-grid){grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:start}
 #section-support-testlab :is(.wtl-case-row,.wtl-version-row,.wtl-row-main,.wtl-res-grid)>:first-child{grid-column:1 / -1}
 #section-support-testlab :is(.wtl-case-row,.wtl-row-main)>i{display:none}
 #section-support-testlab :is(.wtl-res-grid,.wtl-row,.wtl-row-main)>*{min-width:0}
 #section-support-testlab .wtl-num{white-space:normal;overflow-wrap:anywhere}
 #section-support-testlab .wtl-res-grid>:nth-child(n){display:block}
 #section-support-testlab [data-label]::before{content:attr(data-label) ": ";color:var(--ov-muted);font-weight:400}
 #section-support-testlab .wtl-run-row{grid-template-columns:24px minmax(0,1fr)}
 #section-support-testlab .wtl-page-head .wn-actions{width:100%}
 #section-support-testlab .wtl-dialog,#section-support-testlab .wtl-drawer{width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0;border:0}
 #section-support-testlab .wtl-dialog-body{padding:12px}
 #section-support-testlab .wtl-q{max-width:94%}
 html body.product-support #section-support-testlab .wn-filters input[type=search]{min-width:0!important;flex:1 1 160px!important}
 #section-support-testlab :is(.wta-conn-row,.wta-log-row,.wta-ci-row,.wta-hook-row,.wta-action-row){grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:start}
 #section-support-testlab :is(.wta-conn-row,.wta-ci-row,.wta-action-row)>:first-child{grid-column:1 / -1}
 #section-support-testlab :is(.wta-log-row,.wta-hook-row)>:nth-child(2){grid-column:1 / -1;order:-1}
 #section-support-testlab .wta-ex-grid{grid-template-columns:minmax(0,1fr)}
 #section-support-testlab .wta-panes{width:100%;overflow-x:auto;flex-wrap:nowrap}
 #section-support-testlab .wta-pick{max-width:none}
 .support-shell>.wtl-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));overflow:visible}
 html body.product-support .support-shell>.wtl-tabs button{padding:7px 10px!important}
 #section-support-testlab :is(.wtl-cards,.wtl-adv-grid){grid-template-columns:minmax(0,1fr)}
 #section-support-testlab .wtl-card{padding:14px}
 #section-support-testlab .wtl-card-foot .wtl-grow{display:none}
 html body.product-support #section-support-testlab .support-btn.wtl-go{flex:1 1 100%}
 #section-support-testlab .wtl-res-bar>:not(.wtl-grow){flex:1 1 100%!important;max-width:none!important}
 #section-support-testlab .wtl-res-bar>.wtl-grow{display:none}
 #section-support-testlab .wtl-run-pick select{flex:1;min-width:0}
 #section-support-testlab .wtl-res-grid>[data-label=Итог]{grid-column:1 / -1}
 #section-support-testlab .wtl-res-grid .wtl-cell-main b{white-space:normal}
}
/* Безопасность: метка встроенных наборов, бейдж непройденных проверок */
#section-support-testlab .wtl-checks-cell{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}
#section-support-testlab .wtl-sec-badge,#section-support-testlab .wtl-sec-label{font-size:10.5px;white-space:nowrap}
/* Вкладка «Нагрузка» (welcome-testlab-load.js): прогоны, сравнение, команда запуска, профили */
#section-support-testlab .wtll-table-wrap{overflow-x:auto;margin-top:4px}
#section-support-testlab .wtll-table{min-width:980px}
#section-support-testlab .wtll-table td b{display:block}
#section-support-testlab .wtll-sub{display:block;font-size:11px;color:var(--ov-muted);overflow-wrap:anywhere}
#section-support-testlab .wtll-sub.wtl-fail{color:var(--ov-bad)}
#section-support-testlab .wtll-acts{white-space:nowrap}
html body.product-support #section-support-testlab .wtll-acts .wt-link{margin-right:10px!important}
#section-support-testlab .wtll-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#section-support-testlab .wtll-detail{margin-top:12px}
#section-support-testlab .wtll-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:8px 0}
#section-support-testlab .wtll-kv dt{font-size:11px;color:var(--ov-muted)}
#section-support-testlab .wtll-kv dd{margin:2px 0 0;font-size:13px;overflow-wrap:anywhere}
#section-support-testlab .wtll-th{margin:6px 0 0;padding:0;list-style:none;display:grid;gap:4px;font-size:12px}
#section-support-testlab .wtll-cmd{margin-top:10px}
#section-support-testlab .wtll-check{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtll-howto ol{margin:6px 0 0;padding-left:20px;display:grid;gap:6px;font-size:13px;line-height:1.5}
#section-support-testlab .wtll-profiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
#section-support-testlab .wtll-prof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
#section-support-testlab .wtll-prof input:disabled{background:var(--wtl-soft);color:var(--ov-text)}
@media (max-width:760px){
 #section-support-testlab .wtll-profiles,#section-support-testlab .wtll-kv,#section-support-testlab .wtll-prof-grid{grid-template-columns:minmax(0,1fr)}
 #section-support-testlab .wtll-table{min-width:0}
 #section-support-testlab .wtll-table thead{display:none}
 #section-support-testlab .wtll-table tr{display:grid;grid-template-columns:24px minmax(0,1fr);gap:2px 10px;padding:8px 0;border-bottom:1px solid var(--ov-line)}
 #section-support-testlab .wtll-table td{border:0!important;padding:0!important;grid-column:2}
 #section-support-testlab .wtll-table td:first-child{grid-column:1;grid-row:1 / span 3}
 #section-support-testlab .wtll-cmp{min-width:0}
}
#section-support-testlab .wtl-check span{display:flex;gap:8px;align-items:center;color:var(--ov-text,inherit);font-size:13px}
#section-support-testlab .wtl-auto-grade{margin:6px 0 0;font-size:12.5px;line-height:1.5;color:var(--ov-muted)}
#section-support-testlab .wtl-auto-grade b{color:var(--ov-text,inherit)}
/* История проверок под результатами */
.wtl-history .wtl-hist-grid,.wtl-history .wtl-hist-row{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(0,1.3fr) minmax(0,1.2fr) 90px;gap:12px;align-items:center}
.wtl-history .wtl-hist-row{width:100%;padding:12px 8px;border:0;border-bottom:1px solid var(--ov-line);background:none;color:var(--ov-text);font:inherit;text-align:left;cursor:pointer}
.wtl-history .wtl-hist-row:hover{background:color-mix(in srgb,var(--ov-accent) 6%,var(--ov-surface))}
.wtl-history .wtl-hist-row.current{background:color-mix(in srgb,var(--ov-accent) 9%,var(--ov-surface))}
.wtl-history .wtl-hist-row .wtl-cell-main{display:grid;gap:2px}
.wtl-history .wtl-hist-row small{font-size:12px;color:var(--ov-muted)}
.wtl-history .wtl-link{color:var(--ov-accent);font-weight:650}
@media(max-width:760px){.wtl-history .wtl-hist-grid{display:none}.wtl-history .wtl-hist-row{grid-template-columns:1fr auto}}
/* Ссылка на отдельный проект «Тестовый чат» справа в полосе вкладок */
.wtl-tabs .wtl-tab-link{margin-left:auto;align-self:center;padding:8px 14px;border:1px solid var(--ov-accent);border-radius:9px;color:var(--ov-accent);font-weight:650;font-size:14px;text-decoration:none;white-space:nowrap}
.wtl-tabs .wtl-tab-link:hover{background:color-mix(in srgb,var(--ov-accent) 8%,var(--ov-surface))}

/* Кнопка запуска в «Тестовом чате» над отчётами. */

/* Шапка отчётов: «Модель сегодня» (служебные запросы и счётчик тестов), расписание, тренд качества. */
#section-support-testlab .wtl-top{display:grid;gap:14px;margin-bottom:16px}
#section-support-testlab .wtl-top:empty{display:none}
#section-support-testlab .wtl-head-cards{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#section-support-testlab .wtl-head-cards .wn-kpi{display:flex;flex-direction:column;min-width:0}
#section-support-testlab .wtl-head-cards .c-value{font-size:24px;font-variant-numeric:tabular-nums}
#section-support-testlab .wtl-head-cards .c-foot{overflow-wrap:anywhere}
#section-support-testlab .wtl-head-cards .wtl-bar{margin-top:8px}
#section-support-testlab .wtl-model-parts{display:flex;flex-wrap:wrap;gap:4px 18px;margin:6px 0 0;padding:0;list-style:none;font-size:12.5px;color:var(--ov-muted)}
#section-support-testlab .wtl-model-parts li{display:inline-flex;align-items:baseline;gap:6px;min-width:0}
#section-support-testlab .wtl-model-parts span{min-width:0;overflow-wrap:anywhere}
#section-support-testlab .wtl-model-parts b{flex:none;white-space:nowrap;color:var(--ov-text);font-variant-numeric:tabular-nums}
#section-support-testlab .wtl-model-line{margin:8px 0 0;font-size:12.5px;line-height:1.45;color:var(--ov-muted);overflow-wrap:anywhere}
#section-support-testlab .wtl-model-line b{font-weight:650;color:var(--ov-text)}
#section-support-testlab .wtl-auto-box,#section-support-testlab .wtl-trend{margin:0}
#section-support-testlab .wtl-auto-rows{display:grid;border-top:1px solid var(--ov-line)}
#section-support-testlab .wtl-auto-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px 14px;padding:12px 2px;border-bottom:1px solid var(--ov-line)}
#section-support-testlab .wtl-auto-text{display:grid;gap:2px;min-width:0}
#section-support-testlab .wtl-auto-text b{font-size:13px;font-weight:650;color:var(--ov-text)}
#section-support-testlab .wtl-auto-text small{font-size:12px;line-height:1.45;color:var(--ov-muted);overflow-wrap:anywhere}
html body.product-support #section-support-testlab .wtl-auto-row .support-btn{padding:6px 12px!important;min-height:0!important;font-size:12px!important;white-space:nowrap}
#section-support-testlab .wtl-auto-box>.wtl-muted{margin:10px 0 0}
#section-support-testlab .wtl-trend svg{display:block;width:100%;height:130px;margin:10px 0 4px;overflow:visible}
#section-support-testlab .wtl-trend svg line{stroke:var(--ov-line);stroke-width:1;vector-effect:non-scaling-stroke}
#section-support-testlab .wtl-trend svg polyline{fill:none;stroke:var(--tone,var(--ov-accent));stroke-width:2;vector-effect:non-scaling-stroke}
#section-support-testlab .wtl-trend svg circle{fill:var(--tone,var(--ov-accent));stroke:var(--ov-surface);stroke-width:1.5;cursor:pointer;vector-effect:non-scaling-stroke}
#section-support-testlab .wtl-trend svg circle:focus-visible{outline:2px solid var(--ov-accent);outline-offset:2px}
#section-support-testlab .wtl-trend .s1{--tone:var(--ov-warn)}
#section-support-testlab .wtl-trend .s2{--tone:var(--ov-purple,var(--ov-text))}
#section-support-testlab .wtl-trend .s3{--tone:var(--ov-muted)}
#section-support-testlab .wtl-trend .sd{--tone:var(--ov-purple,var(--ov-text))}
#section-support-testlab .wtl-trend svg polyline.sd{stroke-dasharray:5 4}
#section-support-testlab .wtl-trend-legend .sd i{background:repeating-linear-gradient(90deg,var(--tone) 0 4px,transparent 4px 7px)}
#section-support-testlab .wtl-trend-legend{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:12px;color:var(--ov-muted)}
#section-support-testlab .wtl-trend-legend span{display:inline-flex;align-items:center;gap:6px}
#section-support-testlab .wtl-trend-legend i{display:inline-block;width:12px;height:3px;border-radius:2px;background:var(--tone,var(--ov-accent))}
#section-support-testlab .wtl-trend-caption{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--ov-muted);font-variant-numeric:tabular-nums}
#section-support-testlab .wtl-trend-about{margin:8px 0 0;font-size:12px;line-height:1.45;color:var(--ov-muted);overflow-wrap:anywhere}
@media (max-width:760px){
 #section-support-testlab .wtl-head-cards{grid-template-columns:minmax(0,1fr)}
 #section-support-testlab .wtl-auto-row{grid-template-columns:minmax(0,1fr) auto}
 #section-support-testlab .wtl-auto-row .support-btn{grid-column:1 / -1;justify-self:start}
}

/* Вкладки в role=tablist внутри полосы: обёртка не меняет раскладку полосы. */
.wtl-tabs>.wtl-tablist{display:contents}
