:root{--bg: #0b1120;--surface: #111827;--surface-2: #1e293b;--border: #334155;--text: #f1f5f9;--text-muted: #94a3b8;--accent: #38bdf8;--accent-dim: #0ea5e9;--sidebar-w: 280px;--info-w: 300px;--radius: 10px;--font: "DM Sans", system-ui, sans-serif;--mono: "JetBrains Mono", monospace}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:var(--font);background:var(--bg);color:var(--text);overflow:hidden;display:flex;flex-direction:column}.site-topbar{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.55rem 1rem;background:var(--surface);border-bottom:1px solid var(--border);z-index:1001}.site-back{color:var(--accent);text-decoration:none;font-size:.9rem;font-weight:500}.site-back:hover{text-decoration:underline}.site-topbar-links{display:flex;gap:.75rem}.site-topbar-links a{color:var(--text-muted);text-decoration:none;font-size:.85rem}.site-topbar-links a:hover{color:var(--text)}.site-topbar-links a.topbar-active{color:var(--accent);font-weight:600}.mode-banner{flex-shrink:0;position:relative;top:auto;left:auto;right:auto;z-index:1000;padding:.5rem 1rem;text-align:center;font-size:.82rem;background:#eab30826;border-bottom:1px solid rgba(234,179,8,.35);color:#fde68a}.mode-banner.hidden{display:none}#app{flex:1;min-height:0;display:flex}.hidden{display:none!important}.sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;height:100vh}.sidebar-header{padding:1.25rem 1rem .75rem;border-bottom:1px solid var(--border)}.sidebar-header h1{font-size:1.1rem;font-weight:700;letter-spacing:-.02em}.subtitle{font-size:.78rem;color:var(--text-muted);margin-top:.25rem}.search-box{padding:.75rem 1rem}.search-box input{width:100%;padding:.55rem .75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);font-family:var(--font);font-size:.85rem;outline:none;transition:border-color .15s}.search-box input:focus{border-color:var(--accent)}.house-list{flex:1;overflow-y:auto;padding:0 .5rem}.house-item{display:block;width:100%;text-align:left;padding:.65rem .75rem;margin-bottom:2px;background:transparent;border:none;border-radius:8px;color:var(--text);cursor:pointer;transition:background .12s}.house-item:hover{background:var(--surface-2)}.house-item.active{background:#38bdf81f;color:var(--accent)}.house-item-id{font-size:.85rem;font-weight:600;font-family:var(--mono)}.house-item-meta{font-size:.72rem;color:var(--text-muted);margin-top:2px}.sidebar-footer{padding:.75rem 1rem;border-top:1px solid var(--border);font-size:.75rem;color:var(--text-muted)}.main{flex:1;display:flex;flex-direction:column;overflow:hidden}.empty-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--text-muted);gap:.5rem}.empty-icon{font-size:3rem;opacity:.5}.empty-state h2{color:var(--text);font-size:1.25rem}.viewer-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.viewer-header{display:flex;align-items:center;justify-content:space-between;padding:.85rem 1.25rem;border-bottom:1px solid var(--border);background:var(--surface);gap:1rem;flex-wrap:wrap}.viewer-header h2{font-size:1.05rem;font-family:var(--mono)}.house-meta{font-size:.78rem;color:var(--text-muted);margin-top:2px}.view-tabs{display:flex;gap:4px;background:var(--surface-2);padding:3px;border-radius:8px}.tab{padding:.4rem .85rem;border:none;background:transparent;color:var(--text-muted);font-family:var(--font);font-size:.8rem;font-weight:500;border-radius:6px;cursor:pointer;transition:all .12s}.tab:hover{color:var(--text)}.tab.active{background:var(--accent);color:#0b1120}.viewer-body{flex:1;display:flex;overflow:hidden}.canvas-area{flex:1;display:flex;flex-direction:column;overflow:hidden;position:relative}.floor-toolbar{display:flex;gap:6px;padding:.6rem 1rem;background:#111827e6;border-bottom:1px solid var(--border)}.floor-btn{padding:.35rem .75rem;border:1px solid var(--border);background:var(--surface-2);color:var(--text-muted);font-family:var(--font);font-size:.78rem;border-radius:6px;cursor:pointer;transition:all .12s}.floor-btn:hover{border-color:var(--accent);color:var(--text)}.floor-btn.active{background:#38bdf826;border-color:var(--accent);color:var(--accent)}.view-container{flex:1;overflow:hidden;position:relative;background:#0f172a}.view-container canvas{display:block}.floor-plan-svg{width:100%;height:100%;display:block}.floor-bg{fill:#0f172a}.room-rect{stroke:#ffffff40;stroke-width:60;cursor:pointer;transition:opacity .15s,stroke .15s}.room-rect[data-type=living_room]{fill:#4ade80}.room-rect[data-type=bedroom]{fill:#60a5fa}.room-rect[data-type=bathroom]{fill:#22d3ee}.room-rect[data-type=kitchen]{fill:#fb923c}.room-rect[data-type=dining_room]{fill:#fbbf24}.room-rect[data-type=corridor]{fill:#94a3b8}.room-rect[data-type=entryway]{fill:#a78bfa}.room-rect[data-type=balcony]{fill:#86efac}.room-rect[data-type=stairs]{fill:#64748b}.room-rect:hover{opacity:.85;stroke:#fff;stroke-width:80}.room-rect.selected{stroke:#fff;stroke-width:100;filter:brightness(1.15)}.room-label{fill:#000000a6;text-anchor:middle;dominant-baseline:central;pointer-events:none;font-family:var(--font);font-weight:600;text-transform:capitalize}.empty-hint{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted)}.canvas-area.split-mode{display:grid;grid-template-rows:1fr 1fr}.canvas-area.split-mode .floor-toolbar{grid-column:1 / -1}.canvas-area.split-mode #view-2d,.canvas-area.split-mode #view-3d{display:block!important;min-height:0}.canvas-area.split-mode #view-2d{border-bottom:1px solid var(--border)}.info-panel{width:var(--info-w);min-width:var(--info-w);background:var(--surface);border-left:1px solid var(--border);overflow-y:auto;padding:1rem}.info-section{margin-bottom:1.25rem}.info-section h3{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:.6rem}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}.stat-item{background:var(--surface-2);border-radius:8px;padding:.5rem .6rem}.stat-label{font-size:.68rem;color:var(--text-muted);text-transform:capitalize}.stat-value{font-size:1rem;font-weight:700;font-family:var(--mono);margin-top:2px}.building-info{display:flex;flex-direction:column;gap:6px}.info-row{display:flex;justify-content:space-between;font-size:.82rem;padding:.35rem 0;border-bottom:1px solid var(--border)}.info-row span:last-child{font-family:var(--mono);color:var(--accent)}.legend{display:flex;flex-direction:column;gap:5px}.legend-item{display:flex;align-items:center;gap:8px;font-size:.78rem}.legend-color{width:14px;height:14px;border-radius:3px;flex-shrink:0}.room-detail{background:var(--surface-2);border-radius:var(--radius);padding:.75rem;font-size:.82rem}.room-detail .detail-row{display:flex;justify-content:space-between;padding:.3rem 0;border-bottom:1px solid var(--border)}.room-detail .detail-row:last-child{border-bottom:none}.muted{color:var(--text-muted);font-size:.8rem}@media(max-width:900px){#app{flex-direction:column}.sidebar{width:100%;min-width:unset;height:auto;max-height:40vh;max-height:40dvh}.viewer-body{flex-direction:column}.info-panel{width:100%;min-width:unset;max-height:32vh;max-height:32dvh}}@media(max-width:768px){.site-topbar{flex-wrap:wrap;padding:.5rem .75rem;padding-top:calc(.5rem + env(safe-area-inset-top,0px));gap:.5rem}.site-back{font-size:.85rem;min-height:44px;display:inline-flex;align-items:center}.site-topbar-links{width:100%;order:3;overflow-x:auto;flex-wrap:nowrap;gap:.35rem;padding-bottom:2px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.site-topbar-links::-webkit-scrollbar{display:none}.site-topbar-links a{flex-shrink:0;padding:.55rem .75rem;min-height:44px;display:inline-flex;align-items:center;border-radius:8px;background:var(--surface-2)}.sidebar{max-height:45dvh}.search-box input,#search-input{font-size:16px;min-height:44px}.house-item{min-height:44px;padding:.75rem .85rem}.tab,.floor-btn{min-height:44px;padding:.5rem .85rem}.view-tabs{flex-wrap:wrap;gap:.35rem}.viewer-header{flex-wrap:wrap;gap:.75rem}.canvas-area.split-mode{grid-template-rows:1fr 1fr;min-height:50vh}#view-2d,#view-3d{min-height:200px}}
