:root { --portal-burgundy: #8B1A2F; }
.cortex-status-bar {
  height: 36px;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 30;
}
.cortex-status-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.cortex-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #666;
  animation: cortex-pulse 2s ease-in-out infinite;
}
@keyframes cortex-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
body.portal-page .main { max-width: min(1100px, 100%); padding: 1rem 1.5rem 2.5rem; }
body.portal-page .portal-page-header { text-align: center; padding: 0.25rem 0 0; margin-bottom: 0; }
body.portal-page .page-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.65rem, 3.2vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #1a1a1a;
}
body.portal-page .page-subtitle.portal-property-address { text-transform: none; font-size: 1rem; color: var(--ev-charcoal); margin: 0.35rem auto 0; max-width: 36rem; }
body.portal-page .portal-page-header + .logged-in-view { margin-top: 0.5rem; }
body.portal-page .portal-welcome { text-align: center; margin: 0.15rem 0 0.4rem; font-size: 0.88rem; color: var(--ev-gray); }
.portal-portal-tabs { display: flex; justify-content: center; gap: 0.5rem; margin: 0.5rem 0 0.75rem; flex-wrap: wrap; }
.portal-portal-tabs a { padding: 0.4rem 0.85rem; font-size: 0.88rem; text-decoration: none; border: 1px solid var(--ev-border-subtle); border-radius: 4px; color: var(--ev-charcoal); }
.portal-portal-tabs a.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.portal-dashboard-section { max-width: min(1100px, 100%); margin: 0 auto 0.5rem; }
.portal-reassurance { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #1a1a1a; padding: 0.55rem 0.85rem 0.6rem; margin: 0 auto 0.5rem; border-radius: 4px; }
.portal-reassurance-primary { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 500; color: #1a1a1a; margin: 0 0 0.2rem; }
.portal-reassurance-secondary { margin: 0; font-size: 0.82rem; color: var(--ev-gray); line-height: 1.35; }
.portal-narrative-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.04rem; line-height: 1.55; color: var(--ev-charcoal); margin-top: 0.35rem; }
.portal-narrative-text.is-loading { color: transparent; border-radius: 4px; min-height: 1.5em; background: linear-gradient(90deg, #f2f2f2 25%, #e8e8e8 37%, #f2f2f2 63%); background-size: 400% 100%; animation: portalNarrativePulse 1.3s ease-in-out infinite; }
.portal-narrative-actions { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--ev-gray); display: flex; align-items: center; gap: 0.5rem; }
.portal-ai-attribution {
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ev-gray);
}
@keyframes portalNarrativePulse { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.portal-reassurance-meta { margin: 0.35rem 0 0; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.portal-status-badge { display: inline-block; padding: 0.2rem 0.55rem; border: 1px solid #e5e5e5; color: #666; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 3px; background: #f5f5f5; }
.portal-badge-green { border-color: #2e7d32; color: #2e7d32; background: #f0f7f0; }
.portal-badge-neutral { border-color: #999; color: #666; background: #f5f5f5; }
.portal-badge-red { border-color: #c62828; color: #c62828; background: #fdf0f0; }
.portal-section-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 4px; padding: 1rem; margin-bottom: 0.5rem; box-shadow: none; }
.portal-section-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; font-weight: 500; margin: 0 0 0.35rem; }
.portal-section-sub { margin: 0 0 0.75rem; font-size: 0.88rem; color: var(--ev-gray); }
.portal-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 2rem; font-size: 0.9rem; }
.portal-profile-grid dt { color: var(--ev-gray); font-weight: 500; margin: 0 0 0.15rem; }
.portal-profile-grid dd { margin: 0 0 0.65rem; line-height: 1.45; }
.portal-profile-grid ul { margin: 0; padding-left: 1.1rem; }
.portal-profile-foot { margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--ev-gray); }
.buyer-intangibles-title { font-size: 1.45rem; margin-bottom: 0.2rem; }
.buyer-intangibles-sub { margin-bottom: 1rem; }
.buyer-intangibles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.buyer-intangible-card { border: 1px solid #e5e5e5; border-radius: 4px; padding: 1rem; background: #fff; }
.buyer-intangible-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; margin: 0 0 0.2rem; color: var(--ev-charcoal); }
.buyer-intangible-label { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.72rem; color: #666; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.5rem; font-weight: 600; }
.buyer-intangible-content { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.08rem; line-height: 1.62; margin: 0; white-space: pre-wrap; color: var(--ev-charcoal); }
.buyer-intangibles-note { color: #666; }
.portal-property-card { border: 1px solid var(--ev-border-subtle); border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }
.portal-property-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.1rem; margin: 0 0 0.35rem; }
.portal-property-price { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; color: #1a1a1a; margin: 0 0 0.5rem; }
.portal-pills { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.65rem; }
.portal-pill { font-size: 0.75rem; padding: 0.15rem 0.45rem; border: 1px solid var(--ev-border-subtle); border-radius: 12px; color: var(--ev-gray); }
.portal-advisor-quote { margin: 0.65rem 0; padding: 0.65rem 0.85rem; background: #f5f5f5; border-left: 3px solid #1a1a1a; font-size: 0.9rem; line-height: 1.45; }
.portal-property-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.portal-property-actions .btn { font-size: 0.82rem; padding: 0.45rem 0.65rem; }
.portal-stat-line { font-size: 0.9rem; color: var(--ev-gray); margin: 0 0 0.75rem; }
.buyer-showing-guidance { margin: 0.15rem 0 0.85rem; padding: 0.75rem 0.85rem; border: 1px solid var(--ev-border-subtle); border-radius: 8px; background: #fcfcfb; }
.buyer-showing-guidance-title { margin: 0 0 0.45rem; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.02rem; color: var(--ev-charcoal); }
.buyer-showing-guidance-list { margin: 0; padding-left: 1.05rem; color: var(--ev-gray); font-size: 0.86rem; line-height: 1.48; }
.buyer-showing-guidance-list li { margin: 0.18rem 0; }
.portal-showing-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; padding: 0.75rem 0; border-top: 1px solid var(--ev-border-subtle); }
.portal-showing-row:first-child { border-top: none; }
.portal-stars { display: flex; gap: 0.15rem; }
.portal-star-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--ev-border); padding: 0; line-height: 1; }
.portal-star-btn.is-on { color: #c9a227; }
.portal-showing-notes { width: 100%; margin-top: 0.5rem; font-size: 0.88rem; padding: 0.5rem; border: 1px solid var(--ev-border); border-radius: 4px; }
.portal-offer-card { border: 1px solid var(--ev-border-subtle); border-radius: 8px; padding: 0.85rem 1rem; margin-bottom: 0.65rem; }
.portal-offer-status { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 4px; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.35rem; }
.portal-offer-status.pending { background: #f5f5f5; color: #666; border: 1px solid #999; }
.portal-offer-status.accepted { background: #e8f5e9; color: #2e7d32; }
.portal-offer-status.countered { background: #e3f2fd; color: #1565c0; }
.portal-offer-status.rejected { background: #fef2f2; color: #b91c1c; }
.portal-offer-status.withdrawn { background: #f5f5f5; color: var(--ev-gray); }
.portal-deadline-urgent { color: #b91c1c; font-weight: 500; }
.portal-timeline { display: flex; align-items: flex-start; justify-content: space-between; gap: 0; padding: 0; }
.portal-timeline-step { flex: 1; min-width: 0; text-align: center; position: relative; }
.portal-timeline-step:not(:last-child)::after { content: ''; position: absolute; top: 0.55rem; left: calc(50% + 0.55rem); right: calc(-50% + 0.55rem); height: 2px; background: var(--ev-border-subtle); z-index: 0; }
.portal-timeline-step.is-complete:not(:last-child)::after { background: #999; }
.portal-timeline-dot { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--ev-border); background: #fff; margin: 0 auto 0.45rem; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: #fff; }
.portal-timeline-step.is-complete .portal-timeline-dot { border-color: var(--ev-gray); background: var(--ev-gray); }
.portal-timeline-step.is-current .portal-timeline-dot { border-color: #1a1a1a; background: #1a1a1a; box-shadow: none; }
.portal-timeline-label { font-size: 0.72rem; font-weight: 500; color: var(--ev-charcoal); line-height: 1.2; margin-bottom: 0.15rem; }
.portal-timeline-step.is-current .portal-timeline-label { color: #1a1a1a; font-weight: 600; }
.portal-timeline-sub { font-size: 0.62rem; color: var(--ev-gray); line-height: 1.25; padding: 0 0.15rem; }
.portal-next-steps { list-style: none; margin: 0; padding: 0; }
.portal-next-steps li { display: flex; align-items: flex-start; gap: 0.65rem; padding: 0.4rem 0; font-size: 0.9rem; }
.portal-step-dot { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--ev-border); flex-shrink: 0; margin-top: 0.15rem; display: flex; align-items: center; justify-content: center; font-size: 0.55rem; color: #fff; }
.portal-next-steps li.is-done .portal-step-dot { background: #666; border-color: #666; }
.portal-next-steps li.is-current .portal-step-dot { background: #1a1a1a; border-color: #1a1a1a; box-shadow: none; }
.portal-market-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.05rem; line-height: 1.55; white-space: pre-wrap; }
.portal-advisors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.portal-advisor { border: 1px solid var(--ev-border-subtle); border-radius: 6px; padding: 0.6rem 0.75rem; }
.portal-advisor-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; margin: 0 0 0.2rem; }
.portal-advisor-title { font-size: 0.8rem; color: var(--ev-gray); margin: 0 0 0.5rem; }
.portal-advisor-contact { font-size: 0.85rem; line-height: 1.5; }
.portal-message-section { max-width: min(640px, 100%); margin: 1rem auto 0; padding: 1rem 1.15rem; border: 1px solid var(--ev-border-subtle); border-radius: 8px; }
.portal-message-section h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.15rem; margin: 0 0 0.35rem; }
.portal-message-email-btns { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-bottom: 1rem; }
.portal-message-section textarea { width: 100%; min-height: 5rem; padding: 0.75rem; border: 1px solid var(--ev-border); border-radius: 6px; font-family: inherit; box-sizing: border-box; }
.portal-account-footer { text-align: center; margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ev-border-subtle); }
.portal-activity-feed {
  margin-top: 0.3rem;
}
.portal-activity-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 0.55rem;
  padding: 0.7rem 0 0.7rem 0.75rem;
  border-top: 1px solid #e5e5e5;
  border-left: 3px solid #e5e5e5;
}
.portal-activity-row:first-child { border-top: none; }
.portal-activity-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.38;
  color: var(--ev-charcoal);
}
.portal-activity-time {
  font-size: 0.75rem;
  color: var(--ev-gray);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: right;
  white-space: nowrap;
}
.portal-activity-more {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: #1a1a1a;
}
.portal-cortex-work-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 1rem;
  margin: 0.65rem auto 0.5rem;
}
.portal-cortex-work-card .portal-section-title {
  color: #1a1a1a;
  margin-bottom: 0.8rem;
}
.portal-cortex-work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: cortex-work;
}
.portal-cortex-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}
.portal-cortex-work-item {
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 0.85rem 0.9rem 0.85rem 2.25rem;
  position: relative;
  counter-increment: cortex-work;
}
.portal-cortex-work-item::before {
  content: counter(cortex-work) ".";
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.portal-cortex-work-item h3 {
  margin: 0 0 0.25rem;
  color: #1a1a1a;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: 1rem;
}
.portal-cortex-work-item p {
  margin: 0;
  color: #666;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
}
.portal-cortex-footnote {
  margin: 0.9rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e5e5;
  text-align: center;
  color: #666;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.88rem;
  font-style: italic;
}
.portal-showing-summary {
  margin: 0 0 0.9rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--portal-burgundy);
  background: #fbfaf8;
}
.portal-showing-summary.is-loading {
  min-height: 4rem;
  color: transparent;
  background: linear-gradient(90deg, #f2f2f2 25%, #e8e8e8 37%, #f2f2f2 63%);
  background-size: 400% 100%;
  animation: portalNarrativePulse 1.3s ease-in-out infinite;
}
.portal-showing-summary-label {
  margin: 0 0 0.4rem;
  font-size: 0.66rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ev-gray);
}
.portal-showing-summary-text {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.58;
}
.portal-outlook-hero {
  border-left: 3px solid var(--portal-burgundy, #8B1A2F);
  padding: 0.85rem 0 0.85rem 1rem;
  margin-bottom: 1rem;
  background: #faf9f7;
  border-radius: 0 6px 6px 0;
}
.portal-outlook-headline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--ev-charcoal);
}
.portal-outlook-label {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ev-gray);
}
.portal-outlook--strong .portal-outlook-headline { color: #2e7d32; }
.portal-outlook--steady .portal-outlook-headline { color: #1a1a1a; }
.portal-outlook--building .portal-outlook-headline { color: #666; }
.portal-outlook--attention .portal-outlook-headline { color: #8B1A2F; }
.portal-outlook-timeline {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.portal-outlook-section h3 {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
.portal-outlook-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  line-height: 1.45;
  font-size: 0.9rem;
}
.portal-outlook-footer {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--ev-gray);
  border-top: 1px solid var(--ev-border-subtle);
  padding-top: 0.65rem;
}
.portal-recommend-card { background: #fff; border: 1px solid #e5e5e5; border-left: 3px solid #1a1a1a; border-radius: 4px; padding: 1rem; box-shadow: none; }
.portal-recommend-headline { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.24rem; line-height: 1.25; margin: 0.15rem 0; }
.portal-recommend-reason { margin: 0.15rem 0 0; color: var(--ev-gray); font-size: 0.86rem; }
.portal-recommend-badge { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; border-radius: 999px; padding: 0.15rem 0.5rem; }
.portal-recommend-badge.high { background: #fde8e8; color: #b91c1c; }
.portal-recommend-badge.medium { background: #f5f5f5; color: #666; border: 1px solid #999; }
.portal-recommend-badge.low { background: #f1f1f1; color: #6b7280; }
.portal-risk-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem; align-items: center; padding: 0.48rem 0; border-top: 1px solid var(--ev-border-subtle); }
.portal-risk-row:first-child { border-top: none; }
.portal-risk-dot { width: 8px; height: 8px; border-radius: 50%; }
.portal-risk-dot.high { background: #b91c1c; }
.portal-risk-dot.medium { background: #999; }
.portal-risk-dot.low { background: #9ca3af; }
.portal-risk-text { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.02rem; }
.portal-risk-trend { font-size: 0.8rem; }
.portal-metrics-context { margin: 0.55rem 0 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 0.75rem; font-weight: 400; color: var(--ev-gray); letter-spacing: 0.02em; text-align: center; line-height: 1.35; }
.portal-objection-trend { border: 1px solid var(--ev-border-subtle); border-radius: 6px; padding: 0.7rem 0.8rem; margin: 0 0 0.8rem; }
.portal-objection-trend h3 { margin: 0 0 0.4rem; font-size: 0.95rem; font-family: 'Cormorant Garamond', Georgia, serif; }
.portal-objection-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.45rem; font-size: 0.84rem; padding: 0.2rem 0; }
.portal-proceeds-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.portal-proceeds-table th, .portal-proceeds-table td { border-bottom: 1px solid var(--ev-border-subtle); padding: 0.45rem 0.35rem; text-align: left; }
.offer-readiness-wrap { display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: center; }
.offer-readiness-circle { width: 108px; height: 108px; border-radius: 50%; background: conic-gradient(#1a1a1a var(--score-deg, 0deg), #ececec 0deg); display: flex; align-items: center; justify-content: center; }
.offer-readiness-circle span { width: 78px; height: 78px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.25rem; }
.offer-readiness-circle.good { background: conic-gradient(#2e7d32 var(--score-deg, 0deg), #ececec 0deg); }
.offer-readiness-circle.warn { background: conic-gradient(#666 var(--score-deg, 0deg), #ececec 0deg); }
.offer-readiness-circle.risk { background: conic-gradient(#b91c1c var(--score-deg, 0deg), #ececec 0deg); }
.offer-readiness-copy ul { margin: 0.4rem 0 0; padding-left: 1rem; font-size: 0.84rem; }
.buyer-match-card { border: 1px solid var(--ev-border-subtle); border-radius: 8px; padding: 0.75rem; margin-bottom: 0.6rem; }
.buyer-match-card h3 { margin: 0; font-size: 1rem; }
.buyer-match-score { margin: 0.2rem 0 0.35rem; font-size: 0.82rem; color: var(--ev-gray); }
.buyer-match-note { margin: 0.4rem 0 0; font-style: italic; font-family: 'Cormorant Garamond', Georgia, serif; }
.portal-text-link { background: none; border: none; padding: 0; font: inherit; font-size: 0.9rem; color: var(--ev-gray); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.portal-text-link:hover { color: var(--ev-black); }
.header .header-portal-action { position: absolute; top: 1rem; right: 1rem; color: var(--ev-white); opacity: 0.9; font-size: 0.9rem; background: none; border: none; cursor: pointer; }
.logged-in-view { display: none; }
.logged-in-view.visible { display: block; }
.auth-error { color: #b91c1c; font-size: 0.875rem; }
.auth-success { color: #0d9488; font-size: 0.875rem; }
@media (max-width: 768px) {
  .portal-dashboard-page,
  .customer-portal-page {
    background: #F8F7F5;
  }

  .portal-dashboard-page .page-title,
  .customer-portal-page .page-title {
    font-size: 28px;
    margin-top: 20px;
  }

  .portal-card,
  .portal-section,
  .portal-dashboard-card {
    background: #FFFFFF;
    border: 1px solid #E8E4DF;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26, 22, 20, 0.08);
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .portal-activity-row {
    min-height: 64px;
    padding: 14px 0;
    border-bottom: 1px solid #E8E4DF;
    transition: background 80ms ease;
  }

  .portal-activity-row:active {
    background: #F0EDEA;
  }

  .portal-profile-grid,
  .portal-advisors-grid,
  .buyer-intangibles-grid,
  .portal-cortex-work-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .offer-readiness-wrap {
    grid-template-columns: 1fr;
  }

  .portal-timeline {
    flex-direction: column;
    gap: 0;
  }

  .portal-timeline-step {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 0.75rem;
    padding: 12px 0;
    min-height: 56px;
  }

  .portal-timeline-step:not(:last-child)::after {
    display: none;
  }

  .portal-timeline-dot {
    margin: 0.15rem 0 0;
    flex-shrink: 0;
  }

  .portal-timeline-copy {
    flex: 1;
    min-width: 0;
  }

  .cortex-status-bar {
    height: 40px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .cortex-status-inner {
    font-size: 11px;
  }
}

@media (max-width: 700px) {
  .portal-profile-grid, .portal-advisors-grid, .buyer-intangibles-grid, .portal-cortex-work-grid { grid-template-columns: 1fr; }
  .offer-readiness-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cortex-status-inner { font-size: 10px; }
  .cortex-status-bar { height: 34px; }
  .portal-activity-row {
    grid-template-columns: auto 1fr;
    gap: 0.4rem 0.55rem;
  }
  .portal-activity-time {
    grid-column: 2;
    text-align: left;
    margin-top: -0.1rem;
  }
  .portal-timeline { flex-direction: column; gap: 0; }
  .portal-timeline-step { display: flex; flex-direction: row; align-items: flex-start; text-align: left; gap: 0.75rem; padding: 0.5rem 0; }
  .portal-timeline-step:not(:last-child)::after { display: none; }
  .portal-timeline-dot { margin: 0.15rem 0 0; flex-shrink: 0; }
  .portal-timeline-copy { flex: 1; min-width: 0; }
  .portal-timeline-sub { display: block; font-size: 0.78rem; }
  .portal-timeline-label { font-size: 0.88rem; margin-bottom: 0.1rem; }
}
