/* Configuration, room impact and source evidence share the existing visual system. */
.twin-controls{margin:0 0 24px;border:1px solid #ddd;border-radius:6px;background:#fff;padding:24px 28px;scroll-margin-top:155px}
.twin-controls[hidden],.twin-panel[hidden],.twin-empty[hidden]{display:none!important}
.twin-controls-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:19px}
.twin-controls-head .eyebrow{margin:0 0 7px;font-size:12px;letter-spacing:.15em;color:#647181}
.twin-controls-head h3{font-size:23px;font-weight:450;line-height:1.4;margin:0}
.twin-choices{display:grid;grid-template-columns:minmax(230px,1.2fr) minmax(190px,.9fr) minmax(220px,1fr);gap:18px;align-items:end}
.twin-choices>label>span{display:block;font-size:13px;color:#60676f;margin-bottom:7px}
.twin-choices select{height:44px;width:100%;font-size:15px;border-color:#c5cad0;padding:8px 36px 8px 13px;background-color:#fff;color:#1d232a;max-width:none}
.twin-choices .twin-track-choice{display:flex;gap:10px;align-items:center;min-height:44px;padding:6px 10px;background:#f5f7f9;border-radius:4px}
.twin-track-choice input,.twin-label-toggle input{width:17px;height:17px;accent-color:#007bff;flex-shrink:0}
.twin-choices .twin-track-choice>span{margin:0;color:#323b45;font-size:14px;line-height:1.5}
.twin-track-choice small{display:block;color:#687585;font-size:12px}
.twin-track-choice:has(input:disabled){opacity:.55}
.twin-scenarios{display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin-top:19px}
.twin-scenarios>span{font-size:13px;color:#626a75}
.twin-scenarios>div{display:flex;gap:6px;flex-wrap:wrap}
.twin-scenarios button{border:1px solid #d6dbe1;border-radius:4px;background:#fff;font-size:14px;min-height:36px;padding:7px 13px;color:#424b57;cursor:pointer}
.twin-scenarios button.selected{background:#17212d;color:#fff;border-color:#17212d}
.twin-scenarios button:hover{border-color:#007bff}
.twin-label-toggle{margin-left:auto;display:flex;gap:8px;align-items:center;font-size:13px;color:#47525e}
.twin-version-note{margin:17px 0 0;padding-top:15px;border-top:1px solid #eaedf0;color:#68717c;font-size:12px;line-height:1.85}
.twin-version-note .tag{margin-right:8px}
.twin-version-note>span:last-child{margin-left:8px}
body[data-scene="apartment"] .command-grid{grid-template-columns:minmax(0,1fr) minmax(335px,.43fr)}
body[data-scene="apartment"] .command-grid>.map-panel,body[data-scene="apartment"] .command-grid>.twin-panel{height:820px;min-width:0}
body[data-scene="apartment"] #scene-container{min-height:460px}
.twin-panel{display:flex;flex-direction:column;background:#fff;overflow:hidden}
.twin-health{padding:24px 25px 21px;border-bottom:1px solid #e0e4e9;background:linear-gradient(130deg,#f1f5f9,#fff);border-top:3px solid #7c8c9e}
.twin-health.warning{background:linear-gradient(130deg,#fff5e6,#fff);border-top-color:#c88825}
.twin-health.critical{background:linear-gradient(130deg,#fff1f0,#fff);border-top-color:#d05048}
.twin-health-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#596676}
.twin-health h3{font-size:22px;font-weight:500;line-height:1.5;margin:13px 0 7px;color:#1f2935}
.twin-health>p{font-size:13px;line-height:1.8;color:#66717e;margin:0}
.twin-health-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:18px 0 13px}
.twin-health-numbers>div{display:flex;flex-direction:column;border-right:1px solid #dfe3e8}
.twin-health-numbers>div:last-child{border:0}
.twin-health-numbers strong{font-size:31px;line-height:1.2;font-weight:400;color:#232e3a}
.twin-health-numbers span{font-size:12px;line-height:1.6;margin-top:6px;color:#596777}
.twin-health>small{display:block;font-size:11px;line-height:1.75;color:#778290}
.twin-panel-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.twin-room-section{padding:21px 23px;border-bottom:1px solid #e5e7ea}
.twin-panel h4{font-size:15px;font-weight:500;margin:0 0 13px;color:#2c3744}
.twin-room-states{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.twin-room-state{text-align:left;padding:10px;border:1px solid #dfe5eb;border-radius:4px;background:#f8fafc;cursor:pointer;min-width:0}
.twin-room-state>span,.twin-room-state b,.twin-room-state small{display:block;overflow-wrap:anywhere}
.twin-room-state>span{color:#364452;font-size:13px;margin-bottom:5px}
.twin-room-state b{font-size:11px;font-weight:400;color:#687788;line-height:1.65}
.twin-room-state small{font-size:11px;color:#8a939d;line-height:1.7;margin-top:3px}
.twin-room-state.affected{background:#fff8ec;border-color:#e8c88c}
.twin-room-state.fault,.twin-room-state.alarm{background:#fff2f0;border-color:#e9aaa4}
.twin-room-state.fault b,.twin-room-state.alarm b{color:#b94036}
.twin-device-section{padding:22px 0 0}
.twin-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:0 23px}
.twin-section-heading>span{font-size:11px;color:#7f8995}
.twin-device-list{padding:0 9px 13px}
.twin-device-row{display:grid;grid-template-columns:30px minmax(0,1fr) fit-content(38%);gap:9px;align-items:center;width:100%;text-align:left;padding:12px 10px;border:1px solid transparent;border-bottom-color:#edf0f3;border-radius:4px;background:#fff;cursor:pointer;color:#3b4652}
.twin-device-row:hover,.twin-device-row.selected{border-color:#86b7ee;background:#f2f7fd}
.twin-device-symbol{color:#6d7a88}
.twin-device-symbol svg{width:27px;height:27px;stroke:currentColor;fill:none;stroke-width:1.3}
.twin-device-copy{min-width:0}
.twin-device-copy strong{display:block;font-size:13px;font-weight:500;line-height:1.7;color:#303c49}
.twin-device-copy small{display:block;font-size:11px;color:#808b96;line-height:1.65;overflow-wrap:anywhere}
.twin-device-state{font-size:12px;text-align:right;line-height:1.65;color:#536473}
.twin-device-row.offline .twin-device-state,.twin-device-row.fault .twin-device-state,.twin-device-row.alarm .twin-device-state{color:#c7463c}
.twin-device-row.affected .twin-device-state{color:#b47b22}
.twin-rule-details{margin:0 22px 22px;padding-top:16px;border-top:1px solid #e1e6eb;color:#697684}
.twin-rule-details summary{font-size:13px;color:#354555;cursor:pointer;line-height:1.7}
.twin-rule-details summary>span{margin-left:5px;color:#778696}
.twin-rule-details>div{margin:15px 0}
.twin-rule-details strong{font-weight:500;color:#455364;font-size:12px}
.twin-rule-details p{font-size:12px;line-height:1.85;margin:5px 0;color:#7a8591}
.twin-panel-footer{display:flex;gap:9px;padding:17px 20px;border-top:1px solid #e1e5e9;background:#fafbfd}
.twin-panel-footer .button{flex:1;font-size:13px;padding:8px 10px;min-height:40px}
.twin-empty{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:30px 12%;color:#d7dce3;text-align:center;background:radial-gradient(ellipse at 50% 20%,#2c3440,#1b1e23 80%)}
.twin-empty-icon{border:1px solid #5c6876;border-radius:14px;width:65px;height:65px;display:grid;place-items:center;margin-bottom:21px;color:#99aabf}
.twin-empty-icon svg{width:33px;height:33px;stroke:currentColor;fill:none;stroke-width:1.2}
.twin-empty>.eyebrow{font-size:12px;letter-spacing:.08em;color:#a1b1c4;margin-bottom:8px}
.twin-empty h3{font-size:24px;font-weight:400;line-height:1.5;color:#f5f7fb;margin:0 0 12px}
.twin-empty>p{font-size:14px;line-height:1.85;max-width:440px;color:#aab5c4}
.twin-reference-checks{width:min(360px,100%);margin:23px 0 17px;text-align:left;border-top:1px solid #485461}
.twin-reference-checks>div{display:flex;justify-content:space-between;gap:14px;border-bottom:1px solid #485461;padding:11px 0;font-size:13px}
.twin-reference-checks strong{font-weight:400;color:#cbd6e4}
.twin-empty .twin-empty-foot{font-size:12px;color:#8394a8;margin:0 0 17px}
.twin-empty .button{color:#e1e8f1;border-color:#8393a5;background:transparent;font-size:13px}
body[data-scene="apartment"] .scene-detail{top:15px;left:18px;width:260px;max-width:calc(100% - 36px)}
.twin-detail-room{font-size:12px;color:#90afd1;display:block;margin-bottom:7px}
.scene-detail dl{margin:14px 0 17px}
.scene-detail dl>div{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;font-size:12px;line-height:1.7}
.scene-detail dt{color:#8997a7}
.scene-detail dd{margin:0;color:#d8e0e9}
.scene-detail>.close-scene-detail{font-size:25px;font-weight:300}
.legend-dot.red{background:#dc6a60!important;box-shadow:none}
.configuration-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0}
.configuration-catalog article{display:grid;grid-template-columns:85px minmax(0,1fr);gap:15px;padding:20px 17px;border:1px solid #e1e5e9;border-radius:5px;align-items:start}
.configuration-catalog article>img{max-width:85px;max-height:95px;width:100%;height:85px;object-fit:contain;background:#fff}
.configuration-catalog article>div>span{font-size:11px;color:#6c7d8f}
.configuration-catalog h4{margin:5px 0 11px;font-size:16px;font-weight:500;color:#283441}
.configuration-catalog dl{font-size:12px;line-height:1.75;margin:0}
.configuration-catalog dl>div{display:flex;gap:12px;margin-bottom:5px}
.configuration-catalog dt{flex:0 0 65px;color:#8a929a}
.configuration-catalog dd{margin:0;color:#4e5d6d}
.configuration-catalog p{font-size:12px!important;line-height:1.8!important;color:#78838f!important;margin:9px 0 0!important;overflow-wrap:anywhere}
.configuration-catalog-intro h3{margin-top:15px;font-size:23px;font-weight:400}
.configuration-catalog-intro p{font-size:14px;color:#687482;line-height:1.9}
.catalog-icon svg{width:50px;height:50px;stroke:#778a9d;fill:none;stroke-width:1.2}
.configuration-intro{display:flex;justify-content:space-between;gap:30px;align-items:center;padding:29px;margin-bottom:25px}
.configuration-intro h2{font-size:24px;font-weight:400;margin:9px 0 13px}
.configuration-intro p{font-size:14px;color:#6b7785;line-height:1.8}
.configuration-intro>div:last-child{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}
.inventory-ledger{margin:0 28px 24px;padding:22px;border:1px solid #dee5ed;border-radius:5px;background:#f8fafc}
.ledger-heading{display:flex;justify-content:space-between;gap:20px;align-items:center}
.ledger-heading .eyebrow{font-size:11px;color:#71849a;margin:0 0 7px}
.ledger-heading h3{font-size:20px;font-weight:400;color:#2a3a4c;margin:0}
.ledger-heading p{font-size:13px;color:#75808e;line-height:1.8;margin-top:8px}
.ledger-heading .button{font-size:13px;white-space:normal;flex-shrink:0}
.ledger-groups{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:17px}
.ledger-groups>button,.ledger-groups>div{border:1px solid #dce3eb;border-radius:4px;background:#fff;padding:14px;display:flex;gap:8px;align-items:baseline;flex-wrap:wrap;min-width:0;color:#3b4a5c;text-align:left}
.ledger-groups>button{cursor:pointer}
.ledger-groups>button:hover{border-color:#3c8fe6}
.ledger-groups span{font-size:12px;width:100%;line-height:1.7}
.ledger-groups strong{font-size:25px;font-weight:400;line-height:1.5}
.ledger-groups small{font-size:12px;color:#8793a0}
.property-name>[data-property-source]{display:inline-block;text-align:left;font-size:12px;color:#6985a5;margin-top:5px}
#business-select{min-width:150px}
@media(min-width:1600px){body[data-scene="apartment"] .command-grid{grid-template-columns:minmax(0,1fr)390px}}
@media(max-width:1100px){
 .twin-controls{padding:22px}.twin-choices{grid-template-columns:1fr 1fr}.twin-choices>.twin-track-choice{grid-column:1/-1;min-height:38px}
 .twin-controls-head h3{font-size:21px}.twin-scenarios{gap:12px}.twin-label-toggle{margin-left:0}
 body[data-scene="apartment"] .command-grid{grid-template-columns:minmax(0,1fr)330px}
 .twin-health{padding:22px 20px}.twin-health h3{font-size:20px}.twin-room-section{padding:19px}.configuration-intro{align-items:flex-start;flex-direction:column}
 .configuration-catalog{grid-template-columns:1fr}.ledger-groups{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:850px){
 body[data-scene="apartment"] .command-grid{grid-template-columns:1fr}
 body[data-scene="apartment"] .command-grid>.map-panel{height:700px}
 body[data-scene="apartment"] .command-grid>.twin-panel{height:auto;max-height:900px}
 .twin-panel-scroll{max-height:540px}.twin-health-numbers{max-width:410px}
 .twin-room-states{grid-template-columns:repeat(3,minmax(0,1fr))}
 .ledger-heading{align-items:flex-start;flex-direction:column}
}
@media(max-width:640px){
 .twin-controls{padding:19px;margin-bottom:19px;scroll-margin-top:90px}.twin-controls-head{align-items:flex-start;gap:12px}.twin-controls-head h3{font-size:19px}.twin-controls-head .button{font-size:12px;padding:8px;min-height:37px}
 .twin-choices{grid-template-columns:1fr;gap:14px}.twin-choices select{font-size:16px;min-height:46px}.twin-choices>.twin-track-choice{grid-column:auto}
 .twin-scenarios>span{width:100%}.twin-scenarios>div{display:grid;grid-template-columns:repeat(2,1fr);width:100%}.twin-scenarios button{font-size:13px;min-height:41px}.twin-version-note{font-size:12px;line-height:1.9}.twin-version-note>span:last-child{display:block;margin:4px 0 0}
 body[data-scene="apartment"] .command-grid>.map-panel{height:690px}.twin-empty{padding:25px}.twin-empty h3{font-size:22px}.twin-empty>p{font-size:13px}
 .twin-room-states{grid-template-columns:repeat(2,minmax(0,1fr))}.twin-device-copy strong{font-size:14px}.twin-device-copy small,.twin-device-state{font-size:12px}
 .inventory-ledger{margin:0 20px 20px;padding:18px}.ledger-heading h3{font-size:18px}.ledger-heading p{font-size:12px}.ledger-groups{gap:8px}.ledger-groups>button,.ledger-groups>div{padding:12px}
 .configuration-catalog article{grid-template-columns:62px minmax(0,1fr);padding:15px;gap:13px}.configuration-catalog article>img{max-width:62px;height:70px}.configuration-catalog dl>div{display:block}.configuration-catalog h4{font-size:15px}.configuration-intro{padding:22px}.configuration-intro h2{font-size:21px}#business-select{width:100%;font-size:16px}
}

/* Evidence-backed collection leads, separate from the housing inventory. */
.collection-leads{margin:0 28px 24px;padding:22px;display:flex;justify-content:space-between;gap:24px;align-items:center;border:1px solid #dce5ef;border-radius:5px;background:#fff}
.collection-leads[hidden]{display:none!important}.collection-leads h3{margin:12px 0 8px;font-size:19px;font-weight:500}.collection-leads p{margin:0;max-width:720px;font-size:13px;line-height:1.8;color:#657181}.collection-leads small{display:block;margin-top:8px;color:#7a8491;font-size:11px}.collection-leads-actions{display:flex;flex-direction:column;gap:9px;flex-shrink:0}.collection-leads-table{overflow:auto;margin:24px 0}.collection-leads-table table{min-width:650px;width:100%}.collection-leads-table small{display:block;margin-top:6px;color:#7a8491;font-size:12px;line-height:1.6}.collection-leads-table strong{font-weight:500}.collection-leads-table td{vertical-align:top}
@media(max-width:700px){.collection-leads{margin:0 20px 20px;padding:18px;align-items:flex-start;flex-direction:column}.collection-leads-actions{flex-direction:row;flex-wrap:wrap}.collection-leads h3{font-size:18px}}

/* Keep triage within the selected room and preserve unknown telemetry states. */
.twin-room-state.selected{outline:2px solid #3388e5;outline-offset:1px}
.twin-device-filters{padding:0 18px 15px}
.twin-state-filters{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,.8fr) minmax(0,1.55fr);gap:6px;margin-bottom:14px}
.twin-state-filters button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:40px;padding:7px 6px;border:1px solid #d6dfe9;border-radius:4px;background:#fff;color:#485b70;font-size:14px;line-height:1.45;white-space:nowrap;cursor:pointer}
.twin-state-filters button>span{font-variant-numeric:tabular-nums;color:#697b8d}
.twin-state-filters button.selected{background:#eaf3ff;border-color:#3c89df;color:#155ca8}
.twin-state-filters button.selected>span{color:#155ca8}
.twin-device-filter-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px}
.twin-device-filter-row label{min-width:0}
.twin-device-filter-row label>span{display:block;font-size:14px;color:#526577;margin-bottom:6px}
.twin-device-filter-row select{width:100%;max-width:none;min-width:0;min-height:44px;padding:9px 29px 9px 10px;appearance:none;border:1px solid #cbd6e1;border-radius:4px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23526577' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;color:#31465d;font-size:14px;line-height:1.4}
.twin-locate-anomaly{min-height:44px;padding:9px 11px;border:1px solid #2e78c9;border-radius:4px;background:#2268b7;color:#fff;font-size:14px;line-height:1.4;cursor:pointer;white-space:nowrap}
.twin-locate-anomaly>span{display:inline-block;margin-left:3px;font-variant-numeric:tabular-nums}
.twin-locate-anomaly:disabled{background:#eef2f6;border-color:#d6dfe8;color:#7c8895;cursor:default}
.twin-filter-summary{font-size:14px;line-height:1.65;color:#465e76;margin:12px 0 3px;font-variant-numeric:tabular-nums}
.twin-focus-status{font-size:14px;line-height:1.65;color:#69798a;margin:0;overflow-wrap:anywhere}
.twin-filter-empty{padding:14px 13px 19px;border:1px dashed #ccd6e2;border-radius:4px;background:#f7f9fc;margin:0 9px 10px}
.twin-filter-empty p{font-size:14px;line-height:1.8;color:#64778a;margin:0 0 13px}
.twin-filter-empty .button{min-height:40px;padding:8px 11px;font-size:14px}
.twin-state-filters button:focus-visible,.twin-device-filter-row select:focus-visible,.twin-locate-anomaly:focus-visible,.twin-room-state:focus-visible,.twin-device-row:focus-visible{outline:3px solid #267edc;outline-offset:2px}
@media(max-width:640px){.twin-device-filters{padding:0 14px 15px}.twin-device-filter-row select{font-size:16px}.twin-state-filters button{min-height:44px}.twin-locate-anomaly{min-height:46px}}
