:root {
  color-scheme: light;
  --ink: #202638;
  --muted: #788195;
  --line: #e5e8ef;
  --canvas: #f4f6fa;
  --surface: #fff;
  --accent: #5146bd;
  --accent-deep: #3b3295;
  --accent-soft: #eeedff;
  --teal: #168d83;
  --teal-soft: #e6f5f2;
  --amber: #c47a22;
  --red: #c24d5a;
  --shadow: 0 10px 28px rgb(35 43 69 / 5%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgb(81 70 189 / 25%);
  outline-offset: 2px;
}
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; width: 238px; flex-direction: column;
  overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); padding: 22px 16px 14px;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.menu-close, .menu-toggle { display: none; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px 14px; font-size: 16px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; background: var(--accent); color: #fff; font-size: 16px; }
.brand-mark.brand-logo { overflow: hidden; background: #fff; }
.brand-mark.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-preview { width: 44px; height: 44px; }
.login-legal { margin-top: 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 720px; margin: 0 auto; z-index: 1000;
  display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--panel, #fff);
  border: 1px solid var(--line, #e4e7ec); border-radius: 12px; box-shadow: 0 8px 28px rgba(16, 24, 40, .16); font-size: 13px; }
@media (max-width: 600px) { .cookie-bar { flex-direction: column; align-items: stretch; } }
@media print { .cookie-bar { display: none; } }
.brand span:last-child { color: #8a8da0; font-weight: 500; }
.workspace-switch { display: flex; align-items: center; gap: 10px; width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 11px; color: var(--ink); text-align: left; }
.workspace-avatar { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--teal-soft); color: var(--teal); font-weight: 800; }
.workspace-label { min-width: 0; flex: 1; }
.workspace-label strong, .workspace-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-label strong { font-size: 12px; }
.workspace-label small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.nav-caption { margin: 16px 8px 6px; color: #9ba1af; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; }
.nav-list { display: grid; gap: 2px; }
.nav-link { display: flex; align-items: center; gap: 11px; min-height: 34px; border: 0; border-radius: 9px; background: transparent; padding: 0 10px; color: #777f91; font-size: 12px; text-align: left; }
.nav-link:hover { background: #f7f7fb; color: var(--ink); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.nav-link.nav-off { opacity: .45; }
.nav-link.nav-off:hover { opacity: .8; background: transparent; }
.nav-icon { width: 17px; color: inherit; text-align: center; font-size: 16px; }
.sidebar-bottom { margin-top: auto; }
.project-picker { width: 100%; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: white; padding: 10px; color: var(--ink); font-size: 11px; }
.profile { display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--line); padding: 14px 2px 2px; }
.profile-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.profile-copy { overflow: hidden; flex: 1; }
.profile-copy strong, .profile-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { font-size: 11px; }
.profile-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.main { min-height: 100vh; margin-left: 238px; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; height: 58px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 88%); padding: 0 34px; backdrop-filter: blur(12px); }
.crumb { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.crumb strong { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.crumb-sep { color: var(--line); }
.crumb-link { border: 0; background: none; padding: 4px 0; color: var(--muted); font: inherit; cursor: pointer; white-space: nowrap; }
.crumb-link:hover { color: var(--accent); text-decoration: underline; }
.crumb-select { max-width: 280px; min-height: 30px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 0 8px; color: var(--ink); font: inherit; font-weight: 600; }
.user-menu { position: relative; }
.user-menu summary { display: flex; align-items: center; gap: 8px; min-height: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); padding: 2px 10px 2px 3px; color: var(--ink); font-size: 11px; cursor: pointer; list-style: none; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-pop { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; width: 250px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 8px; box-shadow: var(--shadow); }
.user-menu-head { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding: 6px 8px 10px; }
.user-menu-head strong, .user-menu-head small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-head strong { font-size: 12px; }
.user-menu-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.user-menu-caption { padding: 6px 8px 2px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
button.brand { border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.language-button, .icon-button { min-height: 32px; border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 12px; color: var(--ink); font-size: 11px; }
.icon-button { border-color: transparent; }
.content { width: min(1440px, 100%); margin: 0 auto; padding: 33px 36px 48px; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(26px, 3vw, 38px); letter-spacing: -1.4px; line-height: 1.15; }
.subtitle { margin: 0; color: var(--muted); font-size: 12px; }
.eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 0 15px; font-size: 11px; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-deep); }
.button-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button-danger { border-color: #f0d6d9; background: #fff7f7; color: var(--red); }
.button-teal { background: var(--teal); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.select, .input, .textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 12px; color: var(--ink); font-size: 12px; }
.select-compact { width: auto; min-width: 136px; }
.textarea { min-height: 90px; resize: vertical; padding: 10px 12px; }
.field { display: grid; gap: 6px; }
.field > span, .field-label { color: #5e6678; font-size: 10px; font-weight: 700; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.55; }
.field-help a { color: var(--accent); font-weight: 600; text-decoration: none; }
.field-help a:hover { text-decoration: underline; }
.grid { display: grid; gap: 14px; }
.grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card, .panel { border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.metric-card { min-height: 128px; padding: 17px 18px; }
.metric-label { display: flex; align-items: center; gap: 8px; color: #70798b; font-size: 10px; }
.metric-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.metric-value { margin: 14px 0 3px; font-size: 29px; font-weight: 800; letter-spacing: -.8px; }
.metric-note { color: var(--muted); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 14px; margin-top: 16px; }
.panel { overflow: hidden; }
.panel-head { display: flex; min-height: 65px; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 15px 18px; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 14px; letter-spacing: -.3px; }
.panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
/* сворачиваемые блоки отчётов: клик по заголовку блока (app.js, collapsible) */
section.panel.collapsible > .panel-head h2 { cursor: pointer; }
section.panel.collapsible > .panel-head h2::before { content: "▾ "; color: var(--muted); }
section.panel.collapsed > .panel-head h2::before { content: "▸ "; }
section.panel.collapsed > :not(.panel-head) { display: none; }
section.panel.collapsed > .panel-head { border-bottom: 0; }
.panel-body { padding: 17px 18px; }
.project-list { display: grid; }
/* карточки проектов на обзоре */
.pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.pc-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); transition: box-shadow .15s, transform .15s; }
.pc-card:hover { box-shadow: 0 8px 24px rgba(25, 28, 50, .10); transform: translateY(-1px); }
.pc-cover { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0;
  border-bottom: 1px solid var(--line); cursor: pointer; overflow: hidden;
  background: linear-gradient(135deg, var(--teal-soft, #e6f6f3), #eef0fb); }
.pc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity .25s; }
.pc-cover img.ready { opacity: 1; }
/* приложение: иконка слева, экраны телефона веером справа */
.pc-app { position: absolute; inset: 0; display: flex; align-items: center; gap: 18px; padding: 0 18px;
  background: radial-gradient(circle at 20% 30%, #fff 0, transparent 55%), linear-gradient(135deg, #e8ecff, #e6f6f3); }
.pc-cover .pc-app img { position: static; inset: auto; height: auto; }
.pc-cover .pc-icon { flex: none; width: 72px !important; height: 72px !important; border-radius: 18px;
  box-shadow: 0 6px 18px rgba(25, 28, 50, .18); }
.pc-phones { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.pc-cover .pc-phone { width: 30% !important; max-width: 92px; margin: 0 -6px -18px; border-radius: 12px;
  border: 3px solid #1d1f2b; box-shadow: 0 8px 20px rgba(25, 28, 50, .25); object-fit: cover; }
.pc-cover .pc-phone:nth-child(2) { margin-bottom: -6px; z-index: 1; }
.pc-placeholder { display: grid; place-items: center; gap: 8px; height: 100%; padding: 12px; text-align: center; }
.pc-placeholder .fav { width: 48px; height: 48px; border-radius: 12px; }
.pc-placeholder small { color: var(--muted); font-size: 11px; }
.pc-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 12px; flex: 1; }
.pc-title { display: flex; align-items: center; gap: 8px; }
.pc-title strong { font-size: 15px; }
.pc-unread { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 11px;
  font-weight: 700; white-space: nowrap; }
.pc-domain { color: var(--muted); font-size: 12px; text-decoration: none; margin-top: -4px; }
a.pc-domain:hover { text-decoration: underline; }
.pc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.pc-stats b { color: var(--text, inherit); font-size: 13px; }
.pc-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }
.pc-foot .svc-status { margin: 0; }
.project-row { display: flex; align-items: center; gap: 12px; min-height: 68px; border-bottom: 1px solid #eff0f4; padding: 10px 18px; }
.project-row:last-child { border-bottom: 0; }
.project-symbol { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--teal-soft); color: var(--teal); font-size: 12px; font-weight: 800; }
.project-name { min-width: 0; flex: 1; }
.project-name strong, .project-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-name strong { font-size: 12px; }
.project-name small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.text-button { border: 0; background: transparent; padding: 6px; color: var(--accent); font-size: 11px; font-weight: 700; }
.callout { min-height: 200px; border-radius: 17px; background: linear-gradient(145deg, var(--accent-deep), var(--accent) 64%, color-mix(in srgb, var(--accent) 80%, #fff)); padding: 21px; color: #fff; }
.callout .eyebrow { color: #c8c4ff; }
.callout h2 { max-width: 330px; margin: 13px 0 9px; font-size: 20px; letter-spacing: -.5px; line-height: 1.28; }
.callout p { max-width: 350px; margin: 0; color: #dfdcff; font-size: 11px; line-height: 1.7; }
.callout .button { margin-top: 19px; background: #fff; color: var(--accent-deep); }
.empty-state { display: grid; min-height: 190px; place-items: center; padding: 25px; text-align: center; }
.empty-icon { display: grid; width: 42px; height: 42px; place-items: center; margin: 0 auto 12px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.empty-state h3 { margin-bottom: 6px; font-family: Manrope, sans-serif; font-size: 13px; }
.empty-state p { max-width: 360px; margin: 0 auto 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; background: var(--teal-soft); padding: 5px 9px; color: #15766f; font-size: 9px; font-weight: 700; }
.status-chip.off { background: #f0f1f5; color: #788195; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.section-title { margin: 24px 0 12px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-stack { display: grid; gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.data-table th, .data-table td { border-bottom: 1px solid #eff0f4; padding: 12px 14px; text-align: left; vertical-align: top; }
.data-table th { background: #fafbfc; color: #7b8393; font-size: 9px; font-weight: 700; letter-spacing: .3px; white-space: nowrap; }
.data-table td { color: #454d5e; }
.data-table tr:last-child td { border-bottom: 0; }
.cell-url { display: block; max-width: 330px; overflow-wrap: anywhere; color: var(--accent-deep); }
.cannibal-pages { display: grid; min-width: 230px; max-width: 380px; gap: 8px; }
.cannibal-page { overflow-wrap: anywhere; }
.cannibal-page a { color: var(--accent-deep); text-decoration: none; }
.cannibal-page a:hover { text-decoration: underline; }
.cannibal-page small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.cannibal-pages-wide { max-width: 520px; }
.cannibal-pages-wide .cannibal-page small { font-size: 10px; line-height: 1.5; }
.cann-chip { display: inline-block; border-radius: 99px; padding: 1px 7px; background: var(--accent-soft); color: var(--accent-deep); font-size: 9px; font-weight: 700; vertical-align: 1px; white-space: nowrap; }
.cann-chip-warn { margin-top: 4px; background: #fdf0dc; color: #a8640c; }
.toolbar-spacer { flex: 1; }
.status-chip.bad { background: #fbeaec; color: var(--red); }
.status-chip.warn { background: #fdf3e6; color: var(--amber); }
.row-actions { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.row-actions .text-button { padding: 2px 0; }
.code-block { margin: 8px 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: #fafbfc; padding: 10px 12px; font: 11px/1.6 Consolas, "Courier New", monospace; white-space: pre-wrap; word-break: break-all; }
.notice { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; border-color: #d9d5fb; background: var(--accent-soft); }
.notice > div { min-width: 0; flex: 1; }
.button:disabled { cursor: progress; opacity: .6; transform: none; }
.button .spinner { margin-right: 2px; border-color: rgb(255 255 255 / 40%); border-top-color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tab { margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 9px 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab.active { border-bottom-color: var(--accent); color: var(--accent-deep); }
.grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.subsection { margin: 0; border-top: 1px solid var(--line); padding: 14px 18px 4px; font-size: 13px; }
.subsection-inline { margin: 0 0 8px; font-size: 13px; }
.subform { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.subform .field-hint { margin: 0; }
.kv-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.kv-table th, .kv-table td { border-bottom: 1px solid #eff0f4; padding: 7px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.kv-table th { width: 38%; color: #7b8393; font-weight: 600; }
.check-ok { color: var(--teal); font-weight: 800; }
.check-bad { color: var(--red); font-weight: 700; }
.heading-block { border-top: 1px solid var(--line); }
.heading-block > a { color: var(--accent-deep); font-size: 12px; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.headings { display: grid; gap: 4px; margin-top: 10px; font-size: 12px; }
.heading-line { display: flex; gap: 8px; align-items: baseline; }
.heading-tag { flex: 0 0 auto; min-width: 26px; border-radius: 5px; background: var(--accent-soft); padding: 1px 5px; color: var(--accent-deep); font-size: 9px; font-weight: 800; text-align: center; }
.level-h2 { padding-left: 16px; } .level-h3 { padding-left: 32px; } .level-h4, .level-h5, .level-h6 { padding-left: 48px; color: var(--muted); }
.speed-col { display: grid; align-content: start; gap: 10px; min-width: 0; }
.score-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.score-item { display: grid; justify-items: center; gap: 4px; text-align: center; }
.score-item small { color: var(--muted); font-size: 10px; }
.score-badge { display: inline-grid; min-width: 34px; height: 24px; place-items: center; border-radius: 99px; background: #f0f1f5; padding: 0 8px; color: #788195; font-size: 11px; font-weight: 800; }
.score-item .score-badge { min-width: 46px; height: 46px; font-size: 15px; }
.score-badge.good { background: var(--teal-soft); color: #15766f; }
.score-badge.warn { background: #fdf3e6; color: var(--amber); }
.score-badge.bad { background: #fbeaec; color: var(--red); }
.screenshot { display: block; max-width: 100%; border: 1px solid var(--line); border-radius: 10px; }
.screenshot.mobile { max-width: 260px; }
.full-shot summary { cursor: pointer; color: var(--accent-deep); font-size: 11px; font-weight: 700; }
.full-shot-frame { max-height: 640px; margin-top: 8px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.full-shot-frame img { display: block; max-width: 100%; }
.mini-title { margin: 6px 0 0; font-size: 12px; }
.issue { border-bottom: 1px solid #eff0f4; padding: 8px 0; font-size: 12px; }
.issue summary { cursor: pointer; }
.url-list { margin: 8px 0 0; padding-left: 18px; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.url-list a { color: var(--accent-deep); text-decoration: none; }
.traffic-filters .select-compact { min-width: 0; }
.traffic-notes { display: grid; gap: 2px; margin: 10px 2px 0; }
.chart-wrap { position: relative; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.axis-label { fill: #898781; font-size: 11px; font-variant-numeric: tabular-nums; }
.chart-tip { position: absolute; top: 4px; z-index: 3; min-width: 150px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px 10px; box-shadow: 0 8px 24px rgb(30 35 50 / 12%); font-size: 11px; pointer-events: none; }
.tip-head { margin-bottom: 4px; color: var(--muted); }
.tip-row { display: flex; align-items: center; gap: 6px; line-height: 1.7; }
.tip-row strong { color: var(--ink); }
.tip-row span:last-child { color: var(--muted); }
.tip-key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 0; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.legend-key.line { width: 14px; height: 2px; border-radius: 1px; }
.legend-key.rect { width: 10px; height: 10px; border-radius: 2px; }
.legend-key.dash { width: 14px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px) !important; }
.legend-key.area { width: 14px; height: 10px; border-radius: 2px; opacity: 0.18; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg-btn { border: 0; border-radius: 7px; background: transparent; padding: 5px 10px; color: var(--muted); font-size: 11px; font-weight: 600; }
.seg-btn.active { background: var(--accent-soft); color: var(--accent-deep); }
.delta { font-size: 11px; font-weight: 700; }
.delta.up { color: #006300; }
.delta.down { color: #d03b3b; }
.delta.flat { color: var(--muted); }
.share-bar { width: 140px; height: 8px; border-radius: 4px; background: #eef4fc; }
.share-bar span { display: block; height: 100%; border-radius: 4px; background: #2a78d6; }
.issues { margin: 10px 0 0; padding-left: 18px; font-size: 11px; line-height: 1.7; }
.suggest-list { margin: 12px 0 0; padding-left: 20px; font-size: 12px; line-height: 1.8; }
.ai-result { border: 1px solid #d9d5fb; border-radius: 12px; background: #fbfaff; padding: 14px 16px; }
.ai-text { margin-top: 8px; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 20; max-width: min(440px, calc(100vw - 32px)); border: 1px solid #e7c8cb; border-radius: 12px; background: #fff; padding: 12px 16px; box-shadow: 0 10px 40px rgb(30 35 50 / 16%); color: #963640; font-size: 12px; }
.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .85fr) 1.15fr; background: #fff; }
.login-aside { display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(155deg, var(--accent-deep), var(--accent) 68%, #1d8d84); padding: 36px; color: #fff; }
.login-aside .brand { padding: 0; }
.login-aside .brand span:last-child { color: #d7d5fa; }
.login-aside-copy { max-width: 460px; padding: 50px 0; }
.login-aside-copy h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; }
.login-aside-copy p { max-width: 400px; color: #dddcf7; font-size: 13px; line-height: 1.8; }
.login-aside-foot { color: #d1cff1; font-size: 10px; }
.login-main { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(390px, 100%); }
.login-card h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.7px; }
.login-card > p { margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.login-form { display: grid; gap: 15px; }
.login-form .button { width: 100%; min-height: 43px; margin-top: 4px; }
.error-box { border: 1px solid #f0d6d9; border-radius: 9px; background: #fff7f7; padding: 10px 12px; color: #a13e48; font-size: 11px; line-height: 1.5; }
.login-note { margin-top: 22px; border-radius: 10px; background: #f6f7fa; padding: 12px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.loading { display: grid; min-height: 100vh; place-items: center; color: var(--muted); font-size: 12px; }
.spinner { display: inline-block; width: 14px; height: 14px; margin-right: 8px; border: 2px solid #deddf7; border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .grid-four, .grid-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding-right: 24px; padding-left: 24px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr); }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: auto; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; }
  .brand { padding: 0 2px 10px; }
  .workspace-switch, .nav-caption, .sidebar-bottom { display: none; }
  .nav-list { display: flex; overflow-x: auto; gap: 5px; }
  .nav-link { min-width: max-content; min-height: 35px; padding: 0 9px; }
  /* меню — по кнопке ☰ поверх страницы, с группами */
  .sidebar { display: none; }
  .menu-toggle { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 36px; height: 36px; margin-right: 8px;
    border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 18px; cursor: pointer; }
  .app-shell.nav-open .sidebar { display: flex; position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 14px 16px 24px; }
  .app-shell.nav-open .menu-close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0;
    border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 22px; cursor: pointer; }
  .app-shell.nav-open .nav-caption { display: block; margin: 14px 8px 6px; }
  .app-shell.nav-open .nav-list { display: grid; overflow: visible; }
  .app-shell.nav-open .nav-link { min-width: 0; min-height: 42px; font-size: 14px; }
  .nav-icon { width: auto; }
  .main { margin-left: 0; }
  .topbar { height: 48px; padding: 0 15px; }
  .content { padding: 24px 15px 35px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-aside { min-height: 220px; padding: 22px; }
  .login-aside-copy { padding: 22px 0 10px; }
  .login-aside-copy h1 { font-size: 33px; }
  .login-aside-copy p, .login-aside-foot { display: none; }
  .login-main { padding: 34px 22px; }
}
@media (max-width: 520px) {
  .grid-four, .grid-five, .grid-two, .grid-three, .form-grid { grid-template-columns: 1fr; }
  .page-heading { flex-direction: column; }
  .metric-card { min-height: 110px; }
  .top-actions { gap: 3px; }
  .crumb { font-size: 10px; gap: 5px; }
  .crumb:has(.crumb-select) .crumb-link, .crumb:has(.crumb-select) > strong, .crumb:has(.crumb-select) .crumb-sep { display: none; }
  .crumb-select { max-width: 170px; }
  .user-menu-name { display: none; }
  .language-button { padding: 0 9px; }
}

.data-table .num { text-align: right; white-space: nowrap; }
.action-menu { position: relative; display: inline-block; }
.action-menu summary { list-style: none; cursor: pointer; white-space: nowrap; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 220px; display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(20, 24, 40, .14); text-align: left; }
.action-menu-list button, .action-menu-list a { display: block; width: 100%; border: 0; border-radius: 7px; background: none; padding: 8px 10px; color: var(--ink); font: inherit; font-size: 12px; text-align: left; text-decoration: none; cursor: pointer; }
.action-menu-list button:hover, .action-menu-list a:hover { background: #f3f4f8; }
.action-menu-list .danger { color: var(--red); }
.action-menu-list hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.sqi-badge { display: block; margin-bottom: 6px; border-radius: 4px; }
.brief-outline { margin: 8px 0 0; padding-left: 20px; font-size: 12px; line-height: 1.6; }
.brief-md { max-height: 480px; overflow: auto; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; font-size: 11px; white-space: pre-wrap; }
.brief-topics { font-size: 12px; line-height: 1.6; }
.issue summary .cell-url { display: inline; }
.pa-issues { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
/* оценки по категориям (сканирование, технический аудит страницы) */
.score-ring { flex: none; display: block; }
.score-ring .ring-bg { fill: none; stroke-width: 6; }
.score-ring .ring-fg { fill: none; stroke-width: 6; stroke-linecap: round; }
.score-ring text { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.score-ring.good .ring-bg { stroke: #dcf2ec; } .score-ring.good .ring-fg { stroke: #12a37f; } .score-ring.good text { fill: #0f8a6b; }
.score-ring.mid .ring-bg { stroke: #fbecd2; } .score-ring.mid .ring-fg { stroke: #e39a1f; } .score-ring.mid text { fill: #b8761a; }
.score-ring.bad .ring-bg { stroke: #fadfe3; } .score-ring.bad .ring-fg { stroke: #d9455a; } .score-ring.bad text { fill: #c23a4e; }
.cat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; text-align: center; transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { border-color: #c9cdf3; box-shadow: var(--shadow); }
.cat-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.cat-card-name { font-weight: 650; font-size: 14px; }
.cat-card-line { font-size: 12px; line-height: 1.4; }
.check-warn { color: var(--amber); }
.check-ok { color: var(--teal); }
.audit-head { display: flex; align-items: center; gap: 16px; justify-content: flex-start; }
.audit-strip { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.audit-strip > div { flex: 1; }
.check-list { display: grid; gap: 10px; }
.audit-cat { padding: 18px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.audit-cat .audit-head { margin-bottom: 12px; }
.audit-cat h3 { margin: 0; }
.check-box { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8f9fb; font-size: 13px; line-height: 1.45; }
.check-box strong { font-weight: 650; }
.check-box-text { color: var(--muted); margin-top: 2px; }
.check-box-detail { color: var(--ink); word-break: break-word; }
.check-box-icon { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: #8a93a6; }
.check-box.sev-error { background: #fff5f6; border-color: #f6d2d8; } .check-box.sev-error .check-box-icon { background: #d9455a; }
.check-box.sev-warning { background: #fffbf1; border-color: #f6e3b8; } .check-box.sev-warning .check-box-icon { background: #e39a1f; }
.check-passed { border: 1px solid #c8eadf; border-radius: 12px; background: #f3fbf8; font-size: 13px; }
.check-passed summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; color: #0f8a6b; font-weight: 650; }
.check-passed .check-box-icon { background: #12a37f; }
.check-passed ul { margin: 0; padding: 0 16px 12px 44px; line-height: 1.7; }
@media print { .cat-card { break-inside: avoid; box-shadow: none; } .check-passed { break-inside: avoid; } }
.pa-issue { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border-radius: 9px; background: #f7f8fa; font-size: 12px; line-height: 1.45; }
.pa-issue.bad { background: #fbeaec; }
.pa-issue.warn { background: #fdf3e6; }
.pa-issue-icon { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 700; background: #e3e6ec; color: #5b6475; }
.pa-issue.bad .pa-issue-icon { background: var(--red); color: #fff; }
.pa-issue.warn .pa-issue-icon { background: var(--amber); color: #fff; }
.pos-chip { display: inline-block; min-width: 34px; border-radius: 99px; padding: 2px 7px; font-size: 10px; font-weight: 700; text-align: center; background: #f0f1f5; color: #788195; }
.pos-chip.top3 { background: var(--teal-soft); color: #15766f; }
.pos-chip.top10 { background: #fdf3e6; color: var(--amber); }
.pa-queries th.group-head { text-align: center; }
.pa-query { font-size: 12px; }
.pa-bar { height: 3px; margin-top: 5px; border-radius: 3px; background: #f0f1f5; }
.pa-bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent, #5b4cdb); opacity: .55; }
.pa-more { margin-top: 12px; }
.pa-more > summary { cursor: pointer; font-size: 12px; font-weight: 600; }
.pa-link { margin-left: 6px; font-size: 10px; }
.intent-chip { display: inline-block; margin-left: 4px; border-radius: 99px; padding: 1px 7px; font-size: 9px; font-weight: 700; vertical-align: 1px; }
.intent-chip.transactional { background: #e3f4ef; color: #15766f; }
.intent-chip.commercial { background: #fdf0dc; color: #a8640c; }
.intent-chip.informational { background: #e6effc; color: #2f5fb3; }
.intent-chip.navigational { background: #efeafd; color: #5a43b8; }
.intent-bar { display: flex; height: 10px; margin-top: 8px; overflow: hidden; border-radius: 6px; background: #f0f1f5; }
.intent-bar span { display: block; height: 100%; }
.intent-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.intent-legend .text-button { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 11px; }
.intent-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.intent-bar .transactional, .intent-dot.transactional { background: #2aa38f; }
.intent-bar .commercial, .intent-dot.commercial { background: #e39a33; }
.intent-bar .informational, .intent-dot.informational { background: #4f86d9; }
.intent-bar .navigational, .intent-dot.navigational { background: #8b72e0; }
.intent-bar .none, .intent-dot.none { background: #d5d9e1; }
.ext-group { margin-top: 12px; }
.ext-group-title { margin-bottom: 6px; color: #7b8393; font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.ext-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.ext-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; text-decoration: none; }
.ext-button:hover { border-color: var(--accent); background: var(--accent-soft); }
.ext-button img { flex: none; border-radius: 3px; }
.scan-favicon { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; border-radius: 3px; }
.compare-table td.compare-best { color: #15766f; font-weight: 700; }
.compare-table td.compare-group { background: #fafbfc; color: #7b8393; font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
@media print {
  .sidebar, .topbar, .tabs, form, .no-print, .ext-panel, .toast, .page-heading, .panel-head { display: none !important; }
  .print-only { display: block !important; }
  body, .app-shell, .main, .content { background: #fff !important; }
  .app-shell { display: block !important; }
  .main { margin: 0 !important; width: 100% !important; }
  .content { padding: 0 !important; }
  /* большую панель с отчётом разрывать можно — иначе она целиком уезжает на вторую страницу, первая пустая */
  .panel { box-shadow: none !important; border: 0 !important; }
  .metric-card, .data-table tr, .kv-table tr { box-shadow: none !important; break-inside: avoid; }
  .subsection, .subsection-inline { break-after: avoid; }
  .table-wrap { overflow: visible !important; }
  a { color: inherit; text-decoration: none; }
}
.loading-dots { animation: pulse-fade 1.2s ease-in-out infinite; }
@keyframes pulse-fade { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
/* подсветка строки под курсором во всех таблицах */
.data-table tbody tr, .kv-table tbody tr { transition: background-color .12s ease; }
.data-table tbody tr:hover, .kv-table tbody tr:hover { background: #f4f2fd; }
.compare-table tbody tr:hover td.compare-group { background: #fafbfc; }
.segmented-row { padding-top: 0; padding-bottom: 8px; }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: #f0f1f5; }
.segment { border: 0; border-radius: 8px; background: transparent; padding: 6px 12px; color: #5b6475; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.segment:hover { color: var(--ink); }
.segment.active { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(20, 24, 40, .1); }
.ext-panel { border-bottom: 1px solid var(--line); background: #fbfbfe; }
@media print { .data-table tbody tr:hover, .kv-table tbody tr:hover { background: none; } }
.print-only { display: none; }
.print-title { padding: 0 0 12px; }
.print-title h1 { margin: 0 0 4px; font-size: 22px; }
.print-title p { margin: 0; color: #5b6475; font-size: 11px; }
.picker-head { margin: 14px 0 8px; font-size: 12px; font-weight: 600; }
.competitor-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.pick-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.pick-card:hover:not(:disabled) { border-color: var(--accent); background: #f8f7fe; }
.pick-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.pick-card:disabled { opacity: .45; cursor: not-allowed; }
.pick-card .fav { flex: none; border-radius: 3px; }
.pick-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pick-domain { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pick-name { overflow: hidden; color: #7b8393; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.pick-sqi { flex: none; border-radius: 99px; padding: 2px 7px; background: #f0f1f5; color: #5b6475; font-size: 10px; font-weight: 700; }
.pick-mark { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #f0f1f5; color: #5b6475; font-size: 12px; font-weight: 700; }
.pick-card.selected .pick-mark { background: var(--accent); color: #fff; }
.crux-row { margin-top: 10px; }
.crux-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 4px; font-size: 12px; }
.crux-p75 { border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.crux-p75.good { background: #e3f4ef; color: #15766f; }
.crux-p75.needs_improvement { background: #fdf0dc; color: #a8640c; }
.crux-p75.poor { background: #fbeaec; color: var(--red); }
.crux-bar { display: flex; height: 16px; overflow: hidden; border-radius: 5px; background: #f0f1f5; font-size: 9px; font-weight: 700; line-height: 16px; color: #fff; text-align: center; }
.crux-bar span { display: block; height: 100%; }
.crux-bar .good { background: #2aa38f; }
.crux-bar .ni { background: #e39a33; }
.crux-bar .poor { background: #d9534f; }
/* «?» с подсказкой к пунктам отчёта */
.help-btn { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 16px; height: 16px; margin-left: 5px; padding: 0 0 1px 1px; border: 1px solid #c9cdd8; border-radius: 50%; background: #fff; color: #7b8393; font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1; vertical-align: -2px; cursor: pointer; flex: none; transition: border-color .12s, color .12s, background .12s; }
.help-btn:hover, .help-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.help-popover { position: absolute; z-index: 1000; width: min(360px, calc(100vw - 16px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 10px 30px rgba(20, 24, 40, .16); font-size: 12px; font-weight: 400; line-height: 1.5; text-transform: none; letter-spacing: 0; }
.help-popover p { margin: 0; }
.help-links { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.help-links a { color: var(--accent); font-weight: 600; text-decoration: none; }
.help-links a:hover { text-decoration: underline; }
@media print { .help-btn, .help-popover { display: none !important; } }
/* динамика CrUX: телефоны — основной цвет, компьютеры — серый; пороги — пунктир */
.cwv-charts { margin-top: 10px; }
.cwv-chart-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.cwv-last { color: #5b6475; font-size: 11px; font-weight: 400; }
.cwv-swatch { display: inline-block; width: 10px; height: 3px; margin-right: 5px; border-radius: 2px; vertical-align: 3px; }
.cwv-swatch.phone { background: var(--accent); }
.cwv-swatch.desktop { background: #9aa1b1; }
.cwv-chart { position: relative; }
.cwv-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.cwv-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cwv-line.phone { stroke: var(--accent); }
.cwv-line.desktop { stroke: #9aa1b1; }
.cwv-rule { stroke: #c9cdd8; stroke-width: 1; stroke-dasharray: 3 3; }
.cwv-rule-label, .cwv-axis { fill: #8a92a3; font-size: 8px; }
.cwv-cross { stroke: #5b6475; stroke-width: 1; }
.cwv-tip { position: absolute; top: -6px; z-index: 5; padding: 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(20, 24, 40, .12); color: var(--ink); font-size: 11px; line-height: 1.5; white-space: nowrap; pointer-events: none; transform: translateY(-100%); }
@media print { .cwv-tip, .cwv-cross { display: none !important; } }
/* технологии на сайте: категории колонками, как в Wappalyzer */
.tech-grid { columns: 3 220px; column-gap: 28px; }
.tech-group { break-inside: avoid; margin-bottom: 14px; }
.tech-cat { margin-bottom: 6px; font-size: 12px; font-weight: 700; }
.tech-group ul { margin: 0; padding: 0; list-style: none; }
.tech-item { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; }
.tech-item img, .tech-noicon { flex: none; width: 16px; height: 16px; object-fit: contain; }
.tech-noicon { border-radius: 4px; background: #f0f1f5; }
.tech-version { border-radius: 99px; padding: 0 6px; background: #f0f1f5; color: #5b6475; font-size: 10px; }
.tech-browser { border-radius: 99px; padding: 0 6px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 600; white-space: nowrap; }
/* ТЗ «Раздел каталога» */
.cov-mark { display: inline-block; width: 14px; text-align: center; font-size: 12px; line-height: 1; }
.cov-mark.full { color: #15766f; }
.cov-mark.partial { color: #c27a14; }
.cov-mark.none { color: #b8bfcc; }
.cb-queries td input[type=checkbox] { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.data-table tr.selected-row td { background: var(--accent-soft); }
.target-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.target-chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 4px 6px 4px 12px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.target-chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 14px; line-height: 1; cursor: pointer; }
.target-chip button:hover { background: rgba(81, 70, 189, .15); }
.soon-button:disabled { opacity: .6; cursor: not-allowed; }
.soon-tag { margin-left: 4px; border-radius: 99px; padding: 0 6px; background: #f0f1f5; color: #7b8393; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.cb-compare td.cb-own, .cb-compare th.cb-own, td.cb-own, th.cb-own { background: #fafaff; font-weight: 600; }
.cb-compare td.cb-outside { color: #a8640c; }
.brief-outline li.lvl-h3 { padding-left: 14px; }
.brief-outline li.lvl-h4, .brief-outline li.lvl-h5, .brief-outline li.lvl-h6 { padding-left: 28px; }
#cb-collect-form textarea { width: 100%; max-width: none; min-height: 110px; font-family: inherit; resize: vertical; }
td.check-bad { color: var(--red); font-weight: 700; }
/* каталог инструментов */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tool-card { display: flex; align-items: flex-start; gap: 12px; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.tool-card:hover:not(.disabled) { border-color: var(--accent); background: #f8f7fe; }
.tool-card.disabled { background: #fafbfc; color: #7b8393; cursor: not-allowed; }
.tool-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 700; }
.tool-card.disabled .tool-icon { background: #f0f1f5; color: #9aa1b1; }
.tool-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool-text strong { font-size: 13px; }
.tool-text span { color: #7b8393; font-size: 11px; line-height: 1.4; }
.tool-text .tool-src { color: #a8640c; font-size: 10px; }
.tool-back { margin: 0 0 12px; gap: 10px; }
.tool-textarea { width: 100%; max-width: none; font-family: inherit; resize: vertical; }
.input-narrow { width: 72px; }
.field-inline { display: inline-flex; align-items: center; gap: 6px; color: #5b6475; font-size: 12px; }
.tool-scroll { max-height: 640px; overflow: auto; }
.cluster-group summary { cursor: pointer; }
.bm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 18px; margin-top: 12px; }
.bm-row { display: flex; align-items: center; gap: 10px; }
.bm-link { flex: none; border: 1px dashed var(--accent); border-radius: 8px; padding: 5px 10px; background: var(--accent-soft); color: var(--accent-deep); font-size: 12px; font-weight: 600; text-decoration: none; cursor: grab; }
/* массовая проверка */
.bulk-checks { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 10px; }
.bulk-checks > div { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.bulk-table td { white-space: nowrap; }
.bulk-text { display: inline-block; max-width: 280px; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* сортировка таблиц кликом по заголовку */
.data-table:not(.compare-table):not(.no-sort) thead th:not(:empty):not(.group-head) { cursor: pointer; user-select: none; }
.data-table:not(.compare-table):not(.no-sort) thead th:not(:empty):not(.group-head):hover { color: #454d5e; }
.data-table th.sorted-asc, .data-table th.sorted-desc { color: var(--accent, #6c5ce7); }
.data-table th.sorted-asc::after { content: " ▲"; font-size: 8px; }
.data-table th.sorted-desc::after { content: " ▼"; font-size: 8px; }
@media print { .data-table th.sorted-asc::after, .data-table th.sorted-desc::after { content: ""; } }
.data-table tr.row-selected td { background: var(--accent-soft); }
.metric-card.metric-card-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.data-table td.url-cell { max-width: 420px; overflow-wrap: anywhere; }

/* ТОП-10 выдачи */
.serp-table td { width: 48%; }
.serp-table td.num { width: 32px; }
.serp-table td.serp-own { background: var(--accent-soft); }
.check-inline { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #454d5e; }

/* Вордстат: помесячные столбики */
.ws-bars { display: block; }
.ws-bars rect { fill: var(--accent); opacity: .75; }
.ws-bars rect:hover { opacity: 1; }

/* ответ ИИ в ТЗ: длинный текст — с прокруткой */
.ai-answer { max-height: 420px; overflow-y: auto; padding-right: 6px; font-size: 12px; }

/* анализ выдачи: подсветки, которых нет в запросе */
.target-chip.hl-new { background: var(--teal-soft); color: #15766f; }

/* позиции: мини-график истории */
.rank-spark { display: block; overflow: visible; }
.rank-spark polyline { stroke: var(--accent); stroke-width: 1.5; opacity: .6; }
.rank-spark circle { fill: var(--accent); }

/* пометки на графиках */
.note-num { fill: #fff; font-size: 10px; font-weight: 700; pointer-events: none; }
.chart-note { cursor: help; }
.notes-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.notes-list li { display: block; }
.note-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; margin-right: 6px;
  background: #898781; color: #fff; font-size: 10px; font-weight: 700; vertical-align: middle; }
.note-badge.note-global { background: #eb6834; }

/* общий выбор периода */
.period-picker { display: block; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 8px 14px; border: 1px solid var(--line, #e1e0d9);
  border-radius: 14px; background: var(--surface, #fff); }
.period-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.period-row .input { width: auto; max-width: 160px; }
.period-label { min-width: 90px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted, #6b6a63); }
.period-seg { flex-wrap: wrap; }

/* сезонность */
.season-table td.season-cell { font-size: 12px; min-width: 44px; }

/* иконка помощника в шапке: показать или спрятать */
.top-actions { display: flex; align-items: center; gap: 10px; }
.helper-toggle { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface, #fff);
  cursor: pointer; overflow: hidden; display: grid; place-items: end center; transition: opacity .2s, filter .2s; }
.helper-toggle svg { width: 40px; height: 40px; display: block; }
.helper-toggle.off { opacity: .55; filter: grayscale(1); }
.helper-toggle:hover { opacity: 1; filter: none; }
.helper-toggle:focus-visible { outline: 3px solid #4f46e5; outline-offset: 2px; }
.helper-toggle-wrap { position: relative; display: inline-flex; }
.helper-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; pointer-events: none; }
/* уведомления: значок в шапке и список */
.notif-wrap { position: relative; display: inline-flex; }
.notif-bell { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface, #fff);
  color: var(--muted, #64748b); cursor: pointer; display: grid; place-items: center; }
.notif-bell:hover, .notif-bell.active { color: var(--accent, #4f46e5); border-color: currentColor; }
.notif-bell:focus-visible { outline: 3px solid #4f46e5; outline-offset: 2px; }
.notif-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; pointer-events: none; }
.nt-day { margin: 14px 0 6px; }
.nt-day:first-child { margin-top: 0; }
.nt-list { display: flex; flex-direction: column; gap: 8px; }
.nt-item { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.nt-item.unread { border-left: 4px solid var(--accent, #4f46e5); background: color-mix(in srgb, var(--accent, #4f46e5) 5%, transparent); }
.nt-item.unread .nt-title { font-weight: 700; }
.nt-item:not(.unread) .nt-title { font-weight: 500; }
.nt-sev { font-size: 14px; line-height: 22px; width: 16px; text-align: center; color: #3b82f6; }
.nt-item.sev-critical .nt-sev { color: #ef4444; }
.nt-item.sev-warning .nt-sev { color: #f59e0b; }
.nt-body { min-width: 0; flex: 1; }
.nt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 2px; }
.nt-text { margin: 2px 0 0; color: var(--muted, #475569); overflow-wrap: anywhere; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tool-filter { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.tool-filter .input { max-width: 460px; }
.tool-card[hidden], section[hidden] { display: none !important; }
/* период — свёрнут в одну строку */
.period-picker > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.period-picker > summary::-webkit-details-marker { display: none; }
.period-picker > summary strong { font-size: 13px; }
.period-caret { color: var(--muted, #8a90a0); font-size: 11px; transition: transform .15s; }
.period-picker[open] .period-caret { transform: rotate(180deg); }
.period-info { color: var(--muted, #8a90a0); font-size: 13px; cursor: help; }
.period-picker[open] { width: auto; }
.period-body { display: grid; gap: 8px; margin-top: 10px; }
/* оглавление длинной страницы */
/* на десктопе — в несколько строк, без прокрутки вбок; на телефоне — лентой (см. ниже) */
.page-toc { position: sticky; top: 58px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -8px 0 14px;
  padding: 8px 0; background: var(--canvas); }
.page-toc .period-label { min-width: auto; margin-right: 4px; }
.toc-link { flex: none; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
  font-size: 12px; text-decoration: none; }
.toc-link:hover { border-color: var(--accent); color: var(--accent-deep); }
.content section.panel { scroll-margin-top: 120px; }
.to-top { position: fixed; bottom: 24px; left: 262px; z-index: 20; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--ink); font-size: 18px; box-shadow: 0 6px 18px rgb(30 40 70 / 15%); cursor: pointer; }
.to-top[hidden] { display: none; }
/* место под помощником: последние строки отчёта не прячутся под ним */
.content { padding-bottom: 120px; }
/* важность замечания — словом, не только цветом */
.sev-chip { display: inline-block; min-width: 58px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 700; text-align: center;
  text-transform: uppercase; letter-spacing: .03em; vertical-align: 1px; }
.sev-error { background: #fde8e8; color: #b42318; }
.sev-warning { background: #fff4e0; color: #9a5b00; }
.sev-info { background: #eef0f6; color: #5b6475; }
@media (max-width: 760px) {
  .to-top { left: 16px; bottom: 16px; }
  .page-toc { top: 48px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .page-toc::-webkit-scrollbar { display: none; }
  .period-picker, .period-picker[open] { width: 100%; }
}
.period-picker > summary .period-label { min-width: auto; }
body.nav-open #seohub-helper { display: none; }
.sev-notice { background: #eef0f6; color: #5b6475; }
/* замечания сканирования — якоря к отфильтрованной таблице «Страницы» */
.issue-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--accent-deep); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.issue-link:hover { text-decoration: underline; }
.issue-arrow { color: var(--muted); font-size: 11px; opacity: 0; transition: opacity .15s; }
.issue-link:hover .issue-arrow, tr.row-selected .issue-arrow { opacity: 1; }
#crawl-pages, #crawl-issues { scroll-margin-top: 120px; }
/* таблица перезагружается — старые строки приглушены, пока не пришли новые */
.panel.is-loading tbody { opacity: .45; transition: opacity .15s; }
/* Прокручиваемая вбок строка вкладок: overflow-x: auto включает и вертикальную прокрутку, а вкладки с
   margin-bottom: -1px (подчёркивание поверх линии) вылезали на 1px — появлялась стрелка прокрутки. Линия здесь —
   тень внутри строки, вкладки без сдвига: переполнения нет, подчёркивание активной — целиком поверх линии */
.crawl-tabs, .page-tabs { margin: 0 0 14px; overflow-x: auto; overflow-y: hidden; border-bottom: 0;
  box-shadow: inset 0 -1px 0 var(--line); }
.crawl-tabs .tab, .page-tabs .tab { margin-bottom: 0; white-space: nowrap; }
/* доступ и расход (администратор) */
.metric-inline { align-self: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.metric-inline strong { color: var(--ink); font-size: 20px; }
.input-compact { min-height: 32px; padding: 4px 8px; }
.access-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.access-days { display: flex; align-items: flex-end; gap: 3px; min-height: 80px; overflow-x: auto; }
.access-day { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 18px; }
.access-day span { display: block; width: 12px; border-radius: 3px 3px 0 0; background: var(--accent); }
.access-day small { color: var(--muted); font-size: 8px; }
/* история ИКС у конкурентов */
.sqi-spark { margin-left: 4px; vertical-align: middle; }
.sqi-spark path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
/* ТЗ каталога: конкурент в нормах */
.cb-norm { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 4px; font-size: 10px; font-weight: 500; color: var(--muted); white-space: nowrap; }
/* плашка долгой операции: внизу экрана, видна при любой прокрутке */
.busy-bar { position: fixed; left: 50%; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: min(680px, calc(100vw - 32px)); transform: translateX(-50%); border-radius: 12px; background: var(--ink); color: #fff; padding: 10px 16px; box-shadow: var(--shadow); font-size: 12px; }
.busy-bar .spinner { flex: none; border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.busy-elapsed { flex: none; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
@media print { .busy-bar { display: none; } }
.busy-more { flex: none; border-radius: 99px; background: rgba(255,255,255,.18); padding: 1px 7px; font-weight: 700; }
/* сводка скана для руководства */
.exec-report { padding: 18px; }
.exec-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.exec-head h2 { margin: 0 0 4px; font-size: 22px; }
.exec-head p { margin: 2px 0; }
.exec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.exec-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.exec-card h3 { margin: 4px 0 6px; font-size: 14px; }
.exec-ring { flex: none; }
.exec-fail { font-size: 11px; color: var(--red); margin-top: 2px; }
.exec-ok { font-size: 11px; color: #006300; }
.exec-top { margin: 0 18px 0 0; padding-left: 22px; }
.exec-top li { margin-bottom: 10px; }
.exec-top p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.exec-note { margin-top: 16px; }
@media print { .exec-card { break-inside: avoid; } .exec-grid { grid-template-columns: repeat(2, 1fr); } }
/* ТЗ: режимы «Быстрый» и «Экспертный» */
.brief-mode { display: inline-flex; align-self: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--surface); }
.brief-mode .tab { border-radius: 8px; padding: 6px 14px; }
.brief-mode .tab.active { background: var(--accent); color: #fff; }
.quick-steps { list-style: none; margin: 0; padding: 0 18px 14px; }
.quick-steps li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.quick-mark { display: inline-flex; justify-content: center; width: 18px; color: var(--muted); }
.quick-done .quick-mark { color: #006300; }
.quick-error .quick-mark, .quick-error { color: var(--red); }
.quick-wait { color: var(--muted); }

/* настройки проекта: плитки подключений, карточка проекта, карточки сервисов */
.project-card { display: flex; gap: 14px; align-items: center; }
.project-card .fav { width: 40px; height: 40px; border-radius: 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.svc-tile { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface); color: inherit; font: inherit; }
button.svc-tile { cursor: pointer; }
button.svc-tile:hover, button.svc-tile:focus-visible { border-color: var(--accent, #2f6fde); }
.svc-tile .fav { width: 28px; height: 28px; border-radius: 6px; flex: none; }
.svc-name { font-weight: 600; }
.svc-status { font-size: 12.5px; margin-top: 3px; display: flex; gap: 6px; align-items: baseline; color: var(--muted, #6b7280); }
.svc-status .status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-1px); }
.svc-ok { color: #1f8a4c; }
.svc-warn { color: #b7791f; }
.svc-wait { color: #2f6fde; }
.svc-off { color: var(--muted, #8a8f98); }
.svc-card h3 { display: flex; gap: 8px; align-items: center; }
.svc-card.dirty { border-color: #b7791f; }
.card-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.dirty-bar { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  margin-top: 12px; padding: 10px 14px; border: 1px solid #b7791f; border-radius: 12px; background: var(--surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.dirty-bar[hidden] { display: none; }
.dirty-bar span { font-weight: 600; margin-right: auto; }
.field-more summary { cursor: pointer; font-size: 11px; color: var(--accent, #2f6fde); list-style: none; width: max-content; }
.field-more summary::-webkit-details-marker { display: none; }
.field-more[open] summary { margin-bottom: 2px; }
.setup-guide { margin: 4px 0 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; background: var(--accent-soft); }
.setup-guide summary { cursor: pointer; font-weight: 700; color: var(--accent-deep); }
.setup-guide ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 8px; font-size: 12px; line-height: 1.5; }
.setup-guide code { font-size: 11px; }
.conn-check { display: grid; gap: 6px; margin: 10px 0 0; font-size: 13px; }
.conn-check-row { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.conn-check-row .cc-mark { font-weight: 700; width: 14px; text-align: center; }
.cc-ok .cc-mark { color: var(--success, #2e7d32); }
.cc-warn { background: rgba(240, 170, 0, .08); } .cc-warn .cc-mark { color: #b07800; }
.cc-error { background: rgba(220, 50, 50, .07); } .cc-error .cc-mark { color: var(--danger); }
.setup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 14px; }
.setup-item { display: flex; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 8px; border: 1px solid transparent;
  background: none; color: inherit; font: inherit; text-align: left; }
button.setup-item { cursor: pointer; border-color: var(--line); }
button.setup-item:hover, button.setup-item:focus-visible { border-color: var(--accent, #2f6fde); }
.setup-mark { width: 16px; flex: none; color: var(--muted, #8a8f98); }
.setup-item.on .setup-mark { color: #1f8a4c; }
.svc-flash { animation: svc-flash 1.6s ease; }
@keyframes svc-flash { 0%, 40% { box-shadow: 0 0 0 3px rgba(47, 111, 222, .35); } 100% { box-shadow: none; } }
.danger-zone { border-color: rgba(200, 50, 50, .35); }

.sync-source { display: flex; gap: 8px; align-items: center; }
.sync-source .fav { border-radius: 4px; }

/* администрирование: интеграции, проекты пользователя */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; align-items: start; }
.int-card .panel-head h2 { font-size: 16px; }
.int-usage h4 { margin: 10px 0 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.int-list { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 12.5px; }
.int-list b { text-align: right; }
.int-check { padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.int-check.ok { background: rgba(31, 138, 76, .08); }
.int-check.ok b { color: #1f8a4c; }
.int-check.bad { background: rgba(200, 50, 50, .07); }
.int-check.bad b { color: #c0392b; }
.pb-chars td, .pb-chars th { max-width: 220px; }
.err-trace { max-height: 280px; overflow: auto; font-size: 11px; white-space: pre-wrap; }
tr.user-projects > td { background: var(--surface-2, rgba(127, 127, 127, .04)); }
.user-project { display: flex; align-items: center; gap: 8px; padding: 4px 0; }

/* «Почему просел трафик» */
.drop-verdict .drop-v { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; font-size: 14px; }
.drop-v-bad > span:first-child { color: #c0392b; }
.drop-v-ok > span:first-child { color: #1f8a4c; }
.drop-v-info > span:first-child { color: #2f6fde; }
.drop-parts { display: grid; gap: 10px; }
.drop-part { display: grid; grid-template-columns: minmax(180px, 1.2fr) 2fr 90px; gap: 12px; align-items: center; }
.drop-bar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; }
.drop-bar span { display: block; height: 100%; border-radius: 6px; }
.drop-bar .neg { background: #e5484d; }
.drop-bar .pos { background: #1f8a4c; }
@media (max-width: 640px) { .drop-part { grid-template-columns: 1fr 70px; } .drop-bar { grid-column: 1 / -1; } }

/* «Подключение агента»: отозванные токены — бледнее */
.row-muted td { opacity: .55; }

/* QR-код двухфакторного входа */
.tf-qr svg { width: 180px; height: 180px; background: #fff; border-radius: 8px; }

/* иконки поисковых систем и источников трафика */
.src-label { display: inline-flex; align-items: center; gap: 7px; vertical-align: middle; }
.src-icon { display: inline-grid; flex: none; width: 18px; height: 18px; place-items: center; border-radius: 5px; }
.engine-icon { background: var(--line); color: var(--muted); font: 700 11px/1 Arial, sans-serif; }
.src-label .fav { flex: none; border-radius: 3px; }
.source-icon { background: currentColor; }
.source-icon svg { width: 13px; height: 13px; stroke: #fff; }
.metric-label .src-icon, .status-chip .src-icon, .metric-label .src-label .fav, .status-chip .src-label .fav { width: 14px; height: 14px; font-size: 9px; border-radius: 3px; }
.status-chip .src-label { gap: 5px; }

/* замер по списку: чтение хлебных крошек — прогресс, остаток, скорость */
.pg-progress { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; border: 1px solid #d9d5fb; border-radius: 12px; background: var(--accent-soft); padding: 12px 14px; font-size: 12px; }
.pg-progress-text { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pg-bar { height: 6px; border-radius: 3px; background: rgb(0 0 0 / 8%); overflow: hidden; }
.pg-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.pg-speed { display: grid; gap: 4px; flex: none; }
.pg-speed > span { color: #5e6678; font-size: 10px; font-weight: 700; }
@media (max-width: 640px) { .pg-progress { flex-direction: column; align-items: stretch; } }

/* сравнение периодов в таблицах: изменение и «было …» под числом (видно и на печати) */
.cmp-note { font-size: 11px; line-height: 1.3; margin-top: 2px; white-space: nowrap; font-weight: 400; }
.cmp-note .delta { margin-right: 6px; }
.cmp-was { color: var(--muted, #7b8393); }
@media print { .cmp-note { font-size: 9px; } .cmp-was { color: #555; } }

/* даты отчёта под выбором периода */
.period-line { margin: -4px 0 12px; }
/* Печать отчётов (Ctrl+P): название, заголовки блоков, открытая вкладка и даты — на бумаге; кнопки, переключатели
   и выбор периода — нет. У «PDF скана» своя шапка (body.print-scan) — там общие заголовки спрятаны, как раньше. */
@media print {
  body:not(.print-scan) .page-heading { display: block !important; margin-bottom: 8px; }
  body:not(.print-scan) .page-heading h1 { font-size: 20px; margin: 0; }
  body:not(.print-scan) .panel-head { display: block !important; min-height: 0; padding: 10px 0 6px; border-bottom: 1px solid #ccc; break-after: avoid; }
  body:not(.print-scan) .panel-head h2 { font-size: 14px; margin: 0; }
  body:not(.print-scan) .panel-head p { margin: 2px 0 0; font-size: 10px; }
  body:not(.print-scan) .tabs { display: flex !important; border: 0; margin: 0 0 6px; }
  body:not(.print-scan) .tabs .tab:not(.active) { display: none !important; }
  body:not(.print-scan) .tabs .tab.active { border: 0; padding: 0; font-weight: 700; background: none; }
  .page-heading .toolbar, .page-heading .button, .page-heading select, .panel-head .button, .panel-head .seg,
  .panel-head select, .toolbar .button, .period-picker, .busy-bar { display: none !important; }
  .period-line { margin: 0 0 10px; color: #333 !important; }
  .data-table th, .data-table td { padding: 4px 6px; font-size: 10px; }
  .metric-card { min-height: 0; padding: 10px 12px; }
  .delta.up, .check-ok { color: #0a7a3d !important; }
  .delta.down, .check-bad { color: #b3261e !important; }
}
@media print { .page-toc { display: none !important; } }
/* печать широких таблиц (Метрика, GA4 — по 10–11 колонок): переносы внутри ячеек, изменение и «было» друг под
   другом — таблица укладывается в ширину листа, ничего не обрезается справа */
@media print {
  .data-table { width: 100% !important; table-layout: auto; }
  .data-table th, .data-table td { white-space: normal !important; }
  .data-table th, .data-table td, .data-table td.num { font-size: 9px; padding: 3px 4px; }
  .data-table td.num { white-space: nowrap !important; }  /* число не разрывать */
  .cmp-note .delta { display: block; margin: 0; white-space: nowrap; }
  .cmp-was { white-space: nowrap; }
  .src-label svg, .src-label img { display: none; }
}
/* «Позиции»: запросы в мониторинге — колонками, крестик убирает */
.rk-query-list { columns: 3 220px; column-gap: 24px; margin: 8px 0 0; padding-left: 18px; font-size: 12px; }
.rk-query-list li { break-inside: avoid; }
.rk-remove { margin-left: 4px; opacity: .5; } tr:hover .rk-remove { opacity: 1; }
