.competitor-basic-access-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #cbd6ff;
  border-radius: 8px;
  background: #f3f6ff;
}
.competitor-basic-access-notice[hidden] { display: none; }
.competitor-basic-access-notice > div { display: grid; gap: 6px; min-width: 0; }
.competitor-basic-access-notice span { color: #3157d5; font-size: 12px; font-weight: 700; }
.competitor-basic-access-notice strong { font-size: 18px; }
.competitor-basic-access-notice small { color: #667085; line-height: 1.5; }
.competitor-basic-access-notice .btn { flex-shrink: 0; margin: 0; white-space: normal; }
@media (max-width: 700px) {
  .competitor-basic-access-notice { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px 16px; }
  .competitor-basic-access-notice .btn { width: 100%; }
}
.competitor .competitor-search-panel {
      background: var(--dark-color);
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.22);
  color: #f9fafb;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  padding: clamp(34px, 6vw, 72px) 24px;
  width: 100vw;
  height: 100vh;
}

.competitor .competitor-search-panel.settings-open {
  height: auto;
  justify-content: flex-start;
  min-height: 100vh;
  padding-bottom: 24px;
}

.competitor-guest .competitor-search-panel,
.competitor-guest .competitor-search-panel.settings-open {
  height: auto;
  min-height: 0;
}

.competitor-search-container {
  margin: 0 auto;
  max-width: 900px;
  width: 100%;
}

.competitor-panel-head {
margin-bottom: 60px;
    text-align: center;
    position: relative;
}
.competitor-panel-head:before{
  content: '';
    background: url(/static/img/relevance/relevance-1.png);
     display: block;
    width: 435px;
    height: 435px;
    background-size: contain;
    position: absolute;
    opacity: 0.1;
left: -380px;
    top: -100px;
}
.competitor-panel-head:after{
  content: '';
    background: url(/static/img/relevance/relevance-2.png);
      display: block;
    width: 435px;
    height: 435px;
    background-size: contain;
    position: absolute;
    opacity: 0.1;
right: -380px;
    top: -100px;
}
.competitor-search-panel h1 {
  color: #fff;
  margin-top: 0;
  font-size: 42px;
}

.competitor-title-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr auto;
}

.competitor-title-row h2 {
  margin: 0;
}

.task-archive-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #b8e2c4;
  border-radius: 6px;
  background: #ecfdf3;
  color: #16803b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  vertical-align: middle;
  white-space: nowrap;
}

@media (max-width: 760px) {

  .competitor-title-row {
    gap: 0;
    margin-bottom: 15px;
  }
  .competitor-title-row {
    grid-template-columns: 1fr;
    justify-items: left;
  }
}

.competitor-hero-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  line-height: 1.15;
}

.competitor-hero-title[data-report-price] {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  padding-right: 0;
  position: relative;
}

@media (min-width: 1100px) {
  .competitor-hero-title[data-report-price] { white-space: nowrap; }
}

.competitor-hero-title[data-report-price]::after {
  content: attr(data-report-price);
  align-self: flex-start;
  background: var(--primary-color);
  border-radius: 6px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  padding: 6px 12px;
  position: absolute;
  left: calc(100% + 12px);
  top: -26px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .competitor-hero-title[data-report-price] { max-width: 100%; }
  .competitor-hero-title[data-report-price]::after {
    display: inline-block;
    margin-left: 8px;
    position: relative;
    left: auto;
    top: -6px;
    font-size: 14px;
  }
}

.competitor-hero-title span {
  min-width: 0;
}

.relevance-title-img {
  display: block;
  flex: 0 0 auto;
  height: clamp(74px, 9vw, 128px);
  object-fit: contain;
  width: clamp(80px, 9.8vw, 138px);
}

.competitor-search-panel .subtitle {
  color: #d1d5db;
  margin-bottom: 0;
  font-size: 22px;
}

.settings-toggle {
 align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #475467;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 8px;
    width: 24px;

        align-items: center;
    background: #f9fafb;
    border: 1px solid #d0d5dd;
    border-radius: 7px;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0;
    width: 38px;
}



.competitor-search-panel .options {
  display: none;
  margin-bottom: 22px;
}

.competitor-search-panel.settings-open .options {
  display: block;
  margin-bottom: 0;
  margin-top: 30px;
}

.competitor-settings-topline {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.competitor-settings-topline .competitor-task-title-option {
  flex: 1 1 auto;
  order: 1;
}

.competitor-settings-topline .competitor-demo-settings-line {
  flex: 0 0 auto;
  order: 2;
}

.competitor-search-panel [hidden] {
  display: none !important;
}

.competitor-settings-grid {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.competitor-experimental-settings {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px 18px;
}

.competitor-experimental-settings > div:first-child {
  grid-column: 1 / -1;
}

.competitor-experimental-settings h3 {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  margin: 2px 0 0;
}

.competitor-experimental-kicker {
  color: #9ec5ff;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.competitor-experimental-settings > label {
  justify-content: flex-start;
  margin: 0;
  min-width: 0;
}

.competitor-formula-tooltip {
  min-width: 330px;
  text-align: left;
  white-space: normal;
  z-index: 20;
}

.competitor-formula-tooltip strong {
  display: block;
  margin-bottom: 6px;
}

.competitor-formula-tooltip ul {
  margin: 0;
  padding-left: 18px;
}

.competitor-formula-tooltip li + li {
  margin-top: 4px;
}

.competitor-settings-group-run {
  display: block;
}

.competitor-settings-group {
  min-width: 0;
  padding: 18px;
}

.competitor-settings-group + .competitor-settings-group {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.competitor-settings-group h3 {
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  margin: 0 0 12px;
}

.competitor-settings-group > label,
.competitor-settings-group > .option-line {
  margin-bottom: 8px;
  width: 100%;
}

.competitor-settings-group > label {
  justify-content: flex-start;
}

.competitor-settings-group .option-line {
  align-items: center;
  display: flex;
  gap: 6px;
}

.competitor-settings-group .option-line label {
  flex: 1 1 auto;
  min-width: 0;
}

.competitor-settings-group .option-expand,
.competitor-settings-group .option-toggle {
  flex: 0 0 34px;
  height: 34px;
  margin: 0;
  width: 34px;
}

.competitor-settings-group .competitor-presence-option,
.competitor-settings-group .source-mode-option {
  align-items: stretch;
  flex-direction: column;
}

.competitor-settings-group select {
  width: 100%;
}

.competitor-settings-hint {
  color: #d0d5dd;
  font-size: 12px;
  line-height: 1.45;
  margin: 10px 0 0;
}

.competitor-settings-details {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.competitor-settings-details .option-settings {
  color: #f9fafb;
  min-width: 0;
}

.competitor-settings-details .option-settings > span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

.competitor-settings-details textarea {
  margin: 0;
  width: 100%;
}

.competitor-stopwords-actions {
  margin-top: 8px;
}

.competitor-search-panel .options label,
.competitor-search-panel .label,
.competitor-search-panel label,
.competitor-search-panel .q {
  color: #f9fafb;
}

.competitor-search-panel .options label {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
  gap: 7px;
  margin: 0;
  padding: 8px 10px;
}

.competitor-search-panel .options .columns.competitors .floating-field > label {
  align-items: initial;
  background: transparent;
  border: 0;
  color: #667085;
  display: block;
  font-weight: 400;
  margin: 0;
  padding: 0;
}

.competitor-search-panel .options select {
  background: #fff;
  margin: 0;
  min-width: 92px;
  padding: 7px 9px;
}

.competitor-search-panel .competitor-task-title-option {
  align-items: center;
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.competitor-search-panel .competitor-task-title-input {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  color: #111827;
  flex: 1 1 320px;
  height: 40px;
  margin: 0;
  max-width: 520px;
  min-width: 220px;
  padding: 8px 11px;
}

.competitor-search-panel .competitor-task-title-input:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #98a2b3;
  cursor: not-allowed;
  opacity: 0.75;
}

.competitor-search-panel .competitor-task-title-option .field-error {
  flex-basis: 100%;
  width: 100%;
}

.competitor-project-picker {
  margin: 2px 0 0;
}

.competitor-source-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  display: grid;
  gap: 9px;
  padding: 11px;
}

.competitor-source-title {
  color: #fff;
  font-size: 13px;
}

.competitor-source-hint {
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.45;
}

.fixed-competitors-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}

.competitor-project-picker > label {
  background: transparent !important;
  border: 0 !important;
  display: block !important;
  font-size: 12px;
  font-weight: 700;
  padding: 0 0 6px !important;
}

.competitor-project-picker-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
}

.competitor-search-panel:not(.manual-mode) .competitor-project-picker,
.competitor-search-panel:not(.manual-mode) .competitor-project-manager {
  display: none !important;
}

.competitor-project-manager {
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  grid-column: 1 / -1;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  padding: 18px;
}

.competitor-project-manager-head,
.competitor-project-form,
.competitor-project-actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.competitor-project-manager-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.competitor-project-manager-head strong,
.competitor-project-manager-head span {
  display: block;
}

.competitor-project-manager-head span,
.competitor-project-message {
  color: #667085;
  font-size: 12px;
  margin-top: 3px;
}

.competitor-project-form-card {
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  padding: 14px;
}

.competitor-project-source-note {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  margin: 10px 0 0;
}

.competitor-project-form > label {
  align-items: stretch !important;
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  flex: 1 1 220px;
  flex-direction: column;
  padding: 0 !important;
}

.competitor-project-form input,
.competitor-project-form select,
.competitor-folder-editor input {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  min-height: 40px;
  padding: 8px 10px;
}

.competitor-project-folder-row {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.competitor-project-folder-row .option-expand {
  height: 40px;
  margin: 0;
  width: 40px;
}

.competitor-project-actions {
  flex: 1 1 auto;
}

.competitor-project-actions .btn {
  min-height: 40px;
  padding: 8px 14px;
}

.competitor-folder-section {
  border-top: 1px solid #e5e7eb;
  margin-top: 14px;
  padding-top: 14px;
}

.competitor-folder-toolbar,
.competitor-folder-toolbar-actions,
.competitor-folder-editor {
  align-items: center;
  display: flex;
  gap: 10px;
}

.competitor-folder-toolbar {
  justify-content: space-between;
}

.competitor-folder-toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.competitor-folder-editor {
  background: #f8fafc;
  border: 1px solid #eaecf0;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}

.competitor-folder-editor input {
  flex: 1 1 280px;
}

.competitor-folder-editor .btn {
  min-height: 40px;
  padding: 8px 16px;
}

.competitor-library {
  margin: 22px 0;
}

.competitor-library-head {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.competitor-library-head span {
  color: #3e7ad9;
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.15em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.competitor-library-head h2 {
  color: #172033;
  font-size: 20px;
  letter-spacing: 0;
  margin: 0;
}

.competitor-library-actions {
  align-items: center;
  display: flex;
  gap: 7px;
}

.competitor-library-new,
.competitor-library-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  color: #172033;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  text-decoration: none;
}

.competitor-library-new {
  padding: 0 13px;
}

.competitor-library-arrow {
  font-size: 16px;
  padding: 0;
  width: 34px;
}

.competitor-library-new:hover,
.competitor-library-arrow:hover {
  border-color: #3e7ad9;
  color: #3e7ad9;
}

.competitor-recent-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.competitor-library-empty {
  color: #667085;
  padding: 16px 2px;
}

.competitor-recent-track::-webkit-scrollbar {
  display: none;
}

.competitor-recent-card-shell {
  flex: 0 0 calc((100% - 20px) / 3);
  min-width: 250px;
  position: relative;
  scroll-snap-align: start;
}

.competitor-recent-card-shell.is-selected {
  outline: 1px solid #3e7ad9;
  outline-offset: -2px;
  border-radius: 7px;
}

.competitor-recent-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  box-shadow: 0 7px 24px rgba(23, 32, 51, 0.035);
  box-sizing: border-box;
  color: #172033 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: space-between;
  min-height: 116px;
  padding: 15px 46px 15px 16px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
  width: 100%;
}

.competitor-recent-card:hover {
  border-color: #aebbe9;
}

.competitor-recent-card-head,
.competitor-recent-card-bottom {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.competitor-recent-card-head strong,
.competitor-recent-url {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-recent-card-head strong {
  font-size: 15px;
}

.competitor-recent-card-head b {
  align-items: center;
  background: #eef2ff;
  border-radius: 50%;
  color: #3e7ad9;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  height: 29px;
  justify-content: center;
  min-width: 29px;
}

.competitor-recent-url {
  color: #667085;
  font-size: 10px;
}

.competitor-recent-card-bottom {
  border-top: 1px solid #edf0f5;
  color: #667085;
  font-size: 10px;
  padding-top: 8px;
}

.competitor-recent-card-bottom em {
  color: #3e7ad9;
  font-style: normal;
  font-weight: 750;
}

.competitor-recent-remove {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #8490a5;
  cursor: pointer;
  font: 600 20px/1 sans-serif;
  font-size: 20px;
  height: 27px;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 27px;
  z-index: 2;
}

.competitor-recent-remove:hover,
.competitor-recent-remove:focus-visible {
  background: #fff4f4;
  border-color: #f3c7c7;
  color: #c83d3d;
  outline: none;
}

.competitor-project-history {
  margin-top: 30px;
}

.competitor-project-history-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.competitor-project-history-head span {
  color: #3e7ad9;
  display: block;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.competitor-project-history-head h2 {
  color: #172033;
  font-size: 20px;
  letter-spacing: 0;
  margin: 0 0 5px;
}

.competitor-project-history-head p {
  color: #667085;
  font-size: 12px;
  margin: 0;
}

.competitor-history-project-link,
.competitor-history-open {
  align-items: center;
  background: #fff;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  color: #254f91 !important;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.competitor-history-project-link:hover,
.competitor-history-open:hover {
  border-color: #8ba8d7;
}

.competitor-project-history-list {
  border-bottom: 1px solid #e8ecf2;
  border-top: 1px solid #e8ecf2;
}

.competitor-history-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.competitor-history-project-link.analysis {
  background: #edf7e9;
  border-color: #cfe5c7;
  color: #36752d !important;
}

.competitor-history-project-link[hidden] {
  display: none;
}

.competitor-history-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 126px minmax(0, 1fr) 150px 118px;
  min-height: 68px;
  padding: 10px 0;
}

.competitor-history-row + .competitor-history-row {
  border-top: 1px solid #edf0f5;
}

.competitor-history-row.current {
  background: #f7fbf5;
}

.competitor-history-version {
  color: #172033;
  font-size: 12px;
  font-weight: 800;
  padding-left: 10px;
}

.competitor-history-version small,
.competitor-history-main small {
  color: #8490a5;
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-top: 3px;
}

.competitor-history-main {
  min-width: 0;
}

.competitor-history-main strong,
.competitor-history-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competitor-history-main strong {
  color: #27344a;
  display: block;
  font-size: 13px;
}

.competitor-history-date {
  color: #59677d;
  font-size: 11px;
}

.competitor-history-open {
  justify-self: end;
}

.competitor-history-open.current {
  background: #edf7e9;
  border-color: #cfe5c7;
  color: #36752d !important;
  cursor: default;
}

@media (max-width: 760px) {
  .competitor-project-history-head {
    align-items: stretch;
    flex-direction: column;
  }

  .competitor-history-project-link {
    align-self: flex-start;
  }

  .competitor-history-actions {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .competitor-history-row {
    grid-template-columns: 1fr auto;
    padding: 13px 8px;
  }

  .competitor-history-version,
  .competitor-history-date {
    padding-left: 0;
  }

  .competitor-history-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .competitor-history-date {
    grid-column: 1;
    grid-row: 3;
  }

  .competitor-history-open {
    grid-column: 2;
    grid-row: 1 / 4;
  }

}

.competitor-search-row {
 
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(430px, 1fr) 220px 220px;
}

.competitor-search-row > * {
  min-width: 0;
}

.competitor-search-row input,
.competitor-search-row select,
.competitor-search-row textarea,
.competitor-search-panel textarea {
  background: #fff;
  border-color: #d0d5dd;
}

.floating-field {
  position: relative;
}

.competitor-search-row .floating-field,
.competitor-search-row .floating-field input,
.competitor-search-row .floating-field textarea {
  margin-bottom: 0;
}

.floating-field input,
.floating-field textarea {
  border-radius: 8px;
  margin-bottom: 0;
  min-height: 56px;
  padding: 21px 14px 8px;
  width: 100%;
}

.pageTheme input {
  padding-right: 216px;
}

.search-engine-dropdown {
  position: absolute;
  right: 55px;
  top: 9px;
  width: 158px;
  z-index: 4;
}

.search-engine-trigger,
.search-engine-item {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}

.search-engine-trigger {
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
  height: 38px;
  margin: 0;
  padding: 0 24px 0 8px;
  position: relative;
  width: 100%;
}

.search-engine-arrow {
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #667085;
  height: 0;
  pointer-events: none;
  position: absolute;
  right: 9px;
  top: 16px;
  width: 0;
}

.search-region-dropdown {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 5;
}

.search-region-trigger {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 38px;
}

.search-region-trigger.is-selected {
  background: #e8f4ff;
  border-color: #2b7fff;
  box-shadow: 0 0 0 3px rgba(43, 127, 255, 0.18);
  color: #1155cc;
}

.search-region-trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.search-region-menu {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  display: none;
  margin-top: 6px;
  padding: 8px;
  position: absolute;
  right: 0;
  width: 250px;
}



.pageTheme.region-open .search-region-menu {
  display: block;
}

.search-region-filter {
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  color: #111827;
  height: 38px;
  margin: 0 0 8px;
  min-height: 38px;
  padding: 0 10px !important;
  width: 100%;
}

.search-region-list {
  display: grid;
  gap: 4px;
  max-height: 230px;
  overflow: auto;
}

.search-region-country {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  padding: 9px 10px 4px;
  text-transform: uppercase;
}

.search-region-country-item,
.search-region-back {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #111827;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.search-region-back {
  color: #667085;
  justify-content: flex-start;
  gap: 8px;
}

.search-region-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: #111827;
  cursor: pointer;
  display: flex;
  gap: 12px;
  font-weight: 700;
  justify-content: space-between;
  padding: 8px 10px;
  text-align: left;
  width: 100%;
}

.search-region-code {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.search-region-country-item:hover,
.search-region-back:hover,
.search-region-item:hover,
.search-region-item.active {
  background: #f2f4f7;
}

.search-engine-menu {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.16);
  display: none;
  margin-top: 6px;
  overflow: hidden;
  padding: 4px;
}

.pageTheme.search-open .search-engine-menu {
  display: grid;
}

.search-engine-item {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  font-weight: 700;
  padding: 8px;
  text-align: left;
}

.search-engine-item:hover,
.search-engine-item.active {
  background: #f2f4f7;
}

.engine-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.engine-yandex {
  background: #fc3f1d;
  color: #fff;
}

.engine-google {
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  color: #fff;
}

.floating-field textarea {
  line-height: 1.35;
  max-height: 160px;
  resize: vertical;
}

.competitor .competitor-search-row  button:disabled{
    min-width: auto;
}
.competitor-search-row .floating-field textarea {
  height: 56px;
  line-height: 1.25;
  max-height: 56px;
  min-height: 56px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding-bottom: 7px;
  padding-top: 25px;
  resize: none;
  scrollbar-width: none;
  white-space: nowrap;
  word-break: normal;
}

.competitor-search-row .floating-field textarea::-webkit-scrollbar {
  display: none;
}

.competitor-search-row .input-block.ours textarea {
  line-height: 1.15;
  overflow-wrap: anywhere;
  padding-bottom: 6px;
  padding-right: 72px;
  padding-top: 25px;
  word-break: break-word;
}

.competitor-search-row .input-block.ours textarea:placeholder-shown {
  white-space: nowrap;
}

.floating-field > label {
  color: #667085;
  font-size: 15px;
  left: 14px;
  margin: 0;
  pointer-events: none;
  position: absolute;
  top: 18px;
  transition: color 0.16s ease, font-size 0.16s ease, top 0.16s ease;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label {
  color: #475467;
  font-size: 11px;
  top: 7px;
}

.field-preview {
  color: #d1d5db;
  display: none;
  font-size: 12px;
  margin-top: 6px;
}

.field-preview:not(:empty) {
  display: block;
}

.competitor-search-row .field-error {
  display: none;
}

.competitor-search-row .field-error:not(:empty) {
  display: block;
}

.competitor-analysis-error {
  width: min(100%, 1180px);
  box-sizing: border-box;
  margin: 12px auto 0;
  border: 1px solid #efb5b5;
  border-left: 4px solid #c83f3f;
  border-radius: 6px;
  background: #fff1f1;
  padding: 12px 14px;
  color: #8f2525;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.competitor-analysis-error[hidden] {
  display: none;
}

.cloud-card {
  min-width: 0;
}

.cloud-zone-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 8px;
}

#chart-wrapper {
  height: 450px;
  min-height: 380px;
  position: relative;
  width: 100%;
}

.relevance-chart-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.relevance-chart-head h3 {
  margin: 0;
}

.relevance-chart-switch {
  align-items: stretch;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  display: inline-flex;
  flex: 0 0 auto;
  overflow: hidden;
}

.relevance-chart-switch button {
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 36px;
  padding: 7px 14px;
}

.relevance-chart-switch button + button {
  border-left: 1px solid #d0d5dd;
}

.relevance-chart-switch button.active {
  background: #fff;
  color: #2e3c56;
  box-shadow: inset 0 -2px 0 #7dbd28;
}

#chartPage {
  display: block;
  height: 100% !important;
  width: 100% !important;
}

@media (max-width: 760px) {
  .relevance-chart-head {
    align-items: stretch;
    flex-direction: column;
  }

  .relevance-chart-switch {
    align-self: flex-start;
  }

  #chart-wrapper {
    height: 360px;
    min-height: 360px;
    overflow: hidden;
  }
}

.input-block.ours .char-counter {
  display: none;
}

.competitor-search-panel.manual-mode .input-block.ours .char-counter {
  display: block;
}

.competitor-search-panel .field-help {
  align-items: center;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  position: absolute;
  right: 10px;
  top: 16px;
  width: 24px;
}

.competitor-search-row .btn {
  height: 56px;
  margin-bottom: 0;
  min-width: 160px;
  font-size: 15px;
  width: 220px;
  overflow: hidden;
  position: relative;
  transition: filter 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.competitor-search-row .btn.is-loading,
.competitor-search-row .btn.is-loading:disabled {
  cursor: wait;
  filter: saturate(1.03) brightness(0.96);
  opacity: 1;
  pointer-events: none;
}

.competitor-search-row .btn.is-loading::before {
  animation: analyzeButtonWave 1.15s linear infinite;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 28%,
    rgba(255, 255, 255, 0.34) 50%,
    rgba(255, 255, 255, 0.08) 72%,
    transparent 100%
  );
  content: "";
  inset: 0;
  position: absolute;
  transform: translateX(-115%);
}

.competitor-search-row .btn.is-loading::after {
  animation: analyzeButtonPulse 1.4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: inherit;
  content: "";
  inset: 2px;
  position: absolute;
}

@keyframes analyzeButtonWave {
  to {
    transform: translateX(115%);
  }
}

@keyframes analyzeButtonPulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.9;
  }
}

.example-fill {
    background: transparent;
    border: 0;
    color: #e5e7eb;
    cursor: pointer;
    font-size: 12px;
    overflow: hidden;
    padding: 1px 0;
    margin-left: 1px;
    margin-top: 5px;
    text-align: left;
    text-overflow: ellipsis;
    transition: background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
    border-bottom: 1px dashed #fff;
   min-width: inherit;
    max-width: max-content;
}



.competitor-actions-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 70px 0 20px 0;
}

.competitor-demo-settings-line {
  align-items: center;
  gap: 8px;
}

.demo-report-btn {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
      border-radius: 8px;
}

.demo-report-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);

}

.demo-report-btn-active,
.demo-report-btn-active:hover{
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(110, 231, 183, 0.55);
  color: #d1fae5;
}

.demo-report-btn-active::before {
  background: #34d399;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12);
  content: "";
  height: 9px;
  width: 9px;
}

.demo-report-disable-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: #f9fafb;
  cursor: pointer;
  font-weight: 700;
  height: 46px;
  padding: 0 16px;
}

.demo-report-disable-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}

.competitor-search-panel .columns.competitors {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 18px;
}

.competitor-search-panel:not(.manual-mode) .manual-competitor-input {
  display: none;
}

.competitor-search-panel:not(.manual-mode) .columns.competitors {
  display: none;
}

.competitor-search-panel.manual-mode:not(.settings-open) .columns.competitors {
  display: none;
}

.competitor-search-panel .analyze-loader {
  color: #d1d5db;
}

.competitor-search-panel .option-toggle{
color: #fff;
}

.competitor-search-panel .options .q {
  background: #2d3b55;
}

.competitor-authenticated .competitor-search-panel {
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  box-shadow: none;
  color: #111827;
  height: auto;
  justify-content: flex-start;
  margin: 28px 0 0;
  padding: 22px;
  width: 100%;
}

.competitor-authenticated .competitor-search-container {
  max-width: none;
}

.competitor-authenticated .competitor-panel-head {
  margin-bottom: 18px;
  text-align: left;
}

.competitor-authenticated .competitor-panel-head:before,
.competitor-authenticated .competitor-panel-head:after {
  content: none;
}

.competitor-authenticated .competitor-panel-head h2 {
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
}

.competitor-authenticated .competitor-search-panel .subtitle {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
  max-width: 760px;
}

.competitor-authenticated .competitor-search-row {
    grid-template-columns: minmax(410px, 1fr) 280px 280px;
}

.competitor-authenticated .competitor-search-panel .options label,
.competitor-authenticated .competitor-search-panel .label,
.competitor-authenticated .competitor-search-panel label,
.competitor-authenticated .competitor-search-panel .q {
  color: #344054;
}

.competitor-authenticated .competitor-search-panel .options label {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.competitor-authenticated .competitor-settings-grid {
  border-color: #e5e7eb;
}

.competitor-authenticated .competitor-experimental-settings {
  border-bottom-color: #e5e7eb;
}

.competitor-authenticated .competitor-experimental-settings h3 {
  color: #111827;
}

.competitor-authenticated .competitor-experimental-kicker {
  color: #175cd3;
}

.competitor-authenticated .competitor-settings-group + .competitor-settings-group {
  border-left-color: #e5e7eb;
}

.competitor-authenticated .competitor-settings-group h3 {
  color: #111827;
}

.competitor-authenticated .competitor-source-control {
  background: #f8fafc;
  border-color: #e5e7eb;
}

.competitor-authenticated .competitor-source-title {
  color: #111827;
}

.competitor-authenticated .competitor-source-hint {
  color: #667085;
}

.competitor-authenticated .competitor-settings-hint {
  color: #667085;
}

.competitor-authenticated .competitor-settings-details .option-settings {
  color: #344054;
}

.competitor-authenticated .competitor-search-panel .option-toggle {
  color: #111827;
}

.competitor-authenticated .competitor-search-panel .options .q {
  background: #eef4ff;
  color: #175cd3;
}

.competitor-authenticated .example-fill {
  color: #475467;
  border-bottom-color: #98a2b3;
}

.competitor-authenticated .competitor-actions-row {
  justify-content: flex-start;
  margin: 18px 0 0;
}

@media (max-width: 1100px) {
  .competitor-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competitor-experimental-settings {
    grid-template-columns: 1fr 1fr;
  }

  .competitor-experimental-settings > div:first-child {
    grid-column: 1 / -1;
  }

  .competitor-search-panel .columns.competitors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competitor-settings-group:nth-child(odd) {
    border-left: 0;
  }

  .competitor-settings-group:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .competitor-authenticated .competitor-settings-group:nth-child(n + 3) {
    border-top-color: #e5e7eb;
  }

  .competitor-settings-group[aria-labelledby="competitor-settings-exclusions"] {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .competitor-authenticated .competitor-settings-group[aria-labelledby="competitor-settings-exclusions"] {
    border-left-color: #e5e7eb;
  }

  .competitor-settings-details {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 760px) {
  .competitor-settings-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .competitor-settings-grid {
    grid-template-columns: 1fr;
  }

  .competitor-experimental-settings {
    grid-template-columns: 1fr;
    padding: 16px 0;
  }

  .competitor-experimental-settings > div:first-child {
    grid-column: auto;
  }

  .competitor-settings-group + .competitor-settings-group {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .competitor-authenticated .competitor-settings-group + .competitor-settings-group {
    border-top-color: #e5e7eb;
  }

  .competitor-settings-group {
    padding: 16px 0;
  }

  .competitor-project-form,
  .competitor-project-actions,
  .competitor-folder-toolbar,
  .competitor-folder-editor {
    align-items: stretch;
    flex-direction: column;
  }

  .competitor-folder-toolbar-actions {
    justify-content: flex-start;
  }

  .competitor-library-head {
    align-items: flex-start;
  }

  .competitor-library-arrow {
    display: none;
  }

  .competitor-recent-card-shell {
    flex-basis: 84%;
    min-width: 230px;
  }

  .competitor-search-panel .competitor-task-title-input {
    flex-basis: 100%;
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .competitor-search-panel .columns.competitors {
    grid-template-columns: 1fr;
  }
}

.competitor-authenticated .demo-report-btn,
.competitor-authenticated .demo-report-disable-btn {
  background: #f8fafc;
  border-color: #d0d5dd;
  color: #344054;
}

.competitor-authenticated .demo-report-btn-active,
.competitor-authenticated .demo-report-btn-active:hover {
  background: #ecfdf3;
  border-color: #75e0a7;
  color: #067647;
}

.competitor-authenticated .demo-report-disable-btn:hover,
.competitor-authenticated .demo-report-btn:hover {
  background: #eef2f6;
}

.competitor-authenticated #results {
  margin-top: 18px;
}

.serp-position {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-width: 38px;
}

.serp-position-number {
  font-weight: 700;
}

.serp-position-link {
  align-items: center;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  text-decoration: none;
  transform: translateX(-2px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  width: 18px;
}

.serp-position-link.engine-icon {
  height: 18px;
  width: 18px;
}

.serp-position:hover .serp-position-link,
.serp-position:focus-within .serp-position-link {
  opacity: 1;
  transform: translateX(0);
}

.serp-position-link:hover {
  color: #fff;
  text-decoration: none;
}

#documents-relevance-block {
  overflow-x: auto;
}

#documents-relevance-block .relevance-table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

#documents-relevance-block .relevance-table th:first-child,
#documents-relevance-block .relevance-table td:first-child {
  max-width: 0;
  width: 38%;
}

#documents-relevance-block .relevance-table th:first-child,
#documents-relevance-block .relevance-table td.document-cell {
  text-align: left;
}

#documents-relevance-block .relevance-table th:first-child {
  text-align: left;
}

.document-parse-status {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  margin-right: 7px;
  width: 18px;
}

.document-parse-status.is-ok {
  background: #e9f8ef;
  color: #16703c;
}

.document-parse-status.is-failed {
  background: #fff0f0;
  color: #c43232;
  cursor: help;
}

.document-type-badge {
  align-items: center;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  color: #475467;
  cursor: help;
  display: inline-flex !important;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin-right: 7px;
  padding: 0 3px;
  text-align: center;
  vertical-align: middle;
  width: 46px;
}

.document-type-badge.is-informational {
  background: #eef6ff;
  border-color: #b8d8f5;
  color: #175c91;
}

.document-type-badge.is-commercial {
  background: #fff5e8;
  border-color: #f0cf9c;
  color: #8a4b08;
}

.document-type-badge.is-hybrid {
  background: #f5f2ff;
  border-color: #d3c7f3;
  color: #5940a1;
}

.document-reference-excluded {
  align-items: center;
  background: #fff1f0;
  border: 1px solid #f2b8b5;
  border-radius: 50%;
  color: #b42318;
  cursor: help;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  margin-right: 7px;
  width: 18px;
}

.document-volume-badge {
  align-items: center;
  background: #f4f6f8;
  border: 1px solid #d8dee8;
  border-radius: 4px;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  line-height: 1;
  margin-right: 7px;
  padding: 0 3px;
  vertical-align: middle;
  width: 42px;
}

.document-volume-badge:hover,
.document-volume-badge:focus-visible {
  background: #e9edf2;
  border-color: #aab4c2;
}

.document-volume-badge.is-high {
  background: #fff4e8;
  border-color: #edc28a;
  color: #8a4b08;
}

.document-volume-badge.is-low {
  background: #fff0f0;
  border-color: #efb5b5;
  color: #a22d2d;
}

.unigram-table-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.unigram-unconfirmed-filter {
  align-items: center;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  gap: 6px;
  white-space: nowrap;
}

.unigram-unconfirmed-filter input {
  accent-color: #d97706;
  height: 15px;
  margin: 0;
  width: 15px;
}

.unigram-unconfirmed-filter:has(input:disabled) {
  cursor: default;
  opacity: 0.5;
}

.seo-table tr.unconfirmed td {
  background: #fffbeb;
}

.term-market-status {
  background: #fef3c7;
  border: 1px solid #f1cf78;
  border-radius: 4px;
  color: #8a4b08;
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
  padding: 2px 5px;
  vertical-align: middle;
}

.table-zone-switch {
  background: #f1f3f6;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  display: inline-flex;
  max-width: min(100%, 720px);
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.table-zone-switch button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: #667085;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  min-height: 30px;
  min-width: max-content !important;
  padding: 5px 10px;
}

.table-zone-switch button svg {
  height: 15px;
  width: 15px;
}

.table-zone-switch button.active {
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
  color: #1f2937;
}

.table-zone-switch button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.document-preview-dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, 0.24);
  color: #1f2937;
  max-height: min(82vh, 900px);
  padding: 0;
  width: min(920px, calc(100vw - 32px));
}

.document-preview-dialog::backdrop {
  background: rgba(16, 24, 40, 0.56);
}

.document-preview-head {
  align-items: flex-start;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 20px;
}

.document-preview-head strong,
.document-preview-head span {
  display: block;
}

.document-preview-head span {
  color: #667085;
  font-size: 12px;
  margin-top: 4px;
  max-width: 760px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-preview-close {
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  font-size: 26px;
  height: 32px;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.document-preview-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 16px 20px 8px;
}

.document-preview-stat {
  background: #f7f8fa;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  padding: 8px 10px;
}

.document-preview-stat span,
.document-preview-stat strong {
  display: block;
}

.document-preview-stat span {
  color: #667085;
  font-size: 11px;
}

.document-preview-stat strong {
  font-size: 14px;
  margin-top: 3px;
}

.document-preview-search-row {
  padding: 8px 20px;
}

.document-preview-search-row input {
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  box-sizing: border-box;
  padding: 9px 11px;
  width: 100%;
}

.document-preview-text {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  box-sizing: border-box;
  color: #344054;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 20px 20px;
  max-height: 48vh;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  width: calc(100% - 40px);
}

#documents-relevance-block .relevance-table tr.unparsed-row {
  background: #fffafa;
  color: #667085;
}

#documents-relevance-block .relevance-table tr.reference-excluded-row {
  background: #f8fafc;
  color: #667085;
}

#documents-relevance-block .relevance-table tr.reference-excluded-row .document-url-label {
  color: #667085;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

#documents-relevance-block .relevance-table tr.reference-excluded-row td:not(.document-cell) {
  opacity: 0.72;
}

.document-unavailable-metric {
  color: #98a2b3;
}

#documents-relevance-block .document-cell-content {
  align-items: center;
  display: flex;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  width: 100%;
}

#documents-relevance-block .document-url-label {
  color: #5b5656;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#documents-relevance-block .relevance-table th,
#documents-relevance-block .relevance-table td {
  border: 1px solid #dfe4ea;
  overflow-wrap: anywhere;
  padding: 10px 6px;
  text-align: center;
  vertical-align: middle;
}

#documents-relevance-block .relevance-table th {
  background: #f7f7f8;
  color: #111827;
  font-weight: 800;
}

#documents-relevance-block .relevance-table th[data-sort] {
  cursor: pointer;
  padding-right: 18px;
  position: relative;
  user-select: none;
}

#documents-relevance-block .relevance-table th[data-sort]::after {
  color: #98a2b3;
  content: "↕";
  font-size: 11px;
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

#documents-relevance-block .relevance-table th[data-sort][aria-sort="ascending"]::after {
  color: #2563eb;
  content: "↑";
}

#documents-relevance-block .relevance-table th[data-sort][aria-sort="descending"]::after {
  color: #2563eb;
  content: "↓";
}

#documents-relevance-block .relevance-table tbody tr:nth-child(odd):not(.site-row):not(.reference-excluded-row) {
  background: #fafafa;
}

.market-profile-diagnostics {
  border-top: 1px solid #dfe4ea;
  margin-top: 24px;
  padding-top: 24px;
}

.market-profile-head,
.market-profile-section-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.market-profile-head > div > span {
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.market-profile-head h4 {
  color: #111827;
  font-size: 20px;
  margin: 3px 0 0;
}

.market-profile-head > p,
.market-profile-section-head > p {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-width: 560px;
}

.market-profile-metrics {
  border-bottom: 1px solid #dfe4ea;
  border-top: 1px solid #dfe4ea;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.market-profile-metric {
  border-right: 1px solid #dfe4ea;
  min-width: 0;
  padding: 16px;
}

.market-profile-metric:last-child {
  border-right: 0;
}

.market-profile-metric > span,
.market-profile-metric > small {
  color: #667085;
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

.market-profile-metric > strong {
  color: #111827;
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin: 6px 0;
}

.market-profile-metric.is-extra > strong {
  color: #9a6700;
}

.market-profile-section {
  border-top: 1px solid #eaecf0;
  margin-top: 22px;
  padding-top: 18px;
}

.market-profile-section-head h5 {
  color: #111827;
  font-size: 17px;
  margin: 0;
}

.market-profile-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
}

.market-profile-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 820px;
  width: 100%;
}

.market-profile-table th,
.market-profile-table td {
  border-bottom: 1px solid #eaecf0;
  padding: 9px 8px;
  text-align: left;
}

.market-profile-table th {
  color: #475467;
  font-size: 11px;
  text-transform: uppercase;
}

.market-profile-segment {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.market-profile-segment.is-core {
  color: #067647;
}

.market-profile-extras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
}

.market-profile-extra {
  color: #475467;
  font-size: 13px;
}

.market-profile-empty {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 0;
}

.serp-formula-guidance {
  border-top: 1px solid #dfe4ea;
  margin-top: 24px;
  padding-top: 24px;
}

.serp-formula-guidance-head,
.serp-formula-analysis-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.serp-formula-guidance-head h4 {
  color: #111827;
  font-size: 20px;
  margin: 3px 0 0;
}

.serp-formula-guidance-head > div > span,
.serp-formula-label {
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.serp-formula-guidance-head > p {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-width: 520px;
}

.serp-formula-analysis {
  border-top: 1px solid #eaecf0;
  margin-top: 20px;
  padding-top: 20px;
}

.serp-formula-analysis-head > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.serp-formula-analysis-head > div > strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.serp-formula-delta {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.serp-formula-delta.is-positive {
  color: #067647;
}

.serp-formula-delta.is-negative {
  color: #b42318;
}

.serp-formula-components {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.serp-formula-component {
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  display: flex;
  justify-content: space-between;
  min-width: 0;
  padding: 10px 12px;
}

.serp-formula-component span {
  color: #667085;
  font-size: 12px;
}

.serp-formula-component strong {
  color: #111827;
  font-size: 14px;
}

.serp-formula-note,
.serp-formula-empty {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
  margin: 14px 0;
}

.serp-formula-table-wrap {
  overflow-x: auto;
}

.serp-formula-table {
  border-collapse: collapse;
  font-size: 13px;
  min-width: 680px;
  width: 100%;
}

.serp-formula-table th,
.serp-formula-table td {
  border-bottom: 1px solid #eaecf0;
  padding: 9px 8px;
  text-align: left;
}

.serp-formula-table th {
  color: #475467;
  font-size: 11px;
  text-transform: uppercase;
}

.fixed-top3-reference-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #b8c6d6;
  border-radius: 5px;
  background: #edf3f8;
  color: #46596d;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .market-profile-head,
  .market-profile-section-head,
  .serp-formula-guidance-head,
  .serp-formula-analysis-head {
    flex-direction: column;
  }

  .market-profile-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .market-profile-metric:nth-child(2) {
    border-right: 0;
  }

  .market-profile-metric:nth-child(-n + 2) {
    border-bottom: 1px solid #dfe4ea;
  }

  .serp-formula-components {
    grid-template-columns: 1fr;
  }
}


#results {
  margin-top: 34px;
}

@media (max-width: 900px) {
  .table-header,
  .unigram-table-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .table-zone-switch,
  .table-header input {
    max-width: none;
    width: 100%;
  }

  .table-zone-switch button {
    width: auto;
  }

  .document-preview-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competitor-search-row {
    grid-template-columns: 1fr;
  }

  .competitor-search-row .btn {
    width: 100%;
  }

  .competitor-hero-title {
    gap: 10px;
  }

  .relevance-title-img {
    height: 54px;
    width: 58px;
  }
}

.semantic-market-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.semantic-market-stat {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.semantic-market-stat span {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.semantic-market-stat strong {
  display: block;
  font-size: 18px;
}



.llm-summary-sections {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.llm-summary-overall {
  align-items: flex-start;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
}

.llm-summary-section {
  background: #fff;
  border-right: 1px solid #e5e7eb;
  padding: 16px;
}
.llm-summary-section:last-child {
  border-right: 0;
}
.llm-summary-icon {
align-items: center;
    border-radius: 10px;
    flex: 0 0 auto;
    justify-content: center;
    margin-bottom: 10px;
}

.llm-summary-icon img {
    height: 75px;
    width: 75px;
}

.llm-summary-section strong,
.llm-summary-overall strong {
  color: #111827;
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
}

.llm-summary-section span,
.llm-summary-overall span {
  color: #1f2937;
  display: block;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .llm-summary-sections {
    grid-template-columns: 1fr;
  }

  .llm-summary-overall {
    display: block;
  }
}


.tabs button {
  background: #f1f3f6;
  border: 1px solid #d8dee8;
  border-radius: 6px;
  color: #667085;
}


.semantic-market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.semantic-layer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 18px;
}

.semantic-layer-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
}

.semantic-layer-card strong,
.semantic-layer-card span {
  display: block;
}

.semantic-layer-card span {
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 5px;
}

.semantic-overview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  margin-top: 12px;
}

.semantic-overview-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.semantic-overview-card h4 {
  margin: 0 0 8px;
}

.semantic-overview-card p {
  margin: 6px 0;
}

.semantic-overview-status {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.semantic-overview-status div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
}

.semantic-overview-status span {
  color: #667085;
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.semantic-overview-status strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.semantic-layer-bars {
  display: grid;
  gap: 12px;
}

.semantic-layer-bar-row {
  display: grid;
  gap: 6px;
}

.semantic-layer-bar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.semantic-layer-bar-head strong {
  font-size: 13px;
}

.semantic-layer-bar-head span {
  color: #667085;
  font-size: 12px;
}

.semantic-layer-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.semantic-layer-bar span {
  display: block;
  height: 100%;
}

.semantic-layer-bar.good span {
  background: #16a34a;
}

.semantic-layer-bar.warn span {
  background: #d97706;
}

.semantic-layer-bar.bad span {
  background: #dc2626;
}

.semantic-market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 16px;
}

.semantic-tabs {
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.semantic-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #475467;
  cursor: pointer;
  font-weight: 700;
  padding: 9px 10px;
}

.semantic-tabs button.active {
  border-bottom-color: var(--primary-color);
}

.semantic-tab-panel {
  display: none;
}

.semantic-tab-panel.active {
  display: block;
}

.semantic-market-debug {
  margin-top: 16px;
}

.passport-preview {
  background: #101828;
  border-radius: 8px;
  color: #f9fafb;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.semantic-list-item {
  border-bottom: 1px solid #eef2f7;
  padding: 9px 0;
}

.semantic-list-item:last-child {
  border-bottom: 0;
}

.semantic-list-item strong {
  display: block;
  margin-bottom: 3px;
}

.semantic-muted {
  color: #667085;
  font-size: 13px;
}

.semantic-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.semantic-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.semantic-table th,
.semantic-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.semantic-table th {
  background: #f8fafc;
  font-size: 13px;
}

.semantic-topic-summary {
  color: #475467;
  font-size: 13px;
  margin: 12px 0;
}

.semantic-topics-run-panel {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 14px 0;
  padding: 12px;
}

.semantic-topics-run-panel .btn {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
}

.semantic-topics-run-panel .btn svg {
  height: 17px;
  width: 17px;
}

.semantic-topics-run-panel .semantic-muted {
  text-align: right;
}

.semantic-topics-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.semantic-topics-step-head h2 {
  margin: 0;
}

.semantic-topics-step-head .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.semantic-topics-step-head .btn svg {
  width: 17px;
  height: 17px;
}

.semantic-topic-detail-score {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 700px) {
  .semantic-topics-step-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .semantic-topics-run-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .semantic-topics-run-panel .btn {
    justify-content: center;
    width: 100%;
  }

  .semantic-topics-run-panel .semantic-muted {
    text-align: left;
  }
}

.semantic-block-matrix-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.semantic-block-matrix {
  border-collapse: collapse;
  min-width: 980px;
  width: 100%;
}

.semantic-block-matrix th,
.semantic-block-matrix td {
  border: 1px solid #e4e7ec;
  padding: 10px 9px;
  text-align: center;
  vertical-align: middle;
}

.semantic-block-matrix th {
  background: #f7f9fc;
  color: #475467;
  font-size: 11px;
}

.semantic-block-matrix th:first-child,
.semantic-block-matrix td:first-child {
  text-align: left;
}

.semantic-block-presence {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.semantic-block-presence.yes {
  background: #e8f7e8;
  color: #238636;
}

.semantic-block-presence.no {
  background: #f2f4f7;
  color: #98a2b3;
}

.semantic-block-presence.partial {
  background: #fef3c7;
  color: #92400e;
}

.semantic-block-presence.missing {
  background: #fee2e2;
  color: #991b1b;
}

.semantic-block-status.not_required {
  background: #f2f4f7;
  color: #667085;
}

.semantic-block-status.not_found,
.semantic-block-status.single_signal {
  background: #f2f4f7;
  color: #667085;
}

.semantic-block-status.single_signal {
  background: #fff7e6;
  color: #8a5800;
}

.semantic-block-row-muted {
  color: #667085;
}

.semantic-baseline-details {
  border-top: 1px solid #e4e7ec;
  margin-top: 20px;
  padding-top: 14px;
}

.semantic-baseline-details > summary {
  color: #344054;
  cursor: pointer;
  font-weight: 700;
}

.semantic-block-signal {
  white-space: nowrap;
}

.semantic-block-match-score {
  color: #667085;
  display: block;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  margin-top: 4px;
}

.semantic-block-url {
  display: block;
  font-size: 11px;
  font-weight: 700;
  max-width: 105px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.semantic-topic-summary strong {
  color: #101828;
}

.semantic-block-status-cell {
  white-space: nowrap;
}

.semantic-topic-compare-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #344054;
  cursor: pointer;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  margin-left: 7px;
  padding: 0;
  vertical-align: middle;
  width: 30px;
}

.semantic-topic-compare-btn:hover {
  background: #f2f4f7;
  border-color: #98a2b3;
}

.semantic-topic-compare-btn svg,
.semantic-topic-modal-close svg {
  height: 17px;
  width: 17px;
}

.semantic-topic-modal[hidden] {
  display: none;
}

.semantic-topic-modal {
  align-items: center;
  background: rgba(16, 24, 40, .64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 10020;
}

.semantic-topic-modal-dialog {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 24px 48px rgba(16, 24, 40, .22);
  max-height: min(86vh, 900px);
  max-width: 1120px;
  overflow: hidden;
  width: 100%;
}

.semantic-topic-modal-head {
  align-items: flex-start;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px 24px;
}

.semantic-topic-modal-head span {
  color: #667085;
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.semantic-topic-modal-head h3 {
  font-size: 20px;
  margin: 0;
}

.semantic-topic-modal-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 36px;
  height: 36px;
  justify-content: center;
  padding: 0;
}

.semantic-topic-modal-body {
  max-height: calc(min(86vh, 900px) - 82px);
  overflow: auto;
  padding: 24px;
}

.semantic-topic-modal-body .semantic-cell-text {
  max-height: none;
  overflow: visible;
  white-space: pre-wrap;
}

.semantic-topic-modal-comparison {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr);
}

.semantic-topic-modal-site {
  border-right: 1px solid #e4e7ec;
  padding-right: 24px;
}

.semantic-topic-modal-competitors {
  display: grid;
  gap: 14px;
}

.semantic-topic-competitor {
  border-bottom: 1px solid #e4e7ec;
  padding-bottom: 14px;
}

.semantic-topic-competitor:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.semantic-topic-competitor-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.semantic-topic-competitor-head small {
  color: #667085;
  flex: 0 0 auto;
}

.semantic-screen-fragment {
  border-left: 3px solid #d0d5dd;
  margin-top: 12px;
  padding-left: 12px;
}

.semantic-screen-fragment > small {
  color: #667085;
  display: block;
  margin-bottom: 5px;
}

.semantic-aspect-summary {
  border-bottom: 1px solid #e4e7ec;
  margin-bottom: 20px;
  padding-bottom: 18px;
}

.semantic-aspect-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.semantic-aspect-row {
  align-items: baseline;
  display: flex;
  gap: 8px;
}

.semantic-aspect-row.covered strong { color: #238636; }
.semantic-aspect-row.missing strong { color: #b42318; }

.semantic-topic-comparison {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.semantic-topic-fragment {
  border-left: 3px solid #d0d5dd;
  line-height: 1.45;
  padding-left: 10px;
}

.semantic-topic-fragment strong,
.semantic-topic-fragment small {
  display: block;
  margin-bottom: 5px;
}

.semantic-topic-fragment small {
  color: #667085;
}

@media (max-width: 700px) {
  .semantic-topic-modal {
    padding: 10px;
  }

  .semantic-topic-modal-head,
  .semantic-topic-modal-body {
    padding: 16px;
  }

  .semantic-topic-modal-comparison {
    grid-template-columns: 1fr;
  }

  .semantic-topic-modal-site {
    border-bottom: 1px solid #e4e7ec;
    border-right: 0;
    padding-bottom: 16px;
    padding-right: 0;
  }

  .semantic-topic-comparison {
    grid-template-columns: 1fr;
  }
}

.semantic-cell-text {
  max-height: 150px;
  overflow: auto;

}

.semantic-signal-item {
  border-bottom: 1px solid #eef2f7;
  line-height: 1.4;
  padding: 0 0 7px;
  margin-bottom: 7px;
    white-space: pre-wrap;
}

.semantic-signal-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.semantic-status-title {
  font-weight: 700;
  line-height: 1.35;
  margin-top: 7px;
}

.semantic-table-note {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 8px 0 10px;
  padding: 10px 12px;
}

.semantic-section-note {
  margin: -4px 0 12px;
  max-width: 980px;
}

.semantic-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -2px 0 12px;
}

.semantic-copy-actions .btn {
  min-height: 34px;
  padding: 0 12px;
}

.term-entity-badge {
  align-items: center;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  color: #075985;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  margin-left: 6px;
  width: 20px;
  vertical-align: middle;
}

.term-entity-badge svg {
  height: 13px;
  width: 13px;
}

.term-zone-hints {
  align-items: center;
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

.term-zone-hint {
  align-items: center;
  background: #fff8e8;
  border: 1px solid #efd49c;
  border-radius: 5px;
  color: #85540a;
  cursor: pointer;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  padding: 0;
  width: 20px;
}

.term-zone-hint:hover,
.term-zone-hint:focus-visible {
  background: #ffefc8;
  border-color: #d7ad56;
}

.term-zone-hint svg {
  height: 13px;
  width: 13px;
}

.zone-match-value {
  font-weight: 800;
}

.zone-match-value.is-low {
  color: #a22d2d;
}

.zone-match-value.is-good {
  color: #477b12;
}

.semantic-percent-cell {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(72px, 1fr) auto;
  min-width: 120px;
}

.semantic-percent-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.semantic-percent-bar span {
  background: #2563eb;
  display: block;
  height: 100%;
}

.semantic-percent-cell.unavailable {
  color: #667085;
  display: block;
  min-width: 110px;
}

.semantic-layer-bar.unavailable span {
  background: #98a2b3;
  width: 0 !important;
}

.semantic-badge.signal-strong {
  background: #dcfce7;
  color: #166534;
}

.semantic-badge.signal-medium {
  background: #fef3c7;
  color: #92400e;
}

.semantic-badge.signal-weak,
.semantic-badge.signal-none,
.semantic-badge.unavailable {
  background: #f2f4f7;
  color: #475467;
}

.semantic-difference-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 20px;
}

.semantic-difference-grid section {
  border-top: 2px solid #d0d5dd;
  padding-top: 10px;
}

.semantic-difference-grid h4 {
  font-size: 14px;
  margin: 0 0 8px;
}

.semantic-difference-grid ul {
  margin: 0;
  padding-left: 20px;
}

.semantic-difference-grid li {
  margin-bottom: 10px;
}

.semantic-difference-grid li .semantic-muted {
  display: block;
  margin-top: 3px;
}

.semantic-unavailable {
  color: #475467;
}

.semantic-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
}

.semantic-badge.high,
.semantic-badge.missing,
.semantic-badge.mismatch {
  background: #fee2e2;
  color: #991b1b;
}

.semantic-badge.medium,
.semantic-badge.partial {
  background: #fef3c7;
  color: #92400e;
}

.semantic-badge.covered,
.semantic-badge.low {
  background: #dcfce7;
  color: #166534;
}

.semantic-badge.present {
  background: #e5e7eb;
  color: #374151;
}

.semantic-recommendations {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: -6px 0 18px;
  padding: 12px 14px;
}

.semantic-recommendations ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.semantic-recommendations li {
  margin: 6px 0;
}

.term-context-toggle {
  align-items: center;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fff7f7;
  color: #991b1b;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  line-height: 1;
  margin-left: 6px;
  padding: 0;
  width: 22px;
}

.term-context-toggle:hover {
  background: #fee2e2;
}

.term-action-buttons {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin-left: 6px;
  vertical-align: middle;
}

.term-action-buttons .term-context-toggle {
  margin-left: 0;
}

.term-intent-toggle {
  align-items: center;
  background: #f4faec;
  border: 1px solid #b7db88;
  border-radius: 6px;
  color: #527d19;
  cursor: pointer;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}

.term-intent-toggle:hover {
  background: #eaf6dc;
  border-color: #7dbd28;
}

.term-intent-toggle:disabled {
  cursor: wait;
  opacity: 0.65;
}

.term-intent-toggle svg {
  height: 14px;
  width: 14px;
}

.term-intent-toggle.is-loading svg {
  animation: term-intent-spin 0.9s linear infinite;
}

@keyframes term-intent-spin {
  to { transform: rotate(360deg); }
}

.term-context-row td {
  background: #fffafa;
  border-top: 0;
  padding: 12px;
}

.term-context-box {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.term-context-title {
  align-items: center;
  color: #7f1d1d;
  display: flex;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.term-context-title-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.term-context-copy {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  padding: 0;
  width: 22px;
}

.term-context-copy:hover,
.term-context-copy.is-copied {
  background: #f0fdf4;
  border-color: #86cf9f;
  color: #16834a;
}

.term-context-copy svg {
  height: 14px;
  width: 14px;
}

.term-context-group {
  border-top: 1px solid #fee2e2;
  min-width: 0;
  padding-top: 10px;
}

.term-context-box.has-ai .term-context-group {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.term-context-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.term-context-source,
.term-context-ai {
  min-width: 0;
}

.term-context-box.has-ai .term-context-source {
  padding-right: 14px;
}

.term-context-ai {
  border-left: 1px solid #dcebc9;
  display: none;
  padding: 0 0 10px 14px;
}

.term-context-box.has-ai .term-context-ai {
  display: block;
}

.term-context-ai-item + .term-context-ai-item {
  border-top: 1px solid #e8eee1;
  margin-top: 10px;
  padding-top: 10px;
}

.term-context-ai-label {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.term-context-ai-intent {
  color: #344054;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 9px;
}

.term-context-ai-sentence {
  align-items: flex-start;
  color: #344054;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.45;
}

.term-context-competitor {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.term-context-competitor a {
  color: inherit;
  text-decoration: none;
}

.term-context-competitor a:hover {
  color: #2e3c56;
  text-decoration: underline;
}

.term-context-group ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.term-context-group li {
  line-height: 1.45;
  margin: 5px 0;
}

.term-context-hit {
  background: #fff2a8;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #fff2a8;
  color: #7f1d1d;
  font-weight: 800;
  padding: 0 1px;
}

.term-context-empty {
  color: #667085;
  font-size: 13px;
}

.term-intent-copy {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #526079;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 28px;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.term-intent-copy:hover {
  border-color: #7dbd28;
  color: #527d19;
}

.term-intent-copy svg {
  height: 14px;
  width: 14px;
}

.term-intent-loading,
.term-intent-error {
  color: #667085;
  padding: 14px;
}

.term-intent-error {
  color: #b42318;
}

@media (max-width: 760px) {
  .term-context-box.has-ai .term-context-group {
    grid-template-columns: 1fr;
  }

  .term-context-box.has-ai .term-context-source {
    padding-right: 0;
  }

  .term-context-ai {
    border-left: 0;
    border-top: 1px solid #dcebc9;
    margin-top: 8px;
    padding: 12px 0 10px;
  }

}

.rec-word-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.rec-word-chip {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #1f2937;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 5px;
  line-height: 1.2;
  max-width: 100%;
  padding: 5px 8px;
}

.rec-word-chip span {
  overflow-wrap: anywhere;
}

.rec-copy-words {
  background: #fff;
  border: 1px solid #cfd6df;
  border-radius: 5px;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  margin-top: 14px;
  min-height: 34px;
  padding: 7px 11px;
}

.rec-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rec-anchor-examples {
  border-top: 1px solid #e4e7ec;
  margin-top: 14px;
  padding-top: 12px;
}

.rec-anchor-examples summary {
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.rec-anchor-examples-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.rec-anchor-example {
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  padding: 10px 12px;
}

.rec-anchor-example-source {
  font-size: 12px;
  margin-top: 8px;
}

.rec-anchor-example ul {
  margin: 5px 0 0 18px;
  padding: 0;
}

.rec-depth-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 14px;
}

.rec-depth-actions .rec-copy-words {
  margin-top: 0;
}

.rec-depth-filter {
  align-items: center;
  color: #475467;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.35;
}

.rec-depth-filter input {
  accent-color: var(--primary-color);
  flex: 0 0 auto;
  height: 16px;
  margin: 0;
  width: 16px;
}

.rec-depth-filter-top {
  margin-bottom: 10px;
}

.rec-depth-over-note,
.rec-depth-word-over {
  color: #3e7ad9;
}

.rec-copy-words:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.rec-copy-words.is-copied {
  background: #ecfdf3;
  border-color: #a7d8b5;
  color: #23693a;
}

@media (max-width: 768px) {
  .semantic-market-summary,
  .semantic-overview-grid,
  .semantic-overview-status,
  .semantic-market-grid,
  .semantic-layer-grid,
  .semantic-difference-grid {
    grid-template-columns: 1fr;
  }
}
.basic-locked-key-row td {
  background: #f6f8fa;
  color: #7b8490;
}

.basic-locked-key {
  display: inline-block;
  color: transparent;
  user-select: none;
  width: 118px;
  height: 13px;
  border-radius: 3px;
  background: #cbd2da;
  filter: blur(3px);
}

.basic-locked-key-row button {
  border: 0;
  background: transparent;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}

.competitor-admin-log {
  border-top: 3px solid #3e7ad9;
  margin-top: 30px;
}

.competitor-admin-log-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.competitor-admin-log-head > div > span {
  color: #3e7ad9;
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.competitor-admin-log-head h2 {
  margin: 0 0 6px;
}

.competitor-admin-log-head p {
  color: #667085;
  margin: 0;
}

.competitor-admin-log-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.competitor-admin-log-head .btn {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: center;
  min-width: 170px;
  width: auto;
}

.competitor-admin-log-head .btn svg {
  height: 17px;
  width: 17px;
}

.competitor-admin-log-status {
  color: #667085;
  font-size: 12px;
  margin: 18px 0 8px;
}

.competitor-admin-log textarea {
  background: #101725;
  border: 1px solid #26354d;
  border-radius: 6px;
  box-sizing: border-box;
  color: #d9e3f4;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  min-height: 340px;
  padding: 14px;
  resize: vertical;
  white-space: pre;
  width: 100%;
}

@media (max-width: 768px) {
  .competitor-admin-log-head {
    align-items: stretch;
    flex-direction: column;
  }

  .competitor-admin-log-head .btn {
    width: 100%;
  }

  .competitor-admin-log-actions {
    flex-direction: column;
    width: 100%;
  }
}
