/* Native SEO view: all styling scoped; palette follows CRM light/dark tokens. */
.seo-reports { min-width: 0; display: grid; gap: 18px; color: var(--ink); }
.seo-reports[hidden] { display: none; }
.seo-reports *, .seo-reports *::before, .seo-reports *::after { box-sizing: border-box; }
.seo-reports h1, .seo-reports h2, .seo-reports h3, .seo-reports p { margin: 0; }
.seo-reports h1 { font-size: clamp(23px, 3vw, 34px); line-height: 1.25; margin: 8px 0; }
.seo-reports h2 { font-size: 18px; line-height: 1.4; }
.seo-reports h3 { font-size: 14px; line-height: 1.5; font-weight: 700; }
.seo-reports .seo-muted { color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.seo-reports .seo-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.seo-reports .seo-heading > div { min-width: 0; }
.seo-reports .seo-notice { padding: 16px 20px; border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius-md); background: var(--bg-sunken); }
.seo-reports .seo-notice strong { font-size: 14px; }
/* The horizontal scroller is a grid item: retain the 44px controls when the page overflows vertically. */
.seo-reports .seo-tabs { display: flex; min-height: 49px; gap: 4px; overflow-x: auto; max-width: 100%; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.seo-reports .seo-tab { flex: 0 0 auto; min-height: 44px; padding: 10px 15px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.seo-reports .seo-tab:hover { color: var(--ink); background: var(--bg-hover); }
.seo-reports .seo-tab[aria-selected="true"] { color: var(--ink); background: var(--bg-selected); box-shadow: inset 0 -2px var(--primary); }
.seo-reports :is(button, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.seo-reports .fc-btn { min-height: 44px; white-space: normal; }
.seo-reports .seo-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.seo-reports .seo-filter { min-width: 0; display: grid; gap: 6px; }
.seo-reports .seo-filter label { color: var(--muted); font-size: 12px; }
.seo-reports .seo-filter .fc-input { width: 100%; min-height: 44px; }
.seo-reports .seo-filter select { min-width: 0; width: 100%; min-height: 44px; }
.seo-reports .seo-content { display: grid; gap: 18px; min-width: 0; }
.seo-reports .seo-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.seo-reports .seo-metric { padding: 20px; min-width: 0; border-top: 2px solid var(--primary); }
.seo-reports .seo-metric__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.seo-reports .seo-metric__value { display: block; font-size: 34px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.seo-reports .seo-columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.seo-reports .seo-panel { min-width: 0; }
.seo-reports .seo-panel .fc-panel__head { flex-wrap: wrap; gap: 12px; }
.seo-reports .seo-panel .fc-panel__body { display: grid; gap: 16px; min-width: 0; }
.seo-reports .seo-empty-plot { min-height: 190px; border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--bg-sunken); display: grid; align-content: center; justify-items: center; gap: 8px; padding: 24px; text-align: center; }
.seo-reports .seo-empty-plot strong { font-size: 14px; }
.seo-reports .seo-stage { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13px; }
.seo-reports .seo-step { display: inline-grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-selected); color: var(--ink); font-weight: 700; }
.seo-reports .seo-table-wrap { min-width: 0; max-width: 100%; overflow-x: auto; }
.seo-reports .seo-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; text-align: left; }
.seo-reports .seo-table th { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.seo-reports .seo-table td { padding: 14px 12px; }
.seo-reports .seo-table-empty { display: grid; gap: 8px; padding: 24px 8px; }
.seo-reports .seo-table-empty strong { font-weight: 600; }
.seo-reports .seo-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.seo-reports .seo-flow__item { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 16px; background: var(--bg-sunken); font-size: 13px; }
.seo-reports .seo-source { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 18px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.seo-reports .seo-source:last-child { border-bottom: 0; }
.seo-reports .seo-state { color: var(--muted); border: 1px solid var(--line); background: var(--bg-sunken); border-radius: 20px; padding: 5px 10px; font-size: 11px; line-height: 1.5; }
.seo-reports .seo-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.seo-reports .seo-details { margin-top: 10px; }
.seo-reports .seo-details summary { cursor: pointer; min-height: 44px; padding: 10px 0; font-size: 13px; color: var(--ink); }
.seo-reports .seo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
  .seo-reports .seo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-reports .seo-columns { grid-template-columns: minmax(0, 1fr); }
  .seo-reports .seo-source { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .seo-reports .seo-state { justify-self: start; }
}
@media (max-width: 600px) {
  .seo-reports { gap: 14px; }
  .seo-reports .seo-heading { flex-direction: column; align-items: stretch; }
  .seo-reports .seo-filters { grid-template-columns: minmax(0, 1fr); }
  .seo-reports .seo-kpis { gap: 10px; }
  .seo-reports .seo-metric { padding: 14px; }
  .seo-reports .seo-source { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .seo-reports .seo-task { grid-template-columns: auto minmax(0, 1fr); }
  .seo-reports .seo-task > .fc-btn { grid-column: 2; justify-self: start; }
  .seo-reports .seo-notice { padding: 14px; }
}
