
:root {
  --bg: #f7f3ee;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6e6a66;
  --line: #e7e0d9;
  --soft: #efe7df;
  --accent: #111111;
  --radius: 24px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

button, textarea, input { font: inherit; }

.app-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  margin-bottom: 8px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .96;
  letter-spacing: -.05em;
  max-width: 850px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

p { line-height: 1.55; }

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.hero-copy,
.input-card,
.results,
.metric-card,
.insight-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
}

.hero-copy p {
  color: var(--muted);
  max-width: 610px;
  font-size: 18px;
}

.pill {
  width: fit-content;
  background: var(--soft);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 13px;
  margin-bottom: auto;
}

.input-card { padding: 28px; }

.input-card label {
  display: block;
  font-weight: 750;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  outline: none;
  background: #fcfaf8;
}

textarea:focus, input:focus { border-color: #111; }

.upload-row {
  margin: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.upload-btn {
  margin: 0 !important;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  cursor: pointer;
  background: var(--paper);
}
.upload-btn input { display: none; }

.preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 14px;
}
.preview-strip img {
  width: 66px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.goal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.goal {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 10px;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
}
.goal.active { border-color: var(--ink); background: var(--ink); color: white; }

.primary-btn, .secondary-btn, .ghost-btn {
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  cursor: pointer;
  font-weight: 800;
}

.primary-btn {
  width: 100%;
  background: var(--ink);
  color: #fff;
}

.secondary-btn {
  background: var(--ink);
  color: white;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
}
.ghost-btn.dark {
  border-color: var(--ink);
}

.microcopy {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}

.results {
  margin-top: 22px;
  padding: 28px;
}

.hidden { display: none; }

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

.score-ring {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  border-radius: 50%;
  border: 10px solid #111;
  display: grid;
  place-items: center;
  line-height: 1;
}
.score-ring span { font-size: 36px; font-weight: 900; }
.score-ring small { color: var(--muted); margin-top: -24px; }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.metric-card { padding: 18px; }

.metric-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.bar {
  margin: 14px 0;
  height: 8px;
  background: var(--soft);
  border-radius: 999px;
  overflow: hidden;
}
.bar > div {
  height: 100%;
  background: var(--ink);
  width: 50%;
  border-radius: inherit;
  transition: width .4s ease;
}

.metric-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}

.insight-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 12px;
}

.insight-card { padding: 20px; }
.insight-card h3 { margin-top: 0; }
.insight-card ul { padding-left: 20px; }
.insight-card li { margin-bottom: 8px; line-height: 1.45; }
.accent-card { background: #111; color: white; }
.accent-card .secondary-btn { background: white; color: #111; }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 18px; }
.reply-box {
  margin-top: 14px;
  border: 1px solid #353535;
  padding: 14px;
  border-radius: 14px;
  line-height: 1.45;
}

.save-row {
  margin-top: 16px;
  display: flex;
  gap: 10px;
}
.save-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 16px;
}

.history-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(470px, 100%);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(0,0,0,.08);
  padding: 24px;
  transform: translateX(105%);
  transition: transform .25s ease;
  z-index: 50;
  overflow-y: auto;
}
.history-panel.open { transform: translateX(0); }

.history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.history-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 10px;
}
.history-item strong { display: block; margin-bottom: 4px; }
.history-meta { font-size: 12px; color: var(--muted); }
.history-score { font-size: 28px; font-weight: 900; float: right; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 100px);
  background: #111;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  transition: transform .2s ease;
  z-index: 100;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; }
  .hero-copy { min-height: 360px; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .insight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .app-shell { padding: 14px; }
  .topbar { align-items: center; }
  .topbar h1 { font-size: 40px; }
  .hero-copy, .input-card, .results { padding: 20px; }
  .goal-grid, .metrics-grid { grid-template-columns: 1fr; }
  .results-header { align-items: flex-start; }
  .score-ring { width: 90px; height: 90px; flex-basis: 90px; border-width: 8px; }
  .score-ring span { font-size: 28px; }
  .save-row { flex-direction: column; }
}
.preview-item {
  position: relative;
  display: inline-block;
}

.preview-item img {
  display: block;
}

.remove-image {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
}

.remove-image:hover {
  background: rgba(0, 0, 0, 0.9);
}
.upload-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.history-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.history-title {
  margin: 12px 0 8px;
  font-weight: 600;
}

.history-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.history-metrics span {
  padding: 6px 9px;
  background: var(--soft);
  border-radius: 8px;
  font-size: 12px;
}

.history-summary {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}
.trend-up {
  font-weight: 700;
}

.trend-down {
  font-weight: 700;
}

.trend-flat {
  font-weight: 700;
  opacity: 0.65;
}
.reply-options {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.reply-option {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.reply-option-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.copy-reply-btn {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.copy-reply-btn:hover {
  opacity: 0.8;
}
.reply-heading {
  margin-top: 20px;
  margin-bottom: 10px;
}
.reply-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 10px;
}

.reply-heading {
  margin: 0;
}

.best-reply-badge {
  display: none;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--soft);
}
.confidence-badge {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid #ddd4cc;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f8f5f2;
}
/* ===== Results polish ===== */

#verdictTitle {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

#verdictText {
  font-size: 16px;
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 18px;
}

#overallScore {
  font-size: 56px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.confidence-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin: 8px 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.metric-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.metric-head strong {
  font-size: 18px;
  font-weight: 800;
}

.metric-card p {
  line-height: 1.55;
}

.bar {
  overflow: hidden;
  border-radius: 999px;
}

.bar > div {
  transition: width 0.65s ease;
}
/* ===== Cohesive result system ===== */

.results-section {
  position: relative;
}

.verdict-card,
.metric-card,
.insight-card {
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.verdict-card {
  border-radius: 24px;
  padding: 28px;
}

.metric-card {
  border-radius: 18px;
  padding: 18px;
}

.insight-card {
  border-radius: 20px;
  padding: 22px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.metric-head span {
  font-weight: 700;
}

.metric-head strong {
  min-width: 70px;
  text-align: right;
}

#overallScore {
  display: inline-block;
  margin-right: 6px;
}

#overallScore::after {
  content: "/100";
  font-size: 16px;
  font-weight: 600;
  opacity: 0.45;
  margin-left: 6px;
}

.metric-card p {
  margin-top: 12px;
  margin-bottom: 0;
  opacity: 0.82;
}

.bar {
  height: 8px;
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.06);
}

.bar > div {
  height: 100%;
  border-radius: 999px;
}

.insight-grid {
  gap: 18px;
}

@media (max-width: 768px) {
  .verdict-card {
    padding: 22px;
    border-radius: 20px;
  }

  #verdictTitle {
    font-size: 25px;
  }

  #overallScore {
    font-size: 46px;
  }

  .metric-card {
    padding: 16px;
  }

  .insight-card {
    padding: 18px;
  }
}
/* ===== Final UI polish ===== */

textarea,
input,
select,
button {
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 16px;
  line-height: 1.55;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.04);
}

button {
  border-radius: 14px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#analyzeBtn {
  min-height: 48px;
  font-weight: 700;
  padding-left: 22px;
  padding-right: 22px;
}

.upload-area,
.drop-zone,
.image-upload {
  border-radius: 18px;
}

.input-card {
  border-radius: 22px;
}

.results-section {
  margin-top: 28px;
}

.metric-grid,
.insight-grid {
  margin-top: 18px;
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  textarea {
    min-height: 180px;
  }

  #analyzeBtn {
    width: 100%;
  }

  .metric-grid,
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 30px;
    line-height: 1.15;
  }
}

.analysis-settings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0 16px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group label {
  font-weight: 700;
  font-size: 0.95rem;
}

.setting-group select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  cursor: pointer;
}

.person-select-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.person-select-row select {
  flex: 1;
}

.person-select-row button {
  white-space: nowrap;
  min-height: 46px;
}

.setting-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0.68;
}

@media (max-width: 720px) {
  .analysis-settings {
    grid-template-columns: 1fr;
  }

  .person-select-row {
    flex-direction: column;
    align-items: stretch;
  }

  .person-select-row button {
    width: 100%;
  }
}


/* ===== Relationship Pulse UI ===== */

.relationship-profile {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.relationship-profile .history-item-top {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.relationship-profile .history-item-top strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1.15;
  margin-bottom: 6px;
}

.relationship-profile h3 {
  margin: 4px 0 -8px;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.relationship-profile .history-meta {
  font-size: 0.84rem;
  opacity: 0.65;
}

.relationship-profile .history-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.relationship-profile .history-metrics > span {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.025);
  font-size: 0.82rem;
}

.relationship-profile .history-metrics > span > strong {
  font-size: 1.45rem;
  line-height: 1;
}

.relationship-profile .history-summary {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.035);
  line-height: 1.6;
}

.relationship-profile .trend-up,
.relationship-profile .trend-down,
.relationship-profile .trend-flat {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 2px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.relationship-profile .trend-up {
  background: rgba(30, 140, 80, 0.10);
}

.relationship-profile .trend-down {
  background: rgba(190, 60, 60, 0.10);
}

.relationship-profile .trend-flat {
  background: rgba(90, 90, 90, 0.10);
}

@media (min-width: 700px) {
  .relationship-profile .history-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .relationship-profile .history-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .relationship-profile .history-metrics > span {
    min-height: 84px;
    padding: 12px;
  }

  .relationship-profile .history-metrics > span > strong {
    font-size: 1.3rem;
  }
}


/* ===== Relationship Confidence + Timeline ===== */

.relationship-confidence {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.025);
}

.relationship-confidence span {
  font-size: 0.88rem;
  font-weight: 600;
}

.relationship-confidence strong,
.timeline-confidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.confidence-high {
  background: rgba(30, 140, 80, 0.12);
}

.confidence-medium {
  background: rgba(200, 145, 30, 0.12);
}

.confidence-low {
  background: rgba(190, 60, 60, 0.12);
}

.relationship-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.relationship-timeline-item {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.02);
}

.relationship-timeline-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 22px;
  bottom: -15px;
  width: 1px;
  height: 15px;
  background: rgba(0, 0, 0, 0.10);
}

.relationship-timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.relationship-timeline-top > div > strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.timeline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.timeline-metrics span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.035);
  font-size: 0.74rem;
}

.timeline-metrics strong {
  font-size: 0.95rem;
}

.relationship-timeline-item p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .relationship-confidence {
    align-items: flex-start;
    flex-direction: column;
  }

  .relationship-timeline-top {
    flex-direction: column;
  }

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


/* ===== Recommended Strategy ===== */

.strategy-card {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.strategy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #f7f7f7;
  border-bottom: 1px solid #e6e6e6;
}

.strategy-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.7;
}

.strategy-name {
  font-size: 0.95rem;
  text-align: right;
}

.strategy-section {
  padding: 14px 16px;
  border-bottom: 1px solid #eeeeee;
}

.strategy-section span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.65;
}

.strategy-section p {
  margin: 0;
  line-height: 1.5;
}

.strategy-send {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.strategy-send span {
  font-weight: 600;
}

.strategy-send strong {
  font-size: 1rem;
}

@media (max-width: 520px) {
  .strategy-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .strategy-name {
    text-align: left;
  }
}


/* ===== You vs. Them ===== */

.you-vs-them {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
}

.you-vs-them-header,
.you-vs-them-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.you-vs-them-header {
  background: #f7f7f7;
  border-bottom: 1px solid #e6e6e6;
}

.you-vs-them-header strong {
  text-align: center;
  font-size: 0.9rem;
}

.you-vs-them-row {
  border-bottom: 1px solid #eeeeee;
}

.you-vs-them-row:last-of-type {
  border-bottom: none;
}

.you-vs-them-row span {
  font-weight: 600;
}

.you-vs-them-row strong {
  text-align: center;
  font-size: 0.95rem;
}

.you-vs-them-summary {
  margin: 0;
  padding: 14px;
  border-top: 1px solid #e6e6e6;
  background: #fafafa;
}

@media (max-width: 520px) {
  .you-vs-them-header,
  .you-vs-them-row {
    grid-template-columns: 1.1fr 0.7fr 0.7fr;
    gap: 8px;
    padding: 11px 10px;
  }

  .you-vs-them-header strong,
  .you-vs-them-row strong,
  .you-vs-them-row span {
    font-size: 0.82rem;
  }
}


/* ===== Should I Send This ===== */

.send-check-btn {
  width: 100%;
  margin-top: 10px;
}

.send-check-results {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #ffffff;
}

.send-check-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.send-check-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.send-check-heading h3 {
  margin: 0;
  font-size: 1.35rem;
}

.send-check-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 64px;
  padding: 8px;
  border: 1px solid #e6e6e6;
  border-radius: 50%;
}

.send-check-score strong {
  font-size: 1.05rem;
}

.send-check-score span {
  font-size: 0.68rem;
  opacity: 0.6;
}

.send-check-context {
  margin: -4px 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.58;
}

.send-check-section {
  padding: 13px 0;
  border-top: 1px solid #eeeeee;
}

.send-check-section > span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.62;
}

.send-check-section p {
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .send-check-heading {
    align-items: flex-start;
  }
}


/* ===== Relationship Profile Dashboard ===== */

.relationship-dashboard-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.dashboard-summary-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  background: #ffffff;
}

.dashboard-summary-card span {
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.62;
}

.dashboard-summary-card strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

@media (max-width: 520px) {
  .relationship-dashboard-summary {
    grid-template-columns: 1fr;
  }
}


/* ===== Investment Trend ===== */

.investment-trend {
  padding: 14px;
  border-top: 1px solid #e6e6e6;
  background: #ffffff;
}

.investment-trend-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.65;
}

.investment-trend-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.investment-trend-metrics > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  font-size: 0.82rem;
}

.investment-trend-metrics strong {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
}

.investment-trend-metrics .trend-up,
.investment-trend-metrics .trend-down,
.investment-trend-metrics .trend-flat {
  font-size: 0.78rem;
}

.investment-trend p {
  margin: 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .investment-trend-metrics {
    grid-template-columns: 1fr;
  }
}


/* ===== History Person Picker ===== */

.history-person-picker {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.025);
}

.history-person-picker label {
  font-size: 0.82rem;
  font-weight: 700;
}

.history-person-picker select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  cursor: pointer;
}


/* ===== Weekly Relationship Recap ===== */

.weekly-recap {
  margin: 20px 0 24px;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.weekly-recap-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.weekly-recap-header h3 {
  margin: 3px 0 0;
}

.weekly-recap-header > strong {
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0.65;
}

.weekly-recap-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.weekly-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.weekly-recap-stat {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.035);
}

.weekly-recap-stat span,
.weekly-recap-goal span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.75rem;
  opacity: 0.6;
}

.weekly-recap-stat strong,
.weekly-recap-goal strong {
  font-size: 0.92rem;
}

.weekly-recap-summary,
.weekly-recap-baseline p {
  margin: 14px 0 0;
  line-height: 1.5;
  opacity: 0.72;
}

.weekly-recap-baseline {
  padding: 14px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.035);
}

.weekly-recap-baseline p {
  margin-bottom: 0;
}

.weekly-recap-goal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

@media (max-width: 640px) {
  .weekly-recap-grid {
    grid-template-columns: 1fr;
  }

  .weekly-recap-header {
    flex-direction: column;
  }
}


/* ===== Analysis Mode Switch ===== */

.analysis-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  padding: 5px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.05);
}

.analysis-mode-btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  opacity: 0.65;
}

.analysis-mode-btn.active {
  background: #ffffff;
  opacity: 1;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .analysis-mode-switch {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   DATING PROFILE ANALYSIS
   ========================================= */

.profile-analysis-results {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 8px;
}

/* Hero */
.profile-analysis-heading {
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.profile-analysis-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}

.profile-analysis-heading h2 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  line-height: 1.15;
}

.profile-analysis-heading p {
  margin: 0;
  max-width: 850px;
  line-height: 1.7;
  opacity: 0.82;
}

/* Profile Score */
.profile-score-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 24px 26px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.profile-score-card span {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.72;
}

.profile-score-card strong {
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.profile-score-card small {
  align-self: end;
  padding-bottom: 5px;
  font-size: 0.9rem;
  opacity: 0.5;
}

/* Metrics */
.profile-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.profile-metrics > div {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.profile-metrics span {
  font-size: 0.8rem;
  line-height: 1.35;
  opacity: 0.68;
}

.profile-metrics strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  line-height: 1;
}

/* General cards */
.profile-analysis-section {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.profile-analysis-section h3 {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.3;
}

.profile-analysis-section p {
  margin: 0;
  line-height: 1.7;
  opacity: 0.9;
}

.profile-analysis-section ul,
.profile-analysis-section ol {
  margin: 0;
  padding-left: 22px;
}

.profile-analysis-section li {
  margin-bottom: 10px;
  line-height: 1.6;
  opacity: 0.9;
}

.profile-analysis-section li:last-child {
  margin-bottom: 0;
}

/* Two-column sections */
.profile-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Make best feature / opportunity feel more important */
.profile-analysis-grid .profile-analysis-section {
  min-height: 150px;
}

/* Suggested bio emphasis */
.profile-analysis-section:has(h3:first-child:nth-last-child(2)) {
  position: relative;
}

/* Conversation opener cards */
.profile-analysis-section ol {
  list-style: none;
  padding-left: 0;
  counter-reset: profile-openers;
}

.profile-analysis-section ol li {
  counter-increment: profile-openers;
  position: relative;
  padding: 14px 16px 14px 50px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-analysis-section ol li::before {
  content: counter(profile-openers);
  position: absolute;
  left: 14px;
  top: 13px;
  display: flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile / tablet */
@media (max-width: 1050px) {
  .profile-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .profile-analysis-heading {
    padding: 20px;
  }

  .profile-analysis-heading h2 {
    font-size: 1.55rem;
  }

  .profile-score-card {
    grid-template-columns: 1fr auto auto;
    padding: 20px;
  }

  .profile-score-card strong {
    font-size: 2.4rem;
  }

  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .profile-metrics {
    grid-template-columns: 1fr;
  }

  .profile-analysis-section {
    padding: 18px;
  }

  .profile-score-card {
    grid-template-columns: 1fr auto auto;
    gap: 6px;
  }
}

/* =========================================
   PROFILE ANALYSIS - LIGHT CARD OVERRIDES
   ========================================= */

/* Main results spacing */
.profile-analysis-results {
  gap: 20px;
}

/* Top summary / hero */
.profile-analysis-heading {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Main profile score */
.profile-score-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

/* Give Profile Score number breathing room */
.profile-score-card strong {
  margin-left: 12px;
}

.profile-score-card small {
  margin-left: 2px;
}

/* Five score cards */
.profile-metrics {
  gap: 14px;
}

.profile-metrics > div {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  padding: 20px;
  min-height: 125px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.045);
}

/* Every analysis content section becomes a card */
.profile-analysis-section {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.045);
}

/* Give headings clearer separation */
.profile-analysis-section h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.08rem;
}

/* Best Feature + Biggest Opportunity */
.profile-analysis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-analysis-grid .profile-analysis-section {
  min-height: 175px;
}

/* Lists inside cards */
.profile-analysis-section ul {
  margin: 0;
  padding-left: 22px;
}

.profile-analysis-section ul li {
  margin-bottom: 12px;
}

.profile-analysis-section ul li:last-child {
  margin-bottom: 0;
}

/* Conversation opener individual cards */
.profile-analysis-section ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: profile-counter;
}

.profile-analysis-section ol li {
  counter-increment: profile-counter;
  position: relative;
  margin-bottom: 12px;
  padding: 16px 18px 16px 54px;
  background: #f7f7f8;
  border: 1px solid #e6e6e9;
  border-radius: 14px;
}

.profile-analysis-section ol li:last-child {
  margin-bottom: 0;
}

.profile-analysis-section ol li::before {
  content: counter(profile-counter);
  position: absolute;
  left: 16px;
  top: 14px;

  width: 26px;
  height: 26px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  background: #111111;
  color: #ffffff;

  font-size: 0.75rem;
  font-weight: 700;
}

/* Slight separation between the results and surrounding page */
.profile-analysis-results {
  padding: 4px 0 28px;
}

/* Tablet */
@media (max-width: 900px) {
  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

/* Phone */
@media (max-width: 600px) {
  .profile-analysis-heading,
  .profile-score-card,
  .profile-analysis-section {
    padding: 20px;
  }

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

  .profile-metrics > div {
    min-height: 100px;
  }

  .profile-score-card strong {
    margin-left: 6px;
  }
}