/* Real estate keeps its routes, workflows and permissions; neutral shared workspace palette. */
.theme-estate .nav-group-label{margin:20px 12px 8px;font-size:10px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-lighter);line-height:1.6}
.theme-estate .nav-menu>.nav-group-label:first-child{margin-top:8px}
.theme-estate{--bg:#f6f4ee;--surface:#fff;--surface-alt:#eeede6;--surface-bg:#eeede6;--border:#dedfd5;--border-color:#dedfd5;--ink:#29332b;--ink-soft:#60685e;--ink-lighter:#686f64;--primary:#41633c;--primary-dark:#314d2d;--primary-soft:#eaf0df;--primary-rgb:65,99,60;--sidebar-bg:#fdfcf8;--sidebar-text:#29332b;--topbar-bg:#f6f4ee;--nav-item-color:#60685e;--nav-hover:#eeeee5;--nav-active:#e7eddd;--nav-active-ink:#35522f;--button-ink:#fff;font-family:var(--font-display);font-variant-numeric:tabular-nums}
[data-theme=dark] .theme-estate{--bg:#171917;--surface:#20231f;--surface-alt:#292d27;--surface-bg:#292d27;--border:#3c4239;--border-color:#3c4239;--ink:#edf0e8;--ink-soft:#b0b7a9;--ink-lighter:#a5ad9e;--primary:#c2db8a;--primary-dark:#d0e6a3;--primary-soft:#303827;--primary-rgb:194,219,138;--sidebar-bg:#1c1f1b;--sidebar-text:#edf0e8;--topbar-bg:#171917;--nav-item-color:#b0b7a9;--nav-hover:#292d27;--nav-active:#303827;--nav-active-ink:#c2db8a;--button-ink:#172014}
.theme-estate .btn-primary{color:var(--button-ink);background:var(--primary);border-color:var(--primary)}
.theme-estate .matching-page a.btn-primary{color:var(--button-ink)}
.theme-estate .sidebar{background:var(--sidebar-bg);border-right:1px solid var(--border)}.theme-estate .user-name{color:var(--ink)}.theme-estate .user-role,.theme-estate .brand-title{color:var(--ink-soft)}.theme-estate .nav-item{color:var(--nav-item-color);min-height:44px;border-radius:8px}.theme-estate .nav-item:hover{background:var(--surface-alt);color:var(--ink)}.theme-estate .nav-item.active{background:var(--primary-soft);color:var(--primary);box-shadow:none}.theme-estate .nav-item.active i{color:inherit}.theme-estate .topbar{background:var(--topbar-bg);border-color:var(--border)}
@media(max-width:900px){.theme-estate .sidebar{visibility:hidden;width:min(304px,calc(100vw - 44px));overflow-y:auto}.theme-estate.sidebar-open .sidebar{visibility:visible}.theme-estate .sidebar-close-btn{min-width:44px;min-height:44px;color:var(--ink)}.theme-estate .sidebar-footer{margin-top:auto}}
.estate-page{max-width:1440px;min-width:0}.estate-page .page-subtitle{max-width:65ch}.estate-page .card{box-shadow:none;border-radius:14px}.estate-page .ops-heading{margin-bottom:28px}.estate-page :is(input,select,button,.btn){min-height:44px}.estate-page :is(input,select,textarea){min-width:0}.estate-page :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--primary);outline-offset:3px}.estate-page .portfolio-folders{grid-template-columns:repeat(2,minmax(0,320px));gap:16px;margin:0 0 24px}.estate-page .portfolio-folder{box-shadow:none;padding:20px;gap:16px;border-radius:12px}.estate-page .portfolio-folder.active{box-shadow:inset 0 3px var(--primary)}.estate-page .portfolio-folder.private>i{color:var(--primary)}.estate-page .portfolio-folder strong{font-weight:500}.estate-page .portfolio-folder small{margin-top:8px}.estate-page .private-badge,.estate-page .badge-soft{color:var(--primary);background:var(--primary-soft);border-radius:5px}.estate-page .listings-card{padding:24px}.estate-page .card-header-row{align-items:start;margin-bottom:24px}.estate-page .card-header-row>div:first-child{gap:12px!important}.estate-page .table-responsive-wrap{overflow-x:auto;scrollbar-width:thin}.estate-page .table-clean{width:100%;min-width:1040px}.estate-page .table-clean th{font-size:11px;font-weight:500;color:var(--ink-soft);padding:16px 12px;background:var(--surface-alt)}.estate-page .table-clean td{padding:20px 12px;font-size:13px;vertical-align:top;line-height:1.7}.estate-page .listing-actions{white-space:normal;min-width:170px}.estate-page .listing-actions>.btn{margin-bottom:6px}.estate-page .listing-confirm-overlay{z-index:550;background:rgba(15,20,16,.6);overflow-y:auto;align-items:safe center}.estate-page .listing-confirm-dialog{max-height:calc(100dvh - 40px);overflow-y:auto;padding:28px;line-height:1.8}.estate-page .listing-confirm-dialog>div:last-child{flex-wrap:wrap}.estate-page .empty-state p{color:var(--ink)}
.estate-form{max-width:1080px}.estate-form-fields{padding:0;margin:0;border:0;min-width:0}.estate-form-fields>.card{max-width:none!important;padding:28px}.estate-form .form-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:20px}.estate-form .form-row>div{min-width:0}.estate-form .form-label{font-size:12px;margin-bottom:8px;color:var(--ink);line-height:1.7}.estate-form .form-section-title{font-size:13px;text-transform:none;letter-spacing:0;font-weight:500;margin:12px 0 20px;padding-bottom:16px}.estate-form .check-inline{min-height:44px;line-height:1.8}.estate-form .check-inline input{min-height:20px;width:20px;height:20px;accent-color:var(--primary)}.estate-details{margin-top:24px;border-top:1px solid var(--border);padding-top:8px}.estate-details>summary{min-height:60px;cursor:pointer;padding:16px 0;font-weight:500;font-size:15px}.estate-details>summary span{display:block;font-size:12px;font-weight:400;color:var(--ink-soft);margin:8px 0 0 18px}.estate-form-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;border-top:1px solid var(--border);padding-top:24px;margin-top:24px}
.estate-page .match-filter-bar{gap:16px}.estate-page .match-status-tabs{width:auto;display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.estate-page .customer-status-tab{min-height:44px;padding:10px 16px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:8px;font-size:12px}.estate-page .customer-status-tab.is-selected{color:var(--primary);background:var(--primary-soft);border-color:var(--primary)}.estate-page .match-listing-head{padding:24px;gap:20px;flex-wrap:wrap}.estate-page .match-listing-head h3{font-size:18px;font-weight:500;overflow-wrap:anywhere}.estate-page .match-customer-row{padding:24px;gap:20px;align-items:start}.estate-page .match-customer-info>div:first-child{flex-wrap:wrap}.estate-page .match-score{width:66px;height:60px;border-radius:12px;background:var(--primary-soft);color:var(--primary);font-weight:500;font-size:25px}.estate-page .match-score small{opacity:1;font-size:11px}.estate-page .match-wants{line-height:1.8;-webkit-line-clamp:3}.estate-page .match-breakdown{font:12px/1.8 var(--font-body);margin-top:12px;overflow-wrap:anywhere}.estate-page .match-meta{line-height:1.8}.estate-page .match-actions{flex-wrap:wrap;max-width:220px;gap:8px}.estate-page .match-actions .btn{white-space:normal;text-align:left}.estate-page .match-warning{border-color:var(--primary);line-height:1.8}
.theme-estate .intel-page .empty-state p{color:var(--ink)}
.theme-estate .intel-page{max-width:1440px;gap:24px}.theme-estate .intel-page .card{box-shadow:none;border-radius:14px}.theme-estate .intel-page .customer-overview{padding:24px}.theme-estate .intel-page .customer-overview h2{font-size:22px;font-weight:500;letter-spacing:-.02em}.theme-estate .intel-page .profile-card{padding:24px}.theme-estate .intel-page :is(input,button){min-height:44px}.theme-estate .intel-page :is(.save-button,.reanalyze){background:var(--primary);color:var(--button-ink);font-weight:500}.theme-estate .intel-page :is(.status-pill.active,.intel-alert.success){background:var(--primary-soft);color:var(--primary)}.theme-estate .intel-page .customer-item{padding:20px 16px}.theme-estate .intel-page .profile-grid{gap:20px}.theme-estate .intel-page .profile-field>span{font-weight:500;font-size:12px;margin-bottom:8px}.theme-estate .intel-page .profile-card.closed{opacity:1}.theme-estate .intel-page :is(button,input,a):focus-visible{outline:2px solid var(--primary);outline-offset:3px}
@media(max-width:700px){.theme-estate .intel-page .profile-grid{grid-template-columns:minmax(0,1fr)}.theme-estate .intel-page .profile-actions{flex-wrap:wrap}}
.estate-snapshot{font-size:11px;color:var(--ink-soft);border:1px solid var(--border);border-radius:6px;padding:10px}.estate-shortcuts{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:28px}.estate-dashboard-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:20px;margin-bottom:28px}.estate-dashboard-metrics>a{display:flex;flex-direction:column;gap:16px;padding:24px;color:var(--ink);text-decoration:none}.estate-dashboard-metrics span,.estate-dashboard-metrics small{color:var(--ink-soft);font-size:12px;line-height:1.8}.estate-dashboard-metrics strong{font-size:32px;font-weight:500;letter-spacing:-.04em}.estate-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start}.estate-dashboard-grid>.card{padding:24px}.estate-dashboard-grid h2{font-size:20px;font-weight:500;letter-spacing:-.02em}.estate-dashboard-grid p{font-size:12px;color:var(--ink-soft);line-height:1.8}.estate-summary-row{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;padding:20px 0;border-top:1px solid var(--border)}.estate-summary-row>div{display:flex;flex-direction:column;gap:8px;min-width:0}.estate-summary-row strong{font-weight:500;font-size:14px;overflow-wrap:anywhere}.estate-summary-row span,.estate-summary-row time{font-size:12px;color:var(--ink-soft)}
@media(max-width:1000px){.estate-dashboard-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.estate-dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.estate-dashboard-metrics>a{padding:20px 16px}.estate-dashboard-grid>.card{padding:20px 16px}}
@media(max-width:1000px){.estate-page .match-customer-row{flex-wrap:wrap}.estate-page .match-customer-info{flex:1 1 220px}.estate-page .match-actions{max-width:none;width:100%;padding-left:86px}}
@media(max-width:700px){.estate-page .listings-card{padding:16px}.estate-page .portfolio-folders{gap:12px}.estate-page .portfolio-folder{padding:16px 12px;gap:10px}.estate-page .table-clean{display:block;min-width:0;width:100%}.estate-page .table-clean tbody{display:block;width:100%}.estate-page .table-clean thead{display:none}.estate-page .table-clean tr{display:block;width:100%;box-sizing:border-box;padding:20px 16px;margin-bottom:16px;border:1px solid var(--border);border-radius:12px}.estate-page .table-clean td{display:grid;grid-template-columns:minmax(95px,.7fr) minmax(0,1fr);gap:12px;width:100%;padding:10px 0;border:0;overflow-wrap:anywhere;white-space:normal}.estate-page .table-clean td:before{content:attr(data-label);font-size:11px;color:var(--ink-soft);font-weight:400;text-transform:none;letter-spacing:0}.estate-page .table-clean td:first-child{display:block;border-bottom:1px solid var(--border);padding-bottom:16px}.estate-page .table-clean td:first-child:before,.estate-page .table-clean .listing-actions:before{display:none}.estate-page .table-clean .listing-actions{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:8px;min-width:0;padding-top:16px;border-top:1px solid var(--border)}.estate-page .listing-actions>.btn{margin:0}.estate-form-fields>.card{padding:20px 16px}.estate-form .form-row{grid-template-columns:minmax(0,1fr);gap:16px}.estate-form .form-row>div{grid-column:auto!important}.estate-page .match-listing-head,.estate-page .match-customer-row{padding:20px 16px}.estate-page .match-actions{padding-left:0}.estate-page .match-filter-bar>select{flex-basis:100%}.estate-page .listing-confirm-dialog{padding:20px}}
@media(prefers-reduced-motion:reduce){.estate-page *{animation:none!important;transition:none!important}}
