/* Shared property workspace: inventory, directory and operations. */
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 18px; border-radius: 8px; background: #fff; color: #173237; transform: translateY(-180%); box-shadow: 0 4px 20px #17323730; }
.skip-link:focus { transform: translateY(0); }
.sidebar-brand { margin-bottom: 25px; }
.sidebar-navigation { margin-bottom: 18px; }
.mobile-navigation-toggle { display: none; }
.sidebar-nav { display: grid; gap: 19px; }
.nav-group { display: grid; gap: 3px; }
.nav-caption { padding-bottom: 5px; color: #a0bdb9; font-size: 10px; letter-spacing: .12em; }
.nav-item { min-height: 38px; font-size: 12px; }
.workspace-header-title { font-size: 13px; }
.workspace-header-eyebrow { font-size: 10px; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 15px; }
.panel > .section-heading { margin: 0; padding: 23px 25px 19px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0 0 4px; }
.section-heading .muted { margin: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.breadcrumbs a { color: #176e58; }
.breadcrumbs a:hover { text-decoration: underline; }
.section-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.section-tabs a { display: inline-flex; align-items: center; min-height: 40px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #4e6c68; font-size: 12px; font-weight: 720; }
.section-tabs a:hover { border-color: #99cbb9; background: #f1f8f4; }
.section-tabs a[aria-current="page"], .section-tabs a.is-active { background: #e5f3ec; color: #145f49; border-color: #a9d3bf; }
.workspace-hero { padding: 29px 31px; }
.workspace-hero h1 { font-size: clamp(29px, 3vw, 38px); }
.workspace-portfolios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.portfolio-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.portfolio-card-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.portfolio-card h2 { font-size: 22px; }
.portfolio-number { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin: 20px 0 12px; font-size: 36px; line-height: 1.1; font-weight: 780; color: #203f3c; letter-spacing: -.04em; }
.portfolio-number span { color: #647e77; font-size: 12px; font-weight: 550; letter-spacing: 0; }
.portfolio-card p { color: #61776f; line-height: 1.6; font-size: 12px; }
.portfolio-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.directory-shortcuts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 23px; margin-bottom: 27px; border: 1px solid var(--line); border-radius: 12px; background: #eef4ef; }
.directory-shortcuts h2 { font-size: 16px; }
.directory-shortcuts p { font-size: 12px; }
.directory-shortcut-links { display: flex; flex-wrap: wrap; gap: 8px; }
.directory-shortcut-links a { padding: 9px 11px; border: 1px solid #d4e4db; border-radius: 7px; background: #fff; font-size: 11px; color: #426759; }
.directory-shortcut-links a:hover { border-color: #89bda4; }
.directory-shortcut-links strong { margin-right: 3px; color: #174d38; }
.diagnostic-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.diagnostic-panel > summary::-webkit-details-marker { display: none; }
.diagnostic-panel > summary::after { content: '+'; flex: none; color: #39735a; font-size: 22px; }
.diagnostic-panel[open] > summary::after { content: '−'; }
.diagnostic-panel > summary strong { display: block; font-size: 14px; color: #254c40; }
.diagnostic-panel > summary small { display: block; margin-top: 5px; color: #60786d; font-size: 12px; line-height: 1.5; }
.diagnostic-panel[open] > summary { border-bottom: 1px solid var(--line); }
.diagnostic-panel > .panel { border: 0; border-radius: 0; box-shadow: none; margin-bottom: 0; }
.diagnostic-panel > .stats { padding: 20px 24px 0; }
.diagnostic-panel > .notice { margin: 15px 24px; }
.diagnostic-panel > .muted { padding: 18px 24px; }
.review-alert { font-weight: 500; line-height: 1.6; }
.review-alert:not(.review-alert-success):not(.review-alert-error) { border: 1px solid #e9d8b7; background: #fff8eb; color: #74552f; }
.review-alert strong { font-weight: 760; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; margin: 2px 0; border: 1px solid #d8e4dc; border-radius: 6px; background: #f0f4f0; color: #46655b; font-size: 11px; font-weight: 650; white-space: nowrap; }
.status-badge.status-success, .status-badge.is-success, .status-badge.status-published { background: #eaf6ee; border-color: #c9e6d4; color: #246546; }
.status-badge.status-warning, .status-badge.is-warning, .status-badge.status-review { background: #fff5e4; border-color: #efd9b4; color: #7e5c29; }
.status-badge.status-error, .status-badge.is-error, .status-badge.status-failed { background: #fff0ed; border-color: #edcec6; color: #904d3a; }
.table-wrap { max-width: 100%; }
.table-wrap:focus-visible { outline-offset: -3px; }
.data-table td small, .data-table td .muted { display: block; margin-top: 5px; font-size: 11px; line-height: 1.5; color: #6b8078; }
.data-table td { overflow-wrap: anywhere; }
.data-table a:not(.status-badge):hover { text-decoration: underline; }
.table-footer { gap: 15px; }
.table-footer > .pagination { margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); gap: 22px; align-items: start; }
.detail-grid > * { min-width: 0; }
.definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0 24px; }
.definition-grid > div { min-width: 0; padding: 17px 0; border-bottom: 1px solid #edf2ed; }
.definition-grid dt { color: #72857b; font-size: 11px; margin-bottom: 7px; }
.definition-grid dd { margin: 0; color: #234d3d; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.compact-list { list-style: none; padding: 0; margin: 0; }
.compact-list li, .compact-list > div { padding: 14px 23px; border-bottom: 1px solid #edf2ed; font-size: 13px; line-height: 1.6; }
.compact-list li:last-child, .compact-list > div:last-child { border-bottom: 0; }
.compact-list a { color: #176e53; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 23px; }
.media-grid img { display: block; width: 100%; height: 160px; object-fit: cover; border-radius: 8px; background: #edf2ed; }
.media-grid figure { margin: 0; min-width: 0; }
.media-grid figcaption { margin-top: 7px; color: var(--muted); font-size: 11px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: #f5f8f4; }
.profile-avatar.is-firm { object-fit: contain; padding: 6px; }
.source-state-summary { padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 20px 35px; }
.source-state-summary div { display: grid; gap: 7px; font-size: 12px; color: #526c5f; }
.source-state-summary small { color: #75897c; font-size: 11px; }
@media (max-width: 1100px) {
    .workspace-portfolios { gap: 12px; }
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .directory-shortcuts { display: block; }
    .directory-shortcut-links { margin-top: 14px; }
}
@media (max-width: 900px) {
    .sidebar { padding: 13px 18px; }
    .sidebar-brand { margin: 0 0 12px; }
    .mobile-navigation-toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid #4c6c61; border-radius: 8px; color: #e8f6ee; cursor: pointer; font-size: 12px; list-style: none; }
    .mobile-navigation-toggle::-webkit-details-marker { display: none; }
    .sidebar-navigation { margin-bottom: 0; }
    .sidebar-navigation[open] > .mobile-navigation-toggle { margin-bottom: 15px; }
    .sidebar-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .nav-caption { display: block; padding-left: 9px; }
    .nav-item { min-height: 41px; white-space: normal; font-size: 12px; }
}
@media (max-width: 680px) {
    .workspace-portfolios { grid-template-columns: 1fr; }
    .portfolio-card { padding: 20px; }
    .portfolio-number { font-size: 32px; }
    .workspace-hero .hero-mode { display: none; }
    .section-tabs { gap: 6px; }
    .section-tabs a { padding: 9px 12px; }
    .panel > .section-heading { padding: 18px; }
    .diagnostic-panel > summary { padding: 17px 18px; }
    .diagnostic-panel > summary > .muted { display: none; }
    .diagnostic-panel > .stats { padding: 15px; }
    .definition-grid { padding: 0 18px; gap: 0 14px; }
    .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 17px; }
    .media-grid img { height: 130px; }
    .landlord-table { min-width: 0; }
    .landlord-table thead { display: none; }
    .landlord-table tbody { display: grid; gap: 12px; padding: 12px; }
    .landlord-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: #fff; }
    .landlord-table tbody td { padding: 5px 0; border: 0; min-width: 0; }
    .landlord-table td[data-label]::before { content: attr(data-label); display: block; color: #738c7c; font-size: 10px; margin-bottom: 5px; }
    .landlord-table td:first-child { grid-column: 1 / -1; }
    .landlord-table td:first-child::before { display: none; }
    .landlord-table .source-identity { min-width: 0; }
}
@media (max-width: 420px) {
    .definition-grid { grid-template-columns: 1fr; }
    .sidebar-nav { grid-template-columns: 1fr; }
    .directory-shortcut-links a { flex: 1 1 auto; }
}
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.contact-card { display: flex; align-items: flex-start; gap: 15px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fbfdfb; }
.contact-card > div { min-width: 0; overflow-wrap: anywhere; }
.contact-card h3 { font-size: 15px; margin-bottom: 7px; }
.contact-card a { color: #176e53; }
.contact-portrait { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 10px; background: #edf2ed; }
.directory-avatar { width: 44px; height: 44px; flex: none; object-fit: cover; border-radius: 9px; background: #edf2ed; }
.directory-portrait { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; background: #edf2ed; }
.directory-avatar.is-logo, .directory-portrait.is-logo { object-fit: contain; padding: 5px; background: #fff; }
.status-published, .status-for_sale { color: #24674a; background: #e6f3eb; border-color: #cae5d5; }
.status-upcoming { color: #466c89; background: #edf4fa; border-color: #d2e0ef; }
.status-draft, .status-removed, .status-sold { color: #657b71; background: #eff3ef; border-color: #dce5dd; }
.status-attention, .status-review_required { color: #805b24; background: #fff5e5; border-color: #ebd3aa; }
.review-alert a { text-decoration: underline; text-underline-offset: 3px; }
section[id], div[id], details[id] { scroll-margin-top: 95px; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { padding: 16px; } .contact-portrait { width: 52px; height: 52px; } }

.detail-body > .definition-grid, .detail-body > .media-grid { padding: 0; }

/* Sales shares one source scope across inventory and professional profiles. */
.selection-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 24px 0 14px; }
.selection-heading h2 { margin: 0 0 6px; font-size: 16px; }
.selection-heading p, .selection-summary { margin: 0 0 18px; font-size: 12px; line-height: 1.6; }
.selection-heading a { flex: none; color: #176e53; font-size: 12px; }
.sales-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sales-stats .stat { min-width: 0; }
.capacity-note { margin: -5px 0 20px; font-size: 12px; line-height: 1.6; }
.sales-workspace .sales-inventory-table { min-width: 960px; table-layout: auto; }
.sales-workspace .sales-inventory-table td:first-child { min-width: 220px; }
.sales-workspace .sales-inventory-table td { overflow-wrap: break-word; }
.sales-workspace .sales-directory-table { min-width: 760px; table-layout: auto; }
.sales-workspace .diagnostic-panel .data-table { min-width: 760px; }
.sales-workspace .source-copy { white-space: pre-line; line-height: 1.8; }
@media (max-width: 680px) {
    .selection-heading { display: block; }
    .selection-heading a { display: inline-block; margin-bottom: 8px; }
    .sales-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sales-workspace .sales-inventory-table, .sales-workspace .sales-directory-table { display: block; min-width: 0; width: 100%; }
    .sales-workspace .sales-inventory-table thead, .sales-workspace .sales-directory-table thead { display: none; }
    .sales-workspace .sales-inventory-table tbody, .sales-workspace .sales-directory-table tbody { display: grid; gap: 12px; padding: 12px; }
    .sales-workspace .sales-inventory-table tbody tr, .sales-workspace .sales-directory-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .sales-workspace .sales-inventory-table tbody td, .sales-workspace .sales-directory-table tbody td { display: block; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; font-size: 12px; line-height: 1.6; }
    .sales-workspace .sales-inventory-table tbody td:first-child, .sales-workspace .sales-directory-table tbody td:first-child, .sales-workspace .sales-inventory-table td.empty, .sales-workspace .sales-directory-table td.empty { grid-column: 1 / -1; min-width: 0; }
    .sales-workspace .sales-inventory-table td[data-label]::before, .sales-workspace .sales-directory-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #738c7c; font-size: 10px; font-weight: 700; }
    .sales-workspace .sales-inventory-table td:first-child::before, .sales-workspace .sales-directory-table td:first-child::before { display: none; }
    .sales-workspace .sales-inventory-table .row-link strong { font-size: 15px; line-height: 1.5; }
    .sales-workspace .sales-directory-table .source-identity { min-width: 0; }
}
@media (max-width: 420px) {
    .sales-workspace .sales-inventory-table tbody tr, .sales-workspace .sales-directory-table tbody tr { gap: 14px; padding: 15px; }
}
