:root{
  --bg:#fff;--panel:#fff;--panel2:#f5f5f5;--border:#dedede;
  --text:#191919;--muted:#606060;--dim:#6d6d6d;
  --blue:#344651;--cyan:#242424;--green:#286549;--amber:#916019;--red:#a63832;
  --radius:8px;--header-height:72px;--content-width:1440px;
  color-scheme:light;font-size:16px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:164px}
body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,"Noto Sans SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;border:0;background:none;color:inherit}
button:disabled{opacity:.45;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid currentColor;outline-offset:5px}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline;text-underline-offset:4px}
img{max-width:100%}
svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-weight:400}
h2{font-size:22px;line-height:1.4;letter-spacing:-.025em}
p{color:var(--muted)}
[hidden]{display:none!important}
button,.button,a,input,select{touch-action:manipulation}

/* A quiet, centred brand header remains available above every workspace. */
.topbar{height:var(--header-height);padding:0 6vw;display:flex;align-items:center;gap:24px;position:fixed;inset:0 0 auto;z-index:60;background:rgba(255,255,255,.98);color:#191919;box-shadow:0 1px 0 #00000012}
.brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;width:210px;padding:0;line-height:1}
.brand img{display:block;width:100%;height:auto;max-height:48px;object-fit:contain;filter:brightness(0)}
.brand:hover{text-decoration:none}
.top-spacer{flex:1}
.header-actions{margin-left:auto;display:flex;align-items:center;gap:22px;min-width:0}
.environment{display:flex;align-items:center;gap:7px;font-size:12px;letter-spacing:.03em;white-space:nowrap;color:inherit}
.environment i,.agent-dot{width:5px;height:5px;border-radius:50%;display:inline-block;background:currentColor}
.agent-dot{color:var(--green)}
.quiet-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0;font-size:13px;color:inherit;white-space:nowrap}
.quiet-btn svg{width:17px;height:17px}
.quiet-btn:hover{opacity:.7}
#clock{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.02em;white-space:nowrap;color:inherit}
.avatar{width:34px;height:34px;flex:0 0 34px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font-size:13px}

.eyebrow{font-size:12px;font-weight:500;letter-spacing:.18em;color:var(--muted);line-height:1.5;margin-bottom:14px}

.nav-rail{position:sticky;top:var(--header-height);z-index:45;display:flex;align-items:center;gap:34px;min-height:74px;padding:0 max(6vw,calc((100vw - var(--content-width))/2));background:#fff;border-bottom:1px solid var(--border)}
.nav-rail{margin-top:var(--header-height)}
.nav-item{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:73px;padding:0 2px;white-space:nowrap;color:#666;font-size:16px;transition:color .2s}
.nav-item svg{width:18px;height:18px}
.nav-item:hover,.nav-item.active{color:#191919}
.nav-item::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#191919;transform:scaleX(0);transform-origin:left;transition:transform .2s}
.nav-item.active::after,.nav-item:hover::after{transform:scaleX(1)}
.nav-item b{display:none;position:relative;font-size:11px;line-height:18px;min-width:18px;padding:0 4px;background:#191919;color:#fff;border-radius:20px;font-weight:400}
.nav-bottom{margin-left:auto;display:flex;align-items:center;gap:26px}
.nav-bottom .nav-item{font-size:14px}
.version{font-size:11px;letter-spacing:.1em;white-space:nowrap;color:var(--dim)}
main#app{width:min(var(--content-width),88%);margin:0 auto;padding:48px 0 28px;min-width:0}
#app,.map-panel{scroll-margin-top:150px}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:42px;margin-bottom:58px}
.page-heading>div:first-child{min-width:0}
.page-heading h1{font-size:clamp(42px,3.7vw,58px);line-height:1.2;font-weight:300;letter-spacing:-.05em;white-space:pre-line}
.page-heading p{font-size:16px;line-height:1.8;margin-top:19px;max-width:600px}
#page-description{white-space:pre-line}
.heading-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-bottom:4px;max-width:480px}
.city-chip{display:inline-flex;gap:7px;align-items:center;color:var(--muted);font-size:14px;margin-right:5px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:10px 19px;border:1px solid #3a3a3a;border-radius:4px;background:#fff;color:#1b1b1b;font-size:16px;line-height:1.4;font-weight:400;text-align:center;white-space:nowrap;transition:background .2s,color .2s,border-color .2s}
.button:hover{background:#ededed;border-color:#191919;text-decoration:none}
.button.primary{background:#191919;border-color:#191919;color:#fff}
.button.primary:hover{background:#404040;border-color:#404040}
.button.success{color:#245c43;border-color:#a9bcb0;background:#f2f7f3}
.button.success:hover{background:#e8f0eb}
.button.danger{color:var(--red);border-color:#cdb0ad}
.button svg{width:18px;height:18px}
.page{display:none;min-width:0}
.page.active{display:block}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:78px}
.metric{min-width:0;position:relative;padding:0 30px;border-left:1px solid var(--border);background:#fff}
.metric:first-child{padding-left:0;border-left:0}
.metric:last-child{padding-right:0}
.metric-name{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.6;color:#4d4d4d;margin-bottom:12px}
.metric-name svg{width:18px;height:18px;color:#777;margin-left:auto}
.metric>strong{display:block;font-size:58px;font-weight:300;line-height:1.2;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:#191919!important}
.metric>strong span{font-size:20px;letter-spacing:0;font-weight:400;color:#565656;margin-left:3px}
.metric-foot{display:flex;align-items:center;gap:8px;margin-top:17px;min-height:24px;font-size:12px;line-height:1.5;color:var(--dim);flex-wrap:wrap}
.metric-foot b{font-weight:400;color:#191919}
.tag{display:inline-flex;align-items:center;justify-content:center;max-width:100%;border:1px solid #d6d6d6;border-radius:3px;padding:2px 7px;background:#f6f6f6;color:#505050;font-size:12px;line-height:1.7;font-weight:400;white-space:nowrap}
.tag.blue{color:#3d4d57;border-color:#d5dce0;background:#f2f4f5}
.tag.amber{color:#815416;border-color:#daccb5;background:#fbf6ed}
.tag.red{color:#97362f;border-color:#dfc5c1;background:#fbf1ef}
.tag.green{color:#286146;border-color:#c2d7ca;background:#eef6f1}
.amber{color:var(--amber)!important}.green{color:var(--green)!important}.red{color:var(--red)!important}
.section-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:0 0 27px}
.section-intro h2{font-size:clamp(30px,2.5vw,40px);font-weight:300;line-height:1.3;letter-spacing:-.04em}
.section-intro p{font-size:15px;line-height:1.7;max-width:500px}
.section-intro .eyebrow{margin:0 0 14px;font-size:11px;line-height:1.5;letter-spacing:.18em}
.command-grid{display:grid;grid-template-columns:minmax(0,1fr)minmax(320px,.4fr);gap:28px;align-items:stretch}
.panel{min-width:0;background:#fff;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:27px 28px 23px}
.panel-heading>div{min-width:0}
.panel-heading h2{font-size:21px;font-weight:400;letter-spacing:-.025em}
.panel-heading p{font-size:13px;line-height:1.7;margin-top:6px}
.segmented{display:flex;padding:3px;flex-shrink:0;border:1px solid #bdbdbd;border-radius:4px;background:#f5f5f5}
.segmented button{min-height:32px;padding:4px 14px;border-radius:2px;color:#5d5d5d;font-size:13px}
.segmented button.selected{color:#fff;background:#191919}

/* The actual 3D viewport remains graphite with consistently bright map labels. */
.map-panel{--text:#fff;--muted:#c3c3c3;--dim:#aaa;--border:#505050;--blue:#e6e6e6;--cyan:#fff;--amber:#e1b268;--green:#a4c5b0;--red:#e5a09a;position:relative;display:flex;flex-direction:column;height:640px;border-color:#262626;background:radial-gradient(ellipse at 50% 65%,#323335,#191a1c 78%);color:#fff}
.map-panel>.panel-heading{padding-bottom:12px;z-index:3}
.map-panel .panel-heading h2{color:#fff}
.map-panel .panel-heading p{color:#bcbcbc}
.map-panel .segmented{border-color:#5e5e5e;background:#252628}
.map-panel .segmented button{color:#d7d7d7}
.map-panel .segmented button.selected{background:#eee;color:#191919}
.scene-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:0 23px;min-height:48px;z-index:3}
.scene-breadcrumb{display:flex;align-items:center;gap:9px;min-width:0;color:#c9c9c9;font-size:13px;line-height:1.5}
.scene-breadcrumb strong{color:#fff;font-weight:400}
.scene-breadcrumb .text-btn{color:#eee;font-size:13px}
.crumb-divider{color:#909090}
.scene-tools{display:flex;align-items:center;gap:3px;flex-shrink:0}
.icon-btn{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;padding:0;border-radius:4px;color:#555;transition:background .2s,color .2s}
.icon-btn:hover,.icon-btn.active{color:#191919;background:#ebebeb}
.icon-btn svg{width:19px;height:19px}
.map-panel .icon-btn{color:#ddd}
.map-panel .icon-btn:hover,.map-panel .icon-btn.active{color:#fff;background:#4a4a4a}
#scene-container{position:relative;flex:1;min-height:0;overflow:hidden;isolation:isolate}
#scene-container canvas{display:block;width:100%;height:100%;touch-action:none}
#scene-container>svg{display:block;width:100%;height:100%;touch-action:none;stroke:none;fill:initial;stroke-width:0}
#scene-labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}
.map-label{position:absolute;display:flex;flex-direction:column;gap:1px;transform:translate(-50%,-100%);pointer-events:auto;min-width:64px;padding:5px 9px;border:1px solid #a9a9a978;border-radius:4px;background:#202123ed;color:#fff;backdrop-filter:blur(5px);font-size:13px;line-height:1.5;text-align:center;white-space:nowrap;box-shadow:0 3px 12px #0003;cursor:pointer}
.map-label b{font-size:15px;color:#fff;font-weight:500;font-variant-numeric:tabular-nums}
.map-label:hover,.map-label.selected{color:#191919;background:#f7f7f7;border-color:#fff;z-index:6}
.map-label:hover b,.map-label.selected b{color:#191919}
.room-label{pointer-events:none;min-width:auto;padding:3px 7px;background:#222325e8;border-color:#96969675;font-size:12px;opacity:.85}
.device-label{display:flex;align-items:center;justify-content:center;pointer-events:auto;min-width:24px;width:24px;height:24px;padding:0;border:1px solid #fff;border-radius:50%;color:#fff;background:#292b2de8;line-height:1;font-size:14px;box-shadow:0 0 0 4px #ffffff12}
.device-label.alert{color:#ffdb9e;background:#57432ee8;border-color:#efc886}
.label-leaders{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.label-leaders line{stroke:#d8d8d8;stroke-width:1;stroke-opacity:.6;fill:none}
.scene-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;min-height:46px;padding:8px 24px;border-top:1px solid #ffffff1f;background:#1c1d1fe6;color:#c8c8c8;font-size:12px;line-height:1.5;z-index:4}
#scene-legend{display:flex;gap:17px;flex-wrap:wrap}
#scene-legend>span{display:flex;align-items:center;gap:7px}
.legend-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#f0f0f0;border:1px solid #bbb}
.legend-dot.blue{background:#8ea3b1;border-style:dashed;border-radius:1px;transform:rotate(45deg)}.legend-dot.amber{background:#d5a86a;border-color:#d5a86a}
#scene-footnote{text-align:right}
.scene-orientation{position:absolute;right:20px;bottom:20px;display:flex;flex-direction:column;align-items:center;gap:5px;color:#d2d2d2;font-size:12px;pointer-events:none}
.scene-orientation svg{fill:#b9b9b9;stroke:#e6e6e6;width:25px;height:25px}
.apartment-actions{position:absolute;left:20px;bottom:62px;display:flex;align-items:center;gap:9px;z-index:5}
.apartment-actions .button{min-height:39px;padding:7px 11px;border-color:#969696;background:#27282af2;color:#fff;font-size:13px}
.apartment-actions .button:hover{background:#454545}
.apartment-actions>span{font-size:12px;line-height:1.4;color:#ccc;margin-left:6px}
.scene-detail{position:absolute;left:23px;top:14px;width:244px;padding:19px;border:1px solid #777;border-radius:6px;background:#222325f5;color:#fff;backdrop-filter:blur(12px);z-index:7}
.scene-detail h3{font-size:16px;padding-right:16px}
.scene-detail p{font-size:13px;line-height:1.7;margin:8px 0 16px;color:#c8c8c8}
.scene-detail .button{width:100%;min-height:40px;padding:8px;font-size:14px;background:#f6f6f6;color:#191919;border-color:#f6f6f6}
.scene-detail .button:hover{background:#dedede}
.scene-detail .close-scene-detail{position:absolute;right:6px;top:5px;width:32px;height:32px}
.scene-detail .district-count{font-size:31px;font-weight:300;line-height:1.4;margin:11px 0;color:#fff}
.scene-detail .district-count small{font-size:12px;color:#c2c2c2}
.scene-detail .tag{margin-top:12px}
#scene-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:14px;z-index:5;background:#222325;color:#ddd;font-size:16px}
.loader{width:23px;height:23px;border:2px solid #6b6b6b;border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.map-special{position:absolute;left:20px;bottom:18px;z-index:4;display:flex;align-items:center;gap:8px;min-height:35px;padding:5px 10px;border:1px solid #858585;border-radius:4px;background:#292a2ce8;color:#ececec;font-size:12px}
.map-special b{font-weight:500;color:#fff}
.map-special small{font-size:12px;color:#c6c6c6}
.render-mode-note{position:absolute;right:15px;top:5px;font-size:12px;color:#c6c6c6;pointer-events:none}
.map-panel:fullscreen{width:100vw;height:100vh;border-radius:0;background:radial-gradient(ellipse at 50% 65%,#333436,#17181a)}
.loading-error{padding:30px;text-align:center;font-size:16px;color:#d7d7d7}
.loading-error p{color:inherit}
.loading-error button{margin-top:20px}

/* Events, operational records and employee cards retain their full data hierarchy. */
.event-panel{display:flex;flex-direction:column;height:640px}
.event-panel .panel-heading{padding:27px 24px 21px}
.number-badge{font-size:12px;line-height:1.5;vertical-align:middle;margin-left:5px;padding:2px 6px;border:1px solid #ccc;border-radius:3px;color:#5e5e5e;font-weight:400}
.event-filters{display:flex;gap:23px;padding:0 24px 13px;border-bottom:1px solid var(--border)}
.event-filters button{position:relative;padding:6px 0;font-size:14px;color:#6a6a6a;min-height:36px;white-space:nowrap}
.event-filters button.selected{color:#191919}
.event-filters button.selected::after{content:"";position:absolute;left:0;right:0;bottom:-14px;height:2px;background:#191919}
#event-list{flex:1;min-height:0;overflow:auto}
.event-item{display:block;width:100%;padding:21px 24px;border-bottom:1px solid #e8e8e8;text-align:left;transition:background .2s}
.event-item:last-child{border-bottom:0}
.event-item:hover{background:#f6f6f6}
.event-item-top{display:flex;align-items:center;gap:9px;margin-bottom:8px}
.event-item-top strong{font-size:16px;font-weight:400;line-height:1.5}
.event-item-meta{display:flex;justify-content:space-between;gap:12px;padding-left:40px;font-size:12px;line-height:1.6;color:#666}
.event-item-meta>span:last-child{white-space:nowrap}
.event-item-bottom{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:12px;color:#686868}
.event-item-bottom svg{width:15px;height:15px;color:#656565}
.priority{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:31px;padding:1px 5px;border:1px solid #dbc0bc;border-radius:3px;background:#fbf1ef;color:#9d3b34;font-size:12px!important;line-height:1.7;font-weight:400}
.priority.p2{color:#8b601f;border-color:#deceb4;background:#faf5ec}
.priority.p3{color:#4b5962;border-color:#cfd8dd;background:#f2f5f6}
.event-panel-bottom{display:flex;align-items:center;gap:8px;padding:15px 24px;border-top:1px solid var(--border);font-size:12px;color:#6b6b6b}
.event-panel-bottom svg{width:15px;height:15px}
.lower-grid{display:grid;grid-template-columns:minmax(0,1fr)minmax(0,1fr);gap:28px;margin-top:28px}
.text-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:2px 0;color:#2a2a2a;font-size:14px;line-height:1.5;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px}
.text-btn:hover{color:#6b6b6b}
.model-table{padding:0 28px 20px}
.model-row{display:grid;grid-template-columns:minmax(110px,1fr)100px 67px 78px;align-items:center;gap:13px;padding:20px 0;border-top:1px solid #e5e5e5;font-size:16px}
.model-row>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar-track{height:3px;border-radius:2px;background:#e6e6e6;overflow:hidden}
.bar-track>i{display:block;height:100%;border-radius:2px;background:#555}
.bar-track.warn>i{background:#a67c40}
.model-row .percent{text-align:right;font-size:15px;font-variant-numeric:tabular-nums}
.model-row .count{text-align:right;color:#686868;font-size:12px;white-space:nowrap}
.activity-panel .panel-heading{padding-bottom:23px}
#activity-feed{padding:0 28px 14px;max-height:360px;overflow:auto}
.activity{display:flex;gap:15px;padding:20px 0;border-top:1px solid #e5e5e5}
.activity-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;border-radius:5px;background:#f0f0f0;color:#333}
.activity-icon svg{width:20px;height:20px}
.activity-main{flex:1;min-width:0}
.activity-head{display:flex;justify-content:space-between;gap:14px;font-size:16px;line-height:1.5}
.activity-head b{font-weight:400}
.activity-head time{flex-shrink:0;padding-top:2px;color:#777;font-size:12px}
.activity p{margin-top:6px;font-size:13px;line-height:1.7}
.asset-panel{padding-bottom:10px}
.asset-toolbar{display:flex;align-items:center;gap:14px;padding:28px}
.search-field{display:flex;align-items:center;gap:11px;flex:1;min-width:150px;max-width:440px;min-height:48px;padding:10px 14px;border:1px solid #bcbcbc;border-radius:4px;background:#fff;color:#555}
.search-field svg{width:19px;height:19px}
.search-field input{width:100%;min-width:0;padding:0;border:none;outline:none;background:transparent;color:#191919;font-size:16px}
.search-field input::placeholder{color:#757575}
.search-field:focus-within{border-color:#191919;box-shadow:0 0 0 1px #191919}
select{appearance:none;min-height:48px;padding:10px 38px 10px 14px;border:1px solid #bcbcbc;border-radius:4px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23444444' stroke-width='1.5'/%3E%3C/svg%3E") right 11px center/17px no-repeat;color:#333;font-size:16px}
.dataset-banner{display:flex;align-items:center;gap:12px;padding:17px 20px;margin:0 0 26px;border:1px solid #e1e1e1;border-radius:5px;background:#f7f7f7;color:#606060;font-size:13px;line-height:1.8}
.asset-panel .dataset-banner{margin:0 28px 14px}
.property-row{display:grid;grid-template-columns:minmax(190px,1.25fr)minmax(180px,1fr)155px 150px;align-items:center;gap:28px;padding:29px 28px;border-top:1px solid var(--border)}
.property-row>*{min-width:0}
.property-name strong{display:block;font-size:19px;line-height:1.5;font-weight:400;overflow-wrap:anywhere}
.property-name span{display:block;margin-top:5px;font-size:13px;color:#6a6a6a}
.property-meta{font-size:16px;color:#333}
.property-meta p{font-size:13px;margin-top:5px;line-height:1.6}
.property-status{font-size:12px;color:#6b6b6b}
.property-actions{display:flex;justify-content:flex-end;gap:8px}
.property-actions .button{font-size:15px;padding:10px 16px}
.spaced{margin-top:32px}
.table-wrap{width:100%;overflow:auto;overscroll-behavior-x:contain}
table{width:100%;border-collapse:collapse;font-size:16px;white-space:nowrap;font-variant-numeric:tabular-nums}
th{padding:17px 28px;border-bottom:1px solid #d7d7d7;background:#f5f5f5;color:#616161;font-size:13px;font-weight:400;text-align:left;letter-spacing:.01em}
td{padding:20px 28px;border-bottom:1px solid #e4e4e4;color:#272727}
tr:last-child td{border-bottom:0}
.agent-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:25px}
.agent-card{min-width:0;padding:31px 27px;border:1px solid var(--border);border-radius:var(--radius);background:#fff}
.agent-symbol{display:flex;align-items:center;justify-content:center;width:55px;height:55px;margin-bottom:26px;border:1px solid #dedede;border-radius:5px;background:#f4f4f4;color:#282828}
.agent-symbol svg{width:27px;height:27px}
.agent-card .eyebrow{font-size:12px;letter-spacing:.14em}
.agent-card h2{font-size:22px;line-height:1.45;font-weight:400;margin:10px 0 14px}
.agent-card p{font-size:16px;line-height:1.8;min-height:116px}
.agent-card dl{font-size:15px;line-height:1.7;margin:26px 0 0;padding-top:23px;border-top:1px solid #e6e6e6}
.agent-card dt{color:#777;font-size:12px}
.agent-card dd{margin:5px 0 20px;color:#333}
.agent-card .tag{margin-top:4px}
.knowledge-flow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:36px;padding:9px 32px 35px}
.knowledge-flow b{display:block;margin-bottom:18px;font-size:43px;font-weight:300;line-height:1.2;letter-spacing:-.05em;color:#888}
.knowledge-flow strong{font-size:18px;font-weight:400}
.knowledge-flow p{font-size:15px;line-height:1.8;margin-top:10px}
.knowledge-example{display:flex;align-items:center;gap:22px;padding:27px 32px;border-top:1px solid var(--border);background:#fafafa}
.knowledge-example>svg{width:30px;height:30px;color:#333}
.knowledge-example>div{flex:1;min-width:0}
.knowledge-example strong{font-size:17px;font-weight:400}
.knowledge-example p{font-size:15px;line-height:1.8;margin-top:7px}
.knowledge-example .button{flex-shrink:0}
.app-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:68px;padding:30px 0 8px;border-top:1px solid var(--border);font-size:12px;line-height:1.7;color:#6b6b6b}
.app-footer>span:first-child{color:#282828;white-space:nowrap;letter-spacing:.04em}
.footer-brand{display:inline-flex;align-items:center;flex:0 0 180px;width:180px;max-width:180px;line-height:1}
.footer-brand img{display:block;width:180px;max-width:100%;height:auto;filter:brightness(0)}
.app-footer .text-btn{font-size:12px;white-space:nowrap}
.empty-state{padding:72px 24px;text-align:center}
.empty-state>svg{width:38px;height:38px;color:#777}
.empty-state h3{font-size:23px;font-weight:400;line-height:1.4;margin:22px 0 12px}
.empty-state p{font-size:16px;line-height:1.8;margin-bottom:25px}

/* White detail surfaces, including all dynamic modal and diagnostic content. */
.drawer-backdrop{position:fixed;inset:0;z-index:99;background:#0006;backdrop-filter:blur(2px)}
.drawer{position:fixed;inset:0 0 0 auto;z-index:100;display:flex;flex-direction:column;width:min(600px,100vw);border-left:1px solid #d9d9d9;background:#fff;color:#191919;box-shadow:-12px 0 60px #0002;animation:slide-in .25s ease-out}
@keyframes slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
.drawer-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:29px 32px;border-bottom:1px solid var(--border)}
.drawer-top h2{font-size:27px;font-weight:300;line-height:1.35}
.drawer-top .eyebrow{margin-bottom:8px;font-size:11px}
.drawer-top .icon-btn{border:1px solid #c8c8c8}
#drawer-body{flex:1;min-height:0;padding:29px 32px 36px;overflow-y:auto}
.event-summary-title{display:flex;align-items:center;gap:12px;font-size:21px;line-height:1.5}
.event-summary-title strong{font-weight:400}
.event-summary>p{font-size:13px;line-height:1.7;margin-top:11px;overflow-wrap:anywhere}
.event-summary .tag{margin-top:17px}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px;margin:27px 0 0;padding:23px;border:1px solid #e0e0e0;border-radius:5px;background:#f7f7f7;font-size:15px;line-height:1.7}
.detail-grid dt{font-size:12px;color:#6a6a6a;margin-bottom:5px}
.detail-grid dd{margin:0;color:#282828;overflow-wrap:anywhere}
.drawer-section{margin-top:33px}
.drawer-section h3{font-size:18px;font-weight:400;margin-bottom:15px}
.evidence-row{display:flex;justify-content:space-between;gap:22px;padding:13px 0;border-bottom:1px solid #e4e4e4;font-size:14px;line-height:1.7;color:#666}
.evidence-row>span{flex:0 0 auto;max-width:45%}
.evidence-row strong{font-weight:400;color:#252525;text-align:right;overflow-wrap:anywhere}
.diagnostic-steps{padding:8px 0 0}
.diag-step{position:relative;display:flex;align-items:flex-start;gap:15px;padding:0 0 27px}
.diag-step::before{content:"";position:absolute;left:12px;top:27px;bottom:0;width:1px;background:#d0d0d0}
.diag-step:last-child::before{display:none}
.diag-node{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;flex-shrink:0;width:25px;height:25px;border:1px solid #bdbdbd;border-radius:50%;background:#f5f5f5;color:#666;font-size:12px;line-height:1}
.diag-step.complete .diag-node{border-color:#7f9f8b;background:#edf4ef;color:#286549}
.diag-step.current .diag-node{border-color:#191919;background:#191919;color:#fff;box-shadow:0 0 0 4px #1919190d}
.diag-step strong{font-size:16px;font-weight:400;color:#252525}
.diag-step p{font-size:13px;line-height:1.8;margin-top:6px}
.diagnostic-conclusion{padding:20px;border:1px solid #cfcfcf;border-radius:5px;background:#f7f7f7;color:#4f4f4f;font-size:15px;line-height:1.85;margin-top:7px}
.diagnostic-conclusion strong{display:block;color:#1d1d1d;font-weight:500;margin-bottom:8px}
.drawer-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:31px}
.drawer-actions .button{flex:1;min-width:190px;padding:13px 15px;white-space:normal}
.small-note{font-size:12px;line-height:1.8;color:#707070;margin-top:14px}
.ticket{display:grid;grid-template-columns:minmax(0,1fr)auto;gap:10px 28px;padding:29px 28px;border-top:1px solid var(--border)}
.ticket-top{display:flex;align-items:center;gap:14px;grid-column:1/-1;flex-wrap:wrap}
.ticket-top h3{flex:1;min-width:180px;font-size:20px;font-weight:400;line-height:1.4}
.ticket p{grid-column:1/-1;font-size:16px;line-height:1.7;margin:2px 0 0}
.ticket-details{display:flex;align-items:center;gap:10px 25px;flex-wrap:wrap;font-size:12px;color:#696969}
.ticket>.button{align-self:center;min-height:43px;font-size:14px}
dialog{width:min(1040px,calc(100vw - 64px));max-height:88vh;max-height:88svh;margin:auto;padding:0;border:0;border-radius:8px;background:#fff;color:#191919;box-shadow:0 24px 100px #0004;overflow:auto}
dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
.modal-top{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:24px;padding:25px 32px;border-bottom:1px solid var(--border);background:#fff}
.modal-top h2{font-size:25px;font-weight:300;line-height:1.4}
.modal-top .icon-btn{border:1px solid #ccc}
#modal-body{padding:30px 32px 34px;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
#modal-body p{font-size:16px;line-height:1.85;margin:12px 0 20px}
#modal-body h3{font-size:20px;font-weight:400;line-height:1.4;margin:28px 0 12px;color:#222}
#modal-body ul,#modal-body ol{padding-left:24px;color:#555;font-size:16px;line-height:1.9}
#modal-body li{margin-bottom:9px}
#modal-body code{padding:3px 5px;border-radius:3px;background:#f1f1f1;color:#292929;font-size:14px;overflow-wrap:anywhere}
#modal-body table{white-space:normal;table-layout:fixed;line-height:1.7;margin:20px 0}
#modal-body td{padding:15px 20px;overflow-wrap:anywhere}
#modal-body td:first-child{width:26%;color:#666}
#modal-body a:not(.button){text-decoration:underline;text-underline-offset:4px}
.source-block{padding:22px 24px;border:1px solid #dedede;border-radius:5px;background:#fff;margin-bottom:18px}
.source-block h3{margin:0!important}
.source-block p{font-size:16px!important;margin:12px 0!important}
.source-block a{font-size:14px;overflow-wrap:anywhere}
.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px}
.reference-grid figure{margin:0;min-width:0}
.reference-grid img{display:block;width:100%;border:1px solid #dedede;border-radius:5px;background:#fff}
.reference-grid figcaption{font-size:13px;line-height:1.7;color:#666;margin-top:11px}
.source-state{display:flex;align-items:center;gap:11px;flex-wrap:wrap;margin-bottom:23px;font-size:13px;line-height:1.7;color:#666}
.view-menu{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:23px 0 4px}
.view-menu .button{font-size:15px}
#toast{position:fixed;left:50%;bottom:28px;z-index:200;transform:translate(-50%,15px);max-width:calc(100vw - 40px);padding:15px 23px;border:1px solid #3c3c3c;border-radius:5px;background:#242424;color:#fff;box-shadow:0 8px 24px #0002;font-size:15px;line-height:1.6;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}
#toast.visible{opacity:1;transform:translate(-50%,0)}
body.drawer-open{overflow:hidden}
.dim{color:var(--dim)}

@media(min-width:1700px){
  .topbar{padding-inline:max(6vw,calc((100vw - 1680px)/2))}
  .command-grid{grid-template-columns:minmax(0,1fr)370px;gap:32px}
  .map-panel,.event-panel{height:690px}
  .event-item{padding-block:24px}
}
@media(max-width:1280px){
  #clock{display:none}
  .header-actions{gap:18px}
  .topbar{gap:18px}
  .page-heading{align-items:flex-start;gap:28px}
  .heading-actions{max-width:390px;padding-top:24px}
  .heading-actions .city-chip{width:100%;justify-content:flex-end;margin-right:0}
  .metrics{margin-bottom:62px}
  .metric{padding:0 22px}
  .metric>strong{font-size:52px}
  .metric-name{font-size:14px}
  .command-grid{grid-template-columns:minmax(0,1fr)310px;gap:24px}
  .panel-heading{padding:24px 23px 21px}
  .event-panel .panel-heading{padding:24px 21px 20px}
  .event-filters{padding-inline:21px;gap:20px}
  .event-item{padding:21px}
  .scene-toolbar{padding-inline:18px}
  .scene-tools{gap:0}
  .scene-tools .icon-btn{width:34px;height:38px}
  .scene-bottom{padding-inline:18px;gap:12px}
  #scene-footnote{max-width:165px}
  .apartment-actions>span{display:none}
  .model-table{padding:0 23px 18px}
  .model-row{grid-template-columns:minmax(100px,1fr)70px 60px 75px;gap:10px;font-size:15px}
  #activity-feed{padding-inline:23px}
  .activity-head{font-size:15px;flex-wrap:wrap;gap:4px 12px}
  .activity-head time{padding-top:0}
  .asset-toolbar{flex-wrap:wrap;padding:23px}
  .asset-toolbar .search-field{max-width:none}
  .asset-panel .dataset-banner{margin-inline:23px}
  .property-row{grid-template-columns:minmax(170px,1.1fr)minmax(165px,1fr)140px 130px;gap:20px;padding:25px 23px}
  .property-actions .button{padding-inline:13px}
  .agent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
  .agent-card{padding:30px}
  .agent-card p{min-height:58px}
  .knowledge-flow{gap:26px}
}
@media(max-width:1050px){
  .environment{display:none}
  .brand{width:195px}
  .nav-rail{gap:27px}
  .nav-bottom{gap:20px}
  .nav-bottom .version{display:none}
  .page-heading{display:block;margin-bottom:48px}
  .heading-actions{justify-content:flex-start;max-width:none;padding-top:26px}
  .heading-actions .city-chip{width:auto;justify-content:flex-start;margin-right:8px}
  .metrics{margin-bottom:58px}
  .metric{padding-inline:18px}
  .metric-name{min-height:44px;align-items:flex-start;gap:7px}
  .metric-name svg{margin-top:3px}
  .metric>strong{font-size:48px}
  .section-intro{display:block}
  .section-intro p{margin-top:13px;max-width:none}
  .command-grid{grid-template-columns:1fr;gap:26px}
  .map-panel{height:620px}
  .event-panel{height:auto}
  .event-panel #event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
  .event-item{padding:24px;border-bottom:1px solid #e4e4e4}
  .event-item:nth-child(odd){border-right:1px solid #e4e4e4}
  .event-item:last-child{border-bottom:1px solid #e4e4e4}
  .event-panel-bottom{padding:14px 24px;border-top:0}
  .lower-grid{grid-template-columns:1fr;gap:26px;margin-top:26px}
  .model-row{grid-template-columns:minmax(150px,1fr)minmax(80px,180px)80px 90px;font-size:16px;padding-block:21px}
  .activity-head{font-size:16px;flex-wrap:nowrap}
  .scene-bottom #scene-footnote{max-width:none}
  .scene-tools .icon-btn{width:40px;height:40px}
  .property-row{grid-template-columns:minmax(180px,1fr)minmax(190px,1fr);gap:18px 24px}
  .property-status{grid-column:1}.property-actions{grid-column:2;justify-content:flex-end}
  .knowledge-flow{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 38px}
  .app-footer{align-items:flex-start;gap:20px}
  .app-footer>span:nth-child(2){max-width:55%}
}
@media(max-width:760px){
  main#app{width:88%;padding-top:40px}
  .topbar{gap:14px}
  .brand{width:185px}
  .header-actions{gap:14px}
  .nav-rail{gap:24px;padding-inline:6vw}
  .nav-item{font-size:15px}
  .nav-item svg{display:none}
  .nav-bottom .nav-item svg{display:block}
  .nav-bottom{gap:0}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:35px;margin-bottom:56px}
  .metric{padding:0 24px}
  .metric:nth-child(odd){border-left:0;padding-left:0}
  .metric:nth-child(even){padding-right:0}
  .metric-name{min-height:0;align-items:center;font-size:15px;margin-bottom:12px}
  .metric-name svg{margin-top:0}
  .metric>strong{font-size:52px}
  .metric-foot{margin-top:12px}
  .page-heading h1{font-size:44px}
  .page-heading p{font-size:16px}
  .section-intro h2{font-size:32px}
  .map-panel{height:570px}
  .panel-heading h2{font-size:20px}
  .event-panel #event-list{display:block}
  .event-item:nth-child(odd){border-right:0}
  .event-item{padding:22px 24px}
  .asset-toolbar{gap:12px}
  .asset-toolbar .search-field{flex-basis:100%}
  .asset-toolbar .button{font-size:14px}
  .asset-toolbar select{flex:1;min-width:130px}
  .property-row{gap:17px 20px}
  .agent-card{padding:27px}
  .agent-card p{min-height:145px}
  .knowledge-example{align-items:flex-start;gap:18px;flex-wrap:wrap}
  .knowledge-example>.button{margin-left:48px}
  .app-footer{flex-wrap:wrap;margin-top:48px}
  .app-footer>span:first-child{flex-basis:100%}
  .footer-brand{flex-basis:100%;width:100%;max-width:none}
  .app-footer>span:nth-child(2){max-width:70%}
  .ticket{grid-template-columns:1fr;gap:13px;padding:26px 23px}
  .ticket>.button{justify-self:start}
  .ticket-top h3{font-size:18px}
  dialog{width:calc(100vw - 40px)}
  .modal-top{padding:23px 26px}
  .modal-top h2{font-size:22px}
  #modal-body{padding:25px 26px}
  .reference-grid{gap:22px 18px}
}
@media(max-width:640px){
  :root{--header-height:64px}
  html{scroll-padding-top:118px}
  .topbar{padding:0 20px;gap:12px}
  .brand{width:174px}
  .brand img{max-height:39px}
  .header-actions{gap:0}
  .topbar #clock,.topbar .environment,.topbar #source-btn{display:none}
  .avatar{width:32px;height:32px;flex-basis:32px;font-size:12px}
  .nav-rail{min-height:44px;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;padding-inline:16px;scrollbar-width:thin}
  .nav-item,.nav-bottom .nav-item{flex:none;min-height:44px;padding:0 2px;font-size:14px}
  .nav-item svg,.nav-bottom .nav-item svg,.nav-bottom .version{display:none}
  .nav-item::after{bottom:0}
  .nav-item.active{font-weight:500}
  .nav-bottom{flex:none;margin:0}
  main#app{width:calc(100% - 40px);padding:24px 0 22px}
  .page-heading{margin-bottom:38px}
  .page-heading .eyebrow{font-size:11px;margin-bottom:14px;letter-spacing:.14em}
  .page-heading h1{font-size:36px;line-height:1.25;font-weight:300}
  .page-heading p{font-size:15px;line-height:1.8;margin-top:17px}
  .heading-actions{gap:10px;padding-top:23px;justify-content:flex-start}
  .heading-actions .city-chip{display:none}
  .heading-actions .button{font-size:14px;min-height:44px;padding:10px 13px;flex:1;white-space:normal}
  .heading-actions .button svg{width:17px;height:17px}
  .metrics{row-gap:31px;margin-bottom:47px}
  .metric{padding-inline:17px}
  .metric-name{font-size:13px;gap:6px;margin-bottom:11px}
  .metric-name svg{width:16px;height:16px}
  .metric>strong{font-size:44px;line-height:1.15}
  .metric>strong span{font-size:17px}
  .metric-foot{margin-top:13px;gap:5px;font-size:12px;min-height:39px;align-content:flex-start}
  .metric-foot .tag{font-size:10px;padding:1px 5px}
  .section-intro{margin-bottom:22px}
  .section-intro h2{font-size:29px;line-height:1.35}
  .section-intro p{font-size:14px;line-height:1.8;margin-top:12px}
  .command-grid{gap:20px}
  .map-panel{height:550px}
  .panel-heading,.event-panel .panel-heading{padding:22px 20px 18px;gap:12px}
  .panel-heading h2{font-size:20px;line-height:1.5}
  .panel-heading p{font-size:12px;line-height:1.7}
  .segmented{padding:2px}
  .segmented button{font-size:12px;min-height:31px;padding:4px 10px}
  .scene-toolbar{padding:0 13px;gap:6px;min-height:44px;flex-wrap:wrap}
  .scene-breadcrumb{font-size:12px;gap:5px}
  .scene-breadcrumb .text-btn{font-size:12px}
  .scene-tools{gap:0;margin-left:auto}
  .scene-tools .icon-btn{width:32px;height:36px}
  .scene-tools .icon-btn svg{width:17px;height:17px}
  .map-label{padding:4px 7px;min-width:56px;font-size:12px}
  .map-label b{font-size:14px}
  .room-label{font-size:11px;min-width:0;padding:3px 5px}
  .device-label{width:24px;height:24px;min-width:24px;padding:0;font-size:14px}
  .scene-bottom{display:flex;align-items:flex-start;justify-content:center;flex-direction:column;gap:3px;min-height:58px;padding:9px 14px;font-size:11px;line-height:1.5}
  #scene-legend{gap:13px}
  #scene-footnote{text-align:left;font-size:11px}
  .scene-orientation{right:13px;bottom:20px;font-size:11px}
  .scene-orientation svg{width:23px;height:23px}
  .scene-detail{left:13px;top:12px;width:min(238px,calc(100% - 26px));padding:17px}
  .scene-detail h3{font-size:16px}
  .scene-detail p{font-size:12px}
  .apartment-actions{left:12px;bottom:70px;gap:7px}
  .apartment-actions .button{min-height:38px;padding:7px 9px;font-size:12px}
  .apartment-actions .button svg{width:16px;height:16px}
  .map-special{left:13px;bottom:17px;gap:6px;min-height:33px;padding:5px 7px;font-size:11px}
  .map-special small{font-size:10px}
  .render-mode-note{font-size:10px;right:13px;top:4px}
  .event-filters{padding:0 20px 13px;gap:25px}
  .event-filters button{font-size:14px}
  .event-item{padding:21px 20px}
  .event-item-top strong{font-size:16px}
  .event-item-meta{font-size:12px;padding-left:40px}
  .event-item-bottom{font-size:12px;margin-top:11px}
  .event-panel-bottom{padding:15px 20px}
  .lower-grid{gap:20px;margin-top:20px}
  .model-table{padding:0 20px 15px}
  .model-row{grid-template-columns:minmax(0,1fr)60px 76px;gap:10px;padding:19px 0;font-size:15px}
  .model-row .bar-track{display:none}
  .model-row .percent{font-size:14px}
  .model-row .count{font-size:12px}
  #activity-feed{padding:0 20px 12px;max-height:400px}
  .activity{gap:12px;padding:20px 0}
  .activity-head{flex-wrap:wrap;gap:4px 12px;font-size:15px}
  .activity-head time{font-size:11px}
  .activity p{font-size:13px}
  .activity-icon{width:32px;height:32px}
  .dataset-banner{align-items:flex-start;flex-direction:column;gap:9px;padding:16px 17px;margin-bottom:20px;font-size:13px;line-height:1.8}
  .asset-toolbar{padding:20px;gap:10px}
  .asset-toolbar select{min-width:100%;width:100%;font-size:16px}
  .asset-toolbar .button{flex:1;font-size:13px;padding-inline:10px;white-space:normal}
  .asset-panel .dataset-banner{margin:0 20px 15px}
  .property-row{display:grid;grid-template-columns:minmax(0,1fr)auto;gap:15px 15px;padding:23px 20px}
  .property-name,.property-meta{grid-column:1/-1}
  .property-name strong{font-size:19px}
  .property-meta{font-size:16px}
  .property-name span,.property-meta p{font-size:13px}
  .property-status{grid-column:1;font-size:11px}
  .property-status .tag{font-size:11px}
  .property-actions{grid-column:2}
  .property-actions .button{min-height:43px;font-size:14px;padding:9px 13px}
  .spaced{margin-top:22px}
  th{padding:15px 20px;font-size:12px}
  td{padding:18px 20px;font-size:15px}
  .agent-grid{grid-template-columns:1fr;gap:20px}
  .agent-card{padding:28px 25px}
  .agent-symbol{margin-bottom:23px}
  .agent-card p{min-height:0;font-size:16px}
  .agent-card dl{margin-top:24px;padding-top:20px}
  .agent-card h2{font-size:23px}
  .agent-card dd{font-size:15px}
  .knowledge-flow{gap:28px 24px;padding:8px 24px 28px}
  .knowledge-flow b{font-size:36px;margin-bottom:13px}
  .knowledge-flow strong{font-size:17px}
  .knowledge-flow p{font-size:14px;line-height:1.8;margin-top:8px}
  .knowledge-example{display:block;padding:23px 24px}
  .knowledge-example>svg{display:none}
  .knowledge-example strong{font-size:17px}
  .knowledge-example p{font-size:14px}
  .knowledge-example>.button{margin:20px 0 0;font-size:15px}
  .app-footer{gap:15px;padding-top:25px;margin-top:42px;font-size:12px}
  .app-footer>span:nth-child(2){max-width:none;flex:1;min-width:180px}
  .app-footer .text-btn{font-size:12px}
  .drawer-top{padding:24px 22px}
  .drawer-top h2{font-size:25px}
  #drawer-body{padding:24px 22px 30px}
  .event-summary-title{font-size:19px;gap:10px}
  .event-summary>p{font-size:12px}
  .detail-grid{padding:19px;gap:19px 17px;font-size:14px}
  .detail-grid dt{font-size:11px}
  .drawer-section{margin-top:30px}
  .drawer-section h3{font-size:18px}
  .evidence-row{font-size:13px;gap:15px}
  .diag-step{gap:14px}
  .diag-step strong{font-size:16px}
  .diag-step p{font-size:13px}
  .diagnostic-conclusion{padding:18px;font-size:14px}
  .drawer-actions .button{min-width:0;flex-basis:100%;font-size:15px}
  .ticket{padding:24px 20px}
  .ticket-top{gap:11px}
  .ticket-top h3{min-width:100%;flex-basis:100%;font-size:19px;order:-1}
  .ticket p{font-size:15px}
  .ticket-details{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:12px}
  .ticket>.button{margin-top:3px;font-size:14px}
  dialog{width:calc(100vw - 24px);max-height:92vh;max-height:92svh;border-radius:6px}
  .modal-top{padding:20px 21px;gap:18px}
  .modal-top h2{font-size:22px}
  #modal-body{padding:23px 21px 28px;font-size:16px}
  #modal-body p{font-size:16px}
  #modal-body h3{font-size:19px;margin-top:25px}
  #modal-body ul,#modal-body ol{font-size:16px;padding-left:23px}
  #modal-body table{font-size:14px}
  #modal-body td{padding:13px 10px;font-size:14px}
  #modal-body td:first-child{width:30%}
  .source-block{padding:19px 17px;margin-bottom:16px}
  .source-block p{font-size:15px!important}
  .source-block a{font-size:13px}
  .source-state{font-size:12px;gap:9px;align-items:flex-start}
  .reference-grid{grid-template-columns:1fr;gap:24px}
  .reference-grid figcaption{font-size:13px}
  .view-menu{gap:10px;margin-top:23px}
  .view-menu .button{font-size:14px;white-space:normal;flex:1;min-width:150px}
  #toast{bottom:20px;max-width:calc(100vw - 30px);padding:13px 18px;font-size:14px}
  #app,.map-panel{scroll-margin-top:86px}
}
@media(max-width:380px){
  .topbar{padding-inline:16px}
  .brand{width:151px}
  .avatar{width:29px;height:29px;flex-basis:29px}
  main#app{width:calc(100% - 32px)}
  .heading-actions .button{font-size:13px;padding-inline:9px}
  .metric{padding-inline:12px}
  .metric-name{font-size:12px}
  .metric>strong{font-size:40px}
  .metric-name svg{display:none}
  .panel-heading,.event-panel .panel-heading{padding-inline:17px}
  .panel-heading h2{font-size:18px}
  .scene-toolbar{padding-inline:10px}
  .scene-breadcrumb{font-size:11px}
  .scene-tools .icon-btn{width:30px}
  .model-table{padding-inline:17px}
  .model-row{grid-template-columns:minmax(0,1fr)55px 70px;gap:8px;font-size:14px}
  .event-item{padding-inline:17px}
  .event-item-meta{padding-left:0}
  .property-row{padding-inline:17px;gap:15px 9px}
  .property-status .tag{font-size:10px}
  .property-actions .button{font-size:13px;padding-inline:10px}
  .knowledge-flow{gap:24px 18px;padding-inline:20px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}

/* Source-aware property list: status stays separate from historical map totals. */
.asset-toolbar{flex-wrap:wrap}
.asset-panel{scroll-margin-top:164px}
.property-pagination{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:22px 28px;border-top:1px solid var(--border)}
.pagination-summary{font-size:13px;color:var(--muted);line-height:1.7}
.pagination-actions{display:flex;align-items:center;gap:14px;white-space:nowrap;font-size:13px;color:#555}
.pagination-actions .button{min-height:41px;padding:9px 15px;font-size:14px}
#modal-body .crawl-status-lead{padding:23px 25px;border:1px solid #dedede;border-radius:5px;background:#f7f7f7}
#modal-body .crawl-status-lead h3{font-size:30px;font-weight:300;line-height:1.35;margin:15px 0 12px}
#modal-body .crawl-status-lead p{font-size:15px;line-height:1.85;margin:9px 0 0}
@media(max-width:640px){
 .asset-panel{scroll-margin-top:86px}
 .property-pagination{align-items:stretch;flex-direction:column;gap:16px;padding:20px}
 .pagination-actions{justify-content:space-between;gap:10px;font-size:12px}
 .pagination-actions .button{min-height:42px;padding:9px 13px;font-size:13px}
 #modal-body .crawl-status-lead{padding:20px 18px}
 #modal-body .crawl-status-lead h3{font-size:26px}
}

/* Geographic city view and the existing apartment view share one framed viewport. */
.command-grid>.map-panel,.command-grid>.geo-panel{height:790px}
.command-grid #scene-container{min-height:500px}
#geo-city-map{position:absolute;inset:0;z-index:1;isolation:isolate;background:#e8e7e3;color:#242424;overflow:hidden}
#geo-city-map .maplibregl-canvas-container,#geo-city-map .maplibregl-canvas{width:100%;height:100%}
#geo-city-map .leaflet-tile,#geo-city-map .leaflet-pane img{max-width:none!important;max-height:none!important}
#geo-city-map .leaflet-overlay-pane svg{width:auto;height:auto;stroke:none;fill:none;stroke-width:0;vertical-align:initial}
#geo-city-map .maplibregl-ctrl svg{width:20px;height:20px;stroke:none;fill:currentColor;stroke-width:0}
#geo-city-map .maplibregl-ctrl-group,#geo-city-map .leaflet-bar{border:1px solid #c7c7c7;border-radius:4px;background:#fff;box-shadow:0 2px 8px #00000015}
#geo-city-map .maplibregl-ctrl-group button,#geo-city-map .leaflet-bar a{background-color:#fff;color:#222}
#geo-city-map .maplibregl-ctrl-group button:hover,#geo-city-map .leaflet-bar a:hover{background-color:#ececec}
#geo-city-map .maplibregl-ctrl-attrib,#geo-city-map .leaflet-control-attribution{background:#fffffff0;color:#444;font-size:11px;line-height:1.55;padding:3px 6px;max-width:min(430px,calc(100vw - 64px))}
#geo-city-map .maplibregl-ctrl-attrib a,#geo-city-map .leaflet-control-attribution a{color:#333;text-decoration:underline;text-underline-offset:2px}
#geo-city-map .maplibregl-ctrl-bottom-right{z-index:4}
#geo-city-map .leaflet-bottom{z-index:600}
.geo-map-status{position:absolute;left:16px;top:13px;z-index:5;max-width:calc(100% - 108px);padding:7px 11px;border:1px solid #777;border-radius:4px;background:#232527ed;color:#f4f4f4;font-size:12px;line-height:1.65;pointer-events:none;box-shadow:0 2px 8px #0002}
.command-grid .scene-detail{top:65px;width:min(290px,calc(100% - 46px))}
.geo-map-error{display:flex;height:100%;padding:30px;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;line-height:1.7}
.geo-filters{display:grid;grid-template-columns:1fr 1.2fr 1.15fr;gap:12px;padding:2px 24px 14px}
.geo-filters label{display:flex;flex-direction:column;gap:6px;min-width:0;color:#c4c4c4;font-size:12px;line-height:1.4}
.geo-filters select{width:100%;min-width:0;min-height:42px;padding:8px 31px 8px 11px;border:1px solid #666;border-radius:4px;color:#f4f4f4;background:#2a2c2f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23e2e2e2' stroke-width='1.5'/%3E%3C/svg%3E") right 9px center/16px no-repeat;font-size:14px;line-height:1.5;cursor:pointer}
.geo-filters select:focus-visible{outline-color:#f4f4f4;outline-offset:3px}
.geo-filters option{background:#2a2c2f;color:#f4f4f4}
.geo-terrain-button{min-height:36px;padding:7px 12px;margin-right:5px;border:1px solid #777;background:transparent;color:#f3f3f3;font-size:13px;line-height:1.4}
.geo-terrain-button:hover,.geo-terrain-button.active,.geo-terrain-button[aria-pressed="true"]{background:#ededed;border-color:#ededed;color:#191919}
.geo-panel{display:flex;flex-direction:column;min-width:0;min-height:0}
.geo-panel>.panel-heading{flex-shrink:0;align-items:flex-start;padding:27px 24px 21px;border-bottom:1px solid #dedede}
.geo-panel>.panel-heading>div{width:100%;min-width:0}
#geo-coverage-summary{font-size:13px;line-height:1.85;margin-top:10px;color:#666;overflow-wrap:anywhere}
.geo-property-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aaa transparent}
.geo-property-item{position:relative;display:flex;align-items:flex-start;gap:12px;width:100%;min-width:0;padding:20px 22px;border:0;border-bottom:1px solid #e5e5e5;background:#fff;color:#242424;text-align:left;font-size:16px;line-height:1.55;transition:background .18s}
.geo-property-item:last-child{border-bottom:0}
.geo-property-item:hover{background:#f7f7f7}
.geo-property-item.is-selected,.geo-property-item[aria-selected="true"],.geo-property-item[aria-pressed="true"]{background:#f4f4f4;box-shadow:inset 3px 0 #222}
.geo-property-index{display:flex;align-items:center;justify-content:center;flex:0 0 29px;width:29px;height:29px;margin-top:1px;border:1px solid #d8d8d8;border-radius:4px;background:#f6f6f6;color:#333;font-size:12px;font-variant-numeric:tabular-nums;line-height:1}
.geo-property-main{flex:1;min-width:0}
.geo-property-item strong,.geo-property-name{display:block;color:#232323;font-size:16px;font-weight:400;line-height:1.55;overflow-wrap:anywhere}
.geo-property-item p,.geo-property-region{font-size:12px;color:#6b6b6b;line-height:1.75;margin:5px 0 0;overflow-wrap:anywhere}
.geo-property-status{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:8px}
.geo-property-item .tag{font-size:11px;line-height:1.6;margin-top:7px;white-space:normal;text-align:left}
.geo-property-item .tag.neutral{color:#5b5b5b;background:#f5f5f5;border-color:#d8d8d8}
.geo-panel-note{flex-shrink:0;padding:16px 23px;border-top:1px solid #dedede;background:#fafafa;color:#6a6a6a;font-size:12px;line-height:1.75}
.geo-list-empty{padding:38px 24px;font-size:14px;color:#6b6b6b;text-align:center}

/* Marker transforms belong to the map renderer; geometry sits in a pseudo-element. */
.geo-map-marker{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;padding:0;border:0;background:transparent;color:#202020;font-size:14px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1;cursor:pointer;user-select:none}
.geo-map-marker::before{content:"";position:absolute;inset:2px;z-index:-1;border:1px solid #4b4b4b;border-radius:50%;background:#fff;box-shadow:0 2px 7px #0004;transition:background .18s,box-shadow .18s}
.geo-map-marker:hover::before{box-shadow:0 0 0 3px #ffffff90,0 3px 12px #0005}
.geo-map-marker.is-proxy::before{inset:6px;border-style:dashed;border-radius:4px;transform:rotate(45deg) scale(1.08);background:#f2efea}
.geo-map-marker.is-alert::after{content:"";position:absolute;right:0;top:0;width:10px;height:10px;border:2px solid #fff;border-radius:50%;background:#a27535;box-shadow:0 1px 4px #0003}
.geo-map-marker.is-selected{color:#fff}
.geo-map-marker.is-selected::before{background:#252525;border-color:#fff;box-shadow:0 0 0 3px #fff9,0 3px 12px #0005}
.geo-map-marker:focus-visible{outline:2px solid #222;outline-offset:3px;border-radius:50%}

/* The previous exception workflow remains fully available below the geographic view. */
.lower-grid>.event-panel{grid-column:1/-1;height:auto;min-height:0}
.lower-grid>.event-panel #event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
.lower-grid>.event-panel .event-item{border-bottom:1px solid #e5e5e5}
.lower-grid>.event-panel .event-item:nth-child(odd){border-right:1px solid #e5e5e5}
.lower-grid>.event-panel .event-panel-bottom{border-top:0}
@media(min-width:1700px){
 .command-grid>.map-panel,.command-grid>.geo-panel{height:830px}
}
@media(max-width:1280px){
 .geo-filters{padding-inline:18px;gap:9px}
 .geo-filters select{font-size:13px;padding-left:9px}
 .geo-panel>.panel-heading{padding:24px 21px 20px}
 .geo-property-item{padding:19px 20px;gap:10px}
 .geo-property-index{width:27px;height:27px;flex-basis:27px}
 .geo-panel-note{padding-inline:20px}
}
@media(max-width:1050px){
 .command-grid>.map-panel{height:790px}
 .command-grid>.geo-panel{height:auto;max-height:580px}
 .geo-property-list{flex:0 1 auto;max-height:405px}
 .geo-filters{padding-inline:24px;gap:14px}
 .geo-filters select{font-size:14px}
}
@media(max-width:760px){
 .command-grid>.map-panel{height:auto}
 .command-grid #scene-container{flex:none;height:500px;min-height:500px}
 .geo-filters{padding-inline:23px;gap:10px}
 .geo-filters select{font-size:13px}
 .command-grid .scene-toolbar{padding-bottom:9px}
 .command-grid>.geo-panel{max-height:560px}
 .geo-property-list{max-height:390px}
}
@media(max-width:640px){
 .geo-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;padding:1px 20px 14px}
 .geo-filters label{font-size:11px;gap:5px}
 .geo-filters .geo-status-field{grid-column:1/-1;display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px}
 .geo-filters select{min-height:42px;font-size:14px}
 .geo-map-status{left:12px;top:11px;max-width:calc(100% - 82px);padding:6px 9px;font-size:11px;line-height:1.6}
 .command-grid .scene-detail{top:66px}
 .geo-terrain-button{min-height:35px;padding:6px 9px;font-size:12px;margin-right:3px}
 .geo-panel>.panel-heading{padding:23px 21px 19px}
 #geo-coverage-summary{font-size:12px;line-height:1.8;margin-top:8px}
 .geo-property-item{padding:19px 21px;gap:12px}
 .geo-property-item strong,.geo-property-name{font-size:16px}
 .geo-property-item p,.geo-property-region{font-size:12px}
 .geo-panel-note{padding:14px 21px;font-size:11px}
 .lower-grid>.event-panel #event-list{display:block}
 .lower-grid>.event-panel .event-item:nth-child(odd){border-right:0}
 #geo-city-map .maplibregl-ctrl-attrib,#geo-city-map .leaflet-control-attribution{font-size:10px;max-width:calc(100vw - 62px)}
}


/* Household service: a compact entry, six clear dimensions and a contextual assistant. */
#overview-page>.metrics{margin-bottom:32px}
.house-entry{margin:0 0 48px;min-width:0}
.house-entry:empty{display:none}
.hh-entry,.hh-workspace{--hh-blue:#245c9c;--hh-blue-light:#f3f7fb;--hh-border:#dedede;--hh-muted:#646464;color:#202020;font-size:16px;line-height:1.65;min-width:0}
.hh-entry{display:grid;gap:19px;padding:25px 28px;border:1px solid var(--hh-border);border-radius:8px;background:#fff}
.hh-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.hh-entry-heading>div,.hh-entry-summary{min-width:0}
.hh-eyebrow{margin:0 0 8px;font-size:12px;line-height:1.5;letter-spacing:.11em;color:#686868}
.hh-entry-title{font-size:25px;line-height:1.4;letter-spacing:-.025em;font-weight:400;color:#222}
.hh-entry-summary{font-size:16px;line-height:1.75;color:#606060;margin-top:7px}
.hh-entry-count{flex-shrink:0;text-align:right;font-size:14px;line-height:1.65;color:#606060}
.hh-entry-count strong{display:block;font-size:26px;line-height:1.35;letter-spacing:-.035em;font-weight:400;color:#222}
.hh-entry-dimensions{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}
.hh-entry-dimension{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:12px 13px;border:1px solid #e5e5e5;border-radius:4px;background:#fafafa;color:#303030;font-size:14px;text-align:left;overflow-wrap:anywhere}
.hh-entry-dimension strong{font-size:15px;font-weight:400;line-height:1.55}
.hh-entry-dimension small{font-size:12px;line-height:1.6;color:#666}
.hh-entry-dimension[data-tone="warning"]{background:#fcf8f1;border-color:#e6d9c5}
.hh-entry-dimension[data-tone="warning"] strong{color:#80551e}
.hh-entry-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px}
.hh-entry-actions>p,.hh-entry-actions>.hh-muted{margin-right:auto;max-width:60%}
.hh-workspace{display:block}
.hh-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.hh-heading{min-width:0}
.hh-heading h2{font-size:29px;font-weight:400;letter-spacing:-.035em;line-height:1.35}
.hh-heading p{font-size:14px;line-height:1.75;margin-top:8px;color:#666}
.hh-filters{display:flex;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap;gap:14px;min-width:0}
.hh-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:14px;line-height:1.5;color:#555}
.hh-field>span,.hh-field>label{font-size:14px}
.hh-field select,.hh-filters select{max-width:100%;min-width:210px;min-height:45px;padding:10px 35px 10px 12px;border:1px solid #bbb;border-radius:4px;background-color:#fff;color:#222;font-size:16px;line-height:1.5;cursor:pointer}
.hh-period-switch{display:inline-flex;flex-shrink:0;padding:3px;border:1px solid #c9c9c9;border-radius:4px;background:#fafafa;gap:2px}
.hh-period-switch button{min-width:43px;min-height:37px;padding:6px 13px;border-radius:2px;font-size:14px;line-height:1.5;color:#565656;white-space:nowrap}
.hh-period-switch button:hover{background:#eee;color:#222}
.hh-period-switch button[aria-pressed="true"],.hh-period-switch button.selected{background:#202020;color:#fff}
.hh-layout{display:grid;grid-template-columns:minmax(0,1fr)340px;align-items:start;gap:24px}
.hh-main{display:flex;flex-direction:column;gap:24px;min-width:0}
.hh-scope-note{display:flex;align-items:flex-start;flex-wrap:wrap;gap:9px 13px;padding:14px 17px;border:1px solid #e0e4e8;border-radius:5px;background:#f8f9fa;color:#59636d;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.hh-scope-note p{font-size:13px;line-height:1.8;color:inherit}
.hh-dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hh-dimension-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:154px;padding:21px 19px;border:1px solid #ddd;border-radius:6px;background:#fff;text-align:left;color:#242424;transition:background .18s,border-color .18s}
.hh-dimension-card:hover{background:#fafafa;border-color:#aaa}
.hh-dimension-card[aria-pressed="true"],.hh-dimension-card.selected{border-color:#799bc2;background:var(--hh-blue-light);box-shadow:inset 0 0 0 1px #799bc2}
.hh-dimension-label{display:block;font-size:14px;line-height:1.55;color:#565656;font-weight:400}
.hh-dimension-value{display:block;margin:13px 0 8px;font-size:25px;line-height:1.25;font-weight:400;letter-spacing:-.025em;color:#222;overflow-wrap:anywhere}
.hh-dimension-meta{display:block;margin-top:auto;font-size:13px;line-height:1.65;color:#666;overflow-wrap:anywhere}
.hh-dimension-card[data-tone="warning"] .hh-dimension-value,.hh-dimension-card[data-tone="amber"] .hh-dimension-value{color:#80551e}
.hh-dimension-card[data-tone="danger"] .hh-dimension-value,.hh-dimension-card[data-tone="red"] .hh-dimension-value{color:#96382f}
.hh-dimension-card[data-tone="good"] .hh-dimension-value,.hh-dimension-card[data-tone="green"] .hh-dimension-value{color:#35694d}
.hh-detail,.hh-todos{min-width:0;border:1px solid #dedede;border-radius:7px;background:#fff;overflow:hidden}
.hh-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:25px 26px 21px;border-bottom:1px solid #e4e4e4}
.hh-section-head>div{min-width:0}
.hh-section-head h2,.hh-section-head h3{font-size:21px;font-weight:400;line-height:1.45;color:#222}
.hh-section-head p{font-size:14px;line-height:1.75;color:#666;margin-top:6px}
.hh-section-head .hh-button{flex-shrink:0}
.hh-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;padding:23px 26px}
.hh-stat{min-width:0;padding:16px 17px;border:1px solid #e5e5e5;border-radius:4px;background:#fafafa;font-size:14px;line-height:1.65;color:#646464;overflow-wrap:anywhere}
.hh-stat>span,.hh-stat>label{display:block;font-size:14px;line-height:1.6;color:#666}
.hh-stat strong{display:block;margin-top:7px;color:#282828;font-size:24px;line-height:1.35;font-weight:400;letter-spacing:-.025em}
.hh-stat small{display:block;margin-top:7px;font-size:12px;line-height:1.7;color:#6c6c6c}
.hh-device-list{padding:0 26px 8px}
.hh-device-row{display:grid;grid-template-columns:minmax(0,1fr)auto auto;align-items:center;gap:14px;padding:19px 0;border-top:1px solid #e5e5e5}
.hh-device-main{min-width:0;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.hh-device-main strong{font-size:16px;line-height:1.65;font-weight:400;color:#252525}
.hh-device-main p,.hh-device-metrics{margin-top:5px;font-size:13px;line-height:1.75;color:#666;overflow-wrap:anywhere}
.hh-device-status{display:flex;align-items:center;flex-wrap:wrap;gap:6px;max-width:170px;font-size:14px;line-height:1.6;color:#555}
.hh-device-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.hh-device-actions .hh-button{font-size:14px;min-height:40px;padding:8px 12px}
.hh-evidence{margin:0;padding:20px 26px 24px;border-top:1px solid #e5e5e5;background:#fafafa;font-size:14px;line-height:1.85;color:#626262;overflow-wrap:anywhere}
.hh-evidence h3,.hh-evidence strong{font-size:15px;font-weight:500;color:#333}
.hh-evidence p{font-size:14px;line-height:1.85;margin-top:7px;color:#626262}
.hh-evidence ul,.hh-evidence ol{padding-left:20px;margin:10px 0 0}
.hh-evidence a{text-decoration:underline;text-underline-offset:3px}
.hh-evidence .hh-button{margin-top:14px}
.hh-todo-list{padding:0 26px}
.hh-todo{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 0;border-top:1px solid #e5e5e5}
.hh-todo:first-child{border-top:0}
.hh-todo-main{min-width:0;font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.hh-todo-main strong{font-size:16px;font-weight:400;color:#222}
.hh-todo-main p{font-size:14px;line-height:1.8;margin-top:7px;color:#666}
.hh-todo-main .hh-badge{margin-right:8px}
.hh-todo-actions{display:flex;flex-shrink:0;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:210px}
.hh-todo-actions .hh-button{min-height:41px;padding:8px 13px;font-size:14px}
.hh-assistant{position:sticky;top:166px;min-width:0;border:1px solid #d3dbe4;border-radius:7px;background:#fff;overflow:hidden}
.hh-assistant-head{padding:24px 23px 20px;border-bottom:1px solid #e0e5eb;background:#f5f8fc}
.hh-assistant-head h2,.hh-assistant-head h3{font-size:23px;line-height:1.4;letter-spacing:-.025em;font-weight:400;color:#243c58}
.hh-assistant-head p{margin-top:8px;font-size:14px;line-height:1.8;color:#5a6675}
.hh-assistant-head .hh-badge{margin-top:10px}
.hh-assistant-context{padding:17px 23px;border-bottom:1px solid #e7e7e7;font-size:14px;line-height:1.8;color:#616161;overflow-wrap:anywhere}
.hh-assistant-context strong{font-size:15px;font-weight:400;color:#333}
.hh-assistant-context p{font-size:14px;line-height:1.8;margin-top:5px;color:#616161}
.hh-quick-questions{display:flex;flex-wrap:wrap;gap:8px;padding:18px 23px 0}
.hh-quick-questions button{display:inline-flex;align-items:center;min-height:38px;padding:7px 11px;border:1px solid #ccd7e3;border-radius:4px;background:#fff;color:#315578;font-size:14px;line-height:1.6;white-space:normal;text-align:left}
.hh-quick-questions button:hover{background:#f0f5fa;border-color:#8da6c1}
.hh-conversation{display:flex;flex-direction:column;gap:15px;max-height:520px;margin:0;padding:22px 23px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b4bdc7 transparent}
.hh-message{min-width:0;padding:16px 15px;border:1px solid #e5e5e5;border-radius:5px;background:#f8f8f8;color:#353535;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.hh-message[data-role="user"]{margin-left:19px;border-color:#d6e1ee;background:#f0f5fb;color:#274765}
.hh-message[data-role="assistant"]{margin-right:7px}
.hh-message>strong{display:block;margin-bottom:7px;font-size:14px;font-weight:500;color:#4f5f70}
.hh-message p{color:inherit;font-size:16px;line-height:1.8}
.hh-message p+p{margin-top:10px}
.hh-message-context{margin:0 0 10px;font-size:12px;line-height:1.7;color:#6b7682}
.hh-answer-block+.hh-answer-block{margin-top:16px;padding-top:14px;border-top:1px solid #dedede}
.hh-answer-block h3,.hh-answer-block h4,.hh-answer-block strong{font-size:15px;line-height:1.65;font-weight:500;color:#2d3c4e}
.hh-answer-block p{margin-top:7px;font-size:16px;line-height:1.8}
.hh-answer-block ul,.hh-answer-block ol{padding-left:19px;margin:8px 0 0;font-size:16px;line-height:1.8}
.hh-answer-block li+li{margin-top:6px}
.hh-answer-block .hh-button{margin-top:12px;font-size:14px;white-space:normal}
.hh-chat-form{display:grid;gap:11px;padding:19px 23px 23px;border-top:1px solid #e1e1e1;background:#fff}
.hh-chat-form label{font-size:14px;color:#555}
.hh-chat-form textarea{display:block;width:100%;min-width:0;min-height:102px;max-height:260px;resize:vertical;padding:12px;border:1px solid #bfc7d0;border-radius:4px;background:#fff;color:#222;font-family:inherit;font-size:16px;line-height:1.65}
.hh-chat-form textarea::placeholder{color:#767e87}
.hh-chat-form .hh-button{justify-self:end}
.hh-chat-note{margin:0;font-size:12px;line-height:1.75;color:#747474}
.hh-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;padding:10px 17px;border:1px solid #8c8c8c;border-radius:4px;background:#fff;color:#292929;font-family:inherit;font-size:16px;line-height:1.5;font-weight:400;text-align:center;white-space:normal;transition:background .18s,border-color .18s,color .18s}
.hh-button:hover{border-color:#444;background:#f1f1f1;text-decoration:none}
.hh-button-primary{border-color:#242424;background:#242424;color:#fff}
.hh-button-primary:hover{border-color:#444;background:#444;color:#fff}
.hh-button:disabled{opacity:.45;cursor:default}
.hh-badge{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 8px;border:1px solid #d4d8dd;border-radius:3px;background:#f6f7f8;color:#59616b;font-size:12px;line-height:1.6;white-space:normal;text-align:left}
.hh-badge[data-tone="warning"],.hh-badge[data-tone="amber"]{border-color:#deceb6;background:#fbf5eb;color:#80551e}
.hh-badge[data-tone="good"],.hh-badge[data-tone="green"]{border-color:#c9d8cc;background:#f1f7f2;color:#3c6649}
.hh-badge[data-tone="danger"],.hh-badge[data-tone="red"]{border-color:#e1c9c3;background:#fbf2ef;color:#973e32}
.hh-muted{font-size:13px;line-height:1.8;color:#6a6a6a}
.hh-empty{padding:28px 24px;color:#686868;font-size:16px;line-height:1.85;text-align:center}
.hh-empty p{color:#686868;font-size:16px;line-height:1.85}
.hh-empty .hh-button{margin-top:16px}
.hh-sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}

/* One service entrance; specialist roles continue below it. */
.agent-product-intro{padding:30px 30px 26px;border:1px solid #dedede;border-radius:7px;background:#fff}
.agent-product-top{display:flex;align-items:center;justify-content:space-between;gap:30px}
.agent-product-copy{min-width:0;max-width:750px}
.agent-product-copy .eyebrow{font-size:12px;margin-bottom:10px;color:#5a6b7d;letter-spacing:.1em}
.agent-product-copy h2{font-size:28px;line-height:1.4;letter-spacing:-.03em;font-weight:400}
.agent-product-copy>p:last-child{margin-top:12px;font-size:16px;line-height:1.8;color:#626262}
.agent-product-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;max-width:350px;flex-shrink:0}
.agent-product-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:20px;margin:27px 0 0;padding:25px 0 0;border-top:1px solid #e5e5e5}
.agent-product-steps li{display:flex;align-items:center;gap:11px;min-width:0;font-size:16px;line-height:1.65}
.agent-product-steps span{flex:0 0 29px;color:#687e94;font-size:14px;font-variant-numeric:tabular-nums}
.agent-product-steps strong{font-size:16px;font-weight:400;color:#333}
.agent-roles-heading{margin:38px 0 22px}
.agent-roles-heading h2{font-size:24px;line-height:1.4;font-weight:400}
.agent-roles-heading p{font-size:14px;line-height:1.8;color:#666;margin-top:8px}
@media(min-width:641px) and (max-width:900px){
 .nav-rail{gap:16px}
 .nav-item{font-size:14px}
 .nav-item svg{display:none}
 .nav-bottom{gap:0}
 .nav-bottom .nav-item svg{display:none}
}
@media(max-width:1280px){
 .hh-layout{grid-template-columns:minmax(0,1fr)320px;gap:20px}
 .hh-dimensions{gap:11px}
 .hh-dimension-card{padding:18px 16px;min-height:149px}
 .hh-dimension-value{font-size:23px}
 .hh-section-head,.hh-evidence{padding-inline:22px}
 .hh-stat-grid{padding-inline:22px}
 .hh-device-list,.hh-todo-list{padding-inline:22px}
 .hh-device-row{grid-template-columns:minmax(0,1fr)auto}
 .hh-device-actions{grid-column:1/-1;justify-content:flex-start}
 .hh-todo{align-items:flex-start;flex-direction:column;gap:14px}
 .hh-todo-actions{justify-content:flex-start;max-width:none}
}
@media(max-width:1100px){
 .hh-layout{grid-template-columns:minmax(0,1fr);gap:24px}
 .hh-assistant{position:static;max-width:none}
 .hh-conversation{max-height:440px}
 .hh-entry-dimensions{grid-template-columns:repeat(3,minmax(0,1fr))}
 .hh-toolbar{align-items:flex-start;flex-direction:column;gap:18px}
 .hh-filters{justify-content:flex-start;width:100%}
 .hh-dimensions{gap:14px}
 .hh-dimension-card{min-height:146px;padding:20px}
 .hh-device-row{grid-template-columns:minmax(0,1fr)auto auto}
 .hh-device-actions{grid-column:auto;justify-content:flex-end}
 .hh-todo{align-items:center;flex-direction:row}
 .hh-todo-actions{max-width:230px;justify-content:flex-end}
 .agent-product-top{align-items:flex-start;flex-direction:column;gap:22px}
 .agent-product-actions{justify-content:flex-start;max-width:none}
 .agent-product-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 25px}
}
@media(max-width:760px){
 .house-entry{margin-bottom:38px}
 .hh-entry{padding:23px;gap:18px}
 .hh-entry-heading{gap:18px}
 .hh-entry-title{font-size:23px}
 .hh-heading h2{font-size:26px}
 .hh-dimension-card{padding:18px 16px}
 .hh-dimension-value{font-size:23px}
 .hh-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hh-device-row{grid-template-columns:minmax(0,1fr)auto}
 .hh-device-actions{grid-column:1/-1;justify-content:flex-start}
 .agent-product-intro{padding:26px}
}
@media(max-width:640px){
 #overview-page>.metrics{margin-bottom:28px}
 .house-entry{margin-bottom:36px}
 .hh-entry{padding:21px 19px;gap:17px}
 .hh-entry-heading{flex-direction:column;gap:13px}
 .hh-entry-title{font-size:23px}
 .hh-entry-summary{font-size:16px;line-height:1.8}
 .hh-entry-count{display:flex;align-items:baseline;gap:8px;text-align:left}
 .hh-entry-count strong{display:inline;font-size:23px}
 .hh-entry-dimensions{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .hh-entry-dimension{padding:11px 12px;font-size:14px}
 .hh-entry-actions{justify-content:flex-start;gap:10px}
 .hh-entry-actions>p,.hh-entry-actions>.hh-muted{max-width:100%;width:100%;margin:0 0 2px}
 .hh-entry-actions .hh-button{flex:1;padding-inline:12px;font-size:15px}
 .hh-toolbar{gap:19px;margin-bottom:21px}
 .hh-heading h2{font-size:25px}
 .hh-heading p{font-size:14px}
 .hh-filters{gap:13px;align-items:stretch;flex-direction:column}
 .hh-field{width:100%;font-size:14px}
 .hh-field select,.hh-filters select{width:100%;min-width:0;min-height:46px;font-size:16px}
 .hh-period-switch{align-self:flex-start}
 .hh-period-switch button{min-height:38px;min-width:48px;font-size:14px}
 .hh-main{gap:20px}
 .hh-scope-note{padding:14px 15px;gap:8px;font-size:13px}
 .hh-dimensions{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .hh-dimension-card{min-height:152px;padding:17px 14px}
 .hh-dimension-label{font-size:14px}
 .hh-dimension-value{font-size:22px;margin-top:13px;line-height:1.35}
 .hh-dimension-meta{font-size:12px;line-height:1.7}
 .hh-section-head{padding:22px 20px 19px;flex-wrap:wrap;gap:13px}
 .hh-section-head h2,.hh-section-head h3{font-size:20px}
 .hh-section-head p{font-size:14px}
 .hh-section-head .hh-button{font-size:14px;min-height:40px;padding:8px 12px}
 .hh-stat-grid{padding:20px;gap:10px}
 .hh-stat{padding:14px 12px;font-size:14px}
 .hh-stat strong{font-size:22px}
 .hh-device-list,.hh-todo-list{padding-inline:20px}
 .hh-device-row{gap:11px;padding-block:19px;align-items:start}
 .hh-device-status{max-width:105px}
 .hh-device-main strong{font-size:16px}
 .hh-device-actions{gap:8px}
 .hh-device-actions .hh-button{font-size:14px}
 .hh-evidence{padding:20px;font-size:14px}
 .hh-todo{align-items:flex-start;flex-direction:column;gap:14px;padding-block:20px}
 .hh-todo-actions{justify-content:flex-start;max-width:none;width:100%}
 .hh-todo-actions .hh-button{font-size:14px}
 .hh-assistant-head{padding:23px 20px 19px}
 .hh-assistant-head h2,.hh-assistant-head h3{font-size:23px}
 .hh-assistant-context{padding:17px 20px}
 .hh-quick-questions{padding:17px 20px 0}
 .hh-conversation{padding:20px;max-height:430px;gap:14px}
 .hh-message{padding:15px 14px;font-size:16px}
 .hh-message[data-role="user"]{margin-left:13px}
 .hh-message[data-role="assistant"]{margin-right:0}
 .hh-chat-form{padding:19px 20px 21px}
 .hh-chat-form .hh-button{justify-self:stretch}
 .hh-empty{padding:26px 20px}
 .agent-product-intro{padding:23px 20px}
 .agent-product-copy h2{font-size:25px}
 .agent-product-copy>p:last-child{font-size:16px;line-height:1.8}
 .agent-product-actions{gap:10px;width:100%}
 .agent-product-actions .button{flex:1;min-height:44px;white-space:normal;font-size:14px;padding:10px 12px}
 .agent-product-steps{grid-template-columns:minmax(0,1fr);gap:16px;margin-top:23px;padding-top:21px}
 .agent-product-steps li,.agent-product-steps strong{font-size:16px}
 .agent-roles-heading{margin-top:32px}
 .agent-roles-heading h2{font-size:23px}
}


/* Model-source coverage stays beside the inventory's data scope. */
.model-coverage{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px 22px;margin:0 28px 20px;padding:19px 21px;border:1px solid #d9e0e7;border-radius:5px;background:#f7f9fb;color:#414d5b;font-size:14px;line-height:1.8}
.model-coverage:empty{display:none}
.model-coverage>div{min-width:0}
.model-coverage h3{font-size:18px;font-weight:400;line-height:1.5;color:#293b4e}
.model-coverage p{margin-top:7px;font-size:14px;line-height:1.8;color:#606c79;overflow-wrap:anywhere}
.model-coverage-summary,.model-coverage-counts{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 20px;font-size:14px;line-height:1.75}
.model-coverage-summary strong,.model-coverage-counts strong{font-size:20px;line-height:1.5;font-weight:400;color:#293b4e}
.model-coverage-note{font-size:13px;line-height:1.8;color:#626d79}
.model-coverage-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.model-coverage .button{flex-shrink:0;min-height:42px;padding:9px 14px;font-size:14px;white-space:normal}
.property-actions{min-width:0;flex-direction:column;align-items:stretch}
.property-actions .button{width:100%;white-space:normal}
.apartment-actions{right:20px;max-width:calc(100% - 40px);flex-wrap:wrap}
@media(max-width:1280px){
 .model-coverage{margin-inline:23px;padding:18px 20px}
}
@media(max-width:1050px){
 .property-actions{flex-direction:row;flex-wrap:wrap;align-items:center}
 .property-actions .button{width:auto;flex:0 1 auto}
}
@media(max-width:640px){
 .model-coverage{margin:0 20px 18px;padding:17px 16px;gap:14px}
 .model-coverage h3{font-size:17px}
 .model-coverage p{font-size:14px;line-height:1.8}
 .model-coverage .button{font-size:14px}
 .property-actions{flex-direction:column;align-items:stretch}
 .property-actions .button{width:100%;max-width:130px}
 .apartment-actions{right:12px;max-width:calc(100% - 24px)}
}


/* Actual collection scope and verified inventory counts; unknown values stay empty of claims. */
.inventory-source-status{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 18px;margin:0 0 24px;padding:0;color:#646464;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.inventory-scope{font-size:14px;font-weight:500;color:#34475c}
.inventory-source-detail{font-size:13px;font-weight:400;color:#666}
.inventory-metrics .metric-foot{font-size:13px;line-height:1.75;align-items:flex-start;overflow-wrap:anywhere}
.bedroom-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0 0 30px;padding:15px 21px;border:1px solid #e0e0e0;border-radius:5px;background:#fafafa;color:#555}
.bedroom-stat{display:flex;align-items:baseline;justify-content:space-between;gap:14px;min-width:0;padding:0 22px;border-left:1px solid #dedede;font-size:14px;line-height:1.6}
.bedroom-stat:first-child{padding-left:0;border-left:0}
.bedroom-stat:last-child{padding-right:0}
.bedroom-stat>span{min-width:0;font-size:14px;color:#606060;overflow-wrap:anywhere}
.bedroom-stat>strong{flex-shrink:0;font-size:22px;line-height:1.3;font-weight:400;letter-spacing:-.02em;color:#282828;font-variant-numeric:tabular-nums}
.bedroom-stat small{font-size:12px;font-weight:400;color:#777;margin-left:4px}
@media(max-width:1050px){
 .bedroom-stat{padding-inline:16px;gap:10px}
}
@media(max-width:760px){
 .bedroom-summary{padding:16px 20px;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 0}
 .bedroom-stat{padding-inline:20px;gap:10px}
 .bedroom-stat:nth-child(odd){border-left:0;padding-left:0}
 .bedroom-stat:nth-child(even){padding-right:0}
}
@media(max-width:640px){
 .inventory-source-status{margin-bottom:23px;gap:5px 12px;font-size:13px}
 .inventory-scope{font-size:14px}
 .inventory-source-detail{display:block;width:100%;font-size:13px}
 .inventory-metrics .metric-name{font-size:14px}
 .inventory-metrics .metric-foot{font-size:12px;line-height:1.8}
 .bedroom-summary{margin-bottom:26px;padding:16px 17px}
 .bedroom-stat{padding-inline:15px;gap:9px}
 .bedroom-stat>span{font-size:14px}
 .bedroom-stat>strong{font-size:21px}
}


/* Data-scope switches keep historical examples separate from verified collection. */
.map-heading-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:11px;min-width:0}
#map-inventory-scope{width:160px;max-width:100%;min-width:0;min-height:38px;padding:8px 31px 8px 11px;border:1px solid #777;border-radius:4px;background:#27292c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7 5 5 5-5' fill='none' stroke='%23eeeeee' stroke-width='1.5'/%3E%3C/svg%3E") right 9px center/16px no-repeat;color:#f3f3f3;font-size:14px;line-height:1.5;cursor:pointer}
#map-inventory-scope option{background:#27292c;color:#f3f3f3}
.map-panel:has(#geo-filters[hidden]) #map-inventory-scope{display:none}
#inventory-view,#bedroom-select{max-width:100%;min-width:150px}
button.bedroom-stat{min-height:44px;padding-block:6px;background:transparent;text-align:left;cursor:pointer;transition:background .18s,color .18s}
button.bedroom-stat:hover{background:#f0f4f8}
button.bedroom-stat[aria-pressed="true"],button.bedroom-stat.active{background:#edf3fa;color:#245c9c}
button.bedroom-stat[aria-pressed="true"]>span,button.bedroom-stat[aria-pressed="true"]>strong{color:#245c9c}
button.bedroom-stat:focus-visible{outline-offset:3px;outline-color:#245c9c}
@media(max-width:760px){
 .map-panel>.panel-heading{flex-wrap:wrap;align-items:flex-start;gap:15px}
 .map-heading-controls{flex:1 1 auto;justify-content:flex-end}
}
@media(max-width:640px){
 .map-heading-controls{flex-basis:100%;width:100%;justify-content:space-between;gap:10px}
 #map-inventory-scope{min-height:40px;width:160px;font-size:14px}
 #inventory-view,#bedroom-select{min-width:100%;width:100%;font-size:16px}
 button.bedroom-stat{min-height:44px}
}


/* Finish the actual household DOM without adding another visual layer. */
.hh-eyebrow{display:block}
.hh-dimension-label small{display:block;margin-top:4px;font-size:12px;line-height:1.6;color:#737373}
.hh-device-main>strong,.hh-device-main>.hh-muted{display:block}
.hh-device-main>.hh-muted{margin-top:4px;font-size:13px;line-height:1.7}
.hh-assistant-context>strong,.hh-assistant-context>span{display:block}
.hh-assistant-context>span{margin-top:5px;font-size:13px;line-height:1.75;color:#69717a}
.hh-message-context{display:block}
.hh-scope-note{flex-direction:column;align-items:stretch;gap:8px}
.hh-scope-note>strong{font-size:14px;font-weight:500;line-height:1.7}
.hh-scope-note>.hh-entry-actions{justify-content:flex-start;margin-top:3px}
.hh-detail>.hh-muted{padding:18px 26px 0;margin:0;font-size:14px;line-height:1.8}
.hh-todos>.hh-muted{padding:16px 26px 21px;margin:0;border-top:1px solid #e8e8e8;font-size:13px;line-height:1.8}
.hh-evidence>summary{color:#3f4c5c;line-height:1.8;font-size:14px;cursor:pointer}
.hh-evidence[open]>summary{margin-bottom:13px}
.hh-evidence>strong{display:block;margin-top:14px}
.hh-message .hh-entry-actions{justify-content:flex-start;margin-top:15px;gap:8px}
.hh-message>.hh-chat-note{margin-top:13px}
.hh-assistant{position:static}
.hh-assistant>.hh-chat-note{padding:0 23px 20px;margin:0;font-size:12px;line-height:1.8}
.hh-assistant>[data-hh-ref="composerStatus"]{padding:0 23px 20px;margin:0;font-size:13px;line-height:1.8;color:#56687b}
.hh-assistant>[data-hh-ref="composerStatus"]:empty{display:none}

/* Collection metadata is a short utility row; long source notes wrap, never crowd the metrics. */
#inventory-source-status{display:grid;grid-template-columns:max-content minmax(0,1fr)max-content max-content;align-items:center;gap:7px 14px;margin-bottom:22px;font-size:12px;line-height:1.7}
#inventory-source-status>span{min-width:0;overflow-wrap:anywhere}
#inventory-source-status>span:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;max-width:100%}
#inventory-source-status strong{font-size:14px;font-weight:500;line-height:1.65;color:#34475c}
#inventory-source-status .tag{font-size:11px;line-height:1.5;padding:3px 7px;white-space:nowrap}
#inventory-source-status>.text-btn{display:inline-flex;align-items:center;justify-content:flex-start;min-height:30px;padding:3px 0;font-size:12px;line-height:1.6;white-space:nowrap;color:#4f6175}
button.bedroom-stat{display:grid;grid-template-columns:minmax(0,1fr)auto;align-items:center;justify-content:initial;column-gap:10px;row-gap:3px}
button.bedroom-stat>span{grid-column:1;grid-row:1}
button.bedroom-stat>strong{grid-column:2;grid-row:1;text-align:right}
button.bedroom-stat>small{grid-column:1/-1;grid-row:2;margin:0;font-size:12px;line-height:1.65;text-align:left;color:#777;white-space:normal;overflow-wrap:anywhere}
@media(max-width:1280px){
 .hh-detail>.hh-muted,.hh-todos>.hh-muted{padding-inline:22px}
}
@media(max-width:760px){
 #inventory-source-status{display:flex;align-items:center;flex-wrap:wrap;gap:4px 17px;margin-bottom:21px}
 #inventory-source-status>span:first-child,#inventory-source-status>span:nth-child(2){flex-basis:100%;width:100%}
 #inventory-source-status>span:nth-child(2){font-size:12px;line-height:1.7}
 #inventory-source-status>.text-btn{min-height:30px}
}
@media(max-width:640px){
 .hh-detail>.hh-muted{padding:17px 20px 0}
 .hh-todos>.hh-muted{padding:15px 20px 19px}
 .hh-assistant>.hh-chat-note,.hh-assistant>[data-hh-ref="composerStatus"]{padding:0 20px 20px}
 #inventory-source-status{gap:4px 16px}
 #inventory-source-status>span:first-child{gap:6px 9px}
 #inventory-source-status strong{font-size:14px}
 button.bedroom-stat{column-gap:8px;row-gap:4px}
 button.bedroom-stat>small{font-size:11px;line-height:1.7}
}
