/* Demo-only adapters. Live account assets and templates are left intact. */
body[data-demo-role="company-owner"] [hidden]{display:none!important}
body[data-demo-role="company-owner"] :is(.listing-toolbar,.customer-toolbar,.finance-toolbar,.agent-toolbar,.investment-toolbar,.tenancy-toolbar,.bd-toolbar){display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
body[data-demo-role="company-owner"] :is(.listing-toolbar,.customer-toolbar,.finance-toolbar,.agent-toolbar,.investment-toolbar,.tenancy-toolbar,.bd-toolbar) :is(input,select,button){min-height:40px;box-sizing:border-box}
body[data-demo-role="company-owner"] :is(.listing-tabs,.customer-list-tabs,.finance-tabs,.agent-tabs,.investment-tabs,.tenancy-tabs,.bd-tabs){align-items:center;overflow-x:auto;max-width:100%}
body[data-demo-role="company-owner"] :is(.listing-tabs,.customer-list-tabs,.finance-tabs,.agent-tabs,.investment-tabs,.tenancy-tabs,.bd-tabs)>button{flex-shrink:0;white-space:nowrap}
.demo-inspection-controls{align-items:center;gap:12px}.demo-register-title{flex:1;min-width:220px}.demo-register-title small{display:block;color:#697d99;letter-spacing:.09em;font-size:10px;margin-bottom:6px}.demo-inspection-controls input{flex:0 1 270px}.demo-inspection-list{padding:0 18px 18px}.demo-inspection-list>article{grid-template-columns:74px minmax(0,1fr) 100px 150px;gap:18px}.demo-inspection-list .date small{white-space:normal}.demo-inspection-list .status{background:#e7f5ef;color:#167259}.demo-inspection-list button{align-self:center}
@media(max-width:900px){.demo-inspection-controls input{flex:1}.demo-register-title{flex-basis:100%}.demo-inspection-list>article{grid-template-columns:65px minmax(0,1fr)}.demo-inspection-list .attendance,.demo-inspection-list button{grid-column:2}}
body[data-demo-role="company-owner"] .demo-switch{margin-top:12px}
body[data-demo-role="company-owner"] .portal-main{min-width:0}
body[data-demo-role="company-owner"] .property-thumb:has(img):after{display:none}
body[data-demo-role="company-owner"] .ownership-tabs button.active b{color:inherit}
body[data-demo-role="company-owner"] .demo-live-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px;padding:24px;border:1px solid #d8e4f7;border-radius:20px;background:radial-gradient(ellipse at 100% 0,#dce6ff 0,transparent 60%),linear-gradient(115deg,#edf8f6,#f1f3ff)}
.demo-live-heading h1{margin:8px 0;color:#182c53;font-size:30px}.demo-live-heading p{color:#586d86;line-height:1.6;margin:0}.demo-live-heading small{color:#386b9c;font-weight:700;letter-spacing:.08em}
.demo-live-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.demo-live-actions button,.demo-live-actions a,.demo-live-panel button,.demo-live-dialog button{border:1px solid #cedcf0;border-radius:9px;background:#fff;color:#36577f;padding:10px 14px;font:600 13px Inter,system-ui;cursor:pointer;text-decoration:none}
.demo-live-actions .primary,.demo-live-dialog .primary{background:#2563eb;color:#fff;border-color:#2563eb}
.demo-live-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}
.demo-live-kpis article{padding:22px;border:1px solid #d1e1fb;border-top:3px solid #3977e6;border-radius:16px;background:linear-gradient(125deg,#eaf2ff,#fff)}
.demo-live-kpis article:nth-child(2){background:linear-gradient(125deg,#eaf9f3,#fff);border-color:#ccece0;border-top-color:#16a085}.demo-live-kpis article:nth-child(3){background:linear-gradient(125deg,#fff4e6,#fff);border-color:#f4dfc5;border-top-color:#e59636}.demo-live-kpis article:nth-child(4){background:linear-gradient(125deg,#f2ecff,#fff);border-color:#e1d7f6;border-top-color:#8656d9}
.demo-live-kpis small,.demo-live-kpis em{display:block;color:#66768b;font-size:12px;font-style:normal}.demo-live-kpis strong{display:block;color:#295caa;font-size:27px;margin:10px 0}
.demo-live-panel{border:1px solid #dbe4f1;border-radius:18px;background:#fff;overflow:hidden;margin-bottom:20px}.demo-live-panel>header{padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px}.demo-live-panel h2{font-size:18px;margin:0;color:#182c53}
.demo-live-tabs{display:flex;gap:6px;padding:12px 18px;overflow-x:auto;border-bottom:1px solid #dee8ee;background:linear-gradient(110deg,#edf7f4,#f2f5fc)}
.demo-live-tabs button{white-space:nowrap;border-color:transparent}.demo-live-tabs button.active{background:#e2ebff;color:#315edf;border-bottom-color:#4269ed}
.demo-live-table-wrap{overflow-x:auto}.demo-live-table{border-collapse:collapse;width:100%;font:13px Inter,system-ui}.demo-live-table th{background:#edf2fa;color:#687f9f;text-align:left;padding:14px 18px;font-size:11px;text-transform:uppercase}.demo-live-table td{padding:17px 18px;border-bottom:1px solid #e8edf3;color:#344054}.demo-live-table small{display:block;margin-top:6px;color:#7b8899}
.demo-live-panel input,.demo-live-panel select,.demo-live-dialog input,.demo-live-dialog select,.demo-live-dialog textarea{padding:11px;border:1px solid #d8e2f3;border-radius:8px;font:13px Inter,system-ui;box-sizing:border-box;max-width:100%;background:#fff;color:#344054}
.demo-live-toolbar{padding:14px 18px;display:flex;gap:10px;flex-wrap:wrap}.demo-live-toolbar input{flex:1;min-width:140px}.demo-live-status{padding:5px 9px;border-radius:14px;background:#e8f5ef;color:#18745c;white-space:nowrap}.demo-live-status.pending{background:#fff0de;color:#a76118}
.demo-live-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(600px,calc(100% - 32px));max-height:85vh;overflow:auto;border:1px solid #d8e2f3;border-radius:18px;background:#fff;box-shadow:0 24px 80px #14223c40;color:#182c53}.demo-live-dialog::backdrop{background:#10182880}.demo-live-dialog header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #e8edf3}.demo-live-dialog h2{margin:0;font:700 21px Inter,system-ui}.demo-live-dialog form{padding:22px 24px}.demo-live-dialog label{display:grid;gap:7px;margin-bottom:15px;font:600 13px Inter,system-ui}.demo-live-dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.demo-live-dialog p{color:#66768b;line-height:1.6;font-size:13px}.demo-live-feedback{position:fixed;bottom:24px;right:24px;z-index:10000;padding:14px 20px;background:#182c53;color:#fff;border-radius:10px;font:13px Inter,system-ui;max-width:calc(100vw - 48px)}
.demo-live-activity{padding:0 22px 20px;line-height:1.7;color:#586d86}.demo-live-extra{margin-top:24px}.demo-live-filter[hidden],.demo-live-panel [hidden]{display:none!important}
.demo-live-dialog.demo-account-form,.demo-live-dialog.demo-project-dialog{width:min(920px,calc(100% - 32px))}
.demo-live-dialog .demo-form-section{border:1px solid #e0e7f2;border-radius:12px;margin:18px 0;padding:18px;scroll-margin-top:12px}
.demo-live-dialog .demo-form-section legend{color:#36577f;padding:0 8px;font-weight:700;font-size:14px}
.demo-live-dialog .demo-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.demo-live-dialog .demo-form-field{min-width:0}.demo-live-dialog .demo-form-field.wide{grid-column:1/-1}
.demo-live-dialog .demo-form-field>label{display:block;margin-bottom:7px;line-height:1.5}.demo-live-dialog .demo-form-field>input,.demo-live-dialog .demo-form-field>select,.demo-live-dialog .demo-form-field>textarea{width:100%;min-width:0}
.demo-live-dialog .demo-form-toggle label,.demo-live-dialog .demo-form-choices label{display:flex;align-items:flex-start;gap:10px;margin:0;line-height:1.5}
.demo-live-dialog input[type=checkbox],.demo-live-dialog input[type=radio]{width:17px;height:17px;flex:0 0 17px;accent-color:#2563eb;margin:2px 0}
.demo-live-dialog .demo-form-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.demo-live-dialog input[type=color]{height:42px}.demo-live-dialog select[multiple]{min-height:110px}
@media(max-width:600px){.demo-live-dialog .demo-form-grid{grid-template-columns:1fr}.demo-live-dialog .demo-form-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-live-dialog form{padding:16px}.demo-live-dialog .demo-form-section{padding:12px}}
@media(max-width:900px){body[data-demo-role="company-owner"] .portal-main{padding:20px!important}.demo-live-heading{flex-direction:column;align-items:flex-start!important}.demo-live-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-live-heading h1{font-size:25px}.demo-live-dialog{max-height:90vh}}
@media(max-width:540px){.demo-live-kpis{gap:10px}.demo-live-kpis article{padding:16px}.demo-live-kpis strong{font-size:22px}.demo-live-actions{width:100%}.demo-live-actions button{flex:1}.demo-live-panel>header{flex-wrap:wrap}}
