.seo-product-page {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 72px;
}

.seo-product-header .header-link.active {
  border-color: var(--cifroz-blue);
  background: var(--cifroz-blue);
  color: #fff !important;
}

.seo-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 26px;
  padding: 38px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(249, 17, 139, .38), transparent 28%),
    linear-gradient(125deg, #073b9d 0%, #005bff 68%, #0346b4 100%);
  box-shadow: 0 24px 58px rgba(0, 68, 187, .2);
}

.seo-product-eyebrow,
.seo-product-step {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cifroz-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-product-hero .seo-product-eyebrow {
  color: #cfe0ff;
}

.seo-product-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
}

.seo-product-hero p {
  max-width: 760px;
  margin: 0;
  color: #e6efff;
  font-size: 17px;
  line-height: 1.55;
}

.seo-product-hero-note {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 16px;
  background: rgba(3, 32, 88, .34);
  backdrop-filter: blur(10px);
}

.seo-product-hero-note span {
  color: #e6efff;
  font-size: 13px;
  line-height: 1.5;
}

.seo-methodology {
  margin: -8px 0 26px;
  padding: 18px 20px;
  border: 1px solid #cfe0ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f5f8ff);
}

.seo-methodology summary {
  color: var(--cifroz-blue-dark);
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.seo-methodology-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.seo-methodology-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e8f4;
  border-radius: 13px;
  background: #fff;
}

.seo-methodology-grid b {
  color: #172235;
  font-size: 12px;
}

.seo-methodology-grid p,
.seo-methodology-note {
  margin: 7px 0 0;
  color: #5b6878;
  font-size: 11px;
  line-height: 1.5;
}

.seo-methodology-note {
  padding-top: 12px;
  border-top: 1px solid #e1e8f4;
}

.seo-product-alert,
.seo-product-empty {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #fff;
}

.seo-product-alert.error {
  border-color: #ffc7c7;
  color: #9d2929;
  background: #fff4f4;
}

.seo-product-alert.warning {
  border-color: #f2d08a;
  color: #674c10;
  background: #fffaf0;
}

.seo-product-alert.warning summary {
  font-weight: 800;
}

.seo-product-alert.warning p,
.seo-product-alert.warning ul {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.45;
}

.seo-analysis-job {
  display: grid;
  gap: 16px;
  margin: 22px 0;
  padding: 28px;
  border: 1px solid #c8dcff;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7faff, #eef5ff);
  box-shadow: 0 16px 46px rgba(0, 91, 255, .1);
}

.seo-analysis-job.failed {
  border-color: #ffc7c7;
  background: #fff7f7;
}

.seo-analysis-job-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.seo-analysis-job-heading h2 {
  margin: 0 0 7px;
  font-size: 28px;
  letter-spacing: -.03em;
}

.seo-analysis-job-heading p,
.seo-analysis-job-note {
  margin: 0;
  color: var(--cifroz-muted);
  line-height: 1.5;
}

.seo-analysis-job-heading > strong {
  flex: 0 0 auto;
  color: var(--cifroz-blue);
  font-size: 34px;
  line-height: 1;
}

.seo-analysis-progress,
.seo-loading-progress {
  height: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce7f7;
}

.seo-analysis-progress > span,
.seo-loading-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #005bff, #00a3ff);
  transition: width .35s ease;
}

.seo-analysis-job.failed .seo-analysis-progress > span {
  background: #d75252;
}

.seo-product-empty {
  text-align: center;
}

.seo-product-empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.seo-product-empty p {
  margin: 0 0 18px;
  color: var(--cifroz-muted);
}

.seo-product-builder,
.seo-product-results {
  display: grid;
  gap: 18px;
}

.seo-product-builder {
  padding: 28px;
  border: 1px solid var(--cifroz-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(27, 55, 105, .08);
}

.seo-product-builder-heading,
.seo-product-results-heading,
.seo-product-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.seo-product-builder-heading h2,
.seo-product-results-heading h2,
.seo-product-panel-heading h3 {
  margin: 0;
}

.seo-product-builder-heading h2 {
  font-size: 26px;
  letter-spacing: -.03em;
}

.seo-product-builder-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--cifroz-muted);
  font-size: 13px;
  line-height: 1.5;
}

.seo-product-cabinet {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--cifroz-soft);
}

.seo-product-cabinet label {
  flex: 1;
}

.seo-product-cabinet button {
  flex: 0 0 auto;
}

.seo-product-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 0;
}

.seo-product-query-set,
.seo-product-picker {
  min-width: 0;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--cifroz-line);
  border-radius: 16px;
  background: #fbfcff;
}

.seo-product-query-set legend,
.seo-product-picker legend {
  padding: 0 8px 0 0;
  color: var(--cifroz-ink);
  font-size: 16px;
  font-weight: 850;
}

.seo-product-query-set legend span,
.seo-product-picker legend span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: var(--cifroz-blue);
  font-size: 12px;
}

.seo-product-query-set > p,
.seo-product-picker-heading p {
  margin: 0 0 15px;
  color: var(--cifroz-muted);
  font-size: 12px;
  line-height: 1.45;
}

.seo-product-query-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seo-product-query-grid label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 800;
}

.seo-product-query-grid input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #ccd6e4;
  border-radius: 10px;
  background: #fff;
  color: var(--cifroz-ink);
  font: inherit;
}

.seo-product-query-grid input:focus {
  outline: 3px solid rgba(0, 91, 255, .12);
  border-color: var(--cifroz-blue);
}

.seo-product-region {
  display: grid;
  gap: 7px;
  max-width: 520px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 800;
}

.seo-product-region input {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #ccd6e4;
  border-radius: 10px;
  background: #fff;
  color: var(--cifroz-ink);
  font: inherit;
}

.seo-product-region small {
  color: var(--cifroz-muted);
  font-size: 10px;
  font-weight: 500;
}

.seo-product-region > a {
  width: fit-content;
  color: var(--cifroz-blue-dark);
  font-size: 11px;
  font-weight: 750;
}

.seo-product-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.seo-product-picker-heading p {
  margin-bottom: 12px;
}

.seo-product-picker-heading b {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--cifroz-blue-dark);
  background: #eaf2ff;
  font-size: 10px;
}

.seo-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 14px;
  align-items: end;
  margin-bottom: 14px;
}

.seo-product-search > label {
  grid-column: 1 / -1;
  color: var(--cifroz-ink);
  font-size: 12px;
  font-weight: 800;
}

.seo-product-search > div {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.seo-product-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #ccd6e4;
  border-radius: 10px;
  background: #fff;
  color: var(--cifroz-ink);
  font: inherit;
}

.seo-product-search input:focus {
  outline: 3px solid rgba(0, 91, 255, .12);
  border-color: var(--cifroz-blue);
}

.seo-product-search button {
  min-width: auto;
  padding: 10px 13px;
}

.seo-product-search > small {
  color: var(--cifroz-muted);
  font-size: 10px;
  white-space: nowrap;
}

.seo-product-category-error {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #ffc7c7;
  border-radius: 10px;
  color: #9d2929;
  background: #fff4f4;
  font-size: 12px;
  font-weight: 750;
}

.seo-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-height: 470px;
  overflow-y: auto;
  padding: 2px;
}

.seo-product-choice {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dfe6f0;
  border-radius: 13px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.seo-product-choice[hidden] {
  display: none;
}

.seo-product-choice:hover {
  border-color: #aac7f6;
  box-shadow: 0 7px 18px rgba(34, 77, 145, .08);
}

.seo-product-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seo-product-choice-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #aebcd0;
  border-radius: 7px;
  background: #fff;
}

.seo-product-choice.selected {
  border-color: var(--cifroz-blue);
  background: #f4f8ff;
  box-shadow: 0 0 0 2px rgba(0, 91, 255, .08);
}

.seo-product-choice.selected .seo-product-choice-check {
  border-color: var(--cifroz-blue);
  background: var(--cifroz-blue);
}

.seo-product-choice.selected .seo-product-choice-check::after {
  content: "✓";
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.seo-product-choice.category-locked,
.seo-product-choice.limit-locked,
.seo-product-choice.unavailable {
  opacity: .42;
  cursor: not-allowed;
}

.seo-product-choice-body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.seo-product-choice-body b {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.seo-product-choice-body small {
  color: var(--cifroz-muted);
  font-size: 10px;
}

.seo-product-choice-body em {
  overflow: hidden;
  color: #4771a5;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-product-choice-media {
  padding: 3px 6px;
  border-radius: 99px;
  color: #5f6f83;
  background: #edf1f6;
  font-size: 9px;
  white-space: nowrap;
}

.seo-product-no-products {
  grid-column: 1 / -1;
  padding: 30px;
  color: var(--cifroz-muted);
  text-align: center;
}

.seo-product-collector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #f2d08a;
  border-radius: 16px;
  background: #fffaf0;
}

.seo-product-collector.ready {
  border-color: #a9dfc4;
  background: #f2fbf6;
}

.seo-product-collector.failed {
  border-color: #efb6b6;
  background: #fff5f5;
}

.seo-product-collector h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.02em;
}

.seo-product-collector p {
  margin: 5px 0 0;
  color: #5b6878;
  font-size: 12px;
  line-height: 1.5;
}

.seo-product-collector > strong {
  padding: 7px 10px;
  border-radius: 99px;
  color: #6a501c;
  background: #fff0c8;
  font-size: 11px;
  white-space: nowrap;
}

.seo-product-collector.ready > strong {
  color: #146544;
  background: #dff5e9;
}

.seo-product-collector.failed > strong {
  color: #913333;
  background: #ffe0e0;
}

.seo-product-collector-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  grid-column: 1 / -1;
}

.seo-product-collector-versions span {
  padding: 7px 10px;
  border: 1px solid #dce4ee;
  border-radius: 9px;
  color: #536176;
  background: #fff;
  font-size: 11px;
}

.seo-product-collector-versions b {
  color: #152033;
}

.seo-product-collector-versions b.is-current {
  color: #14734d;
}

.seo-product-collector-versions b.is-outdated {
  color: #b13232;
}

.seo-product-collector-versions b.is-update-available {
  color: #9a6800;
}

.seo-product-collector .seo-product-collector-update-advice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #efb6b6;
  border-radius: 10px;
  color: #7f2929;
  background: #fff0f0;
  font-size: 11px;
  font-weight: 700;
}

.seo-product-collector-update-advice.is-current {
  border-color: #a9dfc4;
  color: #146544;
  background: #e9f8f0;
}

.seo-product-collector-update-advice.is-update-available {
  border-color: #f0d28c;
  color: #6a4d0c;
  background: #fff8e5;
}

.seo-product-collector .seo-product-collector-store-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #afdcc4;
  border-radius: 10px;
  color: #205f42;
  background: #edf9f2;
  font-size: 11px;
  line-height: 1.45;
}

.seo-product-collector .seo-product-collector-vpn-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #f2d08a;
  border-radius: 10px;
  color: #674c10;
  background: #fff7df;
  font-size: 11px;
}

.seo-product-collector-vpn-note b {
  color: #513a08;
}

.seo-product-collector-vpn-note code {
  padding: 1px 4px;
  border-radius: 4px;
  background: #fff0bd;
}

.seo-product-collector .seo-product-collector-browser-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #bfd7f4;
  border-radius: 10px;
  color: #28557f;
  background: #eef6ff;
  line-height: 1.45;
}

.seo-product-collector-browser-note b {
  color: #173f68;
}

.seo-product-collector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1 / -1;
}

.seo-product-collector-actions .button,
.seo-product-collector-actions button {
  width: auto;
  margin: 0;
  padding: 8px 12px;
  font-size: 11px;
}

.seo-product-collector-install {
  grid-column: 1 / -1;
  padding-top: 2px;
  color: #4c5b6e;
  font-size: 11px;
}

.seo-product-collector-install summary {
  color: var(--cifroz-blue-dark);
  font-weight: 800;
  cursor: pointer;
}

.seo-product-collector-install ol {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.45;
}

.seo-product-collector-install code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #e9eef6;
}

.seo-product-analysis-flow {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef5ff, #f8f2ff);
}

.seo-product-analysis-flow div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
}

.seo-product-analysis-flow b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--cifroz-blue);
  font-size: 10px;
}

.seo-product-analysis-flow i {
  height: 2px;
  border-radius: 99px;
  background: #c8d8ef;
}

.seo-product-field {
  display: grid;
  align-content: start;
  gap: 7px;
}

.seo-product-field.full,
.seo-product-manual,
.seo-product-submit {
  grid-column: 1 / -1;
}

.seo-product-field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.seo-product-field label span {
  color: var(--cifroz-muted);
  font-weight: 600;
}

.seo-product-field textarea,
.seo-product-field select,
.seo-product-cabinet select {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #ccd6e4;
  border-radius: 10px;
  background: #fff;
  color: var(--cifroz-ink);
  font: inherit;
}

.seo-product-field textarea {
  resize: vertical;
  line-height: 1.45;
}

.seo-product-field small,
.seo-product-submit span,
.draft-panel > small {
  color: var(--cifroz-muted);
  font-size: 11px;
  line-height: 1.45;
}

.seo-product-manual {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--cifroz-line);
}

.seo-product-manual summary {
  padding-top: 18px;
  color: var(--cifroz-blue-dark);
  font-size: 13px;
}

.seo-product-manual .seo-product-field {
  margin-top: 14px;
}

.seo-product-submit {
  display: flex;
  align-items: center;
  gap: 14px;
}

.seo-product-submit button {
  padding: 13px 22px;
}

.seo-competitor-status,
.seo-batch-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px solid var(--cifroz-line);
  border-radius: 18px;
  background: #fff;
}

.seo-competitor-status.ready {
  border-color: #a9dfc4;
  background: #f2fbf6;
}

.seo-competitor-status.pending {
  border-color: #f2d08a;
  background: #fffaf0;
}

.seo-competitor-status.failed {
  border-color: #edb9b9;
  background: #fff7f7;
}

.seo-ai-status.ready {
  border-color: #cbb9f5;
  background: linear-gradient(135deg, #faf7ff, #f3f7ff);
}

.seo-ai-status.failed {
  border-color: #e4c7c7;
  background: #fff8f8;
}

.seo-browser-ai-retry {
  flex: 0 0 auto;
  white-space: nowrap;
}

.seo-competitor-status h2,
.seo-batch-summary h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -.025em;
}

.seo-competitor-status p,
.seo-batch-summary p {
  max-width: 820px;
  margin: 6px 0 0;
  color: #5b6878;
  font-size: 12px;
  line-height: 1.5;
}

.seo-competitor-status > strong {
  flex: 0 0 auto;
  font-size: 28px;
  letter-spacing: -.04em;
}

.seo-competitor-status > small {
  max-width: 420px;
  color: #6b5a2c;
  font-size: 12px;
  line-height: 1.5;
}

.seo-competitor-status > .seo-competitor-warning {
  flex: 1 0 100%;
  max-width: none;
  padding-top: 12px;
  border-top: 1px solid rgba(107, 90, 44, .18);
}

.seo-competitor-evidence {
  min-width: 0;
  overflow: hidden;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid var(--cifroz-line);
  border-radius: 16px;
  background: #fff;
}

.seo-competitor-evidence summary {
  color: var(--cifroz-blue-dark);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.seo-competitor-evidence .seo-product-table-wrap {
  margin-top: 14px;
}

.seo-competitor-evidence table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  font-size: 11px;
}

.seo-competitor-evidence th,
.seo-competitor-evidence td {
  padding: 10px;
  border-bottom: 1px solid #e8edf4;
  text-align: left;
  vertical-align: top;
}

.seo-competitor-evidence th {
  color: var(--cifroz-muted);
  background: #f6f8fb;
  font-size: 9px;
  text-transform: uppercase;
}

.seo-competitor-evidence td:nth-child(2) {
  min-width: 260px;
}

.seo-competitor-evidence td a {
  display: block;
  color: var(--cifroz-blue-dark);
  font-weight: 750;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.seo-competitor-evidence td small {
  display: block;
  margin-top: 3px;
  color: #667589;
  line-height: 1.35;
}

.seo-own-top30-evidence table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.seo-own-top30-evidence th,
.seo-own-top30-evidence td,
.seo-own-top30-evidence td:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.seo-own-top30-evidence th:nth-child(1) { width: 11%; }
.seo-own-top30-evidence th:nth-child(2) { width: 30%; }
.seo-own-top30-evidence th:nth-child(3) { width: 27%; }
.seo-own-top30-evidence th:nth-child(4) { width: 32%; }

.seo-selected-positions table {
  min-width: 820px;
}

.seo-selected-positions td:first-child {
  min-width: 300px;
  white-space: normal;
}

.seo-evidence-note {
  max-width: 960px;
  margin: 10px 0 0;
  color: #5b6878;
  font-size: 11px;
  line-height: 1.5;
}

.seo-top30-comparison-evidence table {
  min-width: 1120px;
  table-layout: fixed;
}

.seo-top30-comparison-evidence th,
.seo-top30-comparison-evidence td {
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

.seo-top30-comparison-evidence th:nth-child(1) { width: 10%; }
.seo-top30-comparison-evidence th:nth-child(2) { width: 30%; }
.seo-top30-comparison-evidence th:nth-child(3) { width: 23%; }
.seo-top30-comparison-evidence th:nth-child(4) { width: 9%; }
.seo-top30-comparison-evidence th:nth-child(5) { width: 13%; }
.seo-top30-comparison-evidence th:nth-child(6) { width: 15%; }

.seo-top30-comparison-evidence td:first-child b {
  display: block;
}

.seo-score-explanation {
  max-width: 760px !important;
  padding: 8px 10px;
  border-radius: 9px;
  background: #eef4ff;
}

.seo-batch-summary {
  align-items: flex-start;
  margin-top: 16px;
  background: linear-gradient(135deg, #fff, #f4f8ff);
}

.seo-batch-summary nav {
  display: grid;
  gap: 5px;
  min-width: min(100%, 360px);
}

.seo-batch-summary nav a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--cifroz-blue-dark);
  background: #eaf2ff;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.seo-product-results {
  margin-top: 36px;
  scroll-margin-top: 18px;
}

.seo-product-results-heading {
  align-items: center;
  padding: 26px 28px;
  border: 1px solid var(--cifroz-line);
  border-radius: 20px;
  background: #fff;
}

.seo-product-results-heading h2 {
  max-width: 800px;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.seo-product-results-heading p {
  margin: 8px 0 0;
  color: var(--cifroz-muted);
  font-size: 12px;
}

.seo-product-score {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  min-width: 160px;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f3f6fb;
}

.seo-product-score strong {
  font-size: 45px;
  line-height: 1;
  letter-spacing: -.06em;
}

.seo-product-score > span {
  margin-left: 6px;
  color: var(--cifroz-muted);
  font-size: 12px;
}

.seo-product-score small {
  grid-column: 1 / -1;
  margin-top: 4px;
  color: var(--cifroz-muted);
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
}

.seo-product-score.good {
  color: #087443;
  background: #eaf8f1;
}

.seo-product-score.medium {
  color: #9a6500;
  background: #fff6df;
}

.seo-product-score.low {
  color: #ad3030;
  background: #fff0f0;
}

.seo-product-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.seo-product-score-grid article,
.seo-product-score-grid > section {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--cifroz-line);
  border-radius: 14px;
  background: #fff;
}

.seo-product-score-grid article > div,
.seo-product-score-grid > section > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.seo-product-score-grid article > div span,
.seo-product-score-grid > section > div span {
  color: var(--cifroz-blue-dark);
  font-weight: 800;
}

.seo-product-score-grid small {
  color: var(--cifroz-muted);
  font-size: 10px;
  line-height: 1.35;
}

.seo-product-score-grid progress {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border: 0;
  border-radius: 99px;
  appearance: none;
}

.seo-product-score-grid progress::-webkit-progress-bar {
  border-radius: 99px;
  background: #e7edf7;
}

.seo-product-score-grid progress::-webkit-progress-value {
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cifroz-blue), #3b91ff);
}

.seo-product-score-grid progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--cifroz-blue);
}

.seo-product-score-grid .ozon-score {
  border-color: #dfc8ff;
  background: #faf6ff;
}

.seo-product-score-grid .ozon-score progress::-webkit-progress-value {
  background: linear-gradient(90deg, #8f43e7, var(--cifroz-pink));
}

.seo-product-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr);
  gap: 18px;
}

.seo-product-panel {
  padding: 24px;
  border: 1px solid var(--cifroz-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 55, 105, .05);
}

.seo-top30-plan {
  border-color: #b9d2ff;
  background: linear-gradient(135deg, #f8fbff, #f2f7ff);
}

.seo-top30-plan ol {
  display: grid;
  gap: 10px;
  margin: 18px 0 12px;
  padding-left: 22px;
}

.seo-top30-plan li {
  padding-left: 4px;
  color: #26364b;
  font-size: 13px;
  line-height: 1.5;
}

.seo-top30-plan > small {
  color: var(--cifroz-muted);
  font-size: 11px;
  line-height: 1.45;
}

.seo-product-panel-heading {
  align-items: end;
  margin-bottom: 18px;
}

.seo-product-panel-heading h3,
.draft-panel h3 {
  font-size: 21px;
  letter-spacing: -.02em;
}

.seo-product-panel-heading > span {
  color: var(--cifroz-muted);
  font-size: 11px;
}

.recommendation-score-note {
  display: block;
  max-width: 640px;
  margin-top: 6px;
  color: var(--cifroz-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.seo-product-recommendations {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-product-recommendations li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5eaf2;
  border-left-width: 4px;
  border-radius: 12px;
  background: #fbfcfe;
}

.seo-product-recommendations .priority-high {
  border-left-color: #e5484d;
}

.seo-product-recommendations .priority-medium {
  border-left-color: #f0a51a;
}

.seo-product-recommendations .priority-low {
  border-left-color: #448fe4;
}

.recommendation-marker {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: var(--cifroz-blue-dark);
  background: #eaf2ff;
  font-size: 12px;
  font-weight: 850;
}

.recommendation-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recommendation-title span {
  padding: 3px 6px;
  border-radius: 99px;
  color: #5b6677;
  background: #edf1f6;
  font-size: 9px;
  font-weight: 800;
}

.seo-product-recommendations p {
  margin: 5px 0 0;
  color: #526174;
  font-size: 12px;
  line-height: 1.5;
}

.recommendation-impact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 9px;
}

.recommendation-impact strong {
  padding: 4px 7px;
  border-radius: 7px;
  color: #145f3d;
  background: #e6f7ee;
  font-size: 10px;
}

.recommendation-impact span {
  color: #6b7788;
  font-size: 10px;
}

.draft-panel {
  align-self: start;
  position: sticky;
  top: 18px;
  border-color: #bfd4ff;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
}

.draft-panel h3 {
  margin: 0 0 12px;
}

.seo-product-draft {
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid #d7e4fa;
  border-radius: 11px;
  color: #153e75;
  background: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.seo-product-description {
  max-height: 310px;
  overflow-y: auto;
  color: #334d70;
  font-size: 12px;
  font-weight: 500;
  white-space: pre-wrap;
}

.seo-product-draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.seo-ai-badge {
  padding: 4px 7px;
  border-radius: 99px;
  color: #6f7682;
  background: #e9edf3;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.seo-ai-badge.active {
  color: #5b2498;
  background: #eadcff;
}

.seo-product-hashtags {
  max-height: 190px;
  overflow-y: auto;
  color: #245797;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.7;
  word-break: break-word;
}

.seo-copy-button {
  width: 100%;
  margin: 0 0 20px;
  padding: 8px 10px;
  font-size: 10px;
}

.draft-panel h4 {
  margin: 22px 0 9px;
  font-size: 12px;
}

.seo-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-product-tags span {
  padding: 5px 8px;
  border-radius: 99px;
  color: #245797;
  background: #e8f1ff;
  font-size: 10px;
  font-weight: 700;
}

.seo-product-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.seo-product-panel table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.seo-product-panel th,
.seo-product-panel td {
  padding: 11px 10px;
  border-bottom: 1px solid #e8edf4;
  text-align: right;
  white-space: nowrap;
}

.seo-product-panel th:first-child,
.seo-product-panel td:first-child {
  width: 100%;
  text-align: left;
  white-space: normal;
}

.seo-product-panel th {
  color: var(--cifroz-muted);
  background: #f6f8fb;
  font-size: 10px;
  text-transform: uppercase;
}

.coverage {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.coverage.yes {
  color: #0c7247;
  background: #e4f7ee;
}

.coverage.no {
  color: #a13636;
  background: #ffecec;
}

.seo-product-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.seo-product-comparison article,
.seo-product-comparison > section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 13px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  background: #fbfcfe;
}

.seo-product-comparison > section.strong {
  border-color: #b4dfc8;
  background: #f1faf5;
}

.seo-product-comparison > section.weak {
  border-color: #f0c4c4;
  background: #fff7f7;
}

.seo-product-comparison article > span,
.seo-product-comparison > section > span {
  grid-column: 1 / -1;
  min-height: 30px;
  color: #586578;
  font-size: 10px;
  font-weight: 750;
}

.seo-product-comparison article > div,
.seo-product-comparison > section > div {
  display: grid;
}

.seo-product-comparison article b,
.seo-product-comparison > section b {
  font-size: 17px;
  letter-spacing: -.02em;
}

.seo-product-comparison article small,
.seo-product-comparison > section small {
  color: var(--cifroz-muted);
  font-size: 9px;
}

.seo-product-comparison > section > p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: #59677a;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.seo-product-comparison-summary {
  margin: -7px 0 16px;
  color: #526174;
  font-size: 12px;
}

.seo-product-comparison-empty {
  padding: 20px;
  border: 1px solid #f2d08a;
  border-radius: 13px;
  background: #fffaf0;
}

.seo-product-comparison-empty b {
  color: #7b560d;
  font-size: 14px;
}

.seo-product-comparison-empty p {
  max-width: 850px;
  margin: 7px 0 0;
  color: #6b5a35;
  font-size: 12px;
  line-height: 1.55;
}

.seo-product-limitations {
  padding: 18px 22px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  color: #556274;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.5;
}

.seo-product-limitations ul {
  margin: 7px 0 0;
  padding-left: 18px;
}

.seo-loading-open {
  overflow: hidden;
}

.seo-loading-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 22, 45, .72);
  backdrop-filter: blur(7px);
}

.seo-loading-overlay[hidden] {
  display: none;
}

.seo-loading-card {
  position: relative;
  width: min(100%, 520px);
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 20, 55, .3);
}

.seo-loading-card h2 {
  margin: 12px 0 0;
  font-size: 28px;
  letter-spacing: -.035em;
}

.seo-loading-card > p {
  margin: 8px 0 22px;
  color: var(--cifroz-muted);
  font-size: 13px;
  line-height: 1.5;
}

.seo-loading-progress-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}

.seo-loading-progress-line > b {
  min-width: 42px;
  color: var(--cifroz-blue);
  font-size: 14px;
  text-align: right;
}

.seo-loading-spinner {
  float: right;
  width: 46px;
  height: 46px;
  border: 5px solid #dce8fa;
  border-top-color: var(--cifroz-blue);
  border-radius: 50%;
  animation: seo-loading-spin .8s linear infinite;
}

.seo-loading-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-loading-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 11px;
  color: #8190a4;
  background: #f5f7fa;
  font-size: 12px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.seo-loading-card li > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: #e4e9f0;
  font-size: 10px;
}

.seo-loading-card li.active {
  color: var(--cifroz-blue-dark);
  background: #eaf2ff;
  transform: translateX(3px);
}

.seo-loading-card li.active > span {
  color: #fff;
  background: var(--cifroz-blue);
}

.seo-loading-card li.done {
  color: #23714f;
  background: #edf9f3;
}

.seo-loading-card li.done > span {
  color: transparent;
  background: #27a66d;
}

.seo-loading-card li.done > span::after {
  content: "✓";
  color: #fff;
}

@keyframes seo-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1050px) {
  .seo-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-product-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .seo-product-result-grid {
    grid-template-columns: 1fr;
  }

  .draft-panel {
    position: static;
  }

  .seo-product-comparison {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seo-methodology-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .seo-product-page {
    width: min(100% - 24px, 1240px);
    padding-top: 18px;
  }

  .seo-product-header {
    height: auto;
    min-height: 58px;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .seo-product-header .online-user {
    justify-content: flex-end;
  }

  .seo-product-header .online-user span,
  .seo-product-header .online-user .header-link[href="/billing"] {
    display: none;
  }

  .seo-product-hero {
    grid-template-columns: 1fr;
    padding: 26px;
  }

  .seo-product-hero h1 {
    font-size: 38px;
  }

  .seo-product-hero p {
    font-size: 15px;
  }

  .seo-product-builder,
  .seo-product-results-heading,
  .seo-product-panel {
    padding: 18px;
  }

  .seo-product-builder-heading,
  .seo-product-results-heading,
  .seo-product-panel-heading,
  .seo-product-cabinet,
  .seo-product-submit,
  .seo-competitor-status,
  .seo-batch-summary,
  .seo-product-picker-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .seo-product-form,
  .seo-product-query-grid,
  .seo-product-grid {
    grid-template-columns: 1fr;
  }

  .seo-product-collector {
    grid-template-columns: 1fr;
  }

  .seo-product-collector > strong {
    justify-self: start;
  }

  .seo-product-search {
    grid-template-columns: 1fr;
  }

  .seo-product-search > div,
  .seo-product-search > small {
    grid-column: 1;
  }

  .seo-product-field,
  .seo-product-manual,
  .seo-product-submit {
    grid-column: auto;
  }

  .seo-product-score {
    width: 100%;
  }

  .seo-product-analysis-flow {
    grid-template-columns: 1fr;
  }

  .seo-product-analysis-flow i {
    width: 2px;
    height: 16px;
    margin-left: 11px;
  }

  .seo-product-score-grid,
  .seo-product-comparison {
    grid-template-columns: 1fr;
  }

  .seo-methodology-grid {
    grid-template-columns: 1fr;
  }

  .recommendation-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
