:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #FAFAFC;
  --border: #E5E5EA;
  --border-strong: #D7D7DC;
  --text: #1D1D1F;
  --text-muted: #6E6E73;
  --text-faint: #98989F;

  --sage: #A8C5A0;
  --sage-bg: #E8F0E5;
  --peach: #F4C2A1;
  --peach-bg: #FAE7D8;
  --lavender: #C7BFD4;
  --lavender-bg: #ECE8F1;
  --powder: #B8CCE0;
  --powder-bg: #E4ECF4;
  --rose: #E5B8B8;
  --rose-bg: #F4E0E0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
  line-height: 1.5;
}

/* ───── Topbar ───── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 245, 247, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage), var(--powder));
  box-shadow: 0 0 0 3px var(--sage-bg);
}

.logo-text {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.hint {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

/* ───── Container ───── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

/* ───── Hero ───── */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ───── Search ───── */
.search {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 8px;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search:focus-within {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.field {
  flex: 1;
  padding: 8px 16px;
  text-align: left;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
}

.field input::placeholder {
  color: var(--text-faint);
}

.divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-lg);
  background: var(--text);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #2C2C2E;
}

.btn-primary:active {
  transform: scale(0.98);
}

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

.btn-arrow {
  font-size: 16px;
}

/* ───── States ───── */
.loading, .empty, .error {
  text-align: center;
  padding: 64px 16px;
  color: var(--text-muted);
}

.loading-hint {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 4px;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 2.5px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

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

.error {
  color: #B5544C;
}

/* ───── Results ───── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-header h2 {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.sort select {
  font-family: inherit;
  font-size: 13px;
  padding: 6px 28px 6px 10px;
  border: 1px solid var(--border);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%236E6E73' d='M5 6L0 0h10z'/></svg>") no-repeat right 10px center;
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lead-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ───── Lead card ───── */
.lead-card {
  display: flex;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.1s, border-color 0.2s;
}

.lead-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.lead-card:active {
  transform: translateY(0);
}

.lead-main {
  flex: 1;
  min-width: 0;
}

.lead-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.lead-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lead-category {
  font-size: 12px;
  color: var(--text-faint);
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lead-category:empty {
  display: none;
}

.lead-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-icon {
  color: var(--text-faint);
  font-size: 12px;
}

.rating-value {
  font-weight: 500;
  color: var(--text);
}

.reviews-value {
  color: var(--text-faint);
}

.website-item.has-website { color: var(--text-muted); }
.website-item.no-website { color: #B5544C; font-weight: 500; }

.website-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s, border-color 0.2s;
}

.website-link:hover {
  color: #4E6680;
  border-bottom-color: var(--powder);
}

.lead-address {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.lead-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.breakdown-chip {
  font-size: 11px;
  color: var(--text-muted);
  padding: 3px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ───── Score badge ───── */
.lead-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  border: 1px solid transparent;
}

.score-badge .score-emoji {
  font-size: 13px;
  margin-right: 2px;
}

.score-badge .score-value {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.score-badge .score-suffix {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lead-card.tier-hot .score-badge {
  background: var(--sage-bg);
  border-color: var(--sage);
  color: #3F6B3A;
}

.lead-card.tier-warm .score-badge {
  background: var(--peach-bg);
  border-color: var(--peach);
  color: #9A5A2C;
}

.lead-card.tier-cold .score-badge {
  background: var(--powder-bg);
  border-color: var(--powder);
  color: #4E6680;
}

.maps-link {
  font-size: 12px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.maps-link:hover {
  color: var(--text);
}

/* ───── Drawer ───── */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer[hidden] { display: none; }

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 31, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  animation: fade-in 0.2s ease forwards;
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(960px, 100vw);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  animation: slide-in 0.28s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes slide-in {
  to { transform: translateX(0); }
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.drawer-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-2);
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.drawer-close:hover {
  background: var(--border);
  color: var(--text);
}

.drawer-score {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  border: 1px solid transparent;
}

.drawer-score-emoji {
  font-size: 12px;
  margin-right: 2px;
}

.drawer-score-value {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.drawer-score-suffix {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.drawer.tier-hot .drawer-score {
  background: var(--sage-bg);
  border-color: var(--sage);
  color: #3F6B3A;
}
.drawer.tier-warm .drawer-score {
  background: var(--peach-bg);
  border-color: var(--peach);
  color: #9A5A2C;
}
.drawer.tier-cold .drawer-score {
  background: var(--powder-bg);
  border-color: var(--powder);
  color: #4E6680;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 40px;
}

.drawer-identity {
  margin-bottom: 28px;
}

.drawer-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.drawer-category {
  display: inline-block;
  font-size: 12px;
  color: var(--text-faint);
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.drawer-category:empty { display: none; }

.drawer-section {
  margin-bottom: 28px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.drawer-section-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-head .drawer-section-title {
  margin-bottom: 0;
}

.section-total {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  font-weight: 500;
}

.section-total strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact list */
.drawer-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.contact-row[hidden] { display: none; }

.contact-label {
  color: var(--text-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.contact-value {
  color: var(--text);
  word-break: break-word;
}

.contact-value a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.15s, border-color 0.15s;
}

.contact-value a:hover {
  color: #4E6680;
  border-bottom-color: var(--powder);
}

.contact-value.muted {
  color: var(--text-faint);
  font-style: italic;
}

/* Criteria */
.criteria-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.criterion {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background 0.15s, border-color 0.15s;
}

.criterion.met {
  background: var(--sage-bg);
  border-color: var(--sage);
}

.criterion.unmet {
  background: var(--surface-2);
  border-color: var(--border);
  opacity: 0.85;
}

.criterion-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.criterion.met .criterion-mark {
  background: var(--sage);
  color: white;
}

.criterion.met .criterion-mark::before {
  content: '✓';
}

.criterion.unmet .criterion-mark {
  background: var(--border);
  color: var(--text-faint);
}

.criterion.unmet .criterion-mark::before {
  content: '–';
  font-size: 16px;
  line-height: 0;
}

.criterion-body {
  flex: 1;
  min-width: 0;
}

.criterion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.criterion-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.005em;
}

.criterion-pts {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.criterion.met .criterion-pts {
  color: #3F6B3A;
}

.criterion-detail {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.criterion-why {
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.45;
}

body.drawer-open {
  overflow: hidden;
}

/* ───── Parecer ───── */
.parecer-meta {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.parecer-cta {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.parecer-intro {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.btn-secondary:active {
  transform: scale(0.98);
}

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

.parecer-loading {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
}

.parecer-loading .spinner {
  margin-bottom: 12px;
}

.parecer-error {
  background: var(--rose-bg);
  border: 1px solid var(--rose);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
}

.parecer-error-msg {
  color: #8C4848;
  margin-bottom: 10px;
}

.parecer-sentiment {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.parecer-sentiment-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid transparent;
}

.parecer-sentiment-badge.sentiment-positivo {
  background: var(--sage-bg);
  border-color: var(--sage);
  color: #3F6B3A;
}

.parecer-sentiment-badge.sentiment-misto {
  background: var(--peach-bg);
  border-color: var(--peach);
  color: #9A5A2C;
}

.parecer-sentiment-badge.sentiment-negativo {
  background: var(--rose-bg);
  border-color: var(--rose);
  color: #8C4848;
}

.parecer-sentiment-resumo {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

.parecer-block {
  margin-bottom: 16px;
}

.parecer-block-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.parecer-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.parecer-list li {
  position: relative;
  padding: 8px 12px 8px 26px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  line-height: 1.45;
}

.parecer-list li::before {
  position: absolute;
  left: 10px;
  top: 9px;
  font-size: 11px;
  color: var(--text-faint);
}

.parecer-strengths li::before {
  content: '+';
  color: #5A8A55;
  font-weight: 700;
}

.parecer-weaknesses li::before {
  content: '−';
  color: #B5544C;
  font-weight: 700;
}

.parecer-no-weaknesses {
  font-size: 13px;
  color: var(--text-faint);
  font-style: italic;
  padding: 8px 12px;
}

.parecer-hook-block {
  background: var(--lavender-bg);
  border: 1px solid var(--lavender);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-top: 4px;
}

.parecer-hook-block .parecer-block-title {
  color: #5D4E78;
}

.parecer-hook {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
}

/* ───── Parecer comercial completo (proposal) ───── */
.proposal-section .section-head { border-top: 1px solid var(--border); padding-top: 20px; }
.proposal-meta {
  font-size: 12px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
}

.proposal-cta {
  background: linear-gradient(135deg, var(--lavender-bg), var(--powder-bg));
  border: 1px solid var(--lavender);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.proposal-intro {
  font-size: 13px;
  color: #5D4E78;
  margin-bottom: 14px;
  line-height: 1.5;
}

.proposal-cta .btn-primary {
  background: #5D4E78;
}

.proposal-cta .btn-primary:hover {
  background: #4A3D63;
}

.proposal-loading {
  padding: 36px 16px;
  text-align: center;
  color: var(--text-muted);
}

.proposal-loading .spinner {
  margin-bottom: 12px;
}

.proposal-error {
  background: var(--rose-bg);
  border: 1px solid var(--rose);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 13px;
}

.proposal-error-msg {
  color: #8C4848;
  margin-bottom: 10px;
}

.proposal-result {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.proposal-block-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

/* Produto card */
.proposal-product-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.product-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.product-stack {
  font-size: 11px;
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 6px;
}

.product-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

.product-features {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-features li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.product-features li:first-child { border-top: none; }

.product-features li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 7px;
  color: var(--lavender);
  font-size: 8px;
}

/* Lists (selling points + pitching) */
.proposal-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proposal-list li {
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.pitching-args li {
  background: var(--peach-bg);
  border-color: var(--peach);
  font-style: italic;
  color: #6A3D1F;
}

/* Charts */
.proposal-charts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proposal-chart {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: white;
}

/* Research */
.research-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.research-list li {
  padding: 10px 12px;
  background: var(--surface-2);
  border-left: 3px solid var(--powder);
  border-radius: var(--radius-sm);
}

.research-list strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.research-list p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 4px;
}

.research-source {
  display: inline-block;
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  word-break: break-all;
}

/* Download PDF button */
.proposal-download-row {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.download-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.download-pdf-btn:hover {
  background: var(--surface-2);
  border-color: var(--text-muted);
}

.download-pdf-btn:active { transform: scale(0.98); }

.download-pdf-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.dl-icon {
  font-size: 14px;
  color: var(--text-muted);
}

/* VSCode prompt block */
.vscode-block {
  background: #1D1D1F;
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.vscode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.vscode-block .proposal-block-title {
  color: #A8A8B0;
  margin-bottom: 0;
}

.copy-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #E5E5EA;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.copy-btn.copied {
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

.vscode-prompt {
  font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #E5E5EA;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

/* ───── Responsive ───── */
@media (max-width: 720px) {
  .container { padding: 32px 16px 64px; }
  .hero h1 { font-size: 28px; }
  .search { flex-direction: column; align-items: stretch; padding: 12px; gap: 8px; }
  .divider { display: none; }
  .btn-primary { justify-content: center; }
  .lead-card { flex-direction: column; gap: 16px; }
  .lead-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
}
