/* =========================================
   UNDERWRITING ENGINE — PAGE STYLES
   ========================================= */

/* Shared */
.uw-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.uw-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.uw-header {
  margin-bottom: 48px;
}

.uw-header h1 {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--fg);
  margin-bottom: 20px;
  line-height: 1.15;
}

.uw-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Form Card */
.uw-form-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
  margin-bottom: 48px;
}

.uw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.uw-form-row--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.uw-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uw-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

.uw-field input,
.uw-field select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--fg);
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}

.uw-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a09890' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.uw-field input:focus,
.uw-field select:focus {
  border-color: var(--accent);
}

.uw-hint {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
}

/* Button */
.uw-btn {
  background: var(--accent);
  color: #1a1a2e;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  width: 100%;
}

.uw-btn:hover {
  background: #d4923f;
}

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

.dots::after {
  content: '';
  animation: dots 1.2s infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Error */
.uw-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 3px;
  padding: 16px 20px;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 32px;
}

/* Results */
.uw-results {
  margin-bottom: 64px;
}

.result-score-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 32px 36px;
  margin-bottom: 24px;
}

/* Grade letter (replaces numeric score) */
.result-grade-letter {
  font-family: 'Playfair Display', serif;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  min-width: 90px;
  text-align: center;
  border: 3px solid;
  border-radius: 4px;
  padding: 4px 16px;
}

.grade-bg-a { background: rgba(34, 197, 94, 0.08); }
.grade-bg-b { background: rgba(132, 204, 22, 0.08); }
.grade-bg-c { background: rgba(234, 179, 8, 0.08); }
.grade-bg-d { background: rgba(249, 115, 22, 0.08); }
.grade-bg-e { background: rgba(239, 68, 68, 0.08); }

/* Sub-scores toggle */
.sub-scores-toggle {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s;
}

.sub-scores-toggle:hover { border-color: var(--accent); color: var(--fg); }

.toggle-icon { font-size: 10px; }

/* Sub-scores panel */
.sub-scores-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 24px 16px;
  margin-bottom: 24px;
}

.sub-scores-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}

.sub-score-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sub-score-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.sub-score-bar-wrap {
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.sub-score-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.sub-score-val {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.sub-scores-note {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
  line-height: 1.5;
}

/* Sqft-aware display */
.sqft-aware-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.sqft-rate {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.sqft-total {
  font-size: 20px;
  font-weight: 500;
  color: var(--accent);
}

/* Rental income breakdown */
.rental-income-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

.rental-total-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.rental-total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  min-width: 44px;
}

.rental-total-val {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
}

.rental-total-sub {
  font-size: 12px;
  color: var(--fg-muted);
}

.rental-unit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.rental-unit-label {
  font-size: 13px;
  color: var(--fg-muted);
  min-width: 120px;
}

.rental-unit-val {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
}

.rental-unit-sub {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
}

/* Seed grade badge */
.seed-grade {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.seed-grade.grade-A { color: #22c55e; }
.seed-grade.grade-B { color: #84cc16; }
.seed-grade.grade-C { color: #eab308; }
.seed-grade.grade-D { color: #f97316; }
.seed-grade.grade-E { color: #ef4444; }

.seed-sqft {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.result-note-sm {
  font-size: 11px;
  color: var(--fg-muted);
  opacity: 0.65;
  line-height: 1.5;
  margin-top: 4px;
}

.result-score-num span {
  font-size: 32px;
  font-weight: 400;
  opacity: 0.5;
}

.result-score-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-band {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 2px;
  width: fit-content;
  letter-spacing: 0.04em;
}

.result-score-label {
  font-size: 15px;
  color: var(--fg-muted);
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--fg-muted);
  text-transform: capitalize;
}

.result-meta .sep { opacity: 0.4; }

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.result-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

.result-card-wide { grid-column: span 2; }

.result-card-icon {
  color: var(--accent);
  margin-bottom: 12px;
}

.result-card h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 14px;
}

.pathways-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pathways-list li {
  font-size: 14px;
  color: var(--fg);
  padding-left: 14px;
  position: relative;
}

.pathways-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* Planning probability */
.prob-display {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.prob-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
}

.prob-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.prob-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.result-note {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.5;
  opacity: 0.8;
}

/* Unit Mix */
.unit-mix { display: flex; flex-direction: column; gap: 8px; }

.unit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.unit-label { color: var(--fg-muted); }

.unit-count {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--fg);
  font-weight: 600;
}

.unit-total .unit-label { font-weight: 600; color: var(--fg); }
.unit-total .unit-count { color: var(--accent); }

/* Build cost */
.cost-range { display: flex; flex-direction: column; gap: 8px; }

.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.cost-row:last-child { border-bottom: none; }
.cost-label { color: var(--fg-muted); }
.cost-val { font-weight: 500; color: var(--fg); }

/* Income */
.income-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.income-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
}

.income-period {
  font-size: 14px;
  color: var(--fg-muted);
}

/* IRR */
.irr-card { grid-column: span 3; }

.irr-display {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 12px;
}

.irr-scenario {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.irr-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.irr-val {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
}

.irr-divider {
  padding: 0 28px;
  color: var(--fg-muted);
  font-size: 20px;
  opacity: 0.4;
}

/* Notes */
.result-notes {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px 24px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.result-footer {
  text-align: center;
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.6;
  padding-top: 12px;
}

/* Seed Assets */
.uw-seeds { padding-top: 16px; }

.uw-seed-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.uw-seed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.seed-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  transition: border-color 0.2s;
  cursor: default;
}

.seed-card:hover { border-color: rgba(201, 132, 58, 0.3); }

.seed-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.seed-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  border-radius: 2px;
}

.seed-score {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
}

.seed-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.4;
}

.seed-address {
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 4px;
  line-height: 1.4;
}

.seed-town {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.7;
  margin-bottom: 16px;
}

.seed-card-actions { display: flex; gap: 8px; }

.seed-analyse-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.seed-analyse-btn:hover {
  background: var(--accent);
  color: #1a1a2e;
}

/* ── Appraisal CTA ──────────────────────────────────────────────────────────── */
.appraisal-cta {
  background: var(--bg-raised);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 28px 36px;
  margin-top: 32px;
  display: none; /* shown after results */
}

.appraisal-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 8px;
}

.appraisal-cta-desc {
  font-size: 14px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.appraisal-trigger-btn {
  width: auto;
  display: inline-block;
  padding: 12px 28px;
  font-size: 14px;
}

/* ── Appraisal Panel ──────────────────────────────────────────────────────── */
.appraisal-panel {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 32px;
}

.appraisal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
}

.appraisal-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--fg);
  margin-bottom: 6px;
}

.appraisal-subtitle {
  font-size: 13px;
  color: var(--fg-muted);
}

.appraisal-target-irr {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.irr-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.irr-slider-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.irr-slider {
  width: 160px;
  accent-color: var(--accent);
  cursor: pointer;
}

.irr-slider-val {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  min-width: 44px;
}

/* ── Appraisal Params ──────────────────────────────────────────────────────── */
.appraisal-params {
  padding: 20px 36px;
  border-bottom: 1px solid var(--border);
}

.appraisal-params-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.app-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-field label,
.check-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.03em;
}

.app-field input[type="number"] {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

.app-field input[type="number"]:focus {
  border-color: var(--accent);
}

.app-field-check {
  justify-content: center;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}

.check-label input[type="checkbox"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.appraisal-run-btn {
  width: 180px;
  font-size: 14px;
  padding: 12px 20px;
}

/* ── MAO Banner ────────────────────────────────────────────────────────────── */
.mao-banner {
  background: linear-gradient(135deg, rgba(201, 132, 58, 0.08) 0%, rgba(201, 132, 58, 0.04) 100%);
  border: 1px solid rgba(201, 132, 58, 0.25);
  border-radius: 4px;
  margin: 28px 36px 24px;
  padding: 20px 28px;
}

.mao-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.mao-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.mao-val {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.mao-note {
  font-size: 13px;
  color: var(--fg-muted);
  flex: 1;
}

/* ── Scenario Tabs ─────────────────────────────────────────────────────────── */
.scenario-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 36px;
  overflow-x: auto;
}

.scenario-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.scenario-tab:hover { color: var(--fg); }
.scenario-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ── Scenario Table ────────────────────────────────────────────────────────── */
.scenario-table-wrap {
  overflow-x: auto;
  padding: 0 36px;
  margin-bottom: 28px;
}

.scenario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.scenario-table thead tr {
  border-bottom: 1px solid var(--border);
}

.scenario-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
}

.scenario-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
}

.scenario-row-active td {
  background: rgba(201, 132, 58, 0.05);
}

.scenario-name {
  font-weight: 600;
  color: var(--fg);
}

.irr-cell {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
}
.irr-good { color: #22c55e; }
.irr-ok   { color: #eab308; }
.irr-bad  { color: #ef4444; }

.mao-cell {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.profit-cell {
  font-size: 14px;
  font-weight: 500;
}
.profit-loss { color: #ef4444; }

/* ── Financial Summary ─────────────────────────────────────────────────────── */
.appraisal-financial-summary {
  padding: 0 36px 28px;
}

.fin-summary-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.fin-col { display: flex; flex-direction: column; gap: 0; }

.fin-col-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.fin-row span:first-child { color: var(--fg-muted); }
.fin-row span:last-child { font-weight: 500; color: var(--fg); }

.fin-row-total {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 8px !important;
  font-weight: 600;
}
.fin-row-total span:last-child { color: var(--accent); font-size: 15px; }

.fin-irr { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; }
.fin-irr-down { color: #f97316; }
.fin-mao { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--accent); }
.fin-gdv { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--fg); }

/* ── Cashflow ──────────────────────────────────────────────────────────────── */
.cashflow-section {
  border-top: 1px solid var(--border);
  padding: 0 36px 24px;
}

.cashflow-toggle {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.cashflow-toggle:hover { color: var(--fg); }

.cashflow-detail {
  overflow-x: auto;
  margin-bottom: 16px;
}

.cashflow-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cashflow-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}

.cashflow-table td {
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--fg);
}

.cf-period { font-weight: 600; font-size: 11px; color: var(--fg-muted); }
.cf-label { color: var(--fg-muted); font-size: 11px; }
.cf-income { color: #22c55e; }
.cf-cost { color: #ef4444; }
.cf-running { color: var(--fg-muted); font-size: 11px; }

/* ── Appraisal Footer ──────────────────────────────────────────────────────── */
.appraisal-footer {
  border-top: 1px solid var(--border);
  padding: 16px 36px;
}

.appraisal-footer p {
  font-size: 11px;
  color: var(--fg-muted);
  opacity: 0.6;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .uw-container { padding: 24px 20px 60px; }
  .uw-form-row { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .result-card-wide { grid-column: span 1; }
  .irr-card { grid-column: span 1; }
  .result-score-banner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .uw-seed-grid { grid-template-columns: 1fr; }
}

/* Investment Memo Download Button */
.result-memo-bar { margin-bottom: 4px; }

.memo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #1a1a2e;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.memo-btn:hover { background: #2d2d4a; }