/*
 * SmartHub authenticated UI foundation (Phase UI-1).
 *
 * This stylesheet intentionally layers over the established application CSS.
 * It provides safer shared primitives without changing route or workflow logic.
 */

.app-shell {
    --sm-sidebar-width: 272px;
    --sm-radius: 12px;
    --sm-radius-sm: 10px;
    --sm-space-card: clamp(1rem, 1.4vw, 1.25rem);
}

.app-shell-grid,
.app-main {
    min-width: 0;
}

@media (min-width: 992px) {
    .app-shell-grid {
        display: grid;
        grid-template-columns: var(--sm-sidebar-width) minmax(0, 1fr);
        min-height: 100vh;
    }

    .app-shell-grid > .sidebar,
    .app-shell-grid > .app-main {
        width: auto;
        max-width: none;
    }
}

.app-shell .sidebar-sticky {
    padding: 1rem 0.8rem;
    gap: 0.8rem;
}

.app-shell .brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.68rem;
    padding: 0.72rem 0.75rem;
    border-radius: var(--sm-radius);
}

.app-shell .brand-mark {
    flex: 0 0 2.3rem;
    width: 2.3rem;
    height: 2.3rem;
    margin: 0;
    padding: 0.34rem;
    border-radius: 0.72rem;
}

.app-shell .brand {
    margin: 0;
    color: #fff;
    font-size: 0.98rem;
    line-height: 1.18;
    letter-spacing: -0.015em;
    white-space: nowrap;
}

.app-shell .brand-product {
    display: block;
    color: #9fe0bb;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.01em;
}

.app-shell .sidebar-nav-wrap,
.app-shell .sidebar-nav {
    min-width: 0;
}

.app-shell .sidebar-nav {
    gap: 0.28rem;
    padding-right: 0.2rem;
    margin-right: -0.2rem;
}

.app-shell .sidebar-group {
    border-radius: var(--sm-radius-sm);
}

.app-shell .sidebar-group summary {
    min-height: 2.58rem;
    gap: 0.34rem;
    padding: 0.56rem 0.48rem;
    font-size: 0.74rem;
}

.app-shell .sidebar-group summary .sm-icon { width: 0.92rem; height: 0.92rem; }
.app-shell .sidebar-group summary .sidebar-group-count { min-width: 1.25rem; height: 1.2rem; font-size: 0.64rem; }
.app-shell .sidebar-group summary .sidebar-group-chevron { width: 0.42rem; height: 0.42rem; margin-left: 0; }

.app-shell .sidebar-group-title,
.app-shell .sidebar .nav-link,
.app-shell .sidebar .nav-link-label,
.app-shell .sidebar-footer-value,
.app-shell .sidebar-footer-label {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.app-shell .sidebar-group-title,
.app-shell .sidebar .nav-link-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell .sidebar .nav-link {
    gap: 0.58rem;
    min-height: 2.35rem;
    padding: 0.58rem 0.7rem;
    border-radius: 9px;
    font-size: 0.79rem;
    line-height: 1.28;
}

.app-shell .sidebar .nav-link:hover,
.app-shell .sidebar .nav-link.active {
    transform: none;
}

.app-shell .sidebar .nav-link::before {
    flex: 0 0 0.42rem;
    width: 0.42rem;
    height: 0.42rem;
}

.app-shell .sidebar-group-count,
.app-shell .sidebar .nav-link-badge {
    white-space: nowrap;
    overflow-wrap: normal;
    font-variant-numeric: tabular-nums;
}

.app-shell .sidebar-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.28rem 0.65rem;
    padding: 0.58rem 0.7rem;
    border-radius: var(--sm-radius-sm);
}

.app-shell .sidebar-footer-label {
    grid-column: 1 / -1;
    font-size: 0.62rem;
    line-height: 1.1;
}

.app-shell .sidebar-footer-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell .sidebar-footer .brand-note {
    margin: 0 !important;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: nowrap;
}

.app-shell .content-wrap {
    width: 100%;
    max-width: none;
    padding: clamp(1rem, 1.7vw, 1.65rem);
}

.app-shell .topbar {
    gap: 1rem;
    margin-bottom: 1.1rem;
    padding: 1rem 1.15rem;
    border-radius: var(--sm-radius);
}

.app-shell .page-header h1 {
    margin: 0.12rem 0 0.25rem;
    font-size: clamp(1.65rem, 2.1vw, 2rem);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
}

.app-shell .page-kicker,
.app-shell .section-kicker {
    font-size: 0.7rem;
    line-height: 1.2;
}

.app-shell .page-header .text-muted-soft {
    max-width: 68rem;
    font-size: 0.86rem;
    line-height: 1.45;
}

.app-shell .user-chip {
    padding: 0.55rem 0.72rem;
    border-radius: 999px;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.app-shell h4,
.app-shell h5,
.app-shell h6,
.app-shell .section-title,
.app-shell .record-title {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.app-shell p,
.app-shell .section-subtitle,
.app-shell .stat-note,
.app-shell .record-subtitle,
.app-shell .text-muted-soft {
    overflow-wrap: break-word;
    word-break: normal;
}

.app-shell .section-title {
    font-size: clamp(1.2rem, 1.55vw, 1.5rem);
    line-height: 1.22;
}

.app-shell .section-subtitle,
.app-shell p {
    line-height: 1.55;
}

.app-shell .card,
.app-shell .app-card {
    border-radius: var(--sm-radius);
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.055);
}

.app-shell .card > .card-body,
.app-shell .app-card > .card-body {
    padding: var(--sm-space-card);
}

.app-shell .hero-card > .card-body {
    padding: clamp(1.15rem, 2vw, 1.75rem) !important;
}

.app-shell .btn {
    flex-shrink: 0;
    min-height: 2.55rem;
    padding: 0.56rem 0.92rem;
    border-radius: 9px;
    font-size: 0.88rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.app-shell .btn-sm,
.app-shell .btn-group-sm > .btn {
    min-height: 2.12rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    font-size: 0.78rem;
}

.app-shell .badge,
.app-shell [class*="ops-status"],
.app-shell .service-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.5rem;
    max-width: 100%;
    padding: 0.27rem 0.56rem;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.1;
}

.app-shell .stat-value,
.app-shell .amount-cell,
.app-shell .currency-value,
.app-shell .finance-nowrap,
.app-shell .numeric-value,
.app-shell [data-numeric] {
    font-variant-numeric: tabular-nums lining-nums;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.app-shell .stat-value {
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.08;
}

.app-shell .metric-card .card-body {
    padding: 1rem !important;
}

.app-shell .form-control,
.app-shell .form-select {
    min-height: 2.72rem;
    padding: 0.6rem 0.82rem;
    border-radius: 9px;
}

.app-shell .form-label {
    margin-bottom: 0.38rem;
    font-size: 0.84rem;
}

.app-shell .form-text {
    font-size: 0.78rem;
    line-height: 1.45;
}

.app-shell .table {
    border-collapse: separate;
    border-spacing: 0;
}

.app-shell .table thead th {
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
}

.app-shell .table tbody tr {
    box-shadow: none;
}

.app-shell .table tbody td {
    padding: 0.72rem 0.75rem;
    border-top: 1px solid var(--line);
}

.app-shell .table tbody td:first-child,
.app-shell .table tbody td:last-child {
    border-radius: 0;
}

.app-shell .table .btn,
.app-shell .table .badge,
.app-shell .table .dropdown-toggle {
    white-space: nowrap;
}

.app-shell .table .cell-id,
.app-shell .table .cell-long {
    max-width: 18rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell .empty-state,
.app-shell .dashboard-empty-state {
    min-height: 0;
    padding: 1rem;
    border: 1px dashed #cbd7e1;
    border-radius: var(--sm-radius-sm);
    background: #f8fbfc;
    color: var(--muted);
    text-align: left;
}

.app-shell .empty-state strong,
.app-shell .dashboard-empty-state strong,
.app-shell .empty-state span,
.app-shell .dashboard-empty-state span {
    display: block;
}

.app-shell .ui-record-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: .75rem;
}

.app-shell .ui-record-heading > :first-child {
    min-width: 0;
}

.app-shell .ui-record-heading :is(h1, h2, h3, h4, p, .small),
.app-shell .ui-assignment-row :is(.fw-bold, .small) {
    overflow-wrap: anywhere;
}

.app-shell .ui-record-heading > .badge {
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
}

.app-shell .ui-assignment-row {
    display: grid;
    grid-template-columns: minmax(11rem, .42fr) minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.app-shell .ui-assignment-row > :first-child,
.app-shell .ui-assignment-actions,
.app-shell .ui-assignment-actions form {
    min-width: 0;
}

.app-shell .ui-assignment-actions .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
}

@media (max-width: 767.98px) {
    .app-shell .ui-assignment-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

.app-shell .empty-state strong,
.app-shell .dashboard-empty-state strong {
    color: var(--body);
}

.app-shell .empty-state span,
.app-shell .dashboard-empty-state span {
    margin-top: 0.3rem;
}

.app-shell .finance-ledger-table {
    min-width: 920px;
}

.app-shell .finance-receipt-table {
    min-width: 980px;
}

.app-shell .finance-ledger-table .finance-clip,
.app-shell .finance-receipt-table .finance-clip,
.app-shell .finance-summary-table .finance-clip {
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell .finance-summary-table .finance-clip {
    max-width: 13rem;
}

.app-shell .finance-ledger-table .finance-property-cell {
    max-width: 18rem;
}

.app-shell .finance-ledger-table .finance-actions {
    min-width: 13rem;
}

.app-shell .finance-receipt-table .finance-actions {
    min-width: 17rem;
}

.ui-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #dce4eb;
    border-radius: var(--sm-radius);
    background: linear-gradient(135deg, #102a43, #173d5d 72%, #225744);
    color: #fff;
    box-shadow: 0 12px 28px rgba(16, 42, 67, 0.12);
}

.ui-command-bar .section-title,
.ui-command-bar .section-subtitle {
    color: #fff;
}

.ui-command-bar .section-subtitle {
    color: rgba(255, 255, 255, 0.72);
}

.ui-context-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.82rem 1rem;
    border: 1px solid rgba(16, 42, 67, 0.11);
    border-left: 4px solid var(--brand-green);
    border-radius: var(--sm-radius-sm);
    background: linear-gradient(90deg, rgba(232, 245, 238, 0.82), rgba(255, 255, 255, 0.96) 48%, rgba(237, 243, 247, 0.88));
    box-shadow: 0 8px 22px rgba(16, 42, 67, 0.045);
}

.ui-context-strip__title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
}

.ui-context-strip__note {
    margin: 0.18rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.ui-stat-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: var(--sm-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.045);
}

.ui-stat-strip__item {
    position: relative;
    min-width: 0;
    padding: 0.82rem 1rem;
}

.ui-stat-strip__item + .ui-stat-strip__item {
    border-left: 1px solid #e3e9ee;
}

.ui-stat-strip__item::after {
    position: absolute;
    right: 1rem;
    bottom: 0;
    left: 1rem;
    height: 2px;
    border-radius: 999px;
    background: transparent;
    content: "";
}

.ui-stat-strip__item.is-positive::after { background: rgba(47, 133, 90, 0.7); }
.ui-stat-strip__item.is-info::after { background: rgba(30, 111, 139, 0.56); }
.ui-stat-strip__item.is-attention::after { background: rgba(194, 122, 18, 0.72); }
.ui-stat-strip__item.is-critical::after { background: rgba(180, 35, 24, 0.68); }

.ui-stat-strip__label {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ui-stat-strip__value {
    display: block;
    margin-top: 0.3rem;
    color: var(--brand-navy);
    font-size: clamp(1.28rem, 1.65vw, 1.66rem);
    font-weight: 850;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: 1.05;
    white-space: nowrap;
}

.ui-stat-strip__note {
    display: block;
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.ui-panel {
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: var(--sm-radius);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.045);
}

.ui-panel__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1rem 0.78rem;
    border-bottom: 1px solid #e6ecf1;
}

.ui-panel__body {
    padding: 0 1rem;
}

.ui-record-row {
    display: grid;
    grid-template-columns: minmax(11rem, 1.35fr) minmax(0, 2fr) auto;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 0.82rem 0;
    border-bottom: 1px solid #e8edf2;
}

.ui-record-row:last-child { border-bottom: 0; }

.ui-record-row__identity,
.ui-record-row__metadata,
.ui-record-row__actions { min-width: 0; }

.ui-record-row__title {
    display: block;
    overflow: hidden;
    color: var(--brand-navy);
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-record-row__subtitle {
    display: block;
    overflow: hidden;
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-metadata-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    min-width: 0;
}

.ui-metadata-item { min-width: 0; }

.ui-metadata-item__label {
    display: block;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ui-metadata-item__value {
    display: block;
    overflow: hidden;
    margin-top: 0.13rem;
    color: #24364b;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-action-cluster {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
}

.ui-inline-state {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #43576d;
    font-size: 0.73rem;
    font-weight: 750;
    line-height: 1.3;
}

.ui-inline-state::before {
    flex: 0 0 0.45rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: #718096;
    content: "";
}

.ui-inline-state.is-active::before { background: var(--brand-green); }
.ui-inline-state.is-info::before { background: #1e6f8b; }
.ui-inline-state.is-pending::before { background: #c47a12; }
.ui-inline-state.is-critical::before { background: #b42318; }

.ui-overflow-menu {
    position: relative;
}

.ui-overflow-menu > summary {
    list-style: none;
    cursor: pointer;
}

.ui-overflow-menu > summary::-webkit-details-marker { display: none; }

.ui-overflow-menu__panel {
    position: absolute;
    z-index: 20;
    right: 0;
    bottom: calc(100% + 0.4rem);
    min-width: 10rem;
    padding: 0.5rem;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 42, 67, 0.16);
}

.account-service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.88rem 0;
    border-bottom: 1px solid #e7edf1;
}

.account-service-row:last-child { border-bottom: 0; }

.account-service-row__identity {
    display: flex;
    align-items: center;
    gap: 0.78rem;
    min-width: 0;
}

.account-service-row__identity > div { min-width: 0; }

.account-service-row__mark {
    display: inline-grid;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.72rem;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.1), rgba(47, 133, 90, 0.16));
    color: var(--brand-navy);
    font-size: 0.82rem;
    font-weight: 900;
}

.account-service-row__title {
    margin: 0;
    color: var(--brand-navy);
    font-size: 0.95rem;
    font-weight: 850;
    line-height: 1.3;
}

.account-service-row__description {
    overflow: hidden;
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-service-row--available .account-service-row__mark {
    background: #edf3f7;
    color: #52677d;
}

.my-realtgate-overview .account-notification-strip {
    border-left-color: #1e6f8b;
    background: linear-gradient(90deg, rgba(232, 244, 248, 0.88), rgba(255, 255, 255, 0.96));
}

.owners-directory .record-list { gap: 0.72rem; }

.owners-directory .record-card {
    border-radius: var(--sm-radius-sm);
    background: #fff;
    box-shadow: 0 7px 20px rgba(16, 42, 67, 0.045);
}

.owners-directory .record-card-body { padding: 0 0.95rem 0.82rem; }
.owners-directory .owner-record-summary { padding-top: 0.82rem; }
.owners-directory .owner-more-actions { display: grid; gap: 0.42rem; }
.owners-directory .owner-more-actions form { margin: 0; }

.tenants-directory .record-list { gap: 0.72rem; }

.tenants-directory .record-card {
    border-radius: var(--sm-radius-sm);
    background: #fff;
    box-shadow: 0 7px 20px rgba(16, 42, 67, 0.045);
}

.tenants-directory .record-card-body { padding: 0 0.95rem 0.82rem; }
.tenants-directory .tenant-record-summary { padding-top: 0.82rem; }
.tenants-directory .tenant-more-actions { display: grid; gap: 0.42rem; }
.tenants-directory .tenant-more-actions form { margin: 0; }

.listings-directory .listing-record-list { gap: 0.72rem; }

.listings-directory .listing-record-card {
    border-radius: var(--sm-radius-sm);
    background: #fff;
    box-shadow: 0 7px 20px rgba(16, 42, 67, 0.045);
}

.listings-directory .listing-record-card .record-card-body { padding: 0 0.95rem; }
.listings-directory .listing-record-summary { padding-block: 0.82rem; }
.listings-directory .listing-more-actions { display: grid; gap: 0.42rem; }
.listings-directory .listing-more-actions form { margin: 0; }

.project-clients-directory .project-client-search {
    display: grid;
    grid-template-columns: minmax(18rem, 1fr) auto auto;
    align-items: end;
    gap: 0.65rem;
}

.project-clients-directory .project-client-record-list { gap: 0.72rem; }

.project-clients-directory .project-client-record-card {
    border-radius: var(--sm-radius-sm);
    background: #fff;
    box-shadow: 0 7px 20px rgba(16, 42, 67, 0.045);
}

.project-clients-directory .project-client-record-card .record-card-body { padding: 0 0.95rem; }
.project-clients-directory .project-client-record-summary { padding-block: 0.82rem; }
.project-clients-directory .project-client-more-actions { display: grid; gap: 0.42rem; }
.project-clients-directory .project-client-more-actions form { margin: 0; }

@media (max-width: 767.98px) {
    .project-clients-directory .project-client-search { grid-template-columns: 1fr; }
}

.ui-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.ui-metric {
    min-width: 0;
    padding: 0.95rem 1rem;
    border: 1px solid #dce4eb;
    border-radius: var(--sm-radius-sm);
    background: #fff;
}

.ui-metric__label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.25;
    text-transform: uppercase;
}

.ui-metric__value {
    margin-top: 0.42rem;
    color: var(--brand-navy);
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-weight: 850;
    font-variant-numeric: tabular-nums lining-nums;
    line-height: 1.05;
    white-space: nowrap;
}

.ui-metric__value.is-text {
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-metric__note {
    margin-top: 0.38rem;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.ui-metric__label,
.ui-metric__value,
.ui-metric__note { display: block; }

.ui-metric--attention {
    border-color: rgba(194, 65, 12, 0.28);
    background: linear-gradient(180deg, #fffaf5, #fff);
}

.property-management-proof .property-management-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.property-management-proof .property-management-metrics .ui-stat-strip__item:nth-child(n + 5) {
    border-top: 1px solid #e3e9ee;
}

.property-management-proof .property-management-metrics .ui-stat-strip__value.currency-value {
    font-size: clamp(1.2rem, 1.65vw, 1.65rem);
}

.property-management-proof .operational-notification-strip {
    background: linear-gradient(90deg, rgba(237, 243, 247, 0.92), rgba(255, 255, 255, 0.96));
}

.property-management-proof .admin-table .amount-cell,
.property-management-proof .lease-countdown {
    font-variant-numeric: tabular-nums;
}

.buyer-dashboard .buyer-overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.buyer-dashboard .buyer-upcoming-viewing {
    box-shadow: 0 10px 26px rgba(154, 52, 18, 0.1);
}

.buyer-dashboard .buyer-upcoming-viewing__body {
    padding: 1rem;
}

.buyer-dashboard .buyer-marketplace-match-grid {
    gap: 0.8rem;
}

.buyer-dashboard .buyer-recommendation-cover--empty {
    min-height: 7.5rem;
    aspect-ratio: auto;
}

.buyer-dashboard .buyer-marketplace-match__body,
.buyer-dashboard .buyer-recommendation-card__body {
    padding: 0.92rem;
}

.project-client-dashboard .project-overview-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-client-dashboard .project-summary-label {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.project-client-portfolio .project-portfolio-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-client-portfolio .project-card-heading {
    min-width: 0;
}

.project-client-portfolio .project-card-statuses {
    flex: 0 0 auto;
    max-width: min(100%, 15.5rem);
}

.project-client-portfolio .project-card-statuses .badge {
    width: auto;
}

.project-client-dashboard .ui-metric__value--text,
.project-client-dashboard .ui-stat-strip__value--text {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.project-overview-grid,
.project-stage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.project-stage-grid > div + div {
    padding-left: 1rem;
    border-left: 1px solid #e3e9ee;
}

.project-client-dashboard .project-switcher .btn {
    max-width: none;
    min-height: 2.6rem;
    white-space: normal;
}

.project-client-dashboard .project-switcher-options {
    display: grid;
    flex: 1 1 42rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.tenants-directory .search-toolbar .input-group {
    flex: 1 1 36rem;
    max-width: 42rem;
}

.ui-section-card {
    border: 1px solid #dce4eb;
    border-radius: var(--sm-radius);
    background: #fff;
    box-shadow: 0 8px 24px rgba(16, 42, 67, 0.05);
}

.ui-section-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #e5ebf0;
}

.ui-section-card__body {
    padding: 1rem 1.15rem;
}

.ui-compact-list {
    display: grid;
    gap: 0;
}

.ui-compact-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.82rem 0;
    border-bottom: 1px solid #e8edf2;
}

.ui-compact-row:first-child { padding-top: 0; }
.ui-compact-row:last-child { padding-bottom: 0; border-bottom: 0; }

.ui-progress {
    height: 0.52rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e5ebf0;
}

.ui-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-green), #5eb382);
}

.ui-tab-strip {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding: 0.68rem;
    border: 1px solid #dce4eb;
    border-radius: var(--sm-radius);
    background: #fff;
    scrollbar-width: thin;
}

.ui-tab-strip .btn {
    flex: 0 0 auto;
}

.workspace-super-admin .topbar,
.workspace-buyer .topbar,
.workspace-projects .topbar,
.workspace-property-management .topbar {
    margin-bottom: 0.9rem;
}

.executive-overview .executive-hero,
.buyer-dashboard .buyer-dashboard-hero,
.project-client-dashboard .project-dashboard-hero {
    margin: 0;
}

.executive-overview .overview-grid,
.executive-overview .service-grid {
    display: grid;
    gap: 0.8rem;
}

.executive-overview .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.executive-overview .overview-card,
.executive-overview .service-card,
.executive-overview .action-item,
.executive-overview .account-item,
.executive-overview .activity-item {
    border: 1px solid rgba(16, 42, 67, 0.11);
    border-radius: var(--sm-radius-sm);
    background: #fff;
}

.executive-overview .overview-card {
    display: flex;
    min-height: 7rem;
    flex-direction: column;
    justify-content: space-between;
}

.executive-overview .action-list,
.executive-overview .account-list,
.executive-overview .activity-list {
    display: grid;
    gap: 0;
}

.executive-overview .action-item {
    grid-template-columns: minmax(10rem, 1.25fr) minmax(0, 1.55fr) auto;
    border-width: 0 0 1px;
    border-left: 3px solid #d7a32f;
    border-radius: 0;
    padding-right: 0.35rem;
    padding-left: 0.72rem;
}

.executive-overview .action-item .ui-record-row__title {
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.executive-overview .action-item.is-urgent { border-left-color: #b42318; background: #fffafa; }
.executive-overview .action-item.is-high { border-left-color: #d97706; }
.executive-overview .action-cta,
.executive-overview .account-review-form { flex: 0 0 auto; }
.executive-overview .item-kicker { color: var(--brand-green-strong); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.executive-overview .item-title { color: var(--brand-navy); font-weight: 850; }
.executive-overview .item-meta { color: var(--muted); font-size: 0.78rem; }
.executive-overview .service-card { display: flex; flex-direction: column; gap: 0.72rem; padding: 0.9rem 1rem; }
.executive-overview .service-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #e7edf1; border-bottom: 1px solid #e7edf1; }
.executive-overview .service-metric { min-width: 0; padding: 0.58rem 0.68rem; }
.executive-overview .service-metric + .service-metric { border-left: 1px solid #e7edf1; }
.executive-overview .service-metric strong { display: block; color: var(--brand-navy); font-size: 1.15rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.executive-overview .service-metric span { display: block; color: var(--muted); font-size: 0.68rem; line-height: 1.3; }
.executive-overview .attention-note { padding: 0.6rem 0.7rem; border-radius: 8px; background: rgba(215, 163, 47, 0.12); color: #7c4a03; font-size: 0.78rem; font-weight: 750; }
.executive-overview .account-item,
.executive-overview .activity-item { padding: 0.72rem 0.15rem; border-width: 0 0 1px; border-radius: 0; }
.executive-overview .account-item:last-child,
.executive-overview .activity-item:last-child { border-bottom: 0; }
.executive-overview .service-chip { border-radius: 999px; background: rgba(47, 133, 90, 0.11); color: var(--brand-green-strong); font-size: 0.68rem; font-weight: 800; }
.executive-overview .service-chip.requested { background: rgba(215, 163, 47, 0.14); color: #7c4a03; }

@media (min-width: 1200px) {
    .executive-overview .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1199.98px) {
    .ui-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui-stat-strip__item:nth-child(odd) { border-left: 0; }
    .ui-stat-strip__item:nth-child(n + 3) { border-top: 1px solid #e3e9ee; }
    .ui-record-row { grid-template-columns: minmax(11rem, 1fr) minmax(0, 1.65fr) auto; }
    .ui-metadata-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ui-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .property-management-proof .property-management-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buyer-dashboard .buyer-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-client-dashboard .project-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-client-portfolio .project-portfolio-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .app-shell-grid { display: block; }
    .app-shell .sidebar { min-height: auto; }
    .app-shell .sidebar-sticky { height: auto; max-height: none; padding: 0.8rem 1rem; }
    .app-shell .brand-lockup { max-width: 18rem; }
    .app-shell .content-wrap { padding: 1rem; }
    .app-shell .topbar { align-items: flex-start; }
    .account-service-row {
        grid-template-columns: minmax(0, 1fr) minmax(13rem, auto);
        align-items: center;
    }
    .account-service-row__identity { grid-row: 1 / span 2; }
    .account-service-row > .ui-inline-state,
    .account-service-row > .btn {
        grid-column: 2;
        justify-self: end;
    }
}

@media (max-width: 767.98px) {
    .app-shell .topbar {
        flex-direction: column;
        padding: 0.9rem;
    }

    .app-shell .topbar-meta,
    .app-shell .user-chip { width: 100%; }

    .ui-command-bar,
    .ui-context-strip,
    .ui-panel__header,
    .ui-section-card__header,
    .ui-compact-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ui-record-row {
        grid-template-columns: 1fr;
        gap: 0.72rem;
    }

    .ui-record-row__title,
    .ui-record-row__subtitle,
    .ui-metadata-item__value {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .ui-record-row__actions,
    .ui-action-cluster { justify-content: flex-start; }

    .account-service-row {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .account-service-row__identity { grid-row: auto; }

    .account-service-row > .ui-inline-state {
        grid-column: 2;
        justify-self: end;
    }

    .account-service-row > .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .account-service-row__description {
        overflow: visible;
        white-space: normal;
    }

    .app-shell .btn {
        max-width: 100%;
    }

    .project-overview-grid,
    .project-stage-grid { grid-template-columns: 1fr; }

    .project-stage-grid > div + div {
        padding-top: 1rem;
        padding-left: 0;
        border-top: 1px solid #e3e9ee;
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .ui-context-strip { padding: 0.78rem 0.82rem; }
    .ui-stat-strip { grid-template-columns: 1fr 1fr; }
    .ui-stat-strip__item { padding: 0.75rem 0.8rem; }
    .ui-stat-strip__value { font-size: 1.28rem; }
    .ui-metadata-grid { grid-template-columns: 1fr; }
    .ui-metric-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .ui-metric { padding: 0.82rem; }
    .ui-metric__value { font-size: 1.35rem; }
    .app-shell .badge,
    .app-shell [class*="ops-status"],
    .app-shell .service-chip { white-space: normal; }
    .app-shell .d-flex > .btn:only-child { width: auto; }
    .executive-overview .account-item > .d-flex {
        align-items: stretch !important;
        flex-direction: column;
    }
    .executive-overview .account-item form,
    .executive-overview .account-item form .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell *,
    .app-shell *::before,
    .app-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Phase UI-1.75: premium SmartHub product layer. */
.sm-icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.sm-icon {
    display: inline-block;
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-shell {
    --sm-sidebar-width: 258px;
    --sm-navy: #09263a;
    --sm-navy-deep: #061c2c;
    --sm-teal: #0f6f70;
    --sm-green: #238558;
    --sm-green-bright: #42b779;
    --sm-canvas: #f3f7f8;
    --sm-line: #dbe6e9;
    background: var(--sm-canvas);
}

.app-shell .sidebar {
    background:
        radial-gradient(circle at 15% 0%, rgba(39, 142, 95, 0.26), transparent 24%),
        linear-gradient(180deg, #082c3d 0%, #071f35 52%, #071b2d 100%);
    box-shadow: 12px 0 34px rgba(6, 28, 44, 0.12);
}

.app-shell .brand-lockup {
    border: 0;
    background: transparent;
    padding: 0.55rem 0.5rem 0.72rem;
}

.app-shell .brand-mark {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.app-shell .brand-product::after {
    content: " Pro";
    color: #56d590;
}

.app-shell .sidebar-group {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.app-shell .sidebar-group.is-active {
    border: 0;
    background: rgba(25, 113, 82, 0.13);
}

.app-shell .sidebar-group summary {
    color: rgba(234, 245, 249, 0.82);
}

.app-shell .sidebar-group-icon {
    color: #7fd6a8;
}

.app-shell .sidebar-group-marker {
    display: none;
}

.app-shell .sidebar .nav-link {
    color: rgba(232, 243, 247, 0.76);
    gap: 0.42rem;
    padding: 0.54rem 0.52rem;
    font-size: 0.76rem;
}

.app-shell .sidebar-group-items { padding-left: 0.38rem; padding-right: 0.32rem; }

.app-shell .sidebar .nav-link::before {
    display: none;
}

.app-shell .sidebar .nav-link .sm-icon {
    color: rgba(171, 213, 204, 0.82);
}

.app-shell .sidebar .nav-link:hover,
.app-shell .sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(35, 133, 88, 0.88), rgba(23, 116, 98, 0.72));
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 12, 22, 0.14);
}

.app-shell .sidebar .nav-link:hover .sm-icon,
.app-shell .sidebar .nav-link.active .sm-icon {
    color: #fff;
}

.app-shell .sidebar-group-count,
.app-shell .sidebar .nav-link-badge {
    background: rgba(89, 202, 143, 0.16);
    border-color: rgba(117, 221, 166, 0.22);
}

.app-main {
    background:
        radial-gradient(circle at 100% 0%, rgba(35, 133, 88, 0.055), transparent 22rem),
        var(--sm-canvas);
}

.app-shell .content-wrap {
    padding: 0 clamp(1rem, 1.8vw, 1.8rem) clamp(1.25rem, 2vw, 2rem);
}

.app-shell .topbar.smarthub-topbar {
    min-height: 5.1rem;
    margin: 0 calc(clamp(1rem, 1.8vw, 1.8rem) * -1) 1rem;
    padding: 0.8rem clamp(1rem, 1.8vw, 1.8rem);
    border: 0;
    border-bottom: 1px solid rgba(9, 38, 58, 0.09);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(9, 38, 58, 0.035);
    backdrop-filter: blur(12px);
}

.app-shell .page-header h1 {
    margin: 0.06rem 0 0.12rem;
    font-size: clamp(1.42rem, 1.75vw, 1.72rem);
}

.app-shell .page-kicker {
    color: var(--sm-green);
    background: transparent;
    padding: 0;
}

.app-shell .page-header .text-muted-soft {
    font-size: 0.78rem;
    line-height: 1.35;
}

.app-shell .user-chip {
    border: 0;
    background: transparent;
    padding: 0.25rem;
}

.app-shell .user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    box-shadow: 0 6px 18px rgba(9, 38, 58, 0.16);
}

.app-shell .user-avatar img,
.profile-photo-editor__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.profile-photo-editor {
    display: grid;
    justify-items: start;
    gap: 0.8rem;
}

.profile-photo-editor__avatar {
    display: inline-grid;
    width: 7.5rem;
    height: 7.5rem;
    place-items: center;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sm-navy), var(--sm-green));
    box-shadow: 0 12px 32px rgba(9, 38, 58, 0.18);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.topbar-notification {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid var(--sm-line);
    border-radius: 50%;
    color: var(--sm-navy);
    background: #fff;
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.topbar-notification:hover,
.topbar-notification:focus-visible {
    color: var(--sm-green);
    border-color: rgba(35, 133, 88, 0.45);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(9, 38, 58, 0.1);
}

.topbar-notification > span {
    position: absolute;
    top: -0.32rem;
    right: -0.32rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #c2410c;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 850;
}

.app-shell .card,
.app-shell .app-card,
.ui-panel,
.ui-section-card {
    border-color: var(--sm-line);
    box-shadow: 0 10px 28px rgba(9, 38, 58, 0.055);
}

.ui-panel__header,
.ui-section-card__header {
    background: linear-gradient(180deg, #fff, #fbfdfd);
}

.premium-command {
    position: relative;
    display: grid;
    grid-template-columns: minmax(17rem, 1.15fr) minmax(0, 1.85fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: stretch;
    overflow: hidden;
    padding: clamp(1.15rem, 2vw, 1.65rem);
    border: 1px solid rgba(123, 201, 163, 0.18);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 15%, rgba(39, 177, 123, 0.16), transparent 30%),
        linear-gradient(135deg, #071f33 0%, #0a3442 62%, #0a463e 100%);
    color: #fff;
    box-shadow: 0 20px 42px rgba(7, 31, 51, 0.16);
}

.premium-command::after {
    content: "";
    position: absolute;
    inset: auto -8% -60% auto;
    width: 18rem;
    aspect-ratio: 1;
    border: 1px solid rgba(122, 224, 169, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.premium-command__intro,
.premium-command__metrics,
.pm-occupancy-visual,
.project-progress-visual {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.premium-command__eyebrow {
    display: block;
    color: #7fe0aa;
    font-size: 0.66rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.premium-command h2 {
    max-width: 38rem;
    margin: 0.42rem 0 0.5rem;
    color: #fff;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.premium-command__intro > p {
    max-width: 39rem;
    margin: 0;
    color: rgba(232, 244, 247, 0.74);
    font-size: 0.84rem;
}

.premium-command__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1rem;
}

.premium-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.75rem;
    padding: 0.32rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: #e8f4f7;
    font-size: 0.7rem;
    font-weight: 800;
}

.premium-status::before {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: #69d698;
}

.premium-status.is-attention::before { background: #f5b942; }
.premium-status.is-info::before { background: #6fd4df; }

.premium-command__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.58rem;
}

.project-progress-label {
    color: rgba(225, 241, 245, 0.74);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.premium-command__metrics article {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto 1fr;
    column-gap: 0.42rem;
    align-content: start;
    min-width: 0;
    min-height: 7.6rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-command__metrics article.is-attention { border-color: rgba(245, 185, 66, 0.35); background: rgba(245, 185, 66, 0.1); }
.premium-command__metrics article.is-critical { border-color: rgba(248, 113, 113, 0.35); background: rgba(248, 113, 113, 0.1); }
.premium-command__metrics .sm-icon { position: static; grid-column: 2; grid-row: 1; align-self: start; color: #78dca4; opacity: 0.86; }
.premium-command__metrics span,
.premium-command__metrics strong,
.premium-command__metrics small { display: block; }
.premium-command__metrics > article > span { grid-column: 1; grid-row: 1; min-width: 0; padding-right: 0; color: rgba(226, 241, 245, 0.72); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.055em; line-height: 1.3; overflow-wrap: normal; word-break: normal; text-transform: uppercase; }
.premium-command__metrics > article > strong { grid-column: 1 / -1; grid-row: 2; }
.premium-command__metrics > article > small { grid-column: 1 / -1; grid-row: 3; }
.premium-command__metrics strong { margin-top: 0.7rem; color: #fff; font-size: clamp(1.42rem, 2vw, 1.92rem); line-height: 1; font-variant-numeric: tabular-nums; }
.premium-command__metrics strong.is-text { font-size: clamp(0.9rem, 1.15vw, 1.12rem); line-height: 1.25; }
.premium-command__metrics small { margin-top: 0.48rem; color: rgba(226, 241, 245, 0.64); font-size: 0.65rem; line-height: 1.35; }

.data-ring {
    --data-progress: 0;
    position: relative;
    width: 8.25rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#4bd28b calc(var(--data-progress) * 1%), rgba(255, 255, 255, 0.12) 0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.data-ring::before {
    content: "";
    position: absolute;
    width: 6.3rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #0b3540;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.data-ring > div { position: relative; z-index: 1; text-align: center; }
.data-ring strong,
.data-ring span { display: block; }
.data-ring strong { color: #fff; font-size: 1.55rem; line-height: 1; }
.data-ring span { margin-top: 0.28rem; color: rgba(225, 241, 245, 0.7); font-size: 0.67rem; }

.pm-command-center,
.project-command {
    grid-template-columns: minmax(15rem, 1.05fr) auto minmax(27rem, 1.75fr);
}

.pm-occupancy-visual,
.project-progress-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
}

.pm-occupancy-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    color: rgba(232, 244, 247, 0.72);
    font-size: 0.66rem;
}

.pm-occupancy-legend span,
.premium-data-card__legend span { display: inline-flex; align-items: center; gap: 0.3rem; }
.pm-occupancy-legend i,
.premium-data-card__legend i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #7b98a2; }
.pm-occupancy-legend .is-occupied { background: #4bd28b; }
.pm-occupancy-legend .is-vacant { background: #7894a0; }

.premium-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.premium-data-card {
    min-width: 0;
    padding: 1rem;
    border: 1px solid var(--sm-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(9, 38, 58, 0.05);
}

.premium-data-card__heading { display: flex; align-items: center; gap: 0.72rem; min-width: 0; }
.sm-icon-wrap { width: 2.35rem; height: 2.35rem; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: rgba(35, 133, 88, 0.1); color: var(--sm-green); }
.premium-data-card__heading span,
.premium-data-card__heading strong { display: block; }
.premium-data-card__heading > div > span { color: #607783; font-size: 0.67rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.premium-data-card__heading strong { margin-top: 0.18rem; color: var(--sm-navy); font-size: 1rem; line-height: 1.25; }
.segmented-progress,
.status-composition { display: flex; width: 100%; height: 0.5rem; margin: 1rem 0 0.72rem; overflow: hidden; border-radius: 999px; background: #e6edef; }
.segmented-progress span { background: linear-gradient(90deg, var(--sm-green), #58bf82); border-radius: inherit; }
.status-composition span { flex: var(--part); min-width: 0; }
.status-composition .is-active { background: var(--sm-green); }
.status-composition .is-upcoming { background: #e7a72f; }
.status-composition .is-expired { background: #c84d46; }
.premium-data-card__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.45rem; color: #607783; font-size: 0.7rem; }
.premium-data-card__legend b { color: var(--sm-navy); }
.premium-data-card__legend i.is-active { background: var(--sm-green); }
.premium-data-card__legend i.is-upcoming { background: #e7a72f; }
.premium-data-card__legend i.is-expired { background: #c84d46; }
.signal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem 0.7rem; margin-top: 0.85rem; color: #607783; font-size: 0.72rem; }
.signal-list span { padding: 0.55rem; border-radius: 8px; background: #f3f7f8; }
.signal-list b { display: block; color: var(--sm-navy); font-size: 1rem; }
.signal-list a { grid-column: 1 / -1; color: var(--sm-green); font-weight: 800; text-decoration: none; }

.executive-command { grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.5fr); }
.executive-signal-map { display: grid; grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.6fr); gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--sm-line); border-radius: 13px; background: linear-gradient(100deg, #fff, #f6faf9); }
.executive-signal-bars { display: grid; gap: 0.42rem; }
.executive-signal-bars > div { display: grid; grid-template-columns: minmax(8.5rem, 1fr) minmax(8rem, 2fr) 1.4rem; gap: 0.55rem; align-items: center; min-width: 0; font-size: 0.68rem; }
.executive-signal-bars > div > span { overflow: hidden; color: #526b77; text-overflow: ellipsis; white-space: nowrap; }
.executive-signal-bars > div > div { height: 0.34rem; overflow: hidden; border-radius: 999px; background: #e3ecee; }
.executive-signal-bars i { display: block; height: 100%; min-width: 0.2rem; border-radius: inherit; background: linear-gradient(90deg, var(--sm-green), #20a5a0); }
.executive-signal-bars strong { color: var(--sm-navy); font-variant-numeric: tabular-nums; text-align: right; }

.executive-overview .ui-panel:first-child .ui-panel__header { border-top: 3px solid #e2a128; }
.executive-overview .account-item { border-left: 3px solid rgba(27, 119, 142, 0.3); padding-left: 0.72rem; }
.executive-overview .service-grid { gap: 0.75rem; }
.executive-overview .service-card { border-color: var(--sm-line); border-top: 3px solid rgba(35, 133, 88, 0.55); background: linear-gradient(180deg, #fff, #fbfdfc); }
.executive-overview .activity-item::before { content: ""; width: 0.48rem; height: 0.48rem; flex: 0 0 auto; margin-top: 0.28rem; border-radius: 50%; background: #52b57b; box-shadow: 0 0 0 4px rgba(35, 133, 88, 0.09); }

.buyer-command { grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.45fr); }
.buyer-command-dashboard { gap: 0.85rem !important; }
.buyer-command-dashboard .buyer-command { gap: 1rem; padding: 1rem 1.1rem; }
.buyer-command-dashboard .buyer-command h2 { max-width: 29rem; font-size: clamp(1.45rem, 1.8vw, 1.78rem); }
.buyer-command-dashboard .buyer-command .premium-command__copy > p { max-width: 34rem; font-size: 0.78rem; line-height: 1.5; }
.buyer-command-dashboard .buyer-command .premium-command__actions { gap: 0.42rem; margin-top: 0.72rem; }
.buyer-command-dashboard .buyer-command .premium-command__actions .btn { min-height: 2.15rem; padding: 0.42rem 0.72rem; font-size: 0.72rem; }
.buyer-command-dashboard .premium-command__metrics { gap: 0.45rem; }
.buyer-command-dashboard .premium-command__metrics article { min-height: 6.45rem; padding: 0.68rem; }
.buyer-command-dashboard .premium-command__metrics > article > span { font-size: 0.59rem; letter-spacing: 0.045em; }
.buyer-command-dashboard .premium-command__metrics .sm-icon { width: 0.86rem; height: 0.86rem; }
.buyer-command-dashboard .premium-command__metrics strong { margin-top: 0.5rem; font-size: clamp(1.35rem, 1.75vw, 1.72rem); }
.buyer-command-dashboard .premium-command__metrics small { margin-top: 0.36rem; font-size: 0.61rem; }

/* Phase 2: Seller workspace */
.seller-command-dashboard { gap: 1rem !important; }
.seller-command { grid-template-columns: minmax(20rem, 0.82fr) minmax(36rem, 1.18fr); min-height: 18.3rem; }
.seller-command .premium-command__copy { max-width: 34rem; }
.seller-command .premium-command__copy h2 { max-width: 31rem; font-size: clamp(1.72rem, 2.35vw, 2.32rem); }
.seller-command .premium-command__copy p { max-width: 32rem; }
.seller-command .premium-command__metrics { gap: 0.5rem; }
.seller-command .premium-command__metrics article { min-height: 7.3rem; padding: 0.72rem; }
.seller-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; }
.seller-summary-card { min-width: 0; }
.seller-summary-card .ui-panel__header { padding: 0.9rem 1rem 0.72rem; }
.seller-summary-card .ui-panel__body { padding: 0.85rem 1rem 1rem; }
.seller-compact-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.58rem; margin: 0; }
.seller-compact-details > div { min-width: 0; padding: 0.68rem; border: 1px solid var(--sm-line); border-radius: 10px; background: #f7fafb; }
.seller-compact-details dt { color: var(--muted); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.045em; text-transform: uppercase; }
.seller-compact-details dd { margin: 0.2rem 0 0; color: var(--sm-navy); font-size: 1.12rem; font-weight: 800; line-height: 1.15; }
.seller-activity-grid > [class*="col-"] { min-width: 0; }
.seller-command-dashboard .record-list { gap: 0.6rem; }
.seller-command-dashboard .record-card { border-radius: 10px; box-shadow: none; }
.seller-command-dashboard .record-card-body { padding: 0.78rem; }

.seller-detail-page .seller-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.listing-hero-actions .badge,
.listing-status-badge {
    padding-inline: 0.45rem;
    white-space: normal;
    text-align: center;
}

.listing-status-badge {
    flex-shrink: 0;
    max-width: none;
}

@media (max-width: 991.98px) {
    .seller-detail-page .seller-activity-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.seller-history__summary { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; cursor: pointer; list-style: none; }
.seller-history__summary::-webkit-details-marker { display: none; }
.seller-history__summary > span:first-child { display: grid; gap: 0.15rem; }
.seller-history[open] .seller-history__summary { margin-bottom: 0.8rem; }
.seller-service-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 0.8rem; }
.seller-service-grid .ui-panel { min-width: 0; }
.seller-work-grid .card { box-shadow: none; }
.seller-work-grid #seller-work > .ui-panel > .card-body > .section-subtitle { max-width: 52rem; }

@media (max-width: 1199.98px) {
    .seller-command { grid-template-columns: 1fr; min-height: auto; }
    .seller-summary-grid { grid-template-columns: 1fr 1fr; }
    .seller-summary-card:last-child { grid-column: 1 / -1; }
    .seller-service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
    .seller-summary-grid { grid-template-columns: 1fr; }
    .seller-summary-card:last-child { grid-column: auto; }
    .seller-compact-details { grid-template-columns: 1fr 1fr; }
    .seller-service-grid { grid-template-columns: 1fr; }
    .seller-history__summary { align-items: flex-start; }
}

@media (max-width: 419.98px) {
    .seller-compact-details { grid-template-columns: 1fr; }
}
.buyer-command-dashboard .buyer-summary-grid { gap: 0.75rem; }
.buyer-command-dashboard .buyer-summary-card .ui-panel__header { padding: 0.82rem 0.95rem; }
.buyer-command-dashboard .buyer-summary-card .ui-panel__body { padding: 0.88rem 0.95rem; }
.buyer-command-dashboard .buyer-summary-card .section-title { font-size: 1.08rem; }
.buyer-command-dashboard .buyer-compact-details { gap: 0.5rem; margin-bottom: 0.72rem; }
.buyer-command-dashboard .buyer-compact-details > div { padding: 0.6rem; }

/* Client desktop density: reproduce the approved reduced-zoom proportions at true 100% zoom. */
@media (min-width: 1200px) {
    .app-shell.workspace-buyer,
    .app-shell.workspace-property-management-client {
        --sm-sidebar-width: 232px;
    }

    .app-shell.workspace-property-management-client { --sm-sidebar-width: 209px; }

    .app-shell.workspace-buyer .sidebar-sticky,
    .app-shell.workspace-property-management-client .sidebar-sticky {
        gap: 0.64rem;
        padding: 0.78rem 0.65rem;
    }

    .app-shell.workspace-buyer .brand-lockup,
    .app-shell.workspace-property-management-client .brand-lockup {
        gap: 0.58rem;
        padding: 0.48rem 0.42rem 0.58rem;
    }

    .app-shell.workspace-buyer .brand-mark,
    .app-shell.workspace-property-management-client .brand-mark {
        flex-basis: 2.05rem;
        width: 2.05rem;
        height: 2.05rem;
        padding: 0.3rem;
    }

    .app-shell.workspace-buyer .brand,
    .app-shell.workspace-property-management-client .brand { font-size: 0.88rem; }
    .app-shell.workspace-buyer .brand-product,
    .app-shell.workspace-property-management-client .brand-product { font-size: 0.68rem; }

    .app-shell.workspace-buyer .sidebar-nav,
    .app-shell.workspace-property-management-client .sidebar-nav { gap: 0.2rem; }

    .app-shell.workspace-buyer .sidebar-group summary,
    .app-shell.workspace-property-management-client .sidebar-group summary {
        min-height: 2.3rem;
        padding: 0.48rem 0.43rem;
        font-size: 0.68rem;
    }

    .app-shell.workspace-buyer .sidebar .nav-link,
    .app-shell.workspace-property-management-client .sidebar .nav-link {
        min-height: 2.1rem;
        gap: 0.42rem;
        padding: 0.47rem 0.5rem;
        font-size: 0.7rem;
    }

    .app-shell.workspace-buyer .sidebar-group summary {
        min-height: 2.22rem;
        padding-block: 0.44rem;
    }

    .app-shell.workspace-buyer .sidebar .nav-link {
        min-height: 2rem;
        padding-block: 0.42rem;
    }

    .app-shell.workspace-buyer .sidebar .nav-link .sm-icon,
    .app-shell.workspace-property-management-client .sidebar .nav-link .sm-icon,
    .app-shell.workspace-buyer .sidebar-group summary .sm-icon,
    .app-shell.workspace-property-management-client .sidebar-group summary .sm-icon {
        width: 0.86rem;
        height: 0.86rem;
    }

    .app-shell.workspace-buyer .sidebar-footer-label,
    .app-shell.workspace-property-management-client .sidebar-footer-label {
        margin-top: 0.62rem !important;
        padding-inline: 0.5rem !important;
        font-size: 0.58rem;
    }

    .app-shell.workspace-property-management-client .sidebar-sticky {
        gap: 0.55rem;
        padding: 0.7rem 0.58rem;
    }

    .app-shell.workspace-property-management-client .brand-lockup {
        gap: 0.52rem;
        padding: 0.42rem 0.38rem 0.5rem;
    }

    .app-shell.workspace-property-management-client .brand-mark {
        flex-basis: 1.86rem;
        width: 1.86rem;
        height: 1.86rem;
        padding: 0.27rem;
    }

    .app-shell.workspace-property-management-client .brand { font-size: 0.8rem; }
    .app-shell.workspace-property-management-client .brand-product { font-size: 0.62rem; }
    .app-shell.workspace-property-management-client .sidebar-nav { gap: 0.16rem; }
    .app-shell.workspace-property-management-client .sidebar-group summary {
        min-height: 2.05rem;
        padding-block: 0.4rem;
        font-size: 0.63rem;
    }
    .app-shell.workspace-property-management-client .sidebar .nav-link {
        min-height: 1.88rem;
        padding-block: 0.37rem;
        font-size: 0.65rem;
    }
    .app-shell.workspace-property-management-client .sidebar-footer-label {
        margin-top: 0.5rem !important;
        font-size: 0.54rem;
    }

    .app-shell.workspace-buyer .topbar.smarthub-topbar {
        min-height: 4.6rem;
        margin-bottom: 0.78rem;
        padding-block: 0.68rem;
    }

    .app-shell.workspace-buyer .page-header h1 { font-size: clamp(1.3rem, 1.55vw, 1.55rem); }
    .app-shell.workspace-buyer .page-header .text-muted-soft { font-size: 0.72rem; }
    .app-shell.workspace-buyer .user-avatar { width: 2.05rem; height: 2.05rem; }
    .app-shell.workspace-buyer .topbar-notification { width: 2.18rem; height: 2.18rem; }

    .buyer-command-dashboard { gap: 0.74rem !important; }
    .buyer-command-dashboard .buyer-command {
        grid-template-columns: minmax(16rem, 0.82fr) minmax(0, 1.55fr);
        gap: 0.82rem;
        padding: 0.86rem 0.96rem;
    }
    .buyer-command-dashboard .buyer-command h2 {
        max-width: 27rem;
        margin-block: 0.34rem 0.42rem;
        font-size: clamp(1.34rem, 1.6vw, 1.58rem);
    }
    .buyer-command-dashboard .buyer-command .premium-command__copy > p {
        max-width: 31rem;
        font-size: 0.7rem;
        line-height: 1.45;
    }
    .buyer-command-dashboard .buyer-command .premium-command__actions { gap: 0.36rem; margin-top: 0.62rem; }
    .buyer-command-dashboard .buyer-command .premium-command__actions .btn {
        min-height: 1.95rem;
        padding: 0.36rem 0.64rem;
        font-size: 0.66rem;
    }
    .buyer-command-dashboard .premium-command__metrics { gap: 0.4rem; }
    .buyer-command-dashboard .premium-command__metrics article { min-height: 5.72rem; padding: 0.58rem; }
    .buyer-command-dashboard .premium-command__metrics > article > span { font-size: 0.54rem; letter-spacing: 0.04em; }
    .buyer-command-dashboard .premium-command__metrics .sm-icon { width: 0.78rem; height: 0.78rem; }
    .buyer-command-dashboard .premium-command__metrics strong { margin-top: 0.42rem; font-size: clamp(1.22rem, 1.58vw, 1.5rem); }
    .buyer-command-dashboard .premium-command__metrics small { margin-top: 0.3rem; font-size: 0.56rem; }
    .buyer-command-dashboard .buyer-summary-grid { gap: 0.66rem; }
    .buyer-command-dashboard .buyer-summary-card .ui-panel__header { padding: 0.72rem 0.84rem; }
    .buyer-command-dashboard .buyer-summary-card .ui-panel__body { padding: 0.78rem 0.84rem; }
    .buyer-command-dashboard .buyer-summary-card .section-title { font-size: 0.98rem; }
    .buyer-command-dashboard .buyer-compact-details { gap: 0.44rem; margin-bottom: 0.62rem; }
    .buyer-command-dashboard .buyer-compact-details > div { padding: 0.54rem; }
}

.buyer-dashboard .buyer-marketplace-match,
.buyer-dashboard .buyer-recommendation-card { border-color: var(--sm-line); box-shadow: 0 14px 34px rgba(9, 38, 58, 0.08); }
.buyer-dashboard .buyer-recommendation-cover { min-height: 16rem; border-radius: 12px; }
.buyer-dashboard .buyer-recommendation-cover img,
.buyer-dashboard .buyer-recommendation-cover video { min-height: 16rem; }
.buyer-dashboard .buyer-property-heading { padding-bottom: 0.8rem; border-bottom: 1px solid #e2eaed; }
.buyer-dashboard .buyer-property-price { color: var(--sm-green); font-size: 1.12rem; }
.buyer-dashboard .buyer-journey-current { border: 0; border-radius: 10px; background: #eef5f4; }
.buyer-dashboard .buyer-journey-current > div { min-width: 0; padding: 0.75rem; }
.buyer-dashboard .buyer-journey-current .detail-label { white-space: normal; overflow-wrap: normal; word-break: normal; }
.buyer-dashboard .buyer-journey-current strong { overflow-wrap: normal; word-break: normal; }
.buyer-dashboard #marketplace-matches { border-top: 3px solid #2b9b6a; }
.buyer-dashboard #buyer-requirements { border-top: 3px solid #2a8298; }

.project-command { grid-template-columns: minmax(16rem, 0.9fr) auto minmax(24rem, 1.35fr); }
.project-command__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-client-dashboard .project-switcher { border-color: var(--sm-line); background: #fff; }
.project-client-dashboard .ui-tab-strip { background: #fff; box-shadow: 0 6px 20px rgba(9, 38, 58, 0.04); }
.project-client-dashboard .project-overview-grid .ui-section-card:first-child { border-top: 3px solid #e0a129; }
.project-client-dashboard .project-overview-grid .ui-section-card:last-child { border-top: 3px solid #2c8e6a; }
.project-client-dashboard .ui-compact-row { position: relative; padding-left: 1.25rem; }
.project-client-dashboard .ui-compact-row::before { content: ""; position: absolute; left: 0.1rem; top: 1.05rem; width: 0.48rem; height: 0.48rem; border-radius: 50%; background: #39a66f; box-shadow: 0 0 0 4px rgba(57, 166, 111, 0.1); }
.project-client-dashboard .project-stage-grid > div:first-child { border-left: 3px solid var(--sm-green); background: rgba(35, 133, 88, 0.045); }
.project-client-dashboard .project-stage-grid > div:last-child { border-left: 3px solid #2a8298; }

.project-portfolio-command { background: linear-gradient(135deg, #071f33, #0a443c); box-shadow: 0 18px 38px rgba(7, 31, 51, 0.14); }
.project-client-portfolio .project-portfolio-card { overflow: hidden; border-top: 4px solid #2a8d61; }
.project-client-portfolio .project-portfolio-card.has-attention { border-top-color: #dfa22f; }
.project-client-portfolio .project-portfolio-card .progress { background: #e2ebed; }
.project-client-portfolio .project-portfolio-card .progress-bar { background: linear-gradient(90deg, #238558, #4cbf7e); }

.my-realtgate-overview .account-identity-bar { background: linear-gradient(100deg, rgba(35, 133, 88, 0.09), #fff 45%, rgba(28, 119, 142, 0.05)); }
.account-identity-bar__principal { display: flex; align-items: center; gap: 0.78rem; min-width: 0; }
.account-identity-bar__avatar { display: inline-grid; width: 2.65rem; height: 2.65rem; flex: 0 0 2.65rem; place-items: center; overflow: hidden; border: 2px solid rgba(35, 133, 88, 0.22); border-radius: 50%; background: #fff; color: var(--sm-green); font-weight: 900; }
.account-identity-bar__avatar img { width: 100%; height: 100%; object-fit: cover; }
.my-realtgate-overview .account-service-row { transition: background-color 150ms ease, transform 150ms ease; }
.my-realtgate-overview .account-service-row:hover { background: #f7faf9; transform: translateX(2px); }
.my-realtgate-overview .account-service-row__mark { color: var(--sm-green); }
.my-realtgate-overview .account-service-row--available .account-service-row__mark { color: #27768b; }

.buyer-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.buyer-compact-details,
.buyer-property-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0 0 1rem;
}

.buyer-compact-details > div,
.buyer-property-facts > div {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius-sm);
    background: var(--sm-surface-muted);
}

.buyer-compact-details dt,
.buyer-property-facts dt {
    color: var(--sm-muted);
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.buyer-compact-details dd,
.buyer-property-facts dd {
    margin: 0.2rem 0 0;
    color: var(--sm-navy);
    font-size: 0.82rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.buyer-property-details {
    display: grid;
    gap: 0.72rem;
    padding: 0.9rem;
    border: 1px solid rgba(35, 133, 88, 0.2);
    border-radius: var(--sm-radius-sm);
    background: linear-gradient(145deg, rgba(35, 133, 88, 0.06), rgba(26, 119, 141, 0.035));
}
.buyer-property-details h3 { margin: 0; color: var(--sm-navy); font-size: 0.9rem; }
.buyer-property-details dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.48rem; margin: 0; }
.buyer-property-details dl > div { min-width: 0; padding: 0.58rem; border: 1px solid rgba(27, 93, 112, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.78); }
.buyer-property-details dt { color: var(--sm-muted); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.buyer-property-details dd { margin: 0.16rem 0 0; color: var(--sm-navy); font-size: 0.78rem; font-weight: 800; overflow-wrap: anywhere; }
.buyer-property-details p { display: grid; gap: 0.18rem; margin: 0; color: var(--sm-muted); font-size: 0.75rem; line-height: 1.5; }
.buyer-property-details p strong { color: var(--sm-navy); font-size: 0.68rem; text-transform: uppercase; }
.buyer-property-details .buyer-property-details__empty { display: block; padding: 0.62rem; border-radius: 8px; background: rgba(255, 255, 255, 0.72); }
.buyer-property-features { display: flex; flex-wrap: wrap; gap: 0.38rem; }
.buyer-property-features span { padding: 0.34rem 0.58rem; border: 1px solid rgba(35, 133, 88, 0.18); border-radius: 999px; background: #fff; color: #176a49; font-size: 0.68rem; font-weight: 800; }

.recommendation-property-details-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.85rem; }
.recommendation-property-details-grid > * { min-width: 0; width: auto; max-width: none; padding: 0; }
.recommendation-property-details-grid > .col-12 { grid-column: 1 / -1; }
.recommendation-property-details-grid > .col-12.col-sm-4 { grid-column: span 2; }
.recommendation-property-details-grid > .col-12.col-md-6 { grid-column: span 3; }

.buyer-journey-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
}

.buyer-journey-strip article {
    position: relative;
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem;
    border-left: 3px solid var(--sm-green);
    background: var(--sm-surface-muted);
}

.buyer-journey-strip span { color: var(--sm-green); font-size: 0.68rem; font-weight: 900; }
.buyer-journey-strip strong { color: var(--sm-navy); font-size: 0.84rem; }
.buyer-journey-strip small { color: var(--sm-muted); line-height: 1.45; }

.buyer-marketplace-match-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.buyer-marketplace-match {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: #fff;
}

.buyer-marketplace-match__media {
    display: grid;
    min-height: 10rem;
    place-items: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.1), rgba(47, 133, 90, 0.12));
    color: var(--sm-muted);
    font-weight: 800;
    text-align: center;
}

.buyer-marketplace-match__media img { width: 100%; height: 100%; object-fit: cover; }
.buyer-marketplace-match__body { display: flex; flex: 1; flex-direction: column; gap: 0.8rem; padding: 1rem; }
.buyer-marketplace-match .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.buyer-requirement-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.buyer-requirement-form__wide { grid-column: 1 / -1; }
.buyer-check-grid { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; }
.buyer-check-grid label { font-size: 0.78rem; font-weight: 700; }

.buyer-property-journey__grid {
    display: grid;
    grid-template-columns: minmax(18rem, 0.85fr) minmax(0, 1.15fr);
    gap: 1.2rem;
}
.buyer-property-media {
    display: grid;
    width: 100%;
    min-height: 18rem;
    aspect-ratio: 4 / 3;
    place-items: center;
    object-fit: cover;
    overflow: hidden;
    border: 1px solid var(--sm-line);
    border-radius: var(--sm-radius);
    background: linear-gradient(135deg, rgba(16, 42, 67, 0.1), rgba(47, 133, 90, 0.12));
}
.buyer-property-media--empty { padding: 1rem; color: var(--sm-muted); font-weight: 800; text-align: center; }
.buyer-media-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.buyer-property-note,
.buyer-viewing-summary { padding: 0.85rem; border-left: 3px solid var(--sm-green); background: var(--sm-surface-muted); }
.buyer-property-note p { margin: 0.35rem 0 0; color: var(--sm-muted); line-height: 1.6; }
.buyer-viewing-summary { display: grid; gap: 0.18rem; }
.buyer-viewing-summary span,
.buyer-viewing-summary small { color: var(--sm-muted); font-size: 0.72rem; }
.buyer-journey-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.buyer-journey-summary > div { min-width: 0; padding: 0.68rem; border: 1px solid var(--sm-line); border-radius: var(--sm-radius-sm); background: var(--sm-surface-muted); }
.buyer-journey-summary span,
.buyer-journey-summary strong { display: block; }
.buyer-journey-summary span { color: var(--sm-muted); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.05em; text-transform: uppercase; }
.buyer-journey-summary strong { margin-top: 0.3rem; color: var(--sm-navy); font-size: 0.78rem; line-height: 1.38; }
.buyer-journey-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.35rem; }
.buyer-journey-progress span { padding: 0.55rem; border-top: 3px solid #dce4eb; color: var(--sm-muted); font-size: 0.68rem; font-weight: 800; text-align: center; }
.buyer-journey-progress span.is-complete { border-color: var(--sm-green); color: var(--sm-green); }

@media (max-width: 1199.98px) {
    .buyer-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buyer-marketplace-match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buyer-requirement-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .buyer-property-journey__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .buyer-summary-grid,
    .buyer-marketplace-match-grid,
    .buyer-requirement-form,
    .buyer-journey-strip { grid-template-columns: 1fr; }
    .buyer-requirement-form__wide { grid-column: auto; }
    .buyer-property-media { min-height: 12rem; }
    .buyer-journey-summary { grid-template-columns: 1fr; }
    .buyer-property-details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .recommendation-property-details-grid > .col-sm-4,
    .recommendation-property-details-grid > .col-md-6 { grid-column: span 3; }
    .buyer-journey-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.owners-directory .record-card,
.tenants-directory .record-card,
.listings-directory .listing-record-card,
.project-clients-directory .project-client-record-card { overflow: visible; border: 1px solid var(--sm-line); border-left: 3px solid rgba(35, 133, 88, 0.48); box-shadow: 0 7px 22px rgba(9, 38, 58, 0.045); transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.owners-directory .record-card:hover,
.tenants-directory .record-card:hover,
.listings-directory .listing-record-card:hover,
.project-clients-directory .project-client-record-card:hover { border-color: rgba(35, 133, 88, 0.38); box-shadow: 0 12px 28px rgba(9, 38, 58, 0.08); transform: translateY(-1px); }
.owners-directory .record-card:nth-child(even),
.tenants-directory .record-card:nth-child(even),
.listings-directory .listing-record-card:nth-child(even),
.project-clients-directory .project-client-record-card:nth-child(even) { background: #fbfdfd; }

@media (max-width: 1199.98px) {
    .pm-command-center,
    .project-command { grid-template-columns: minmax(15rem, 0.9fr) auto minmax(20rem, 1.3fr); }
    .premium-command__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium-command__metrics article { min-height: 6.5rem; }
}

@media (max-width: 991.98px) {
    .app-shell .topbar.smarthub-topbar { margin-inline: -1rem; padding-inline: 1rem; }
    .premium-command,
    .executive-command,
    .buyer-command,
    .pm-command-center,
    .project-command { grid-template-columns: 1fr; }
    .pm-occupancy-visual,
    .project-progress-visual { flex-direction: row; justify-content: flex-start; }
    .data-ring { width: 7rem; }
    .data-ring::before { width: 5.35rem; }
    .premium-visual-grid { grid-template-columns: 1fr 1fr; }
    .premium-visual-grid > :last-child { grid-column: 1 / -1; }
    .executive-signal-map { grid-template-columns: 1fr; }
    .project-client-dashboard .project-switcher-options { flex-basis: 100%; grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .app-shell .topbar.smarthub-topbar {
        width: calc(100% + 2rem);
        max-width: none;
        min-height: 0;
        margin-inline: -1rem;
        align-items: flex-start;
        gap: 0.6rem;
    }
    .app-shell .topbar-meta { display: flex; flex-wrap: nowrap; justify-content: flex-start; width: 100%; }
    .app-shell .topbar-meta .user-chip { flex: 1 1 auto; width: auto; }
    .app-shell .page-header .text-muted-soft { display: none; }
    .app-shell .user-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .premium-command { padding: 1rem; border-radius: 13px; }
    .premium-command__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .premium-command__metrics article { min-height: 6.35rem; }
    .premium-visual-grid { grid-template-columns: 1fr; }
    .premium-visual-grid > :last-child { grid-column: auto; }
    .executive-signal-bars > div { grid-template-columns: minmax(7rem, 1fr) minmax(5rem, 1.4fr) 1.2rem; }
    .buyer-dashboard .buyer-recommendation-cover,
    .buyer-dashboard .buyer-recommendation-cover img,
    .buyer-dashboard .buyer-recommendation-cover video { min-height: 13rem; }
    .project-command__metrics article:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 575.98px) {
    .app-shell .topbar-meta { gap: 0.35rem; }
    .app-shell .user-role { display: none; }
    .app-shell .user-chip { gap: 0.45rem; }
    .app-shell .user-avatar { width: 2rem; height: 2rem; }
    .topbar-notification { width: 2.1rem; height: 2.1rem; }
    .premium-command__metrics { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
    .premium-command__metrics article { min-height: 6rem; padding: 0.68rem; }
    .premium-command__metrics strong { font-size: 1.35rem; }
    .buyer-property-details dl { grid-template-columns: 1fr; }
    .recommendation-property-details-grid { grid-template-columns: 1fr; }
    .recommendation-property-details-grid > .col-sm-4,
    .recommendation-property-details-grid > .col-md-6,
    .recommendation-property-details-grid > .col-12 { grid-column: auto; }
    .pm-occupancy-visual,
    .project-progress-visual { flex-direction: column; align-items: flex-start; }
    .signal-list { grid-template-columns: 1fr; }
    .signal-list a { grid-column: auto; }
    .executive-signal-bars > div { grid-template-columns: minmax(6.5rem, 1fr) minmax(3.5rem, 1fr) 1rem; }
    .executive-signal-bars > div > span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
    .topbar-notification,
    .my-realtgate-overview .account-service-row,
    .owners-directory .record-card,
    .tenants-directory .record-card,
    .listings-directory .listing-record-card,
    .project-clients-directory .project-client-record-card { transition: none; }
}
