/* Конкуренты · открытые данные. Область отчёта прокручивается отдельно от фильтров. */
.cf-modal .fd-shell{background:var(--panel)}
.cf-head{flex:none}
.cf-head .fd-title{min-width:0;flex:1 1 180px}
.cf-head .spacer{display:none}
.cf-bar{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:10px 16px;
  border-bottom:1px solid var(--line);background:var(--panel2)}
.cf-bar select,.cf-bar input{height:32px;box-sizing:border-box}
.cf-direction-field{min-width:min(330px,100%)}
.cf-direction-field select{width:100%}
.cf-custom{display:flex;gap:8px}
.cf-custom input{width:140px}
.cf-status{font-size:var(--fs-cap);color:var(--muted);min-width:210px}
.cf-scroll{min-width:0;padding:16px 20px 28px;scrollbar-gutter:stable}
.cf-content{max-width:1320px;min-height:500px;margin:0 auto}
.cf-loading,.cf-empty,.cf-error{padding:24px;border:1px solid var(--line);
  border-radius:8px;background:var(--panel2);line-height:1.55}
.cf-error{background:#fff3f1;color:#a32820}
.cf-intro{font-size:13px;line-height:1.5;color:var(--muted);margin-bottom:18px}
.cf-intro b{color:var(--text)}
.cf-section{margin:0 0 22px}
.cf-section h3{font-size:15px;margin:0 0 10px}
.cf-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;
  border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--line)}
.cf-metric{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:98px;
  padding:14px 16px;background:var(--panel)}
.cf-metric-label{color:var(--muted);font-size:12px}
.cf-metric-value{font-size:24px;line-height:1.15;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.cf-metric-note{font-size:11px;color:var(--muted)}
.cf-unknown{padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--warn);
  border-radius:6px;background:var(--warn-soft)}
.cf-unknown h3{margin-bottom:4px}
.cf-unknown p{margin:0;line-height:1.5;font-size:13px}
.cf-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:8px}
.cf-table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.4}
.cf-table th,.cf-table td{padding:10px 12px;border-bottom:1px solid var(--line);
  text-align:left;vertical-align:top;white-space:normal;min-width:100px;background:var(--panel)}
.cf-table tr:last-child th,.cf-table tr:last-child td{border-bottom:0}
.cf-table thead th{position:sticky;top:0;z-index:2;background:var(--panel2);font-weight:700}
.cf-table tbody th{position:sticky;left:0;z-index:1;min-width:130px;font-weight:700}
.cf-table tbody tr:hover th,.cf-table tbody tr:hover td{background:#f5f9fc}
.cf-table a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.cf-group-tag{display:inline-block;border:1px solid var(--line);border-radius:999px;
  padding:2px 7px;white-space:nowrap;font-size:11px;font-weight:700}
.cf-group-a{background:#e7f6ed;color:#16703b;border-color:#b9e2c8}
.cf-group-b{background:#e8f1fb;color:#235b90;border-color:#bdd5ef}
.cf-group-c{background:#fff2df;color:#8a5d0f;border-color:#efd3a4}
.cf-group-x,.cf-group-u{background:var(--panel2);color:var(--muted)}
.cf-cell-label{display:none}
.cf-small{color:var(--muted);font-size:11px;margin:7px 0 0}
.cf-method{border-top:1px solid var(--line);padding-top:16px;color:var(--muted);font-size:12px}
.cf-method ol{padding-left:20px;margin:0;line-height:1.65}
.cf-method li{margin-bottom:7px}
.cf-method b{color:var(--text)}
@media(max-width:900px){.cf-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .cf-head{flex-wrap:nowrap}
  .cf-bar{padding:10px;align-items:stretch}
  .cf-direction-field{width:100%}
  .cf-status{min-width:0;align-self:center}
  .cf-scroll{padding:12px 10px 22px}
  .cf-content{min-height:400px}
  .cf-metrics{grid-template-columns:1fr 1fr}
  .cf-metric{padding:10px;min-height:86px}
  .cf-metric-value{font-size:19px}
  .cf-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .cf-table,.cf-table tbody,.cf-table tr,.cf-table th,.cf-table td{display:block;width:100%;box-sizing:border-box}
  .cf-table tbody tr{padding:10px 12px;border-bottom:1px solid var(--line)}
  .cf-table tbody tr:last-child{border-bottom:0}
  .cf-table tbody th,.cf-table tbody td{position:static;min-width:0;border:0;padding:4px 0}
  .cf-table tbody th{font-size:14px}
  .cf-cell-label{display:inline-block;min-width:130px;color:var(--muted);margin-right:8px}
}
@media(max-width:390px){.cf-metrics{grid-template-columns:1fr}}

/* Единый раздел «Конкуренты»: навигация по масштабу, как в макетах рынка и сравнения. */
.cr-unified-layout{display:grid;grid-template-columns:204px minmax(0,1fr);min-height:0;flex:1}
.cr-unified-nav{display:flex;flex-direction:column;gap:4px;padding:20px 12px;
  border-right:1px solid var(--line);background:var(--panel2)}
.cr-nav-caption{margin:0 9px 12px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.09em}
.cr-unified-nav button{border:0;border-radius:7px;background:transparent;color:var(--text);
  cursor:pointer;text-align:left;padding:10px 12px;font-size:13px}
.cr-unified-nav button:hover{background:var(--panel)}
.cr-unified-nav button.active{background:#e9e9fb;color:#30328d;font-weight:700}
.cr-unified-nav p{margin:20px 9px 0;color:var(--muted);font-size:11px;line-height:1.5}
.cr-unified-nav .cf-nav-data{margin-top:18px;margin-bottom:4px}
.cr-unified-main{display:flex;flex-direction:column;min-width:0;min-height:0}

/* Сохранённые WB-сравнения на той же странице и с теми же фильтрами. */
.jd-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.jd-head h3{font-size:18px;margin:0 0 6px}
.jd-tabs{display:flex;flex-wrap:wrap;gap:4px}
.jd-tabs button{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:6px;
  padding:8px 12px;cursor:pointer;font-size:12px}
.jd-tabs button.active{background:#e9e9fb;color:#30328d;font-weight:700}
.jd-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:20px;
  border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--line)}
.jd-kpis div{display:flex;flex-direction:column;gap:5px;background:var(--panel);padding:14px}
.jd-kpis small{font-size:11px;color:var(--muted)}
.jd-kpis strong{font-size:21px;font-variant-numeric:tabular-nums}
.jd-picks,.jd-upload,.jd-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}
.jd-picks{margin:14px 0}
.jd-picks label,.jd-upload label,.jd-query-pick{display:flex;flex-direction:column;gap:5px;font-size:12px;color:var(--muted)}
.jd-picks select{min-width:min(330px,85vw);height:34px}
.jd-upload{margin:14px 0}
.jd-upload input{font-size:12px;max-width:240px}
.jd-query-pick{max-width:240px;margin-bottom:14px}
.jd-query-note{padding:10px 12px;border:1px solid var(--line);border-radius:7px;
  background:var(--panel2);font-size:12px;line-height:1.5}
.jd-query-gap-note{border-left:4px solid #b42318}
.jd-query-wrap{max-height:min(620px,70vh);scrollbar-gutter:stable}
.jd-query-gap th,.jd-query-gap td{background:#fff5f5}
.jd-history-wrap{max-height:62vh;scrollbar-gutter:stable}
.jd-history-wrap th,.jd-history-wrap td{min-width:110px}
#jd-conclusion{min-height:min(640px,70vh)}
.jd-conclusion-wrap{height:min(640px,70vh);scrollbar-gutter:stable}
.jd-conclusion-table thead th small,.jd-conclusion-table tbody td small{display:block;margin-top:4px;
  color:var(--muted);font-size:11px;font-weight:400}
.jd-conclusion-table tbody td strong{font-weight:600}
.jd-conclusion-table .jd-conclusion-better strong{color:var(--ok,#067647)}
.jd-conclusion-table .jd-conclusion-worse strong{color:#b42318}
.jd-conclusion-table .jd-conclusion-missing{color:var(--muted)}
@media(max-width:760px){.jd-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
.cr-unified-main .cf-scroll{flex:1;overflow:auto}
.cf-product-field{min-width:min(360px,100%)}
.cf-product-field select{width:100%}
.cf-section-head{display:flex;justify-content:space-between;gap:12px;align-items:center}
.cf-section-head h3{margin:0 0 10px}
@media(max-width:760px){
  .cr-unified-layout{display:flex;flex-direction:column}
  .cr-unified-nav{flex-direction:row;flex-wrap:wrap;padding:8px;border-right:0;
    border-bottom:1px solid var(--line)}
  .cr-unified-nav p,.cr-nav-caption{display:none}
  .cr-unified-nav button{padding:8px 10px;font-size:12px}
  .cr-unified-main{flex:1}
}
/* Этап 3.7: индекс спроса по новым отзывам */
.cf-subhead{font-size:13px;margin:12px 0 6px}
.cf-delta.up{color:var(--ok,#067647);font-weight:600}
.cf-delta.down{color:#b42318;font-weight:600}
.cf-details{margin-top:8px}
.cf-details summary{cursor:pointer;font-size:12px;color:var(--muted);padding:4px 0}
.jd-pulse{margin:0 0 16px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);
  font-size:13px;line-height:1.5}
.jd-pulse-bad{border-color:#e0a39d;background:#fff3f1}
.jd-pulse-flag{margin-top:6px;color:#a32820}
.jd-pulse-old{color:#a32820;font-weight:700}
.jd-pulse-more{margin-top:8px}
.jd-pulse-more summary{cursor:pointer;color:var(--muted);font-size:12px}
.jd-pulse-table{margin-top:8px;max-width:560px}
.jd-pulse-table caption{text-align:left;font-weight:700;padding:4px 0}
.jd-fmt{display:inline-block;padding:2px 7px;border-radius:10px;font-size:11px;background:#eef6ee;color:#256029}
.jd-fmt-bad{background:#fde7e4;color:#a32820;font-weight:700}
.jd-fmt-warn{background:#fff4d6;color:#8a5a00}
