/* A separate capture workspace; the facade quote and route controls keep their layout. */
#workspaceTabs {grid-template-columns:repeat(4,minmax(0,1fr))}
#workspaceTabs button{white-space:normal}
body.survey-view #mapwrap > :not(#surveyViewport){visibility:hidden;pointer-events:none}
body.survey-view #workspaceActionbar{display:none}
body.survey-view #panel{padding-bottom:30px}
#surveyViewport{position:absolute;inset:0;z-index:950;overflow:hidden;background:#eaf0f4}
#surveyViewport[hidden],#surveyMap2d[hidden],#surveyMap3d[hidden],#surveyPickBanner[hidden],#surveyMapUnavailable[hidden]{display:none!important}
#surveyMap2d,#surveyMap3d{position:absolute;inset:0;z-index:0}
#surveyMap3d canvas{display:block}
#surveyMap2d .leaflet-control-attribution{max-width:70%;font-size:9px}
.survey-label-canvas{position:absolute;inset:0;pointer-events:none}
.survey-3d-label{padding:4px 7px;border-radius:5px;background:rgba(26,46,61,.92);color:#fff;font:600 11px/1.25 system-ui,sans-serif;box-shadow:0 1px 6px #0002;white-space:nowrap;pointer-events:none}
.survey-3d-label.survey-start{background:#fff;color:#1b4e81;border:1px solid #538fc3}
.survey-3d-label.survey-end{background:#fff;color:#485b6e;border:1px dashed #7a8e9f}
.survey-3d-label.survey-takeoff{background:#1b5d96;color:#fff}
.survey-kicker{display:block;color:#40808d;font-size:10px;letter-spacing:.14em;font-weight:800}
.survey-intro{padding:6px 2px 18px}
.survey-intro h2{font-size:21px;line-height:1.35;margin:7px 0;color:#183f50;font-weight:800}
.survey-intro p{font-size:12px;line-height:1.6;margin:0;color:#637785}
#pane-survey .survey-card{background:#fff;border:1px solid #dce5ea;border-radius:12px;padding:17px;margin:0 0 14px;box-shadow:0 2px 5px #163f5710}
#pane-survey h3{font-size:15px;margin:0 0 13px;color:#244b5e;display:flex;align-items:center;gap:8px}
#pane-survey h3>span{font-size:11px;font-weight:800;color:#3d8893;background:#e9f4f4;border-radius:5px;padding:4px 5px}
#pane-survey .survey-help{font-size:11.5px;line-height:1.65;color:#6a7f8e;margin:8px 0 12px}
.survey-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 12px}
.survey-fields label,.survey-purpose{font-size:12px;color:#415a6b;display:flex;flex-direction:column;gap:5px;min-width:0}
.survey-fields input,.survey-purpose select{width:100%;border:1px solid #cad8e1;border-radius:7px;padding:8px 10px;color:#233f54;font-size:14px;font-weight:600;background:#fff}
.survey-purpose select{background-color:#f1f8f9;border-color:#aacbd1}
.survey-fields small{font-size:10px;font-weight:400;color:#81909b;line-height:1.45}
.survey-detail{border-top:1px solid #e2e9ed;margin:12px 0;padding-top:11px;font-size:12px;color:#425f71}
.survey-detail>summary{cursor:pointer;font-weight:650;line-height:1.5}
.survey-detail[open]>summary{margin-bottom:12px}
.survey-elevation-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 8px}
#surveyTerrainState{font-size:11px;color:#507381}
#pane-survey button{border-radius:7px}
#surveyElevation{background:#e8f3f4;border-color:#b9d9dc;color:#1e6977;font-size:12px;font-weight:700}
#surveyPick{font-size:12px;color:#2a6478}
.survey-source{font-size:10.5px;line-height:1.6;color:#83929b}
#surveyDongCount{font-size:10px;color:#6a8f97;margin-left:5px}
.survey-table-wrap{overflow-x:auto}
#pane-survey table{width:100%;border-collapse:collapse;font-size:11px;table-layout:fixed}
#pane-survey th,#pane-survey td{padding:8px 4px;text-align:left;border-bottom:1px solid #e6ecef}
#pane-survey th{background:transparent;line-height:1.5;color:#537181}
#pane-survey .survey-ground-table th:first-child{width:28%}
#pane-survey .survey-ground-table th:nth-child(2){width:21%}
#pane-survey .survey-ground-table th:nth-child(3){width:21%}
#pane-survey .survey-ground-table th:nth-child(4){width:30%}
.survey-ground-table label{display:flex;align-items:center;gap:4px;font-size:11px;font-weight:700}
#pane-survey input[type=checkbox],#surveyViewport input[type=checkbox]{accent-color:#27828d;width:14px;height:14px;margin:0}
.survey-ground-table input[type=number]{width:100%;min-width:45px;padding:5px 4px;font-size:11px;border:1px solid #d3dfe5;border-radius:5px}
.survey-ground-table input.manual{background:#eff8fc;border-color:#82b2cc}
.survey-ground-table small{display:block;font-size:9px;color:#8a9ba5;line-height:1.4;margin-top:3px}
#surveyResetTerrain{font-size:10px;margin-top:10px;padding:6px 9px}
#pane-survey .survey-primary{width:100%;font-size:14px;font-weight:750;border:0;color:#fff;background:#286c7e;padding:13px 12px;box-shadow:0 2px 6px #1c5b7133}
#pane-survey .survey-primary:hover{background:#205e71}
#pane-survey button:disabled{opacity:.55;cursor:wait}
.survey-message{font-size:12px;line-height:1.65;margin:12px 3px;color:#426c7a}
.survey-message.error{color:#ad433c;background:#fff2ef;border:1px solid #f0d4cd;padding:10px;border-radius:7px}
.survey-result-card{padding:20px 17px;margin:16px 0;border:1px solid #bdd7dc;border-radius:12px;background:linear-gradient(150deg,#eef7f8,#fff 65%)}
#pane-survey .survey-result-card h3{font-size:19px;margin:8px 0 20px}
.survey-result-conditions{font-size:11px;color:#527988;line-height:1.65;margin:-11px 0 17px}
.survey-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 10px}
.survey-stats>div{display:flex;flex-direction:column;gap:5px}
.survey-stats span{font-size:11px;color:#66818f}
.survey-stats strong{font-size:21px;color:#214f60;line-height:1.2;letter-spacing:-.035em}
.survey-stats small{font-size:12px;margin-left:3px;font-weight:500}
.survey-altitude{display:flex;flex-direction:column;gap:5px;padding:12px;margin-top:18px;background:#edf3f8;border-radius:7px;color:#355e79;font-size:11px}
.survey-altitude b{font-size:14px}
.survey-altitude.adjusted{background:#fff5df;color:#8c6523}
.survey-altitude small{font-size:10px;line-height:1.5}
.survey-downloads{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}
.survey-downloads a{display:flex;align-items:center;justify-content:center;border:1px solid #bfd4df;border-radius:7px;color:#346b84;background:#fff;text-decoration:none;font-size:12px;padding:10px}
.survey-downloads a.survey-download-main{grid-column:span 2;background:#286c7e;color:#fff;border:0;flex-direction:column;font-weight:750;gap:3px}
.survey-download-main small{font-size:10px;opacity:.85;font-weight:400}
.survey-review-note{font-size:10px;line-height:1.6;margin:10px 0 0;color:#81909a}
.survey-mission-list{display:flex;flex-direction:column;gap:7px;max-height:400px;overflow-y:auto}
.survey-mission{display:flex;flex:0 0 auto;align-items:stretch;border:1px solid #e2e9ee;border-radius:8px;overflow:hidden}
.survey-mission.selected{border-color:#76abb9;background:#edf7f8}
.survey-mission>button{display:flex;align-items:center;gap:9px;flex:1;background:transparent;border:0;padding:11px 9px;text-align:left;color:#315467;min-width:0}
.survey-mission i,.survey-pass-legend i{display:inline-block;flex:0 0 6px;width:6px;height:26px;border-radius:5px}
.survey-mission span{display:flex;flex-direction:column;gap:4px}
.survey-mission b{font-size:12px;line-height:1.4}
.survey-mission small{font-size:10px;color:#77909e}
.survey-mission>a{display:flex;align-items:center;padding:0 12px;color:#378497;text-decoration:none;font-size:20px;border-left:1px solid #e2e9ee}
.survey-notes{font-size:11px;line-height:1.7;color:#697e8a;padding-left:20px}
.survey-notes li+li{margin-top:7px}
.survey-map-head{position:absolute;z-index:1100;top:15px;left:15px;right:15px;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;pointer-events:none}
.survey-map-head>div:first-child{background:rgba(255,255,255,.95);padding:12px 14px;border-radius:10px;box-shadow:0 3px 18px #183d5118;min-width:160px;max-width:58%}
.survey-map-head b{display:block;font-size:15px;color:#244e62;margin:5px 0;line-height:1.4}
#surveyMapSubtitle{font-size:10px;color:#72909f;display:block}
.survey-map-views{display:flex;align-items:stretch;background:#fff;padding:4px;box-shadow:0 3px 18px #183d5118;border-radius:8px;pointer-events:auto}
.survey-map-views button{padding:9px 10px;border:0;background:transparent;color:#5b7384;font-size:11px;border-radius:5px;font-weight:650}
.survey-map-views button.on{color:#fff;background:#286c7e}
.survey-map-controls{position:absolute;z-index:1100;right:15px;top:96px;display:flex;align-items:center;gap:12px;padding:10px 12px;background:rgba(255,255,255,.96);box-shadow:0 3px 18px #183d5114;border-radius:8px}
.survey-map-controls label{display:flex;align-items:center;gap:5px;font-size:11px;color:#4d7084}
.survey-map-controls button{font-size:10px;padding:5px 8px}
.survey-map-legend{position:absolute;z-index:1100;bottom:17px;left:15px;max-width:calc(100% - 80px);background:rgba(255,255,255,.96);padding:12px 14px;border-radius:9px;box-shadow:0 3px 18px #183d511a;pointer-events:none}
.survey-map-legend>b{display:block;font-size:12px;color:#355f76;margin-bottom:5px}
.survey-map-legend>span{font-size:10px;color:#7e95a3;line-height:1.5;display:block}
.survey-pass-legend{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:9px}
.survey-pass-legend span{display:flex;align-items:center;gap:4px;color:#6c8492;font-size:10px}
.survey-pass-legend i{height:3px;width:13px;flex:0 0 13px}
.survey-pass-legend i.survey-transfer-key{height:0;border-top:2px dashed #7892a5;background:transparent;border-radius:0}
#surveyPickBanner{position:absolute;z-index:1200;top:145px;left:15px;right:15px;display:flex;justify-content:space-between;align-items:center;padding:12px 15px;background:#fff5d9;border:1px solid #e5c991;border-radius:9px;color:#8c661f;font-size:12px;box-shadow:0 3px 18px #183d511a}
#surveyPickBanner button{background:#fff;border-color:#dfc88f;color:#876b32;font-size:11px;padding:5px 8px}
.survey-picking .leaflet-container{cursor:crosshair}
.survey-map-takeoff{background:#286c7e;border:3px solid #fff;box-shadow:0 1px 8px #13394a44;border-radius:50%;color:#fff;display:grid;place-items:center;font:bold 13px system-ui}
.survey-map-marker{background:#fff;border:1px solid #538fc3;border-radius:4px;text-align:center;color:#316d97;font:600 10px/18px system-ui}
#surveyMapUnavailable{position:absolute;z-index:1200;top:45%;left:15%;right:15%;padding:18px;background:#fff;border-radius:9px;color:#6b7882;font-size:13px;box-shadow:0 2px 15px #183d5122}
@media(max-width:1100px){#workspaceTabs button{font-size:11px;padding:10px 5px}.survey-map-head{top:10px;left:10px;right:10px}.survey-map-controls{right:10px;gap:8px}.survey-map-views button{padding:8px}.survey-map-head b{font-size:13px}}
@media(max-width:760px){body.survey-view #mapwrap{height:52vh;min-height:370px}#pane-survey .survey-card{padding:14px}.survey-map-head>div:first-child{padding:9px 10px}.survey-map-head .survey-kicker{font-size:8px}.survey-map-controls{top:90px;padding:8px}.survey-map-legend{bottom:12px;left:10px;padding:10px;max-width:calc(100% - 60px)}.survey-pass-legend{gap:7px}.survey-map-head b{font-size:12px}.survey-map-views button{font-size:10px;padding:8px 7px}.survey-map-legend>b{font-size:11px}.survey-map-legend>span{font-size:9px}.survey-stats strong{font-size:22px}}
