.loading-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.9);display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:9999;color:white}.loading-spinner{width:50px;height:50px;border:4px solid #333;border-top:4px solid #3498db;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:20px}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}#loading-text{font-size:18px;margin-top:10px}.error-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.95);display:none;flex-direction:column;justify-content:center;align-items:center;z-index:9999;color:white;text-align:center;padding:20px}.error-icon{font-size:64px;color:#e74c3c;margin-bottom:20px}.error-title{font-size:24px;font-weight:bold;margin-bottom:15px;color:#e74c3c}.error-message{font-size:16px;margin-bottom:30px;max-width:600px;line-height:1.5;color:#bdc3c7}.error-overlay .btn{background:#3498db;color:white;padding:12px 24px;border:none;border-radius:6px;text-decoration:none;font-size:16px;transition:background 0.3s ease}.error-overlay .btn:hover{background:#2980b9}.viewer-capability-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:14px}.error-overlay .viewer-capability-requirements{background:transparent;border:1px solid #64748b}.error-overlay .viewer-capability-requirements:hover{background:#334155}.viewer-capability-warning{position:fixed;top:92px;left:50%;transform:translateX(-50%);width:min(680px, calc(100vw - 32px));display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;padding:12px 14px;border:1px solid #f59e0b;border-radius:10px;background:rgba(120,53,15,0.94);color:#fff7ed;box-shadow:0 10px 30px rgba(0,0,0,0.4);font:13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;z-index:1300}.viewer-capability-warning>i{color:#fbbf24;margin-top:3px}.viewer-capability-warning>span{flex:1}.viewer-capability-warning>button{border:0;background:transparent;color:#fff7ed;font-size:22px;line-height:1;cursor:pointer}body.mobile-viewer .viewer-capability-warning,body.tablet-touch-viewer .viewer-capability-warning{top:max(12px, env(safe-area-inset-top))}.touch-orbit-center-btn{position:fixed;right:16px;right:max(16px, env(safe-area-inset-right));bottom:16px;bottom:max(16px, env(safe-area-inset-bottom));width:52px;height:52px;border-radius:50%;border:none;background:rgba(20,20,20,0.78);color:#f0f0f0;font-size:22px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,0.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer;-webkit-tap-highlight-color:transparent;z-index:1000;transition:background 120ms ease, color 120ms ease, transform 120ms ease}.touch-orbit-center-btn:active{transform:scale(0.94)}.touch-orbit-center-btn[aria-pressed="true"]{background:#f4c542;color:#111;box-shadow:0 0 0 2px #fff,0 6px 18px rgba(0,0,0,0.5)}.touch-orbit-center-hint{position:fixed;right:16px;right:max(16px, env(safe-area-inset-right));bottom:76px;bottom:calc(max(16px, env(safe-area-inset-bottom)) + 60px);background:rgba(20,20,20,0.85);color:#f0f0f0;font-size:13px;padding:8px 12px;border-radius:8px;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity 160ms ease, transform 160ms ease;z-index:1000;white-space:nowrap}.touch-orbit-center-hint.is-visible{opacity:1;transform:translateY(0)}.fbx-distance-label{position:absolute;background:rgba(255,255,0,0.7);color:black;padding:1px 4px;border-radius:1px;font-size:10px;font-weight:bold;z-index:1000;pointer-events:none;border:1px solid #000;box-shadow:0 1px 2px rgba(0,0,0,0.3);font-family:monospace;white-space:nowrap;display:none;transform:translateY(-50%)}.measurement-hint-toast{position:fixed;left:296px;top:96px;width:calc(100vw - 312px);max-width:360px;display:flex;align-items:flex-start;gap:8px;background:rgba(15,23,42,0.86);color:#f8fafc;border:1px solid rgba(148,163,184,0.25);border-radius:10px;padding:10px 12px;box-shadow:0 10px 30px rgba(0,0,0,0.35);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);pointer-events:none;z-index:1100;opacity:0;transform:translateY(-6px);transition:opacity 160ms ease, transform 160ms ease;font-size:13px;line-height:1.45}.measurement-hint-toast.is-visible{opacity:1;transform:translateY(0)}.measurement-hint-toast.is-miss{border-color:rgba(251,146,60,0.55)}.measurement-hint-toast .measurement-hint-icon{color:#60a5fa;margin-top:2px;flex-shrink:0}.annotation-pin-layer{position:absolute;inset:0;pointer-events:none;z-index:100001;overflow:hidden}.annotation-pin{position:absolute;width:28px;height:28px;border:none;border-radius:50%;background:rgba(30,64,120,0.92);color:#fff;display:flex;align-items:center;justify-content:center;pointer-events:auto;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,0.35);padding:0;line-height:1;font-size:14px;transition:transform 120ms ease, background 120ms ease}.annotation-pin:hover,.annotation-pin.is-selected{background:#2563b4;transform:scale(1.12)}.annotation-detail-panel{position:fixed;top:100px;right:24px;width:300px;max-width:calc(100vw - 40px);z-index:1200;background:#fff;border:1px solid rgba(15,23,42,0.1);border-radius:12px;box-shadow:0 14px 36px rgba(15,23,42,0.22);padding:16px 16px 14px;color:#1e293b;box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}.annotation-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.annotation-detail-title{font-size:15px;font-weight:700;line-height:1.35;word-break:break-word}.annotation-detail-close{border:none;background:transparent;font-size:22px;line-height:1;cursor:pointer;color:#94a3b8;padding:0;width:24px;height:24px;flex-shrink:0;border-radius:6px}.annotation-detail-close:hover{background:#f1f5f9;color:#475569}.annotation-detail-body{font-size:13px;line-height:1.55;white-space:pre-wrap;margin-bottom:10px;color:#475569;max-height:200px;overflow-y:auto}.annotation-detail-meta{font-size:11px;color:#94a3b8;margin-bottom:12px}.annotation-detail-actions{display:flex;flex-wrap:wrap;gap:8px}.annotation-backdrop{position:fixed;inset:0;z-index:1290;background:rgba(15,23,42,0.45);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}.annotation-create-form{position:fixed;top:50%;left:50%;transform:translate(-50%, -50%);width:380px;max-width:calc(100vw - 32px);z-index:1300;background:#fff;border-radius:14px;box-shadow:0 20px 50px rgba(15,23,42,0.32);padding:22px 22px 18px;color:#1e293b;box-sizing:border-box;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif}.annotation-create-form h5{margin:0 0 18px;font-size:17px;font-weight:700;letter-spacing:0.01em;color:#0f172a}.annotation-create-form .annotation-field{margin-bottom:14px}.annotation-create-form label{display:block;font-size:12px;font-weight:600;color:#64748b;margin-bottom:6px}.annotation-create-form input,.annotation-create-form textarea,.annotation-create-form select{display:block;width:100%;box-sizing:border-box;margin:0;border:1px solid #d0d7e2;border-radius:8px;padding:10px 12px;font-size:14px;line-height:1.4;color:#0f172a;background:#f8fafc;font-family:inherit;outline:none;transition:border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;resize:vertical}.annotation-create-form input:focus,.annotation-create-form textarea:focus,.annotation-create-form select:focus{border-color:#3b82f6;background:#fff;box-shadow:0 0 0 3px rgba(59,130,246,0.18)}.annotation-create-form textarea{min-height:96px}.annotation-create-form.is-edit{top:100px;left:auto;right:24px;transform:none;max-height:calc(100vh - 120px);overflow-y:auto}.annotation-camera-option{display:flex;align-items:flex-start;gap:8px;padding:10px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.annotation-create-form .annotation-camera-option input[type="checkbox"]{display:inline-block;width:auto;margin:2px 0 0;flex-shrink:0;accent-color:#2563eb;cursor:pointer}.annotation-camera-option-copy{min-width:0}.annotation-create-form .annotation-camera-option label{margin-bottom:0;color:#334155;font-size:13px;font-weight:600;cursor:pointer}.annotation-camera-option-hint{display:block;margin-top:4px;font-size:11px;font-weight:400;color:#94a3b8;line-height:1.45}.annotation-form-actions{display:flex;gap:8px;margin-top:18px;justify-content:flex-end}.annotation-btn{appearance:none;-webkit-appearance:none;border:1px solid transparent;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer;font-family:inherit;transition:background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease}.annotation-btn:active{transform:translateY(1px)}.annotation-btn-primary{background:#2563eb;color:#fff;border-color:#2563eb}.annotation-btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}.annotation-btn-secondary{background:#fff;color:#475569;border-color:#cbd5e1}.annotation-btn-secondary:hover{background:#f8fafc;border-color:#94a3b8}.annotation-btn-danger{background:#fff;color:#dc2626;border-color:#fecaca}.annotation-btn-danger:hover{background:#fef2f2;border-color:#f87171}.annotation-btn-sm{padding:6px 10px;font-size:12px}.annotation-file-hint{margin-top:6px;font-size:11px;color:#94a3b8}.annotation-create-form input[type="file"]{padding:8px;background:#fff;cursor:pointer}.annotation-file-preview,.annotation-existing-files{display:flex;flex-direction:column;gap:6px;margin-top:8px}.annotation-file-chip,.annotation-existing-file{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;border-radius:8px;background:#f1f5f9;font-size:12px;color:#334155;word-break:break-all}.annotation-detail-attachments{display:flex;flex-direction:column;gap:8px;margin:0 0 12px}.annotation-attach-thumb{display:block;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0;background:#f8fafc}.annotation-attach-thumb img{display:block;width:100%;max-height:180px;object-fit:cover}.annotation-attach-file{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;background:#fef2f2;color:#b91c1c;text-decoration:none;font-size:12px;font-weight:600}.annotation-attach-file:hover{background:#fee2e2}.annotation-empty{font-size:12px;color:#94a3b8;padding:8px 4px}.simple-annotation-item{margin-bottom:4px}.simple-annotation-item .annotation-item-open{width:100%;display:flex;align-items:center;gap:8px;border:none;background:rgba(255,255,255,0.04);color:inherit;text-align:left;padding:8px 10px;border-radius:6px;cursor:pointer;font-size:12px}.simple-annotation-item.is-selected .annotation-item-open,.simple-annotation-item .annotation-item-open:hover{background:rgba(59,130,246,0.2)}.annotation-toolbar{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.annotation-toolbar .annotation-btn{font-size:11px;padding:5px 9px;background:rgba(255,255,255,0.08);color:#e2e8f0;border-color:rgba(255,255,255,0.18)}.annotation-toolbar .annotation-btn:hover{background:rgba(59,130,246,0.28);border-color:rgba(147,197,253,0.55);color:#fff}body.annotation-create-armed #potree_render_area{outline:2px dashed rgba(59,130,246,0.55);outline-offset:-2px}.tablet-advanced-hidden{display:none !important}.tablet-sidebar-toggle,.tablet-sidebar-close,.tablet-sidebar-backdrop,.touch-measure-finish-btn{display:none}body.tablet-touch-viewer .tablet-sidebar-backdrop{display:block;position:fixed;top:var(--viewer-header-offset, 56px);left:0;right:0;bottom:0;border:none;padding:0;margin:0;background:rgba(0,0,0,0.35);z-index:1040;cursor:pointer;-webkit-tap-highlight-color:transparent}body.tablet-touch-viewer .tablet-sidebar-backdrop[hidden]{display:none !important}body.tablet-touch-viewer .viewer-header{height:auto;min-height:56px;padding:8px 10px;gap:8px;flex-wrap:wrap;row-gap:6px;align-items:center}body.tablet-touch-viewer .header-left{min-width:0;flex:1 1 180px;max-width:100%;overflow:hidden}body.tablet-touch-viewer .header-left h3{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.tablet-touch-viewer .header-left p{display:none}body.tablet-touch-viewer .header-right{gap:6px;flex:1 1 auto;flex-wrap:wrap;justify-content:flex-end;min-width:0}body.tablet-touch-viewer .header-model-actions{gap:6px;padding-right:8px;margin-right:0;flex-shrink:0}body.tablet-touch-viewer .header-model-actions .btn-model-action{padding:6px 10px;font-size:12px;width:auto;max-width:none;overflow:visible;white-space:nowrap;flex-shrink:0}body.tablet-touch-viewer .header-background-label-text{display:none}body.tablet-touch-viewer .header-background{padding:0 6px;flex-shrink:0}body.tablet-touch-viewer .header-background-select{max-width:none;width:auto;font-size:12px;flex-shrink:0}body.tablet-touch-viewer .header-right .btn-header-back{padding:6px 10px;font-size:12px;flex-shrink:0}@media (max-width: 720px){body.tablet-touch-viewer:not(.mobile-viewer) .viewer-header{height:auto;min-height:56px;padding:8px 10px;flex-wrap:wrap;row-gap:8px;align-items:flex-start}body.tablet-touch-viewer:not(.mobile-viewer) .header-left{flex:1 1 100%;max-width:none}body.tablet-touch-viewer:not(.mobile-viewer) .header-right{flex:1 1 100%;justify-content:flex-start;flex-wrap:wrap;row-gap:6px}body.tablet-touch-viewer:not(.mobile-viewer) .touch-orbit-center-btn{top:calc(var(--viewer-header-offset, 56px) + 12px) !important}body.tablet-touch-viewer:not(.mobile-viewer) .touch-orbit-center-hint{top:calc(var(--viewer-header-offset, 56px) + 72px) !important}body.tablet-touch-viewer:not(.mobile-viewer) .measurement-hint-toast{top:calc(var(--viewer-header-offset, 56px) + 16px)}}body.tablet-touch-viewer .potree_container{top:var(--viewer-header-offset, 56px) !important;height:calc(100% - var(--viewer-header-offset, 56px)) !important;height:calc(100dvh - var(--viewer-header-offset, 56px)) !important}body.tablet-touch-viewer .potree_container.simple-mode #potree_render_area,body.tablet-touch-viewer .potree_container:not(.detailed-mode) #potree_render_area{margin-left:0 !important;margin-top:0 !important;top:0 !important;width:100% !important;height:100% !important}body.tablet-touch-viewer .simple-sidebar{top:var(--viewer-header-offset, 56px);height:calc(100vh - var(--viewer-header-offset, 56px));height:calc(100dvh - var(--viewer-header-offset, 56px));width:min(320px, 86vw);z-index:1050;transition:transform 180ms ease;box-shadow:4px 0 24px rgba(0,0,0,0.45)}body.tablet-touch-viewer.tablet-sidebar-collapsed .simple-sidebar{transform:translateX(-110%);pointer-events:none;box-shadow:none}body.tablet-touch-viewer .measure-btn{min-height:48px;font-size:15px;padding:12px 14px}body.tablet-touch-viewer .simple-sidebar-header{gap:8px}body.tablet-touch-viewer .simple-sidebar-header h4{font-size:16px;flex:1 1 auto;min-width:0}body.tablet-touch-viewer .tablet-sidebar-close{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;margin:0;padding:0;border:none;border-radius:10px;background:rgba(255,255,255,0.12);color:#f8fafc;font-size:18px;line-height:1;cursor:pointer;-webkit-tap-highlight-color:transparent}body.tablet-touch-viewer .tablet-sidebar-close:active{background:rgba(255,255,255,0.22)}body.tablet-touch-viewer .status-section{padding-bottom:12px}body.tablet-touch-viewer.tablet-sidebar-collapsed .tablet-sidebar-toggle{display:flex;position:fixed;left:12px;left:max(12px, env(safe-area-inset-left));bottom:16px;bottom:max(16px, env(safe-area-inset-bottom));width:52px;height:52px;border-radius:50%;border:none;background:#2563eb;color:#fff;font-size:20px;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,0.45);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);cursor:pointer;-webkit-tap-highlight-color:transparent;z-index:1100}body.tablet-touch-viewer .touch-measure-finish-btn{display:inline-flex;position:fixed;left:50%;transform:translateX(-50%);bottom:16px;bottom:max(16px, env(safe-area-inset-bottom));min-height:48px;padding:12px 20px;border:none;border-radius:999px;background:#16a34a;color:#fff;font-size:15px;font-weight:600;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,0.35);-webkit-tap-highlight-color:transparent;z-index:1100}body.tablet-touch-viewer .touch-measure-finish-btn[hidden]{display:none !important}body.tablet-touch-viewer .touch-orbit-center-btn{position:fixed !important;right:16px !important;right:max(16px, env(safe-area-inset-right)) !important;top:calc(var(--viewer-header-offset, 56px) + 12px) !important;bottom:auto !important;left:auto !important;width:52px !important;height:52px !important;min-width:52px !important;min-height:52px !important;max-width:52px !important;max-height:52px !important;padding:0 !important;margin:0 !important;overflow:hidden;box-sizing:border-box;appearance:none;-webkit-appearance:none;background:rgba(20,20,20,0.82) !important;color:#f0f0f0 !important;box-shadow:0 6px 18px rgba(0,0,0,0.45);z-index:1090}body.tablet-touch-viewer .touch-orbit-center-btn i,body.tablet-touch-viewer .touch-orbit-center-btn .fas{font-size:20px !important;line-height:1 !important;width:auto;height:auto;margin:0;pointer-events:none}body.tablet-touch-viewer .touch-orbit-center-btn[aria-pressed="true"]{background:#f4c542 !important;color:#111 !important;box-shadow:0 0 0 2px #fff,0 6px 18px rgba(0,0,0,0.5)}body.tablet-touch-viewer .touch-orbit-center-btn::before,body.tablet-touch-viewer .touch-orbit-center-btn::after{content:none !important;display:none !important}body.tablet-touch-viewer .touch-orbit-center-hint{position:fixed !important;right:16px !important;right:max(16px, env(safe-area-inset-right)) !important;top:calc(var(--viewer-header-offset, 56px) + 72px) !important;bottom:auto !important;z-index:1090}body.tablet-touch-viewer .help-button{right:16px !important;right:max(16px, env(safe-area-inset-right)) !important;bottom:16px !important;bottom:max(16px, env(safe-area-inset-bottom)) !important;top:auto !important;width:52px;height:52px;font-size:22px;z-index:1090}body.tablet-touch-viewer .measurement-hint-toast{left:16px;left:max(16px, env(safe-area-inset-left));right:auto;top:calc(var(--viewer-header-offset, 56px) + 16px);width:auto;max-width:min(420px, calc(100vw - 32px))}body.tablet-touch-viewer:not(.tablet-sidebar-collapsed) .measurement-hint-toast{left:calc(min(320px, 86vw) + 16px);max-width:min(360px, calc(100vw - min(320px, 86vw) - 32px))}body.tablet-touch-viewer #toggle-detailed-sidebar{display:none !important}body.mobile-viewer.tablet-touch-viewer .potree_container,body.mobile-viewer.tablet-touch-viewer .potree_container.mobile-mode{top:0 !important;height:100% !important;height:100dvh !important}body.mobile-viewer.tablet-touch-viewer .simple-sidebar{top:0;height:100vh;height:100dvh}body.mobile-viewer.tablet-touch-viewer .tablet-sidebar-backdrop{top:0}body.mobile-viewer.tablet-touch-viewer .measurement-hint-toast{top:max(12px, env(safe-area-inset-top))}body.mobile-viewer.tablet-touch-viewer .mobile-models-btn:not([hidden]){bottom:max(76px, calc(env(safe-area-inset-bottom) + 68px))}@media (max-width: 1200px){.measurement-hint-toast{left:266px;width:calc(100vw - 282px);max-width:360px}}
