﻿.compare-shell {
  padding: 3rem 1.25rem 4rem;
}

.compare-hero {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  gap: 1.5rem;
}

.compare-workspace {
  display: grid;
  gap: 1.5rem;
}

.compare-lists-sidebar {
  position: sticky;
  top: 1.25rem;
}

.compare-copy {
  max-width: 760px;
}

.compare-kicker {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(67, 98, 239, 0.1);
  color: var(--blue-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.compare-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  color: var(--title-color);
}

.compare-copy p {
  margin: 0;
  max-width: 58ch;
  color: var(--subtitle-color);
  font-size: 1.05rem;
  line-height: 1.65;
}

.compare-form-card,
.compare-panel,
.compare-score-card {
  background: rgba(255, 255, 255, 0.9);
  border: var(--di-border);
  border-radius: 24px;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.compare-form-card {
  padding: 1.25rem;
}

.compare-grid {
  display: grid;
  gap: 1rem;
}

.compare-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--title-color);
  font-weight: 600;
}

.compare-input-mode {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.compare-input-panel {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.compare-input-panel select.form-control {
  min-height: 52px;
}

.compare-autocomplete-wrap {
  position: relative;
}

.compare-field .form-control {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(23, 36, 55, 0.12);
  box-shadow: none;
}

.compare-usp-textarea.form-control {
  min-height: 148px;
  resize: vertical;
  line-height: 1.55;
}

.compare-field-hint {
  color: var(--subtitle-color);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 500;
}

.compare-bulk-transfer-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(23, 36, 55, 0.05);
  border: 1px solid rgba(23, 36, 55, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--title-color);
}

.icp-textarea.form-control {
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
}

.icp-input-region {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.icp-query-display-region {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.icp-query-display-text {
  min-height: 120px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 36, 55, 0.1);
  background: rgba(245, 247, 251, 0.95);
  color: var(--title-color);
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.icp-running-summary {
  min-height: 220px;
  align-content: center;
}

.icp-running-summary.d-none {
  display: none !important;
}

.compare-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1rem;
}

.icp-status-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
}

.compare-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.1rem;
  min-inline-size: 140px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 0;
  background: var(--blue-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: none;
}

.compare-btn:hover,
.compare-btn:focus,
.compare-btn:active {
  background: var(--blue-primary) !important;
  color: #fff !important;
  filter: brightness(1.03);
}

.compare-btn-secondary {
  background: rgba(67, 98, 239, 0.12);
  color: var(--blue-primary);
  box-shadow: none;
}

.compare-btn-secondary:hover,
.compare-btn-secondary:focus,
.compare-btn-secondary:active {
  background: rgba(67, 98, 239, 0.18) !important;
  color: var(--blue-primary) !important;
  filter: none;
}

.compare-status {
  color: var(--subtitle-color);
  font-size: 0.95rem;
  line-height: 1.45;
}

.compare-results {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.icp-matches-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

.compare-score-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.compare-score-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.compare-score-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.compare-score-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtitle-color);
  margin-bottom: 0;
}

.compare-score-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(67, 98, 239, 0.08);
  border: 1px solid rgba(67, 98, 239, 0.18);
  color: var(--blue-primary);
  text-decoration: none;
}

.compare-score-shortcut:hover {
  background: rgba(67, 98, 239, 0.14);
  color: var(--blue-primary);
}

.compare-export-btn {
  border-radius: 999px;
  border: 1px solid rgba(67, 98, 239, 0.18);
  background: rgba(67, 98, 239, 0.08);
  color: var(--blue-primary);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
}

.compare-export-btn:hover,
.compare-export-btn:focus,
.compare-export-btn:active {
  background: rgba(67, 98, 239, 0.14) !important;
  color: var(--blue-primary) !important;
}

.compare-score-value {
  margin-top: 0.7rem;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.05;
  font-weight: 600;
  color: var(--subtitle-color);
}

.compare-score-band {
  display: inline-flex;
  padding: 0.55rem 1rem;
  border-radius: 16px;
  background: rgba(67, 98, 239, 0.1);
  color: var(--blue-primary);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  line-height: 1;
}

.compare-score-source,
.compare-score-note {
  color: var(--subtitle-color);
  line-height: 1.55;
}

.compare-panels {
  display: grid;
  gap: 1rem;
}

.compare-panel {
  padding: 1.25rem;
}

.compare-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--title-color);
}

.icp-vector-preview {
  margin: 0;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(23, 36, 55, 0.05);
  color: var(--subtitle-color);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.compare-benchmark-panel {
  padding: 1.25rem;
}

.compare-benchmark-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.compare-benchmark-side {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.compare-benchmark-meta {
  max-width: 58ch;
}

.compare-benchmark-toggle {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(67, 98, 239, 0.18);
  background: rgba(67, 98, 239, 0.08);
  color: var(--blue-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.compare-benchmark-toggle:hover,
.compare-benchmark-toggle:focus,
.compare-benchmark-toggle:active {
  background: rgba(67, 98, 239, 0.14) !important;
  color: var(--blue-primary) !important;
}

.compare-benchmark-toggle i {
  display: inline-block;
  transition: transform 120ms ease;
  font-size: 0.95rem;
}

.compare-benchmark-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.compare-benchmark-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.compare-benchmark-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.compare-benchmark-detail {
  color: var(--subtitle-color);
  font-size: 0.92rem;
}

.compare-benchmark-score {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--blue-primary);
}

.compare-summary-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.compare-summary-logo {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(23, 36, 55, 0.04);
  border: 1px solid rgba(23, 36, 55, 0.08);
}

.compare-summary-logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.compare-summary-logo.compare-summary-logo-text::after {
  content: "\201C";
  color: var(--blue-primary);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.compare-summary-title {
  min-width: 0;
  flex: 1 1 auto;
}

.compare-summary-title strong {
  display: block;
  color: var(--title-color);
  font-size: 1rem;
  line-height: 1.2;
}

.compare-summary-domain {
  color: var(--subtitle-color);
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

.compare-summary-domain-link {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.compare-summary-domain-link:hover {
  text-decoration: underline;
}

.compare-summary-link {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
}

.compare-summary-link:hover {
  text-decoration: underline;
}

.compare-summary-action {
  flex: 0 0 auto;
}

.compare-summary-action .btn {
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(67, 98, 239, 0.18);
  background: rgba(67, 98, 239, 0.08);
  color: var(--blue-primary);
  font-weight: 700;
  font-size: 0.88rem;
}

.compare-summary-action .btn:hover {
  background: rgba(67, 98, 239, 0.14);
  color: var(--blue-primary);
}

.compare-list,
.compare-summary {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li,
.compare-summary li {
  margin: 0 0 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(23, 36, 55, 0.04);
  color: var(--title-color);
  line-height: 1.5;
}

.compare-summary-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--subtitle-color);
}

.compare-bulk-results {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.compare-bulk-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(23, 36, 55, 0.08);
  background: rgba(245, 247, 251, 0.7);
}

.compare-bulk-main {
  min-width: 0;
}

.compare-bulk-domain {
  color: var(--title-color);
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.compare-bulk-domain:hover,
.compare-bulk-domain:focus {
  color: var(--blue-primary);
  text-decoration: underline;
}

.compare-bulk-meta,
.compare-bulk-error {
  margin-top: 0.35rem;
  color: var(--subtitle-color);
  font-size: 0.92rem;
  line-height: 1.45;
}

.compare-bulk-error {
  color: #b42318;
}

.compare-bulk-score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.compare-bulk-score-value {
  color: var(--title-color);
  font-size: 1.05rem;
  font-weight: 800;
}

@media (min-width: 720px) {
  .compare-workspace {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
  }

  .compare-grid,
  .compare-panels,
  .compare-score-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-actions {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .icp-status-actions {
    align-items: flex-end;
    width: auto;
  }

  .compare-benchmark-head {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    align-items: end;
  }

  .compare-benchmark-side {
    align-items: end;
  }
}

