/* Reference-led composition. Photography is brand atmosphere, not listing media. */
.home-modules{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:24px 0}
.home-modules button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:122px;border:1px solid #e8ebe7;border-radius:9px;background:#f0f2f1;color:var(--text);padding:16px 10px;text-align:center}
.home-modules button:hover:enabled{background:#fff3e9;border-color:#f2b183}
.home-modules .icon{width:30px;height:30px;color:#e55400}.home-modules strong{font-size:12px;line-height:17px}.home-modules small{font-size:10px}.home-modules button:disabled{color:#78817d;background:#f4f5f3}.home-modules button:disabled .icon{color:#89938e}
@media(max-width:767px){.home-modules{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-modules button{min-height:112px}}
.directory-filters{display:flex;gap:16px;flex-wrap:wrap}
.directory-filters .field{margin:0;min-width:180px}
.portfolio-stat[aria-pressed=true]{border-color:#cf6c32;box-shadow:inset 0 -3px #ff6908,0 6px 20px #19211e07}
.topbar>.btn{border:0;background:transparent;font-size:12px;font-weight:500;padding:8px}
.account-menu{position:relative;font-size:12px;z-index:10}
.account-menu>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;padding:8px}
.account-menu>summary:after{content:'⌄';font-size:14px}
.account-menu-items{position:absolute;right:0;top:100%;min-width:220px;padding:8px;background:white;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 24px #17211e18}
.account-menu-items .btn{display:flex;width:100%;justify-content:flex-start;border:0;font-size:12px;font-weight:500}
.account-menu-items small{display:block;padding:10px;font-size:11px}
@media(max-width:767px){.directory-filters{display:grid;gap:12px;margin-top:16px}.directory-filters .field{min-width:0}.topbar .account-menu{font-size:11px}}
.topbar{min-height:72px;justify-content:flex-end;background:linear-gradient(110deg,#fff,#f3f4f1);gap:16px}
.portal-context{display:flex;align-items:center;gap:12px;margin-right:auto}
.portal-context>.icon{width:28px;height:28px;color:var(--text)}
.portal-context strong{display:block;font-size:14px;line-height:20px}
.portal-context small{display:block;font-size:11px;letter-spacing:.04em}
.preview-label{font-size:11px;margin-bottom:18px;padding-bottom:8px;border-color:#dedcd480}
.preview-tools{font-size:11px;color:var(--text-secondary);margin:0 0 18px}
.preview-tools summary{cursor:pointer;min-height:24px;display:list-item;width:fit-content}
.preview-tools[open]{padding:12px 16px;background:#eeebe3;border:1px dashed var(--control);border-radius:8px}
.preview-tools p{margin:12px 0}
.preview-tools .field{max-width:320px;margin:0}
.brand-hero{position:relative;isolation:isolate;overflow:hidden;min-height:310px;border-radius:14px;background:#e9ebe6;margin-bottom:0}
.brand-hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% center;z-index:-2}
.brand-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#fff 2%,#fffffff5 26%,#ffffffc9 44%,#ffffff14 72%,#17211e36)}
.brand-hero-content{padding:30px 32px 46px;max-width:630px}
.brand-hero .eyebrow{font-size:11px;letter-spacing:.19em;color:#59635c;margin-bottom:12px}
.brand-hero h1{font-size:36px;line-height:42px;letter-spacing:-.04em;max-width:590px;margin-bottom:14px;font-weight:750}
.brand-hero h1>span{display:block;color:#d94f00}
.brand-hero-description{font-size:15px;line-height:23px;max-width:420px;color:#46524b;margin-bottom:20px}
.brand-hero .btn.primary{padding:10px 24px;border-radius:24px;min-width:160px}
.brand-hero-signature{position:absolute;right:28px;bottom:72px;display:grid;gap:4px;padding:16px 20px;background:#19211ee0;color:#fff;font-size:11px;letter-spacing:.2em;line-height:20px;border-radius:2px}
.brand-hero-signature i{display:block;width:44px;height:2px;background:var(--action);margin-top:10px}
.brand-hero-compact{min-height:270px;margin-bottom:24px}
.brand-hero-compact .brand-hero-content{padding-bottom:26px}
.portfolio-overview{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:-24px 16px 26px;z-index:1}
.portfolio-stat{display:flex;align-items:center;gap:12px;padding:20px 16px;min-height:128px;background:#fff;border:1px solid #e4e3dc;border-radius:12px;box-shadow:0 6px 20px #19211e07;text-align:left;color:var(--text);min-width:0}
button.portfolio-stat{cursor:pointer;transition:border-color .15s,box-shadow .15s}
button.portfolio-stat:hover{border-color:#c1c6bf;box-shadow:0 8px 24px #19211e12}
.portfolio-stat-icon{display:flex;align-items:center;align-self:start;padding-top:8px;color:#d94f00}
.portfolio-stat-icon .icon{height:28px;width:28px;stroke-width:1.5}
.portfolio-stat-copy{display:grid;gap:2px;flex:1;min-width:0}
.portfolio-stat-copy strong{font-size:40px;line-height:44px;font-weight:700;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.portfolio-stat-title{font-size:14px;font-weight:650;line-height:20px}
.portfolio-stat-copy small{font-size:11px;line-height:16px;color:var(--text-secondary)}
.portfolio-stat>.icon{width:16px;height:16px;color:var(--text-secondary)}
.dashboard-body{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:24px;align-items:start}
.dashboard-primary,.dashboard-secondary{display:grid;gap:24px;min-width:0}
.dashboard-body .card{box-shadow:0 4px 20px #19211e03;padding:24px}
.dashboard-body .section-heading{padding-bottom:16px;margin-bottom:16px;border-bottom:1px solid var(--border)}
.dashboard-body h2{font-size:20px;line-height:26px}
.dashboard-body .attention-item{padding:12px 0;gap:12px}
.dashboard-body .attention-item+.attention-item{border-top:1px solid var(--border)}
.dashboard-body .attention-item h3{font-size:17px;margin:8px 0}
.dashboard-body .attention-item>.btn{margin:4px 0 0 48px}
.portfolio-panel .eyebrow{font-size:10px;margin-bottom:4px;letter-spacing:.15em}
.portfolio-panel .section-heading>.btn{padding:6px 0;border:0;font-size:12px;background:transparent;flex-shrink:0}
.portfolio-client{padding:16px 0;border-bottom:1px solid var(--border)}
.portfolio-client:first-child{padding-top:0}
.portfolio-client:last-child{padding-bottom:0;border:0}
.portfolio-identity{display:flex;gap:12px;align-items:center;font-size:15px}
.portfolio-identity .avatar{width:36px;height:36px;background:#f3eadd;font-size:12px;border:1px solid #e7dbca}
.portfolio-objectives{margin:4px 0 0 48px;display:grid;gap:2px}
.portfolio-objectives button{display:flex;align-items:center;gap:10px;text-align:left;min-height:44px;border:0;background:transparent;border-radius:6px;padding:6px 0;color:var(--text);font-size:13px}
.portfolio-objectives button:hover{background:var(--canvas)}
.portfolio-objectives button>span:first-child{flex:1;overflow-wrap:anywhere}
.portfolio-objectives .badge{font-size:10px;padding:2px 6px;line-height:16px}
.portfolio-objectives .icon{width:14px;height:14px}
.relationship-row{padding-block:28px}
.relationship-row .client-identity h2{font-size:18px;line-height:24px;font-weight:650}
.relationship-row .engagement-link>.btn{font-size:14px;min-height:48px}
.premium-directory{box-shadow:0 5px 24px #19211e04}
.sidebar-story{position:relative;flex-shrink:0;min-height:190px;margin:0 -12px -16px;padding:46px 24px 26px;overflow:hidden;background:linear-gradient(180deg,#16201c 0%,#16201c9c 35%,#16201c40 70%,#16201cbf),linear-gradient(90deg,#16201caa,transparent),url('/assets/real-estate-hero.png') 74% center/cover}
.sidebar-story p{color:#f5f3ed;font-size:15px;line-height:21px;margin:0;font-weight:350;letter-spacing:.025em}
.sidebar-story em{display:block;color:white;font:italic 25px/30px Georgia,serif;margin-top:4px}
.sidebar-story:after{content:'';display:block;width:40px;height:2px;background:var(--action);margin-top:12px}
.client-shell .sidebar-story,.collapsed .sidebar-story{display:none}
@media(max-width:1250px) and (min-width:768px){
 .brand-hero-signature{display:none}
 .brand-hero-content{max-width:540px}
 .portfolio-stat{gap:8px;padding:16px 12px}
 .portfolio-stat-icon{display:none}
 .portfolio-stat>.icon{display:none}
 .dashboard-body{grid-template-columns:1fr}
 .dashboard-primary,.dashboard-secondary{grid-template-columns:1fr 1fr;align-items:start}
}
@media(max-width:1000px) and (min-width:768px){
 .portfolio-overview{grid-template-columns:repeat(2,minmax(0,1fr))}
 .portfolio-stat-copy{grid-template-columns:48px 1fr;column-gap:12px;align-items:center}
 .portfolio-stat-copy strong{grid-row:1/3}
 .portfolio-stat{min-height:94px}
 .dashboard-primary,.dashboard-secondary{grid-template-columns:1fr}
}
@media(min-width:768px){
 .app-shell:not(.client-shell) .sidebar{overflow:hidden;gap:12px}
 .app-shell:not(.client-shell) .sidebar>.brand,.app-shell:not(.client-shell) .sidebar-profile{flex-shrink:0}
 .app-shell:not(.client-shell) .sidebar .agent-navigation{flex:1;min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#667269 transparent;overscroll-behavior:contain}
 .app-shell:not(.client-shell) .sidebar>.brand{display:flex;align-items:center;gap:8px;padding:0}
 .app-shell:not(.client-shell) .sidebar>.brand img{min-width:0;flex:1;width:calc(100% - 40px)}
 .app-shell:not(.client-shell) .sidebar .collapse-button{margin:0;border:0;min-height:36px;width:32px;padding:6px;justify-content:center;border-radius:6px;color:#c9d1cd}
 .app-shell:not(.client-shell) .sidebar .collapse-button:hover{background:#ffffff14;color:#fff}
 .app-shell.collapsed .sidebar>.brand{flex-direction:column}
 .app-shell.collapsed .sidebar>.brand img{width:100%;flex:none}
 .app-shell:not(.client-shell) .sidebar-story{order:3}
 .app-shell:not(.client-shell) .sidebar-profile{padding-block:10px}
}
.person-link{display:inline-flex;align-items:center;gap:12px;min-height:44px;border:0;background:transparent;color:var(--text);padding:0;text-align:left;font-weight:650}
.person-link:hover{text-decoration:underline;text-underline-offset:4px;color:#a83b00}
.person-link>.icon{width:14px;height:14px;color:var(--text-secondary)}
.client-record-header{display:flex;align-items:center;gap:16px;margin:24px 0}
.client-record-header h1{margin:0}
.client-record-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.client-record-list{display:grid;gap:12px}
.client-record-list button{width:100%;justify-content:space-between;text-align:left;padding:18px}
@media(max-width:767px){
 .topbar{min-height:64px;padding:12px 16px;gap:8px;flex-wrap:nowrap}
 .topbar .mobile-brand{display:block;width:136px;height:auto;margin:0 auto 0 0}
 .topbar .portal-context{display:none}
 .topbar>.btn{white-space:nowrap}
 .preview-tools{margin-bottom:12px;font-size:10px}
 .preview-tools summary{min-height:24px}
 .main{padding-top:16px}
 .brand-hero{min-height:360px;border-radius:12px}
 .brand-hero-photo{object-position:70% center}
 .brand-hero:before{background:linear-gradient(180deg,#fffffff7 2%,#fffffff0 26%,#ffffffd6 52%,#ffffff14 96%)}
 .brand-hero-content{padding:24px 20px 100px}
 .brand-hero h1{font-size:30px;line-height:35px;letter-spacing:-.035em}
 .brand-hero-description{font-size:14px;line-height:21px;margin-bottom:16px}
 .brand-hero .eyebrow{font-size:10px;letter-spacing:.12em}
 .brand-hero-signature{display:none}
 .brand-hero .btn.primary{font-size:13px;min-width:0;min-height:44px}
 .brand-hero-compact{min-height:300px;margin-bottom:20px}
 .brand-hero-compact .brand-hero-content{padding-bottom:62px}
 .portfolio-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:-24px 8px 20px}
 .portfolio-stat{padding:14px 12px;min-height:138px;gap:0;align-items:start}
 .portfolio-stat-icon,.portfolio-stat>.icon{display:none}
 .portfolio-stat-copy strong{font-size:36px;line-height:40px}
 .portfolio-stat-title{font-size:13px;line-height:18px;margin-top:4px}
 .portfolio-stat-copy small{font-size:10px;line-height:14px;margin-top:4px}
 .dashboard-body,.dashboard-primary,.dashboard-secondary{display:grid;grid-template-columns:1fr;gap:16px}
 .dashboard-body .card{padding:20px}
 .dashboard-body h2{font-size:18px;line-height:24px}
 .dashboard-body .attention-item>.btn{margin:4px 0 0;width:100%}
 .portfolio-objectives{margin-left:0;margin-top:8px}
 .portfolio-objectives button{flex-wrap:wrap}
 .portfolio-objectives button>span:first-child{min-width:100px}
 .sidebar-story{display:none}
 .client-shell .topbar .portal-context{display:flex}
 .client-shell .topbar .mobile-brand{display:none}
 .relationship-row .client-identity h2{font-size:18px}
}
