:root{color:#17202a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;--surface:#f7f9fb;--surface-strong:#fff;--line:#cbd5df;--muted:#667482;--ink:#17202a;--accent:#2d6cdf;--accent-2:#1f9f84;--warning:#c0802b;--danger:#b94747;--rail:#202a35;background:#dfe5ea;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}button,input{font:inherit}button{cursor:pointer;border:0}.app-shell{grid-template-rows:54px minmax(0,1fr);min-width:1040px;height:100%;display:grid}.app-error-shell{place-items:center;min-width:0;padding:24px}.app-error-card{background:#fff;border:1px solid #d8e2ec;border-radius:8px;gap:10px;max-width:520px;padding:18px;display:grid;box-shadow:0 18px 55px #101d2b24}.app-error-card strong{color:var(--ink);font-size:16px}.app-error-card span{color:var(--muted);overflow-wrap:anywhere;font-size:12px}.app-error-card button{color:#fff;background:var(--accent);border-radius:7px;justify-self:start;height:32px;padding:0 12px;font-size:12px;font-weight:800}.topbar{border-bottom:1px solid var(--line);background:#fbfcfd;justify-content:space-between;align-items:center;gap:14px;padding:0 14px;display:flex}.brand{align-items:center;gap:10px;min-width:210px;display:flex}.brand-mark{color:#fff;background:#223247;border-radius:8px;flex-shrink:0;place-items:center;width:32px;height:32px;display:grid}.brand strong,.brand span{display:block}.brand strong{font-size:14px}.brand span{color:var(--muted);font-size:11px}.status-strip{border:1px solid var(--line);min-width:0;max-width:420px;height:32px;color:var(--muted);background:#f3f6f8;border-radius:8px;flex:1;align-items:center;gap:8px;padding:0 10px;font-size:12px;display:flex;overflow:hidden}.status-msg{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.status-dot{background:#8793a0;border-radius:999px;flex-shrink:0;width:7px;height:7px}.status-dot.ready,.status-dot.loaded{background:var(--accent-2)}.status-dot.loading,.status-dot.initializing{background:var(--warning)}.status-dot.error{background:var(--danger)}.progress-bar{background:#d4dde6;border-radius:99px;flex-shrink:0;width:72px;height:4px;overflow:hidden}.progress-fill{background:var(--accent);border-radius:99px;height:100%;transition:width .15s}.topbar-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.action-btn{cursor:pointer;border-radius:7px;align-items:center;gap:6px;height:32px;padding:0 10px;font-size:12px;font-weight:700;display:inline-flex}.action-btn.secondary{color:#405060;border:1px solid var(--line);background:#e8eef4}.action-btn.secondary:hover{background:#dde6ef}.upload-button{color:#fff;background:var(--accent);cursor:pointer;border-radius:7px;align-items:center;gap:6px;height:32px;padding:0 12px;font-size:12px;font-weight:700;display:inline-flex}.upload-button:hover{background:#2460c8}.upload-button input{display:none}.workspace{grid-template-columns:52px minmax(520px,1fr) 340px;min-height:0;display:grid}.tool-rail{background:var(--rail);flex-direction:column;align-items:center;gap:6px;padding:10px 6px;display:flex}.tool-rail button{color:#8da0b3;background:0 0;border-radius:8px;place-items:center;width:38px;height:38px;display:grid}.tool-rail button:hover,.tool-rail button.active{color:#fff;background:#33465c}.viewer-zone{border-right:1px solid var(--line);background:#e7edf2;grid-template-rows:auto auto minmax(300px,1fr) 200px;min-width:0;min-height:0;display:grid}.viewport-header{border-bottom:1px solid var(--line);background:var(--surface);flex-wrap:wrap;align-items:center;gap:12px;padding:10px 14px;display:flex}.viewport-title{flex:1;min-width:0}.camera-controls{border:1px solid var(--line);background:#eef2f6;border-radius:8px;align-items:center;gap:4px;padding:3px;display:flex}.cam-btn{color:#405060;background:0 0;border-radius:5px;align-items:center;gap:4px;height:26px;padding:0 8px;font-size:11px;font-weight:700;display:inline-flex}.cam-btn:hover{color:#1a2c3d;background:#dde6ef}.cam-btn.active,.cam-btn.proj-toggle.active{color:var(--accent);background:#dce9fc}.cam-divider{background:var(--line);width:1px;height:16px;margin:0 2px}.view-tabs{border:1px solid var(--line);background:#e9eef3;border-radius:8px;grid-template-columns:repeat(4,1fr);gap:3px;padding:3px;display:grid}.view-tabs button{color:#405060;background:0 0;border-radius:5px;height:26px;padding:0 8px;font-size:11px;font-weight:700}.view-tabs button.active{color:#fff;background:#263849}.tool-hint{color:var(--muted);background:#f0f4f7;border-bottom:1px solid #d8e2ea;align-items:center;gap:5px;padding:5px 14px;font-size:11px;display:flex;overflow:hidden}.tool-hint--hidden{visibility:hidden;border-bottom:0;height:0;padding:0}.measurement-modes{align-items:center;gap:4px;margin-left:auto;display:inline-flex}.measurement-modes button{color:#4f6275;background:#e1e9f1;border-radius:6px;height:22px;padding:0 8px;font-size:10px;font-weight:800}.measurement-modes button.active{color:#fff;background:var(--accent)}.viewport{background:#eef2f5;min-height:0;position:relative;overflow:hidden}.viewport canvas{display:block;width:100%!important;height:100%!important}.viewport.dragging{outline:2px dashed var(--accent);outline-offset:-3px}.drag-overlay{z-index:10;color:var(--accent);pointer-events:none;background:#2d6cdf1f;flex-direction:column;justify-content:center;align-items:center;gap:10px;font-size:16px;font-weight:800;display:flex;position:absolute;inset:0}.drop-hint{z-index:2;width:min(320px,100% - 40px);color:var(--ink);background:#ffffffe0;border:1px solid #b9c8d8;border-radius:10px;gap:7px;padding:14px;display:grid;position:absolute;inset:auto 20px 20px auto;box-shadow:0 10px 28px #1f2c3a1f}.drop-hint strong{font-size:13px}.drop-hint span{color:var(--muted);font-size:12px;line-height:1.4}.profile-panel{border-top:1px solid var(--line);background:var(--surface);min-height:0;padding:10px 14px 12px}.panel-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.panel-heading button{color:#405060;background:#e8eef4;border-radius:7px;place-items:center;width:28px;height:28px;display:grid}.profile-chart{border:1px solid var(--line);background:var(--surface-strong);border-radius:8px;height:134px;margin-top:8px;padding:4px 8px 6px}.profile-chart svg{width:100%;height:92px}.profile-chart line{stroke:#aab6c2;stroke-width:1px}.profile-chart text{fill:#5f6e7d;font-size:9px}.profile-chart polyline{fill:none;stroke-width:3px}.profile-chart circle{fill:var(--accent)}.grade{stroke:var(--accent)}.station-line{stroke:#d2dae2;stroke-dasharray:3 4}.legend{color:var(--muted);align-items:center;gap:14px;margin-top:4px;font-size:11px;display:flex}.legend span{align-items:center;gap:5px;display:inline-flex}.legend i{border-radius:99px;width:14px;height:3px}.grade-key{background:var(--accent)}.event-key{background:var(--accent-2)}.inspector{background:#edf2f6;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;display:grid;overflow:hidden}.inspector-tabs{border-bottom:1px solid var(--line);background:#e4eaf0;grid-template-columns:repeat(3,1fr);display:grid}.inspector-tabs button{height:38px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;justify-content:center;align-items:center;gap:5px;padding:0 8px;font-size:11px;font-weight:700;display:flex}.inspector-tabs button:hover{color:var(--ink);background:#d8e3ec}.inspector-tabs button.active{color:var(--accent);border-bottom-color:var(--accent);background:var(--surface)}.inspector-tabs button em{background:var(--accent);color:#fff;border-radius:99px;justify-content:center;align-items:center;min-width:16px;height:16px;padding:0 4px;font-size:9px;font-style:normal;font-weight:800;display:inline-flex}.inspector-tabs button:not(.active) em{background:#b4c0ce}.tab-content{min-height:0;overflow:auto}.side-section{border-bottom:1px solid var(--line);background:var(--surface);padding:12px}.eyebrow{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:2px;font-size:9px;font-weight:800;display:block}h1,h2{color:var(--ink);margin:0}h1{font-size:17px;line-height:1.2}h2{font-size:13px;line-height:1.3}.empty-state{color:var(--muted);background:#fff;border:1px dashed #b8c5d1;border-radius:8px;margin-top:8px;padding:12px;font-size:12px;line-height:1.4}.model-list{gap:6px;margin-top:10px;display:grid}.model-row{border:1px solid var(--line);background:#fff;border-radius:8px;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:6px;padding:8px;transition:opacity .15s;display:grid}.model-row.hidden-model{opacity:.5}.model-vis{color:#5a6e80;background:0 0;border-radius:6px;place-items:center;width:26px;height:26px;display:grid}.model-vis:hover{background:#edf2f7}.model-info{cursor:pointer;min-width:0}.model-info:hover strong{color:var(--accent)}.model-info strong,.model-info span{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.model-info strong{color:var(--ink);font-size:12px}.model-info span{color:var(--muted);margin-top:1px;font-size:10px}.model-actions{align-items:center;gap:2px;display:flex}.model-actions button{color:#5a6e80;background:0 0;border-radius:5px;place-items:center;width:24px;height:24px;display:grid}.model-actions button:hover{background:#edf2f7}.model-actions button.danger:hover{color:var(--danger);background:#fdeaea}.category-list{gap:4px;margin-top:10px;display:grid}.category-row{border:1px solid var(--line);text-align:left;cursor:pointer;background:#fff;border-radius:7px;grid-template-rows:auto auto;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 8px;padding:7px 10px;display:grid}.category-row:hover{background:#f3f8ff;border-color:#8fb3e8}.category-row.active{border-color:var(--accent);background:#dce9fc}.cat-name{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;grid-area:1/1;font-size:12px;font-weight:700;overflow:hidden}.cat-raw{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;grid-area:2/1;font-size:9px;overflow:hidden}.cat-count{color:#405060;background:#e5ecf4;border-radius:99px;grid-area:1/2/3;justify-content:center;align-items:center;min-width:28px;height:20px;padding:0 6px;font-size:10px;font-weight:800;display:inline-flex}.category-row.active .cat-count{background:var(--accent);color:#fff}.reset-btn{color:var(--accent);background:0 0;padding:0;font-size:11px;font-weight:700}.reset-btn:hover{text-decoration:underline}.property-panel-content{gap:8px;margin-top:8px;display:grid}.prop-section{border:1px solid var(--line);background:#fff;border-radius:7px;overflow:hidden}.prop-section-header{color:#506070;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line);background:#f0f4f8;padding:5px 10px;font-size:10px;font-weight:800}.prop-section-header:empty{display:none}.property-row{border-bottom:1px solid #edf1f5;grid-template-columns:90px minmax(0,1fr);align-items:start;gap:8px;padding:5px 10px;font-size:11px;display:grid}.property-row:last-child{border-bottom:0}.property-row span{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.property-row strong{overflow-wrap:anywhere;color:var(--ink);font-weight:600}.property-note{color:var(--muted);background:#fbfcfe;padding:8px 10px;font-size:11px;line-height:1.35}.prop-nested{border-bottom:1px solid #edf1f5}.prop-nested:last-child{border-bottom:0}.prop-nested-header{color:#3a5268;text-align:left;background:0 0;align-items:center;gap:5px;width:100%;padding:5px 10px;font-size:11px;font-weight:700;display:flex}.prop-nested-header svg{color:var(--muted);flex-shrink:0;transition:transform .12s}.prop-nested-header.open svg{transform:rotate(90deg)}.prop-nested-header em{color:var(--muted);margin-left:auto;font-size:9px;font-style:normal}.prop-nested-header:hover{background:#f3f7fb}.prop-nested-body{background:#fafcfd;border-top:1px solid #edf1f5;padding-left:10px}.station-section{background:var(--surface)}.station-list{gap:4px;margin-top:8px;display:grid}.station-list button{border:1px solid var(--line);min-height:36px;color:var(--ink);text-align:left;background:#fff;border-radius:7px;grid-template-columns:52px minmax(0,1fr) 52px;align-items:center;gap:6px;padding:6px 8px;display:grid}.station-list button:hover{background:#f3f8ff;border-color:#8fb3e8}.station-list strong,.station-list span,.station-list em{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.station-list strong{font-size:11px;font-weight:700}.station-list span{color:var(--muted);font-size:10px}.station-list em{color:var(--muted);text-align:right;font-size:10px;font-style:normal}.brand-logo{object-fit:contain;border-radius:4px;width:28px;height:28px}.brand-logo-fallback{display:none}.brand-mark img[style*="display: none"]~.brand-logo-fallback{display:block}.brand-mark:not(:has(img[src])) .brand-logo-fallback{display:block}.visibility-legend{z-index:5;flex-direction:column;gap:4px;max-width:200px;display:flex;position:absolute;top:10px;left:10px}.vis-chip{cursor:pointer;white-space:nowrap;text-overflow:ellipsis;border:1px solid #0000;border-radius:99px;align-items:center;gap:5px;max-width:200px;height:24px;padding:0 8px;font-size:11px;font-weight:700;transition:opacity .12s,background .12s;display:inline-flex;overflow:hidden}.vis-chip.visible{color:#1e2e3e;background:#ffffffe0;border-color:#b0c4d8}.vis-chip.visible:hover{border-color:var(--accent);color:var(--accent);background:#fffffffa}.vis-chip.hidden{color:#8ca0b4;opacity:.7;background:#28374699;border-color:#475d72}.vis-chip.hidden:hover{opacity:1;color:#fff}.profile-empty{color:var(--muted);background:#f7f9fb;border:1px dashed #b8c5d1;border-radius:8px;margin-top:8px;padding:10px 12px;font-size:11px;line-height:1.45}.civil-panel{background:#1a2230;flex-direction:column;flex:auto;grid-row:3/-1;display:flex;position:relative;overflow:hidden}.civil-panel-label{z-index:2;color:#ffffff8c;letter-spacing:.04em;text-transform:uppercase;pointer-events:none;font-size:11px;font-weight:600;position:absolute;top:8px;left:12px}.civil-canvas{opacity:0;pointer-events:none;flex:auto;width:100%;height:100%;position:relative}.civil-canvas canvas{display:block;width:100%!important;height:100%!important}@media (width<=1180px){.app-shell{min-width:0}.workspace{grid-template-columns:52px minmax(0,1fr)}.inspector{display:none}}.civil-overlay{z-index:1;pointer-events:none;position:absolute;inset:0;overflow:hidden}.civil-svg{width:100%;height:100%;display:block}.civil-svg rect{fill:#162132}.civil-grid line{stroke:#a9bfd421;stroke-width:1px}.civil-card{z-index:2;background:#0d1826d6;border:1px solid #bad0e547;border-radius:8px;gap:4px;min-width:248px;padding:12px 14px;display:grid;position:absolute;top:18px;right:18px;box-shadow:0 16px 42px #0003}.civil-card span,.civil-card em{color:#92a7bc;font-size:11px;font-style:normal}.civil-card strong{color:#eef7ff;font-size:16px}.civil-empty-state{color:#c8d9e9;text-align:center;background-color:#162132;background-image:linear-gradient(#ffffff08 1px,#0000 1px),linear-gradient(90deg,#ffffff08 1px,#0000 1px),none;background-position:0 0,0 0,0 0;background-repeat:repeat,repeat,repeat;background-size:54px 54px;background-attachment:scroll,scroll,scroll;background-origin:padding-box,padding-box,padding-box;background-clip:border-box,border-box,border-box;place-content:center;justify-items:center;gap:10px;padding:24px;display:grid;position:absolute;inset:0}.civil-empty-state strong{color:#eef7ff;font-size:18px}.civil-empty-state span{color:#92a7bc;max-width:520px;font-size:13px;line-height:1.45}.alignment-path{fill:none;stroke:#69b7ff;stroke-width:7px;stroke-linecap:round}.alignment-halo{fill:none;stroke:#69b7ff29;stroke-width:52px;stroke-linecap:round}.station-marker,.profile-station{cursor:pointer;pointer-events:auto}.station-marker line{stroke:#e2effa8c;stroke-width:1px}.station-marker circle,.profile-station circle{fill:#e8f4ff;stroke:#69b7ff;stroke-width:2px}.station-marker text,.profile-station text,.axis-title{fill:#c8d9e9;font-size:13px;font-weight:700}.station-marker.active circle,.active-station-target circle{fill:#f0d24d;stroke:#fff7b0}.active-station-target circle{fill-opacity:.25;stroke-width:2px}.active-station-target text{fill:#fff7b0;font-size:15px;font-weight:800}.grade-line-large{fill:none;stroke:#69b7ff;stroke-width:5px}.active-profile-line,.active-station-line{stroke-width:2px;stroke-dasharray:6 5;stroke:#f0d24d!important}.station-list button.active{border-color:var(--accent);background:#dce9fc}
