.sec02-preview{min-height:100vh}
.sec02-preview .masthead{display:flex;gap:14px}
.sec02-brand{font-weight:700;color:var(--blue);padding-right:14px;border-right:1px solid var(--line)}
.sec02-subject{flex:1;color:var(--muted);font-size:16px}
.sec02-preview-nav{position:sticky;top:64px;z-index:10;display:flex;gap:8px;overflow:auto;padding:10px 18px;background:var(--bg);border-bottom:1px solid var(--line);white-space:nowrap}
.sec02-preview-nav a{font-size:14px;text-decoration:none;padding:5px 9px;border-radius:8px;color:var(--muted)}
.sec02-preview-nav a:hover,.sec02-preview-nav a:focus-visible{background:var(--blue-fade);color:var(--blue)}
.sec02-preview .screen{scroll-margin-top:118px}
.sec02-page{width:100%;min-width:0}
.sec02-controls{display:flex;align-items:end;gap:10px 14px;flex-wrap:wrap;margin:8px 0 16px}
.sec02-control{display:flex;flex-direction:column;gap:4px;min-width:160px;color:var(--muted);font-size:14px;font-weight:600}
.sec02-control select{max-width:100%;min-height:40px;padding:7px 34px 7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-weight:500}
.sec02-control select:focus-visible,.sec02-button:focus-visible{outline:3px solid #789cff;outline-offset:2px}
.sec02-control-note{color:var(--muted);font-size:13px;max-width:230px}
.sec02-button{min-height:40px;border:1px solid var(--line);border-radius:8px;padding:7px 12px;background:var(--surface);color:var(--blue);font-weight:600;cursor:pointer}
.sec02-button:hover{background:var(--blue-fade)}
.sec02-output{min-width:0}
.sec02-intro{color:var(--muted);font-size:17px;max-width:1000px;margin:5px 0 16px!important}
.sec02-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sec02-card{min-width:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:14px}
.sec02-card small,.sec02-card span{display:block;color:var(--muted);font-size:14px;line-height:1.3}
.sec02-card strong{display:block;font-size:27px;line-height:1.15;margin:8px 0 4px;overflow-wrap:anywhere}
.sec02-card p{font-size:14px;color:var(--muted);line-height:1.35;margin:0}
.sec02-card.blue{background:var(--blue-fade)}
.sec02-block{margin:16px 0}
.sec02-block h3{font-size:18px;margin:0 0 8px}
.sec02-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid var(--line);border-radius:10px}
.sec02-table{width:100%;min-width:650px;border-collapse:collapse;background:var(--bg);font-size:14px;line-height:1.3}
.sec02-table th,.sec02-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.sec02-table th{background:var(--table);font-weight:700;white-space:nowrap}
.sec02-table td:not(:nth-child(2)){font-variant-numeric:tabular-nums}
.sec02-table tr:last-child td{border-bottom:0}
.sec02-table .sec02-num{text-align:right;white-space:nowrap}
.sec02-empty{padding:18px;border:1px dashed var(--line);border-radius:10px;color:var(--muted)}
.sec02-bars{display:grid;gap:8px}
.sec02-bar{display:grid;grid-template-columns:minmax(130px,1.1fr) minmax(90px,2fr) 64px minmax(90px,.6fr);gap:10px;align-items:center;min-width:0;font-size:14px}
.sec02-bar-label{overflow-wrap:anywhere}
.sec02-track{height:9px;background:var(--line);border-radius:9px;overflow:hidden}
.sec02-track span{display:block;height:100%;background:var(--blue);border-radius:inherit}
.sec02-bar small{color:var(--muted);text-align:right}
.sec02-bar strong{text-align:right;white-space:nowrap}
.sec02-note{padding:10px 13px;background:var(--blue-fade);border-left:3px solid var(--blue);border-radius:0 8px 8px 0;font-size:14px;line-height:1.4;color:var(--muted);margin:12px 0}
.sec02-stage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.sec02-stage-card{min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface)}
.sec02-stage-card img{display:block;width:28px;height:28px;margin-bottom:8px}
.sec02-stage-card b{display:block;font-size:16px}
.sec02-stage-card small{display:block;color:var(--muted);font-size:13px;line-height:1.35;margin-top:4px}
.sec02-prompts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.sec02-prompt{padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);font-size:14px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.sec02-prompt small{display:block;color:var(--muted);font-size:12px;margin-top:5px}
.sec02-models{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:8px}
.sec02-models span{display:inline-flex;gap:6px;align-items:center;border:1px solid var(--line);border-radius:20px;padding:5px 9px;font-size:13px}
.sec02-models img{width:18px;height:18px;object-fit:contain}
.sec02-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.sec02-answer{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--surface)}
.sec02-answer h3{font-size:17px;margin:0 0 8px}
.sec02-answer p{font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.sec02-answer small{display:block;color:var(--muted);font-size:12px;margin-top:8px}
.sec02-insights{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sec02-insight{padding:15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.sec02-insight b{display:block;font-size:16px;margin-bottom:6px}
.sec02-insight p{font-size:14px;line-height:1.45;color:var(--muted)}
.sec02-preview footer{padding:20px 24px;text-align:center;color:var(--muted);font-size:13px}
.sec02-preview .screen-index{right:24px}
@media(max-width:900px){
 .sec02-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sec02-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sec02-preview-nav{top:64px}
}
@media(max-width:600px){
 .sec02-preview .screen{padding:22px 14px 42px;align-items:flex-start}
 .sec02-preview-nav{padding:8px 10px}
 .sec02-controls{align-items:stretch;gap:8px}
 .sec02-control{min-width:calc(50% - 5px);flex:1}
 .sec02-control select{width:100%}
 .sec02-control-note{flex-basis:100%;max-width:none}
 .sec02-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .sec02-card{padding:10px}
 .sec02-card strong{font-size:22px}
 .sec02-stage-grid,.sec02-prompts,.sec02-answers,.sec02-insights{grid-template-columns:1fr}
 .sec02-bar{grid-template-columns:minmax(95px,1.2fr) minmax(60px,1fr) 44px 80px;gap:6px;font-size:12px}
 .sec02-table{min-width:640px}
 .sec02-preview .screen-index{right:14px}
}

.sec02-preview .masthead #sec02-theme{width:auto;min-width:106px;max-width:120px;height:38px;padding:0 9px;font-size:13px;white-space:nowrap;flex:0 0 auto}
.sec02-preview .sec02-brand{white-space:nowrap;flex:0 0 auto}
.sec02-preview .sec02-subject{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
@media(max-width:600px){
 .sec02-preview .masthead{height:auto;min-height:56px;padding:8px 14px;gap:10px}
 .sec02-preview .sec02-subject{display:none}
 .sec02-preview .sec02-brand{font-size:15px;padding-right:10px;line-height:1.2}
 .sec02-preview .masthead #sec02-theme{min-width:92px;max-width:92px;height:34px;font-size:12px;padding:0 5px}
 .sec02-preview-nav{top:56px}
}

/* Agent 02 component; scoped by its own classes in preview and in the shared shell. */
.sec02-page{font-size:14px;color:var(--text)}
.sec02-controls{align-items:flex-end;gap:8px 14px;margin:2px 0 12px}
.sec02-control{position:relative;min-width:0;gap:4px}
.sec02-control-label{font-size:12px;color:var(--muted);font-weight:600}
.sec02-native{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;pointer-events:none!important;opacity:0}
.sec02-tabs{display:flex;align-items:stretch;flex-wrap:wrap;gap:4px}
.sec02-tabs button{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);font:inherit;font-size:12px;font-weight:600;line-height:1.15;padding:7px 9px;cursor:pointer}
.sec02-tabs button[aria-pressed="true"]{background:var(--blue);border-color:var(--blue);color:#fff}
.sec02-tabs button:disabled{opacity:.42;cursor:default}
.sec02-tabs button:focus-visible,.sec02-more:focus-visible,.sec02-scroll:focus-visible,.sec02-example-label select:focus-visible{outline:3px solid #789cff;outline-offset:2px}
.sec02-control-note{font-size:12px;max-width:140px;align-self:center}
.sec02-more{font-size:12px;min-height:31px;padding:5px 10px}
.sec02-more[hidden]{display:none!important}
.sec02-intro{font-size:14px;margin:4px 0 10px!important;max-width:100%}
.sec02-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:16px;align-items:start;min-width:0}
.sec02-layout>div{min-width:0}
.sec02-aside{height:auto;min-height:220px;max-width:none}
.sec02-aside h3{font-size:20px!important}
.sec02-aside p{font-size:14px!important;line-height:1.4}
.sec02-aside strong{font-size:21px;color:var(--blue)}
.sec02-caption{font-size:12px!important;line-height:1.35;color:var(--muted);margin:8px 0!important}
.sec02-scroll{border:0;border-radius:0}
.sec02-table{min-width:780px;font-size:13px;border-collapse:collapse}
.sec02-table th,.sec02-table td{padding:6px 7px;vertical-align:middle;border-bottom:1px solid var(--line);text-align:center}
.sec02-table thead th{font-size:11px;color:var(--muted);background:transparent;font-weight:600}
.sec02-table thead th:first-child,.sec02-table tbody th:first-child{text-align:left}
.sec02-table tbody th{font-weight:500;background:transparent}
.sec02-table tbody th .market-brand{display:inline-flex;vertical-align:middle}
.sec02-table .market-logo{display:inline-flex;align-items:center;justify-content:center}
.sec02-table .market-logo img{max-width:100%;max-height:100%;object-fit:contain}
.sec02-rank-number{display:inline-block;min-width:27px;color:var(--muted);font-size:12px}
.sec02-monogram{font-size:9px;font-weight:800;color:var(--blue);border:1px solid var(--line);border-radius:50%;background:var(--surface)}
.sec02-rank-table td:nth-child(2){min-width:125px;text-align:left}
.sec02-rank-table td:last-child{white-space:nowrap}
.sec02-rank-table td small{display:block;color:var(--muted);font-size:10px}
.sec02-score{font-weight:700;color:var(--blue);white-space:nowrap}
.sec02-rank-track{display:block;height:5px;border-radius:5px;background:var(--blue-fade);overflow:hidden;margin-top:4px}
.sec02-rank-track i{display:block;height:100%;background:var(--blue);border-radius:inherit}
.sec02-other th,.sec02-other td{color:var(--muted);font-weight:600}
.sec02-colhead{display:inline-flex;flex-direction:column;align-items:center;gap:3px;min-width:74px;white-space:normal;line-height:1.15}
.sec02-colhead img{width:21px;height:21px;object-fit:contain}
.sec02-colhead small{font-size:10px;font-weight:400}
.sec02-matrix{min-width:740px}
.sec02-matrix tbody th{min-width:150px}
.sec02-heat{display:block;min-width:56px;padding:6px 5px;border-radius:6px;background:rgba(27,63,170,var(--heat));font-variant-numeric:tabular-nums;font-weight:600}
:root[data-theme="dark"] .sec02-heat{background:rgba(138,167,255,var(--heat))}
.sec02-stage-area{margin:10px 0 12px}
.sec02-stage-area h3{font-size:15px!important;margin:0 0 7px!important}
.sec02-stage-area .direction-stages>div{min-height:70px;padding:8px}
.sec02-stage-area .direction-stages img{width:23px;height:23px}
.sec02-prompts{gap:7px;margin:10px 0}
.sec02-prompt{padding:8px;background:var(--bg);font-size:12px}
.sec02-prompt small{margin:0 0 4px;color:var(--blue);font-weight:700}
.sec02-prompt p{font-size:12px!important;line-height:1.3}
.sec02-source-panel{border-top:1px solid var(--line)}
.sec02-source-head{display:grid;grid-template-columns:1fr 70px 70px;gap:8px;color:var(--muted);font-size:12px;padding:7px}
.sec02-source-head span{text-align:right}
.sec02-bar{grid-template-columns:minmax(135px,1.3fr) minmax(80px,2fr) 58px 62px;gap:10px;border-bottom:1px solid var(--line);padding:8px 6px}
.sec02-bar>span:last-child{text-align:right;font-weight:600}
.sec02-track i{display:block;height:100%;background:var(--blue);border-radius:inherit}
.sec02-example-label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted);font-weight:600;max-width:480px}
.sec02-example-label select{min-height:34px;max-width:100%;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);padding:5px 8px;font:inherit}
.sec02-answer h3{display:flex;align-items:center;gap:8px}
.sec02-answer h3 img{width:24px;height:24px;object-fit:contain}
.sec02-overview-layout .direction-description{margin-top:0!important}
.sec02-overview-layout .direction-tiles article small{display:block;color:var(--muted);font-size:11px}
.sec02-overview-layout .direction-brand .market-brand{display:inline-flex}
.sec02-overview-layout .direction-visual img{width:100%;max-height:330px;object-fit:contain}
.sec02-insight p{margin:5px 0!important;color:var(--text)}
.sec02-insight small{color:var(--muted);font-size:12px;line-height:1.35}
:root[data-theme="dark"] .sec02-stage-area img{filter:brightness(0) invert(1)}
@media(max-width:1000px){.sec02-layout{grid-template-columns:minmax(0,1fr)}.sec02-aside{min-height:0}.sec02-aside h3{font-size:18px!important}}
@media(max-width:600px){
 .sec02-controls{align-items:flex-start;gap:8px}
 .sec02-control{flex:0 1 auto;min-width:0;max-width:100%}
 .sec02-tabs{gap:4px}
 .sec02-tabs button{font-size:11px;padding:6px 8px}
 .sec02-control-note{flex-basis:100%;max-width:none}
 .sec02-rank-table,.sec02-matrix{min-width:760px}
 .sec02-bar{grid-template-columns:minmax(92px,1.2fr) minmax(50px,1fr) 35px 48px;gap:5px;font-size:11px}
 .sec02-aside{padding:12px}
 .sec02-overview-layout .direction-visual img{max-height:210px}
}
.sec02-page .market-logo img.market-logo-domclick{max-width:none;max-height:none;width:104px;height:104px;left:-8px;top:-40px}
.sec02-page .market-logo img.market-logo-etagi{max-width:none;max-height:none;width:132px;height:20px;left:0;top:3px}
.sec02-example-label{min-width:0;max-width:min(100%,480px);flex:1 1 280px}
.sec02-example-label select{width:100%;min-width:0}
html[data-theme="dark"] [id^="secondary-"]:has(.sec02-page) .market-channel-icons img[src$="chatgpt.svg"],html[data-theme="dark"] [id^="secondary-"]:has(.sec02-page) .market-channel-icons img[src$="gigachat.svg"],html[data-theme="dark"] [id^="secondary-"]:has(.sec02-page) .market-channel-icons img[src$="perplexity.svg"],html[data-theme="dark"] .sec02-page .sec02-colhead img[src$="chatgpt.svg"],html[data-theme="dark"] .sec02-page .sec02-colhead img[src$="gigachat.svg"],html[data-theme="dark"] .sec02-page .sec02-colhead img[src$="perplexity.svg"]{filter:invert(1)}
/* Repeat review: compact dashboard layout, scoped to this vertical. */
.sec02-tabs button{display:inline-flex;align-items:center;justify-content:center;gap:4px}
.sec02-tabs button img{width:16px;height:16px;object-fit:contain}
.sec02-tabs button small{font-size:10px;font-weight:400}
.sec02-tabs button[aria-pressed="true"] img[src*="/cjm/"]{filter:brightness(0) invert(1)}
.sec02-metric-icon{font-size:15px;line-height:1}
.sec02-move{display:inline-block;margin-left:6px;font-size:12px;font-weight:700;white-space:nowrap}
.sec02-move.up{color:#178449}.sec02-move.down{color:#c33c41}
:root[data-theme="dark"] .sec02-move.up{color:#79dea5}:root[data-theme="dark"] .sec02-move.down{color:#ff9095}
.sec02-source-matrix{min-width:780px;table-layout:fixed}.sec02-source-matrix th:first-child{width:33%}
.sec02-source-type{display:flex;align-items:center;justify-content:space-between;gap:4px;text-align:left;white-space:normal;line-height:1.15}
.sec02-site-icons{display:inline-flex;align-items:center;gap:2px;flex:none}
.sec02-site-icons img,.sec02-site-icons>span,.sec02-page-icon{width:17px;height:17px;object-fit:contain}
.sec02-site-icons>span{display:inline-flex;border:1px solid var(--line);border-radius:50%;font-size:10px;font-weight:700;color:var(--blue);align-items:center;justify-content:center;background:var(--surface)}
.sec02-site-icons .sec02-site-more{border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);font-size:14px}
.sec02-source-value{font-variant-numeric:tabular-nums}.sec02-source-matrix .sec02-colhead{min-width:0}
.sec02-aside{border-left:3px solid var(--blue);border-radius:0 12px 12px 0}
@media screen and (min-width:801px) and (max-height:800px){
 [id^="secondary-"]:has(.sec02-page).screen{align-items:flex-start;padding-top:12px;padding-bottom:20px}
 [id^="secondary-"]:has(.sec02-page).screen h1{font-size:34px;line-height:1.08;margin:3px 0 8px}
 [id^="secondary-"]:has(.sec02-page).screen .vertical-eyebrow{margin-bottom:4px}
 [id^="secondary-"]:has(.sec02-page).screen .model-eyebrow{margin-bottom:4px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-controls{gap:4px 8px;margin:0 0 6px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-control{gap:2px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-control-label{font-size:11px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-control-note{font-size:10px;max-width:90px;line-height:1.15}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-tabs{gap:3px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-tabs button{font-size:11px;padding:4px 6px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-tabs button img{width:14px;height:14px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-more{min-height:26px;padding:3px 7px;font-size:11px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-intro{margin:2px 0 5px!important;font-size:12px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-table th,[id^="secondary-"]:has(.sec02-page).screen .sec02-table td{padding:2px 5px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-table .market-logo{width:20px;height:20px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-table .market-logo img{max-width:100%;max-height:100%}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-table tbody .market-brand b{font-size:13px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-table .market-logo img.market-logo-domclick{max-width:none;max-height:none;width:80px;height:80px;left:-6px;top:-31px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-table .market-logo img.market-logo-etagi{max-width:none;max-height:none;width:100px;height:16px;left:0;top:2px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-heat{padding:3px 4px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-colhead{gap:1px;font-size:11px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-colhead img{width:16px;height:16px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-caption{margin:4px 0!important;font-size:11px!important}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-aside{padding:14px 16px;min-height:0}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-aside h3{font-size:18px!important;margin:5px 0!important}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-aside p{font-size:12px!important;line-height:1.3}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-prompt{padding:5px}
 [id^="secondary-"]:has(.sec02-page).screen .sec02-prompt p{font-size:11px!important}
 #secondary-overview:has(.sec02-page) .direction-description{font-size:15px;line-height:1.3;margin-bottom:8px!important}
 #secondary-overview:has(.sec02-page) .direction-tiles article{padding:9px}
 #secondary-overview:has(.sec02-page) .direction-visual img{max-height:250px}
 #secondary-overview:has(.sec02-page) .sec02-stage-area{margin:5px 0}
 #secondary-overview:has(.sec02-page) .sec02-stage-area .direction-stages>div{min-height:55px}
}
.sec02-channel-ex{font-size:10px;font-weight:400;white-space:nowrap}
@media screen and (min-width:801px) and (max-height:800px){
 #secondary-overview:has(.sec02-page).screen h1{font-size:48px;line-height:1.05;margin-bottom:8px}
 #secondary-overview:has(.sec02-page) .sec02-overview-layout .direction-visual img{max-height:370px}
}
#secondary-overview:has(.sec02-page) .direction-tiles article:first-child small{color:#d7e2ff}
html[data-theme="dark"] [id^="secondary-"]:has(.sec02-page) .sec02-page-icon,html[data-theme="dark"] [id^="secondary-"]:has(.sec02-page) .sec02-tabs img[src*="/cjm/"]{filter:brightness(0) invert(1)}
.sec02-tabs .sec02-metric-icon{width:14px;height:14px;flex:none}

/* Экран вторичного рынка использует те же пропорции, что и эталонные рейтинги. */
@media (min-width:801px){
 [id^="secondary-"]:has(.sec02-page).screen .inner{margin:0 auto}
 :is(#secondary-ai-ranking,#secondary-ai-models) .sec02-table{font-size:14px}
 :is(#secondary-ai-ranking,#secondary-ai-models) .sec02-table tbody .market-brand b{font-size:14px}
 :is(#secondary-ai-ranking,#secondary-ai-models) .sec02-intro{font-size:14px!important}
}
[data-sec02-view="ai-rank"] .sec02-output>.sec02-caption,
[data-sec02-view="ai-models"] .sec02-matrix-layout .sec02-caption{display:none}
