/* ============================================================
   Hammerprice — VDN Interiors Design Language
   Contemporary luxury, warm earth tones, organic shapes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Forum&family=Marcellus+SC&family=Outfit:wght@300;400;500&display=swap');

/* ----- Custom Properties ----- */
:root {
  --page: #F7F4F0;
  --page-warm: #EDE8E1;
  --ink: #2E2720;
  --ink-soft: #6B6158;
  --ink-faint: #958C82;
  --earth-whisper: #DDD5CB;
  --earth-mid: #9A8474;
  --earth-weight: #4A3728;
  --sage-whisper: #D2D6CD;
  --sage-mid: #7B8572;
  --sage-weight: #3A3F35;
  --bridge: #C2B8AA;
  --bridge-light: #F0EBE4;
  --bridge-deep: #2E2720;
  --card: #FFFFFF;
  --border: #DDD5CB;
  --error: #A05A4A;
  --warning: #B8864E;

  --font-display: 'Forum', serif;
  --font-label: 'Marcellus SC', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 2rem;
    --space-xl: 3.5rem;
}

/* ----- Reset & Base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--page);
}

/* ----- Typography ----- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink);
}

h3 {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  line-height: 1.4;
}

p {
  margin-bottom: 0.75em;
}

a {
  color: var(--earth-mid);
  text-decoration: underline;
  text-decoration-color: var(--earth-whisper);
  text-underline-offset: 0.15em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--earth-weight);
  text-decoration-color: var(--earth-mid);
}

/* ----- Layout ----- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.header h1 {
  margin-bottom: 0.35rem;
}

.header .subtitle {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* ----- Form Elements ----- */
label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 0.75rem 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--earth-whisper);
  outline: none;
  resize: vertical;
  transition: border-color 0.25s ease;
}

textarea::placeholder {
  color: var(--ink-faint);
}

textarea:focus {
  border-bottom-color: var(--earth-mid);
}

select {
  display: block;
  width: 100%;
  padding: 0.65rem 2rem 0.65rem 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--earth-whisper);
  border-radius: 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239A8474' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  transition: border-color 0.25s ease;
}

select:focus {
  border-bottom-color: var(--earth-mid);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--bridge);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--earth-whisper);
  border-color: var(--earth-whisper);
}

.btn:active {
  background: var(--bridge);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--earth-weight);
  color: var(--page);
  border-color: var(--earth-weight);
}

.btn-primary:hover {
  background: var(--bridge-deep);
  border-color: var(--bridge-deep);
  color: var(--page);
}

/* ----- Image Upload ----- */
.upload-zone {
  position: relative;
  padding: 2.5rem 2rem;
  border: 1.5px dashed var(--bridge);
  border-radius: 2px;
  text-align: center;
  color: var(--ink-faint);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.upload-zone:hover {
  border-color: var(--earth-mid);
  background: var(--bridge-light);
}

.upload-zone.dragover {
  border-color: var(--earth-mid);
  background: var(--bridge-light);
  border-style: solid;
}

.thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.thumbnail-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--earth-whisper);
}

.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnail-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--earth-weight);
  color: var(--page);
  border: none;
  border-radius: 50%;
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.thumbnail-item:hover .thumbnail-remove {
  opacity: 1;
}

.crop-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  font-family: var(--font-label);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--earth-mid);
  color: var(--page);
  padding: 1px 5px;
  border-radius: 1px;
}

/* ----- Crop Modal ----- */
.crop-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(46, 39, 32, 0.82);
  backdrop-filter: blur(4px);
}

.crop-modal.active {
  display: flex;
}

.crop-modal-inner {
  background: var(--page);
  padding: 1.5rem;
  border-radius: 2px;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crop-canvas-container {
  position: relative;
  cursor: crosshair;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.crop-canvas-container img {
  display: block;
  max-width: 100%;
  max-height: 65vh;
}

.crop-selection {
  position: absolute;
  border: 2px solid var(--earth-mid);
  background: rgba(154, 132, 116, 0.15);
  pointer-events: none;
}

.crop-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* ----- Options Row ----- */
.options-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ----- Processing State ----- */
.processing {
  margin-top: 2rem;
}

.status {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--earth-mid);
  animation: pulse-glow 1.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

.stream-output {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
  padding: 1rem 0;
  border-top: 1px solid var(--earth-whisper);
}

/* ----- Report: Summary Card ----- */
.summary-card {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-radius: 2px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
}

.item-name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.valuation-range {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* Confidence Badges */
.confidence-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 1px;
  border: 1px solid;
  line-height: 1.4;
}

.confidence-badge.confirmed {
  color: var(--sage-weight);
  background: var(--sage-whisper);
  border-color: var(--sage-mid);
}

.confidence-badge.probable {
  color: var(--earth-weight);
  background: var(--bridge-light);
  border-color: var(--bridge);
}

.confidence-badge.plausible {
  color: var(--earth-mid);
  background: var(--page-warm);
  border-color: var(--earth-whisper);
}

.confidence-badge.unsubstantiated {
  color: var(--ink-faint);
  background: var(--page);
  border-color: var(--earth-whisper);
}

.confidence-badge.reproduction {
  color: var(--error);
  background: #F5EDEB;
  border-color: var(--error);
}

.confidence-badge.low-confidence {
  color: var(--warning);
  background: #F6F0E7;
  border-color: var(--warning);
}

.confidence-badge.insufficient {
  color: var(--ink-faint);
  background: var(--page);
  border-color: var(--earth-whisper);
}

/* ----- Expandable Report Sections ----- */
.report-section {
  border-top: 1px solid var(--earth-whisper);
}

.section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  text-align: left;
  transition: color 0.2s ease;
}

.section-toggle:hover {
  color: var(--ink);
}

.section-toggle .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.report-section.open .section-toggle .chevron {
  transform: rotate(-135deg);
}

.section-content {
  display: none;
  padding-bottom: 1.25rem;
}

.report-section.open .section-content {
  display: block;
}

/* ----- Comp Table ----- */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.comp-table th {
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 400;
  text-align: left;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--earth-whisper);
  white-space: nowrap;
}

.comp-table td {
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--bridge-light);
  color: var(--ink-soft);
  vertical-align: top;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table .price {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
  white-space: nowrap;
}

.tier-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border: 1px solid var(--earth-whisper);
  border-radius: 1px;
  color: var(--ink-faint);
  white-space: nowrap;
}

.stale {
  color: var(--warning);
  font-style: italic;
}

/* ----- Chat ----- */
.chat-container {
  margin-top: 2rem;
  border-top: 1px solid var(--earth-whisper);
  padding-top: 1.5rem;
}

.chat-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-input-row textarea {
  flex: 1;
  min-height: 48px;
  padding: 0.6rem 0;
}

.chat-input-row .btn {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 1px;
}

/* ----- Validation Warnings ----- */
.validation-warnings {
  background: var(--bridge-light);
  border: 1px solid var(--warning);
  border-radius: 2px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.validation-warnings h3 {
  color: var(--warning);
  margin-bottom: 0.5rem;
}

/* ----- Markdown Content ----- */
.markdown-content h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.markdown-content h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.markdown-content p {
  margin-bottom: 0.75em;
  color: var(--ink-soft);
}

.markdown-content ul,
.markdown-content ol {
  margin-bottom: 0.75em;
  padding-left: 1.4em;
  color: var(--ink-soft);
}

.markdown-content li {
  margin-bottom: 0.3em;
}

.markdown-content li::marker {
  color: var(--earth-mid);
}

.markdown-content a {
  color: var(--earth-mid);
  text-decoration: underline;
  text-decoration-color: var(--earth-whisper);
  text-underline-offset: 0.15em;
}

.markdown-content a:hover {
  color: var(--earth-weight);
  text-decoration-color: var(--earth-mid);
}

.markdown-content strong {
  font-weight: 500;
  color: var(--ink);
}

/* ----- Responsive: 768px ----- */
@media (max-width: 768px) {
  .container {
    padding: 1.25rem 1rem;
  }

  h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.15rem, 3vw, 1.5rem);
  }

  .options-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .chat-input-row {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-input-row .btn {
    align-self: flex-end;
  }

  .summary-card {
    padding: 1.25rem 1rem;
  }

  .valuation-range {
    font-size: 1.2rem;
  }

  .comp-table {
    font-size: 0.8rem;
  }

  .comp-table th,
  .comp-table td {
    padding: 0.5rem 0.5rem 0.5rem 0;
  }
}

/* ----- Utility ----- */
.hidden {
  display: none !important;
}

/* ============================================================
   Rich Report — Christie's Auction House Quality
   Premium gallery profile rendering
   ============================================================ */

/* ----- Report Container — Enclosed Premium Frame ----- */
.rr-report {
  position: relative;
  background: var(--page);
  border: 1px solid var(--earth-whisper);
  border-radius: 6px;
  box-shadow:
    0 8px 40px rgba(46, 39, 32, 0.10),
    0 2px 12px rgba(46, 39, 32, 0.06),
    0 0 0 1px rgba(46, 39, 32, 0.03);
  overflow: hidden;
  margin-top: 1.5rem;
}

/* Subtle grain texture overlay like VDN */
.rr-report::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.028;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
}

/* Alternating section backgrounds for visual rhythm */
.rr-hero {
  background: var(--page-warm);
}

.rr-story {
  background: var(--page);
}

.rr-valuation {
  background: var(--page-warm);
}

.rr-market-data {
  background: var(--page);
}

.rr-attribution {
  background: var(--page-warm);
}

.rr-open-questions {
  background: var(--page);
}

.rr-extra-section {
  background: var(--page-warm);
}

/* ----- Section Spacing & Rules ----- */
.rr-section-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--earth-mid);
  margin-bottom: 1.75rem;
  opacity: 0.6;
}

/* Centered horizontal rule between major sections */
.rr-section-divider {
  width: 40px;
  height: 1px;
  background: var(--earth-mid);
  margin: 0 auto;
  opacity: 0.5;
}

.rr-story,
.rr-valuation,
.rr-market-data,
.rr-attribution,
.rr-open-questions,
.rr-extra-section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 5rem);
}

/* Hero — monumental full-bleed warm section */
.rr-hero {
  padding: clamp(3rem, 6vw, 5rem) clamp(2.5rem, 5vw, 5rem) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--earth-whisper);
}

/* Decorative thin line between hero and story */
.rr-hero::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--earth-mid);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  margin-left: auto;
  margin-right: auto;
}

/* ----- Section Labels — larger, more letter-spacing, decorative line after ----- */
.rr-section-label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  line-height: 1.4;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Decorative line extending after section labels */
.rr-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--earth-whisper);
  max-width: 120px;
}

/* Prevent decorative line on toggle labels (Open Questions) */
.rr-section-label-toggle::after {
  display: none;
}

.rr-subsection-label {
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--earth-mid);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

/* ----- Section dividers ----- */
.rr-story,
.rr-valuation,
.rr-market-data,
.rr-attribution,
.rr-open-questions,
.rr-extra-section {
  border-top: 1px solid var(--earth-whisper);
}

/* ----- Hero: Item Name — DOMINATES the page ----- */
.rr-item-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-top: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.rr-hero .confidence-badge {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  padding: 5px 16px;
}

/* ----- Image Gallery ----- */
.rr-gallery-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--bridge) transparent;
}

.rr-gallery-scroll::-webkit-scrollbar {
  height: 4px;
}

.rr-gallery-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.rr-gallery-scroll::-webkit-scrollbar-thumb {
  background: var(--bridge);
  border-radius: 2px;
}

.rr-gallery-item {
  flex: 0 0 auto;
  width: clamp(220px, 42vw, 360px);
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--page);
  border: 1px solid var(--earth-whisper);
  box-shadow: 0 2px 12px rgba(46, 39, 32, 0.06);
}

.rr-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.rr-gallery-item:hover img {
  transform: scale(1.04);
}

.rr-gallery-crop {
  position: relative;
}

.rr-gallery-crop::after {
  content: "DETAIL";
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-label);
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--earth-mid);
  color: var(--page);
  padding: 3px 10px;
  border-radius: 2px;
}

/* ----- Story / Prose — magazine article feel ----- */
.rr-prose {
  max-width: 660px;
}

.rr-prose p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
}

.rr-prose p:last-child {
  margin-bottom: 0;
}

.rr-prose strong {
  font-weight: 500;
  color: var(--ink);
}

.rr-prose a {
  color: var(--earth-mid);
  text-decoration: underline;
  text-decoration-color: var(--earth-whisper);
  text-underline-offset: 0.18em;
}

.rr-prose a:hover {
  color: var(--earth-weight);
  text-decoration-color: var(--earth-mid);
}

/* Dramatic drop cap — editorial / magazine feel */
.rr-story .rr-prose p:first-child::first-letter {
  font-family: var(--font-display);
  font-size: 4em;
  float: left;
  line-height: 0.78;
  margin-right: 0.1em;
  margin-top: 0.06em;
  color: var(--earth-weight);
  padding-right: 0.04em;
}

/* ----- Valuation Cards — key takeaway, visual weight ----- */
.rr-valuation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.rr-valuation-card {
  background: var(--page);
  border: 1px solid var(--earth-whisper);
  border-left: 3px solid var(--earth-mid);
  border-radius: 4px;
  padding: 2rem 2.25rem;
  box-shadow:
    0 4px 20px rgba(46, 39, 32, 0.07),
    0 1px 6px rgba(46, 39, 32, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.rr-valuation-card:hover {
  border-color: var(--bridge);
  border-left-color: var(--earth-weight);
  box-shadow:
    0 8px 32px rgba(46, 39, 32, 0.10),
    0 2px 8px rgba(46, 39, 32, 0.06);
  transform: translateY(-1px);
}

.rr-valuation-channel {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
}

.rr-valuation-price {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--earth-weight);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.rr-valuation-notes {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-faint);
  border-top: 1px solid var(--earth-whisper);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

/* ----- Market Data: Comp Cards — mini auction lot cards ----- */
.rr-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.rr-comp-card {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-left: 3px solid var(--bridge);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(46, 39, 32, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.rr-comp-card > *:not(.rr-comp-image) {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.rr-comp-card > *:first-child:not(.rr-comp-image) {
  padding-top: 1.5rem;
}

.rr-comp-card > *:last-child {
  padding-bottom: 1.5rem;
}

.rr-comp-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--earth-whisper);
}

.rr-comp-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.rr-comp-card:hover .rr-comp-image img {
  transform: scale(1.04);
}

.rr-comp-card .rr-comp-title {
  padding-top: 1.25rem;
}

.rr-comp-card:hover {
  border-color: var(--bridge);
  border-left-color: var(--earth-mid);
  box-shadow:
    0 6px 24px rgba(46, 39, 32, 0.08),
    0 2px 8px rgba(46, 39, 32, 0.05);
  transform: translateY(-1px);
}

.rr-comp-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.rr-comp-title strong {
  font-weight: 500;
}

.rr-comp-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--earth-weight);
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
}

.rr-comp-meta {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.rr-comp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.rr-pill {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 10px;
  line-height: 1.5;
}

.rr-pill-tier {
  color: var(--earth-weight);
  background: var(--bridge-light);
  border: 1px solid var(--bridge);
}

.rr-pill-condition {
  color: var(--sage-weight);
  background: var(--sage-whisper);
  border: 1px solid var(--sage-mid);
}

.rr-comp-source {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--earth-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--earth-whisper);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rr-comp-source:hover {
  color: var(--earth-weight);
  border-color: var(--earth-mid);
}

/* ----- Attribution ----- */
.rr-attribution-badge-row {
  margin-bottom: 1.5rem;
}

.rr-attribution .confidence-badge {
  font-size: 0.7rem;
  padding: 5px 16px;
}

/* ----- Open Questions: Collapsible ----- */
.rr-collapsible {
  cursor: default;
}

.rr-section-label-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  user-select: none;
  -webkit-user-select: none;
}

.rr-section-label-toggle:hover {
  color: var(--ink-soft);
}

.rr-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.rr-collapsible[open] .rr-chevron {
  transform: rotate(-135deg);
}

.rr-questions-content {
  padding-top: 0.75rem;
}

.rr-questions-list {
  list-style: none;
  padding: 0;
}

.rr-questions-list li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-faint);
  margin-bottom: 0.75em;
}

.rr-questions-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bridge);
}

.rr-questions-list li strong {
  font-weight: 500;
  color: var(--ink-soft);
}

.rr-questions-list li a {
  color: var(--earth-mid);
}

/* ----- Follow-up inline rendering ----- */
.follow-up-question {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-left: 3px solid var(--bridge);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(46, 39, 32, 0.04);
}

.follow-up-question strong {
  font-weight: 500;
  color: var(--earth-weight);
}

.follow-up-response {
  padding: 1rem 0 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.follow-up-processing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0;
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-faint);
}

/* ----- Responsive adjustments for rich report ----- */
@media (max-width: 768px) {
  .rr-story,
  .rr-valuation,
  .rr-market-data,
  .rr-attribution,
  .rr-open-questions,
  .rr-extra-section {
    padding: 2.5rem 1.5rem;
  }

  .rr-hero {
    padding: 2rem 1.5rem 2rem;
  }

  .rr-item-name {
    font-size: clamp(1.7rem, 5vw, 2.4rem);
    margin-top: 1.25rem;
  }

  .rr-gallery-item {
    width: clamp(180px, 65vw, 300px);
  }

  .rr-valuation-grid {
    grid-template-columns: 1fr;
  }

  .rr-comp-grid {
    grid-template-columns: 1fr;
  }

  .rr-valuation-price {
    font-size: 1.6rem;
  }

  .rr-story .rr-prose p:first-child::first-letter {
    font-size: 3em;
  }

  .rr-section-label::after {
    max-width: 60px;
  }

  .rr-price-hero-range { font-size: 2rem; }
  .rr-channel-grid { font-size: 0.9rem; }
  .rr-channel-row { flex-wrap: wrap; gap: 0.25rem; }
  .rr-channel-time { min-width: auto; text-align: left; flex-basis: 100%; font-size: 0.7rem; }
  .rr-comp-summary { flex-wrap: wrap; gap: 1rem; }
  .rr-comp-stat-value { font-size: 1.1rem; }
  /* Reduce internal padding on cards for mobile — less sparse */
  .rr-valuation-card { padding: 1.25rem 1.25rem; }
  .rr-comp-card > *:not(.rr-comp-image) { padding-left: 1rem; padding-right: 1rem; }
  .rr-comp-card > *:first-child:not(.rr-comp-image) { padding-top: 1rem; }
  .rr-comp-card > *:last-child { padding-bottom: 1rem; }
  /* Smaller comp card images on mobile */
  .rr-comp-image { aspect-ratio: 3 / 2; }
  /* Larger touch targets */
  .rr-comp-source { padding: 8px 0; display: block; }
}

/* ============================================================
   Final Polish — Staggered Reveals & Micro-Interactions
   ============================================================ */

/* ----- Staggered Section Reveal ----- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rr-hero,
.rr-story,
.rr-attribution,
.rr-valuation,
.rr-market-data,
.rr-open-questions,
.rr-extra-section {
  animation: revealUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rr-hero { animation-delay: 0s; }
.rr-story { animation-delay: 0.08s; }
.rr-attribution { animation-delay: 0.16s; }
.rr-valuation { animation-delay: 0.24s; }
.rr-market-data { animation-delay: 0.32s; }
.rr-open-questions { animation-delay: 0.40s; }
.rr-extra-section { animation-delay: 0.48s; }

/* ----- Valuation card stagger ----- */
.rr-valuation-card {
  animation: revealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rr-valuation-card:nth-child(1) { animation-delay: 0.30s; }
.rr-valuation-card:nth-child(2) { animation-delay: 0.38s; }
.rr-valuation-card:nth-child(3) { animation-delay: 0.46s; }

/* ----- Comp card stagger ----- */
.rr-comp-card {
  animation: revealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rr-comp-card:nth-child(1) { animation-delay: 0.36s; }
.rr-comp-card:nth-child(2) { animation-delay: 0.42s; }
.rr-comp-card:nth-child(3) { animation-delay: 0.48s; }
.rr-comp-card:nth-child(4) { animation-delay: 0.54s; }
.rr-comp-card:nth-child(5) { animation-delay: 0.60s; }

/* ----- Gallery image stagger ----- */
.rr-gallery-item {
  animation: revealUp 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.rr-gallery-item:nth-child(1) { animation-delay: 0.05s; }
.rr-gallery-item:nth-child(2) { animation-delay: 0.12s; }
.rr-gallery-item:nth-child(3) { animation-delay: 0.19s; }
.rr-gallery-item:nth-child(4) { animation-delay: 0.26s; }

/* ----- Decorative elements ----- */
.rr-hero-divider {
  width: 60px;
  height: 1px;
  background: var(--earth-mid);
  margin: 1.25rem 0;
}

.rr-decorative-line {
  width: 60px;
  height: 1px;
  background: var(--earth-mid);
  margin: 1rem 0 1.5rem;
}

.rr-hero-subtitle {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

/* ----- Valuation highlight (bottom line) ----- */
.rr-valuation-highlight {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  background: var(--page);
  border-left: 3px solid var(--sage-mid);
  border-radius: 0 4px 4px 0;
}

.rr-valuation-highlight p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

/* ----- Attribution badge label ----- */
.rr-attribution-badge-label {
  font-family: var(--font-label);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-right: 0.75rem;
  vertical-align: middle;
}

.confidence-badge-prominent {
  font-size: 0.72rem;
  padding: 5px 16px;
}

/* ----- Valuation methodology note ----- */
.rr-valuation-methodology {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 0.35rem;
}

/* ----- Processing state refinement ----- */
.stream-output {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-height: 60vh;
  overflow-y: auto;
}

/* ----- Link hover refinement ----- */
.rr-comp-source {
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.rr-comp-source:hover {
  transform: translateX(2px);
}

/* ----- Follow-up chat area ----- */
.chat-container {
  margin-top: 2rem;
  padding-top: 2rem;
}

/* ----- Reduce motion for accessibility ----- */
@media (prefers-reduced-motion: reduce) {
  .rr-hero, .rr-story, .rr-attribution, .rr-valuation,
  .rr-market-data, .rr-open-questions, .rr-extra-section,
  .rr-valuation-card, .rr-comp-card, .rr-gallery-item {
    animation: none;
  }
  .rr-gallery-item:hover img,
  .rr-comp-card:hover {
    transform: none;
  }
  .rr-price-hero {
    animation: none;
  }
}

/* ============================================================
   Pricing Display — Hero, Channel Grid, Pills, Stats, Warnings
   ============================================================ */

/* ----- Hero Price Block ----- */
.rr-price-hero {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem);
  background: var(--page);
  border-top: 1px solid var(--earth-whisper);
}

.rr-price-hero-range {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--earth-weight);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.rr-price-hero-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.25rem;
}

.rr-price-hero-confidence {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

/* ----- Channel Grid ----- */
.rr-channel-grid {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.rr-channel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--earth-whisper);
}

.rr-channel-row:last-child {
  border-bottom: none;
}

.rr-channel-name {
  font-family: var(--font-label);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  flex: 1;
}

.rr-channel-range {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--earth-weight);
  flex: 0 0 auto;
  margin: 0 1rem;
}

.rr-channel-time {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--ink-faint);
  flex: 0 0 auto;
  min-width: 80px;
  text-align: right;
}

/* ----- Sale Type Pills ----- */
.rr-pill-sold {
  color: var(--sage-weight);
  background: var(--sage-whisper);
  border: 1px solid var(--sage-mid);
}

.rr-pill-listed {
  color: var(--warning);
  background: #FDF6EF;
  border: 1px solid var(--warning);
}

.rr-pill-hammer {
  color: var(--earth-weight);
  background: var(--bridge-light);
  border: 1px solid var(--earth-mid);
}

/* ----- Summary Stats Bar ----- */
.rr-comp-summary {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--earth-whisper);
}

.rr-comp-stat {
  text-align: center;
}

.rr-comp-stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--earth-weight);
  letter-spacing: -0.01em;
}

.rr-comp-stat-label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}

/* ----- Thin Market Warning ----- */
.rr-thin-market {
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #FDF6EF;
  border-left: 3px solid var(--warning);
  border-radius: 0 3px 3px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.85rem;
  color: var(--warning);
  font-style: italic;
}

/* ----- Comp Table (3+ comps) ----- */
.rr-comp-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.rr-comp-table th { font-family: var(--font-label); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--bridge); }
.rr-comp-table td { padding: 0.5rem; border-bottom: 1px solid var(--earth-whisper); vertical-align: top; }
.rr-comp-table .price { font-family: var(--font-mono); font-weight: 500; white-space: nowrap; color: var(--earth-weight); }
.rr-comp-table a { color: var(--earth-mid); text-decoration: underline; }

/* ----- Print Stylesheet ----- */
@media print {
  .header, #input-section, #processing-section, .chat-container,
  #new-appraisal-btn, #export-btn, .crop-modal { display: none !important; }
  .rr-report { box-shadow: none; border: none; }
  .hidden { display: none !important; }
  #report-section { display: block !important; }
  #report-section .hidden { display: block !important; }
  body { background: white; }
  /* Ensure animations don't hide content */
  * { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ----- Price Hero Animation ----- */
.rr-price-hero {
  animation: revealUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.04s;
}

/* ------------------------------------------------------------------ */
/*  Report Tabs                                                        */
/* ------------------------------------------------------------------ */

.report-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-md);
  border-bottom: 1px solid var(--bridge);
}

.report-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-xs) var(--space-md);
  font-family: var(--ff-label);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bridge);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.report-tab:hover {
  color: var(--ink);
}

.report-tab.active {
  color: var(--ink);
  border-bottom-color: var(--earth-mid);
}

.report-tab-panel.hidden {
  display: none;
}

/* ------------------------------------------------------------------ */
/*  Sell-Side: Pricing Strategy Cards                                  */
/* ------------------------------------------------------------------ */

.ss-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.ss-pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--space-md);
}

.ss-platform-name {
  font-family: var(--ff-label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth-mid);
  margin-bottom: var(--space-xs);
}

.ss-listing-type {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: var(--space-sm);
}

.ss-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-xs);
}

.ss-rec-price {
  font-family: var(--ff-heading);
  font-size: 1.6rem;
  color: var(--ink);
}

.ss-offer-floor {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.ss-timeframe {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--sage-mid);
  margin-bottom: var(--space-sm);
}

.ss-rationale {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.ss-confidence {
  display: inline-block;
  font-family: var(--ff-label);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-top: var(--space-sm);
}

.ss-confidence-high { background: #E8F0E4; color: #4A6741; }
.ss-confidence-moderate { background: #F0EBE1; color: #7B6B4F; }
.ss-confidence-low { background: #F0E4E4; color: #7B4F4F; }

/* ------------------------------------------------------------------ */
/*  Sell-Side: Listing Templates                                       */
/* ------------------------------------------------------------------ */

.ss-listings {
  margin-bottom: var(--space-lg);
}

.ss-listing-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.ss-listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border);
}

.ss-listing-platform {
  font-family: var(--ff-label);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--earth-mid);
}

.ss-copy-btn {
  background: none;
  border: 1px solid var(--bridge);
  border-radius: 4px;
  padding: 4px 12px;
  font-family: var(--ff-label);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.ss-copy-btn:hover {
  border-color: var(--earth-mid);
  color: var(--ink);
}

.ss-copy-btn.copied {
  border-color: var(--sage-mid);
  color: var(--sage-mid);
}

.ss-listing-body {
  padding: var(--space-md);
}

.ss-listing-title {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: var(--space-xs);
}

.ss-listing-desc {
  font-family: var(--ff-body);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.ss-listing-meta {
  margin-top: var(--space-sm);
  font-family: var(--ff-body);
  font-size: 0.8rem;
  color: var(--bridge);
}

.ss-listing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-xs);
}

.ss-tag {
  background: var(--page);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------ */
/*  Sell-Side: Comp Justification                                      */
/* ------------------------------------------------------------------ */

.ss-justification {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--space-md);
}

.ss-justification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.ss-justification-price {
  font-family: var(--ff-heading);
  font-size: 1.3rem;
  color: var(--ink);
}

.ss-justification-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--ff-body);
  font-size: 0.85rem;
}

.ss-justification-row:last-child {
  border-bottom: none;
}

.ss-justification-label {
  color: var(--ink-soft);
}

.ss-justification-value {
  color: var(--ink);
  text-align: right;
  max-width: 60%;
}

/* ============================================================
   Landing Page — Hammerprice
   ============================================================ */

/* ----- Landing body override ----- */
.landing-body {
  overflow-x: hidden;
}

/* ----- Nav ----- */
.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--page);
  border-bottom: 1px solid var(--earth-whisper);
}

.landing-nav-wordmark {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav-links a {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}

.landing-nav-cta {
  color: var(--earth-mid) !important;
  border-bottom: 1px solid var(--earth-whisper);
  padding-bottom: 1px;
}

.landing-nav-cta:hover {
  color: var(--earth-weight) !important;
  border-bottom-color: var(--earth-mid);
}

/* ----- Hero ----- */
.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 85vh;
  padding: 5rem 48px;
  gap: 4rem;
  overflow: hidden;
}

/* Organic blob — behind left content */
.landing-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: -8%;
  width: 55%;
  height: 75%;
  background: var(--bridge-light);
  opacity: 0.55;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  pointer-events: none;
  z-index: 0;
}

/* Organic blob — behind right preview cards */
.landing-hero::after {
  content: "";
  position: absolute;
  bottom: -5%;
  right: -5%;
  width: 48%;
  height: 65%;
  background: var(--sage-whisper);
  opacity: 0.30;
  border-radius: 58% 42% 45% 55% / 52% 58% 42% 48%;
  pointer-events: none;
  z-index: 0;
}

.hero-left {
  flex: 1;
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-right {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--earth-mid);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-tagline em {
  font-style: italic;
  color: var(--earth-mid);
}

.hero-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 480px;
  margin-bottom: 2rem;
}

/* ----- CTA Mode Buttons ----- */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.cta-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Primary: solid ink */
.cta-mode-btn-primary {
  background: var(--ink);
  color: var(--page);
  border-color: var(--ink);
}

.cta-mode-btn-primary:hover {
  background: var(--earth-weight);
  border-color: var(--earth-weight);
  color: var(--page);
}

/* Earth-mid border (I'm Selling) */
.cta-mode-btn-earth {
  background: transparent;
  color: var(--earth-mid);
  border-color: var(--earth-mid);
}

.cta-mode-btn-earth:hover {
  background: var(--bridge-light);
  color: var(--earth-weight);
  border-color: var(--earth-weight);
}

/* Sage-mid border (I'm Looking) */
.cta-mode-btn-sage {
  background: transparent;
  color: var(--sage-mid);
  border-color: var(--sage-mid);
}

.cta-mode-btn-sage:hover {
  background: var(--sage-whisper);
  color: var(--sage-weight);
  border-color: var(--sage-weight);
}

/* Outline light (CTA section on dark bg) */
.cta-mode-btn-outline-light {
  background: transparent;
  color: var(--bridge);
  border-color: var(--bridge);
}

.cta-mode-btn-outline-light:hover {
  background: rgba(194, 184, 170, 0.15);
  color: var(--page);
  border-color: var(--page);
}

/* Outline sage (CTA section on dark bg) */
.cta-mode-btn-outline-sage {
  background: transparent;
  color: var(--sage-mid);
  border-color: var(--sage-mid);
}

.cta-mode-btn-outline-sage:hover {
  background: rgba(123, 133, 114, 0.15);
  color: var(--sage-whisper);
  border-color: var(--sage-whisper);
}

/* ----- Hero Stats ----- */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--earth-whisper);
  padding-top: 1.5rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--earth-weight);
  line-height: 1.1;
}

.hero-stat-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

/* ----- Preview Cards ----- */
.preview-stack {
  position: relative;
  width: 340px;
  height: 420px;
}

.preview-card {
  position: absolute;
  background: white;
  border: 1px solid var(--earth-whisper);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  box-shadow:
    0 8px 32px rgba(46, 39, 32, 0.10),
    0 2px 10px rgba(46, 39, 32, 0.06);
}

.preview-card-back {
  top: 0;
  left: -16px;
  width: 300px;
  transform: rotate(-2.5deg);
  z-index: 1;
  opacity: 0.72;
}

.preview-card-front {
  top: 36px;
  left: 16px;
  width: 320px;
  transform: rotate(1.5deg);
  z-index: 2;
}

.preview-card-label {
  font-family: var(--font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.preview-card-item {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.preview-card-era {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.preview-card-range {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--earth-weight);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.preview-card-comps {
  border-top: 1px solid var(--earth-whisper);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.preview-comp-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.preview-comp-source {
  font-family: var(--font-label);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--earth-mid);
  flex: 0 0 52px;
}

.preview-comp-detail {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--ink-faint);
  flex: 1;
}

.preview-comp-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
  white-space: nowrap;
}

/* ----- Shared Landing Section ----- */
.landing-section {
  padding: 80px 48px;
  position: relative;
}

.landing-section-warm {
  background: var(--page-warm);
}

.section-divider {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--earth-mid);
  border: none;
  margin: 0 auto 2.5rem;
  opacity: 0.6;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.section-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 3rem;
}

/* ----- Steps ----- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  text-align: center;
  position: relative;
}

/* Connector lines between steps */
.step-connector::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -1rem;
  right: -1rem;
  height: 1px;
  background: var(--earth-whisper);
  z-index: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--page);
  border: 1.5px solid var(--earth-mid);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--earth-mid);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.step-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ----- Philosophy ----- */
.philosophy-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
  color: var(--earth-mid);
  border-left: 3px solid var(--earth-mid);
  padding-left: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 680px;
}

.philosophy-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.philosophy-principle {
  /* no extra styles needed */
}

.principle-title {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.principle-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ----- CTA Section ----- */
.cta-section {
  background: var(--ink);
  padding: 80px 48px;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--page);
  margin-bottom: 0.75rem;
}

.cta-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--bridge);
  margin-bottom: 2rem;
}

.cta-mode-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cta-email-row {
  display: flex;
  justify-content: center;
}

.landing-email {
  width: 100%;
  max-width: 360px;
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--page);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--bridge);
  outline: none;
  text-align: center;
  transition: border-color 0.25s ease;
}

.landing-email::placeholder {
  color: var(--bridge);
}

.landing-email:focus {
  border-bottom-color: var(--earth-mid);
}

/* ----- Footer ----- */
.landing-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.25rem 48px;
  border-top: 1px solid var(--earth-whisper);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.footer-sep {
  color: var(--bridge);
}

.landing-footer a {
  color: var(--ink-faint);
  text-decoration: none;
}

.landing-footer a:hover {
  color: var(--earth-mid);
}

.footer-links {
  margin-left: auto;
  display: flex;
  gap: 1.5rem;
}

/* ----- Landing Responsive ----- */
@media (max-width: 900px) {
  .landing-nav {
    padding: 16px 24px;
  }

  .landing-hero {
    flex-direction: column;
    min-height: auto;
    padding: 3rem 24px;
    gap: 3rem;
    align-items: flex-start;
  }

  .landing-hero::before,
  .landing-hero::after {
    display: none;
  }

  .hero-right {
    width: 100%;
    justify-content: center;
  }

  .preview-stack {
    width: 100%;
    max-width: 340px;
    height: 380px;
  }

  .landing-section {
    padding: 56px 24px;
  }

  .cta-section {
    padding: 56px 24px;
  }

  .landing-footer {
    padding: 1.25rem 24px;
    gap: 0.4rem 0.8rem;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .landing-nav-links a:not(.landing-nav-cta) {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .step-connector::before {
    display: none;
  }

  .philosophy-columns {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .preview-stack {
    max-width: 300px;
    height: 360px;
  }

  .preview-card-front {
    width: 285px;
  }

  .preview-card-back {
    width: 265px;
  }
}

/* ============================================================
   Analysis Component Classes — used by app.js renderers
   ============================================================ */

/* ----- Deal Badge ----- */
.deal-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  border: 1.5px solid;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.deal-badge-strong-buy {
  color: #2D6A4F;
  background: #D8F3DC;
  border-color: #52B788;
}

.deal-badge-fair-deal {
  color: #1D4E89;
  background: #D6EAF8;
  border-color: #5B9BD5;
}

.deal-badge-at-market {
  color: var(--ink-soft);
  background: var(--page-warm);
  border-color: var(--bridge);
}

.deal-badge-overpriced {
  color: #7B2D2D;
  background: #FAE2E2;
  border-color: #C0392B;
}

.deal-badge-insufficient-data {
  color: var(--ink-faint);
  background: var(--page);
  border-color: var(--earth-whisper);
}

.deal-score-text {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ----- Profit Table ----- */
.profit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.profit-table th {
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 400;
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--earth-whisper);
}

.profit-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--bridge-light);
  color: var(--ink-soft);
  vertical-align: top;
}

.profit-table tr:last-child td {
  border-bottom: none;
}

.profit-positive {
  color: #2D6A4F;
  font-family: var(--font-mono);
}

.profit-negative {
  color: #C0392B;
  font-family: var(--font-mono);
}

/* ----- Risk List ----- */
.risk-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.risk-list li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--warning);
  margin-bottom: 0.4em;
}

.risk-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-label);
  font-size: 0.65rem;
  color: var(--warning);
  font-weight: 500;
}

/* ----- Restoration Card ----- */
.restoration-card {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.restoration-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--bridge-light);
  font-size: 0.88rem;
}

.restoration-row:last-of-type {
  border-bottom: none;
}

.restoration-verdict {
  font-family: var(--font-label);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-top: 0.75rem;
}

.restoration-rationale {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 0.35rem;
}

/* ----- Worth Badges ----- */
.worth-yes {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
  color: #2D6A4F;
  background: #D8F3DC;
  border: 1px solid #52B788;
}

.worth-no {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
  color: #7B2D2D;
  background: #FAE2E2;
  border: 1px solid #C0392B;
}

/* ----- Price Speed Grid (Sell-Side) ----- */
.price-speed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.price-speed-card {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-radius: 4px;
  padding: 1.25rem;
}

.price-speed-price {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--earth-weight);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.price-speed-time {
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-mid);
  margin-bottom: 0.75rem;
}

.price-speed-rationale {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* ----- Net Proceeds Table ----- */
.net-proceeds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
}

.net-proceeds-table th {
  font-family: var(--font-label);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  font-weight: 400;
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--earth-whisper);
}

.net-proceeds-table td {
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--bridge-light);
  color: var(--ink-soft);
}

.net-proceeds-table tr:last-child td {
  border-bottom: none;
}

.net-keep {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
}

.net-proceeds-footnote {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 0.4rem;
}

/* ----- Discovery: Identification Card ----- */
.discovery-id-card {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ----- Discovery: Checklist ----- */
.discovery-checklist {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.discovery-checklist li {
  position: relative;
  padding-left: 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0.4em;
}

.discovery-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage-mid);
  font-size: 0.75rem;
}

/* ----- Discovery: Reproduction Warning ----- */
.discovery-repro-warning {
  background: #F5EDEB;
  border: 1.5px solid var(--error);
  border-radius: 3px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--error);
}

/* ----- Active Listing Grid ----- */
.active-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.active-listing-card {
  background: var(--page);
  border: 1px solid var(--earth-whisper);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

.active-listing-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
  overflow-wrap: break-word;
}

.active-listing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.3rem 0;
}

.active-listing-price {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--earth-weight);
  letter-spacing: -0.01em;
}

.active-listing-shipping {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.active-listing-note {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-style: italic;
}

.active-listing-link {
  font-family: var(--font-label);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--earth-mid);
  text-decoration: none;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
}

.active-listing-link:hover {
  color: var(--earth-weight);
}

/* ----- Search Tips ----- */
.search-tips {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 1rem;
}

.search-tips li {
  position: relative;
  padding-left: 1.25rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0.4em;
}

.search-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--earth-mid);
  font-size: 0.75rem;
}

/* ----- Budget Card ----- */
.budget-card {
  background: var(--page-warm);
  border: 1px solid var(--earth-whisper);
  border-left: 3px solid var(--sage-mid);
  border-radius: 0 4px 4px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ----- Analysis responsive ----- */
@media (max-width: 640px) {
  .price-speed-grid {
    grid-template-columns: 1fr;
  }

  .active-listing-grid {
    grid-template-columns: 1fr;
  }
}
