/* Compact PBA workspace: shared header, blue icon rail and expandable navigation. */
:root{--workspace-header-height:64px}
#app{--workspace-sidebar-width:232px}
#app.sidebar-collapsed{--workspace-sidebar-width:64px}
#app .main-shell,#app.sidebar-collapsed .main-shell{margin-left:var(--workspace-sidebar-width);padding-top:var(--workspace-header-height);min-height:100dvh}
#app .main-shell>header{position:fixed;inset:0 0 auto 0;z-index:30;min-height:64px;height:auto;padding:9px 20px;gap:14px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;box-shadow:0 2px 10px #173f7505}
#app .header-left{display:flex;align-items:center;gap:18px;min-width:0}
#menu{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 6px;border:0;background:transparent;border-radius:5px;color:#52667f;font-size:12px;min-height:38px;flex-shrink:0}
#menu:hover{background:#edf3fa;color:var(--blue)}
#menu svg{display:block}
.workspace-brand{display:flex;align-items:center;justify-content:flex-start;width:176px;flex-shrink:0;text-decoration:none}
.workspace-brand img{display:block;width:100%;height:56px;object-fit:contain;object-position:left center}
.header-breadcrumb{min-width:0;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-left:18px;border-left:1px solid #e4eaf1;color:#7a8da5;font-size:12px}
.header-breadcrumb b{font-weight:500}
#app .header-right{gap:14px;margin-left:auto;min-width:0;max-width:100%;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap}
#app .workspace-clock{font-size:12px;gap:8px}
#app .fx-button{font-size:11px;padding:8px 10px;background:#f8fafd;border-color:#e5ebf3}
#app .header-profile-control{gap:9px;max-width:230px}
#app .header-profile-control .avatar{width:36px;height:36px;font-size:13px}
#app .header-profile-info>span{font-size:13px}
#app .header-profile-info>small{font-size:11px;margin-top:2px}
#account-menu{z-index:45}
#fx-panel,#notifications-panel{z-index:42;top:calc(var(--workspace-header-height) + 8px)}
#app>aside{position:fixed;top:var(--workspace-header-height);bottom:0;left:0;right:auto;width:var(--workspace-sidebar-width);padding:14px 10px 24px;background:#173f75;border:0;box-shadow:2px 0 10px #173f7508;z-index:25;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#90acc777 transparent;color:#fff;overscroll-behavior:contain}
#app>aside .sidebar-brand{display:none}
#app>aside .workspace-label{font-size:9px;letter-spacing:1.6px;color:#becfe5;margin:10px 9px 22px;white-space:nowrap}
#app>aside nav button{position:relative;display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;min-height:44px;margin:0 0 5px;border:0;border-radius:6px;background:transparent;color:#d7e4f5;font-size:13px;text-align:left;line-height:1.45}
#app>aside nav button i{display:flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px;height:22px;font-size:20px}
#app>aside nav button i svg{display:block;max-width:22px;max-height:22px}
#app>aside nav button:hover{background:#ffffff16;color:white;filter:none}
#app>aside nav button:focus-visible{outline:2px solid #c8ddf7;outline-offset:-2px;background:#ffffff16;color:white}
#app>aside nav>button.active{background:#ffffff16;color:#fff;font-weight:600}
#app>aside nav button[aria-current=page]{background:#fff;color:#173f75;font-weight:600}
#app>aside .nav-label{min-width:0;overflow-wrap:normal}
#app>aside .workspace-subnav{margin:2px 0 16px 21px;border-left:1px solid #5e7fa7;padding-left:7px}
#app>aside .workspace-subnav button{padding:10px 9px;font-size:12px;gap:10px;min-height:40px}
#app>aside .workspace-subnav i,#app>aside .workspace-subnav svg{width:18px;height:18px;flex-basis:18px}
#app>aside .task-menu-count{background:#ffffff18;border:1px solid #ffffff2b;color:#fff;min-width:21px;font-size:11px;padding:1px 5px}
#app>aside .task-menu-count.has-pending{background:#fff;color:#173f75;border-color:#fff}
.sidebar-backdrop{display:none}
@media(min-width:701px){
 #app.sidebar-collapsed>aside{display:flex}
 #app.sidebar-collapsed>aside .workspace-label{display:none}
 #app.sidebar-collapsed>aside nav button{width:44px;min-height:44px;padding:11px;justify-content:center;margin-bottom:7px}
 #app.sidebar-collapsed>aside .nav-label{display:none}
 #app.sidebar-collapsed>aside .workspace-subnav{border-left:0;border-top:1px solid #ffffff24;margin:3px 0 13px;padding:9px 0 0}
 #app.sidebar-collapsed>aside .workspace-subnav button{min-height:38px;height:38px;padding:9px 13px;margin-bottom:5px}
 #app.sidebar-collapsed>aside .task-menu-count{position:absolute;right:-1px;top:1px;min-width:16px;padding:0 3px;line-height:16px;font-size:10px;border-radius:4px}
}
@media(min-width:701px) and (max-width:1100px){
 .header-breadcrumb{display:none}
 #app .header-left{gap:12px}
 .workspace-brand{width:158px}
 #app .header-right{gap:10px}
 #app .workspace-clock{font-size:11px;flex-direction:column;gap:0}
 #app .clock-divider{display:none}
}
@media(max-width:700px){
 #app,#app.sidebar-collapsed{--workspace-sidebar-width:0px}
 #app .main-shell,#app.sidebar-collapsed .main-shell{margin-left:0}
 #app .main-shell>header{display:grid;grid-template-columns:minmax(0,1fr);padding:9px 14px;gap:8px}
 #app .header-left{width:100%;gap:10px}
 #menu{padding:5px;min-width:32px;min-height:34px}
 .menu-button-label{display:none}
 .workspace-brand{width:140px}
 .workspace-brand img{height:48px}
 .header-breadcrumb{display:block;flex:1;max-width:none;padding-left:10px;font-size:11px}
 #app .header-right{display:grid;grid-template-columns:minmax(70px,1fr) 28px minmax(130px,1fr);grid-template-rows:auto auto;width:100%;gap:3px 9px}
 #app .fx-button{grid-column:1;grid-row:1;justify-self:start;padding:6px 8px;font-size:10px}
 #app .notifications-button{grid-column:2;grid-row:1}
 #app .header-profile-control{grid-column:3;grid-row:1;justify-self:end;max-width:100%;gap:7px}
 #app .header-profile-control .avatar{width:32px;height:32px;font-size:12px}
 #app .header-profile-info>span{font-size:12px}
 #app .header-profile-info>small{font-size:10px}
 #app .workspace-clock{grid-column:1/-1;grid-row:2;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;gap:5px;font-size:10px}
 #app .clock-divider{display:inline}
 #app>aside{display:none;width:min(250px,calc(100vw - 56px));padding:12px 12px 24px;box-shadow:10px 0 32px #0f294333}
 #app>aside.open,#app.sidebar-collapsed>aside.open{display:flex}
 #app>aside.open+.sidebar-backdrop:not([hidden]){display:block;position:fixed;top:var(--workspace-header-height);right:0;bottom:0;left:0;z-index:24;border:0;background:#0a234957;width:100%;height:auto;padding:0}
}
/* Give the original high-resolution logo enough space on desktop. */
@media(min-width:1101px){
 .workspace-brand{width:190px}
 .workspace-brand img{height:64px;image-rendering:auto}
}
.admin-activity{position:fixed;right:22px;bottom:20px;z-index:40;font-size:13px;color:var(--ink)}.admin-activity-toggle{display:flex;align-items:center;gap:9px;border:1px solid #284f80;border-radius:24px;padding:12px 17px;background:#173f75;color:#fff;box-shadow:0 5px 20px #173f7530;font-size:13px}.admin-activity-toggle [data-activity-count]:not(:empty){background:white;color:#173f75;border-radius:12px;padding:1px 6px;font-size:11px}#admin-activity-panel{position:absolute;right:0;bottom:56px;width:380px;max-width:calc(100vw - 28px);max-height:calc(100dvh - var(--workspace-header-height) - 100px);background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 50px #142f4933;display:flex;flex-direction:column;overflow:hidden}.admin-activity-heading{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid var(--border)}.admin-activity-heading small{display:block;color:var(--muted);font-size:11px;margin-top:4px}.admin-activity-heading button{font-size:24px;padding:0 7px}.admin-activity-tabs{display:flex;gap:7px;padding:10px 12px}.admin-activity-tabs button{border:0;border-radius:5px;padding:7px;background:#f3f6fa;color:#566f8b;font-size:12px}.admin-activity-tabs button[aria-pressed=true]{color:#173f75;background:#e8f0fa;font-weight:600}.admin-activity [data-activity-status]{font-size:11px;color:var(--muted);margin:0 14px 8px}.admin-activity-items{overflow:auto;min-height:90px;max-height:370px;overscroll-behavior:contain}.admin-activity-items article{display:flex;gap:11px;padding:13px 15px;border-top:1px solid #edf1f6}.admin-activity-items article>div{min-width:0}.admin-activity-items p{margin:4px 0;font-size:12px;line-height:1.5}.admin-activity-items small{display:block;color:#66809b;line-height:1.5;overflow-wrap:anywhere}.admin-activity-items time{display:block;color:#8795a6;font-size:10px;margin-top:6px}.activity-online-dot{background:#28a46d;width:8px;height:8px;border-radius:50%;flex-shrink:0;margin-top:5px}.activity-event-icon{color:#6287ae}.activity-empty{padding:15px}.admin-activity-note{padding:11px 14px;color:#8a97a8;font-size:10px;border-top:1px solid var(--border);line-height:1.5}@media(max-width:700px){.admin-activity{right:14px;bottom:14px}.admin-activity-toggle{padding:10px 13px;font-size:12px}}
/* Date and live time share a compact exchange-rate style card. */
#app .header-right .workspace-clock{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 10px;border:1px solid #e5ebf3;border-radius:5px;background:#f8fafd;font-size:11px;line-height:1.35;white-space:nowrap;flex-shrink:0}
#app .workspace-clock .clock-divider{display:none}
#app .workspace-clock .clock-hour{font-variant-numeric:tabular-nums}
@media(max-width:700px){#app .header-right .workspace-clock{justify-self:start;width:max-content;max-width:100%;font-size:10px;padding:5px 9px}}

@media(max-width:700px){#app .header-right{grid-template-columns:28px minmax(70px,1fr) minmax(130px,1fr)}#app .notifications-button{grid-column:1}#app .fx-button{grid-column:2}}
.internal-chat{position:fixed;right:22px;bottom:20px;z-index:41;color:var(--ink);font-size:13px}.internal-chat.with-admin-activity{bottom:76px}.chat-toggle{display:flex;align-items:center;gap:9px;border:1px solid #244e80;border-radius:24px;background:#173f75;color:white;padding:12px 18px;box-shadow:0 5px 20px #173f7530;font-size:13px}.chat-toggle [data-chat-count]:not(:empty),.chat-user-count{background:#fff;color:#173f75;border-radius:12px;padding:1px 6px;font-size:11px}#internal-chat-panel{position:absolute;right:0;bottom:56px;width:370px;max-width:calc(100vw - 28px);height:500px;max-height:calc(100dvh - var(--workspace-header-height) - 155px);background:#fff;box-shadow:0 12px 45px #15345133;border:1px solid var(--border);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}.chat-panel-heading{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--border);flex-shrink:0}.chat-panel-heading button{font-size:24px;padding:0 6px}.chat-help{font-size:11px;color:#778aa0;line-height:1.5;margin:12px 16px}.chat-directory{display:flex;flex-direction:column;min-height:0;flex:1}.chat-directory input{margin:0 12px 10px;width:calc(100% - 24px);padding:10px;font-size:12px}.chat-directory [data-chat-users]{overflow:auto;flex:1;min-height:0}.chat-directory button{display:flex;align-items:center;gap:10px;width:100%;padding:13px 16px;border:0;border-top:1px solid #f0f3f7;background:white;text-align:left;color:var(--ink);font-size:13px}.chat-directory button:disabled{cursor:default;background:#fafbfd;filter:none;color:#8793a2}.chat-directory button:not(:disabled):hover{background:#edf4fc}.chat-directory button>span:nth-child(2){min-width:0;flex:1}.chat-directory strong{font-weight:500;overflow-wrap:anywhere}.chat-directory small{display:block;font-size:11px;margin-top:4px}.chat-presence{width:8px;height:8px;border-radius:50%;flex-shrink:0}.chat-presence.online{background:#26a16b}.chat-presence.offline{background:#df5353}.chat-user-count{background:#e8f0fa}.chat-conversation{display:flex;flex-direction:column;flex:1;min-height:0}.chat-conversation [data-chat-back]{align-self:flex-start;margin:9px 14px}.chat-conversation [data-chat-peer]{padding:0 14px 10px;border-bottom:1px solid var(--border)}.chat-peer-state{display:block;font-size:11px;margin-top:4px}.chat-peer-state.online{color:#22875e}.chat-peer-state.offline{color:#c34343}.chat-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:12px;display:flex;flex-direction:column;gap:9px;background:#f5f8fc}.chat-bubble{flex-shrink:0;max-width:88%;padding:9px 11px;border-radius:10px;background:#fff;border:1px solid #e2eaf4;align-self:flex-start}.chat-bubble.mine{background:#e4effd;border-color:#d3e3f8;align-self:flex-end}.chat-bubble p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5;font-size:13px}.chat-bubble time{display:block;font-size:9px;color:#7b8ba0;margin-top:5px;text-align:right}.chat-compose{display:flex;align-items:flex-end;gap:8px;padding:10px;border-top:1px solid var(--border)}.chat-compose textarea{flex:1;min-width:0;width:100%;resize:none;border:1px solid #dce3ee;border-radius:6px;padding:8px;font:13px 'DM Sans',Arial,sans-serif;max-height:100px}.chat-compose button{padding:10px;font-size:12px}.chat-compose button:disabled{opacity:.5;cursor:default}.internal-chat [data-chat-status]{font-size:10px;line-height:1.5;color:#788ba0;padding:8px 12px;margin:0;border-top:1px solid var(--border);flex-shrink:0}.chat-empty{font-size:12px;line-height:1.6;padding:12px;color:#8494a8}.chat-conversation [data-chat-older]{font-size:11px;padding:7px;background:#f4f7fb;flex-shrink:0}@media(max-width:700px){.internal-chat{right:14px;bottom:14px}.internal-chat.with-admin-activity{bottom:66px}.chat-toggle{padding:10px 15px;font-size:12px}#internal-chat-panel{max-height:calc(100dvh - var(--workspace-header-height) - 145px);bottom:49px}}
/* Phone and tablet header: identity above, status cards below. */
@media(max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1400px){
 #app .main-shell>header{display:grid;grid-template-columns:32px minmax(90px,1fr) minmax(130px,1.2fr);grid-template-rows:auto 42px;gap:8px;padding:9px 14px}
 #app .header-left,#app .header-right{display:contents}
 #app .menu-button-label{display:none}
 #app #menu{grid-column:1;grid-row:1;min-width:32px;width:32px;padding:4px}
 #app .workspace-brand{grid-column:2;grid-row:1;width:100%;max-width:140px}
 #app .workspace-brand img{height:42px}
 #app .header-breadcrumb{display:none}
 #app .header-profile-control{grid-column:3;grid-row:1;justify-self:end;width:auto;max-width:100%;gap:6px}
 #app .header-profile-control .avatar{flex-shrink:0;width:30px;height:30px;font-size:11px}
 #app .header-profile-info>span{font-size:11px;line-height:1.35}
 #app .header-profile-info>small{font-size:10px}
 #app .notifications-button{grid-column:1;grid-row:2;align-self:stretch;justify-self:stretch;width:32px;min-width:0;height:42px;padding:4px;border:1px solid #e5ebf3;border-radius:5px;background:#f8fafd}
 #app .fx-button{grid-column:2;grid-row:2;align-self:stretch;justify-self:stretch;width:100%;height:42px;padding:5px;font-size:10px;white-space:nowrap;text-align:center}
 #app .header-right .workspace-clock{grid-column:3;grid-row:2;align-self:stretch;justify-self:stretch;width:100%;max-width:100%;height:42px;padding:4px;font-size:10px;gap:2px}
}
.chat-panel-heading{gap:12px}.chat-panel-heading>strong{flex:1}.chat-panel-heading .chat-sound-control{font-size:20px;min-width:28px;min-height:30px;border-radius:4px}.chat-sound-control[aria-pressed=false]{color:#9aa5b3}
.chat-incoming-notice{position:absolute;right:0;bottom:55px;width:260px;max-width:calc(100vw - 28px);border:1px solid #ccdcf0;background:white;color:#173f75;padding:13px 15px;border-radius:9px;box-shadow:0 6px 25px #173f7530;text-align:left;font-size:13px;line-height:1.5;overflow-wrap:anywhere}.chat-toggle.has-unread{box-shadow:0 0 0 4px #8ab6ed55,0 5px 20px #173f7530}
/* Uniform desktop status cards. */
@media(min-width:1101px) and (hover:hover) and (pointer:fine){
 #app .header-right .notifications-button,#app .header-right .fx-button,#app .header-right .workspace-clock{width:124px;min-width:124px;height:46px;min-height:46px;flex:0 0 124px;box-sizing:border-box;border:1px solid #e5ebf3;border-radius:5px;background:#f8fafd;padding:6px 9px;display:inline-flex;align-items:center;justify-content:center}
 #app .header-right .notifications-button{position:relative}
 #app .notifications-button [data-notification-count]{top:3px;right:39px}
}
.zone-operations-map{height:520px;min-height:320px;background:#edf2f8}.zone-summary{display:flex;flex-wrap:wrap;gap:12px 25px;padding:16px 20px;margin:0 0 20px;background:#edf3fb;border:1px solid #dfe8f4;border-radius:7px;color:#6280a1;font-size:13px}.zone-summary strong{color:#173f75}.zone-toolbar{flex-wrap:wrap}.zone-toolbar input{flex:1 1 290px}.zone-toolbar select{width:180px}.zone-list{margin-top:22px}.zone-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;flex-wrap:wrap;padding:15px 20px;font-size:12px;color:#7389a2}.zone-data{display:grid;grid-template-columns:1fr 1fr;gap:13px 16px;margin:15px 0}.zone-data>div{min-width:0}.zone-data dt{font-size:11px;color:#7c90a9;margin-bottom:4px}.zone-data dd{margin:0;font-size:13px;color:#25476d;overflow-wrap:anywhere;line-height:1.5}.zone-map-popup{min-width:230px}.zone-map-popup section+section{margin-top:18px;padding-top:15px;border-top:1px solid #dce5ef}.zone-map-popup .zone-data{gap:10px;font-size:12px}.zone-operation-dialog{width:900px}.zone-position-map{height:300px;margin-top:12px;border:1px solid #dce5ef;border-radius:6px;background:#edf3fa}.zone-calculated{padding:16px;background:#edf3fb;border:1px solid #dce6f4;border-radius:6px;font-size:14px;color:#173f75}.zone-calculated small{display:block;margin-top:6px;font-size:11px;color:#7b90aa}.zone-import-errors{color:#b23f3f;font-size:13px;line-height:1.7}#zone-import-file{padding:12px}.zone-detail h3{color:#173f75}@media(max-width:700px){.zone-operations-map{height:420px}.zone-summary{padding:13px;gap:10px 16px;font-size:12px}.zone-toolbar select{flex:1;min-width:135px;width:auto}.zone-operation-dialog{padding:20px 16px}.zone-data{gap:12px}.zone-position-map{height:260px}.zone-pagination{justify-content:center}.zone-pagination span{width:100%;text-align:center;order:-1}}
.zone-spatial-tools{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 14px;padding:16px 20px 10px}.zone-spatial-tools label{font-size:11px;color:#7389a2;margin:0}.zone-spatial-tools input{width:115px;padding:10px;font-size:13px;margin-top:5px}.zone-spatial-tools .secondary{font-size:12px;padding:11px 14px;min-height:40px}.zone-spatial-tools button:disabled{opacity:.45;cursor:default}.zone-spatial-status{margin:0;padding:5px 20px;color:#315f91;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.zone-spatial-hint{padding:0 20px;margin:5px 0 14px}.zone-report-dialog .report-toolbar-actions{display:flex;justify-content:flex-end}.zone-report-dialog .report-toolbar-actions .report-close{margin-left:5px}@media(max-width:700px){.zone-spatial-tools{padding:14px;gap:10px;align-items:center}.zone-spatial-tools label{flex:1}.zone-spatial-tools input{width:100%;min-width:100px}.zone-spatial-status,.zone-spatial-hint{padding-left:14px;padding-right:14px}.zone-report-dialog .report-toolbar-actions{justify-content:space-between}}
/* Keep Leaflet panes and controls within each map's own stacking context. */
#app .leaflet-container{isolation:isolate;z-index:0}

/* Price visibility affects reports only; keep its control compact on all screens. */
.preview-price-toggle{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:8px;cursor:pointer}.preview-price-toggle input[type=checkbox]{width:17px;height:17px;min-height:0;padding:0;margin:0;flex:0 0 17px;accent-color:#1b477c}.property-price-heading{display:flex;align-items:center;justify-content:space-between;gap:6px 12px;flex-wrap:wrap;margin-bottom:8px}.property-price-heading>label{margin:0}.property-price-heading .preview-price-toggle{font-size:12px}.property-price-field>input{width:100%}

/* Readable KML descriptions and attribute tables, contained within the map popup. */
.environment-popup .environment-feature{width:100%;max-width:none;max-height:none;overflow:visible;white-space:normal;overflow-wrap:anywhere;font:13px/1.55 Arial,sans-serif;color:#26384e}.environment-popup .leaflet-popup-content{margin:18px 20px}.environment-popup .environment-feature h3{margin:0 22px 14px 0;font-size:16px;line-height:1.4;color:#1b477c}.environment-popup .environment-feature h1,.environment-popup .environment-feature h2{font-size:16px;margin:12px 0}.environment-popup .environment-feature h4,.environment-popup .environment-feature h5,.environment-popup .environment-feature h6{font-size:14px;margin:10px 0}.environment-popup .environment-feature p{margin:8px 0}.environment-popup .environment-feature-plain{white-space:pre-wrap}.environment-popup .environment-feature table{width:100%;max-width:100%;table-layout:fixed;border-collapse:collapse;margin:10px 0;font-size:12px}.environment-popup .environment-feature td,.environment-popup .environment-feature th{padding:8px;border:1px solid #dfe6ee;white-space:normal;overflow-wrap:anywhere;vertical-align:top;font-size:12px;text-align:left;position:static}.environment-popup .environment-feature th{background:#eef3f9;color:#1b477c}.environment-popup .environment-feature ul,.environment-popup .environment-feature ol{padding-left:20px}.environment-popup .environment-feature-fields{margin:14px 0 0}.environment-popup .environment-feature-fields>div{padding:8px 0;border-top:1px solid #e6ebf1}.environment-popup .environment-feature-fields dt{font-weight:600;color:#1b477c}.environment-popup .environment-feature-fields dd{margin:3px 0 0;white-space:pre-wrap}.environment-popup .leaflet-popup-scrolled{overscroll-behavior:contain}

.unit-collapsed>.unit-collapse-toggle svg{transform:rotate(180deg)}.unit-card.unit-collapsed{padding-top:12px;padding-bottom:14px}.unit-card>legend{max-width:calc(100% - 65px)}
/* Primary unit titles stand apart from their owner and detail headings. */
.property-dialog .unit-card>legend{background:#214a78;color:#fff;border:1px solid #214a78;border-radius:999px;padding:7px 16px;font-size:15px;font-weight:700;line-height:1.35;letter-spacing:.1px;overflow-wrap:anywhere}.property-dialog .unit-card>legend .unit-kind-label,.property-dialog .unit-card>legend .unit-number{color:inherit}

.property-dialog .unit-card.unit-linked.unit-collapsed{margin-left:26px;border-left:3px solid #bed0e5;background:#f8fafd}@media(max-width:700px){.property-dialog .unit-card.unit-linked.unit-collapsed{margin-left:14px}}

.owner-identity-fields{grid-column:1/-1;min-width:0;margin:6px 0 14px;padding:12px 14px;border:1px solid #dfe6ef;border-radius:7px}.owner-identity-fields>legend{font-size:13px;color:#36577e;padding:0 6px}.owner-identity-fields .form-grid{margin:0}

.zone-position-marker{background:transparent;border:0}.zone-position-marker svg{display:block;filter:drop-shadow(0 2px 3px #19355055)}

#work-schedule-settings{border-top:1px solid #dfe6ee;margin-top:24px}.work-schedule-check{display:flex;align-items:center;gap:9px;margin:8px 0}.work-schedule-check input[type=checkbox]{width:18px;height:18px;min-height:0;flex:0 0 18px;margin:0;accent-color:#214a78}.work-schedule-days{display:flex;flex-wrap:wrap;gap:8px 22px;margin:20px 0;padding:14px 18px;border:1px solid #dfe6ee;border-radius:7px}.work-schedule-days legend{font-size:13px;color:#36577e;padding:0 6px}.work-schedule-days .work-schedule-check{font-size:14px}#work-schedule-form [role=alert]{color:#a33131}

#special-access-settings{border-top:1px solid #dfe6ee}#special-access-settings h3{margin-top:0;font-size:17px}#special-access-settings form{margin:18px 0;padding:16px;border:1px solid #dce5ef;border-radius:8px;background:#f8fafd}.special-access-card{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 0;border-top:1px solid #e3eaf1;overflow-wrap:anywhere}.special-access-card small{display:block;color:#73859a;margin:4px 0}.special-access-card p{margin:8px 0;font-size:13px}.special-access-card button{flex-shrink:0}#special-access-settings [role=alert]{color:#a33131}@media(max-width:700px){.special-access-card{flex-direction:column}#work-schedule-settings>.panel-head{flex-wrap:wrap;gap:10px}}

.special-access-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}#special-access-settings .special-access-heading h3{margin:0}

.profile-contact{border-top:1px solid #dfe6ee}.profile-contact-fields{border:0;padding:0;margin:0;min-width:0}.profile-contact [data-link] a{display:inline-block;margin-top:6px;font-size:13px}.profile-contact [role=alert]{color:#a33131}
.chat-user-row{display:flex;align-items:center;border-top:1px solid #f0f3f7}.chat-directory .chat-user-row>[data-chat-user]{flex:1;min-width:0;border:0;padding:12px}.chat-directory .chat-view-profile{width:auto;flex-shrink:0;border:0;padding:10px 9px;color:#174376;font-size:11px}.chat-directory-avatar{position:relative;flex-shrink:0}.chat-directory-avatar .avatar{width:36px;height:36px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;background:#e9f0fa;color:#173f75}.chat-directory-avatar img{width:100%;height:100%;object-fit:cover}.chat-directory-avatar .chat-presence{position:absolute;right:0;bottom:0;border:2px solid white;width:10px;height:10px}.user-profile-dialog{width:440px;max-width:calc(100vw - 32px);max-height:80dvh;overflow:auto;padding:26px;border:1px solid #dce5ef;border-radius:14px;color:var(--ink)}.user-profile-dialog::backdrop{background:#15345166}.user-profile-close{float:right;font-size:25px}.user-profile-heading{display:flex;gap:16px;align-items:center;margin:14px 0 24px}.user-profile-heading .avatar{width:72px;height:72px;flex-shrink:0;overflow:hidden;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#e9f0fa;font-size:24px}.user-profile-heading img{width:100%;height:100%;object-fit:cover}.user-profile-heading h2{font-size:21px;overflow-wrap:anywhere;margin:0}.user-profile-heading p{font-size:12px;margin:8px 0}.user-profile-heading .online{color:#22875e}.user-profile-heading .offline{color:#c34343}.user-profile-contact{padding:12px 0;border-top:1px solid #e2eaf4}.user-profile-contact strong,.user-profile-contact a{display:block;overflow-wrap:anywhere}.user-profile-contact a{margin-top:6px;font-size:14px}

.user-profile-contact strong{display:flex;align-items:center;gap:9px}.profile-contact-icon{display:inline-flex;flex-shrink:0;color:#244e80}.profile-contact-icon.icon-whatsapp{color:#20965b}.profile-contact-icon.icon-linkedin,.profile-contact-icon.icon-facebook{color:#1767aa}.profile-contact-icon.icon-instagram{color:#b44680}.profile-contact-icon.icon-tiktok{color:#26354b}

.profile-birthday-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-birthday-row p{margin:12px 0 0}@media(max-width:360px){.profile-birthday-row{gap:10px;font-size:13px}}
.user-profile-contact{font-size:13px}.user-profile-contact strong{font-size:13px;gap:7px}.user-profile-contact a,.user-profile-contact p{font-size:13px}.user-profile-contact .profile-contact-icon svg{width:16px;height:16px}.profile-birthday-row{gap:12px}.profile-birthday-row strong{font-size:12px;white-space:nowrap}.profile-birthday-row p{margin-top:9px}@media(max-width:360px){.profile-birthday-row{gap:8px}.profile-birthday-row strong{font-size:11px;gap:4px}.profile-birthday-row .profile-contact-icon svg{width:14px;height:14px}}

.chat-directory .chat-user-row{gap:10px;padding:10px 12px;background:#fff;transition:background .15s}.chat-directory .chat-user-row:hover{background:#f5f8fc}.chat-directory .chat-avatar-button{width:42px;height:42px;padding:0;border:0;border-radius:50%;flex-shrink:0;justify-content:center;background:transparent}.chat-directory .chat-avatar-button:hover{background:#e7effb;box-shadow:0 0 0 3px #e7effb}.chat-user-info{flex:1;min-width:0}.chat-user-info strong{display:block;color:#30455e;font-size:12px}.chat-user-info small{color:#8695a8;font-size:10px}.chat-directory .chat-user-row>.chat-message-action{width:36px;height:36px;flex:none;padding:0;border:0;border-radius:11px;justify-content:center;background:#eaf1fb;color:#244e80}.chat-directory .chat-user-row>.chat-message-action:disabled{background:#f3f5f8;color:#b2bcc8;cursor:default}.chat-user-row>.chat-user-count{font-size:10px;padding:2px 6px}.chat-avatar-button:focus-visible,.chat-message-action:focus-visible{outline:2px solid #397abe;outline-offset:3px}

.home-tools{margin:28px 0}.home-tools h2{font-size:20px;margin:0 0 16px}.home-tools-panel{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px;padding:24px;border:1px solid var(--border);border-radius:10px;background:white}.home-tool{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:13px;padding:18px 8px;border-radius:10px;text-align:center;text-decoration:none;color:var(--ink);font-size:12px;line-height:1.5;transition:background .15s,transform .15s}.home-tool:hover{background:#f0f5fc;transform:translateY(-2px)}.home-tool:focus-visible{outline:2px solid #397abe;outline-offset:2px}.home-tool-icon{height:52px;display:flex;align-items:center;justify-content:center}.home-tool img{max-width:52px;max-height:48px;object-fit:contain}.home-tool-external{position:absolute;right:5px;top:8px;color:#7f91a9;opacity:0}.home-tool:hover .home-tool-external,.home-tool:focus-visible .home-tool-external{opacity:1}@media(max-width:1200px){.home-tools-panel{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:600px){.home-tools-panel{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:8px}.home-tool{padding:16px 8px}}

.parameter-summary{display:flex;gap:28px;flex-wrap:wrap;background:#eaf2fc;border:1px solid #dce7f5;border-radius:7px;padding:18px 22px;margin:24px 0;color:#6d85a3;font-size:13px}.parameter-summary strong{color:#214c7d}.parameter-filters{display:grid;grid-template-columns:2fr repeat(5,minmax(120px,1fr));gap:12px}.parameter-filters input,.parameter-filters select{min-width:0;width:100%}.parameter-table{max-height:65dvh;overflow:auto}.parameter-table table{min-width:2400px}.parameter-table th{position:sticky;top:0;background:#edf3fb;z-index:1;white-space:nowrap}.parameter-table td{font-size:12px;white-space:nowrap;vertical-align:top}.parameter-table .parameter-address{white-space:normal;min-width:280px;max-width:400px}.parameter-pagination{display:flex;gap:18px;justify-content:flex-end;align-items:center;padding:18px;font-size:12px}.parameter-dialog{width:780px;max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto;padding:26px;border:1px solid #dfe6ef;border-radius:12px}.parameter-dialog::backdrop{background:#15345166}.parameter-dialog fieldset{border:0;margin:0;padding:0;min-width:0}.parameter-dialog [role=alert]{color:#a33131}.parameter-dialog .dialog-head{position:static}.parameter-dialog .form-grid{margin:20px 0}.parameter-dialog .dialog-actions{position:sticky;bottom:-26px;background:white;padding:16px 0;border-top:1px solid #dfe6ef}@media(max-width:1200px){.parameter-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.parameter-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:16px}.parameter-filters input{grid-column:1/-1}.parameter-dialog{padding:18px}.parameter-dialog .form-grid{grid-template-columns:1fr}.parameter-pagination{gap:8px;justify-content:center;padding:12px}.parameter-pagination button{padding:10px;font-size:12px}}

.parameter-property-picker{min-width:0}.parameter-property-picker label+label{margin-top:10px}.parameter-property-picker select{width:100%;max-width:100%}.parameter-property-picker .field-help{display:block;margin-top:7px}

.environment-expand{flex-shrink:0;white-space:nowrap}.environment-expanded{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;z-index:1000!important;background:#fff;display:flex;flex-direction:column;overflow:hidden}.environment-expanded .environment-toolbar{flex-shrink:0;padding:12px 18px;flex-direction:row;align-items:center}.environment-expanded .environment-toolbar p{margin:5px 0 0}.environment-expanded .environment-message{flex-shrink:0;padding-bottom:8px}.environment-expanded .environment-layout{flex:1;min-height:0;grid-template-columns:240px minmax(0,1fr)}.environment-expanded .environment-layer-panel{min-height:0;overflow:auto}.environment-expanded .environment-layers{max-height:none;overflow:visible}.environment-expanded .environment-map-canvas{min-height:0;display:flex;flex-direction:column}.environment-expanded .property-map-summary{flex-shrink:0;padding:10px 16px}.environment-expanded .property-map-layout{flex:1;min-height:0;display:flex}.environment-expanded .portfolio-map{height:100%;min-height:0;flex:1}.environment-expanded .property-map-results{display:none}@media(max-width:700px){.environment-expanded .environment-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.environment-expanded .environment-layer-panel{max-height:160px}.environment-expanded .environment-toolbar h3{font-size:16px}.environment-expanded .environment-toolbar p{display:none}.environment-expanded .environment-expand{font-size:12px;padding:10px}.environment-expanded .environment-message{font-size:11px}.environment-expanded .environment-layer-heading{padding:8px 12px}.environment-expanded .environment-layer-heading .field-help{display:none}}

.property-maps-link{display:inline-flex;align-items:center;gap:7px;vertical-align:middle}.property-maps-icon{display:block;width:18px;height:24px;object-fit:contain;flex-shrink:0}.property-maps-link span{line-height:1.4}

.maps-location-link{display:inline-flex;align-items:center;gap:7px}.maps-location-icon{display:block;width:18px;height:24px;object-fit:contain;flex-shrink:0}

.home-tool-item{min-width:0;text-align:center}.home-tool-web{display:inline-block;padding:6px;margin:0 0 8px;font-size:11px;color:#54769e;text-decoration:none}.home-tool-web:hover{text-decoration:underline}.home-tool-web:focus-visible{outline:2px solid #397abe;outline-offset:2px}
.parameter-property-picker{display:contents}.parameter-property-picker>label:nth-child(2),.parameter-property-picker>.field-help{grid-column:1/-1}.parameter-property-picker>label+label{margin-top:0}.parameter-property-picker>.field-help{margin:0}

.tasks-user-summary{margin-top:22px}

.property-dialog .unit-card.unit-linked.unit-collapsed{margin-left:calc(26px * var(--unit-link-depth,1))}@media(max-width:700px){.property-dialog .unit-card.unit-linked.unit-collapsed{margin-left:calc(14px * var(--unit-link-depth,1))}}

.contract-table{max-height:none;overflow-x:auto}.contract-table table{min-width:1550px;table-layout:fixed}.contract-table th{white-space:normal;overflow-wrap:normal;font-size:12px;line-height:1.4;padding:12px 8px;position:sticky;top:0;background:#edf3fb;z-index:1}.contract-table td{font-size:12px;white-space:normal;overflow-wrap:anywhere;vertical-align:top;padding:12px 8px}.contract-table .contract-owner{white-space:normal;min-width:0;overflow-wrap:anywhere}.contract-dialog [data-contract-trade][hidden]{display:none}

.contract-dialog [data-contract-field][hidden]{display:none}

.contracts-summary{grid-template-columns:repeat(4,minmax(0,1fr))}@media(max-width:700px){.contracts-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.badge.contract-state-vigente{background:#e4f3e9;color:#21643d}.badge.contract-state-finalizado{background:#fbe6e7;color:#a52632}.badge.contract-state-pendiente{background:#fff2bf;color:#795600}.task-summary-card.contract-state-vigente strong{color:#21643d}.task-summary-card.contract-state-finalizado strong{color:#a52632}.task-summary-card.contract-state-pendiente strong{color:#795600}.contract-menu-count{margin-left:auto;flex-shrink:0;min-width:22px;padding:2px 6px;border-radius:6px;background:#fff2bf;color:#795600;font-size:11px;font-weight:700;text-align:center}
.task-summary-card.contract-state-vigente{background:#f0f9f3;border-color:#b9dfc7;color:#21643d}.task-summary-card.contract-state-finalizado{background:#fff2f2;border-color:#edbdc2;color:#a52632}.task-summary-card.contract-state-pendiente{background:#fff9e3;border-color:#ebd783;color:#795600}.task-summary-card.contract-state-vigente[aria-pressed=true]{border-color:#368254;box-shadow:0 0 0 1px #368254}.task-summary-card.contract-state-finalizado[aria-pressed=true]{border-color:#b33844;box-shadow:0 0 0 1px #b33844}.task-summary-card.contract-state-pendiente[aria-pressed=true]{border-color:#a78219;box-shadow:0 0 0 1px #a78219}
.contract-table .badge{display:inline-block;max-width:100%;box-sizing:border-box;font-size:12px;line-height:1.4;white-space:normal;overflow-wrap:normal;padding:4px 5px}.contract-table .text-btn{font-size:13px;white-space:nowrap}
.contract-original{border:1px solid #dce5ef;border-radius:9px;padding:14px;margin:16px 0}.contract-original>summary{cursor:pointer;font-weight:600;color:#244b76}.contract-history{border-top:1px solid #dce5ef;margin-top:20px;padding-top:24px}.history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.history-heading small{font-size:12px;letter-spacing:.12em;color:#778da7}.history-heading h3{margin:6px 0 0;font-size:21px}.history-heading button{font-size:14px}.history-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;background:#f0f5fb;border-radius:9px;padding:16px;margin:20px 0}.history-summary small{display:block;color:#6d83a0;font-size:12px}.history-summary strong{display:block;font-size:19px;color:#214b7b;margin-top:5px}.history-timeline{list-style:none;margin:24px 0 0 7px;padding:0 0 0 23px;border-left:2px solid #dce7f3}.history-entry{position:relative;padding:0 0 24px;overflow-wrap:anywhere}.history-dot{position:absolute;left:-30px;top:4px;width:12px;height:12px;border:3px solid white;border-radius:50%;background:#8098b5}.history-signed .history-dot{background:#388359}.history-entry-head{display:flex;justify-content:space-between;gap:12px;font-size:16px;line-height:1.5}.history-entry-head time{white-space:nowrap;color:#506b8d;font-size:14px}.history-entry small{display:block;font-size:14px;line-height:1.5;color:#8393a8}.history-entry p{font-size:16px;line-height:1.6;white-space:pre-wrap;margin:10px 0}.history-facts{display:flex;gap:12px;flex-wrap:wrap;background:#f7f9fc;border-radius:6px;padding:10px;margin-top:10px;font-size:14px;line-height:1.5;color:#75879f}.history-facts b{color:#2b425f;margin-left:5px}.history-entry details{font-size:15px;line-height:1.5;margin-top:8px}.contract-history [data-history-form]{padding:16px;background:#f6f9fd;border:1px solid #dce5ef;border-radius:9px;margin:20px 0}.contract-history [hidden]{display:none!important}.contract-history textarea{width:100%;box-sizing:border-box;resize:vertical}.history-form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}.history-empty{font-size:16px;color:#7b8da3}.contract-history [role=alert]{color:#a52632}@media(max-width:600px){.history-heading{align-items:flex-start;flex-direction:column}.history-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:12px}.history-summary strong{font-size:15px}.history-entry-head{flex-direction:column;gap:4px}.history-facts{flex-direction:column;gap:5px}.history-form-actions{flex-wrap:wrap}}
.parameter-filters{max-width:none;grid-template-columns:minmax(220px,2fr) repeat(5,minmax(130px,1fr))}.parameter-filters select{white-space:normal}.parameter-documents{margin:24px 0 8px;padding-top:18px;border-top:1px solid #dce5ef}.parameter-documents h3{font-size:17px;margin:0 0 8px}.parameter-documents a,.parameter-document-links a{font-size:12px;color:#214f87;text-decoration:none;display:inline-block;margin-top:8px}.parameter-documents a:hover,.parameter-document-links a:hover{text-decoration:underline}.parameter-document-links{display:flex;flex-direction:column;gap:2px}.parameter-documents input{min-width:0}.parameter-documents .form-grid{margin-bottom:0}@media(max-width:1200px){.parameter-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.parameter-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
.contract-party-picker{grid-column:1/-1;padding:16px;border:1px solid #dce7f5;background:#f5f8fd;border-radius:8px;min-width:0}.contract-party-picker h3{font-size:16px;margin:0 0 12px}.contract-party-picker .form-grid{margin:0}.contract-party-picker .field-help{margin:0}.contract-party-picker select{max-width:100%;min-width:0}.contract-party-picker [data-party-retry]{font-size:12px;margin-top:8px}.contract-dialog input[readonly]{background:#f5f8fd;color:#435c7b}
.contract-party-picker [data-party-all]{font-size:12px;white-space:normal;text-align:left;max-width:100%;margin:4px 0 14px}.contract-signatories{margin-bottom:12px}.contract-signatories>strong{font-size:12px;color:#264f7d}.contract-signatories ul{list-style:none;margin:8px 0 0;padding:0;max-height:240px;overflow:auto}.contract-signatories li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #dce5ef;font-size:12px}.contract-signatories li span{min-width:0;overflow-wrap:anywhere}.contract-signatories small{display:block;font-size:10px;color:#7a8da5;margin-top:3px}.contract-signatories li button{font-size:11px;flex-shrink:0}
.permissions-settings{max-width:1000px}.permissions-settings .permissions{min-width:650px}.permission-area td:first-child{font-weight:600}.permission-subarea{background:#f6f9fd}.permission-subarea td:first-child{padding-left:34px}.permission-subarea small{display:block;font-size:10px;color:#8a9aaf;margin-bottom:3px;letter-spacing:.04em}.permission-subarea td:first-child>span{float:left;margin-right:8px;color:#8a9aaf}.permissions input:disabled{opacity:.5;cursor:not-allowed}
.profile-timezone{border-top:1px solid #dce5ef}.profile-timezone h3{font-size:18px;margin:0 0 14px}.profile-timezone select{max-width:100%;min-width:0}.profile-timezone .crm-actions{flex-wrap:wrap}.profile-timezone [role=alert]{color:#a52632}

.home-tool img[src$="/nexo.png"]{width:84px;max-width:84px;height:auto}
.contract-investor-picker{grid-column:1/-1;padding:16px;border:1px solid #dce7f5;background:#f5f8fd;border-radius:8px;min-width:0}.contract-investor-picker h3{font-size:16px;margin:0 0 12px}.contract-investor-picker .field-help{margin:8px 0 0}.contract-investor-picker select{min-width:0;max-width:100%}.contract-party-picker[hidden],.contract-investor-picker[hidden]{display:none!important}
.investor-contracts{margin-top:22px}.investor-contracts table{min-width:680px}.investor-contracts td{font-size:12px;vertical-align:top}.investor-contracts td small{display:block;font-size:11px;margin-top:5px}.investor-contracts .badge{display:inline-block;line-height:1.4;white-space:normal}.investor-contracts .settings-body{max-width:none}
.crm-investor-card .investor-card-action{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 13px;margin:6px 6px 0 0;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#173f75;font-size:13px;font-weight:500;line-height:1.4;text-decoration:none}.crm-investor-card .investor-card-action:hover{background:#e9f1fb;border-color:#89a8ce}.crm-investor-card .investor-card-action:focus-visible{outline:2px solid #397abe;outline-offset:2px}
.investor-assignment-date{display:inline-block;white-space:nowrap;font-size:12px}.investor-assignment-date small{display:block;font-size:11px;color:#7d8fa6;margin-top:4px}
.contract-dialog .dialog-head h2{min-width:0;overflow-wrap:anywhere;padding-right:12px}.contract-dialog .dialog-head>button{flex-shrink:0}

.crm-badge.discarded{background:#fde8eb;color:#b42335;border:1px solid #f5bac3}

.lead-row-actions{display:flex;flex-direction:column;gap:8px;min-width:134px;align-items:stretch}
.lead-row-actions .lead-row-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;text-decoration:none}
.lead-row-actions .lead-row-action:hover{background:#e9f1fb;border-color:#89a8ce}
.lead-row-actions .lead-retire-action{border-color:#e8b6bd;background:#fff5f5;color:#b42335}
.lead-row-actions .lead-retire-action:hover{border-color:#d88a96;background:#fde8eb}
.lead-row-actions .lead-row-action:focus-visible{outline:2px solid #397abe;outline-offset:2px}

.parameter-table .parameter-open-button,.contract-table .contract-open-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:112px;padding:10px 14px;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;text-decoration:none}
.parameter-table .parameter-open-button:hover,.contract-table .contract-open-button:hover{background:#e9f1fb;border-color:#89a8ce}
.parameter-table .parameter-open-button:focus-visible,.contract-table .contract-open-button:focus-visible{outline:2px solid #397abe;outline-offset:2px}
.parameter-document-links a,.parameter-documents a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:112px;padding:10px 14px;box-sizing:border-box;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;text-decoration:none}
.parameter-document-links a:hover,.parameter-documents a:hover{background:#e9f1fb;border-color:#89a8ce;text-decoration:none}
.parameter-document-links a:focus-visible,.parameter-documents a:focus-visible{outline:2px solid #397abe;outline-offset:2px}
.parameter-documents a[hidden],.parameter-document-links a[hidden]{display:none}

.parameter-dialog .parameter-comment{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;min-width:0}
.parameter-dialog .parameter-comment textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;min-height:130px;padding:13px 14px;border:1px solid #cbd9eb;border-radius:7px;background:#fff;color:#183b65;font:inherit;font-size:14px;line-height:1.6;resize:vertical}
.parameter-dialog .parameter-comment textarea::placeholder{color:#91a1b6}
.parameter-dialog .parameter-comment textarea:focus{outline:2px solid #397abe;outline-offset:2px;border-color:#397abe}
.ct-intro{margin:22px 0}.ct-intro h2{margin-bottom:8px}.ct-intro p{color:#7d8fa6;font-size:13px;line-height:1.7}.ct-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0}.ct-summary .task-summary-card{min-width:0}.ct-summary .ct-warning{background:#fff9e4;border-color:#ecd173;color:#856000}.ct-summary .ct-overdue{background:#fff1f2;border-color:#efb0bb;color:#b42335}.ct-summary .ct-on_time{background:#eff9f4;border-color:#b5dec8;color:#216c48}.ct-summary [aria-pressed=true]{outline:2px solid #397abe;outline-offset:1px}.ct-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) minmax(170px,230px) minmax(150px,200px);gap:14px;align-items:end;margin:24px 0}.ct-toolbar label{display:flex;flex-direction:column;gap:8px;font-size:13px}.ct-table{min-width:1020px}.ct-table th,.ct-table td{padding:16px;font-size:13px}.ct-table small{display:block;margin-top:7px;color:#7d8fa6;font-size:12px}.ct-badge{display:inline-block;padding:6px 9px;border-radius:5px;font-size:12px;white-space:nowrap;background:#edf3fb;color:#234f82}.ct-warning{background:#fff4c8;color:#856000}.ct-overdue,.ct-cancelled,.ct-rejected{background:#fde8eb;color:#b42335}.ct-on_time,.ct-signed{background:#e8f6ee;color:#216c48}.ct-late,.ct-table .ct-late{color:#b42335}.ct-actions{display:flex;flex-direction:column;gap:8px;min-width:116px}.ct-actions button{min-height:44px;white-space:nowrap;border-radius:7px;background:#f5f8fd;border:1px solid #cbd9eb;color:#234f82;font-size:13px}.ct-tab-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;padding:2px 5px;border-radius:5px;background:#fde8eb;color:#b42335;margin-left:5px;font-size:12px}.ct-dashboard-alert{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;background:#fff9e8;border:1px solid #ebd38c;border-radius:8px;padding:18px;margin:20px 0;color:#856000}.ct-case-summary{display:flex;flex-direction:column;align-items:flex-start;gap:10px;background:#f3f7fc;border:1px solid #dbe6f3;padding:18px;border-radius:8px;margin-bottom:18px}.ct-case-summary small{color:#7d8fa6;line-height:1.6}.ct-history{border:1px solid #dbe6f3;border-radius:8px;padding:16px;margin:18px 0}.ct-history summary{cursor:pointer;color:#234f82}.ct-log{padding:16px 0;border-bottom:1px solid #e4ebf5}.ct-log:last-child{border:0}.ct-log small{display:block;margin:8px 0;color:#7d8fa6;line-height:1.6}.ct-log p{white-space:pre-wrap;overflow-wrap:anywhere}.ct-note{display:flex;flex-direction:column;gap:10px}.ct-note textarea{width:100%;box-sizing:border-box;min-height:120px;padding:13px;border:1px solid #cbd9eb;border-radius:7px;font:inherit;resize:vertical}.ct-notification-overdue{background:#fff1f2;border-left:3px solid #b42335}.ct-notification-warning{background:#fffae8;border-left:3px solid #d4a52b}@media(max-width:700px){.ct-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.ct-toolbar{grid-template-columns:1fr}.ct-case-summary{overflow-wrap:anywhere}.ct-dashboard-alert .secondary{width:100%}}
.property-row-actions{gap:8px}
.property-row-actions .text-btn{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;min-width:112px;padding:10px 14px;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap;text-decoration:none}
.property-row-actions .text-btn:hover{background:#e9f1fb;border-color:#89a8ce;text-decoration:none}
.property-row-actions .text-btn:focus-visible{outline:2px solid #397abe;outline-offset:2px}
.investor-followup-action{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;margin:4px;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px;font-weight:500;line-height:1.4;white-space:nowrap}.investor-followup-action:hover{background:#e9f1fb;border-color:#89a8ce}.investor-followup-action:focus-visible{outline:2px solid #397abe;outline-offset:2px}.crm-assignment-list>div>div:first-child{min-width:0;flex:1 1 320px}.crm-assignment-list .crm-actions{flex-wrap:wrap}.investor-delivery-fields{border:1px solid #dbe6f3!important;border-radius:8px;margin:18px 0!important;padding:18px!important;min-width:0}.investor-delivery-fields legend{padding:0 7px;font-weight:600;color:#234f82}.investor-delivery-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.investor-delivery-options label{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;border:1px solid #dbe6f3;border-radius:6px;background:#f7f9fc;font-size:13px}.investor-delivery-options input[type=checkbox]{width:18px;height:18px;margin:0;flex-shrink:0;accent-color:#234f82}.investor-sent-summary{margin:14px 0;max-width:760px}.investor-sent-summary summary{cursor:pointer;color:#234f82;font-size:13px;padding:10px 12px;border:1px solid #dbe6f3;background:#f5f8fd;border-radius:7px}.investor-sent-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.investor-sent-grid>div{padding:12px;border:1px solid #e2e9f2;border-radius:6px;background:#fafbfd;color:#8294ac}.investor-sent-grid>div.is-sent{background:#eff9f4;border-color:#b5dec8;color:#216c48}.investor-sent-grid strong{font-size:12px;display:block}.investor-sent-grid small{display:block;margin-top:6px;font-size:11px}.investor-delivery-badges{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.investor-delivery-badges span{background:#e8f6ee;border:1px solid #b5dec8;border-radius:5px;padding:6px 9px;font-size:12px;color:#216c48}.investor-followup-picker{display:grid;gap:12px}.investor-followup-picker button{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px;min-height:54px;flex-wrap:wrap}.investor-assignment-history article{padding:20px 0;border-bottom:1px solid #e2e9f2}.investor-history-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.investor-assignment-history small{display:block;font-size:12px;color:#8294ac;margin:10px 0;line-height:1.6}.investor-assignment-history p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}@media(max-width:520px){.investor-delivery-options,.investor-sent-grid{grid-template-columns:1fr}.crm-assignment-list .crm-actions{width:100%;align-items:stretch}.crm-assignment-list .investor-followup-action{flex:1 1 160px;margin:0}.investor-delivery-fields{padding:12px!important}}

.accumulation-row-photo{display:flex;flex:0 0 70px;align-items:center;justify-content:center;width:70px;height:54px}
.accumulation-row .property-card-price{font:inherit;color:inherit;margin:0}

.investor-followup-delete{margin-top:14px}.investor-followup-delete button{min-height:44px;border:1px solid #e8b6bd;background:#fff5f5;color:#b42335;border-radius:7px;padding:10px 14px;font-size:13px}.investor-followup-delete button:hover{background:#fde8eb}

.text-dictation{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 18px}.text-dictation-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px;padding:10px 14px}.text-dictation-status{flex:1 1 180px;font-size:12px;color:#7d8fa6;line-height:1.6;overflow-wrap:anywhere}.text-dictation.is-listening .text-dictation-button{background:#fff1f2;border-color:#edb3be;color:#b42335}.text-dictation-button:focus-visible{outline:2px solid #397abe;outline-offset:2px}.text-dictation-button:disabled{opacity:.65;cursor:default}@media(max-width:520px){.text-dictation-button{width:100%}.text-dictation-status{flex-basis:100%}}

.owner-correction-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:14px}.owner-correction-actions .secondary,.investor-followup-delete .investor-followup-edit{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;border:1px solid #cbd9eb;border-radius:7px;background:#f5f8fd;color:#234f82;font-size:13px}.owner-correction-actions .owner-followup-delete{border-color:#e8b6bd;background:#fff5f5;color:#b42335}.investor-followup-delete{display:flex;flex-wrap:wrap;gap:8px}

.ct-summary{grid-template-columns:repeat(5,minmax(0,1fr))}.ct-summary .ct-missing_send{background:#fff9e4;border-color:#ecd173;color:#856000}.ct-badge.ct-missing_send{background:#fff4c8;color:#856000}@media(max-width:900px){.ct-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Keep the assistant in an explicit grid cell when the touch header is flattened. */
@media(max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1400px){
 #app .main-shell>header{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}
 #app .header-right .pending-assistant-trigger{grid-column:1/-1;grid-row:3;justify-self:stretch;align-self:stretch;width:100%;min-width:0;min-height:44px;margin:0;font-size:12px;padding:8px 12px;box-sizing:border-box}
}
@media(min-width:701px) and (max-width:1100px), (min-width:701px) and (max-width:1400px) and (hover:none) and (pointer:coarse){
 #app .main-shell>header{grid-template-columns:32px minmax(90px,1fr) minmax(150px,1fr) minmax(180px,1.2fr);grid-template-rows:44px 44px}
 #app .header-right .pending-assistant-trigger{grid-column:4;grid-row:2;justify-self:stretch;width:100%}
 #app .header-profile-control{grid-column:4;grid-row:1}
 #app .header-right .workspace-clock{grid-column:3;grid-row:2;height:44px}
}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Compact floating actions; labels expand towards the content on pointer/focus. */
.internal-chat,.admin-activity{right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom))}
.internal-chat.with-admin-activity{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 60px)}
.chat-toggle,.admin-activity-toggle{position:relative;box-sizing:border-box;width:48px;height:48px;min-height:48px;padding:12px;border-radius:24px;gap:0;justify-content:flex-start;white-space:nowrap;transition:width .2s ease,gap .2s ease,background-color .2s ease;box-shadow:0 4px 16px #173f752b}
.chat-toggle{background:#2476c5;border-color:#2476c5}.admin-activity-toggle{background:#626c78;border-color:#626c78}
.chat-toggle>svg,.admin-activity-toggle>svg{width:22px;height:22px;flex:0 0 22px}
.floating-action-label{min-width:0;max-width:0;opacity:0;overflow:hidden;transition:max-width .2s ease,opacity .2s ease;font-size:12px;line-height:1.4}
.chat-toggle [data-chat-count]:not(:empty),.admin-activity-toggle [data-activity-count]:not(:empty){position:absolute;top:-5px;right:-5px;min-width:20px;max-width:36px;min-height:20px;box-sizing:border-box;border:2px solid white;padding:1px 4px;border-radius:12px;background:#fff;color:#194577;font-size:10px;line-height:14px;box-shadow:0 1px 5px #173f7520}
.chat-toggle:focus-visible,.admin-activity-toggle:focus-visible{width:210px;gap:10px}
.chat-toggle:focus-visible .floating-action-label,.admin-activity-toggle:focus-visible .floating-action-label{max-width:160px;opacity:1}
.chat-toggle:focus-visible,.admin-activity-toggle:focus-visible{outline:2px solid #548dcc;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.chat-toggle:hover,.admin-activity-toggle:hover{width:210px;gap:10px}.chat-toggle:hover .floating-action-label,.admin-activity-toggle:hover .floating-action-label{max-width:160px;opacity:1}}
@media(prefers-reduced-motion:reduce){.chat-toggle,.admin-activity-toggle,.floating-action-label{transition:none}}

/* Joined vertical capsule: only the hovered or keyboard-focused segment expands. */
.chat-toggle,.admin-activity-toggle{width:52px;height:60px;min-height:60px;padding:15px;border:0;border-radius:26px;box-shadow:0 4px 16px #173f7520}
.internal-chat.with-admin-activity{bottom:calc(max(16px,env(safe-area-inset-bottom)) + 60px)}
.internal-chat.with-admin-activity .chat-toggle{border-radius:26px 26px 0 0}
.admin-activity-toggle{border-radius:0 0 26px 26px}
.chat-toggle [data-chat-count]:not(:empty),.admin-activity-toggle [data-activity-count]:not(:empty){top:3px;right:3px}
#internal-chat-panel,.chat-incoming-notice{bottom:72px}
#admin-activity-panel{bottom:132px}
/* Area navigation communicates its expanded state without removing submenu icons. */
#app>aside nav>button[aria-controls]::after{content:'';width:8px;height:8px;flex:0 0 8px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto;margin-right:3px;transition:transform .18s ease}
#app>aside nav>button[aria-controls][aria-expanded=true]::after{transform:rotate(225deg)}
#app>aside nav>button{font-size:15px}#app>aside .workspace-subnav button{font-size:13px}
.header-breadcrumb{font-size:15px;font-weight:500;max-width:280px}
@media(min-width:701px){#app.sidebar-collapsed>aside nav>button[aria-controls]::after{display:none}}
@media(prefers-reduced-motion:reduce){#app>aside nav>button[aria-controls]::after{transition:none}}
/* Home reports share real data, clear destinations and quiet brand accents. */
.home-report-area{margin-top:34px}.home-report-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;flex-wrap:wrap}.home-report-heading small{font-size:10px;letter-spacing:.12em;color:#6682a5;font-weight:600}.home-report-heading h2{font-size:24px;letter-spacing:-.5px;margin:7px 0;color:#253d5a}.home-report-heading p{font-size:12px;color:#7d8da2;margin:0;line-height:1.6}.home-report-live{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#6c829c;padding:8px 11px;border:1px solid #dce7f1;border-radius:20px;background:#f4f8fc;white-space:nowrap}.home-report-live i{width:6px;height:6px;background:#497fad;border-radius:50%}.home-report-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:18px}.home-report-card{--report-accent:#2f6da6;--report-tint:#edf5fc;min-width:0;display:flex;flex-direction:column;border:1px solid #dbe5f0;border-radius:13px;background:linear-gradient(150deg,var(--report-tint),#fff 38%);box-shadow:0 4px 16px #214a7810;overflow:hidden;transition:box-shadow .18s ease,border-color .18s ease}.home-report-card:hover{border-color:#aac2dc;box-shadow:0 8px 24px #214a781a}.report-alerts{--report-accent:#966313;--report-tint:#fff7e5}.report-agenda{--report-accent:#606da8;--report-tint:#f0f1fc}.report-investors,.report-owners{--report-accent:#626f80;--report-tint:#f1f4f7}.home-report-card-head{display:flex;align-items:center;gap:11px;padding:20px 20px 0}.home-report-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;color:var(--report-accent);background:var(--report-tint);border:1px solid #ffffff;border-radius:11px}.home-report-card h3{font-size:14px;font-weight:600;line-height:1.5;margin:0;color:#2b425f}.home-report-body{padding:18px 20px;flex:1;min-width:0}.home-report-metric{margin-bottom:20px}.home-report-metric strong{display:block;font:700 37px 'Manrope',sans-serif;letter-spacing:-1px;color:var(--report-accent);line-height:1.2}.home-report-metric>span{display:block;color:#77899f;font-size:12px;margin-top:5px}.home-report-pair{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#6d7f95;padding:9px 0;border-bottom:1px solid #edf1f6}.home-report-pair:last-child{border-bottom:0}.home-report-pair b{font-size:14px;color:#345578;font-weight:600}.home-report-link{display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;border-top:1px solid #e7edf4;background:#f9fbfe;color:var(--report-accent);padding:14px 20px;font-size:12px;font-weight:600;min-height:48px;text-align:left;border-radius:0}.home-report-link:hover{background:var(--report-tint)}.home-report-link:focus-visible{outline:2px solid #367cb5;outline-offset:-3px}.home-report-link>span{font-size:17px}.home-report-empty{font-size:12px;color:#7a8ca1;line-height:1.8;margin:0}.home-report-footnote{font-size:10px;color:#8292a5;line-height:1.6;margin:12px 0 0}.home-report-progress-label{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#71869e;line-height:1.5}.home-report-progress{height:7px;background:#e9f0f7;border-radius:5px;overflow:hidden;margin:9px 0 12px}.home-report-progress>span{display:block;height:100%;background:#4b84b7;border-radius:5px}.home-report-next{border-left:3px solid #a5afd3;padding:2px 0 2px 12px}.home-report-next small{font-size:11px;color:#687baa}.home-report-next strong{display:block;font-size:14px;margin:7px 0;color:#2c4564;overflow-wrap:anywhere;line-height:1.5}.home-report-next p{font-size:12px;color:#7c8da4;line-height:1.5;margin:0;overflow-wrap:anywhere}@media(max-width:600px){.home-report-grid{grid-template-columns:minmax(0,1fr);gap:14px}.home-report-heading h2{font-size:22px}.home-report-card-head{padding:18px 18px 0}.home-report-body{padding:16px 18px}.home-report-link{padding:14px 18px}.home-report-metric strong{font-size:33px}}@media(prefers-reduced-motion:reduce){.home-report-card{transition:none}}
/* The navigation toggle belongs to the rail, above Home. */
#app>aside>#menu{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;min-height:44px;margin:0 0 10px;padding:11px 12px;color:#d7e4f5;border-radius:6px;font-size:14px;flex-shrink:0}
#app>aside>#menu:hover{background:#ffffff16;color:white}#app>aside>#menu:focus-visible{outline:2px solid #c8ddf7;outline-offset:-2px}
#app>aside>#menu svg{flex:0 0 22px;width:22px;height:22px}
@media(min-width:701px){#app.sidebar-collapsed>aside>#menu{justify-content:center;padding:10px 0}#app.sidebar-collapsed>aside>#menu .menu-button-label{display:none}}
@media(max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1400px){#app .workspace-brand{grid-column:1/3}}
@media(max-width:700px){
 #app,#app.sidebar-collapsed{--workspace-sidebar-width:56px}
 #app .main-shell,#app.sidebar-collapsed .main-shell{margin-left:56px}
 #app>aside,#app.sidebar-collapsed>aside{display:flex;width:56px;padding:10px 4px 20px;box-shadow:none}
 #app>aside>#menu{justify-content:center;padding:10px 0}
 #app>aside:not(.open) .menu-button-label,#app>aside:not(.open) .nav-label,#app>aside:not(.open) .workspace-subnav{display:none!important}
 #app>aside:not(.open) nav>button{justify-content:center;padding:10px 0;font-size:0}
 #app>aside:not(.open) nav>button[aria-controls]::after{display:none}
 #app>aside:not(.open) nav>button .task-menu-count{position:absolute;right:0;top:0;min-width:15px;font-size:9px;padding:0 3px;line-height:15px}
 #app>aside.open,#app.sidebar-collapsed>aside.open{width:min(250px,calc(100vw - 56px));padding:10px 12px 20px;box-shadow:10px 0 32px #0f294333}
 #app>aside.open>#menu{justify-content:flex-start;padding:11px 12px}
 #app>aside.open>#menu .menu-button-label{display:inline}
}
/* Subtle bounds make each area's submenu end clear without changing the rail theme. */
#app>aside .workspace-subnav{background:#ffffff09;border:1px solid #ffffff1f;border-left:2px solid #8eacc970;border-bottom:2px solid #8eacc970;border-radius:8px;padding:6px 4px;margin-bottom:18px}
#app>aside .workspace-subnav:not([hidden])::after{content:'';display:block;width:18px;height:2px;border-radius:2px;background:#a8bfd18c;margin:7px auto 2px}
@media(min-width:701px){
 #app.sidebar-collapsed>aside .workspace-subnav{width:44px;box-sizing:border-box;border:1px solid #ffffff24;border-bottom:2px solid #8eacc980;border-radius:8px;background:#ffffff0b;padding:6px 2px;margin:3px 0 18px}
 #app.sidebar-collapsed>aside .workspace-subnav button{width:100%;padding:8px 6px;box-sizing:border-box;justify-content:center}
}
#account-menu button{display:flex;align-items:center;gap:11px}#account-menu button>svg{flex:0 0 20px;width:20px;height:20px}#account-menu button>span{min-width:0}
/* A separate wordmark keeps the application header compact. */
#app .main-shell>header{min-height:58px;padding-top:6px;padding-bottom:6px}
#app .workspace-brand{width:220px;max-width:100%;height:38px;overflow:hidden}
#app .workspace-brand img{height:38px;width:100%;object-fit:contain;object-position:center}
#app .workspace-brand img.default-system-logo{object-fit:cover}
.system-logo-preview{display:flex;align-items:center;min-height:76px;padding:16px;border:1px solid #dce5ef;border-radius:8px;background:#fff;margin:14px 0}
.system-logo-preview img{width:220px;max-width:100%;height:38px;object-fit:contain}.system-logo-preview img.default-system-logo{object-fit:cover}
@media(max-width:1100px), (hover:none) and (pointer:coarse) and (max-width:1400px){#app .main-shell>header{padding-top:7px;padding-bottom:7px;row-gap:6px;grid-template-rows:36px 44px}#app .workspace-brand{width:150px;height:32px}#app .workspace-brand img{height:32px}}
/* Bell and counter retain the assistant action in a compact header control. */
#app .header-right .pending-assistant-trigger{width:max-content;min-width:74px;max-width:100%;min-height:44px;padding:8px 11px;gap:8px;justify-self:end;flex:0 0 auto;box-sizing:border-box}
@media(max-width:700px){
 #app .main-shell>header{grid-template-columns:32px minmax(70px,1fr) minmax(110px,1.2fr) minmax(66px,auto);grid-template-rows:minmax(36px,auto) 44px;column-gap:4px}
 #app .header-profile-control{grid-column:3/5;grid-row:1}
 #app .header-right .notifications-button{grid-column:1;grid-row:2}
 #app .header-right .fx-button{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:1px;font-size:8px;height:44px;padding:4px}
 #app .header-right .fx-button strong{font-size:11px;white-space:nowrap}
 #app .header-right .workspace-clock{grid-column:3;grid-row:2;font-size:9px;height:44px;padding:4px 2px}
 #app .header-right .pending-assistant-trigger{grid-column:4;grid-row:2;width:100%;min-width:66px;gap:4px;padding:6px;min-height:44px}
 #app .pending-assistant-trigger .pending-assistant-icon{width:18px;height:18px}
 #app .pending-assistant-trigger [data-pending-assistant-count]{min-width:24px;min-height:24px;padding:2px 3px;font-size:11px}
}
/* Two clear rows give property search and filters room to breathe. */
.property-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch;margin-bottom:24px}
.property-toolbar #search{grid-column:1/3;width:100%;max-width:none;min-width:0;margin:0;font-size:15px;min-height:50px}
.property-toolbar #filter,.property-toolbar #responsible-filter,.property-toolbar #district-filter,.property-toolbar #portfolio-type-filter,.property-toolbar #portfolio-sort{width:100%;max-width:none;min-width:0;margin:0;min-height:50px;font-size:14px}
.property-toolbar .property-view-switch{width:100%;min-width:0;margin:0;display:grid;grid-template-columns:1fr 1fr;align-items:stretch;box-sizing:border-box}
.property-toolbar .property-view-switch button{min-width:0;min-height:44px;padding:9px 6px;white-space:nowrap}
@media(max-width:1000px){.property-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.property-toolbar #search{grid-column:1/-1}}
@media(max-width:600px){.property-toolbar{grid-template-columns:minmax(0,1fr);gap:12px}.property-toolbar #search{grid-column:1}}
.property-heading-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-left:auto;min-width:0;max-width:100%}.property-heading-actions .property-view-switch{width:100%;margin:0;box-sizing:border-box;display:grid;grid-template-columns:1fr 1fr}.property-heading-actions .property-view-switch button{min-height:44px;padding:9px 15px}.page-heading:has(.property-heading-actions){flex-wrap:wrap}
@media(min-width:1001px){.property-toolbar #portfolio-sort{grid-column:3/5}}
/* Compact property header actions, separate from the search filters. */
.property-heading-actions{width:max-content;gap:7px}
.property-heading-actions>button{min-height:36px;padding:8px 12px;font-size:12px;line-height:1.4}
.property-heading-actions .property-view-switch{padding:2px;gap:2px}
.property-heading-actions .property-view-switch button{min-height:32px;padding:6px 10px;font-size:12px;line-height:1.4}
@media(hover:none) and (pointer:coarse){.property-heading-actions>button,.property-heading-actions .property-view-switch button{min-height:44px}}
.work-schedule-role-fields{border:0;padding:0;margin:18px 0;min-width:0}.work-schedule-role-fields:disabled{opacity:.55}#work-schedule-role{max-width:100%;width:100%;min-height:44px}
/* Keep the commercial dashboard sections visually separate in both themes. */
.crm-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px 20px;padding:16px 20px;margin:20px 0;border:1px solid var(--border);border-radius:8px;background:#fff}
.crm-summary-strip>span{display:block;min-width:0;line-height:1.7;overflow-wrap:anywhere}
.crm-summary-strip>span>strong{display:inline-block;margin-right:4px}
.crm-kpis>.crm-kpi,.crm-dashboard-grid>.panel{min-width:0}
.crm-intro form{min-width:0}
@media(max-width:700px){.crm-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:14px 16px;margin:16px 0}}
/* Give the compact bell its own fixed column across the touch header's second row. */
.contract-view-toolbar{display:flex;justify-content:flex-end;margin:-10px 0 24px}
.contract-view-switch{display:inline-flex;gap:3px;padding:3px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff)}
.contract-view-switch button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ink);font:inherit;font-size:12px}
.contract-view-switch button[aria-pressed=true]{background:var(--theme-raised,#eaf2fd);border-color:var(--border);font-weight:600}
.contract-view-switch button:focus-visible,.contract-card button:focus-visible{outline:2px solid #568bca;outline-offset:3px}
.contract-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;padding:22px}
.contract-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:12px;background:var(--theme-surface,#fff);overflow:hidden}
.contract-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 18px 10px;background:var(--theme-soft,#f6f9fe)}
.contract-card-type{color:var(--muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.contract-card-top .badge{flex-shrink:0;font-size:10px}
.contract-card-heading{padding:10px 18px 16px;background:var(--theme-soft,#f6f9fe);border-bottom:1px solid var(--border)}
.contract-card-heading h2{margin:0;font-size:18px;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
.contract-card-heading p{margin:5px 0 0;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.contract-card-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 14px;margin:0;padding:20px 18px;flex:1}
.contract-card-facts>div{min-width:0}.contract-card-facts dt{font-size:11px;color:var(--muted);line-height:1.4;margin-bottom:5px}.contract-card-facts dd{margin:0;font-size:13px;color:var(--ink);line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.contract-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--border);padding:14px 18px;color:var(--muted);font-size:11px}
.contract-card-footer>div{display:flex;gap:8px}.contract-card-footer button{min-height:40px;padding:8px 14px;font-size:12px;border-radius:6px}
.parameter-card .contract-card-top{align-items:flex-start}.parameter-card .contract-card-top .badge{max-width:48%;white-space:normal;overflow-wrap:anywhere}
.parameter-card-comment{margin:0;padding:0 18px 16px;font-size:12px;line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.parameter-card-documents{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0 18px 16px}.parameter-card-documents a{display:inline-flex;align-items:center;min-height:36px;overflow-wrap:anywhere}
.parameter-card .contract-card-footer{flex-wrap:wrap}
.environment-map-wide{display:block}.environment-map-wide .portfolio-map{height:clamp(420px,70dvh,850px)}
.environment-layer-filter{position:relative;min-width:0;color:var(--ink)}
.environment-layer-filter>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:50px;padding:12px 14px;border:1px solid var(--border);border-radius:6px;background:var(--theme-surface,#fff);font-size:14px;cursor:pointer;list-style:none}
.environment-layer-filter>summary::-webkit-details-marker{display:none}.environment-layer-filter>summary::after{content:'⌄';margin-left:auto}.environment-layer-filter[open]>summary::after{content:'⌃'}
.environment-layer-filter>summary:focus-visible{outline:2px solid #568bca;outline-offset:3px}
.environment-layer-filter [data-environment-summary-count]{color:var(--muted);font-size:12px;white-space:nowrap}
.environment-layer-filter .environment-layer-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:20;width:min(320px,calc(100vw - 96px));max-height:min(65dvh,500px);overflow:auto;border:1px solid var(--border);border-radius:9px;background:var(--theme-surface,#fff);box-shadow:0 8px 24px #10254026;color:var(--ink)}
.environment-layer-filter .environment-layer-heading{background:var(--theme-soft,#f7f9fc);border-color:var(--border);color:var(--ink)}
.environment-layer-filter .environment-layer-heading h3{color:var(--ink)}.environment-layer-filter .environment-layer{border-color:var(--border)}
.environment-layer-filter .environment-layers{max-height:none;overflow:visible;border:0}.environment-layer-filter .field-help,.environment-layer-filter .environment-layer small{color:var(--muted)}
.environment-layer-filter .environment-layer-actions button{color:var(--theme-link,#245584);min-height:36px}
.environment-layer-filter .environment-layer-heading,.environment-layer-filter .environment-layer{padding:12px 14px}
.environment-layer-filter .environment-layer-toggle{display:flex;align-items:flex-start;justify-content:flex-start;gap:8px;margin:0 0 8px;font-size:13px;line-height:1.5}
.environment-layer-filter .environment-layer-toggle input[type=checkbox]{flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;margin:1px 0 0;padding:0}
.environment-layer-filter .environment-swatch{flex:0 0 12px;width:12px;height:12px;margin-top:4px}
.environment-layer-filter .environment-layer-toggle strong{flex:1;min-width:0;font-size:13px;overflow-wrap:anywhere}
.environment-layer-filter .environment-layer-actions{gap:6px 12px;margin-top:6px}.environment-layer-filter .environment-layer small{font-size:11px;line-height:1.5;margin-top:4px}
.owner-birth-fields{grid-column:1/-1;min-width:0}.owner-birth-fields .form-grid{margin:0}.owner-birth-fields label{min-width:0}.owner-birth-fields .field-help{display:block;margin-top:6px;line-height:1.5}.owner-birth-fields input[readonly]{background:var(--theme-soft,#f5f8fc);color:var(--ink)}
.owner-birth-fields .form-grid{align-items:start}
#modal:not(.property-dialog) .owner-birth-fields .form-grid>label{justify-content:flex-start}
.contracts-workspace-tabs{margin-bottom:24px;gap:8px;flex-wrap:wrap}.contracts-workspace-tabs button{min-height:44px;padding:10px 18px}
.permissions .permission-group-header th{padding:14px 20px;background:var(--theme-soft,#eef4fc);color:var(--ink);border-color:var(--border);text-transform:none;font-size:13px;letter-spacing:0}
.permissions .permission-tab td:first-child{padding-left:42px}
@media(min-width:1700px){.contract-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.contract-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.contract-card-grid{grid-template-columns:minmax(0,1fr);padding:14px;gap:16px}.contract-view-toolbar{margin:0 0 20px}.contract-view-switch button{min-height:44px}.contract-card-footer button{min-height:44px}}
@media(min-width:701px) and (max-width:1100px), (min-width:701px) and (max-width:1400px) and (hover:none) and (pointer:coarse){
 #app .main-shell>header{grid-template-columns:32px minmax(140px,1fr) minmax(170px,1.15fr) 86px;column-gap:8px}
 #app .header-profile-control{grid-column:3/5;grid-row:1;max-width:230px}
 #app .header-right .pending-assistant-trigger{grid-column:4;grid-row:2;justify-self:stretch;width:100%;height:44px;margin:0}
}

/* Lead status remains visible in native mobile pickers and in the selected preview. */
#modal [data-lead-status="retired"]{color:#b42318}
#modal [data-lead-status="registered"]{color:#16703b}
#modal .lead-source-status{font-weight:700;margin:12px 0}
html[data-theme="dark"] #modal [data-lead-status="retired"]{color:#ffaaa3}
html[data-theme="dark"] #modal [data-lead-status="registered"]{color:#94e6b0}

.contract-history>.field-help{font-size:14px;line-height:1.6}

.crm-actions [data-log-investor]:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}

/* Shared Commercial filters: consistent controls in Summary, Leads and Followups. */
.crm-toolbar{gap:16px;align-items:flex-end;margin:24px 0}
.crm-toolbar>input{flex:2 1 320px;max-width:none;min-width:0}
.crm-toolbar>label{display:flex;flex-direction:column;gap:8px;flex:0 1 240px;min-width:180px;margin:0;font-size:14px;font-weight:600;color:var(--muted,#64748b)}
.crm-toolbar>input,.crm-toolbar>label>select{display:block;box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0;border:1px solid var(--border,#dce5ef);border-radius:8px;background-color:var(--theme-surface,#fff);color:var(--ink,#25364d);font:inherit;font-size:15px;line-height:1.4;padding:11px 14px}
.crm-toolbar>label>select{appearance:none;-webkit-appearance:none;padding-right:40px;font-weight:400;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667d99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
.crm-toolbar>input:focus-visible,.crm-toolbar>label>select:focus-visible{outline:2px solid #568bca;outline-offset:2px}
html[data-theme=dark] .crm-toolbar>input,html[data-theme=dark] .crm-toolbar>label>select{background-color:#111e2d;border-color:#455b75;color:var(--theme-text)}
@media(max-width:650px){.crm-toolbar{gap:14px}.crm-toolbar>input,.crm-toolbar>label{flex:1 1 100%;width:100%;min-width:0}.crm-toolbar>input,.crm-toolbar>label>select{font-size:16px}}

/* Match form selectors to the full-size text fields, including nested contract pickers. */
:is(#modal,.parameter-dialog) select:not([multiple]),
:is(#modal,.parameter-dialog) input:is([type=text],[type=number],[type=date],[type=datetime-local],[type=email],[type=tel],[type=url]){display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:48px;margin-top:8px;padding:11px 14px;border:1px solid var(--border,#dce2e9);border-radius:8px;background-color:var(--theme-surface,#fff);color:var(--ink,#25364d);font:inherit;font-size:16px;line-height:1.4}
:is(#modal,.parameter-dialog) select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667d99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}
:is(#modal,.parameter-dialog) select:focus-visible{outline:2px solid #568bca;outline-offset:2px}
html[data-theme=dark] :is(#modal,.parameter-dialog) :is(select,input:not([type=checkbox]):not([type=radio]):not([type=file])){background-color:#111e2d;border-color:#455b75;color:var(--theme-text)}
:is(#modal,.parameter-dialog) select:disabled{cursor:not-allowed;opacity:.7}

.property-card-heading{position:relative}
.property-card-heading:has(.property-alert){padding-right:66px}
.property-alert{position:absolute;right:14px;top:12px;z-index:2}
.property-alert>summary{display:flex;align-items:center;justify-content:center;width:40px;height:40px;cursor:pointer;list-style:none;border:1px solid #ffa8a8;border-radius:9px;background:#fff1f1}
.property-alert>summary::-webkit-details-marker{display:none}
.property-alert>summary>span{font-size:23px;line-height:1;letter-spacing:0}
.property-alert>div{position:absolute;right:0;top:45px;min-width:155px;max-width:230px;padding:9px 12px;background:#fff1f1;border:1px solid #e58b8b;border-radius:7px;color:#9e1f2b;font-size:14px;line-height:1.4;box-shadow:0 4px 12px #0002}
.property-alert:not([open]):hover>div,.property-alert:not([open]):focus-within>div{display:block;content-visibility:visible}
html[data-theme=dark] .property-alert>summary,html[data-theme=dark] .property-alert>div{background:#502633;border-color:#c77988;color:#ffd9df}

.contract-card-documents{display:flex;flex-wrap:wrap;gap:8px;padding:0 18px 16px}
.contract-card-documents>.secondary{display:inline-flex;align-items:center;justify-content:center;flex:1 1 105px;min-height:42px;box-sizing:border-box;padding:9px 10px;border-radius:7px;font-size:12px;text-decoration:none;text-align:center}
.contract-card-documents>button:disabled{opacity:.55;cursor:not-allowed}

.contract-card-footer>div{flex-wrap:wrap}
.contract-card-footer .contract-delete-button,.contract-table .contract-delete-button{color:#b42335;border-color:#e8b6bd;background:#fff5f5}
.contract-delete-dialog textarea{display:block;box-sizing:border-box;width:100%;margin-top:8px;padding:12px 14px;border:1px solid var(--border);border-radius:8px;font:inherit;line-height:1.5;resize:vertical;background:var(--theme-surface,#fff);color:var(--ink)}
.contract-delete-dialog .primary.contract-delete-button{background:#b42335;border-color:#b42335;color:#fff}
html[data-theme=dark] :is(.contract-card-footer,.contract-table) .contract-delete-button{color:#ffb3bf;border-color:#985265;background:#482733}

/* Keep followup totals separate from the contract card actions. */
.contract-card-footer{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:14px 18px}
.contract-card-footer>span{display:block;font-size:12px;line-height:1.4;white-space:nowrap}
.contract-card-footer>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.contract-card-footer>div>button{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:9px 6px;margin:0;font-size:12px;line-height:1.3;white-space:nowrap}
.contract-card-footer>div:not(:has([data-contract-delete])){grid-template-columns:repeat(2,minmax(0,1fr))}
.contract-card-footer>div:not(:has([data-contract-delete])):not(:has([data-contract-edit])){grid-template-columns:minmax(0,1fr)}

.contract-draft-alert{display:block;margin:0 18px 14px;padding:10px 12px;background:#fff0f1;border:1px solid #e5a2ac;border-radius:7px;color:#a51e32;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.contract-table .contract-draft-alert{margin:8px 0 0}
.contract-draft-banner{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;padding:18px;margin:20px 0;border:1px solid #e5a2ac;border-radius:9px;background:#fff0f1;color:#a51e32}
.contract-draft-banner p{margin:6px 0 0;font-size:14px;line-height:1.5}
html[data-theme=dark] :is(.contract-draft-alert,.contract-draft-banner){background:#482733;color:#ffbdc6;border-color:#985265}

.owner-switch-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 24px;background:#fff1c7;border-bottom:1px solid #d8a444;color:#754a00;position:relative;z-index:12;font-size:14px}
.owner-switch-banner>div{display:flex;flex-direction:column;gap:4px}.owner-switch-banner>p{width:100%;margin:0}.owner-switch-banner>button{min-height:44px}
.owner-switch-dialog input[type=search]{display:block;box-sizing:border-box;width:100%;min-height:48px;padding:12px 14px;margin-top:8px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink);font:inherit}
.owner-switch-user{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid var(--border)}.owner-switch-user>div{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}.owner-switch-user span{font-size:13px;color:var(--muted)}.owner-switch-user button{flex-shrink:0;min-height:44px}
html[data-theme=dark] .owner-switch-banner{background:#4b391a;color:#ffe5aa;border-color:#927039}
@media(max-width:600px){.owner-switch-banner{padding:12px 16px}.owner-switch-user{align-items:flex-start;flex-direction:column}.owner-switch-user button{width:100%}}

/* The return action and notices must sit below the fixed workspace header. */
:root{--owner-switch-height:0px}
.owner-switch-banner{position:fixed;top:var(--workspace-header-height,64px);left:0;right:0;z-index:40;box-sizing:border-box;max-height:50dvh;overflow:auto}
html.has-owner-switch #app .main-shell{padding-top:calc(var(--workspace-header-height) + var(--owner-switch-height))}
html.has-owner-switch #app>aside{top:calc(var(--workspace-header-height) + var(--owner-switch-height))}
body:has(#app[hidden]) .owner-switch-banner{top:0}
.owner-switch-banner [data-owner-switch-error]:not(:empty){padding:10px 12px;background:#fff3f1;border:1px solid #e0a49a;border-radius:7px;color:#9b2635;line-height:1.5;overflow-wrap:anywhere}
#toast{position:fixed;z-index:1000;top:min(calc(var(--workspace-header-height,64px) + var(--owner-switch-height,0px) + 12px),55dvh);bottom:auto;max-width:min(640px,calc(100vw - 32px));max-height:40dvh;overflow:auto;line-height:1.5;overflow-wrap:anywhere;box-shadow:0 6px 24px #0003}
body:has(#app[hidden]) #toast{top:min(calc(var(--owner-switch-height,0px) + 12px),55dvh)}
html[data-theme=dark] .owner-switch-banner [data-owner-switch-error]:not(:empty){background:#482733;color:#ffbdc6;border-color:#985265}

.owner-birth-input{display:flex;align-items:stretch;gap:8px;margin-top:8px;min-width:0}
#modal .owner-birth-input>input{min-width:0;flex:1;margin-top:0}
.owner-birth-picker{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 46px;min-height:48px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink);overflow:hidden}
#modal .owner-birth-picker>input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.owner-birth-picker input::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;cursor:pointer}
.owner-birth-picker:focus-within{outline:2px solid #568bca;outline-offset:2px}

.property-card-state{flex-direction:column;align-items:flex-start;gap:7px}.property-card-state>.badge{white-space:normal;max-width:100%;line-height:1.5;overflow-wrap:anywhere}
.crm-detail-title .badge{white-space:normal;max-width:100%;overflow-wrap:anywhere}

.contract-picker-search{display:flex;align-items:center;gap:9px;margin-top:8px;padding:0 12px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:var(--muted)}
.contract-picker-search svg{flex:0 0 18px}
:is(#modal,.parameter-dialog) .contract-picker-search>input{box-sizing:border-box;display:block;flex:1;min-width:0;width:100%;min-height:44px;padding:10px 0;margin:0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px}
.contract-picker-search:focus-within{outline:2px solid #568bca;outline-offset:2px}.contract-picker-search-status{display:block;font-size:11px;font-weight:400;color:var(--muted);margin:5px 0}
.contract-party-picker .form-grid>label{min-width:0}
.contract-signatories li{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,auto) auto;align-items:center;gap:12px;font-size:14px}
.contract-signatories .contract-signatory-document{font-size:13px;font-weight:600;overflow-wrap:anywhere;max-width:190px}
.contract-signatories small{font-size:12px;line-height:1.5}
html[data-theme=dark] .contract-picker-search{background:#111e2d;border-color:#455b75}
@media(max-width:600px){.contract-signatories li{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}.contract-signatory-name{grid-column:1;grid-row:1}.contract-signatory-document{grid-column:1;grid-row:2}.contract-signatories li>button{grid-column:2;grid-row:1/3}:is(#modal,.parameter-dialog) .contract-picker-search>input{font-size:16px}}
.contract-signatories>strong{font-size:14px;color:var(--ink)}.contract-signatories small{color:var(--muted)}

/* A single search outline around the icon and text, with no nested input frame. */
:is(#modal,.parameter-dialog) .contract-picker-search{box-sizing:border-box;min-height:48px;min-width:0;gap:10px}
:is(#modal,.parameter-dialog) .contract-picker-search>input{appearance:none;-webkit-appearance:none;border:0;border-radius:0;outline:none;box-shadow:none;margin:0;min-height:44px;background:transparent}
:is(#modal,.parameter-dialog) .contract-picker-search>input:focus,:is(#modal,.parameter-dialog) .contract-picker-search>input:focus-visible{border:0;outline:none;box-shadow:none}
:is(#modal,.parameter-dialog) .contract-picker-search:focus-within{outline:none;border-color:#568bca;box-shadow:0 0 0 3px #568bca26}
:is(#modal,.parameter-dialog) .contract-picker-search>svg{display:block;align-self:center}

.property-created-info{font-size:13px;line-height:1.6;color:var(--muted);margin:8px 0 18px}
.property-history{border-top:1px solid var(--border);padding-top:22px;margin-top:22px}
.property-history-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px}.property-history-heading h3{font-size:20px;margin:0}.property-history-heading p{font-size:13px;line-height:1.5;color:var(--muted);margin:7px 0}.property-history-heading button{min-height:44px}
.property-history-list{list-style:none;margin:20px 0;padding:0 0 0 20px;border-left:2px solid var(--border)}.property-history-list>li{position:relative;padding:0 0 24px 10px;overflow-wrap:anywhere}.property-history-list>li:before{content:'';position:absolute;top:6px;left:-26px;width:10px;height:10px;border-radius:50%;background:#568bca}
.property-history-event-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:16px;line-height:1.5}.property-history-event-head time{font-size:14px;color:var(--muted)}.property-history-list p{font-size:14px;line-height:1.6;margin:8px 0}.property-history-actor{color:var(--muted)}
.property-history-fields{list-style:none;margin:12px 0;padding:0}.property-history-fields>li{margin:8px 0}.property-history-fields summary{font-size:15px;line-height:1.5;cursor:pointer}.property-history-values{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}.property-history-values>div{min-width:0;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--theme-soft,#f5f8fc);font-size:13px}.property-history-values pre{font-family:inherit;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;margin:8px 0 0}.property-history>.field-help{font-size:13px;line-height:1.6}
@media(max-width:600px){.property-history-values{grid-template-columns:minmax(0,1fr)}.property-history-heading{align-items:flex-start}.property-history-heading button{width:100%}}

html[data-theme=dark] :is(#modal,.parameter-dialog) .contract-picker-search>input{background:transparent;border:0;box-shadow:none;color:var(--theme-text)}

.contract-review{margin-bottom:24px}.contract-review-body{padding:20px}.contract-review-body>p{color:var(--muted);line-height:1.6}.contract-review-body>input{width:100%;margin:16px 0}.contract-review-list{display:grid;gap:12px}.contract-review-item{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px;border:1px solid var(--border);border-left:4px solid #b48a32;border-radius:8px;background:var(--theme-surface,#fff)}.contract-review-item.review-late{border-left-color:#c44b57}.contract-review-item h3{font-size:17px;margin:10px 0}.contract-review-item ul{padding-left:20px;margin:12px 0;line-height:1.7}.contract-review-item p{line-height:1.6;margin-bottom:0}.contract-review-item>div{min-width:0;overflow-wrap:anywhere}.contract-review-item>button{flex-shrink:0}.contract-review .crm-actions [aria-pressed=true]{border-color:#568bca;background:var(--theme-hover,#edf3fb)}@media(max-width:700px){.contract-review-item{flex-direction:column}.contract-review-item>button{width:100%}.contract-review-body{padding:14px}}

/* Boxed contract tabs keep selection visible in both themes. */
.contracts-workspace-tabs{border-bottom:0;padding:4px 0;overflow:visible}
.contracts-workspace-tabs button{border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink);font-weight:600;box-shadow:none}
.contracts-workspace-tabs button[aria-selected=true]{border-color:#245b97;background:#245b97;color:#fff;box-shadow:0 0 0 2px #245b9726}
.contracts-workspace-tabs button[data-contract-tab=tracking]{border-color:#ce6a73;background:#fff1f2;color:#a62034}
.contracts-workspace-tabs button[data-contract-tab=tracking][aria-selected=true]{border-color:#b52e43;background:#b52e43;color:#fff;box-shadow:0 0 0 2px #b52e4326}
.contracts-workspace-tabs button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
html[data-theme=dark] .contracts-workspace-tabs button{background:#192c42;border-color:#49617c;color:#dce8f6}
html[data-theme=dark] .contracts-workspace-tabs button[aria-selected=true]{background:#326ca9;border-color:#7cb2ea;color:#fff}
html[data-theme=dark] .contracts-workspace-tabs button[data-contract-tab=tracking]{background:#40212c;border-color:#b86375;color:#ffb6c3}
html[data-theme=dark] .contracts-workspace-tabs button[data-contract-tab=tracking][aria-selected=true]{background:#a92b43;border-color:#ed8da2;color:#fff}

.contract-commission{display:flex;align-items:stretch;gap:8px;min-width:0}.parameter-dialog .contract-commission>input{flex:1;min-width:0;width:0}.parameter-dialog .contract-commission>select{flex:0 0 82px;width:82px;min-width:0;margin-top:8px;min-height:48px;padding:10px;font-weight:600}

/* Commercial executive workspace */
.crm-topline .crm-tabs{gap:8px;border:0;padding:4px 0;overflow:visible;flex-wrap:wrap}
.crm-topline .crm-tabs button{border:1px solid var(--border);border-radius:8px;padding:11px 20px;min-height:44px;background:var(--theme-surface,#fff);color:var(--ink);font-weight:650}
.crm-topline .crm-tabs button.selected{border-color:#285e99;background:#285e99;color:#fff}
.crm-topline .crm-tabs button[data-view=followups]{border-color:#cb6978;color:#aa2941;background:#fff2f4}
.crm-topline .crm-tabs button[data-view=followups].selected{background:#b52e43;border-color:#b52e43;color:#fff}
.lead-view-switch{padding:16px 20px;border-bottom:1px solid var(--border)}.lead-view-switch [aria-pressed=true]{border-color:#568bca;background:var(--theme-hover,#edf3fb)}
.lead-executive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:20px}
.lead-executive-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--theme-surface,#fff)}
.lead-card-heading{padding:20px;background:var(--theme-hover,#f0f5fb);border-bottom:1px solid var(--border)}.lead-card-heading>small{color:var(--muted)}.lead-card-heading h2{font-size:19px;line-height:1.4;margin:10px 0 14px;overflow-wrap:anywhere}.lead-card-body{padding:18px;flex:1;overflow-wrap:anywhere}.lead-card-price{display:flex;flex-direction:column;gap:8px;margin:0 0 18px}.lead-card-price span,.lead-card-body dt{color:var(--muted);font-size:12px}.lead-card-price strong{font-size:19px}.lead-card-body dl{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0}.lead-card-body dd{margin:5px 0 0}.lead-card-body small{color:var(--muted)}.lead-card-offers{padding-left:18px;line-height:1.7}.lead-card-actions{display:flex;gap:8px;flex-wrap:wrap;padding:16px 18px;border-top:1px solid var(--border)}.lead-card-actions>button{flex:1;min-width:110px}
.lead-pulse{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.lead-pulse>div{border:1px solid var(--border);border-radius:10px;padding:18px;background:var(--theme-surface,#fff)}.lead-pulse span{font-size:13px;color:var(--muted)}.lead-pulse strong{display:block;font-size:27px;margin-top:8px}.lead-pulse .is-late strong{color:#c64a5e}
.lead-requested{padding:20px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:8px;background:var(--theme-hover,#f0f5fb)}.lead-requested>span,.lead-requested>small{color:var(--muted)}.lead-requested>strong{font-size:23px}.lead-negotiation-grid,.lead-contract-grid{padding:20px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.lead-negotiation,.lead-contract-grid>article{border:1px solid var(--border);border-radius:10px;padding:18px;min-width:0;overflow-wrap:anywhere}.lead-negotiation h3,.lead-contract-grid h3{font-size:18px;margin:0 0 12px}.lead-negotiation dl{display:grid;gap:16px;margin:18px 0}.lead-negotiation dt{font-size:13px;color:var(--muted)}.lead-negotiation dd{margin:5px 0 0;font-size:19px;font-weight:650}.lead-related-contracts>.field-help{padding:0 20px 14px}.lead-contract-grid>article>small{display:block;color:var(--muted);margin-bottom:10px}.lead-contract-grid>article>button{margin-top:12px}
html[data-theme=dark] .crm-topline .crm-tabs button[data-view=followups]{background:#40212c;border-color:#b86375;color:#ffb6c3}html[data-theme=dark] .crm-topline .crm-tabs button[data-view=followups].selected{background:#a92b43;color:#fff}
@media(min-width:1750px){.lead-executive-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.lead-executive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.lead-executive-grid,.lead-negotiation-grid,.lead-contract-grid{grid-template-columns:minmax(0,1fr);padding:14px}.lead-pulse{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lead-pulse>div{padding:14px}.lead-requested>strong{font-size:20px}.crm-topline .crm-tabs button{padding:10px 15px}}

.lead-card-heading h2>.crm-property-link{font:inherit;line-height:inherit;text-align:left;color:inherit;width:100%;white-space:normal}

.lead-alert-list{padding:18px;display:grid;gap:14px}.lead-alert-list>article{padding:14px;border:1px solid var(--border);border-left:4px solid #c48c39;border-radius:8px}.lead-alert-list>article.crm-overdue{border-left-color:#c64a5e}.lead-alert-list p{margin:8px 0}.lead-alert-list small{color:var(--muted)}

.commercial-welcome{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 40px;border:1px solid #365a83;border-radius:18px;background:linear-gradient(125deg,#12335d,#215b87);color:#fff;overflow:hidden;position:relative}.commercial-welcome [data-workspace-label]{color:#b8d4ef}.commercial-home-label{display:inline-block;margin-top:16px;font-size:11px;letter-spacing:.16em;color:#c6e9fa}.commercial-welcome h1{font-size:clamp(27px,3vw,40px);line-height:1.25;margin:12px 0 15px;color:#fff}.commercial-welcome p{font-size:21px;margin:0 0 10px;color:#fff}.commercial-welcome small{font-size:14px;color:#c8dbed}.commercial-welcome-art{flex:0 0 145px;height:145px;border:1px solid #ffffff30;border-radius:50%;display:grid;place-items:center;position:relative;background:#ffffff0c}.commercial-welcome-art>span{font-size:85px;line-height:1;color:#d7eeff}.commercial-welcome-art>i{position:absolute;border:1px solid #ffffff20;border-radius:50%;inset:-22px}.commercial-welcome-art>i:last-child{inset:-45px}.commercial-home-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin:32px 0 20px}.commercial-home-heading h2{font-size:22px;margin:0 0 7px}.commercial-home-heading p{margin:0;color:var(--muted)}.commercial-home-heading>span{font-size:13px;color:var(--muted)}.commercial-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.commercial-home-card{--card-accent:#28659b;display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-width:0;min-height:280px;padding:28px;border:1px solid var(--border);border-radius:16px;background:var(--theme-surface,#fff);color:var(--ink);box-shadow:0 4px 18px #14365306;transition:transform .16s,box-shadow .16s,border-color .16s}.commercial-home-card:hover{transform:translateY(-3px);border-color:var(--card-accent);box-shadow:0 9px 24px #14365316;filter:none}.commercial-home-card:focus-visible{outline:3px solid var(--card-accent);outline-offset:4px}.commercial-card-icon{display:grid;place-items:center;width:66px;height:66px;border:1px solid var(--border);border-radius:18px;background:var(--theme-hover,#f1f6fb);color:var(--card-accent);margin-bottom:22px}.commercial-home-card>small{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.commercial-home-card h2{font-size:22px;margin:9px 0 12px;line-height:1.3;color:var(--ink)}.commercial-home-card p{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 22px}.commercial-card-go{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:auto;font-size:14px;font-weight:650;color:var(--card-accent)}.commercial-card-go>span{font-size:23px}.home-teal{--card-accent:#168377}.home-violet{--card-accent:#7855bb}.home-amber{--card-accent:#ad7622}.home-rose{--card-accent:#b33c61}html[data-theme=dark] .commercial-home-card{--card-accent:#85bafa}html[data-theme=dark] .home-teal{--card-accent:#76d6c8}html[data-theme=dark] .home-violet{--card-accent:#c0a4ef}html[data-theme=dark] .home-amber{--card-accent:#ebc477}html[data-theme=dark] .home-rose{--card-accent:#f09eb7}
@media(max-width:1150px){.commercial-home-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.commercial-welcome{padding:26px 22px}.commercial-welcome-art{display:none}.commercial-welcome p{font-size:18px}.commercial-home-heading{align-items:flex-start;flex-direction:column;margin-top:26px}.commercial-home-grid{grid-template-columns:minmax(0,1fr);gap:14px}.commercial-home-card{min-height:235px;padding:23px}.commercial-card-icon{margin-bottom:16px}}

/* Commercial sections are reached through the welcome cards. */
#app>aside #commercial-subnav{display:none!important}
#app>aside nav>button[data-page=comercial]::after{display:none}

#app>aside :is(#captacion-subnav,#administration-subnav){display:none!important}
#app>aside nav>button:is([data-page=localizacion],[data-page=administracion])::after{display:none}

/* A header launcher replaces the sidebar on every screen. */
#app.launcher-shell,#app.launcher-shell.sidebar-collapsed{--workspace-sidebar-width:0px}
#app.launcher-shell .main-shell,#app.launcher-shell.sidebar-collapsed .main-shell{margin-left:0;width:100%}
#app.launcher-shell>aside:not(.open){display:none!important}
#app.launcher-shell>aside.open,#app.launcher-shell.sidebar-collapsed>aside.open{display:block!important;position:fixed;inset:auto;top:calc(var(--workspace-header-height) + 8px);left:var(--launcher-left,20px);bottom:auto;right:auto;width:min(470px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - var(--workspace-header-height) - 24px);padding:22px;border:1px solid var(--border);border-radius:16px;background:var(--theme-surface,#fff);color:var(--ink);box-shadow:0 12px 44px #10273e30;z-index:46;overflow:auto;transform:none}
#app.launcher-shell>aside .sidebar-brand{display:none}
.launcher-heading{display:flex;flex-direction:column;gap:6px;padding:0 2px 18px;border-bottom:1px solid var(--border);margin-bottom:16px}.launcher-heading>strong{font-size:18px}.launcher-heading>span{font-size:13px;color:var(--muted)}
#app.launcher-shell>aside nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:0}
#app.launcher-shell>aside nav>button{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;position:relative;min-width:0;width:100%;height:auto;min-height:112px;margin:0;padding:15px 8px;border:1px solid transparent;border-radius:12px;text-align:center;background:transparent;color:var(--ink);font-size:13px;line-height:1.35}
#app.launcher-shell>aside nav>button:hover{background:var(--theme-hover,#f1f6fb);color:var(--ink);border-color:var(--border)}
#app.launcher-shell>aside nav>button.active,#app.launcher-shell>aside nav>button[aria-current=page]{background:var(--theme-hover,#edf4fc);color:var(--ink);border-color:#7aa4d1}
#app.launcher-shell>aside nav>button:focus-visible{outline:2px solid #568bca;outline-offset:1px;background:var(--theme-hover,#edf4fc);color:var(--ink)}
#app.launcher-shell>aside nav .nav-label{display:block;white-space:normal;overflow-wrap:anywhere;font-weight:550}
#app.launcher-shell>aside nav>button>i{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#eaf2fc;color:#28649e}
#app.launcher-shell>aside nav>button>i svg{width:26px;height:26px;max-width:26px;max-height:26px}
#app.launcher-shell>aside nav>button[data-page=tareas]>i{background:#fff2dd;color:#997022}
#app.launcher-shell>aside nav>button[data-page=comercial]>i{background:#e2f4ef;color:#247d6a}
#app.launcher-shell>aside nav>button[data-page=localizacion]>i{background:#efe8fa;color:#7951ac}
#app.launcher-shell>aside nav>button[data-page=administracion]>i{background:#fce8ed;color:#b43c5c}
#app.launcher-shell>aside .task-menu-count{position:absolute;top:7px;right:8px;min-width:20px;padding:1px 5px;border:1px solid var(--border);border-radius:10px;background:var(--theme-hover,#edf4fc);color:var(--ink);font-size:11px;line-height:16px}
#app.launcher-shell header #menu{display:inline-flex;align-items:center;justify-content:center;width:40px;min-width:40px;height:40px;min-height:40px;margin:0;padding:8px;border:1px solid var(--border);border-radius:8px;background:var(--theme-surface,#fff);color:var(--ink)}
#app.launcher-shell header #menu[aria-expanded=true]{background:var(--theme-hover,#edf4fc);border-color:#7aa4d1}#app.launcher-shell header #menu .menu-button-label{display:none}
#app.launcher-shell header .header-left{gap:12px}
html.has-owner-switch #app.launcher-shell>aside.open{top:calc(var(--workspace-header-height) + var(--owner-switch-height) + 8px);max-height:calc(100dvh - var(--workspace-header-height) - var(--owner-switch-height) - 24px)}
@media(max-width:1100px),(hover:none) and (pointer:coarse) and (max-width:1400px){#app.launcher-shell .main-shell>header{grid-template-columns:40px minmax(100px,1fr) minmax(170px,1.15fr) 86px}#app.launcher-shell header #menu{grid-column:1;grid-row:1}#app.launcher-shell .workspace-brand{grid-column:2;grid-row:1;width:150px;max-width:100%}}
@media(max-width:700px){#app.launcher-shell .main-shell>header{grid-template-columns:40px minmax(80px,1fr) minmax(110px,1.1fr) minmax(58px,auto)}#app.launcher-shell .workspace-brand{width:130px}#app.launcher-shell>aside.open,#app.launcher-shell.sidebar-collapsed>aside.open{left:12px;width:calc(100vw - 24px);padding:18px;max-height:calc(100dvh - var(--workspace-header-height) - 24px)}#app.launcher-shell>aside nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#app.launcher-shell>aside nav>button{padding:12px 4px;font-size:12px;min-height:104px}}

/* Keep the location trail only where the desktop header has enough room. */
@media(max-width:1400px),(hover:none) and (pointer:coarse){#app.launcher-shell .header-breadcrumb{display:none}}

/* Mobile: date/time, theme and personal pending controls share the lower row. */
@media(max-width:700px){
 #app.launcher-shell .main-shell>header{grid-template-columns:34px minmax(54px,1fr) minmax(90px,1.2fr) 36px minmax(54px,auto);grid-template-rows:40px 44px;column-gap:4px;row-gap:6px}
 #app.launcher-shell header .header-left{display:flex;grid-column:1/-1;grid-row:1;gap:8px;max-width:calc(100% - 124px);width:100%;min-width:0}
 #app.launcher-shell header #menu{order:-1;flex:0 0 36px;width:36px;min-width:36px;height:38px;min-height:38px}
 #app.launcher-shell .workspace-brand{flex:1;min-width:0;width:130px;max-width:130px}
 #app.launcher-shell .header-profile-control{grid-column:1/-1;grid-row:1;justify-self:end;width:124px;max-width:124px;gap:6px}
 #app.launcher-shell .header-profile-info{min-width:0;overflow:hidden}#app.launcher-shell .header-profile-info>span,#app.launcher-shell .header-profile-info>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #app.launcher-shell .header-right .notifications-button{grid-column:1;grid-row:2;width:34px;min-width:0;height:44px}
 #app.launcher-shell .header-right .fx-button{grid-column:2;grid-row:2;min-width:0}
 #app.launcher-shell .header-right .workspace-clock{grid-column:3;grid-row:2;width:100%;min-width:0;height:44px;padding:3px 2px;font-size:9px;gap:2px}
 #app.launcher-shell .workspace-clock [data-clock-date],#app.launcher-shell .workspace-clock .clock-hour{white-space:nowrap}
 #app.launcher-shell .header-right .theme-toggle{grid-column:4;grid-row:2;justify-self:stretch;align-self:stretch;width:36px;min-width:36px;height:44px;min-height:44px;margin:0;padding:7px}
 #app.launcher-shell .header-right .pending-assistant-trigger{grid-column:5;grid-row:2;width:100%;min-width:54px;height:44px;gap:3px;padding:4px}
 #app.launcher-shell .pending-assistant-trigger [data-pending-assistant-count]{min-width:20px;padding:2px 3px;font-size:10px}
}

.lead-members-owners{display:grid;gap:18px;margin:22px 0}.lead-member-owners{border:1px solid var(--border);border-radius:12px;padding:20px;background:var(--theme-surface,#fff)}.lead-member-owner-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--border)}.lead-member-owner-heading>div{min-width:0}.lead-member-owner-heading h3{font-size:18px;line-height:1.5;margin:6px 0;overflow-wrap:anywhere}.lead-member-owner-heading>div>span{font-size:12px;font-weight:650;color:var(--muted)}.lead-member-owner-heading p{margin:0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.lead-member-owners .owner-lead-summary{margin-bottom:0}.lead-member-owners .owner-progress{min-width:0}.lead-member-owners .owner-lead-summary>div{min-width:0}.crm-detail-head>.lead-back-button{display:inline-flex;align-items:center;gap:10px;padding:12px 18px;min-height:46px;margin-bottom:20px;font-size:15px;font-weight:650;border:1px solid var(--border);border-radius:9px;background:var(--theme-hover,#edf4fc);color:var(--ink)}.lead-back-button>span{font-size:22px;line-height:1}.lead-back-button:focus-visible{outline:2px solid #568bca;outline-offset:3px}@media(max-width:700px){.lead-member-owners{padding:15px}.lead-member-owner-heading{flex-direction:column}.lead-member-owners .owner-lead-summary{grid-template-columns:minmax(0,1fr)}.crm-detail-head>.lead-back-button{width:100%;justify-content:center}}

/* Fill mobile information tiles with readable text without enlarging the tiles. */
@media(max-width:700px){
 #app.launcher-shell .header-right .fx-button{font-size:11px;line-height:1.2;padding:3px 2px;gap:2px}
 #app.launcher-shell .header-right .fx-button strong{font-size:clamp(12px,3.6vw,15px);line-height:1.2;font-weight:750}
 #app.launcher-shell .header-right .workspace-clock{font-size:12px;line-height:1.25;gap:2px;padding:3px 2px;font-variant-numeric:tabular-nums}
 #app.launcher-shell .workspace-clock [data-clock-date]{font-size:11.5px;font-weight:550}
 #app.launcher-shell .workspace-clock .clock-hour{font-size:12px;font-weight:600}
}

.workspace-back-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 18px;min-height:46px;margin-bottom:20px;font-size:15px;font-weight:650;line-height:1.4;border:1px solid var(--border);border-radius:9px;background:var(--theme-hover,#edf4fc);color:var(--ink);max-width:100%;white-space:normal;text-align:center}.workspace-back-button>span[aria-hidden]{font-size:22px;line-height:1}.workspace-back-button:focus-visible{outline:2px solid #568bca;outline-offset:3px}.internal-chat .workspace-back-button{margin-bottom:12px}@media(max-width:700px){.workspace-back-button{width:100%}}

/* Application launcher: searchable modules and creation shortcuts. */
#app.launcher-shell>aside.open,#app.launcher-shell.sidebar-collapsed>aside.open{width:min(570px,calc(100vw - 24px));padding:20px}
#app.launcher-shell>aside nav,.launcher-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;display:grid}
#app.launcher-shell>aside nav[hidden],#app.launcher-shell>aside [hidden]{display:none!important}
.launcher-search{display:flex;align-items:center;gap:8px;margin:0 0 18px;padding:0 11px;border:1px solid var(--border);border-radius:5px;min-height:44px;color:var(--muted);background:var(--theme-surface,#fff)}
.launcher-search:focus-within{outline:2px solid #568bca;outline-offset:2px}.launcher-search svg{flex-shrink:0}.launcher-search input[type=search]{min-width:0;width:100%;height:42px;min-height:42px;padding:0;border:0!important;outline:none!important;box-shadow:none!important;background:transparent;color:var(--ink);font-size:13px}
.launcher-section{border-top:1px solid var(--border);margin-top:16px;padding-top:16px}
#app.launcher-shell>aside nav>button,.launcher-tile{min-width:0;min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;text-align:center;padding:10px 3px;margin:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:12px;line-height:1.35;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}
.launcher-tile:hover{background:var(--theme-hover,#edf4fc);border-color:var(--border)}.launcher-tile:focus-visible{outline:2px solid #568bca;outline-offset:1px}.launcher-tile img{height:36px;width:36px;object-fit:contain;filter:drop-shadow(0 2px 2px #10273e20)}.launcher-tile>span{max-width:100%}
#app.launcher-shell>aside nav>button>i,.launcher-result>i{position:relative;isolation:isolate;display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:0;border-radius:10px;background:linear-gradient(135deg,#63c9ff,#2169cf 55%,#2542a4);color:white;box-shadow:inset 1px 1px 1px #ffffff60,0 3px 5px #10273e22}
#app.launcher-shell>aside nav>button>i:before,.launcher-result>i:before{content:'';position:absolute;z-index:-1;right:-3px;top:6px;width:17px;height:27px;border-radius:4px;background:#ffffff22;transform:skewY(-14deg)}
#app.launcher-shell>aside nav>button[data-page=tareas]>i{background:linear-gradient(135deg,#ffca68,#ec8c24 55%,#bc4f19);color:#fff}
#app.launcher-shell>aside nav>button[data-page=comercial]>i{background:linear-gradient(135deg,#57dfc1,#079d8b 55%,#086f79);color:#fff}
#app.launcher-shell>aside nav>button[data-page=localizacion]>i{background:linear-gradient(135deg,#b391ff,#8251da 55%,#49339e);color:#fff}
#app.launcher-shell>aside nav>button[data-page=administracion]>i{background:linear-gradient(135deg,#ff9ea8,#de496d 55%,#aa2259);color:#fff}
.launcher-result>i svg{width:25px;height:25px}.launcher-create{grid-template-columns:repeat(4,minmax(0,1fr))}.launcher-create .launcher-tile{min-height:82px}.launcher-create svg{color:var(--muted);flex-shrink:0}.launcher-empty{font-size:13px;color:var(--muted);padding:12px 0;margin:0}
@media(max-width:480px){#app.launcher-shell>aside.open,#app.launcher-shell.sidebar-collapsed>aside.open{padding:15px;left:12px;width:calc(100vw - 24px)}#app.launcher-shell>aside nav,.launcher-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.launcher-create{grid-template-columns:repeat(2,minmax(0,1fr))}#app.launcher-shell>aside nav>button,.launcher-tile{font-size:12px;min-height:88px}}

.workspace-area-return{max-width:1500px;margin:0 auto;padding:28px 42px 0}.workspace-area-return .workspace-back-button{margin:0}.workspace-area-return+main{padding-top:20px}@media(max-width:1100px){.workspace-area-return{padding:24px 25px 0}}@media(max-width:700px){.workspace-area-return{padding:20px 20px 0}}@media print{.workspace-area-return{display:none!important}}

.lead-property-editor{margin:18px 0;padding:18px;border:1px solid var(--border);border-radius:10px;background:var(--theme-soft,#f5f8fc)}.lead-property-editor h3{margin:0 0 10px}.lead-property-editor label{display:block;margin:14px 0}.lead-source-member{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--border);font-size:13px}.lead-source-member>span{min-width:0;overflow-wrap:anywhere}.lead-source-member small{display:block;color:var(--muted);margin-top:5px}.lead-source-member button{flex-shrink:0;min-height:44px}.lead-property-editor ul{padding-left:20px;font-size:13px;line-height:1.7}@media(max-width:480px){.lead-property-editor{padding:12px}.lead-source-member{align-items:flex-start}}

/* Subtle PBA architectural background shared by all workspace modules. */
#app.launcher-shell .main-shell{background:linear-gradient(145deg,#f7f9fc 20%,#eef3f8 100%)}
#app.launcher-shell .main-shell::before,#app.launcher-shell .main-shell::after{content:'';position:fixed;top:var(--workspace-header-height,64px);bottom:0;width:min(28vw,380px);z-index:0;pointer-events:none;background:url('/pba-architecture.svg') left bottom/100% auto no-repeat;opacity:.24}
#app.launcher-shell .main-shell::before{left:0}
#app.launcher-shell .main-shell::after{right:0;transform:scaleX(-1);opacity:.16}
#app.launcher-shell .main-shell>:is(main,.workspace-area-return,.app-footer){position:relative;z-index:1}
html[data-theme=dark] #app.launcher-shell .main-shell{background:linear-gradient(145deg,#101923 20%,#142333 100%)}
html[data-theme=dark] #app.launcher-shell .main-shell::before{opacity:.22}
html[data-theme=dark] #app.launcher-shell .main-shell::after{opacity:.16}
@media(max-width:700px){#app.launcher-shell .main-shell::before{width:180px;opacity:.12}#app.launcher-shell .main-shell::after{display:none}}
@media print{#app.launcher-shell .main-shell{background:none!important}#app.launcher-shell .main-shell::before,#app.launcher-shell .main-shell::after{display:none!important}}

.accumulation-photo-row{display:grid;grid-template-columns:minmax(0,1fr) 200px;align-items:center;gap:22px;padding:18px 0;border-bottom:1px solid var(--border)}.accumulation-photo-image{min-width:0;min-height:100px;background:var(--theme-soft,#f4f7fb);border-radius:8px;overflow:hidden}.accumulation-photo-image img{display:block;width:100%;height:220px;object-fit:contain}.accumulation-photo-controls{display:flex;flex-direction:column;align-items:flex-start;gap:14px;font-size:14px}.accumulation-photo-controls label{display:flex;align-items:center;gap:8px;margin:0}.accumulation-photo-controls input[type=checkbox]{width:18px;height:18px;flex-shrink:0}.accumulation-photo-controls button{min-height:44px}@media(max-width:600px){.accumulation-photo-row{grid-template-columns:minmax(0,1fr);gap:12px}.accumulation-photo-controls{width:100%;flex-direction:row;flex-wrap:wrap;align-items:center}.accumulation-photo-controls strong{flex-basis:100%}.accumulation-photo-image img{height:180px}}

#session-panel{position:relative;isolation:isolate;background:linear-gradient(145deg,#f7f9fc,#eef3f8)}#session-panel::before,#session-panel::after{content:'';position:absolute;inset:0 auto 0 0;width:min(28vw,380px);background:url('/pba-architecture.svg') left bottom/100% auto no-repeat;opacity:.24;pointer-events:none;z-index:-1}#session-panel::after{left:auto;right:0;transform:scaleX(-1);opacity:.16}html[data-theme=dark] #session-panel{background:linear-gradient(145deg,#101923,#142333)}@media(max-width:700px){#session-panel::before{width:160px;opacity:.12}#session-panel::after{display:none}}

/* Keep launcher interaction states readable in the dark theme. */
html[data-theme=dark] #app.launcher-shell>aside,html[data-theme=dark] #app.launcher-shell header #menu{--theme-hover:#263d56}
html[data-theme=dark] #app.launcher-shell header #menu{background:#213248;color:#edf5ff;border-color:#506783}
html[data-theme=dark] #app.launcher-shell header #menu:is(:hover,:focus-visible,[aria-expanded=true]){background:#2b4868;color:#fff;border-color:#8dbdeb}
html[data-theme=dark] #app.launcher-shell>aside nav>button:is(:hover,:focus-visible),html[data-theme=dark] #app.launcher-shell>aside .launcher-tile:is(:hover,:focus-visible){background:#263d56;color:#f4f8ff;border-color:#7aa4d1}
html[data-theme=dark] #app.launcher-shell>aside nav>button:is(.active,[aria-current=page]){background:#284b70;color:#fff;border-color:#8dbdeb}
html[data-theme=dark] #app.launcher-shell>aside nav>button:is(.active,[aria-current=page]):hover{background:#315c86;color:#fff}
html[data-theme=dark] #app.launcher-shell>aside .task-menu-count{background:#365f8c;color:#fff;border-color:#8dbdeb}
html[data-theme=dark] #app.launcher-shell>aside .launcher-tile:is(:hover,:focus-visible) svg{color:#edf5ff}

html[data-theme=dark] .workspace-back-button,html[data-theme=dark] #app .workspace-back-button{background:#243c55;color:#f4f8ff;border-color:#6e91b8}
html[data-theme=dark] .workspace-back-button:is(:hover,:focus-visible),html[data-theme=dark] #app .workspace-back-button:is(:hover,:focus-visible){background:#315675;color:#fff;border-color:#a4c9ef}
html[data-theme=dark] .workspace-back-button:focus-visible{outline:2px solid #a4c9ef;outline-offset:3px}

/* Shared soft surfaces must use a dark palette, including lead headings and pricing. */
html[data-theme=dark]{--theme-hover:#243a52}
html[data-theme=dark] :is(.lead-card-heading,.lead-requested){background:var(--theme-hover);color:#edf5ff;border-color:#49617e}
html[data-theme=dark] .lead-card-heading :is(h2,.crm-property-link),html[data-theme=dark] .lead-requested>strong{color:#edf5ff}
html[data-theme=dark] .lead-card-heading>small,html[data-theme=dark] .lead-requested>:is(span,small){color:#b8cbe0}
html[data-theme=dark] .lead-card-heading .crm-property-link:is(:hover,:focus-visible){background:#315675;color:#fff}

.lead-owner-property-picker{width:640px;max-width:calc(100vw - 24px);max-height:90dvh;padding:24px;border:1px solid var(--border);border-radius:14px;background:var(--theme-surface,#fff);color:var(--ink)}.lead-owner-property-picker::backdrop{background:#10243b80;backdrop-filter:blur(3px)}.lead-owner-property-picker label{display:block;margin:16px 0}.lead-owner-property-option{display:flex;flex-direction:column;gap:6px;width:100%;text-align:left;white-space:normal;min-height:64px;padding:14px;margin:10px 0;overflow-wrap:anywhere}.lead-owner-property-option span,.owner-followup-property small{display:block;color:var(--muted);font-size:13px}.owner-followup-property{padding:12px 14px;margin:12px 0;border:1px solid var(--border);border-radius:8px;background:var(--theme-hover,#edf4fc);color:var(--ink);font-size:14px;line-height:1.5}.lead-owner-property-picker .dialog-actions{position:static}@media(max-width:480px){.lead-owner-property-picker{padding:16px}.lead-owner-property-picker h2{font-size:20px}}

.contract-template-trigger{display:inline-flex;align-items:center;gap:8px;min-height:44px}.contract-template-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border-radius:14px;padding:24px}.contract-template-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0}.contract-template-option{display:flex;align-items:flex-start;gap:12px;text-align:left;min-width:0;min-height:120px;padding:20px;border:1px solid #b9cce3;border-radius:12px;background:#f4f8fd;color:#1b4474}.contract-template-option>svg{flex-shrink:0;margin-top:2px}.contract-template-option>span{display:flex;flex-direction:column;gap:10px}.contract-template-option strong{font-size:17px}.contract-template-option small{font-size:12px;line-height:1.5}.contract-template-option:not(:disabled):hover{background:#e5effb;border-color:#447caf}.contract-template-option:disabled{opacity:.65;cursor:not-allowed}.contract-template-dialog [data-template-status]{font-size:13px;line-height:1.5}.contract-template-dialog::backdrop{background:#10253d88}:root[data-theme=dark] .contract-template-option{background:#243a52;color:#edf5ff;border-color:#6d91b7}:root[data-theme=dark] .contract-template-option:not(:disabled):hover{background:#315675;color:#fff}@media(max-width:600px){.contract-template-options{grid-template-columns:minmax(0,1fr)}.contract-template-option{min-height:90px}.contract-template-dialog{padding:18px}}

/* Unified search-and-select: the original select remains the form value. */
.pba-search-select{position:relative;min-width:0;width:100%;box-sizing:border-box;min-height:48px;padding:0 10px 0 13px;display:flex;align-items:center;gap:10px;border:1px solid #c7d5e5;border-radius:9px;background:var(--theme-surface,#fff);color:#7d8da2}
.pba-search-select>input,.pba-search-select>input[type=search]{display:block;flex:1;width:100%;min-width:0;min-height:46px;padding:10px 0!important;margin:0!important;border:0!important;border-radius:0!important;outline:none!important;box-shadow:none!important;background:transparent!important;color:var(--theme-text,var(--ink,#17314f));font:inherit;font-size:16px;direction:ltr;text-align:left}
.pba-search-select>svg{flex:0 0 18px;align-self:center}.pba-search-arrow{display:flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;min-width:28px;height:40px;min-height:40px;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;color:inherit!important;cursor:pointer}.pba-search-select:focus-within{border-color:#244e83;box-shadow:0 0 0 3px #244e8326;outline:none}.pba-search-select.is-disabled{opacity:.65}.pba-search-select.is-disabled .pba-search-arrow{cursor:default}
.pba-search-list{position:fixed;z-index:20000;overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;min-width:0;max-width:calc(100vw - 16px);border:1px solid #c7d5e5;border-radius:9px;background:#fff;color:#17314f;box-shadow:0 10px 24px #10253d26;scroll-padding:6px;isolation:isolate}
.pba-search-option{display:flex;align-items:center;gap:10px;box-sizing:border-box;min-height:46px;padding:12px 15px;border-bottom:1px solid #edf2f8;cursor:pointer;font-size:14px;line-height:1.5;text-align:left;overflow-wrap:anywhere;white-space:normal}.pba-search-option>span:last-child{min-width:0}.pba-search-option:last-child{border-bottom:0}.pba-search-dot{flex:0 0 7px;width:7px;height:7px;border-radius:50%;background:#c5d3e4}.pba-search-option:hover,.pba-search-option.is-active{background:#eaf2fc;color:#153d70}.pba-search-option[aria-selected=true]{background:#e1edfb;color:#123b70;font-weight:600}.pba-search-option[aria-selected=true] .pba-search-dot{background:#2866ad}.pba-search-option[data-lead-status=registered] .pba-search-dot{background:#159568}.pba-search-option[data-lead-status=retired] .pba-search-dot{background:#c4324b}.pba-search-group{padding:9px 15px;background:#f5f8fc;color:#687e99;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}.pba-search-empty{padding:13px 15px;font-size:12px;line-height:1.5;color:#6d819b}
:root[data-theme=dark] .pba-search-select{background:#152435;border-color:#5c7695;color:#bcd0e6}:root[data-theme=dark] .pba-search-list{background:#1a2b3e;color:#edf5ff;border-color:#5c7695;box-shadow:0 12px 28px #0006}:root[data-theme=dark] .pba-search-option{border-bottom-color:#344d69}:root[data-theme=dark] .pba-search-option:hover,:root[data-theme=dark] .pba-search-option.is-active{background:#2c4868;color:#fff}:root[data-theme=dark] .pba-search-option[aria-selected=true]{background:#315a86;color:#fff}:root[data-theme=dark] .pba-search-group{background:#22384f;color:#c1d5eb}:root[data-theme=dark] .pba-search-empty{color:#b8cbe0}:root[data-theme=dark] .pba-search-select:focus-within{border-color:#93bced;box-shadow:0 0 0 3px #93bced26}
@media(max-width:600px){.pba-search-option{min-height:48px;padding:12px;font-size:14px}.pba-search-select{max-width:100%}.pba-search-list{border-radius:8px}}

.pba-search-select.is-open .pba-search-arrow svg{transform:rotate(180deg)}

/* Contract followup deletion: focused, responsive confirmation. */
.parameter-dialog.contract-followup-delete{width:600px;padding:26px}
.contract-followup-delete .dialog-head{align-items:center;gap:16px;margin-bottom:18px}
.contract-followup-delete .dialog-head h2{font-size:23px;margin:0;line-height:1.3}
.contract-followup-delete .dialog-head button{min-width:44px;min-height:44px;flex-shrink:0}
.contract-followup-delete .followup-delete-description{font-size:14px;line-height:1.7;margin:0 0 22px;color:var(--muted)}
.contract-followup-delete .parameter-comment{margin:0;gap:9px;font-size:14px}
.contract-followup-delete .parameter-comment textarea{min-height:144px;font-size:16px;margin:0}
.contract-followup-delete .parameter-comment small{font-size:12px;line-height:1.6;color:var(--muted);font-weight:400}
.contract-followup-delete [data-message]:empty{display:none}
.contract-followup-delete .dialog-actions{display:flex;justify-content:flex-end;gap:10px;position:static;margin-top:24px;padding:18px 0 0}
.contract-followup-delete .dialog-actions button{min-height:44px;white-space:normal}
.contract-followup-delete .dialog-actions button[type=submit]{background:#b42335;border-color:#b42335;color:#fff}
.contract-followup-delete .dialog-actions button[type=submit]:hover{background:#941d2c;border-color:#941d2c}
@media(max-width:480px){.parameter-dialog.contract-followup-delete{padding:20px}.contract-followup-delete .dialog-head h2{font-size:21px}.contract-followup-delete .dialog-actions{flex-direction:column-reverse}.contract-followup-delete .dialog-actions button{width:100%}}
