.quote-page .upload-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 180px;
  padding: 28px 20px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.quote-page .upload-zone:hover,
.quote-page .upload-zone.is-dragover {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.quote-page .upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quote-page .upload-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.7;
}

.quote-page .upload-hint {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.quote-page .upload-preview {
  display: none;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}

.quote-page .upload-zone.has-image .upload-preview {
  display: block;
}

.quote-page .upload-zone.has-image .upload-placeholder {
  display: none;
}

.quote-page .product-meta {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.quote-page .product-meta p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.quote-page .product-meta strong {
  color: var(--gold);
}

.quote-page .search-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.quote-page .term-tag {
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.quote-page .report-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  margin: 16px 0;
}

.quote-page .report-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.quote-page .report-table th,
.quote-page .report-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.quote-page .report-table th {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.quote-page .report-table td {
  color: var(--text-light);
}

.quote-page .report-table th.num,
.quote-page .report-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.quote-page .report-table th:nth-child(1),
.quote-page .report-table td:nth-child(1) { width: 22%; }
.quote-page .report-table th:nth-child(2),
.quote-page .report-table td:nth-child(2) { width: 18%; }
.quote-page .report-table th:nth-child(3),
.quote-page .report-table td:nth-child(3) { width: 25%; }
.quote-page .report-table th:nth-child(4),
.quote-page .report-table td:nth-child(4) { width: 18%; }
.quote-page .report-table th:nth-child(5),
.quote-page .report-table td:nth-child(5) { width: 17%; }

.quote-page .verdict-box {
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.08);
  border-radius: 0 8px 8px 0;
}

.quote-page .verdict-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

.quote-page .competitor-list {
  margin-top: 16px;
}

.quote-page .competitor-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.quote-page .competitor-item:last-child {
  border-bottom: none;
}

.quote-page .competitor-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.quote-page .competitor-info {
  flex: 1;
  min-width: 0;
}

.quote-page .competitor-title {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quote-page .competitor-meta {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.quote-page .competitor-price {
  color: var(--gold);
  font-weight: 700;
}

.quote-page .competitor-link {
  flex-shrink: 0;
  align-self: center;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.quote-page .competitor-link:hover {
  background: var(--gold);
  color: var(--black);
}

.quote-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.quote-page .cta-secondary {
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}

.quote-page .cta-secondary:hover {
  background: var(--gold);
  color: var(--black);
}

.quote-page .progress-steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.quote-page .progress-steps li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.quote-page .progress-steps li.is-done {
  color: var(--gold);
}

.quote-page .progress-steps li.is-active {
  color: var(--text-light);
  font-weight: 600;
}

.quote-page .common-words {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.quote-page .common-words span {
  color: var(--gold);
}

.quote-page .quote-main > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .quote-page .quote-main {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding-right: 16px;
    padding-left: 16px;
  }

  .quote-page .result-card {
    min-width: 0;
    padding: 20px 16px;
  }

  .quote-page .report-table-wrap {
    margin: 14px 0 22px;
    overflow: visible;
  }

  .quote-page .report-table,
  .quote-page .report-table tbody,
  .quote-page .report-table tr,
  .quote-page .report-table td {
    display: block;
    width: 100%;
  }

  .quote-page .report-table {
    table-layout: auto;
  }

  .quote-page .report-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .quote-page .report-table tbody {
    display: grid;
    gap: 12px;
  }

  .quote-page .report-table tr {
    padding: 11px 14px;
    border: 1px solid rgba(21, 26, 24, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.48);
  }

  .quote-page .report-table td,
  .quote-page .report-table td.num {
    display: grid;
    grid-template-columns: minmax(104px, 0.85fr) minmax(0, 1.15fr);
    gap: 14px;
    align-items: baseline;
    padding: 7px 0;
    border: 0;
    text-align: right;
    overflow-wrap: anywhere;
  }

  .quote-page .report-table td::before {
    content: attr(data-label);
    color: #6f5e11;
    font-weight: 700;
    text-align: left;
  }

  .quote-page .report-table th:nth-child(n),
  .quote-page .report-table td:nth-child(n) {
    width: 100%;
  }

  .quote-page .verdict-box p,
  .quote-page .common-words {
    overflow-wrap: anywhere;
  }

  .quote-page .competitor-item {
    flex-wrap: wrap;
  }

  .quote-page .competitor-link,
  .quote-page .cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .quote-page .ai-chat-widget {
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    height: 56px;
    transform: translate(calc(100vw - 80px), 0);
  }

  .quote-page .ai-chat-widget:focus-within {
    transform: translate(calc(100vw - 80px), 0);
  }

  .quote-page .ai-chat-widget.is-open,
  .quote-page .ai-chat-widget.is-open:focus-within {
    height: min(560px, calc(100svh - 88px));
    transform: translate(0, 0);
  }
}
