/* Match the professional workspace width, preserving resident navigation. */
/* The active ::after underline is the single indicator, not a second border. */
body.fx-resident-wide #nav button{border-bottom-color:transparent!important}
body.fx-resident-wide #nav button:focus-visible{outline:2px solid #1769ff;outline-offset:3px;border-radius:4px}
body.fx-resident-wide main.container{width:100%;max-width:1680px!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box}
body.fx-resident-wide :is(.fx259-home,.fx227-profile,.fx133-page,.fx136-page,.v67-condo-page,.v67-search-categories,.fx147-orders,.fx141-page,.fx185-conversation,.fx193-reply-card,.fx197-reminder){width:100%;max-width:100%!important;box-sizing:border-box;padding-left:0!important;padding-right:0!important}
body.fx-resident-wide .fx193-reply-card{padding-left:16px!important;padding-right:16px!important}
body.fx-resident-wide :is(.fx259-home,.fx227-profile,.fx133-page,.fx136-page){padding-top:22px}
body.fx-resident-wide :is(.fx259-grid,.fx227-grid,.fx227-main){min-width:0}
body.fx-resident-wide .fx227-profile-hero{padding:24px 28px}
body.fx-resident-wide .fx227-grid{grid-template-columns:300px minmax(0,1fr);gap:20px}
body.fx-resident-wide .fx227-savebar{flex-wrap:wrap}
body.fx-resident-wide .fx227-savebar{box-sizing:border-box;min-width:0;max-width:100%}
body.fx-resident-wide .fx227-savebar span{min-width:0;overflow-wrap:anywhere}
body.fx-resident-wide .fx227-savebar .fx227-save{box-sizing:border-box;max-width:100%;min-width:0;white-space:normal;flex-shrink:1}
@media(max-width:760px){
 body.fx-resident-wide .fx227-grid,body.fx-resident-wide .fx227-main{grid-template-columns:minmax(0,1fr)!important}
 body.fx-resident-wide .fx227-savebar{position:static;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 body.fx-resident-wide .fx227-savebar .fx227-save{width:100%;min-height:48px}
}
/* Managed conversations reuse the existing DOM and handlers in two visual areas. */
body.fx-resident-wide .fx185-conversation.visit-managed{display:grid!important;grid-template-columns:minmax(0,1fr) clamp(340px,25vw,380px);gap:14px 20px;align-items:start}
body.fx-resident-wide .fx185-conversation.visit-managed>.fx185-head{grid-column:1/-1;margin-bottom:0}
body.fx-resident-wide .fx185-conversation.visit-managed>.fx185-shell,
body.fx-resident-wide .fx185-conversation .fx185-main.visit-managed{display:contents!important}
body.fx-resident-wide .fx185-main.visit-managed>:not(.fx185-messages):not(.visit-lifecycle){display:none!important}
body.fx-resident-wide .fx185-main.visit-managed>.fx185-messages{grid-column:1;grid-row:2;min-width:0;height:100%!important;min-height:clamp(360px,60dvh,720px)!important;max-height:none!important;box-sizing:border-box;border:1px solid #dce6f4;border-radius:18px;padding:20px!important;overflow-y:auto!important}
body.fx-resident-wide .fx185-main.visit-managed .fx185-order-mini{display:none!important}
body.fx-resident-wide .fx185-conversation.visit-managed>.fx193-reply-card{grid-column:1;grid-row:3;margin:0!important;min-width:0}
body.fx-resident-wide .fx185-main.visit-managed>.visit-lifecycle{grid-column:2;grid-row:2/4;max-height:calc(100dvh - 150px);overflow:auto;scrollbar-gutter:stable;box-sizing:border-box;min-width:0;margin:0!important;padding:18px;overflow-wrap:anywhere}
body.fx-resident-wide .fx185-conversation.visit-managed:has(.pro-work-facts) .fx185-side{display:none!important}
body.fx-resident-wide .fx185-conversation.visit-managed .fx185-side{grid-column:2;grid-row:4;min-width:0}
body.fx-resident-wide .fx185-main.visit-managed .visit-panel-heading{display:grid;gap:8px}
body.fx-resident-wide .fx185-main.visit-managed .visit-panel-heading>span{justify-self:start}
body.fx-resident-wide .fx185-main.visit-managed .visit-panel-heading h3{font-size:17px;line-height:1.4}
body.fx-resident-wide .fx185-main.visit-managed .visit-timeline{display:grid;gap:4px;border-left:2px solid #cbdcf1;padding-left:10px;margin:14px 0}
body.fx-resident-wide .fx185-main.visit-managed .visit-timeline li{background:transparent}
body.fx-resident-wide .fx185-main.visit-managed .visit-actions{display:grid;gap:10px}
body.fx-resident-wide .fx185-main.visit-managed .visit-pending-steps,
body.fx-resident-wide .fx185-main.visit-managed fieldset{grid-template-columns:minmax(0,1fr)}
body.fx-resident-wide .fx185-main.visit-managed button{white-space:normal;max-width:100%;min-height:42px}
body.fx-resident-wide .fx185-main.visit-managed .visit-options>div{flex-direction:column;align-items:stretch}
body.fx-resident-wide .fx185-main.visit-managed .visit-work-plan[open]{max-height:none;overflow:visible}
body.fx-resident-wide .fx185-main.visit-managed .pro-work-facts{display:grid;gap:12px;margin:14px 0}
body.fx-resident-wide .fx185-main.visit-managed .pro-work-facts p{display:grid;gap:4px;margin:0;font-size:12px}
body.fx-resident-wide .fx185-main.visit-managed .pro-work-facts small{font-size:10px;color:#61789b;letter-spacing:.05em;font-weight:700}
@media(min-width:1200px){body.fx-resident-wide.fx185-conversation-active main.container{max-width:1920px!important;padding-inline:clamp(24px,1.7vw,32px)!important}}
@media(max-width:1199px){
 body.fx-resident-wide .fx185-conversation.visit-managed{grid-template-columns:minmax(0,1fr)}
 body.fx-resident-wide .fx185-main.visit-managed>.visit-lifecycle{grid-column:1;grid-row:4;max-height:none;overflow:visible}
 body.fx-resident-wide .fx185-conversation.visit-managed .fx185-side{grid-column:1;grid-row:5}
 body.fx-resident-wide .fx185-main.visit-managed>.fx185-messages{height:clamp(340px,48dvh,560px)!important;min-height:340px!important}
}
@media(max-width:850px){
  body.fx-resident-wide main.container{padding-left:16px!important;padding-right:16px!important}
  body.fx-resident-wide .fx227-grid{grid-template-columns:minmax(0,1fr)}
  body.fx-resident-wide .fx227-profile-hero{padding:22px}
}
@media(max-width:600px){
  body.fx-resident-wide main.container{padding-left:12px!important;padding-right:12px!important}
  body.fx-resident-wide :is(.fx259-home,.fx227-profile,.fx133-page,.fx136-page){padding-top:16px}
  body.fx-resident-wide .fx227-profile-hero{padding:18px}
  body.fx-resident-wide .fx227-savebar span{flex-basis:100%}
}
/* Authenticated resident refinement: same screens, fields and actions. */
body.fx-resident-wide{--resident-border:#e0e8f3;--resident-muted:#60769b;--resident-radius:16px}
body.fx-resident-wide .fx259-home{display:flex;flex-direction:column}
body.fx-resident-wide .fx259-home>.fx259-head{order:0}
body.fx-resident-wide .fx259-home>.fx259-action-panel{order:1}
body.fx-resident-wide .fx259-home>.fx259-section{order:2}
body.fx-resident-wide .fx259-home>.fx259-grid{order:3}
body.fx-resident-wide .fx259-home>:is(#fx259CampaignUpdates,.fx259-section:has(.fx259-campaigns)){order:4}
body.fx-resident-wide #fx259CampaignUpdates{display:block!important}
body.fx-resident-wide #fx259CampaignUpdates:empty{display:none!important}
body.fx-resident-wide #nav button{font-size:13px;padding-inline:12px}
body:is(.fx-resident-wide,.fez-session-resident) #accountMenu{box-sizing:border-box;max-width:calc(100vw - 24px)!important;min-width:0!important;max-height:calc(100dvh - 100px);overflow-y:auto}
body.fx-resident-wide #notifPanel{position:fixed!important;top:88px;right:12px!important;left:auto!important;z-index:100200;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 160px);overflow:auto;box-sizing:border-box}
body.fx-resident-wide.fx-resident-wide :is(.fx259-head h1,.fx133-condo-hero h1,.fx136-head h1,.fx147-hero h1,.fx141-copy h1){font-size:clamp(25px,2.5vw,34px)!important;line-height:1.2;letter-spacing:-.025em}
body.fx-resident-wide.fx-resident-wide :is(.fx259-panel,.fx259-action-panel,.fx133-section,.fx136-section,.fx147-list-card,.fx147-detail,.fx141-card){border-color:var(--resident-border)!important;border-radius:var(--resident-radius)!important;box-shadow:0 3px 12px #10285f05!important}
body.fx-resident-wide.fx-resident-wide :is(.fx259-head,.fx147-hero,.fx136-head){margin-bottom:14px;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
body.fx-resident-wide.fx-resident-wide .fx259-action-panel{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;padding:18px!important;background:#fff!important}
body.fx-resident-wide .fx259-action-copy{min-width:0}
body.fx-resident-wide .fx259-action-copy h2{font-size:17px;margin:0 0 4px}
body.fx-resident-wide .fx259-action-copy p{font-size:13px;margin:0;color:var(--resident-muted)}
body.fx-resident-wide.fx-resident-wide .fx259-action-panel .fx259-quick{margin:0;display:flex;gap:8px}
body.fx-resident-wide.fx-resident-wide :is(.fx259-btn,.fx259-link,.fx133-primary,.fx133-secondary,.fx136-tab,.fx147-tab,.fx147-primary,.fx147-secondary,.fx141-btn,.fx141-secondary){min-height:44px;white-space:normal}
body.fx-resident-wide.fx-resident-wide .fx259-order{grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;padding:12px!important;border-radius:12px!important;box-shadow:none!important}
body.fx-resident-wide.fx-resident-wide .fx259-order .fx259-btn{width:auto!important;background:#f1f6ff!important;color:#175bea!important;box-shadow:none!important;border-color:#d6e4ff!important}
body.fx-resident-wide.fx-resident-wide .fx259-order h3{font-size:16px;margin:5px 0}
body.fx-resident-wide.fx-resident-wide .fx259-section{margin-top:16px}
body.fx-resident-wide .fx259-professional{padding:14px;border-color:var(--resident-border);box-shadow:none}
body.fx-resident-wide .fx259-prof-head h3{font-size:15px}
body.fx-resident-wide.fx-resident-wide .fx210-pro-media{height:88px!important}
body.fx-resident-wide.fx-resident-wide .fx171-campaign-empty{padding:12px!important;background:#f8faff!important;border:0!important}
body.fx-resident-wide .fx171-campaign-empty span{font-size:12px;line-height:1.4}
body.fx-resident-wide .fx168-card{min-height:0!important}
body.fx-resident-wide.fx-resident-wide .fx259-property{padding:16px}
body.fx-resident-wide.fx-resident-wide .fx259-metric{padding:10px;border-radius:10px}
body.fx-resident-wide.fx-resident-wide :is(.fx133-condo-hero,.fx141-hero){padding:18px!important;background:#fff!important;border:1px solid var(--resident-border)!important;border-radius:var(--resident-radius);box-shadow:none!important}
body.fx-resident-wide.fx-resident-wide .fx141-hero{display:block!important;min-height:0!important}
body.fx-resident-wide .fx141-hero-art{display:none!important}
body.fx-resident-wide.fx-resident-wide .fx133-search{margin-top:14px}
body.fx-resident-wide.fx-resident-wide :is(.fx133-section,.fx136-section){padding:16px!important}
body.fx-resident-wide.fx-resident-wide :is(.fx142-group,.fx233-category){box-shadow:none!important;border-color:var(--resident-border);border-radius:12px!important}
body.fx-resident-wide.fx-resident-wide :is(.fx142-group summary,.fx233-category summary){min-height:44px;padding:10px!important}
body.fx-resident-wide.fx-resident-wide :is(.fx133-real-card,.fx141-card,.fx150-provider){padding:14px!important;box-shadow:none!important;border-color:var(--resident-border)!important}
body.fx-resident-wide.fx-resident-wide .fx141-badge{background:#f2f5fa!important;color:var(--resident-muted)!important}
body.fx-resident-wide.fx-resident-wide .fx147-shell{grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:14px}
body.fx-resident-wide.fx-resident-wide .fx147-toolbar{padding:10px!important;background:#f7f9fd!important;border-radius:12px}
body.fx-resident-wide.fx-resident-wide .fx147-order{padding:12px!important;min-height:0!important;border-radius:10px;box-shadow:none!important}
body.fx-resident-wide.fx-resident-wide .fx147-info-card{padding:12px!important;box-shadow:none!important;background:#f8faff!important;border-color:var(--resident-border)!important}
body.fx-resident-wide .fx147-status-row{gap:8px;flex-wrap:wrap}
body.fx-resident-wide.fx-resident-wide .fx136-stat{padding:12px!important;border-color:var(--resident-border)!important;border-radius:12px}
body.fx-resident-wide.fx-resident-wide .fx136-stat b{font-size:20px}
body.fx-resident-wide.fx-resident-wide .fx136-table td{padding:16px 12px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
body.fx-resident-wide .fx136-table td:nth-child(4){text-align:right;white-space:nowrap}
body.fx-resident-wide .resident-service-description summary{cursor:pointer;color:#175bea;padding:8px 0;min-height:44px;box-sizing:border-box}
body.fx-resident-wide .resident-service-description p{margin:4px 0;white-space:normal;overflow-wrap:anywhere}
body.fx-resident-wide.fx-resident-wide .rv-card.rv-onboarding{padding:14px;margin:12px 0;gap:12px;border-radius:12px;border-left-width:3px}
body.fx-resident-wide .rv-onboarding b{font-size:16px}
body.fx-resident-wide #fx132Modal{padding:12px;box-sizing:border-box}
body.fx-resident-wide:has(#fx132Modal.open) #bottomnav{display:none!important}
body.fx-resident-wide #fx132Modal{z-index:2000000!important}
body.fx-resident-wide #fx132Modal .fx132-modal{box-sizing:border-box;max-height:calc(100dvh - 24px);width:min(640px,100%);padding:20px}
body.fx-resident-wide #fx132Modal [hidden]{display:none!important}
body.fx-resident-wide #fx132Modal .fx132-modal-actions{position:sticky;bottom:-20px;background:white;flex-wrap:wrap;padding:12px 0;margin-top:12px}
body.fx-resident-wide #fx132Modal .fx132-modal-actions button{min-height:44px}
body.fx-resident-wide #fx132Modal #fx231SaveStatus{flex-basis:100%;font-size:13px}
body.fx-resident-wide #fx132Modal #fx231SaveStatus:empty{display:none!important}
body.fx-resident-wide #fx132Modal .fx134-service-dropdown{position:static!important;max-height:180px;margin-top:6px}
body.fx-resident-wide #fx132Modal .fx135-stars button{min-width:44px;min-height:44px}
@media(max-width:850px){
 body.fx-resident-wide #notifBtn{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px;min-height:44px}
 body.fx-resident-wide .hdr-popovers{display:block!important}
 body.fx-resident-wide #notifPanel{position:fixed!important;top:74px!important;right:12px!important;left:auto!important;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 160px);overflow:auto;box-sizing:border-box}
 body.fx-resident-wide.fx-resident-wide .fx147-shell{grid-template-columns:minmax(0,1fr)}
 body.fx-resident-wide.fx-resident-wide .fx259-action-panel{grid-template-columns:minmax(0,1fr)}
 body.fx-resident-wide.fx-resident-wide .fx259-action-panel .fx259-quick{justify-content:flex-end}
}
@media(max-width:600px){
 body.fx-resident-wide.fx-resident-wide .fx259-head{gap:8px}
 body.fx-resident-wide .fx259-head .fx259-context{font-size:12px;max-width:100%;overflow-wrap:anywhere}
 body.fx-resident-wide.fx-resident-wide .fx259-action-panel .fx259-quick button{width:auto!important}
 body.fx-resident-wide.fx-resident-wide .fx259-order{grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important}
 body.fx-resident-wide.fx-resident-wide .fx259-order .fx259-btn{justify-self:start;padding:8px 12px}
 body.fx-resident-wide.fx-resident-wide .fx136-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px}
 body.fx-resident-wide.fx-resident-wide .fx136-head>button{align-self:start;background:white;color:#175bea;box-shadow:none}
 body.fx-resident-wide.fx-resident-wide .fx136-table{display:block;min-width:0!important;width:100%}
 body.fx-resident-wide .fx136-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body.fx-resident-wide .fx136-table tbody{display:grid;gap:12px}
 body.fx-resident-wide .fx136-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;padding:12px;background:#fbfcff;border:1px solid var(--resident-border);border-radius:12px}
 body.fx-resident-wide .fx136-table td:is(:nth-child(2),:nth-child(3)){grid-column:1/-1}
 body.fx-resident-wide.fx-resident-wide .fx136-table td{display:block;padding:6px 0;border:0;text-align:left;white-space:normal}
 body.fx-resident-wide .fx136-table td::before{content:attr(data-label);display:block;font-size:11px;color:var(--resident-muted);margin-bottom:3px}
 body.fx-resident-wide #fx132Modal .fx132-grid{grid-template-columns:minmax(0,1fr)}
 body.fx-resident-wide #fx132Modal .fx132-field{grid-column:1;min-width:0}
 body.fx-resident-wide.fx-resident-wide .fx147-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
}
/* Home: full-width requests, followed by community/property context.
   Keep the original sections and action nodes, including asynchronous hydration. */
body.fx-resident-wide.fx-resident-wide .fx259-home{gap:18px;padding-bottom:28px}
body.fx-resident-wide.fx-resident-wide .fx259-home>.fx259-head{margin-bottom:0}
body.fx-resident-wide.fx-resident-wide .fx259-home>.fx259-section{margin-top:0}
body.fx-resident-wide.fx-resident-wide .fx259-orders{padding:10px;gap:10px;overflow:hidden}
body.fx-resident-wide.fx-resident-wide .fx259-order{padding:14px!important;border:1px solid var(--resident-border);border-radius:12px!important;background:#fff}
body.fx-resident-wide.fx-resident-wide .fx259-order:last-child{border-bottom:1px solid var(--resident-border)}
body.fx-resident-wide.fx-resident-wide .fx259-order.featured{background:#f5f8ff}
body.fx-resident-wide.fx-resident-wide .fx259-order-top{margin-bottom:4px}
body.fx-resident-wide.fx-resident-wide .fx259-order h3{font-size:15px;margin:3px 0;overflow-wrap:anywhere}
body.fx-resident-wide.fx-resident-wide .fx259-order-time{margin-top:6px;font-size:12px;flex-wrap:wrap}
body.fx-resident-wide.fx-resident-wide .fx259-order .fx259-btn{padding:8px 10px;font-size:12px}
body.fx-resident-wide.fx-resident-wide .fx259-grid{gap:18px;min-width:0}
body.fx-resident-wide.fx-resident-wide .fx259-grid>.fx259-section{margin-top:0;min-width:0}
body.fx-resident-wide.fx-resident-wide .fx259-professional{padding:12px;min-width:0}
body.fx-resident-wide.fx-resident-wide .fx259-prof-head h3{overflow-wrap:anywhere}
body.fx-resident-wide.fx-resident-wide .fx259-section-head{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
body.fx-resident-wide.fx-resident-wide .fx259-section-head h2{font-size:18px}
@media(min-width:1000px){
 body.fx-resident-wide.fx-resident-wide .fx259-home{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:20px}
 body.fx-resident-wide.fx-resident-wide .fx259-home>*{grid-column:1/-1;min-width:0}
 body.fx-resident-wide.fx-resident-wide .fx259-home>:is(.fx259-head,.fx259-action-panel){grid-column:1/-1}
 body.fx-resident-wide.fx-resident-wide .fx259-home>.fx259-section:not(:has(.fx259-campaigns)){grid-column:1/-1}
 body.fx-resident-wide.fx-resident-wide .fx259-home>.fx259-grid{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
 body.fx-resident-wide.fx-resident-wide .fx259-home>:is(#fx259CampaignUpdates,.fx259-section:has(.fx259-campaigns)){grid-column:1/-1}
 body.fx-resident-wide.fx-resident-wide .fx259-professionals{grid-template-columns:minmax(0,1fr)}
 body.fx-resident-wide.fx-resident-wide .fx259-professional{display:grid;grid-template-columns:100px minmax(0,1fr);gap:14px;align-items:center}
 body.fx-resident-wide.fx-resident-wide .fx259-professional .fx259-prof-head{grid-column:1;grid-row:1/3;min-width:0}
 body.fx-resident-wide.fx-resident-wide .fx259-professional .fx259-rating{margin-top:8px;text-align:left}
 body.fx-resident-wide.fx-resident-wide .fx259-professional .fx259-service-count{margin-top:5px;text-align:left}
 body.fx-resident-wide.fx-resident-wide .fx259-professional>.fx259-btn{grid-column:1/-1;justify-self:start;margin-top:4px;padding:6px 10px}
}
@media(max-width:600px){
 body.fx-resident-wide.fx-resident-wide .fx259-order .fx259-btn{max-width:100px;justify-self:end}
 body.fx-resident-wide.fx-resident-wide .fx259-section-head{flex-wrap:wrap;gap:4px}
 body.fx-resident-wide.fx-resident-wide .fx259-property .fx259-metrics{margin:12px 0}
}
