body.spatial-workbench-open { overflow: hidden; }
.spatial-capture-state { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; padding: 16px; text-align: center; overflow-wrap: anywhere; font-size: 13px; }
.spatial-capture-state strong { font-size: 18px; color: var(--text); }.spatial-capture-state button { flex-shrink: 0; }
.spatial-saved-dialog { width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 12px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); overflow: auto; }
.spatial-saved-dialog::backdrop { background: #0009; }.spatial-saved-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.spatial-saved-dialog h3 { font-size: 16px; margin: 0; overflow-wrap: anywhere; }.spatial-saved-dialog header button { width: 32px; height: 32px; padding: 6px; flex-shrink: 0; }.spatial-saved-dialog header svg { width: 20px; height: 20px; }
.spatial-saved-stage { height: min(60dvh, 620px); display: flex; align-items: center; justify-content: center; margin-block: 12px; background: #20292e; }.spatial-saved-layer { position: relative; width: 1px; }.spatial-saved-layer img, .spatial-saved-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }.spatial-saved-dialog footer { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12px; }.spatial-saved-dialog footer span { display: inline-flex; align-items: center; gap: 6px; overflow-wrap: anywhere; min-width: 0; }.spatial-saved-dialog footer i { width: 10px; height: 10px; flex-shrink: 0; }
#spatial-workbench { position: fixed; inset: 12px; z-index: 2200; background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 48px #0003; border-radius: 6px; display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; letter-spacing: 0; }
.spatial-topbar { display: grid; grid-template-columns: minmax(140px, auto) minmax(180px, 360px) 1fr; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); flex: 0 0 auto; }
.spatial-heading { min-width: 0; }.spatial-heading h2 { margin: 0; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.spatial-version-picker { min-width: 0; width: 100%; height: 34px; box-sizing: border-box; font-size: 12px; }
.spatial-top-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; min-width: 0; }.spatial-top-actions > button { white-space: nowrap; }.spatial-unsaved { color: #e1ad56; font-size: 12px; white-space: nowrap; }
.spatial-tabbar { display: flex; align-items: center; justify-content: space-between; min-width: 0; flex: 0 0 auto; border-bottom: 1px solid var(--line); }
.spatial-tabs { display: flex; gap: 16px; padding: 0 12px; flex: 0 0 auto; }.spatial-tabs button { border: 0; border-radius: 0; padding: 9px 2px; border-bottom: 2px solid transparent; background: transparent; white-space: nowrap; }.spatial-tabs button.active { color: #63d8b1; border-bottom-color: #63d8b1; }
.spatial-message { min-width: 0; padding: 6px 12px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; max-height: 64px; overflow-y: auto; }.spatial-message.error { color: #ffb0b8; background: #46242c; }
.spatial-message.preflight-message:not(.error):not(.progress-message) { display: block; }
.spatial-work-area { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-height: 0; flex: 1 1 0; overflow: hidden; }
.spatial-image-area { min-width: 0; min-height: 0; display: flex; flex-direction: column; }.spatial-drawing-tools { padding: 6px 10px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; flex: 0 0 auto; background: var(--surface); border-bottom: 1px solid var(--line); }.spatial-drawing-tools output { font-size: 12px; width: 40px; text-align: center; }
#spatial-workbench .spatial-tool { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 6px; flex: 0 0 34px; border: 1px solid transparent; background: transparent; border-radius: 4px; font-size: 20px; }.spatial-tool svg { width: 20px; height: 20px; }#spatial-workbench .spatial-tool.active { color: #8be1c0; background: #183f36; border-color: #397f69; }#spatial-workbench .spatial-tool:hover:not(:disabled) { background: var(--panel); }.spatial-tool-divider { height: 20px; border-left: 1px solid var(--line); margin: 0 6px; }
.spatial-tool:hover::after { content: attr(data-tooltip); position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12px; padding: 5px 8px; background: #27343c; color: white; border-radius: 4px; z-index: 5; }
.spatial-viewport { flex: 1 1 0; min-height: 0; min-width: 0; overflow: auto; background: #20292e; padding: 12px; overscroll-behavior: contain; }.spatial-image-layer { position: relative; width: 1px; margin-inline: auto; background: #283238; }.spatial-image-layer img, .spatial-image-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; }.spatial-image-layer svg { touch-action: none; user-select: none; }.spatial-image-layer svg circle { cursor: move; }.spatial-no-image { display: grid; place-items: center; height: 100%; color: var(--muted); }
.spatial-properties { border-left: 1px solid var(--line); overflow-y: auto; overscroll-behavior: contain; padding: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }.spatial-properties > * { flex-shrink: 0; }.spatial-properties h3 { margin: 0; font-size: 15px; }.spatial-properties label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }.spatial-properties input, .spatial-properties select { min-width: 0; width: 100%; box-sizing: border-box; }.spatial-properties .checkline { flex-direction: row; align-items: center; }.spatial-properties input[type=checkbox] { width: auto; }.spatial-properties input[type=file] { font-size: 12px; }.spatial-properties progress { width: 100%; accent-color: #21866c; }
.spatial-summary { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 9px; margin: 0; font-size: 12px; }.spatial-summary dt { color: var(--muted); }.spatial-summary dd { margin: 0; overflow-wrap: anywhere; }.spatial-section-title { display: flex; justify-content: space-between; align-items: center; }.spatial-geometry-list { display: flex; flex-direction: column; gap: 3px; }.spatial-geometry-list button { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: transparent; padding: 9px; min-width: 0; }.spatial-geometry-list button span:nth-child(2) { overflow-wrap: anywhere; flex: 1; }.spatial-geometry-list button.active { background: var(--panel); border-color: #36778a; }.spatial-swatch { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 2px; }.spatial-property-fields { border: 0; border-top: 1px solid var(--line); padding: 12px 0 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }.spatial-property-fields legend { font-size: 13px; padding-right: 8px; }.spatial-properties [data-spatial-replay] img { width: 100%; display: block; margin-top: 12px; }.spatial-properties [data-spatial-replay] output { font-size: 12px; }
.spatial-capture-angle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.spatial-capture-angle-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.spatial-capture-angle-grid input { min-width: 0; }
.spatial-capture-angle-grid .muted { grid-column: 1 / -1; line-height: 1.45; }
.spatial-event-row { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; display: grid; gap: 8px; }.spatial-event-row h4 { margin: 0; font-size: 13px; }
.spatial-recapture-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-sizing: border-box; overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 14px; }
.spatial-recapture-dialog::backdrop { background: #0009; }.spatial-recapture-dialog h3 { margin: 0 0 16px; font-size: 18px; }.spatial-recapture-dialog p { line-height: 1.6; overflow-wrap: anywhere; }.spatial-recapture-dialog label { display: flex; align-items: flex-start; gap: 8px; line-height: 1.6; }.spatial-recapture-dialog input { flex: 0 0 auto; margin-top: 5px; }.spatial-recapture-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }.spatial-recapture-actions button { white-space: normal; }
.spatial-control-points { display: grid; gap: 8px; }.spatial-control-points > div { display: grid; grid-template-columns: 1fr 1fr 28px; gap: 5px; border-top: 1px solid var(--line); padding-top: 6px; }.spatial-control-points > div > span { grid-column: 1 / -1; font-size: 12px; }.spatial-control-points button { align-self: end; padding: 4px; width: 28px; height: 32px; }.spatial-control-points svg { width: 18px; height: 18px; }
.spatial-tool svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { #spatial-workbench { inset: 0; border-radius: 0; }.spatial-topbar { grid-template-columns: minmax(0, 1fr) auto; padding: 7px 10px; gap: 6px 8px; }.spatial-heading h2 { font-size: 14px; }.spatial-version-picker { grid-row: 2; grid-column: 1 / -1; }.spatial-top-actions { grid-row: 1; grid-column: 2; gap: 4px; }.spatial-top-actions > button:not(.spatial-tool) { font-size: 12px; padding: 6px; }.spatial-unsaved { display: none; }.spatial-tabbar { flex-wrap: wrap; }.spatial-tabs { justify-content: space-between; width: 100%; gap: 6px; padding: 0 10px; }.spatial-tabs button { font-size: 13px; }.spatial-message { width: 100%; padding: 5px 10px; max-height: 48px; }.spatial-message:not(.error):not(.progress-message) { display: none; }.spatial-work-area { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 3fr) minmax(0, 2fr); }.spatial-properties { border-left: 0; border-top: 1px solid var(--line); padding: 10px; }.spatial-viewport { padding: 8px; }.spatial-drawing-tools { padding: 4px; gap: 2px; }.spatial-tool-divider { margin: 0 2px; } }
