/* Seller listing portal — light luxury base with charcoal accents (matches site styles) */
body.portal-page.seller-portal-layout {
  background: #faf9f7;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .header {
  background: var(--ev-black, #000);
  border-bottom: none;
  color: var(--ev-white, #fff);
}

body.seller-portal-layout .brand-name,
body.seller-portal-layout .header-portal-action {
  color: var(--ev-white, #fff);
}

body.seller-portal-layout .header-portal-action:hover {
  opacity: 1;
  color: var(--ev-white, #fff);
}

body.seller-portal-layout .cortex-status-bar {
  background: #1a1a1a;
  border-bottom: 1px solid #2a2a2a;
}

body.portal-page.seller-portal-layout .page-title {
  color: var(--ev-charcoal, #1a1a1a);
  font-family: 'Cormorant Garamond', Georgia, serif;
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

body.portal-page.seller-portal-layout .portal-page-header {
  min-height: auto;
  padding: 1.25rem 0 0.75rem;
}

body.portal-page.seller-portal-layout .main {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0.75rem 32px 2.5rem;
  box-sizing: border-box;
}

body.seller-portal-layout .seller-page {
  max-width: none;
  width: 100%;
  margin: 0;
}

body.portal-page.seller-portal-layout .logged-in-view.visible {
  margin-top: 0.75rem;
}

body.portal-page.seller-portal-layout .portal-page-header + .logged-in-view {
  margin-top: 0.75rem;
}

body.seller-portal-layout .portal-dashboard-section,
body.seller-portal-layout .portal-reassurance {
  max-width: none;
  width: 100%;
}

body.seller-portal-layout #portalHomeWrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: none;
}

body.seller-portal-layout #portalHomeWrap > .portal-reassurance,
body.seller-portal-layout #portalHomeWrap > .portal-dashboard-section,
body.seller-portal-layout #portalHomeWrap > .portal-home-grid-wrap,
body.seller-portal-layout #portalHomeWrap > .portal-account-footer {
  width: 100%;
  max-width: none;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  margin-left: 0;
  margin-right: 0;
}

body.seller-portal-layout #portalHomeWrap > #portalMetricsSection,
body.seller-portal-layout #portalHomeWrap > #portalTimelineSection,
body.seller-portal-layout #portalHomeWrap > #portalReassurance,
body.seller-portal-layout #portalHomeWrap > #sellerRecommendationSection,
body.seller-portal-layout #portalHomeWrap > #sellerRisksSection,
body.seller-portal-layout #portalHomeWrap > #sellerActivitySection,
body.seller-portal-layout #portalHomeWrap > .portal-home-grid-wrap,
body.seller-portal-layout #portalHomeWrap > #advisorActionsSection,
body.seller-portal-layout #portalHomeWrap > #workingForYouSection,
body.seller-portal-layout #portalHomeWrap > .portal-account-footer {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.seller-portal-layout #portalHomeWrap > #portalTimelineSection,
body.seller-portal-layout #portalHomeWrap > #portalReassurance,
body.seller-portal-layout #portalHomeWrap > #sellerRecommendationSection,
body.seller-portal-layout #portalHomeWrap > #sellerRisksSection,
body.seller-portal-layout #portalHomeWrap > #sellerActivitySection {
  padding: 20px;
}

body.seller-portal-layout .portal-home-grid-wrap {
  display: block;
  margin: 0;
  padding: 0;
}

body.seller-portal-layout .portal-home-card-section {
  margin-bottom: 0;
}

body.seller-portal-layout .page-subtitle.portal-property-address {
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-portal-tabs a {
  border-color: var(--ev-border-subtle, #e5e5e5);
  color: var(--ev-charcoal, #1a1a1a);
  background: #fff;
}

body.seller-portal-layout .portal-portal-tabs a.active {
  background: #8b1a2f;
  border-color: #8b1a2f;
  color: #fff;
}

.seller-portal-back {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  color: #8B1A1A;
  cursor: pointer;
  text-align: left;
}

.seller-page {
  max-width: min(1100px, 100%);
  margin: 0 auto;
}

.seller-page[hidden] {
  display: none !important;
}

body.seller-portal-layout .portal-home-card-section .card {
  margin: 0;
}

body.seller-portal-layout #portalHomeWrap #portalReassurance {
  margin-bottom: 0;
  background: #fff;
  border: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-left: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.seller-portal-layout #portalHomeWrap .portal-home-timeline {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

body.seller-portal-layout #portalHomeWrap .portal-timeline-label {
  font-size: 13px;
  font-weight: 600;
}

body.seller-portal-layout #portalHomeWrap .portal-timeline-step.is-current .portal-timeline-label {
  color: #8b1a1a;
}

body.seller-portal-layout #portalHomeWrap .portal-timeline-step:not(.is-complete):not(.is-current) .portal-timeline-dot {
  border-color: #d9d4cf;
  background: #fff;
  box-shadow: none;
}

body.seller-portal-layout #portalHomeWrap .portal-timeline-step.is-current .portal-timeline-dot {
  width: 14px;
  height: 14px;
  animation: seller-portal-timeline-pulse 2s infinite;
}

body.seller-portal-layout #portalHomeWrap .portal-timeline-step:not(:last-child)::after {
  height: 2px;
}

@keyframes seller-portal-timeline-pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 26, 26, 0.3); }
  70% { box-shadow: 0 0 0 6px rgba(139, 26, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 26, 26, 0); }
}

body.seller-portal-layout #portalHomeWrap #sellerRecommendationSection {
  margin-top: 0;
  background: #fff;
  border: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-left: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.seller-portal-layout #portalHomeWrap .portal-metrics-dashboard {
  margin-bottom: 0.25rem;
}

body.seller-portal-layout #portalHomeWrap > #portalMetricsSection {
  margin-top: 0.5rem;
}

body.seller-portal-layout .portal-metrics-grid {
  gap: 1rem;
}

body.seller-portal-layout .portal-metrics-grid .portal-metric {
  padding: 1.5rem 1.25rem;
  border-radius: 8px;
}

body.seller-portal-layout .portal-metric-value {
  margin-bottom: 0.5rem;
}

body.seller-portal-layout .portal-home-grid {
  margin-top: 0;
}

body.seller-portal-layout .portal-recommend-card,
body.seller-portal-layout .portal-section-card {
  margin-bottom: 0;
}

body.seller-portal-layout .portal-account-footer {
  margin-top: 0;
}

body.seller-portal-layout .portal-section-card,
body.seller-portal-layout .portal-reassurance,
body.seller-portal-layout .portal-metrics-dashboard,
body.seller-portal-layout .portal-card,
body.seller-portal-layout .card {
  background: #fff;
  border-color: var(--ev-border-subtle, #e5e5e5);
  color: var(--ev-charcoal, #1a1a1a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.seller-portal-layout .portal-section-title,
body.seller-portal-layout .card-title,
body.seller-portal-layout .portal-reassurance-primary {
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout #portalHomeWrap .portal-section-title,
body.seller-portal-layout #portalHomeWrap .portal-reassurance-primary,
body.seller-portal-layout #portalHomeWrap .portal-activity-toggle {
  font-size: 18px;
  font-weight: 700;
}

body.seller-portal-layout .portal-section-sub,
body.seller-portal-layout .card-subtitle,
body.seller-portal-layout .portal-reassurance-secondary,
body.seller-portal-layout .portal-narrative-text,
body.seller-portal-layout .portal-profile-grid dt {
  color: var(--ev-gray, #666);
}

body.seller-portal-layout .portal-profile-grid dd {
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-status-badge {
  background: #f5f5f5;
  border-color: #e5e5e5;
  color: #666;
}

body.seller-portal-layout .portal-badge-green {
  border-color: #4a7c59;
  color: #8bc49a;
  background: #1a2a1f;
}

body.seller-portal-layout .portal-metrics-grid .portal-metric {
  background: #fff;
  border-color: var(--ev-border-subtle, #e5e5e5);
}

body.seller-portal-layout .portal-metric-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-metric-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #9b9390;
}

body.seller-portal-layout .portal-metric:has(.portal-interest-badge.strong) {
  background: #f0faf4;
  border: 1px solid #c3e6d0;
}

body.seller-portal-layout .portal-readonly-checklist label {
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-readonly-checklist input[type='checkbox'] {
  accent-color: #8b1a2f;
}

body.seller-portal-layout .portal-note-item,
body.seller-portal-layout .portal-showing-row,
body.seller-portal-layout .portal-upcoming-row,
body.seller-portal-layout .portal-activity-row {
  border-color: var(--ev-border-subtle, #e5e5e5);
}

body.seller-portal-layout .portal-text-link {
  color: var(--ev-gray, #666);
}

body.seller-portal-layout .portal-text-link:hover {
  color: var(--ev-black, #000);
}

body.seller-portal-layout .btn-outline {
  border-color: var(--ev-border, #ccc);
  color: var(--ev-charcoal, #1a1a1a);
  background: transparent;
}

body.seller-portal-layout .btn-primary {
  background: #8b1a2f;
  border-color: #8b1a2f;
  color: #fff;
}

body.seller-portal-layout .seller-page-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--ev-gray, #666);
  line-height: 1.45;
  text-align: center;
}

body.seller-portal-layout .seller-comm-form textarea {
  width: 100%;
  min-height: 6rem;
  padding: 0.75rem;
  border: 1px solid var(--ev-border, #ccc);
  border-radius: 4px;
  background: #fff;
  color: var(--ev-charcoal, #1a1a1a);
  font-family: inherit;
  font-size: 0.95rem;
  box-sizing: border-box;
}

body.seller-portal-layout .seller-comm-form textarea:focus {
  outline: none;
  border-color: #8b1a2f;
}

body.seller-portal-layout .seller-marketing-grid {
  display: grid;
  gap: 0.75rem;
}

/* Readability — heavier type within seller portal only (sizes/colors unchanged) */
body.seller-portal-layout .portal-activity-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 0.45rem;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

body.seller-portal-layout .portal-activity-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

body.seller-portal-layout .portal-activity-collapsible:not(.is-collapsed) .portal-activity-panel {
  max-height: 4000px;
}

body.seller-portal-layout .portal-activity-collapsible.is-collapsed .portal-activity-toggle {
  margin-bottom: 0;
}

body.seller-portal-layout .portal-activity-chevron {
  flex-shrink: 0;
  margin-left: 0.75rem;
  line-height: 0;
}

body.seller-portal-layout .portal-activity-chevron svg {
  display: block;
  transition: transform 0.25s ease;
}

body.seller-portal-layout .portal-activity-collapsible.is-collapsed .portal-activity-chevron svg {
  transform: rotate(-90deg);
}

body.seller-portal-layout #portalHomeWrap .portal-reassurance-updated,
body.seller-portal-layout #portalHomeWrap .portal-activity-time {
  font-size: 11px;
  color: #9b9390;
  font-weight: 400;
}

body.seller-portal-layout #portalHomeWrap .portal-narrative-text,
body.seller-portal-layout #portalHomeWrap .portal-recommend-reason,
body.seller-portal-layout #portalHomeWrap .portal-section-sub,
body.seller-portal-layout #portalHomeWrap .portal-activity-text {
  font-size: 15px;
  font-weight: 450;
  line-height: 1.65;
}

body.seller-portal-layout #portalHomeWrap .portal-recommend-headline {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

body.seller-portal-layout #portalHomeWrap .portal-recommend-badge.high {
  background: #8b1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  border: none;
}

body.seller-portal-layout .logged-in-view {
  font-weight: 500;
}

body.seller-portal-layout .portal-ai-attribution,
body.seller-portal-layout .portal-reassurance-updated,
body.seller-portal-layout .portal-metric-label,
body.seller-portal-layout .portal-timeline-sub,
body.seller-portal-layout .portal-activity-time,
body.seller-portal-layout .portal-metrics-context,
body.seller-portal-layout .portal-scroll-hint,
body.seller-portal-layout .portal-card-preview-stat,
body.seller-portal-layout .portal-advisor-title,
body.seller-portal-layout .portal-profile-grid dt,
body.seller-portal-layout .portal-showing-summary-label,
body.seller-portal-layout .portal-outlook-label,
body.seller-portal-layout .portal-outlook-footer,
body.seller-portal-layout .portal-cortex-footnote,
body.seller-portal-layout .portal-cortex-work-item p {
  font-weight: 500;
}

body.seller-portal-layout .cortex-status-bar,
body.seller-portal-layout #cortexStatusText {
  font-weight: 500;
}

body.seller-portal-layout .logged-in-view :is(
  button,
  .btn,
  .btn-outline,
  .btn-primary,
  .btn-sm,
  .seller-portal-back,
  .portal-star-btn,
  .portal-modal-close
) {
  font-weight: 500;
}

@media (min-width: 640px) {
  body.seller-portal-layout .seller-marketing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* HOME view — uniform horizontal alignment (margins/width only) */
body.seller-portal-layout #portalHomeWrap > #portalMetricsSection,
body.seller-portal-layout #portalHomeWrap > #portalTimelineSection,
body.seller-portal-layout #portalHomeWrap > #portalReassurance,
body.seller-portal-layout #portalHomeWrap > #sellerRecommendationSection,
body.seller-portal-layout #portalHomeWrap > #sellerRisksSection,
body.seller-portal-layout #portalHomeWrap > #sellerActivitySection,
body.seller-portal-layout #portalHomeWrap > .portal-home-grid-wrap {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}

/* HOME tab — match section-card shell on collapsible cards (beats inline + portal-dashboard accents) */
body.seller-portal-layout #portalHomeWrap #portalTimelineSection,
body.seller-portal-layout #portalHomeWrap #sellerRisksSection,
body.seller-portal-layout #portalHomeWrap #sellerActivitySection {
  background: #fff;
  border: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-left: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

body.seller-portal-layout .seller-marketing-strategies {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

body.seller-portal-layout .portal-marketing-strategy-card {
  background: #fff;
  border: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  padding: 20px;
}

body.seller-portal-layout .portal-marketing-strategy-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ev-charcoal, #1a1a1a);
  line-height: 1.25;
}

body.seller-portal-layout .portal-marketing-item-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-marketing-item-date {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 4px;
}

body.seller-portal-layout .portal-marketing-item-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 450;
  color: #4a4a4a;
  line-height: 1.6;
}

body.seller-portal-layout .portal-marketing-item-divider {
  border-top: 1px solid #f0edea;
  margin: 16px 0;
}

body.seller-portal-layout .portal-marketing-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ev-gray, #666);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: default;
}

body.seller-portal-layout .portal-marketing-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

body.seller-portal-layout .portal-marketing-badge--published,
body.seller-portal-layout .portal-marketing-badge--active {
  background: #f0faf4;
  color: #2e7d52;
  border: 1px solid #c3e6d0;
}

body.seller-portal-layout .portal-marketing-badge--scheduled {
  background: #fef9ec;
  color: #92680a;
  border: 1px solid #f5dfa0;
}

body.seller-portal-layout .portal-marketing-badge--production,
body.seller-portal-layout .portal-marketing-badge--draft {
  background: #f5f5f5;
  color: #6b6b6b;
  border: 1px solid #ddd;
}

/* —— Listing portal demo display sections (static content) —— */

#upcomingShowingsCard:has(#upcomingShowingsDemo) #upcomingShowingsPreview {
  display: none;
}

body.seller-portal-layout .portal-showing-card {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ev-border-subtle, #e5e5e5);
}

body.seller-portal-layout .portal-showing-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.seller-portal-layout .portal-showing-card:first-child {
  padding-top: 0;
}

body.seller-portal-layout .portal-showing-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

body.seller-portal-layout .portal-showing-datetime {
  font-weight: 600;
  font-size: 14px;
  color: var(--ev-charcoal, #1a1a1a);
  line-height: 1.4;
}

body.seller-portal-layout .portal-showing-card-header .portal-marketing-badge {
  flex-shrink: 0;
  margin-bottom: 0;
}

body.seller-portal-layout .portal-showing-agent {
  font-size: 13px;
  color: #4a4a4a;
  margin-bottom: 0.35rem;
}

body.seller-portal-layout .portal-showing-note {
  margin: 0;
  font-size: 13px;
  color: #9b9390;
  font-style: italic;
  line-height: 1.45;
}

#myMeetingSummariesSection:has(#myMeetingSummariesDemo) #myMeetingSummariesLoading,
#myMeetingSummariesSection:has(#myMeetingSummariesDemo) #meetingSummariesOptInPanel,
#myMeetingSummariesSection:has(#myMeetingSummariesDemo) #meetingSummariesContent {
  display: none !important;
}

body.seller-portal-layout .portal-meeting-summary-card {
  border: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 0.75rem;
}

body.seller-portal-layout .portal-meeting-summary-card:last-child {
  margin-bottom: 0;
}

body.seller-portal-layout .portal-meeting-summary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

body.seller-portal-layout .portal-meeting-summary-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

body.seller-portal-layout .portal-meeting-summary-date {
  font-weight: 600;
  font-size: 14px;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-meeting-summary-type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f5f5f5;
  color: #9b9390;
  border: 1px solid #e5e5e5;
}

body.seller-portal-layout .portal-meeting-summary-chevron {
  flex-shrink: 0;
  margin-left: 0.75rem;
  line-height: 0;
}

body.seller-portal-layout .portal-meeting-summary-chevron svg {
  display: block;
  transition: transform 0.25s ease;
}

body.seller-portal-layout .portal-meeting-summary-collapsible.is-collapsed .portal-meeting-summary-chevron svg {
  transform: rotate(-90deg);
}

body.seller-portal-layout .portal-meeting-summary-attendees {
  margin: -0.35rem 1rem 0.65rem;
  font-size: 12px;
  color: #9b9390;
}

body.seller-portal-layout .portal-meeting-summary-panel {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.3s ease;
  padding: 0 1rem 1rem;
}

body.seller-portal-layout .portal-meeting-summary-collapsible.is-collapsed .portal-meeting-summary-panel {
  max-height: 0;
  padding-bottom: 0;
}

body.seller-portal-layout .portal-meeting-summary-collapsible.is-collapsed .portal-meeting-summary-attendees {
  margin-bottom: 0.85rem;
}

body.seller-portal-layout .portal-meeting-summary-text {
  margin: 0 0 0.85rem;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-meeting-summary-actions {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid #8b1a1a;
  list-style: disc;
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.55;
}

body.seller-portal-layout .portal-meeting-summary-actions li {
  margin-bottom: 0.25rem;
}

body.seller-portal-layout .portal-meeting-summary-actions li:last-child {
  margin-bottom: 0;
}

#mySoftStagingSection:has(#mySoftStagingDemo) #mySoftStagingMeta,
#mySoftStagingSection:has(#mySoftStagingDemo) #mySoftStagingBody,
#mySoftStagingSection:has(#mySoftStagingDemo) #mySoftStagingEmpty {
  display: none !important;
}

body.seller-portal-layout .portal-soft-staging-category {
  margin-top: 16px;
}

body.seller-portal-layout .portal-soft-staging-category:first-child {
  margin-top: 0;
}

body.seller-portal-layout .portal-soft-staging-category-title {
  margin: 0 0 0.5rem;
  font-size: 14px;
  font-weight: 700;
  color: #2a2a2a;
}

body.seller-portal-layout .portal-soft-staging-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.seller-portal-layout .portal-soft-staging-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 14px;
}

body.seller-portal-layout .portal-soft-staging-indicator {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

body.seller-portal-layout .portal-soft-staging-item--done .portal-soft-staging-indicator {
  color: #2e7d52;
}

body.seller-portal-layout .portal-soft-staging-item--done .portal-soft-staging-text {
  color: #4a4a4a;
}

body.seller-portal-layout .portal-soft-staging-item--pending .portal-soft-staging-indicator,
body.seller-portal-layout .portal-soft-staging-item--pending .portal-soft-staging-text {
  color: #9b9390;
  font-style: italic;
}

#sellerListingPhotosSection:has(#sellerListingPhotosDemo) #sellerListingPhotosBody,
#sellerListingPhotosSection:has(#sellerListingPhotosDemo) #sellerListingPhotosEmpty,
#stagingPhotosModal:has(#stagingPhotosModalDemo) #stagingPhotosModalBody,
#stagingPhotosModal:has(#stagingPhotosModalDemo) #stagingPhotosModalEmpty {
  display: none !important;
}

body.seller-portal-layout .portal-staging-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

body.seller-portal-layout .portal-staging-photo-tile {
  aspect-ratio: 4 / 3;
  background: #f0edea;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

body.seller-portal-layout .portal-staging-photo-icon {
  color: #9b9390;
  margin-bottom: 0.5rem;
}

body.seller-portal-layout .portal-staging-photo-room {
  font-size: 13px;
  font-weight: 600;
  color: #4a4a4a;
  line-height: 1.3;
}

body.seller-portal-layout .portal-staging-photo-date {
  font-size: 11px;
  color: #9b9390;
  margin-top: 0.2rem;
}

body.seller-portal-layout .portal-staging-photo-caption {
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 11px;
  color: #9b9390;
}

@media (max-width: 520px) {
  body.seller-portal-layout .portal-staging-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* —— Meeting summaries modal —— */

#meetingSummariesModal .portal-meeting-summaries-modal h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

#meetingSummariesModal .portal-meeting-summary-card {
  border: none;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid #f0edea;
  margin: 12px 0 0;
  padding-top: 12px;
}

#meetingSummariesModal .portal-meeting-summary-card:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

#meetingSummariesModal .portal-meeting-summary-date {
  font-weight: 600;
  font-size: 14px;
  color: #2a2a2a;
}

#meetingSummariesModal .portal-meeting-summary-toggle {
  align-items: flex-start;
  cursor: pointer;
}

#meetingSummariesModal .portal-meeting-summary-header-main {
  flex: 1;
  min-width: 0;
}

#meetingSummariesModal .portal-meeting-summary-attendees {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 12px;
  color: #9b9390;
}

#meetingSummariesModal .portal-meeting-summary-type-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f5f5f5;
  color: #6b6b6b;
  border: none;
}

#meetingSummariesModal .portal-meeting-summary-collapsible.is-collapsed .portal-meeting-summary-panel {
  max-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}

#meetingSummariesModal .portal-meeting-summary-panel {
  padding: 0 1rem 1rem;
}

#meetingSummariesModal .portal-meeting-summary-text {
  font-size: 14px;
  line-height: 1.65;
  color: #4a4a4a;
}

#meetingSummariesModal .portal-meeting-summary-actions-title {
  margin: 12px 0 0.5rem;
  font-size: 13px;
  font-weight: 700;
  color: #2a2a2a;
}

#meetingSummariesModal .portal-meeting-summary-actions {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid #8b1a1a;
  line-height: 1.8;
  color: #4a4a4a;
}

#meetingSummariesModal .portal-meeting-summary-chevron {
  color: #9b9390;
  font-size: 14px;
  line-height: 1;
}

#meetingSummariesModal .portal-meeting-summary-collapsible:not(.is-collapsed) .portal-meeting-summary-chevron {
  transform: none;
}

/* —— Seller portal tab navigation —— */

body.seller-portal-layout .seller-portal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
}

body.seller-portal-layout .seller-portal-tab {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  font-family: inherit;
  border: 1px solid var(--ev-border-subtle, #e5e5e5);
  border-radius: 4px;
  background: #fff;
  color: var(--ev-charcoal, #1a1a1a);
  cursor: pointer;
}

body.seller-portal-layout .seller-portal-tab.active {
  background: #8b1a1a;
  border-color: #8b1a1a;
  color: #fff;
}

/* —— Tab page content cards —— */

body.seller-portal-layout .portal-tab-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 500;
}

body.seller-portal-layout .portal-listing-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-key-features-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.seller-portal-layout .portal-key-features-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #4a4a4a;
  border-bottom: 1px solid var(--ev-border-subtle, #e5e5e5);
}

body.seller-portal-layout .portal-key-features-list li:last-child {
  border-bottom: none;
}

body.seller-portal-layout .portal-key-features-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #8b1a1a;
  font-weight: 700;
}

body.seller-portal-layout .portal-listing-milestone-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.seller-portal-layout .portal-listing-milestone-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ev-border-subtle, #e5e5e5);
  font-size: 0.9rem;
}

body.seller-portal-layout .portal-listing-milestone-list li:last-child {
  border-bottom: none;
}

body.seller-portal-layout .portal-listing-milestone-date {
  font-weight: 600;
  color: var(--ev-charcoal, #1a1a1a);
  min-width: 7.5rem;
}

body.seller-portal-layout .portal-listing-milestone-label {
  color: #4a4a4a;
}

body.seller-portal-layout .portal-past-showings-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.seller-portal-layout .portal-past-showing-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ev-border-subtle, #e5e5e5);
}

body.seller-portal-layout .portal-past-showing-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.seller-portal-layout .portal-past-showing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

body.seller-portal-layout .portal-past-showing-meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ev-charcoal, #1a1a1a);
  line-height: 1.4;
}

body.seller-portal-layout .portal-interest-badge {
  flex-shrink: 0;
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.seller-portal-layout .portal-interest-badge--very-strong {
  background: #f0faf4;
  color: #2e7d52;
  border: 1px solid #c3e6d0;
}

body.seller-portal-layout .portal-interest-badge--strong {
  background: #f4faf6;
  color: #3d8f5c;
  border: 1px solid #d4eadc;
}

body.seller-portal-layout .portal-interest-badge--moderate {
  background: #fef9ec;
  color: #92680a;
  border: 1px solid #f5dfa0;
}

body.seller-portal-layout .portal-interest-badge--low {
  background: #f5f5f5;
  color: #6b6b6b;
  border: 1px solid #ddd;
}

body.seller-portal-layout .portal-past-showing-feedback {
  margin: 0 0 0.5rem;
  font-size: 13px;
  line-height: 1.55;
  color: #4a4a4a;
  font-style: italic;
}

body.seller-portal-layout .portal-past-showing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

body.seller-portal-layout .portal-reaction-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

body.seller-portal-layout .portal-reaction-tag--positive {
  background: #f0faf4;
  color: #2e7d52;
}

body.seller-portal-layout .portal-reaction-tag--neutral {
  background: #f5f5f5;
  color: #6b6b6b;
}

body.seller-portal-layout .portal-reaction-tag--negative {
  background: #fef0f0;
  color: #b42318;
}

body.seller-portal-layout .portal-contract-status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #f5f5f5;
  color: #6b6b6b;
  border: 1px solid #ddd;
  margin-bottom: 0.65rem;
}

body.seller-portal-layout .portal-contract-status-message {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a4a4a;
}

body.seller-portal-layout .portal-contract-dates-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.seller-portal-layout .portal-contract-dates-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ev-border-subtle, #e5e5e5);
  font-size: 0.9rem;
}

body.seller-portal-layout .portal-contract-dates-list li:last-child {
  border-bottom: none;
}

body.seller-portal-layout .portal-contract-date-label {
  font-weight: 500;
  color: var(--ev-charcoal, #1a1a1a);
  min-width: 10rem;
}

body.seller-portal-layout .portal-contract-date-value {
  color: #9b9390;
  font-style: italic;
}

body.seller-portal-layout .portal-contract-date-note {
  font-size: 0.8rem;
  color: #9b9390;
  width: 100%;
  padding-left: 10rem;
}

body.seller-portal-layout .portal-advisor-recommendations-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.seller-portal-layout .portal-advisor-recommendation-card {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ev-border-subtle, #e5e5e5);
}

body.seller-portal-layout .portal-advisor-recommendation-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.seller-portal-layout .portal-rec-priority-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

body.seller-portal-layout .portal-rec-priority-badge--high {
  background: #8b1a1a;
  color: #fff;
}

body.seller-portal-layout .portal-rec-priority-badge--monitor {
  background: #fef9ec;
  color: #92680a;
  border: 1px solid #f5dfa0;
}

body.seller-portal-layout .portal-rec-priority-badge--consider {
  background: #f5f5f5;
  color: #6b6b6b;
  border: 1px solid #ddd;
}

body.seller-portal-layout .portal-advisor-rec-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ev-charcoal, #1a1a1a);
}

body.seller-portal-layout .portal-advisor-rec-body {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a4a4a;
}

body.seller-portal-layout .portal-advisor-rec-date {
  margin: 0;
  font-size: 0.78rem;
  color: #9b9390;
}

#mySellerProfileSection:has(#mySellerProfileDemo) #mySellerProfileBody,
#mySellerProfileSection:has(#mySellerProfileDemo) #mySellerProfileEmpty {
  display: none !important;
}

body.seller-portal-layout .seller-page .card.portal-card {
  margin-bottom: 1rem;
}

/* Responsive grids */

@media (max-width: 767px) {
  body.seller-portal-layout #portalHomeGrid.portal-home-grid {
    grid-template-columns: 1fr !important;
  }

  body.seller-portal-layout .seller-marketing-strategies {
    grid-template-columns: 1fr;
  }

  body.seller-portal-layout .portal-past-showings-list {
    grid-template-columns: 1fr;
  }

  body.seller-portal-layout .portal-contract-date-note {
    padding-left: 0;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.seller-portal-layout #portalHomeGrid.portal-home-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  body.seller-portal-layout .seller-marketing-strategies {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  body.seller-portal-layout #portalHomeGrid.portal-home-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  body.seller-portal-layout .seller-marketing-strategies {
    grid-template-columns: repeat(3, 1fr);
  }
}
