.spatial-detail-panel,.spatial-history{margin-bottom:24px}.spatial-detail-body{gap:18px;padding:0 24px 24px;display:grid}.spatial-detail-body p{white-space:pre-wrap;overflow-wrap:anywhere}.spatial-detail-panel>.panel-heading{flex-wrap:wrap}.spatial-detail-panel>.panel-heading>.status{flex:none}.spatial-breadcrumbs{flex-wrap:wrap;gap:8px;display:flex}.spatial-breadcrumbs>:not(:last-child):after{content:" →";color:var(--muted);margin-left:8px}.spatial-child-list>div{border-bottom:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.spatial-history article{border-top:1px solid var(--line);padding:16px 0}.space-canvas-wrap{min-width:0}.space-canvas-toolbar,.space-editor-actions,.spatial-map-heading,.spatial-filter-footer,.spatial-list-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.space-canvas-toolbar .button{min-height:40px;padding:8px 12px}.space-canvas-toolbar .button[aria-pressed=true]:not(:disabled){background:var(--accent);color:#fff}.space-canvas{border:1px solid var(--line);background:var(--surface-soft);touch-action:pan-y;-webkit-user-select:none;user-select:none;border-radius:12px;width:100%;height:480px;display:block}.is-editable .space-canvas,.is-panning .space-canvas{touch-action:none}.is-panning .space-canvas{cursor:grab}.is-panning .space-canvas:active{cursor:grabbing}.space-shape>rect:first-of-type{fill:var(--line);stroke:var(--muted);stroke-width:1.6px;cursor:pointer}.space-shape text,.space-equipment text{fill:var(--accent)}.space-shape.state-free>rect:first-of-type,.space-equipment.state-free>circle{fill:var(--success-soft);stroke:var(--success)}.space-shape.state-occupied>rect:first-of-type,.space-equipment.state-occupied>circle{fill:var(--brand-soft);stroke:var(--subtle)}.space-shape.state-maintenance>rect:first-of-type,.space-equipment.state-maintenance>circle{fill:var(--warning-soft);stroke:var(--warning)}.space-shape.state-unavailable>rect:first-of-type,.space-equipment.state-unavailable>circle{fill:var(--canvas);stroke:var(--line-strong)}.space-shape.state-unchecked>rect:first-of-type{fill:var(--line);stroke:var(--muted);stroke-dasharray:5 4}.space-shape.is-selected>rect:first-of-type,.space-equipment.is-selected>circle{stroke:var(--accent);stroke-width:3.5px}.space-shape.is-invalid>rect:first-of-type,.space-equipment.is-invalid>circle{stroke:var(--danger);stroke-width:3px;fill:var(--danger-soft)}.space-shape:focus-visible,.space-equipment:focus-visible{outline:none}.space-shape:focus-visible>rect:first-of-type,.space-equipment:focus-visible>circle{stroke:var(--accent);stroke-width:4px;stroke-dasharray:8 3}.space-shape .space-resize-handle{fill:var(--accent);stroke:#fff;stroke-width:2px;cursor:nwse-resize}.space-equipment>circle{fill:var(--surface-soft);stroke:var(--muted);stroke-width:2px;cursor:pointer}.space-canvas-help{margin-top:10px}.space-editor-grid,.space-map-grid{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:22px;display:grid}.space-selection-panel{background:var(--surface-soft);border:1px solid var(--line);border-radius:12px;gap:16px;min-width:0;padding:20px;display:grid}.space-selection-panel h3,.space-selection-panel h4,.space-selection-panel p{overflow-wrap:anywhere}.space-selection-panel p{font-size:12px;line-height:1.65}.space-selection-panel article{border-bottom:1px solid var(--line);gap:10px;padding:14px 0;display:grid}.space-selection-panel article:last-child{border-bottom:0}.space-selection-panel .button{white-space:normal;max-width:100%;height:auto}.space-coordinates{grid-template-columns:1fr 1fr;gap:12px;display:grid}.space-coordinates label,.space-map-filters label{gap:7px;min-width:0;font-size:12px;font-weight:700;display:grid}.space-coordinates input,.space-map-filters input,.space-map-filters select{width:100%;font-size:12px}.space-add-object{border-top:1px solid var(--line);gap:12px;padding-top:16px;display:grid}.space-add-object select{width:100%;max-width:100%;font-size:12px}.space-editor-actions{margin-top:18px}.spatial-editor-intro{margin-bottom:18px}.spatial-editor-intro>p:first-child{margin-bottom:10px}.modal:has(.floor-plan-editor){width:min(1280px,100vw - 32px);max-height:94dvh}.space-map-list{margin-top:24px;padding:22px}.floor-plan-editor .space-map-list{padding:0}.spatial-list-heading input{width:100%;min-width:240px;font-size:12px}.space-list-entries{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;display:grid}.space-list-entries>button{text-align:left;background:var(--surface);border:1px solid var(--line);white-space:normal;overflow-wrap:anywhere;border-radius:10px;gap:9px;min-width:0;padding:16px;display:grid}.space-list-entries>button[aria-pressed=true]{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}.space-list-entries strong{font-size:13px}.space-list-entries span{color:var(--muted);font-size:11px}.space-list-entries .space-list-status{color:var(--ink);font-weight:700}.space-list-status:before,.space-map-legend i{content:"";background:var(--muted);border-radius:50%;width:9px;height:9px;margin-right:7px;display:inline-block}.space-list-status.state-free:before,.space-map-legend .state-free{background:var(--success)}.space-list-status.state-occupied:before,.space-map-legend .state-occupied{background:var(--subtle)}.space-list-status.state-maintenance:before,.space-map-legend .state-maintenance{background:var(--warning)}.space-list-status.state-unavailable:before,.space-map-legend .state-unavailable{background:var(--subtle)}.space-map-legend{flex-wrap:wrap;gap:14px;margin:14px 0;font-size:11px;display:flex}.space-map-legend i{vertical-align:middle}.space-map-filters{margin-bottom:20px;padding:22px}.space-filter-fields{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}.space-filter-fields>label:first-child{grid-column:span 2}.spatial-filter-footer{margin-top:18px;margin-bottom:0}.space-plan-link{margin:18px 0}.space-public-note{white-space:pre-wrap;overflow-wrap:anywhere;padding:16px 0;font-size:13px;line-height:1.7}.spatial-map-heading{margin-top:24px}.spatial-map-heading h2{margin-bottom:8px}.space-map-grid.list-only{grid-template-columns:1fr}.space-list-group{margin:20px 0}.space-list-group h3,.space-list-group>p{margin-bottom:12px}.space-map-workspace>.notice{margin-bottom:16px}@media (width<=1000px){.space-editor-grid,.space-map-grid{grid-template-columns:1fr}.space-canvas{height:420px}.space-selection-panel{grid-template-columns:1fr}.space-filter-fields{grid-template-columns:1fr 1fr}}@media (width<=600px){.space-canvas{height:320px}.space-canvas-toolbar{align-items:flex-start}.space-canvas-toolbar .button-group{gap:6px}.space-canvas-toolbar .button{padding:8px;font-size:12px}.space-selection-panel,.space-map-filters,.space-map-list{padding:16px}.spatial-detail-body{padding:0 16px 20px}.space-filter-fields{grid-template-columns:1fr}.space-filter-fields>label:first-child{grid-column:auto}.space-list-entries{grid-template-columns:1fr}.spatial-list-heading,.spatial-list-heading>label{width:100%}.spatial-list-heading input{width:100%;min-width:0}.space-editor-actions .button-group{align-items:stretch}.space-editor-actions .button{flex:1}.space-canvas-toolbar>.field-help{flex-basis:100%}.modal:has(.floor-plan-editor) .modal-body{padding:18px 14px}.space-coordinates{gap:10px}.space-canvas-help{font-size:11px}}@media (prefers-reduced-motion:reduce){.space-canvas-wrap *{transition:none!important;animation:none!important}}.spatial-conflict-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.spatial-conflict .space-canvas{height:260px}.spatial-conflict p,.spatial-coordinate-comparison{overflow-wrap:anywhere}.spatial-coordinate-comparison article{border-bottom:1px solid var(--line);padding:12px 0}.spatial-conflict details{margin:18px 0}.spatial-conflict summary{cursor:pointer;padding:12px 0}.spatial-conflict .button-group{flex-wrap:wrap}@media (width<=700px){.spatial-conflict-columns{grid-template-columns:1fr}.spatial-conflict-actions .button{width:100%}}
